joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401d40
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4326a3
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x11c
mov eax, dword [0x43c2d0]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push str.7A23EC47_F9C9_4b1a_A812_489C7A8C8927
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401da2
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x401e8a
call fcn.00407560
test eax, eax
je 0x401e7e
mov dword [ebp - 4], 0
mov byte [ebp - 0x128], 0
push 0x103
push 0
lea ecx, [ebp - 0x127]
push ecx
call fcn.00422770
add esp, 0xc
lea ecx, [ebp - 0x15]
call fcn.004118a0
mov byte [ebp - 4], 1
push 0x104
lea edx, [ebp - 0x128]
push edx
lea ecx, [ebp - 0x15]
call fcn.00411b70
push str.Windows_7
lea eax, [ebp - 0x128]
push eax
call fcn.004032e0
add esp, 8
test eax, eax
setne cl
mov byte [ebp - 0x129], cl
movzx edx, byte [ebp - 0x129]
test edx, edx
jne 0x401e24
call fcn.0041b4d0
jmp 0x401e29
call fcn.0041ba60
lea ecx, [ebp - 0x12a]
call fcn.004118a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x12a]
call fcn.00404d70
call fcn.00401bd0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x12a]
call fcn.004012a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x15]
call fcn.004012a0
jmp 0x401e72
mov dword [ebp - 4], 0xffffffff
call fcn.004075d0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0041d4f6
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4033a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
add eax, 8
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
push 0x403380
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x404cc0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5010
call fcn.004273e0
mov eax, dword [0x43c2d0]
xor eax, ebp
mov dword [ebp - 0xc], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x5000
lea eax, [ebp - 0x5010]
push eax
call fcn.0041de88
add esp, 0x10
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x5010]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0041d4f6
mov esp, ebp
pop ebp
ret
Function at 0x404f00
Capabilities:
Enumerate process modules
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x43c2d0]
xor eax, ebp
mov dword [ebp - 0x2c], eax
push str.Enter_SetWindowsAPIHook_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x404f2d
xor eax, eax
jmp 0x405017
mov ecx, dword [ebp + 8]
cmp dword [ecx + 4], 0
jne 0x404f3d
xor eax, eax
jmp 0x405017
mov edx, dword [ebp + 8]
cmp dword [edx + 8], 0
jne 0x404f4d
xor eax, eax
jmp 0x405017
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 0
jne 0x405002
mov dword [ebp - 0x258], 0x224
push 0x220
push 0
lea ecx, [ebp - 0x254]
push ecx
call fcn.00422770
add esp, 0xc
push 0x1c
lea edx, [ebp - 0x28]
push edx
push fcn.00404e10
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
push 0
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x258]
push ecx
mov edx, dword [ebp - 8]
push edx
call sub.KERNEL32.dll_Module32First
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x404fee
mov eax, dword [ebp - 0x23c]
cmp eax, dword [ebp - 4]
je 0x404fd9
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x23c]
mov dword [ecx + 0x10], edx
mov eax, dword [ebp + 8]
push eax
call fcn.00404e10
add esp, 4
lea ecx, [ebp - 0x258]
push ecx
mov edx, dword [ebp - 8]
push edx
call sub.KERNEL32.dll_Module32Next
mov dword [ebp - 0xc], eax
jmp 0x404fb0
push str.Exit_SetWindowsAPIHook_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 1
jmp 0x405017
mov eax, dword [ebp + 8]
push eax
call fcn.00404e10
add esp, 4
mov eax, 1
jmp 0x405017
mov ecx, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.0041d4f6
mov esp, ebp
pop ebp
ret

