joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458970
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a2a2
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 0x4589d4
lea eax, [ebp - 0x94]
push eax
call fcn.00458250
add esp, 4
jmp 0x458a28
push str.Socket::_static_getLocalPort:_error_getting_socket_info
lea ecx, [ebp - 0xd8]
call fcn.0040cd80
mov dword [ebp - 4], 0
call fcn.00458240
push eax
lea ecx, [ebp - 0xd8]
push ecx
push 4
lea ecx, [ebp - 0xbc]
call fcn.004190d0
push 0x48231c
lea edx, [ebp - 0xbc]
push edx
call fcn.00439440
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd8]
call fcn.0040dc10
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 0x458a50
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a5c6
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 0x458ac7
push str.read
lea ecx, [ebp - 0x2c]
call fcn.0040cd80
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00458850
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040dc10
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 0x458ae0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a5f4
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 0x458b5b
push str.Socket::send:_Expected_client_socket__socket_with_host_and_port_target_
lea ecx, [ebp - 0x54]
call fcn.0040cd80
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0x54]
push ecx
push 0xf
lea ecx, [ebp - 0x38]
call fcn.004190d0
push 0x48231c
lea edx, [ebp - 0x38]
push edx
call fcn.00439440
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.0040dc10
mov eax, dword [ebp - 0x98]
cmp dword [eax + 0x40], 1
jne 0x458b90
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.00458580
jmp 0x458c28
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
jae 0x458c28
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 0x458c1a
push str.Error_sending_data
lea ecx, [ebp - 0x94]
call fcn.0040cd80
mov dword [ebp - 4], 1
call fcn.00458240
push eax
lea edx, [ebp - 0x94]
push edx
push 8
lea ecx, [ebp - 0x78]
call fcn.004190d0
push 0x48231c
lea eax, [ebp - 0x78]
push eax
call fcn.00439440
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0040dc10
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
jmp 0x458b97
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x45a9d0
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 0x45aa1c
mov edx, dword [ebp - 4]
mov byte [edx + 0x34], 1
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0x419520
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 0x45aa1c
mov eax, dword [ebp - 4]
mov byte [eax + 0x34], 0
xor eax, eax
jmp 0x45aa21
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x45b790
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 0x45b8b4
cmp dword [ebp + 8], 0
jne 0x45b7c4
cmp dword [ebp + 0xc], 0
jne 0x45b7c4
xor al, al
jmp 0x45b8ca
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
cmp dword [ebp + 8], 0
je 0x45b7e7
mov edx, dword [ebp + 8]
push edx
call fcn.00431a18
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], 0
je 0x45b7fc
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 0x45b857
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 0x45b880
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 0x45b410
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 0x45b8be
xor al, al
jmp 0x45b8ca
mov ecx, dword [ebp - 4]
push ecx
call fcn.0045b540
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x45b8d0
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 0x45ba47
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0xc], eax
mov edx, 1
mov word [ebp - 4], dx
jmp 0x45b927
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 0x45ba42
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x45b94a
mov ecx, dword [ebp - 0x14c]
call fcn.0045b3d0
cmp dword [ebp - 0xc], 0x80000000
jae 0x45b97a
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 0x45ba3d
mov eax, dword [ebp - 0xc]
and eax, 0xffff
movzx ecx, ax
shr ecx, 8
and ecx, 0xff
movzx edx, cl
cmp edx, 0xa
jb 0x45b9e2
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 0x45ba3d
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 0x45ba20
movzx eax, byte [ebp - 0xb8]
and eax, 0xfffffffe
mov byte [ebp - 0xb8], al
jmp 0x45ba30
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 0x45b91b
jmp 0x45badf
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 0x45ba73
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 0x45badf
movzx edx, byte [ebp + 0x14]
test edx, edx
je 0x45ba92
mov ecx, dword [ebp - 0x14c]
call fcn.0045b3d0
movzx eax, byte [ebp + 8]
push eax
call fcn.0045b6b0
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.0045b6f0
movzx ecx, byte [ebp + 0x10]
test ecx, ecx
je 0x45badd
push 3
movzx edx, byte [ebp - 6]
push edx
movzx eax, byte [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14c]
call fcn.0045b6f0
jmp 0x45ba67
mov ecx, dword [ebp - 0x48]
xor ecx, ebp
call fcn.004314f7
mov esp, ebp
pop ebp
ret 0x10
Function at 0x45baf0
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.0045b6b0
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.0045b6f0
mov esp, ebp
pop ebp
ret 4
Function at 0x45d130
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 0x45d213
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 0x45d206
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 0x45d1e7
jmp 0x45d1f7
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
jmp 0x45d204
push str.WriteFile__
mov ecx, dword [ebp + 8]
call fcn.0045c790
jmp 0x45d213
mov edx, dword [ebp + 8]
add edx, 8
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 8], 0
jne 0x45d25d
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 0x45d25d
push str.GetOverlappedResults___in_WriteFile__
mov ecx, dword [ebp + 8]
call fcn.0045c790
mov esp, ebp
pop ebp
ret

