joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457b70
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x48948c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 2
jne 0x457bd2
push 0x10
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.00431a40
add esp, 0xc
mov ecx, 2
mov word [ebp - 0x14], cx
push 4
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x10]
push eax
call fcn.004348d0
add esp, 0xc
push 2
push 0
push 0
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0x10
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.WS2_32.dll_getnameinfo]
mov eax, dword [ebp + 0x10]
jmp 0x457c24
cmp dword [ebp + 8], 0x17
jne 0x457c22
push 0x1c
push 0
lea ecx, [ebp - 0x30]
push ecx
call fcn.00431a40
add esp, 0xc
mov edx, 0x17
mov word [ebp - 0x30], dx
push 0x10
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.004348d0
add esp, 0xc
push 2
push 0
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0x1c
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.WS2_32.dll_getnameinfo]
mov eax, dword [ebp + 0x10]
jmp 0x457c24
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004314f7
mov esp, ebp
pop ebp
ret

Function at 0x457ce0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x469e89
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x48948c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x58], ecx
mov eax, dword [ebp - 0x58]
mov cl, byte [ebp + 8]
mov byte [eax + 0x4c], cl
mov dword [ebp - 0x14], 0xffffffff
movzx edx, byte [ebp + 8]
neg edx
sbb edx, edx
add edx, 1
mov dword [ebp - 0x10], edx
lea eax, [ebp - 0x10]
push eax
push 0x8004667e
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 0x54]
push edx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x457d4c
mov dword [ebp - 0x14], 0xffffffff
cmp dword [ebp - 0x14], 0xffffffff
jne 0x457d97
push str.Socket::blocking:_ioctl_error
lea ecx, [ebp - 0x54]
call fcn.0040cda0
mov dword [ebp - 4], 0
call fcn.00457b20
push eax
lea eax, [ebp - 0x54]
push eax
push 0xa
lea ecx, [ebp - 0x38]
call fcn.00419170
push 0x4822c4
lea ecx, [ebp - 0x38]
push ecx
call fcn.00439440
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.0040dc00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x457db0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x469eac
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x48948c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x14], 0xffffffff
lea eax, [ebp - 0x14]
push eax
push 0x4004667f
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 0x54]
push edx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x457e43
push str.Socket::nextReadSize:_error_ioctl
lea ecx, [ebp - 0x54]
call fcn.0040cda0
mov dword [ebp - 4], 0
call fcn.00457b20
push eax
lea eax, [ebp - 0x54]
push eax
push 0xa
lea ecx, [ebp - 0x38]
call fcn.00419170
push 0x4822c4
lea ecx, [ebp - 0x38]
push ecx
call fcn.00439440
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.0040dc00
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x458250
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x469f72
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x48948c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x98], 0x80
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x94]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4582b4
lea eax, [ebp - 0x94]
push eax
call fcn.00457b30
add esp, 4
jmp 0x458308
push str.Socket::_static_getLocalPort:_error_getting_socket_info
lea ecx, [ebp - 0xd8]
call fcn.0040cda0
mov dword [ebp - 4], 0
call fcn.00457b20
push eax
lea ecx, [ebp - 0xd8]
push ecx
push 4
lea ecx, [ebp - 0xbc]
call fcn.00419170
push 0x4822c4
lea edx, [ebp - 0xbc]
push edx
call fcn.00439440
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd8]
call fcn.0040dc00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004314f7
mov esp, ebp
pop ebp
ret