Function at 0x407560
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x43c2d0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x43e9dc], 0
jne 0x4075bc
lea eax, [ebp - 0x198]
push eax
push 0x202
call sub.WSOCK32.dll_WSAStartup
mov dword [ebp - 0x19c], eax
cmp dword [ebp - 0x19c], 0
jne 0x4075a8
mov dword [0x43e9dc], 1
jmp 0x4075bc
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
test ecx, ecx
jne 0x40757c
mov eax, dword [0x43e9dc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d4f6
mov esp, ebp
pop ebp
ret
Function at 0x4075e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x10], 0
jne 0x4075f3
mov al, 1
jmp 0x4076a0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.WSOCK32.dll_send
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x40764e
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x10]
jae 0x40764c
push 2
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x407608
jmp 0x407685
cmp dword [ebp - 0x10], 0
jge 0x407685
cmp dword [ebp - 0xc], 5
jae 0x407685
cmp dword [ebp - 8], 5
jae 0x407685
cmp dword [ebp - 0xc], 0
jne 0x40766f
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
jmp 0x407608
cmp dword [ebp + 0x14], 0
je 0x407693
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
xor ecx, ecx
cmp eax, dword [ebp + 0x10]
sete cl
mov al, cl
mov esp, ebp
pop ebp
ret
Function at 0x407790
Capabilities:
Connect socket
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00407730
add esp, 0xc
cmp dword [ebp + 0x14], 0
jle 0x4078fc
mov dword [ebp - 4], 1
lea eax, [ebp - 4]
push eax
push 0x8004667e
mov ecx, dword [ebp + 8]
push ecx
call sub.WSOCK32.dll_ioctlsocket
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4078fc
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.WSOCK32.dll_connect
mov dword [ebp - 8], eax
mov dword [ebp - 0x114], 0
cmp dword [ebp - 8], 0xffffffff
jne 0x40780c
call sub.WSOCK32.dll_WSAGetLastError
mov dword [ebp - 0x114], eax
mov dword [ebp - 4], 0
lea edx, [ebp - 4]
push edx
push 0x8004667e
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_ioctlsocket
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x407842
cmp dword [ebp - 0x114], 0x2733
je 0x407842
or eax, 0xffffffff
jmp 0x40790d
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x228], 0
cmp dword [ebp - 0x110], 0x40
jae 0x40787e
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp + 8]
mov dword [ebp + ecx*4 - 0x10c], edx
mov eax, dword [ebp - 0x110]
add eax, 1
mov dword [ebp - 0x110], eax
xor ecx, ecx
jne 0x407856
cmp dword [ebp - 0x228], 0x40
jae 0x4078aa
mov edx, dword [ebp - 0x228]
mov eax, dword [ebp + 8]
mov dword [ebp + edx*4 - 0x224], eax
mov ecx, dword [ebp - 0x228]
add ecx, 1
mov dword [ebp - 0x228], ecx
xor edx, edx
jne 0x407882
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x118], 0
lea ecx, [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x228]
push edx
lea eax, [ebp - 0x110]
push eax
push 0
push 0
call sub.WSOCK32.dll_select
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x4078f7
xor eax, eax
jmp 0x40790d
or eax, 0xffffffff
jmp 0x40790d
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.WSOCK32.dll_connect
mov esp, ebp
pop ebp
ret
Function at 0x407f20
Capabilities:
Print debug messages
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
push str.localhost
mov eax, dword [ebp + 8]
push eax
call fcn.0041ed85
add esp, 8
test eax, eax
jne 0x407f51
push str.127.0.0.1
call sub.WSOCK32.dll_inet_addr
jmp 0x407ffc
mov ecx, dword [ebp + 8]
push ecx
call fcn.00407e50
add esp, 4
test eax, eax
je 0x407f74
mov edx, dword [ebp + 8]
push edx
call sub.WSOCK32.dll_inet_addr
jmp 0x407ffc
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_gethostbyname
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x407f93
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x407ff4
call sub.WSOCK32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
sub edx, 0x2af9
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 3
ja case.default.0x407fb6
mov eax, dword [ebp - 0xc]
jmp dword [eax*4 + 0x408000]
push str.The_host_was_not_found._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp case.default.0x407fb6
push str.The_name_is_valid_but_it_has_no_address._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp case.default.0x407fb6
push str.A_non_recoverable_name_server_error_occurred._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp case.default.0x407fb6
push str.The_name_server_is_temporarily_unavailable.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
or eax, 0xffffffff
jmp 0x407ffc
mov eax, dword [ebp - 4]
jmp 0x407ffc
mov esp, ebp
pop ebp
ret
Function at 0x412050
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [0x43e9e0], 0
je 0x412119
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x46b
je 0x412077
jmp 0x412119
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov ecx, dword [0x43e9e0]
call fcn.004118a0
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
call fcn.00412b10
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0
jmp 0x4120b7
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x10]
jge 0x412109
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
call fcn.00412b30
mov ecx, dword [eax]
mov edx, dword [ecx + 0x4c]
cmp edx, dword [ebp + 0xc]
jne 0x4120ea
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
call fcn.00412b30
mov ecx, dword [eax]
mov dword [ecx + 0x50], 1
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 8]
call fcn.00412b30
mov eax, dword [eax]
cmp dword [eax + 0x50], 0
je 0x412107
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x4120ae
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jne 0x412119
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x414430
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
xor eax, eax
jne 0x414439
xor ecx, ecx
jne 0x414439
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
jne 0x41445a
mov eax, 0xd
jmp 0x414486
xor eax, eax
jne 0x414441
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x414490
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x414499
xor ecx, ecx
jne 0x414499
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x4144ba
mov eax, 0xd
jmp 0x41450f
xor eax, eax
jne 0x4144a1
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
cmp dword [ebp - 0xc], 1
jne 0x4144cb
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 7
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esp, ebp
pop ebp
ret 8
Function at 0x414520
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431068
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x43c2d0]
xor eax, ebp
mov dword [ebp - 0x28], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x13c], ecx
lea ecx, [ebp - 0x20]
call fcn.00411a30
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x13c]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x13c]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00411ad0
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4145b1
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x130], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00411a60
mov eax, dword [ebp - 0x130]
jmp 0x414650
mov dword [ebp - 0x10], 0x100
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x12c]
push edx
push 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x41461e
lea ecx, [ebp - 0x12c]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00414520
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x414615
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x134], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00411a60
mov eax, dword [ebp - 0x134]
jmp 0x414650
mov dword [ebp - 0x10], 0x100
jmp 0x4145b8
lea ecx, [ebp - 0x20]
call fcn.00411a80
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x13c]
call fcn.004142f0
mov dword [ebp - 0x138], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00411a60
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.0041d4f6
mov esp, ebp
pop ebp
ret 4
Function at 0x41d4f6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43c2d0]
jne 0x41d500
repz ret
jmp fcn.00422666

