joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403520
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.taskkill__F__IM_Taskmgr.exe
call fcn.00405ef0
mov dword [ebp - 0x1c], eax
call fcn.004168f0
add esp, 0x20
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x5fc8a8
push 0
push 0x100002
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x403590
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x5fc930
push 0x5fc998
call fcn.0040c050
add esp, 0xc
jmp 0x4035c4
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0x5fc9a8
push 0x5fca00
call fcn.0040c050
add esp, 0x10
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40375b
push 0x10024
push 0x5fc91c
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40371b
push 0x63a460
push 1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x403635
push 0x5fca10
push 0x5fca28
push 0x5fca68
call fcn.0040c050
add esp, 0xc
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x63a460
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x403679
cmp dword [0x63a464], 3
jne 0x403675
push 0x5fca78
push str.Wait_for_service__s_stop_pending...
push 0x5fcad8
call fcn.0040c050
add esp, 0xc
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x403677
jmp 0x403679
jmp 0x403635
mov eax, dword [0x63a464]
push eax
push 0x5fcae8
push 0x5fcb24
call fcn.0040c050
add esp, 0xc
cmp dword [0x63a464], 1
jne 0x4036b3
push 0x5fcb34
push 0x5fcb48
push 0x5fcb84
call fcn.0040c050
add esp, 0xc
jmp 0x4036ca
push 0x5fcb94
push 0x5fcba8
push 0x5fcbe8
call fcn.0040c050
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x4036f8
mov dword [ebp - 0x10], 1
push 0x5fcbf8
push str.Delete_service__s_successed...
push 0x5fcc4c
call fcn.0040c050
add esp, 0xc
jmp 0x40370f
push 0x5fcc5c
push str.Err:_Delete_service__s_failed_
push 0x5fccb4
call fcn.0040c050
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40374f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x403731
mov dword [ebp - 0x10], 1
jmp 0x40374f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x5fccc4
push 0x5fccd8
push 0x5fcd28
call fcn.0040c050
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x403774
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x5fcd38
push str.remove_service
call fcn.0040c050
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x403970
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 1
push str.SeAssignPrimaryTokenPrivilege
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.00403860
add esp, 0xc
push 1
push str.SeIncreaseQuotaPrivilege
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.00403860
add esp, 0xc
push 1
push str.SeDebugPrivilege
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.00403860
add esp, 0xc
push 1
push str.SeSecurityPrivilege
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.00403860
add esp, 0xc
push 1
push str.SeLoadDriverPrivilege
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.00403860
add esp, 0xc
push 1
push str.SeShutdownPrivilege
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.00403860
add esp, 0xc
pop ebp
ret

Function at 0x403a00
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5845db
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x615000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov word [ebp - 0x424], ax
push 0x40e
push 0
lea ecx, [ebp - 0x422]
push ecx
call fcn.00562540
add esp, 0xc
push 0x207
lea edx, [ebp - 0x424]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x428]
call fcn.00405d60
mov dword [ebp - 4], 0
push str..old
lea ecx, [ebp - 0x428]
call fcn.00405e20
lea ecx, [ebp - 0x428]
call fcn.004027c0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403b41
mov dword [ebp - 0x42c], 0x64
lea ecx, [ebp - 0x428]
call fcn.004027c0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0
jne 0x403b1f
mov ecx, dword [ebp - 0x42c]
mov edx, dword [ebp - 0x42c]
sub edx, 1
mov dword [ebp - 0x42c], edx
test ecx, ecx
je 0x403b1f
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x428]
call fcn.004027c0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x430], eax
lea ecx, [ebp - 0x428]
call fcn.004027c0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x403b1d
jmp 0x403b1f
jmp 0x403ac3
cmp dword [ebp - 0x430], 0
jne 0x403b41
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Err:_delete_old_main_proc_file__err_d_r_n
push str.DeleteInvalidProcCatch
call fcn.0040c050
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x428]
call fcn.0042e5a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055abea
mov esp, ebp
pop ebp
ret
Function at 0x403b80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403b70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x403bb9
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403bd2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Err:_Create_delete_old_thread_fail_code_d
push str.WrapperDeleteInvalidProcCatch
call fcn.0040c050
add esp, 0xc
mov esp, ebp
pop ebp
ret

