joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405e2e
Capabilities:
Access peb ldr_data
Get ntdll base address
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40e228
push 0x407440
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov esi, ecx
mov dword [ebp - 0x28], esi
mov dword [esi], 0x40e220
xor ebx, ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 4], ebx
mov dword [ebp - 4], ebx
push 0x823
call fcn.00406760
mov dword [ebp - 0x1c], eax
mov dword [esi + 0x18], eax
push 0xff
call fcn.00406760
mov dword [ebp - 0x20], eax
mov dword [esi + 0x1c], eax
push 0x7ff
call fcn.00406760
add esp, 0xc
mov dword [ebp - 0x24], eax
mov dword [esi + 0x20], eax
push str.wininet
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov dword [esi + 8], eax
cmp eax, ebx
je 0x405f77
push str.InternetOpenA
push eax
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
call edi
mov dword [esi + 0x2c], eax
push str.InternetConnectA
push dword [esi + 8]
call edi
mov dword [esi + 0x30], eax
push str.HttpOpenRequestA
push dword [esi + 8]
call edi
mov dword [esi + 0x38], eax
push str.HttpSendRequestA
push dword [esi + 8]
call edi
mov dword [esi + 0x3c], eax
push str.InternetCloseHandle
push dword [esi + 8]
call edi
mov dword [esi + 0x34], eax
push str.HttpQueryInfoA
push dword [esi + 8]
call edi
mov dword [esi + 0x40], eax
push str.InternetReadFile
push dword [esi + 8]
call edi
mov dword [esi + 0x44], eax
cmp dword [esi + 0x2c], ebx
je 0x405f52
cmp dword [esi + 0x30], ebx
je 0x405f52
cmp dword [esi + 0x38], ebx
je 0x405f52
cmp dword [esi + 0x3c], ebx
je 0x405f52
cmp dword [esi + 0x34], ebx
je 0x405f52
cmp dword [esi + 0x40], ebx
je 0x405f52
cmp eax, ebx
je 0x405f52
push 1
pop ebx
mov dword [esi + 4], ebx
jmp 0x405f77
or dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409dba
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4117b0
cmp edx, dword [eax]
je 0x409ddc
add eax, 8
inc ecx
cmp eax, 0x411840
jl 0x409dcd
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4117b0]
jne 0x409f0a
mov eax, dword [0x4149a4]
cmp eax, 1
je 0x409ee4
test eax, eax
jne 0x409e0d
cmp dword [0x4113b4], 1
je 0x409ee4
cmp edx, 0xfc
je 0x409f0a
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x409e44
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040b820
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00406660
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x409e87
lea eax, [ebp - 0x1a4]
push eax
call fcn.00406660
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40e6fc
push edi
call fcn.0040b720
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040b820
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040b830
lea eax, [ebp - 0xa0]
push 0x40e6dc
push eax
call fcn.0040b830
push dword [esi + 0x4117b4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040b830
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040c7c8
add esp, 0x2c
pop edi
jmp 0x409f0a
lea eax, [ebp + 8]
lea esi, [esi + 0x4117b4]
push 0
push eax
push dword [esi]
call fcn.00406660
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop esi
leave
ret
Function at 0x402571
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
push edi
push 0x46
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x118]
mov dword [ebp - 0x11c], ebx
push 0x40b988
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov eax, dword [ebp + 8]
push 1
pop esi
mov dword [0x40b0d8], eax
push esi
call fcn.00402613
cmp eax, ebx
mov dword [0x40b0cc], eax
jne 0x407dc2
mov dword [0x40b9a0], ebx
cmp dword [0x40b0cc], ebx
mov dword [ebp - 0x11c], 0x11c
jne 0x407ddc
push 4
call fcn.00402613
test eax, eax
jne 0x407e1d
mov dword [0x40b9a4], ebx
call dword [sym.imp.KERNEL32.DLL_GetACP]
mov dword [0x40b9a8], eax
call fcn.004026eb
push dword [ebp + 0xc]
call fcn.00402ab7
push dword [ebp + 0xc]
call fcn.00402ae1
pop edi
pop esi
pop ebx
leave
ret 8
push 4
jmp section..htext
cmp dword [0x40b9a0], ebx
jne 0x4025d7
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
je 0x4025d7
cmp dword [ebp - 0x114], esi
jae 0x407e12
cmp dword [ebp - 0x118], 6
jb 0x4025d7
mov dword [0x40bcb0], esi
jmp 0x4025d7
push 0x1000
call dword [sym.imp.USER32.DLL_GetSystemMetrics]
test eax, eax
mov dword [0x40b9a4], esi
jne 0x4025ec
jmp 0x4025e6
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x40288e
pop dword [ebp - 0x50]
mov eax, 0x712f07d
sub eax, 0x6d2c7ef
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x5f1748fd
add dword [ebp - 0x60], 0xef3afc4e
mov dword [ebp - 0x5c], 0x41585962
add dword [ebp - 0x5c], 0xf0daf2e3
mov dword [ebp - 0x58], 0x82569bd3
sub dword [ebp - 0x58], 0x360a57a5
mov dword [ebp - 0x54], 0xd946ed0a
add dword [ebp - 0x54], 0x26b912f6
lea eax, [ebp - 0x60]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0xc681e58d
add dword [ebp - 0x60], 0xadf083c9
mov dword [ebp - 0x5c], 0xe47c7846
sub dword [ebp - 0x5c], 0xa31016d1
mov dword [ebp - 0x58], 0xe3ae8ad0
sub dword [ebp - 0x58], 0x803f1e64
mov dword [ebp - 0x54], 0xdecb3910
sub dword [ebp - 0x54], 0xdecb3910
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x384e2
push 0
call eax
mov ecx, 0xf35c4858
add ecx, 0xca4067e
xor edi, edi
add edi, eax
mov edx, 0xbb1b06f3
add edx, 0x4525f90d
add edx, dword [ebp - 0x50]
mov esi, 0xb8220a6d
sub esi, 0xb546f727
mov dword [ebp - 0x4c], 0x325ed357
mov ebx, dword [edx]
xor dword [ebp - 0x4c], esi
add ebx, esi
xor dword [ebp - 0x2c], edx
mov dword [edi], ebx
xor dword [ebp - 0xc], 0x2bea2791
add edi, 4
add edx, 0xe8d0def1
sub edx, 0xe8d0deed
loop 0x4029a8
add eax, 0x22f128
add eax, 0xffde3d03
mov ebx, eax
add eax, 0xf906ed32
add eax, 0x6f912d3
mov ecx, 0x400000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x10002240
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x5c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp + 8]
call fcn.10002c60
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x30]
call fcn.100023c0
mov edx, dword [ebp - 0x20]
add edx, 4
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x30]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.10003390
sub esp, 8
lea ecx, [ebp - 0x2c]
call fcn.10002c90
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
lea ecx, [ebp - 0x2c]
call fcn.10002c90
add eax, 4
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp + 8]
call fcn.10002c90
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 8]
call fcn.10002c60
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call sub.VCRUNTIME140.dll_memcpy
mov byte [ebp - 0x31], 1
mov dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
lock cmpxchg dword [ecx], edx
sete cl
cmp eax, 0
je 0x10002305
jmp 0x100022d0
jmp 0x1000230a
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x2c]
call fcn.10002c60
mov ecx, eax
mov eax, dword [ebp - 0x4c]
cmp eax, ecx
jae 0x10002391
lea ecx, [ebp - 0x2c]
call fcn.10002c60
sub eax, dword [ebp - 0x38]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x2c]
mov dword [esp], eax
call fcn.100033f0
sub esp, 4
mov edx, dword [ebp - 0x48]
mov ecx, eax
mov eax, dword [ebp - 0x50]
mov edx, dword [edx + 0xc]
xor esi, esi
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
call dword [sym.imp.WS2_32.dll_send]
sub esp, 0x10
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x10002383
mov byte [ebp - 0x31], 0
jmp 0x10002391
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 0x38]
mov dword [ebp - 0x38], eax
jmp 0x1000230a
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 0x10]
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
xchg dword [ecx], eax
lea ecx, [ebp - 0x2c]
call fcn.10003420
mov al, 1
and al, 1
movzx eax, al
add esp, 0x5c
pop esi
pop ebp
ret 4
Function at 0x10002670
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Convert ip address from string
Create tcp socket
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1ec
lea eax, [ebp + 8]
mov dword [ebp - 0x1dc], eax
mov edx, esp
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x10], 0xffffffff
lea edx, [ebp - 0x18]
mov dword [ebp - 0x14], 0x1000b180
mov esi, dword fs:[0]
mov dword [ebp - 0x18], esi
mov dword fs:[0], edx
add eax, 0x18
mov dword [ebp - 0x1d8], eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1d4], eax
lea eax, [ebp - 0x1b4]
mov dword [esp], 0x202
mov dword [esp + 4], eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
sub esp, 8
mov dword [esp], 2
mov dword [esp + 4], 1
mov dword [esp + 8], 6
call dword [sym.imp.WS2_32.dll_socket]
sub esp, 0xc
mov ecx, eax
mov eax, dword [ebp - 0x1d4]
mov dword [eax + 0xc], ecx
cmp dword [eax + 0xc], 0xffffffff
jne 0x10002723
mov byte [ebp - 0x1d], 0
mov dword [ebp - 0x1b8], 1
jmp 0x10002857
mov dword [ebp - 0x10], 0
mov eax, esp
mov dword [eax], 4
call fcn.1000b3da
mov dword [ebp - 0x1e0], eax
jmp 0x10002742
mov ecx, dword [ebp - 0x1d4]
mov eax, dword [ebp - 0x1d8]
mov edx, dword [ebp - 0x1e0]
mov dword [ecx + 0x10], edx
mov ecx, dword [ecx + 0x10]
mov dword [ecx], 0
mov word [ebp - 0x1c8], 2
mov eax, dword [eax]
movzx eax, ax
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_htons]
sub esp, 4
mov ecx, dword [ebp - 0x1dc]
mov word [ebp - 0x1c6], ax
lea eax, [ebp - 0x1c8]
add eax, 4
mov dword [ebp - 0x1e4], eax
call fcn.10004260
mov ecx, eax
mov eax, dword [ebp - 0x1e4]
mov dword [esp], 2
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call dword [sym.imp.WS2_32.dll_inet_pton]
sub esp, 0xc
mov eax, dword [ebp - 0x1d4]
mov ecx, dword [eax + 0xc]
lea eax, [ebp - 0x1c8]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x10
call dword [sym.imp.WS2_32.dll_connect]
sub esp, 0xc
mov dword [ebp - 0x1cc], eax
cmp dword [ebp - 0x1cc], 0xffffffff
jne 0x10002808
mov byte [ebp - 0x1d], 0
mov dword [ebp - 0x1b8], 1
jmp 0x10002857
mov eax, dword [ebp - 0x1d4]
mov dword [ebp - 0x1d0], 1
mov ecx, dword [eax + 0xc]
lea eax, [ebp - 0x1d0]
mov dword [esp], ecx
mov dword [esp + 4], 6
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 4
call dword [sym.imp.WS2_32.dll_setsockopt]
sub esp, 0x14
mov byte [ebp - 0x1d], 1
mov dword [ebp - 0x1b8], 1
mov ecx, dword [ebp - 0x1dc]
call fcn.10002b40
mov al, byte [ebp - 0x1d]
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
and al, 1
movzx eax, al
add esp, 0x1ec
pop esi
pop edi
pop ebx
pop ebp
ret 0x1c
Function at 0x10002cb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x38
mov eax, dword [ebp + 8]
mov eax, dword [0x1000f070]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x18], 4
jge 0x10002d3b
mov edx, dword [ebp - 0x24]
mov eax, 4
sub eax, dword [ebp - 0x18]
lea ecx, [ebp - 0xc]
add ecx, dword [ebp - 0x18]
mov edx, dword [edx + 0xc]
xor esi, esi
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
call dword [sym.imp.WS2_32.dll_recv]
sub esp, 0x10
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x10002d2d
mov byte [ebp - 0xd], 0
jmp 0x10002dc4
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
jmp 0x10002cdb
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.100055a0
sub esp, 4
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0xc]
jge 0x10002dc0
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 8]
call fcn.10002c90
mov edx, dword [ebp - 0x24]
mov ecx, eax
mov eax, dword [ebp - 0x28]
add ecx, dword [ebp - 0x18]
mov edx, dword [edx + 0xc]
xor esi, esi
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
call dword [sym.imp.WS2_32.dll_recv]
sub esp, 0x10
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x10002db2
mov byte [ebp - 0xd], 0
jmp 0x10002dc4
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
jmp 0x10002d53
mov byte [ebp - 0xd], 1
mov al, byte [ebp - 0xd]
and al, 1
movzx eax, al
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1000b440
mov eax, dword [ebp - 0x2c]
add esp, 0x38
pop esi
pop ebp
ret 4

