joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004c030
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 0x14]
push esi
push 0
push dword [ebp + 0x10]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 4
mov dword [ebp + 0x14], esi
call fcn.100600d0
add esp, 0xc
lea eax, [ebp - 8]
push 0xf0000040
push dword [ebp + 0x18]
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1004c0fe
lea eax, [ebp - 4]
push eax
push 0
push 0
push dword [ebp + 0x1c]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1004c0e0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1004c0e0
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1004c0e0
cmp esi, dword [ebp - 0xc]
jb 0x1004c0e0
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [ebp - 4]
test eax, eax
je 0x1004c0ee
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 8]
test eax, eax
je 0x1004c0fe
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10052070
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov eax, dword [0x100d2154]
test eax, eax
je 0x10052082
inc eax
mov dword [0x100d2154], eax
xor eax, eax
ret
push ebx
mov ebx, dword [esp + 8]
mov dword [0x100d2154], 1
push esi
test bl, 1
je 0x1005213b
push str.iphlpapi.dll
mov dword [0x100d215c], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x100d215c], eax
test eax, eax
jne 0x100520c1
pop esi
mov eax, 0x16
pop ebx
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNetworkParams
push eax
call esi
mov dword [0x100d2144], eax
test eax, eax
jne 0x100520ec
push dword [0x100d215c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov eax, 0x17
pop ebx
ret
push str.GetAdaptersAddresses
push dword [0x100d215c]
call esi
push str.GetBestRoute2
push dword [0x100d215c]
mov dword [0x100d214c], eax
call esi
push str.advapi32.dll
mov dword [0x100d2150], eax
mov dword [0x100d2160], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x100d2160], eax
test eax, eax
je 0x1005213b
push 0x100c478c
push eax
call esi
mov dword [0x100d2148], eax
pop esi
mov dword [0x100d2158], ebx
xor eax, eax
pop ebx
ret

Function at 0x10052370
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x100d1444]
xor eax, esp
mov dword [esp + 0x94], eax
push 0x90
lea eax, [esp + 8]
push 0
push eax
call fcn.100600d0
add esp, 0xc
mov dword [esp], 0x94
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x100523ce
cmp dword [esp + 4], 6
jb 0x100523ce
mov eax, 1
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.1005e4a8
add esp, 0x98
ret
mov ecx, dword [esp + 0x94]
xor eax, eax
xor ecx, esp
call fcn.1005e4a8
add esp, 0x98
ret
Function at 0x10053b40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
mov dword [esi], 0
call fcn.10059b10
cmp eax, 3
jne 0x10053c2a
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetServicesTcpipParameters
push reloc.WS2_32.dll_bind
mov dword [esp + 0x2c], 0
mov dword [esi], 0
call ebx
test eax, eax
jne 0x10053d0c
push esi
push str.NameServer
push dword [esp + 0x14]
call fcn.10054060
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x10053c12
push esi
push str.DhcpNameServer
push dword [esp + 0x14]
call fcn.10054060
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x10053c12
lea eax, [esp + 0x18]
push eax
push 9
push edi
push str.Interfaces
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x10053be6
push dword [esp + 0xc]
mov dword [esp + 0x1c], edi
jmp 0x10053cf1
push esi
push str.NameServer
push dword [esp + 0x20]
call fcn.100544a0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x10053c12
push esi
push str.DhcpNameServer
push dword [esp + 0x20]
call fcn.100544a0
add esp, 0xc
mov edi, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10053c21
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [esp + 0xc]
jmp 0x10053cf1
cmp eax, 2
jne 0x10053d0c
lea eax, [esp + 0x10]
mov dword [esi], 0
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetServicesVxDMSTCP
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10053d0c
mov edi, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], eax
mov dword [esi], eax
lea eax, [esp + 0x18]
push eax
push 0
lea eax, [esp + 0x14]
push eax
push 0
push str.NameServer
push edi
call ebx
test eax, eax
je 0x10053c92
cmp eax, 0xea
jne 0x10053ceb
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10053ceb
inc eax
push eax
call dword [0x100d1434]
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x10053ceb
lea ecx, [esp + 0x18]
push ecx
push eax
lea eax, [esp + 0x14]
push eax
push 0
push str.NameServer
push edi
call ebx
test eax, eax
jne 0x10053cda
mov ecx, dword [esp + 0x18]
cmp ecx, 1
je 0x10053cda
mov eax, dword [esi]
mov edi, 1
mov byte [ecx + eax], 0
jmp 0x10053ced
push dword [esi]
call dword [0x100d143c]
add esp, 4
mov dword [esi], 0
xor edi, edi
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x10053d0c
cmp dword [esi], 0
je 0x10053d0c
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 8
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x10054060
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 4]
push eax
push 0
push 0
push 0
push dword [esp + 0x20]
mov dword [esp + 0x18], 0
push dword [esp + 0x20]
mov dword [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10054098
cmp eax, 0xea
jne 0x100540f5
mov eax, dword [esp + 4]
test eax, eax
je 0x100540f5
inc eax
push eax
call dword [0x100d1434]
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x100540f5
lea ecx, [esp + 4]
push ecx
push eax
push 0
push 0
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100540e4
mov ecx, dword [esp + 4]
cmp ecx, 1
je 0x100540e4
mov eax, dword [esi]
pop esi
mov byte [ecx + eax], 0
mov eax, 1
pop ecx
ret
push dword [esi]
call dword [0x100d143c]
add esp, 4
mov dword [esi], 0
xor eax, eax
pop esi
pop ecx
ret
Function at 0x100544a0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [0x100d1444]
xor eax, esp
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x11c]
push ebx
push ebp
mov ebp, dword [esp + 0x120]
mov ebx, 1
push edi
mov edi, dword [esp + 0x12c]
push 0
push 0
push 0
push 0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x30]
mov dword [edi], 0
push eax
push 0
push ebp
mov dword [esp + 0x30], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x100545e6
push esi
lea eax, [esp + 0x1c]
push eax
push 1
push 0
lea eax, [esp + 0x2c]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100545b8
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
mov dword [edi], eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0
push dword [esp + 0x28]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1005454f
cmp eax, 0xea
jne 0x100545a8
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100545a8
inc eax
push eax
call dword [0x100d1434]
add esp, 4
mov dword [edi], eax
test eax, eax
je 0x100545a8
lea ecx, [esp + 0x10]
push ecx
push eax
push 0
push 0
push dword [esp + 0x28]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10054597
mov ecx, dword [esp + 0x10]
cmp ecx, 1
je 0x10054597
mov eax, dword [edi]
mov esi, 1
mov byte [ecx + eax], 0
jmp 0x100545aa
push dword [edi]
call dword [0x100d143c]
add esp, 4
mov dword [edi], 0
xor esi, esi
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x100545e5
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0x100
push ecx
lea ecx, [esp + 0x34]
mov eax, ebx
push ecx
push eax
push ebp
inc ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x10054507
pop esi
mov ecx, dword [esp + 0x11c]
xor eax, eax
cmp dword [edi], eax
pop edi
pop ebp
setne al
pop ebx
xor ecx, esp
call fcn.1005e4a8
add esp, 0x114
ret
Function at 0x10054b80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x38
mov eax, dword [0x100d1444]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push edi
mov edi, dword [esp + 0x44]
or ebx, 0xffffffff
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
cmp dword [edi + 0x78], ebx
jg 0x10054d8c
push ebp
lea eax, [esp + 0xc]
push esi
push eax
call fcn.10053640
add esp, 4
test eax, eax
jne 0x10054cc3
xor ebp, ebp
mov dword [esp + 0x18], 0x248
mov dword [esp + 0x10], ebp
cmp dword [0x100d2144], ebp
je 0x10054cb2
push 0x248
call dword [0x100d1434]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10054caf
lea eax, [esp + 0x18]
push eax
push ebx
call dword [0x100d2144]
cmp eax, 0x6f
je 0x10054c1e
test eax, eax
jne 0x10054c9d
push dword [esp + 0x18]
push ebx
call dword [0x100d1438]
mov edi, eax
add esp, 8
test edi, edi
je 0x10054c99
lea eax, [esp + 0x18]
mov ebx, edi
push eax
push edi
mov dword [esp + 0x2c], ebx
call dword [0x100d2144]
test eax, eax
jne 0x10054c99
add edi, 0x10c
je 0x10054c99
lea eax, [esp + 0x2c]
push eax
lea ebx, [edi + 4]
push ebx
push 2
call fcn.10059260
add esp, 0xc
cmp eax, 1
jne 0x10054d3f
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x10054c8f
cmp eax, 0xffffffff
je 0x10054c8f
lea eax, [esp + 0x10]
push ebx
push eax
call fcn.10052f10
mov ebp, dword [esp + 0x18]
add esp, 8
test ebp, ebp
je 0x10054c95
mov edi, dword [edi]
test edi, edi
jne 0x10054c50
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
test ebx, ebx
je 0x10054cab
push ebx
call dword [0x100d143c]
add esp, 4
test ebp, ebp
jne 0x10054cc7
or ebx, 0xffffffff
lea eax, [esp + 0x10]
push eax
call fcn.10053b40
add esp, 4
test eax, eax
je 0x10054ce3
mov ebp, dword [esp + 0x10]
push ebp
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.10053070
push ebp
mov ebx, eax
call dword [0x100d143c]
add esp, 0x10
cmp dword [edi + 0x28], 0xffffffff
jne 0x10054d11
lea eax, [esp + 0x10]
push eax
call fcn.100541b0
add esp, 4
test eax, eax
je 0x10054d11
mov esi, dword [esp + 0x10]
push esi
push edi
call fcn.100550b0
push esi
mov ebx, eax
call dword [0x100d143c]
add esp, 0xc
mov eax, dword [esp + 0x1c]
pop esi
pop ebp
test ebx, ebx
je 0x10054d7e
test eax, eax
je 0x10054d29
push eax
call dword [0x100d143c]
add esp, 4
pop edi
mov eax, 0xe
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.1005e4a8
add esp, 0x38
ret
lea eax, [esp + 0x2c]
push eax
push ebx
push 0x17
call fcn.10059260
add esp, 0xc
cmp eax, 1
jne 0x10054c8f
lea ecx, [esp + 0x2c]
mov edx, 0x100c49e4
lea esi, [eax + 0xb]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10054c79
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10054d64
jmp 0x10054c8f
test eax, eax
je 0x10054d8c
mov dword [edi + 0x74], eax
mov eax, dword [esp + 0x18]
mov dword [edi + 0x78], eax
mov ecx, dword [esp + 0x3c]
xor eax, eax
pop edi
pop ebx
xor ecx, esp
call fcn.1005e4a8
add esp, 0x38
ret
Function at 0x10055fb0
Capabilities:
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x100d1444]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x224]
push edi
mov eax, dword [esi + 0x2c]
mov al, byte [eax]
cmp al, 0x62
je 0x1005615e
cmp al, 0x66
jne 0x100561a8
lea ebp, [esi + 0x14]
xor eax, eax
test dword [ebp], 0x100
je 0x10055fff
push str.CARES_HOSTS
call fcn.10092407
add esp, 4
test eax, eax
jne 0x100560c7
mov byte [esp + 0x18], al
call fcn.10059b10
cmp eax, 3
jne 0x10056081
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetServicesTcpipParameters
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1005609a
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x104
push eax
lea eax, [esp + 0x120]
push eax
push 0
push 0
push str.DatabasePath
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0x104
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1005609a
cmp eax, 2
jne 0x1005619c
push 0x104
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x18]
dec ecx
nop
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x100560a0
mov eax, dword [str.hosts]
mov dword [ecx], eax
mov ax, word [0x100c49c4]
mov word [ecx + 4], ax
mov al, byte [0x100c49c6]
mov byte [ecx + 6], al
lea eax, [esp + 0x18]
push 0x100c49c8
push eax
call fcn.10079863
mov edi, eax
add esp, 8
test edi, edi
jne 0x100560e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
inc dword [esi + 0x2c]
jmp 0x10055fcf
push dword [esi + 0x30]
movzx eax, word [esi + 8]
push ebp
push eax
push dword [esi + 4]
push edi
call fcn.1005bab0
push edi
mov ebx, eax
call fcn.100692aa
add esp, 0x18
cmp ebx, 4
jne 0x10056152
mov edi, dword [esi + 4]
mov ecx, str.localhost
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10056135
test dl, dl
je 0x10056131
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10056135
add eax, 2
add ecx, 2
test dl, dl
jne 0x10056115
xor eax, eax
jmp 0x1005613a
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10056152
push dword [esi + 0x30]
movzx eax, word [esi + 8]
push ebp
push eax
push edi
call fcn.1005bf50
add esp, 0x10
mov ebx, eax
test ebx, ebx
je 0x100561a4
inc dword [esi + 0x2c]
jmp 0x10055fcf
mov ecx, dword [esi + 4]
mov eax, str.localhost
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x10056186
test dl, dl
je 0x10056182
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x10056186
add ecx, 2
add eax, 2
test dl, dl
jne 0x10056166
xor eax, eax
jmp 0x1005618b
sbb eax, eax
or eax, 1
test eax, eax
je 0x1005619c
push esi
call fcn.10055e40
add esp, 4
test eax, eax
jne 0x100561b8
inc dword [esi + 0x2c]
jmp 0x10055fcf
push 0
jmp 0x100561af
push dword [esp + 0x22c]
push esi
call fcn.100558a0
add esp, 8
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1005e4a8
add esp, 0x214
ret
Function at 0x10056580
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x91b8]
test ecx, ecx
je 0x100565a9
push dword [eax + 0x91bc]
mov eax, dword [ecx + 8]
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [esp + 0x14]
call eax
add esp, 0x10
ret
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_connect]
ret

Function at 0x100568a0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x24
mov eax, dword [0x100d1444]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, dword [esp + 0x38]
push edi
cmp dword [esi + 0x91b8], 0
jne 0x10056981
mov edi, dword [esp + 0x34]
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push edi
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp dword [esi + 0x1c], 0
lea eax, [esi + 0x1c]
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
jle 0x10056907
push 4
push eax
push 0x1001
push 0xffff
push edi
call ebx
cmp eax, 0xffffffff
je 0x100569cc
cmp dword [esi + 0x20], 0
lea eax, [esi + 0x20]
jle 0x10056929
push 4
push eax
push 0x1002
push 0xffff
push edi
call ebx
cmp eax, 0xffffffff
je 0x100569cc
mov eax, dword [esp + 0x38]
cmp eax, 2
jne 0x1005695a
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x10056981
xorps xmm0, xmm0
mov ecx, 2
movups xmmword [esp + 0x10], xmm0
push eax
mov word [esp + 0x14], cx
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x14], eax
push 0x10
jmp 0x100569bc
cmp eax, 0x17
jne 0x10056981
lea ebx, [esi + 0x60]
mov edx, 0x100c49e4
mov ecx, ebx
lea esi, [eax - 0xb]
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10056995
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10056970
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1005e4a8
add esp, 0x24
ret
movups xmm0, xmmword [ebx]
xor eax, eax
mov dword [esp + 0x12], 0
mov word [esp + 0x16], ax
mov dword [esp + 0x28], eax
mov eax, 0x17
mov word [esp + 0x10], ax
movups xmmword [esp + 0x18], xmm0
push 0x1c
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x10056981
mov ecx, dword [esp + 0x2c]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1005e4a8
add esp, 0x24
ret
Function at 0x10056b40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
push ebx
push ebp
mov ebp, dword [esp + 0x3c]
push esi
push edi
mov edi, dword [esp + 0x40]
imul esi, ebp, 0x58
add esi, dword [edi + 0x74]
push esi
push edi
call fcn.1005a580
lea eax, [esp + 0x20]
push eax
call fcn.10059c20
lea eax, [esp + 0x24]
push eax
lea ebx, [esi + 0x44]
call fcn.10059c80
push ebx
mov esi, eax
call fcn.10059c80
movq xmm1, qword [ebx]
add esp, 0x14
movq xmm0, qword [esp + 0x18]
mov ecx, dword [ebx + 8]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x20]
movq qword [esp + 0x24], xmm0
movq qword [esp + 0x10], xmm1
movq qword [esp + 0x30], xmm1
mov dword [esp + 0x44], ecx
test esi, esi
je 0x10056bc2
push ebx
call fcn.10059c20
movq xmm1, qword [esp + 0x14]
add esp, 4
mov ecx, dword [esp + 0x44]
jmp 0x10056bd6
movq qword [ebx], xmm0
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x28]
mov dword [eax], ebx
mov eax, dword [esp + 0x24]
mov dword [eax + 4], ebx
cmp dword [esp + 0x40], 0
je 0x10056bec
lea eax, [esp + 0x18]
push eax
call fcn.10059c20
add esp, 4
jmp 0x10056c07
mov eax, dword [esp + 0x34]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x18]
movq qword [esp + 0x18], xmm1
mov dword [eax], ecx
mov eax, dword [esp + 0x30]
mov dword [eax + 4], ecx
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x18]
cmp esi, eax
je 0x10056c49
mov ebx, dword [esp + 0x48]
nop word [eax + eax]
cmp dword [edi + 0x78], 1
mov ecx, dword [esi + 8]
mov esi, dword [esi + 4]
jle 0x10056c36
mov eax, dword [ecx + 0x5c]
mov dword [eax + ebp*8], 1
push ebx
push ecx
push edi
call fcn.10056e40
lea eax, [esp + 0x24]
add esp, 0xc
cmp esi, eax
jne 0x10056c20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x10056c60
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
push edi
cmp ebp, 0xc
jl 0x10056e32
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x10], 0
movzx ecx, byte [ebx + 4]
lea esi, [ebx + 0xc]
movzx eax, byte [ebx + 5]
movzx edx, byte [ebx + 6]
shl edx, 8
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 7]
or edx, eax
mov dword [esp + 0x28], ecx
movzx eax, byte [ebx + 9]
mov dword [esp + 0x14], edx
movzx edx, byte [ebx + 8]
shl edx, 8
or edx, eax
movzx eax, byte [ebx + 0xb]
mov dword [esp + 0x18], edx
movzx edx, byte [ebx + 0xa]
shl edx, 8
or edx, eax
mov dword [esp + 0x1c], edx
test ecx, ecx
je 0x10056d1e
nop dword [eax + eax]
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
push ebp
push ebx
push esi
call fcn.1005caa0
add esp, 0x14
test eax, eax
jne 0x10056e32
push dword [esp + 0x20]
call fcn.1005cd10
mov eax, dword [esp + 0x28]
lea edi, [ebx + ebp]
add eax, 4
add esp, 4
add esi, eax
cmp esi, edi
ja 0x10056e32
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x28]
jb 0x10056cd0
jmp 0x10056d21
lea edi, [ebx + ebp]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], 0
add eax, dword [esp + 0x18]
je 0x10056da0
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x2c]
push eax
push ebp
push ebx
push esi
call fcn.1005caa0
add esp, 0x14
test eax, eax
jne 0x10056e32
push dword [esp + 0x28]
call fcn.1005cd10
mov edx, dword [esp + 0x30]
add esp, 4
add edx, esi
lea eax, [edx + 0xa]
cmp eax, edi
ja 0x10056e32
movzx esi, byte [edx + 8]
movzx eax, byte [edx + 9]
add edx, 0xa
shl esi, 8
or esi, eax
add esi, edx
cmp esi, edi
ja 0x10056e32
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc eax
add ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x10], eax
cmp eax, ecx
jb 0x10056d33
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x38], 0
jbe 0x10056e1b
nop
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push ebp
push ebx
push esi
call fcn.1005caa0
add esp, 0x14
test eax, eax
jne 0x10056e32
push dword [esp + 0x18]
call fcn.1005cd10
mov edx, dword [esp + 0x18]
add esp, 4
add edx, esi
lea eax, [edx + 0xa]
cmp eax, edi
ja 0x10056e32
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
shl cx, 8
or cx, ax
cmp cx, 0x29
je 0x10056e25
movzx esi, byte [edx + 8]
movzx eax, byte [edx + 9]
add edx, 0xa
shl esi, 8
or esi, eax
add esi, edx
cmp esi, edi
ja 0x10056e32
mov eax, dword [esp + 0x38]
inc eax
mov dword [esp + 0x38], eax
cmp eax, dword [esp + 0x1c]
jb 0x10056db0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x20
ret