Function at 0x45d560
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 0x45d270
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 0x45d591
xor eax, eax
jmp 0x45d596
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x45d880
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 0x45d8e1
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 0x45d8e1
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 0x45d900
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 0x45d922
jmp 0x45d957
lea ecx, [ebp - 0x10]
push ecx
push 0x47caec
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 0x45d9e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
jne 0x45da08
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 0x45da08
xor eax, eax
jmp 0x45da62
cmp dword [ebp + 0xc], 0
je 0x45da5f
cmp dword [ebp + 0x10], 0
je 0x45da24
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 0x45da4e
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 0x45da55
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 0x45ddd0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46aa68
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 0x45de1e
jmp 0x45dec2
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 0x45de4e
mov edx, dword [ebp - 0x250]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x45dec2
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x22c]
cmp ecx, dword [eax + 0x54]
jne 0x45de9e
lea ecx, [ebp - 0x26c]
call fcn.004156d0
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.00415c10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x26c]
call fcn.00419570
lea ecx, [ebp - 0x244]
push ecx
mov edx, dword [ebp - 0x250]
push edx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x45de4e
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 0x45dee0
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 0x45dc10
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x48], 0
jne 0x45df2f
mov edx, dword [ebp + 8]
mov byte [edx], 1
mov ecx, dword [ebp + 8]
add ecx, 0x78
call fcn.00415bf0
test eax, eax
jne 0x45df2f
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.0045ddd0
mov ecx, dword [ebp + 8]
push ecx
push 0x45dc10
call dword [sym.imp.USER32.dll_EnumWindows]
mov esp, ebp
pop ebp
ret 4
Function at 0x45f040
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.004154d0
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 0x470858
mov edx, dword [ebp + 0xc]
push edx
call fcn.00415640
add esp, 8
test eax, eax
je 0x45f0f2
mov eax, dword [ebp + 8]
sub eax, 0x38
je 0x45f0dd
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x80c], ecx
jmp 0x45f0e7
mov dword [ebp - 0x80c], 0
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x80c]
mov dword [edx], eax
push 0x4708c8
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00415640
add esp, 8
test eax, eax
je 0x45f132
mov edx, dword [ebp + 8]
sub edx, 0x38
je 0x45f11d
mov eax, dword [ebp + 8]
add eax, 8
mov dword [ebp - 0x810], eax
jmp 0x45f127
mov dword [ebp - 0x810], 0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x810]
mov dword [ecx], edx
push 0x4708e8
mov eax, dword [ebp + 0xc]
push eax
call fcn.00415640
add esp, 8
test eax, eax
je 0x45f172
mov ecx, dword [ebp + 8]
sub ecx, 0x38
je 0x45f15d
mov edx, dword [ebp + 8]
add edx, 4
mov dword [ebp - 0x814], edx
jmp 0x45f167
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 0x45f244
push 0x4708a8
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00415640
add esp, 8
test eax, eax
je 0x45f1c4
mov edx, dword [ebp + 8]
sub edx, 0x38
je 0x45f1af
mov eax, dword [ebp + 8]
add eax, 0xc
mov dword [ebp - 0x818], eax
jmp 0x45f1b9
mov dword [ebp - 0x818], 0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x818]
mov dword [ecx], edx
push 0x470888
mov eax, dword [ebp + 0xc]
push eax
call fcn.00415640
add esp, 8
test eax, eax
je 0x45f204
mov ecx, dword [ebp + 8]
sub ecx, 0x38
je 0x45f1ef
mov edx, dword [ebp + 8]
add edx, 0x10
mov dword [ebp - 0x81c], edx
jmp 0x45f1f9
mov dword [ebp - 0x81c], 0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x81c]
mov dword [eax], ecx
push 0x470878
mov edx, dword [ebp + 0xc]
push edx
call fcn.00415640
add esp, 8
test eax, eax
je 0x45f244
mov eax, dword [ebp + 8]
sub eax, 0x38
je 0x45f22f
mov ecx, dword [ebp + 8]
add ecx, 0x10
mov dword [ebp - 0x820], ecx
jmp 0x45f239
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 0x45f25e
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 0x45f263
mov eax, 0x80004002
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004314f7
mov esp, ebp
pop ebp
ret 0xc
Function at 0x465fc0
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 0x465ff2
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x466012
call fcn.00462590
call fcn.00465940
call fcn.00462160
call fcn.004622a0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4694c0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a2d5
mov eax, dword fs:[0]
push eax
sub esp, 0x1d8
mov eax, dword [0x48948c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x1a4]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x46954e
push str.Library_inicialization_failed
lea ecx, [ebp - 0x1e4]
call fcn.0040cd80
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0x1e4]
push ecx
push 2
lea ecx, [ebp - 0x1c8]
call fcn.004190d0
push 0x48231c
lea edx, [ebp - 0x1c8]
push edx
call fcn.00439440
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1e4]
call fcn.0040dc10
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 0x4b6450
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
push esi
push edi
push ecx
mov edi, eax
mov esi, dword [esp + 0x10]
mov eax, 0xa46de6
xor esi, eax
sub esi, eax
and esi, 0xffff
call 0x4b6471
pop eax
sub eax, 0x135
add esi, eax
mov ecx, dword [esp + 0x14]
mov eax, dword [esi]
inc esi
push edi
mov ah, byte [esi]
xor ah, al
mov byte [edi], ah
inc esi
ror al, 1
inc edi
dec ecx
jne 0x4b6481
pop eax
pop ecx
pop edi
pop esi
ret

Function at 0x4b663a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov eax, esi
add eax, dword [esi + 0x3c]
mov edi, esi
add edi, dword [eax + 0x78]
lea eax, [ebx*4]
add eax, dword [edi + 0x20]
mov edx, dword [eax + esi]
lea eax, [esi + edx]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.004b6600
test eax, eax
jne 0x4b66a9
mov ebx, 0
cmp ebx, dword [edi + 0x18]
jae 0x4b66c6
lea eax, [ebx*4]
add eax, dword [edi + 0x20]
mov edx, dword [eax + esi]
lea eax, [esi + edx]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.004b6600
test eax, eax
je 0x4b66c0
lea eax, [ebx + ebx]
add eax, dword [edi + 0x24]
movzx eax, word [eax + esi]
shl eax, 2
add eax, dword [edi + 0x1c]
add esi, dword [eax + esi]
mov eax, esi
jmp 0x4b66cb
inc ebx
cmp ebx, dword [edi + 0x18]
jb 0x4b6686
mov eax, 0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret