joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a3ec
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x504bc3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
mov dword [ebp - 0x114], 0
push 0x100
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [ebp - 0x10]
call fcn.00401590
mov dword [ebp - 4], 1
lea edx, [ebp - 0x110]
push edx
push 0x546d64
lea eax, [ebp - 0x10]
push eax
call fcn.004d2181
add esp, 0xc
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004dc873
mov edx, dword [ebp - 0x114]
or edx, 1
mov dword [ebp - 0x114], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004dcafe
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x45a7a7
Capabilities:
Create process on windows
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x504c48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x18], ecx
mov eax, dword [0x554140]
add eax, 1
mov dword [0x554140], eax
push 0
push 0x45a4cc
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [0x554124], 1
jne 0x45a7ef
mov eax, 1
jmp 0x45a86b
push 0
push str.MxPhone2.exe
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [ebp - 0x10], eax
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x554140], 3
jge 0x45a81d
mov ecx, dword [ebp - 0x18]
call fcn.0045a7a7
jmp 0x45a85c
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x546d84
call fcn.004dcb6c
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0xffffffff
call fcn.004645ec
add esp, 8
mov dword [0x554140], 0
xor eax, eax
jmp 0x45a86b
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x20], 0x12e4a02
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x45b090
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x504ce3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x24]
add ecx, 0x1c
call fcn.00458a80
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x1c]
call fcn.004de39a
mov dword [ebp - 4], 0
push 0
push 0x1000
mov ecx, dword [ebp - 0x24]
add ecx, 0x1c
call fcn.00458a80
push eax
lea ecx, [ebp - 0x1c]
call fcn.004de54c
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004de48f
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x45b158
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x504d08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00401590
mov byte [ebp - 4], 2
push 0x554144
push 0x546d98
lea ecx, [ebp + 8]
call fcn.004d1a22
push 0x554148
push 0x546d9c
lea ecx, [ebp + 8]
call fcn.004d1a22
push 0x55414c
push 0x546da0
lea ecx, [ebp + 8]
call fcn.004d1a22
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x546da4
lea edx, [ebp - 0x10]
push edx
call fcn.004d2181
add esp, 0x10
push 0
push 0
lea ecx, [ebp - 0x10]
call fcn.00458a80
push eax
lea ecx, [ebp - 0x10]
call fcn.00458a80
push eax
push 0x546dbc
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.004dcafe
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004dcafe
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004dcafe
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x45b23c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x504d2d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00401590
mov byte [ebp - 4], 2
push 0x554150
push 0x546dc4
lea ecx, [ebp + 8]
call fcn.004d1a22
push 0x554154
push 0x546dc8
lea ecx, [ebp + 8]
call fcn.004d1a22
push 0x554158
push 0x546dcc
lea ecx, [ebp + 8]
call fcn.004d1a22
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x546dd0
lea edx, [ebp - 0x10]
push edx
call fcn.004d2181
add esp, 0x10
push 0
push 0
lea ecx, [ebp - 0x10]
call fcn.00458a80
push eax
lea ecx, [ebp - 0x10]
call fcn.00458a80
push eax
push str.Open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.004dcafe
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004dcafe
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004dcafe
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x46048f
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], 0x510124
push 0x40
push 0
mov ecx, dword [ebp - 4]
add ecx, 4
push ecx
call fcn.00472380
add esp, 0xc
mov edx, dword [ebp - 4]
mov dword [edx + 0x48], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x44], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x4c], 0x67452301
mov edx, dword [ebp - 4]
mov dword [edx + 0x50], 0xefcdab89
mov eax, dword [ebp - 4]
mov dword [eax + 0x54], 0x98badcfe
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x58], 0x10325476
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x462159
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
push 1
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
cmp dword [eax], 0xffffffff
jne 0x4621a3
xor al, al
jmp 0x462231
mov dword [ebp - 0xc], 0x8000
push 4
lea ecx, [ebp - 0xc]
push ecx
push 0x1002
push 0xffff
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 0x10], 0x8000
push 4
lea ecx, [ebp - 0x10]
push ecx
push 0x1001
push 0xffff
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 8], 0x7d0
mov dword [ebp - 4], 0x7d0
push 4
lea ecx, [ebp - 8]
push ecx
push 0x1005
push 0xffff
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [ebp - 4]
push ecx
push 0x1006
push 0xffff
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov al, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x4622b9
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 4]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0x18]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x2c], ecx
push 0x14
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.00472380
add esp, 0xc
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
push 0
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 0x14]
push eax
push 1
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_WSASend]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x462325
mov al, 1
jmp 0x4623a2
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4623a0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x4623a0
push 0
mov eax, dword [ebp + 0x1c]
push eax
push 0
lea ecx, [ebp - 8]
push ecx
push 2
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
mov dword [ebp - 0x30], eax
mov edx, dword [ebp + 0x18]
push edx
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
cmp dword [ebp - 0x30], 0xffffffff
je 0x462365
cmp dword [ebp - 0x30], 0
jne 0x46237a
cmp dword [ebp - 0x30], 0
jne 0x462376
push 0x100
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x4623a2
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
setne al
jmp 0x4623a2
xor al, al
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4623a8
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x2c], ecx
push 0x14
push 0
lea edx, [ebp - 0x14]
push edx
call fcn.00472380
add esp, 0xc
mov eax, dword [ebp + 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], 0
push 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp + 0x14]
push eax
push 1
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_WSARecv]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x462414
mov al, 1
jmp 0x462491
cmp dword [ebp - 0x24], 0xffffffff
jne 0x46248f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x46248f
push 0
mov eax, dword [ebp + 0x1c]
push eax
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 2
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
mov dword [ebp - 0x30], eax
mov edx, dword [ebp + 0x18]
push edx
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
cmp dword [ebp - 0x30], 0xffffffff
je 0x462454
cmp dword [ebp - 0x30], 0
jne 0x462469
cmp dword [ebp - 0x30], 0
jne 0x462465
push 0x100
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x462491
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
push 0
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
setne al
jmp 0x462491
xor al, al
mov esp, ebp
pop ebp
ret 0x18
Function at 0x46267d
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50536d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
push edi
mov dword [ebp - 0xb0], ecx
lea ecx, [ebp - 0x8c]
call fcn.00401590
mov dword [ebp - 4], 0
mov byte [ebp - 0x70], 0
mov ecx, 0x18
xor eax, eax
lea edi, [ebp - 0x6f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x74], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
jne 0x462715
mov byte [ebp - 0xa4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c]
call fcn.004dcafe
mov al, byte [ebp - 0xa4]
jmp 0x46281a
mov ecx, dword [ebp - 0x88]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 0x74]
cmp dword [edx + eax*4], 0
je 0x4627fb
mov ecx, dword [ebp - 0x88]
movsx edx, word [ecx + 0xa]
push edx
mov eax, dword [ebp - 0x88]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x74]
mov eax, dword [ecx + edx*4]
push eax
lea ecx, [ebp - 0x80]
push ecx
call fcn.00471ea0
add esp, 0xc
mov edx, dword [ebp - 0x74]
add edx, 1
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x80]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push 0x5480a4
lea ecx, [ebp - 0x8c]
push ecx
call fcn.004d2181
add esp, 0xc
mov word [ebp - 0x9c], 2
mov dx, word [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x9a], ax
lea ecx, [ebp - 0x8c]
call fcn.00458a80
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x98], eax
push 0x10
lea eax, [ebp - 0x9c]
push eax
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], 0xffffffff
je 0x4627f6
mov byte [ebp - 0xa8], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c]
call fcn.004dcafe
mov al, byte [ebp - 0xa8]
jmp 0x46281a
jmp 0x462715
mov byte [ebp - 0xac], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c]
call fcn.004dcafe
mov al, byte [ebp - 0xac]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x462c9f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 8]
call fcn.00462dd7
mov ecx, dword [ebp - 8]
call fcn.00462e11
test eax, eax
je 0x462d26
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0xc], 0
je 0x462d21
mov eax, dword [ebp - 8]
mov dword [eax + 4], 0x462eb9
mov ecx, dword [ebp - 8]
mov dword [ecx + 8], 0x4633ee
push str.EnumProcessModules
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x10], eax
push str.GetModuleFileNameExA
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x14], eax
jmp 0x462dd0
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0xc], 0
je 0x462dd0
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], 0x4636a1
mov edx, dword [ebp - 8]
mov dword [edx + 8], 0x46387b
push str.CreateToolhelp32Snapshot
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 8]
mov dword [edx + 0x18], eax
push str.Process32First
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 8]
mov dword [edx + 0x1c], eax
push str.Process32Next
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 8]
mov dword [edx + 0x20], eax
push str.Module32First
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 8]
mov dword [edx + 0x24], eax
push str.Module32Next
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 8]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x464210
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5054cc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x36c
lea ecx, [ebp - 0x13c]
call fcn.00401590
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x46424c
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x36c], eax
cmp dword [ebp - 0x36c], 0xffffffff
jne 0x46428b
mov dword [ebp - 0x370], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call fcn.004dcafe
mov eax, dword [ebp - 0x370]
jmp 0x464416
push 0x128
push 0
lea ecx, [ebp - 0x134]
push ecx
call fcn.00472380
add esp, 0xc
mov dword [ebp - 0x134], 0x128
lea edx, [ebp - 0x134]
push edx
mov eax, dword [ebp - 0x36c]
push eax
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x4642e9
mov dword [ebp - 0x374], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call fcn.004dcafe
mov eax, dword [ebp - 0x374]
jmp 0x464416
lea ecx, [ebp - 0x138]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp - 0x12c]
cmp eax, dword [ebp - 0x138]
je 0x46430d
jmp 0x4643ca
mov ecx, dword [ebp - 0x138]
push ecx
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x140], 0xffffffff
jne 0x46432f
jmp 0x4643e5
push 0x224
push 0
lea edx, [ebp - 0x368]
push edx
call fcn.00472380
add esp, 0xc
mov dword [ebp - 0x368], 0x224
lea eax, [ebp - 0x368]
push eax
mov ecx, dword [ebp - 0x140]
push ecx
call sub.KERNEL32.dll_Module32First
test eax, eax
jne 0x464368
jmp 0x4643e5
lea edx, [ebp - 0x144]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x248]
push edx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov eax, dword [ebp - 0x144]
push eax
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x46439e
jmp 0x4643bb
mov edx, dword [ebp + 0xc]
mov byte [edx], 0
lea eax, [ebp - 0x368]
push eax
mov ecx, dword [ebp - 0x140]
push ecx
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x464368
mov edx, dword [ebp - 0x140]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4643e5
lea eax, [ebp - 0x134]
push eax
mov ecx, dword [ebp - 0x36c]
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4642fa
mov edx, dword [ebp - 0x36c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax]
mov dword [ebp - 0x378], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call fcn.004dcafe
mov eax, dword [ebp - 0x378]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4852b3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x507d2e
call fcn.00474598
sub esp, 0x18
cmp dword [0x556798], 0
push esi
jne 0x4852e9
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
mov ecx, 0x556788
call fcn.0048640f
mov dword [eax], 0x13
jmp 0x485348
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x48531d
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
mov ecx, 0x556788
call fcn.0048640f
mov dword [eax], 0x10
jmp 0x485348
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x48534f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
mov ecx, 0x556788
call fcn.0048640f
mov dword [eax], 0xf
xor eax, eax
jmp 0x4853d5
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
mov edi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0x2800
push eax
push edi
lea ecx, [ebp - 0x24]
call fcn.0049647d
and dword [ebp - 4], 0
push 0x114
call fcn.004dd1cf
pop ecx
mov ecx, eax
mov dword [ebp + 8], ecx
test ecx, ecx
mov byte [ebp - 4], 1
pop edi
je 0x485398
call fcn.00493215
mov esi, eax
jmp 0x48539a
xor esi, esi
and byte [ebp - 4], 0
test esi, esi
je 0x4853c5
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.00493c9b
test eax, eax
je 0x4853c5
push esi
mov ecx, 0x556960
call fcn.0048e205
mov esi, eax
call fcn.00484f70
jmp 0x4853c7
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004964c1
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x48ad7d
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi], ebx
jle 0x48adf2
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor edi, edi
mov eax, dword [esi + 4]
add eax, edi
movzx ecx, word [eax + 2]
cmp ecx, dword [esp + 0x14]
jne 0x48adea
mov al, byte [eax]
and al, 4
cmp al, 4
jne 0x48adb6
push 0x10
call ebp
and ax, 0x8000
cmp ax, 0x8000
jne 0x48adea
mov eax, dword [esi + 4]
mov al, byte [edi + eax]
and al, 8
cmp al, 8
jne 0x48add0
push 0x11
call ebp
and ax, 0x8000
cmp ax, 0x8000
jne 0x48adea
mov eax, dword [esi + 4]
mov al, byte [edi + eax]
and al, 0x10
cmp al, 0x10
jne 0x48adfb
push 0x12
call ebp
and ax, 0x8000
cmp ax, 0x8000
je 0x48adfb
inc ebx
add edi, 6
cmp ebx, dword [esi]
jl 0x48ad91
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov ecx, dword [esi + 4]
lea eax, [ebx + ebx*2]
push 6
lea eax, [ecx + eax*2]
push eax
push dword [esp + 0x20]
call fcn.00471ea0
add esp, 0xc
push 1
pop eax
jmp 0x48adf4
Function at 0x49066e
Capabilities:
Check os version