Function at 0x42b42a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004229fa
and dword [ebp - 4], 0
cmp dword [0x43e870], 0
mov ebx, eax
jne 0x42b4db
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42b58c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x42b58c
push eax
call fcn.00422988
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43e870], eax
call esi
push eax
call fcn.00422988
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43e874], eax
call esi
push eax
call fcn.00422988
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43e878], eax
call esi
push eax
call fcn.00422988
pop ecx
mov dword [0x43e880], eax
test eax, eax
je 0x42b4db
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00422988
pop ecx
mov dword [0x43e87c], eax
mov eax, dword [0x43e87c]
cmp eax, ebx
je 0x42b533
cmp dword [0x43e880], ebx
je 0x42b533
push eax
call fcn.00422a03
push dword [0x43e880]
mov esi, eax
call fcn.00422a03
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42b533
test edi, edi
je 0x42b533
call esi
test eax, eax
je 0x42b52a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42b52a
test byte [ebp - 0xc], 1
jne 0x42b533
or dword [ebp + 0x10], 0x200000
jmp 0x42b56c
mov eax, dword [0x43e874]
cmp eax, ebx
je 0x42b56c
push eax
call fcn.00422a03
pop ecx
test eax, eax
je 0x42b56c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42b56c
mov eax, dword [0x43e878]
cmp eax, ebx
je 0x42b56c
push eax
call fcn.00422a03
pop ecx
test eax, eax
je 0x42b56c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43e870]
call fcn.00422a03
pop ecx
test eax, eax
je 0x42b58c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42b58e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001d42
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov eax, dword [ebp + 8]
mov dword [0x10021254], 0x1234
mov dword [0x10021258], 0x118d
mov dword [ebp - 0x10], eax
call fcn.10002073
xor ecx, ecx
mov edx, eax
mov esi, dword [0x10021258]
mov edi, dword [eax + 0x3c]
mov ebx, edx
add ebx, edi
mov edi, dword [eax + edi]
cmp edi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
je 0x10001d9b
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x20]
add ecx, 0x21fc
mov dword [0x10021258], ecx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov esi, dword [edx + eax + 0x24]
mov dword [0x10021254], 0x62
mov edi, dword [edx + eax + 0x18]
cmp edi, 0
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
je 0x10001ed1
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x30]
add ecx, edx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov esi, dword [ebp - 0x2c]
mov edi, dword [esi + eax*4]
mov dword [0x10021254], 0x1234
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
mov ecx, eax
mov edx, dword [ebp - 0x4c]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x55], bh
mov byte [ebp - 0x56], cl
je 0x10001e6f
mov eax, dword [ebp - 0x54]
add eax, 1
mov cl, byte [ebp - 0x55]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x56]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x50], eax
jne 0x10001e1e
mov al, byte [ebp - 0x56]
test al, 1
jne 0x10001ea2
jmp 0x10001e78
xor eax, eax
mov ecx, dword [ebp - 0x44]
add ecx, 1
mov edx, dword [ebp - 0x48]
add edx, 2
mov esi, dword [ebp - 0x34]
cmp ecx, esi
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], eax
jb 0x10001dfa
jmp 0x10001ed1
mov eax, dword [ebp - 0x48]
movzx ecx, word [eax]
mov dword [0x10021258], 0x185c
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x28]
add edx, dword [edx + esi + 0x1c]
mov ecx, dword [edx + ecx*4]
mov dword [0x10021254], 0x6ff
mov edx, dword [ebp - 0x1c]
add edx, ecx
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100022b3
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [0x10021254], 0x107
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x3c]
mov dword [0x10021258], 0xa4
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x1000230b
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x14], 0x64
je 0x100023a0
jmp 0x100023ed
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
je 0x10002356
mov dword [0x10021258], 0x1707
mov eax, dword [ebp - 0x18]
add eax, 1
cmp eax, 0x104
setl cl
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x21], cl
mov al, byte [ebp - 0x21]
test al, 1
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], edx
jne 0x1000230b
jmp 0x10002356
mov eax, dword [ebp - 0x1c]
mov dword [0x10021254], 0xffffff39
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
jne 0x100023ed
mov dword [0x10021254], 0x8c4
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x100023ed
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x100022f3
jmp 0x100023ed
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x100023ed
mov dword [0x10021258], 0xffffe667
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x100023ed
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff9
shl eax, 1
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov dword [ebp - 0x28], ecx
mov eax, 1
mov ecx, dword [ebp - 0x28]
cmp word [ecx], 0x6c
mov dword [ebp - 0x2c], eax
je 0x100023fc
xor eax, eax
mov dword [0x10021254], 0x1c0f
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
add esp, 0x2c
pop ebp
ret
Function at 0x1000257b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [0x10021258], 0x1c22
mov edx, dword [0x10021254]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], edx
xor eax, eax
mov dword [ebp - 0x30], eax
jmp 0x100025a7
mov eax, dword [ebp - 0x30]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x1000526a]
mov dh, byte [eax + 0x1000523b]
sub dh, dl
mov byte [ebp + eax - 0x20], dh
cmp ecx, 0xe
mov dword [ebp - 0x30], ecx
jne 0x100025a7
lea eax, [ebp - 0x20]
mov ecx, dword [ebp - 0x2c]
add ecx, 0x38a
mov dword [0x10021258], ecx
mov dword [0x10021254], 0x2676
mov dword [ebp - 0x34], eax
call fcn.10002dc7
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.10001edc
xor ecx, ecx
cmp eax, 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ecx
je 0x100026c3
mov eax, dword [ebp - 0x38]
mov dword [0x10021258], 0xdf2
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [0x10021258], 0x23a4
mov dword [esp], eax
mov ecx, dword [ebp - 0x24]
mov dword [esp + 4], ecx
mov dword [ebp - 0x40], eax
call fcn.10003101
xor eax, eax
mov ecx, dword [ebp - 0x40]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xc0
mov dword [ecx + 0xc0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x18], ecx
mov dword [0x10021254], 0x2677
mov ecx, dword [ebp - 0x40]
mov dword [edx + 0x50], ecx
mov dword [0x10021258], 0x680
cmp ecx, 0
mov dword [ebp - 0x3c], eax
je 0x100026c3
mov dword [0x10021254], 0x1906
mov eax, dword [ebp - 0x40]
add eax, 0x2183
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
add esp, 0x50
pop ebp
ret