Function at 0x10006de0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jae 0x10006e2a
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
movzx eax, byte [eax + ecx]
xor eax, dword [ebp - 8]
mov dword [ebp - 8], eax
imul eax, dword [ebp - 8], 0x1000193
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
jmp 0x10006df6
mov eax, dword [ebp - 8]
add esp, 0xc
pop ebp
ret 4
Function at 0x1000a720
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov eax, esp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x1000b320
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x24]
mov dword [esp], eax
call fcn.1000a840
sub esp, 4
mov eax, dword [ebp - 0x2c]
lea ecx, [0x1000a8a0]
mov dword [ebp - 0x28], ecx
add eax, 4
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x24]
call fcn.100049b0
mov ecx, eax
mov eax, dword [ebp - 0x30]
xor edx, edx
lea edx, [0x1000a8a0]
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, eax
mov eax, dword [ebp - 0x2c]
mov dword [eax], ecx
cmp dword [eax], 0
je 0x1000a7f8
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x34], ecx
call fcn.1000a950
mov ecx, dword [ebp - 0x34]
call fcn.1000a990
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov eax, dword [ebp - 0x2c]
mov dword [eax + 4], 0
mov dword [ebp - 0x10], 0
mov eax, esp
mov dword [eax], 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
jmp 0x1000a81b
nop dword [eax + eax]
push ebp
sub esp, 0x18
add ebp, 0xc
lea ecx, [ebp - 0x24]
call fcn.1000a990
add esp, 0x18
pop ebp
ret
Function at 0x1000ae90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov eax, dword [ebp + 8]
mov eax, esp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x1000b380
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x24]
call fcn.1000afa0
mov eax, dword [ebp - 0x2c]
lea ecx, [0x1000b010]
mov dword [ebp - 0x28], ecx
add eax, 4
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x24]
call fcn.100049b0
mov ecx, eax
mov eax, dword [ebp - 0x30]
xor edx, edx
lea edx, [0x1000b010]
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, eax
mov eax, dword [ebp - 0x2c]
mov dword [eax], ecx
cmp dword [eax], 0
je 0x1000af5c
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x34], ecx
call fcn.1000a950
mov ecx, dword [ebp - 0x34]
call fcn.1000a990
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov eax, dword [ebp - 0x2c]
mov dword [eax + 4], 0
mov dword [ebp - 0x10], 0
mov eax, esp
mov dword [eax], 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
jmp 0x1000af7f
nop
push ebp
sub esp, 0x18
add ebp, 0xc
lea ecx, [ebp - 0x24]
call fcn.1000a990
add esp, 0x18
pop ebp
ret
Function at 0x1000c0e0
Capabilities:
Allocate or change rwx memory
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
cmp dword [ebp + 0x1c], 0
je 0x1000c101
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x10], ecx
jmp 0x1000c119
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
push 4
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x1000c130
xor eax, eax
jmp 0x1000c248
mov edx, dword [ebp - 0xc]
xor eax, eax
mov ax, word [edx]
cmp eax, 0x5a4d
je 0x1000c146
xor eax, eax
jmp 0x1000c248
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0x4550
je 0x1000c164
xor eax, eax
jmp 0x1000c248
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x80]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x18]
jne 0x1000c182
xor eax, eax
jmp 0x1000c248
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0xc], 0
je 0x1000c245
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx], 0
je 0x1000c237
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
cmp eax, dword [ebp - 0x10]
jne 0x1000c229
push 4
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x1000c1da
cmp dword [ebp + 0x18], 0
je 0x1000c1d1
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov dword [edx], ecx
mov dword [ebp - 8], 1
jmp 0x1000c229
lea edx, [ebp - 0x14]
push edx
push 0x40
push 4
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1000c229
cmp dword [ebp + 0x18], 0
je 0x1000c200
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 0x14]
mov dword [ecx], edx
mov dword [ebp - 8], 1
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push 4
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 0x1c]
add ecx, 4
mov dword [ebp - 0x1c], ecx
jmp 0x1000c19b
mov edx, dword [ebp - 4]
add edx, 0x14
mov dword [ebp - 4], edx
jmp 0x1000c182
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x1000c66d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov dx, word [ecx]
cmp edx, 0x5a4d
jne 0x1000c692
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x3c], 0
jne 0x1000c699
xor eax, eax
jmp 0x1000c801
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x1000c6b7
xor eax, eax
jmp 0x1000c801
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x80]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x80], 0
je 0x1000c6de
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x84], 0
jne 0x1000c6e5
xor eax, eax
jmp 0x1000c801
jmp 0x1000c6f0
mov edx, dword [ebp - 4]
add edx, 0x14
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x1000c7ff
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
jne 0x1000c70b
jmp 0x1000c7ff
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.10048710
add esp, 8
test eax, eax
jne 0x1000c7fa
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
add ecx, dword [eax]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x10]
mov dword [ebp - 0x14], eax
jmp 0x1000c75a
mov ecx, dword [ebp - 0x18]
add ecx, 4
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x14]
add edx, 4
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x1000c78d
mov ecx, dword [ebp - 0x18]
cmp dword [ecx], 0
jne 0x1000c76f
jmp 0x1000c7fa
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
xor ecx, ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax + 2]
mov dword [ebp - 0x1c], edx
jmp 0x1000c7b3
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
jne 0x1000c797
jmp 0x1000c7fa
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
xor eax, eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov eax, dword [ebp + 8]
lea ecx, [eax + edx + 2]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x24]
and edx, 0x80000000
mov eax, dword [ebp - 0x20]
and eax, 0
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x2c]
or ecx, dword [ebp - 0x28]
test ecx, ecx
jne 0x1000c7f5
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.1003c7d0
add esp, 8
test eax, eax
jne 0x1000c7f5
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
mov eax, 1
jmp 0x1000c801
jmp 0x1000c748
jmp 0x1000c6e7
xor eax, eax
mov esp, ebp
pop ebp
ret