Function at 0x458330
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a296
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x48948c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x54]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4583a7
push str.read
lea ecx, [ebp - 0x2c]
call fcn.0040cda0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00458130
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040dc00
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x4583c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a2c4
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x48948c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x98], ecx
mov eax, dword [ebp - 0x98]
cmp dword [eax + 0x48], 0
je 0x45843b
push str.Socket::send:_Expected_client_socket__socket_with_host_and_port_target_
lea ecx, [ebp - 0x54]
call fcn.0040cda0
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0x54]
push ecx
push 0xf
lea ecx, [ebp - 0x38]
call fcn.00419170
push 0x4822c4
lea edx, [ebp - 0x38]
push edx
call fcn.00439440
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.0040dc00
mov eax, dword [ebp - 0x98]
cmp dword [eax + 0x40], 1
jne 0x458470
mov ecx, dword [ebp - 0x98]
mov edx, dword [ecx + 0x38]
push edx
mov eax, dword [ebp - 0x98]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x98]
call fcn.00457e60
jmp 0x458508
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
jae 0x458508
push 0
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax + 0x54]
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x4584fa
push str.Error_sending_data
lea ecx, [ebp - 0x94]
call fcn.0040cda0
mov dword [ebp - 4], 1
call fcn.00457b20
push eax
lea edx, [ebp - 0x94]
push edx
push 8
lea ecx, [ebp - 0x78]
call fcn.00419170
push 0x4822c4
lea eax, [ebp - 0x78]
push eax
call fcn.00439440
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0040dc00
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
jmp 0x458477
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x45a2b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x34]
test ecx, ecx
jne 0x45a2fc
mov edx, dword [ebp - 4]
mov byte [edx + 0x34], 1
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0x4195c0
push 0
push 0
call fcn.00436e34
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x18], 0
jne 0x45a2fc
mov eax, dword [ebp - 4]
mov byte [eax + 0x34], 0
xor eax, eax
jmp 0x45a301
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x45b070
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x45b194
cmp dword [ebp + 8], 0
jne 0x45b0a4
cmp dword [ebp + 0xc], 0
jne 0x45b0a4
xor al, al
jmp 0x45b1aa
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
cmp dword [ebp + 8], 0
je 0x45b0c7
mov edx, dword [ebp + 8]
push edx
call fcn.00431a18
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], 0
je 0x45b0dc
mov eax, dword [ebp + 0xc]
push eax
call fcn.00431a18
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 8]
lea eax, [edx + ecx + 5]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00430800
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 8]
lea eax, [edx + ecx + 5]
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00431a40
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x45b137
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.00436d14
add esp, 8
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov word [eax + edx*2], cx
cmp dword [ebp + 0xc], 0
je 0x45b160
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
lea ecx, [eax + edx*2 + 2]
push ecx
call fcn.00436d14
add esp, 8
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
lea eax, [ebp - 0x14]
push eax
push 0x45acf0
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.00431aba
add esp, 4
cmp dword [ebp - 4], 0
jne 0x45b19e
xor al, al
jmp 0x45b1aa
mov ecx, dword [ebp - 4]
push ecx
call fcn.0045ae20
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x45b1b0
Capabilities:
Check os version
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x48948c]
xor eax, ebp
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x14c], ecx
xor eax, eax
mov word [ebp - 4], ax
mov byte [ebp - 6], 0
mov byte [ebp - 5], 0
movzx ecx, byte [ebp + 8]
cmp ecx, 0x90
jne 0x45b327
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0xc], eax
mov edx, 1
mov word [ebp - 4], dx
jmp 0x45b207
mov ax, word [ebp - 4]
add ax, 1
mov word [ebp - 4], ax
movzx ecx, word [ebp - 4]
movzx edx, word [ebp + 0xc]
cmp ecx, edx
jg 0x45b322
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x45b22a
mov ecx, dword [ebp - 0x14c]
call fcn.0045acb0
cmp dword [ebp - 0xc], 0x80000000
jae 0x45b25a
push 0
push 1
push 0x45
movzx ecx, byte [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_keybd_event]
push 0
push 3
push 0x45
movzx edx, byte [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_keybd_event]
jmp 0x45b31d
mov eax, dword [ebp - 0xc]
and eax, 0xffff
movzx ecx, ax
shr ecx, 8
and ecx, 0xff
movzx edx, cl
cmp edx, 0xa
jb 0x45b2c2
mov dword [ebp - 0x44], 0
push 0x34
push 0
lea eax, [ebp - 0x40]
push eax
call fcn.00431a40
add esp, 0xc
mov dword [ebp - 0x28], 1
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x44], ecx
movzx dx, byte [ebp + 8]
mov word [ebp - 0x24], dx
mov ax, word [ebp - 0x24]
mov word [ebp - 0x40], ax
mov dword [ebp - 0x20], 2
push 0x1c
lea ecx, [ebp - 0x44]
push ecx
push 2
call dword [sym.imp.USER32.dll_SendInput]
jmp 0x45b31d
push 0x90
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
and edx, 1
setne al
mov byte [ebp - 5], al
lea ecx, [ebp - 0x148]
push ecx
call dword [sym.imp.USER32.dll_GetKeyboardState]
movzx edx, byte [ebp - 5]
test edx, edx
je 0x45b300
movzx eax, byte [ebp - 0xb8]
and eax, 0xfffffffe
mov byte [ebp - 0xb8], al
jmp 0x45b310
movzx ecx, byte [ebp - 0xb8]
or ecx, 1
mov byte [ebp - 0xb8], cl
lea edx, [ebp - 0x148]
push edx
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x45b1fb
jmp 0x45b3bf
push 0
movzx eax, byte [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
and eax, 0xff
mov byte [ebp - 6], al
mov ecx, 1
mov word [ebp - 4], cx
jmp 0x45b353
mov dx, word [ebp - 4]
add dx, 1
mov word [ebp - 4], dx
movzx eax, word [ebp - 4]
movzx ecx, word [ebp + 0xc]
cmp eax, ecx
jg 0x45b3bf
movzx edx, byte [ebp + 0x14]
test edx, edx
je 0x45b372
mov ecx, dword [ebp - 0x14c]
call fcn.0045acb0
movzx eax, byte [ebp + 8]
push eax
call fcn.0045af90
add esp, 4
movzx ecx, al
neg ecx
sbb ecx, ecx
neg ecx
push ecx
movzx edx, byte [ebp - 6]
push edx
movzx eax, byte [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14c]
call fcn.0045afd0
movzx ecx, byte [ebp + 0x10]
test ecx, ecx
je 0x45b3bd
push 3
movzx edx, byte [ebp - 6]
push edx
movzx eax, byte [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14c]
call fcn.0045afd0
jmp 0x45b347
mov ecx, dword [ebp - 0x48]
xor ecx, ebp
call fcn.004314f7
mov esp, ebp
pop ebp
ret 0x10
Function at 0x45b3d0
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push 0
movzx eax, byte [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
and eax, 0xff
mov byte [ebp - 1], al
movzx ecx, byte [ebp + 8]
push ecx
call fcn.0045af90
add esp, 4
movzx edx, al
neg edx
sbb edx, edx
neg edx
or edx, 2
push edx
movzx eax, byte [ebp - 1]
push eax
movzx ecx, byte [ebp + 8]
push ecx
mov ecx, dword [ebp - 8]
call fcn.0045afd0
mov esp, ebp
pop ebp
ret 4
Function at 0x45ca10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 1
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x98]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [ebp + 8]
add ecx, 8
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp - 8], 0
je 0x45caf3
mov edx, dword [ebp + 8]
mov dword [edx + 0x44], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], 0
push 0xf
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov eax, dword [ebp + 8]
add eax, 0x3c
push eax
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x88]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x45cae6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0x3e5
je 0x45cac7
jmp 0x45cad7
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
jmp 0x45cae4
push str.WriteFile__
mov ecx, dword [ebp + 8]
call fcn.0045c070
jmp 0x45caf3
mov edx, dword [ebp + 8]
add edx, 8
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 8], 0
jne 0x45cb3d
mov dword [ebp - 8], 1
push 1
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x3c
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
add ecx, 8
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0xc], 0
jne 0x45cb3d
push str.GetOverlappedResults___in_WriteFile__
mov ecx, dword [ebp + 8]
call fcn.0045c070
mov esp, ebp
pop ebp
ret

