joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4086f0
Capabilities:
Delete service
Stop service

Disassembly:
mov eax, 0x1020
call fcn.0041a280
mov eax, dword [0x4398b0]
xor eax, esp
mov dword [esp + 0x101c], eax
push ebx
push ebp
push esi
push edi
push 0xf003f
xor ebp, ebp
push ebp
push ebp
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x40874b
push 1
lea ebx, [edi + 0x40]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x408740
push eax
mov ebp, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebp, ebp
jne 0x408755
mov eax, 1
jmp 0x4088e6
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x4087af
push 0x400
lea eax, [esp + 0x30]
push eax
push 0xd80a
call fcn.00407a50
add esp, 0xc
test eax, eax
jne 0x4087a2
push str.Could_not_open_Service_Manager
lea ecx, [esp + 0x30]
push 0x400
push ecx
call fcn.0041a8d5
push eax
call fcn.00401460
add esp, 0x10
push 0
push ebx
lea edx, [esp + 0x34]
push edx
jmp 0x4088dc
push 0x10020
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x40880d
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x400
lea eax, [esp + 0x30]
push eax
push 0xd80c
call fcn.00407a50
add esp, 0xc
test eax, eax
jne 0x4087a2
push str.Could_not_open_service
lea ecx, [esp + 0x30]
push 0x400
push ecx
call fcn.0041a8d5
push eax
call fcn.00401460
add esp, 0x10
push esi
push ebx
lea edx, [esp + 0x34]
push edx
jmp 0x4088dc
lea eax, [esp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x40887c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x40887c
cmp eax, 0x425
jne 0x40883a
cmp dword [esp + 0x14], 3
je 0x40887c
push 0x400
lea ecx, [esp + 0x30]
push ecx
push 0xd80e
call fcn.00407a50
add esp, 0xc
test eax, eax
jne 0x40886c
push str.Could_not_stop_service
lea edx, [esp + 0x30]
push 0x400
push edx
call fcn.00407a10
add esp, 0xc
push 0
push ebx
lea eax, [esp + 0x34]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebp, eax
call esi
push edi
call esi
test ebp, ebp
jne 0x40874b
push 0x400
lea ecx, [esp + 0x830]
push ecx
push 0xd80d
call fcn.00407a50
add esp, 0xc
test eax, eax
jne 0x4088d1
push str.Could_not_delete_service
lea edx, [esp + 0x830]
push 0x400
push edx
call fcn.00407a10
add esp, 0xc
push 0
push ebx
lea eax, [esp + 0x834]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov ecx, dword [esp + 0x102c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00419e61
add esp, 0x1020
ret
Function at 0x408d70
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
mov dword [esi + 0x30], eax
jne 0x408d8c
pop esi
pop ecx
ret
push edi
lea eax, [esp + 8]
push eax
push 0
push esi
push 0x408900
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x408db4
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x409880
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x1c
push edi
mov edi, ecx
call fcn.004086f0
test eax, eax
jne 0x40989b
mov eax, 0x80004005
pop edi
add esp, 0x1c
ret 4
mov ecx, dword [0x43a880]
push ebx
lea eax, [esp + 0x14]
push eax
push 1
push 0x65
xor ebx, ebx
push ecx
mov dword [esp + 0x24], str.APPID
mov dword [esp + 0x28], str.29423E88_D05F_477B_A0C2_E7BB802FEB54
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.00406400
cmp eax, ebx
jl 0x4099d3
push esi
push 0x20006
push str.AppID
push SysReAllocStringLen
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebx
call fcn.00401970
cmp eax, ebx
je 0x409919
push eax
call fcn.00401720
mov esi, eax
mov eax, dword [esp + 0x10]
add esp, 4
cmp eax, ebx
je 0x40990e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
pop edi
add esp, 0x1c
ret 4
mov esi, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.29423E88_D05F_477B_A0C2_E7BB802FEB54
push esi
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x40999d
mov eax, dword [esp + 0x10]
push str.LocalService
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp byte [esp + 0x2c], bl
je 0x4099be
push 1
lea ecx, [edi + 0x40]
push ecx
push str.LocalService
lea ecx, [esp + 0x1c]
call fcn.004019e0
mov ecx, edi
call fcn.00408550
test eax, eax
jne 0x4099be
lea ecx, [esp + 0x10]
call fcn.00402760
lea ecx, [esp + 0xc]
call fcn.00402760
pop esi
pop ebx
mov eax, 0x80004005
pop edi
add esp, 0x1c
ret 4
push eax
call fcn.00401720
add esp, 4
cmp esi, ebx
mov edi, eax
je 0x4099b3
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov eax, edi
pop edi
add esp, 0x1c
ret 4
lea ecx, [esp + 0x10]
call fcn.00402760
lea ecx, [esp + 0xc]
call fcn.00402760
xor eax, eax
pop esi
pop ebx
pop edi
add esp, 0x1c
ret 4
Function at 0x4099f0
Capabilities:
Delete registry value

Disassembly:
sub esp, 8
call fcn.004086f0
test eax, eax
jne 0x409a05
mov eax, 0x80004005
add esp, 8
ret
push ebx
lea eax, [esp + 8]
push eax
push 0x20006
xor ebx, ebx
push ebx
push str.AppID
push SysReAllocStringLen
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x409a7d
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0x20006
push str.29423E88_D05F_477B_A0C2_E7BB802FEB54
push eax
lea ecx, [esp + 0x1c]
mov ebp, eax
mov dword [esp + 0x1c], ebx
call fcn.00401970
cmp eax, ebx
je 0x409a8b
push eax
call fcn.00401720
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, ebx
je 0x409a6c
push eax
call edi
cmp ebp, ebx
je 0x409a73
push ebp
call edi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push eax
call fcn.00401720
add esp, 4
pop ebx
add esp, 8
ret
mov esi, dword [esp + 0x10]
push str.LocalService
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push ebx
call fcn.00409760
test esi, esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
je 0x409ab0
push esi
call edi
test ebp, ebp
je 0x409ab7
push ebp
call edi
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 8
ret
Function at 0x410f60
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x428e18
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x4398b0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
lea ecx, [esp + 0xc]
or edi, 0xffffffff
call fcn.00414c70
mov eax, dword [0x43acd4]
push 0x20019
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0
call fcn.00414c90
mov esi, eax
test esi, esi
je 0x410fea
mov eax, dword [0x43acd8]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push 0
push eax
push esi
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410fe3
mov edi, dword [esp + 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.00414c80
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret
Function at 0x411c80
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x428fc8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4398b0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x1c]
push eax
call fcn.00411960
push 0x43acdc
push eax
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x3c], 0
call fcn.0040d040
add esp, 0xc
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x30], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411cf2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.00411ad0
mov eax, dword [esp + 0x18]
push ecx
add eax, 0xfffffff0
mov bl, 3
mov dword [esp + 0x24], esp
mov edi, esp
push eax
mov byte [esp + 0x38], bl
call fcn.004010e0
add eax, 0x10
mov dword [edi], eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
mov edi, esp
push eax
mov byte [esp + 0x3c], 4
call fcn.004010e0
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov ecx, 0x43ace0
mov byte [esp + 0x38], bl
call fcn.004138f0
mov edx, dword [esp + 0x38]
push edx
mov byte [esp + 0x17], al
lea eax, [esp + 0x3c]
push 0x4306e8
push eax
call fcn.00411270
add esp, 0xc
lea ecx, [esi + 0x34]
push eax
mov byte [esp + 0x34], 5
call fcn.004012d0
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x30], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411d98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
mov bl, byte [esp + 0x13]
add eax, 0xfffffff0
mov byte [esi + 0x30], bl
mov byte [esp + 0x30], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411dc4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411dec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret 4
Function at 0x414cf0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push edi
xor edi, edi
cmp ebx, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edi
je 0x414daf
mov ebp, dword [esp + 0x1c]
cmp ebp, edi
je 0x414daf
mov ecx, dword [esp + 0x20]
push esi
lea eax, [esp + 0x10]
push eax
push edi
push ecx
push edi
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x414d9d
mov edx, dword [esp + 0x10]
add edx, 1
push edx
call fcn.0041a6b2
mov edi, eax
add esp, 4
test edi, edi
je 0x414d98
mov eax, dword [esp + 0x10]
add eax, 1
push eax
push esi
push edi
call fcn.0041a6c0
add esp, 0xc
cmp dword [esp + 0x10], esi
jbe 0x414d9d
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x10]
push ecx
push edi
push edx
push esi
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x414d9d
push edi
call fcn.0041a2ab
mov eax, dword [esp + 0x18]
add esp, 4
xor edi, edi
mov dword [eax], esi
pop esi
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 8
ret 0xc
mov esi, 0xe
mov eax, dword [esp + 0x14]
mov dword [eax], esi
pop esi
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 8
ret 0xc
mov eax, edi
pop edi
pop ebp
mov dword [ecx], 0x57
pop ebx
add esp, 8
ret 0xc

Function at 0x414f50
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429480
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4398b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 4], ebx
mov dword [ebp - 4], ebx
je 0x414f98
push 0x434d48
lea eax, [ebp - 0x11]
push eax
mov byte [ebp - 0x11], bl
call fcn.00419a0b
mov eax, dword [esi + 8]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x414fbc
push 0x434d48
lea ecx, [ebp - 0x12]
push ecx
mov byte [ebp - 0x12], bl
call fcn.00419a0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x415002
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
push 0x434d48
lea ecx, [ebp - 0x13]
push ecx
mov byte [ebp - 0x13], bl
call fcn.00419a0b
mov byte [ebp - 0x14], 0
mov eax, 0x414fed
ret
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x415020
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
mov esi, ecx
xor bl, bl
cmp dword [esi + 4], 0
jne 0x41503d
mov eax, dword [esi + 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x41507e
mov ecx, dword [esi + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ecx
push eax
call edi
test eax, eax
je 0x415078
cmp eax, 0x80
jne 0x415069
mov ecx, dword [esi + 4]
push 0
push ecx
call edi
test eax, eax
je 0x415072
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
pop edi
pop esi
mov al, bl
pop ebx
ret
pop edi
pop esi
mov al, 1
pop ebx
ret
pop esi
mov al, bl
pop ebx
ret
Function at 0x415340
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x428e59
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4398b0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov eax, dword [0x43b968]
mov edx, dword [eax + 0xc]
mov ecx, 0x43b968
mov dword [esp + 0x1c], ebx
call edx
mov esi, dword [esp + 0x24]
add eax, 0x10
mov dword [esi], eax
mov edx, dword [esp + 0x28]
mov edi, dword [edx]
mov ecx, 1
mov dword [esp + 0x10], ecx
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x201
or eax, ecx
mov dword [esp + 0x1c], ebx
jge 0x4153b4
push 0x201
mov ecx, esi
call fcn.004011c0
mov eax, dword [esi]
mov ecx, dword [esp + 0x2c]
mov ecx, dword [ecx]
mov edx, dword [0x43ad14]
push edi
push 0x200
push eax
push 0x42f8f4
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esi]
cmp dword [eax - 8], 0x201
jl 0x415408
mov dword [eax - 0xc], 0x201
mov eax, dword [esi]
mov word [eax + 0x402], bx
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0xc
push 0x80070057
call fcn.00401000
int3
Function at 0x4155a0
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x3e84]
mov eax, 0x3e84
call fcn.0041a280
push 0xffffffffffffffff
push 0x4295a1
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4398b0]
xor eax, ebp
mov dword [ebp + 0x3e80], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0x3e8c]
mov edi, dword [ebp + 0x3e90]
mov ebx, dword [ebp + 0x3e94]
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
mov eax, dword [0x43b968]
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x18], ecx
mov ecx, 0x43b968
mov dword [ebp - 0x1c], esi
call edx
add eax, 0x10
mov dword [esi], eax
mov eax, 1
push 0x3e7e
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
lea eax, [ebp + 2]
push 0
push eax
mov word [ebp], 0
call fcn.0041a6c0
mov edi, dword [edi]
mov ebx, dword [ebx]
add esp, 0xc
push edi
push 0x1f40
lea ecx, [ebp]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
cmp eax, 0x1f3e
jne 0x415666
push 0x434d48
lea edx, [ebp - 0x12]
push edx
mov byte [ebp - 0x12], 0
call fcn.00419a0b
push eax
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.004154c0
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004012d0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4156a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
sete al
cmp al, 1
jne 0x4156db
push 0x434d48
lea edx, [ebp - 0x11]
push edx
mov byte [ebp - 0x11], 0
call fcn.00419a0b
mov ecx, dword [ebp - 0x1c]
push 0x42f8f4
call fcn.00401350
mov eax, 0x4156d8
ret
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x3e80]
xor ecx, ebp
call fcn.00419e61
add ebp, 0x3e84
mov esp, ebp
pop ebp
ret 0xc
Function at 0x416160
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x4296c1
mov eax, dword fs:[0]
push eax
sub esp, 0x920
mov eax, dword [0x4398b0]
xor eax, esp
mov dword [esp + 0x91c], eax
push ebp
push esi
push edi
mov eax, dword [0x4398b0]
xor eax, esp
push eax
lea eax, [esp + 0x930]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x948]
mov edx, dword [esp + 0x944]
mov esi, dword [esp + 0x940]
lea eax, [esp + 0x94c]
push eax
push ecx
push edx
lea ecx, [esi + 4]
call fcn.00416e10
cmp byte [esi + 0x10], 0
je 0x416396
mov eax, dword [0x43b968]
mov edx, dword [eax + 0xc]
mov ecx, 0x43b968
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x948]
lea eax, [esp + 0x94c]
push eax
push ecx
push 0x400
lea edx, [esp + 0x138]
push edx
mov dword [esp + 0x948], 0
call fcn.004158f0
lea eax, [esp + 0x12c]
lea edx, [eax + 2]
jmp 0x416220
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416220
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x130]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401230
lea ecx, [esp + 0x2c]
mov dword [esp + 0x28], ecx
call dword [0x43a860]
mov edx, dword [esp + 0x14]
push eax
push edx
lea ecx, [esp + 0x30]
call fcn.00415b20
mov eax, dword [esp + 0x28]
test eax, eax
mov byte [esp + 0x938], 1
je 0x41635a
mov edx, SysReAllocString
mov ecx, eax
lea esp, [esp]
cmp byte [ecx], 0
je 0x416292
add ecx, 1
sub edx, 1
jne 0x416280
jmp 0x41635a
test edx, edx
je 0x41635a
push eax
lea ecx, [esp + 0x14]
call fcn.00415f60
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x93c], 2
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x80
lea ecx, [esp + 0xb0]
push ecx
push 0
lea edx, [esp + 0x24]
push edx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
sub esp, 0x84
mov edi, esp
push eax
push ebp
lea eax, [esp + 0x138]
push eax
mov ecx, 0x21
lea esi, [esp + 0xb8]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xa0]
push str._s_:__0x_X_0x_X___s
push ecx
call fcn.00415f40
mov edx, dword [esp + 0xa8]
add esp, 0x98
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x938], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416356
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
cmp eax, ecx
je 0x41636b
push eax
call fcn.00419f82
add esp, 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x938], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x416396
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x930]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x91c]
xor ecx, esp
call fcn.00419e61
add esp, 0x92c
ret
Function at 0x4165c8
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
mov esi, ecx
cmp dword [esi + 4], 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x416635
mov ebx, dword [esp + 0x14]
push ebx
call ebp
test ebx, ebx
mov dword [esi + 4], eax
je 0x416631
push str.DebugOpen
push eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
push str.DebugClose
push eax
call edi
mov ecx, dword [esi + 4]
push str.TraceWrite
push ecx
mov dword [esi + 0x10], eax
call edi
mov edx, dword [esi + 4]
push str.DumpWrite
push edx
mov dword [esi + 0x14], eax
call edi
cmp dword [esi + 0xc], 0
mov dword [esi + 0x18], eax
je 0x416631
cmp dword [esi + 0x10], 0
je 0x416631
cmp dword [esi + 0x14], 0
je 0x416631
test eax, eax
jne 0x416635
xor ebx, ebx
jmp 0x41663a
mov ebx, 1
cmp dword [esi + 8], 0
jne 0x41669d
mov eax, dword [esp + 0x18]
push eax
call ebp
test eax, eax
mov dword [esi + 8], eax
je 0x416699
push str.DebugOpen
push eax
call edi
mov ecx, dword [esi + 8]
push str.DebugClose
push ecx
mov dword [esi + 0x1c], eax
call edi
mov edx, dword [esi + 8]
push str.TraceWrite
push edx
mov dword [esi + 0x20], eax
call edi
mov dword [esi + 0x24], eax
mov eax, dword [esi + 8]
push str.DumpWrite
push eax
call edi
cmp dword [esi + 0x1c], 0
mov dword [esi + 0x28], eax
je 0x416699
cmp dword [esi + 0x20], 0
je 0x416699
cmp dword [esi + 0x24], 0
je 0x416699
test eax, eax
jne 0x41669d
xor eax, eax
jmp 0x4166a2
mov eax, 1
test ebx, ebx
je 0x4166a8
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x4169f0
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0
jne 0x416abc
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [esi + 4], eax
je 0x416ab6
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenA
push eax
call edi
mov ecx, dword [esi + 4]
push str.CloseA
push ecx
mov dword [esi + 8], eax
call edi
mov edx, dword [esi + 4]
push str.TraceWriteA
push edx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 4]
push str.DumpWriteA
push eax
call edi
mov ecx, dword [esi + 4]
push str.OpenW
push ecx
mov dword [esi + 0x14], eax
call edi
mov edx, dword [esi + 4]
push str.CloseW
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 4]
push str.TraceWriteW
push eax
call edi
mov ecx, dword [esi + 4]
push str.DumpWriteW
push ecx
mov dword [esi + 0x20], eax
call edi
cmp dword [esi + 8], 0
mov dword [esi + 0x24], eax
pop edi
je 0x416ab6
cmp dword [esi + 0xc], 0
je 0x416ab6
cmp dword [esi + 0x10], 0
je 0x416ab6
cmp dword [esi + 0x14], 0
je 0x416ab6
cmp dword [esi + 0x18], 0
je 0x416ab6
cmp dword [esi + 0x1c], 0
je 0x416ab6
cmp dword [esi + 0x20], 0
je 0x416ab6
test eax, eax
jne 0x416abc
xor eax, eax
pop esi
ret 4
mov eax, 1
pop esi
ret 4

Function at 0x419e61
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4398b0]
jne 0x419e6b
repz ret
jmp fcn.0041d8fc