Function at 0x403ca0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x403cb0
xor eax, eax
jmp 0x403d57
push 0x64
push 0x63a4a0
push 0x67
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x63a568
push 0x6d
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
mov edx, dword [ebp + 8]
push edx
call fcn.00405630
add esp, 4
movzx eax, ax
test eax, eax
jne 0x403ced
xor eax, eax
jmp 0x403d57
mov ecx, dword [ebp + 8]
mov dword [0x63a488], ecx
push 0
mov edx, dword [ebp + 8]
push edx
push 0
push 0
push 0
push SysReAllocString
push 0
push SysReAllocString
push 0xcf0000
push 0x63a4a0
push 0x63a568
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x63a49c], eax
cmp dword [0x63a49c], 0
jne 0x403d37
xor eax, eax
jmp 0x403d57
push 0
mov eax, dword [0x63a49c]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x63a49c]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
pop ebp
ret

Function at 0x403e80
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x63a480], 0
je 0x403e99
mov eax, dword [0x63a480]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [0x63a48c], 0
je 0x403f03
push 0x1f4
mov ecx, dword [0x63a48c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x403ee7
push 0
mov edx, dword [0x63a48c]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WAR:_Wait_ctrl_event_thread_err_u__terminated_
push 0x5fd56c
call fcn.0040c050
add esp, 0xc
jmp 0x403ef9
push str.Wait_ctrl_event_thread_OK...
push str.ReleaseStopCtrlEvent
call fcn.0040c050
add esp, 8
mov dword [0x63a48c], 0
mov esp, ebp
pop ebp
ret
Function at 0x403f10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5853a8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x615000]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x34]
call fcn.00401e20
mov dword [ebp - 4], 0
push 0x5fd5d8
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.00401ee0
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x63a480], eax
cmp dword [0x63a480], 0
jne 0x403f9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Err:_CreateEventW_err_u_
push 0x5fd684
call fcn.0040c050
add esp, 0xc
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401eb0
mov eax, dword [ebp - 0x38]
jmp 0x40400e
push 0
push 0
push 0
push 0x403df0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x63a48c], eax
cmp dword [0x63a48c], 0
jne 0x403ff5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Err:_CreateThread_err_u_
push str.CreateStopCtrlEvent
call fcn.0040c050
add esp, 0xc
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401eb0
mov eax, dword [ebp - 0x3c]
jmp 0x40400e
mov dword [ebp - 0x40], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401eb0
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x404c10
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x404d9b
push 0x14
push 0x5fe14c
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x404d4b
push 0x63a460
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x404c7e
cmp dword [0x63a464], 1
je 0x404ca1
mov edx, dword [0x63a464]
push edx
push 0x5fe160
push str.Err:_Service__s_status_d__not_stopped__can_not_start_it.
push 0x5fe1f0
call fcn.0040c050
add esp, 0x10
jmp 0x404d3f
mov dword [ebp - 0x18], 0x5fe208
mov dword [ebp - 0x14], 0x5fe21c
mov dword [ebp - 0x10], 0x5fe234
mov dword [ebp - 0x1c], 2
cmp dword [ebp + 8], 0
je 0x404cca
mov dword [ebp - 0x1c], 3
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x404d00
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x5fe254
push str.Err:_StartService__s_fail__code_d_
push 0x5fe2b4
call fcn.0040c050
add esp, 0x10
jmp 0x404d3f
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x63a460
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov ecx, dword [0x63a464]
push ecx
push 0x5fe2cc
push str.Service__s_status_d_...
push 0x5fe314
call fcn.0040c050
add esp, 0x10
mov dword [ebp - 0xc], 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x404d8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x404d71
push 0x5fe32c
push str.Err:_Service__s_not_exist_
push 0x5fe37c
call fcn.0040c050
add esp, 0xc
jmp 0x404d8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x5fe394
push str.Err:_OpenService__s_failed__code_d_
push 0x5fe3f8
call fcn.0040c050
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x404db4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Err:_OpenSCManager_failed__code_d_
push str.service_start_external
call fcn.0040c050
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x405850
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x582126
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x615000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov word [ebp - 0x254], ax
push 0x206
push 0
lea ecx, [ebp - 0x252]
push ecx
call fcn.00562540
add esp, 0xc
push 0x103
lea edx, [ebp - 0x254]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x38], 0
je 0x4058e7
cmp dword [ebp - 0x34], 0x7a
je 0x4058e7
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.config.exe
lea ecx, [ebp - 0x254]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x4058ee
xor eax, eax
jmp 0x405a73
call fcn.00402270
mov dword [ebp - 0x44], eax
lea edx, [ebp - 0x254]
mov dword [ebp - 0x40], edx
cmp dword [ebp - 0x40], 0
jne 0x405911
mov dword [ebp - 0x298], 0
jmp 0x405972
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x3fffffff
jle 0x405936
mov dword [ebp - 0x29c], 0
jmp 0x405966
mov eax, dword [ebp - 0x30]
shl eax, 1
call fcn.0056a8e0
mov dword [ebp - 0x2a0], esp
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x30]
shl edx, 1
push edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x2a0]
push ecx
call fcn.004022d0
mov dword [ebp - 0x29c], eax
mov edx, dword [ebp - 0x29c]
mov dword [ebp - 0x298], edx
mov eax, dword [ebp - 0x298]
push eax
lea ecx, [ebp - 0x270]
call fcn.00405ef0
mov dword [ebp - 0x2a4], eax
mov ecx, dword [ebp - 0x2a4]
mov dword [ebp - 0x2a8], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x2a8]
push edx
push 0x5ffdf4
lea eax, [ebp - 0x28c]
push eax
call fcn.00407ac0
add esp, 0xc
mov dword [ebp - 0x2ac], eax
mov ecx, dword [ebp - 0x2ac]
mov dword [ebp - 0x2b0], ecx
mov byte [ebp - 4], 1
push 0x5ffdf0
mov edx, dword [ebp - 0x2b0]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.00407b50
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28c]
call fcn.00405f70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x270]
call fcn.00405f70
push 5
lea ecx, [ebp - 0x2c]
call fcn.00406030
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2e4
jne 0x405a56
push 0
push 0x5ffdf8
push 0x5ffdfc
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [ebp - 0x290], 0
lea ecx, [ebp - 0x2c]
call fcn.00405f70
mov eax, dword [ebp - 0x290]
jmp 0x405a73
xor ecx, ecx
cmp dword [ebp - 0x3c], 0x1f
setg cl
mov dword [ebp - 0x294], ecx
lea ecx, [ebp - 0x2c]
call fcn.00405f70
mov eax, dword [ebp - 0x294]
lea esp, [ebp - 0x2b4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055abea
mov esp, ebp
pop ebp
ret
Function at 0x40bb40
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x615000]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x29], 0x10
mov byte [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov word [ebp - 0x17], ax
mov byte [ebp - 0x15], al
mov byte [ebp - 0x14], 0
xor ecx, ecx
mov dword [ebp - 0x13], ecx
mov dword [ebp - 0xf], ecx
mov dword [ebp - 0xb], ecx
mov word [ebp - 7], cx
mov byte [ebp - 5], cl
push 0xa
push 0x10
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp + 0x18]
push eax
call fcn.0055c0d4
add esp, 0x10
push 0xa
push 0x10
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0055c0d4
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [ebp - 0x28], eax
push str._r_nErr:_OutPutDebugViewV__Reason__FuncName__Format__TotalLen__ErrCode
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x28], 0
je 0x40bbcb
mov dword [ebp - 0x30], 0x5fbbd8
jmp 0x40bbd2
mov dword [ebp - 0x30], 0x5fbbe0
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp + 8], 0
je 0x40bbea
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x34], ecx
jmp 0x40bbf1
mov dword [ebp - 0x34], str.Reason___
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x28], 0
je 0x40bc0a
mov dword [ebp - 0x38], 0x5fbbfc
jmp 0x40bc11
mov dword [ebp - 0x38], 0x5fbc04
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp + 0x10], 0
je 0x40bc29
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x3c], ecx
jmp 0x40bc30
mov dword [ebp - 0x3c], str.FuncName___
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x28], 0
je 0x40bc49
mov dword [ebp - 0x40], 0x5fbc18
jmp 0x40bc50
mov dword [ebp - 0x40], 0x5fbc20
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp + 0x14], 0
je 0x40bc68
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x44], ecx
jmp 0x40bc6f
mov dword [ebp - 0x44], str.Format___
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x28], 0
je 0x40bc88
mov dword [ebp - 0x48], 0x5fbc3c
jmp 0x40bc8f
mov dword [ebp - 0x48], 0x5fbc44
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x28], 0
je 0x40bcb2
mov dword [ebp - 0x4c], 0x5fbc48
jmp 0x40bcb9
mov dword [ebp - 0x4c], 0x5fbc50
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x28], 0
je 0x40bcdc
mov dword [ebp - 0x50], 0x5fbc54
jmp 0x40bce3
mov dword [ebp - 0x50], 0x5fbc5c
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055abea
mov esp, ebp
pop ebp
ret
Function at 0x40c340
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x615000]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x41c], 0
xor eax, eax
mov word [ebp - 0x418], ax
push 0x206
push 0
lea ecx, [ebp - 0x416]
push ecx
call fcn.00562540
add esp, 0xc
xor edx, edx
mov word [ebp - 0x42c], dx
xor eax, eax
mov dword [ebp - 0x42a], eax
mov dword [ebp - 0x426], eax
mov dword [ebp - 0x422], eax
mov word [ebp - 0x41e], ax
lea ecx, [ebp - 0x42c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0x426]
push edx
movzx eax, word [ebp - 0x42a]
push eax
movzx ecx, word [ebp - 0x42c]
push ecx
push str.HBC_Common___d__02d__02d.ini
push 0x104
lea edx, [ebp - 0x418]
push edx
call fcn.0055bfd9
add esp, 0x18
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x40c3ee
xor eax, eax
jmp 0x40c4c7
xor eax, eax
mov word [ebp - 0x210], ax
push 0x1fe
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.00562540
add esp, 0xc
push 0x207
lea edx, [ebp - 0x210]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x5fc048
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40c460
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea ecx, [ebp - 0x418]
push ecx
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x40c4b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x5fc058
push str.InitializeCommonLogger
call fcn.0040c050
add esp, 0xc
xor eax, eax
jmp 0x40c4c7
mov ecx, dword [ebp - 8]
mov dword [0x63a630], ecx
mov eax, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0055abea
mov esp, ebp
pop ebp
ret
Function at 0x40c4e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x615000]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x41c], 0
xor eax, eax
mov word [ebp - 0x418], ax
push 0x206
push 0
lea ecx, [ebp - 0x416]
push ecx
call fcn.00562540
add esp, 0xc
xor edx, edx
mov word [ebp - 0x42c], dx
xor eax, eax
mov dword [ebp - 0x42a], eax
mov dword [ebp - 0x426], eax
mov dword [ebp - 0x422], eax
mov word [ebp - 0x41e], ax
lea ecx, [ebp - 0x42c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0x426]
push edx
movzx eax, word [ebp - 0x42a]
push eax
movzx ecx, word [ebp - 0x42c]
push ecx
push str.HBC_Error___d__02d__02d.ini
push 0x104
lea edx, [ebp - 0x418]
push edx
call fcn.0055bfd9
add esp, 0x18
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x40c58e
xor eax, eax
jmp 0x40c667
xor eax, eax
mov word [ebp - 0x210], ax
push 0x1fe
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.00562540
add esp, 0xc
push 0x207
lea edx, [ebp - 0x210]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.Logs
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40c600
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea ecx, [ebp - 0x418]
push ecx
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x40c659
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WAR:_Create_debug_file_faild__err_d_
push str.InitializeErrorLogger
call fcn.0040c050
add esp, 0xc
xor eax, eax
jmp 0x40c667
mov ecx, dword [ebp - 8]
mov dword [0x63a634], ecx
mov eax, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0055abea
mov esp, ebp
pop ebp
ret