Function at 0x45ce40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0x45cb50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
jne 0x45ce71
xor eax, eax
jmp 0x45ce76
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x45d160
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
push 0xf030
push 0x112
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 3
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
jne 0x45d1c1
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 3
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
jne 0x45d1c1
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esp, ebp
pop ebp
ret 4

Function at 0x45d1e0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x45d202
jmp 0x45d237
lea ecx, [ebp - 0x10]
push ecx
push 0x47cacc
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
push 0
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov esp, ebp
pop ebp
ret

Function at 0x45d2c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
jne 0x45d2e8
mov eax, dword [ebp + 0x14]
push eax
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x45d2e8
xor eax, eax
jmp 0x45d342
cmp dword [ebp + 0xc], 0
je 0x45d33f
cmp dword [ebp + 0x10], 0
je 0x45d304
push 0
push 0
push 0x10
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x45d32e
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
neg eax
sbb eax, eax
and eax, 2
mov dword [ebp - 4], eax
jmp 0x45d335
mov dword [ebp - 4], 1
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x14
Function at 0x45d6b0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a738
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x48948c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x270], ecx
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x250], 0xffffffff
jne 0x45d6fe
jmp 0x45d7a2
mov dword [ebp - 0x244], 0x22c
lea eax, [ebp - 0x244]
push eax
mov ecx, dword [ebp - 0x250]
push ecx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x45d72e
mov edx, dword [ebp - 0x250]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x45d7a2
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x22c]
cmp ecx, dword [eax + 0x54]
jne 0x45d77e
lea ecx, [ebp - 0x26c]
call fcn.00415640
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x23c]
mov dword [ebp - 0x254], edx
lea eax, [ebp - 0x26c]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x78
call fcn.00415b80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x26c]
call fcn.00419610
lea ecx, [ebp - 0x244]
push ecx
mov edx, dword [ebp - 0x250]
push edx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x45d72e
mov eax, dword [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004314f7
mov esp, ebp
pop ebp
ret 4

Function at 0x45d7c0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
push eax
push 0x45d4f0
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x48], 0
jne 0x45d80f
mov edx, dword [ebp + 8]
mov byte [edx], 1
mov ecx, dword [ebp + 8]
add ecx, 0x78
call fcn.00415b60
test eax, eax
jne 0x45d80f
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.0045d6b0
mov ecx, dword [ebp + 8]
push ecx
push 0x45d4f0
call dword [sym.imp.USER32.dll_EnumWindows]
mov esp, ebp
pop ebp
ret 4
Function at 0x45e920
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x48948c]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ole32.dll_StringFromCLSID]
xor edx, edx
mov word [ebp - 0x808], dx
push 0x7fe
push 0
lea eax, [ebp - 0x806]
push eax
call fcn.00431a40
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
push str.iid:_s_n
lea edx, [ebp - 0x808]
push edx
call fcn.00415440
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
push 0x470838
mov edx, dword [ebp + 0xc]
push edx
call fcn.004155b0
add esp, 8
test eax, eax
je 0x45e9d2
mov eax, dword [ebp + 8]
sub eax, 0x38
je 0x45e9bd
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x80c], ecx
jmp 0x45e9c7
mov dword [ebp - 0x80c], 0
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x80c]
mov dword [edx], eax
push 0x4708a8
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004155b0
add esp, 8
test eax, eax
je 0x45ea12
mov edx, dword [ebp + 8]
sub edx, 0x38
je 0x45e9fd
mov eax, dword [ebp + 8]
add eax, 8
mov dword [ebp - 0x810], eax
jmp 0x45ea07
mov dword [ebp - 0x810], 0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x810]
mov dword [ecx], edx
push 0x4708c8
mov eax, dword [ebp + 0xc]
push eax
call fcn.004155b0
add esp, 8
test eax, eax
je 0x45ea52
mov ecx, dword [ebp + 8]
sub ecx, 0x38
je 0x45ea3d
mov edx, dword [ebp + 8]
add edx, 4
mov dword [ebp - 0x814], edx
jmp 0x45ea47
mov dword [ebp - 0x814], 0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x814]
mov dword [eax], ecx
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x1d9]
test eax, eax
jne 0x45eb24
push 0x470888
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004155b0
add esp, 8
test eax, eax
je 0x45eaa4
mov edx, dword [ebp + 8]
sub edx, 0x38
je 0x45ea8f
mov eax, dword [ebp + 8]
add eax, 0xc
mov dword [ebp - 0x818], eax
jmp 0x45ea99
mov dword [ebp - 0x818], 0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x818]
mov dword [ecx], edx
push 0x470868
mov eax, dword [ebp + 0xc]
push eax
call fcn.004155b0
add esp, 8
test eax, eax
je 0x45eae4
mov ecx, dword [ebp + 8]
sub ecx, 0x38
je 0x45eacf
mov edx, dword [ebp + 8]
add edx, 0x10
mov dword [ebp - 0x81c], edx
jmp 0x45ead9
mov dword [ebp - 0x81c], 0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x81c]
mov dword [eax], ecx
push 0x470858
mov edx, dword [ebp + 0xc]
push edx
call fcn.004155b0
add esp, 8
test eax, eax
je 0x45eb24
mov eax, dword [ebp + 8]
sub eax, 0x38
je 0x45eb0f
mov ecx, dword [ebp + 8]
add ecx, 0x10
mov dword [ebp - 0x820], ecx
jmp 0x45eb19
mov dword [ebp - 0x820], 0
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x820]
mov dword [edx], eax
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0
je 0x45eb3e
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push edx
mov edx, dword [ecx + 4]
call edx
xor eax, eax
jmp 0x45eb43
mov eax, 0x80004002
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004314f7
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4656e0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push str.MTHUNTER_FTAPP_2015.07.09
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x465712
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x465732
call fcn.00461e70
call fcn.00465060
call fcn.00461a40
call fcn.00461b80
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10