Disassembly:
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4906d5
push 1
mov esi, 0x94
pop ebx
push esi
call fcn.004741c3
mov edi, eax
pop ecx
test edi, edi
je 0x49072d
push esi
push 0
push edi
call fcn.00472380
add esp, 0xc
mov dword [edi], esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [edi + 4]
cmp eax, 4
jne 0x4906b8
push 5
jmp 0x490725
cmp eax, 5
jne 0x490726
cmp dword [edi + 8], 0
jne 0x4906c7
push 6
jmp 0x490725
cmp eax, 5
jne 0x490726
cmp dword [edi + 8], ebx
jne 0x490726
push 7
jmp 0x490725
cmp al, 4
jae 0x4906dd
xor ebx, ebx
jmp 0x49072d
push 2
mov esi, 0x94
pop ebx
push esi
call fcn.004741c3
mov edi, eax
pop ecx
test edi, edi
je 0x49072d
push esi
push 0
push edi
call fcn.00472380
add esp, 0xc
mov dword [edi], esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [edi + 4]
cmp eax, 4
jne 0x490726
cmp dword [edi + 8], 0xa
jne 0x490719
push 3
jmp 0x490725
cmp eax, 4
jne 0x490726
cmp dword [edi + 8], 0x5a
jne 0x490726
push eax
pop ebx
push edi
call fcn.00473de7
pop ecx
pop edi
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x490dd1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x490e3c
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x490e3c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
mov edi, eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0x54d798
mov ebx, eax
push dword [ebp + 8]
call fcn.00472f67
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x490e3c
push esi
push 1
push ebx
push edi
call fcn.00472dfd
push esi
call fcn.00472d80
add esp, 0x14
push 1
pop eax
jmp 0x490e3e
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x490e43
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x490e72
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x208]
push eax
push 0
lea eax, [ebp - 0x104]
push 0x54d7ac
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x490ed8
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.004721e0
pop ecx
lea eax, [ebp - 0x104]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x105], 0x5c
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
je 0x490ed1
push str._s_s
push dword [ebp + 8]
call fcn.0047321a
add esp, 0x10
jmp 0x490ee9
push 0x54d79c
jmp 0x490ec4
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call fcn.004721e0
pop ecx
pop ecx
cmp dword [ebp + 0x14], 0
je 0x490f0a
push 0x5163e8
push dword [ebp + 8]
call fcn.004721f0
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.004721f0
add esp, 0x10
leave
ret