joyce8/EMBER2024-capa huggingface dataset:
Function at 0x120787b5
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x1211ad57
call fcn.120820e8
push ecx
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 8]
push edi
mov ecx, ebx
mov dword [ebp - 0x10], esi
call fcn.1208095f
xor edi, edi
mov dword [ebx], edi
lea ebx, [esi + 0x28]
mov dword [esi], 0x12055844
mov dword [esi + 4], 0x12055830
mov dword [ebp - 4], edi
mov dword [ebx], edi
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 1
call fcn.12118e98
push edi
mov ecx, ebx
mov byte [ebp - 4], 2
mov dword [esi + 0x14], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x1c], 0x1e
mov dword [esi + 0x24], edi
call fcn.120c3e64
mov dword [esi + 0x10], edi
call fcn.1208b113
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
push dword [0x1212f378]
lea ecx, [esi + 0x34]
call fcn.120c3e64
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x12082031
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [section..cdata]
push edi
mov dword [ebp + 0x2a4], eax
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x80], 0xc0000409
lea eax, [ebp + 0x2ac]
mov eax, dword [eax]
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp - 0x28], 0x10001
mov eax, dword [eax]
mov dword [ebp + 0x90], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp + 0x9c], eax
push ss
pop dword [ebp + 0xa0]
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x2c], eax
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
push 0x502
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.12082031
pop edi
add ebp, 0x2a8
leave
ret
cmp ecx, dword [section..cdata]
jne 0x1208203a
ret
jmp 0x12081eff
Function at 0x12085a5f
Capabilities:
Get socket status
Read file on windows

Disassembly:
mov eax, 0x1211b857
call fcn.120820e8
sub esp, 0x210
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
neg eax
lea ecx, [esi + 0x28]
sbb eax, eax
and eax, ecx
push edi
push eax
lea ecx, [ebp - 0x10]
call fcn.120c3e64
mov eax, dword [esi]
xor edi, edi
test eax, 0x10000000
mov dword [ebp - 4], edi
je 0x12085aba
call fcn.1208ab2b
push edi
push 6
mov ecx, eax
call fcn.120c3e64
mov ecx, dword [ebp - 0x10]
cmp ecx, edi
mov esi, eax
je 0x12085ab3
call fcn.120c3e64
mov eax, esi
jmp 0x12085ba5
test al, 1
je 0x12085b17
lea eax, [esi + 8]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x12085b03
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
cmp esi, 0x3e5
je 0x12085b03
call fcn.1208ab2b
push 0xffffffffffffffff
push 0x12055828
push esi
push 4
push 0xfffffffffffffffa
mov ecx, eax
call fcn.120c3e64
jmp 0x12085aa5
mov ecx, dword [ebp - 0x10]
cmp ecx, edi
je 0x12085b0f
call fcn.120c3e64
xor eax, eax
inc eax
jmp 0x12085ba5
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
cmp eax, edi
push ebx
mov dword [ebp + 8], eax
mov dword [ebp - 0x118], edi
jbe 0x12085b95
cmp dword [esi + 0x3c], edi
jne 0x12085b70
mov ebx, dword [esi + 0x1c]
cmp ebx, edi
je 0x12085b70
test byte [esi + 3], 0x20
jne 0x12085b70
lea eax, [ebp - 0x21c]
push eax
mov ecx, esi
mov dword [ebp - 0x21c], edi
call fcn.120c3e64
push ebx
lea eax, [ebp - 0x118]
push eax
push eax
lea eax, [ebp - 0x21c]
push eax
push 1
call dword [sym.imp.WSOCK32.dll_select]
test eax, eax
je 0x12085bb5
push edi
push dword [ebp + 8]
mov ecx, esi
push dword [ebp - 0x14]
push dword [esi + 4]
call fcn.120c3e64
cmp eax, 0xffffffff
je 0x12085bda
cmp eax, edi
je 0x12085bda
sub dword [ebp + 8], eax
add dword [ebp - 0x14], eax
cmp dword [ebp + 8], edi
ja 0x12085b2e
mov ecx, dword [ebp - 0x10]
cmp ecx, edi
je 0x12085ba1
call fcn.120c3e64
xor eax, eax
inc eax
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 8
or byte [esi + 3], 0x10
call fcn.1208ab2b
push edi
push 6
mov ecx, eax
call fcn.120c3e64
mov ecx, dword [ebp - 0x10]
cmp ecx, edi
mov esi, eax
je 0x12085bd6
call fcn.120c3e64
mov eax, esi
jmp 0x12085ba4
call fcn.1208ab2b
push 0x1456
push 0xfffffffffffffffa
jmp 0x12085bc1

Function at 0x1208ab2b
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x1212a914]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov eax, dword [eax + 0xc]
ret

Function at 0x1208ab40
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x1212a914]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ecx, dword [eax + 0xc]
jmp fcn.12082585

Function at 0x1208b25b
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x1212a914]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 4]
ret
Function at 0x1208b273
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x1212a914]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 8]
ret

Function at 0x1208b28b
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x1212a914]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
ret

Function at 0x1208b2a3
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x1212a914]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov eax, dword [eax + 0xc]
add eax, 0x10
ret

Function at 0x1208b3e7
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, 0x1211b985
call fcn.120820e8
push ecx
push esi
call dword [sym.imp.kernel32.dll_TlsAlloc]
or esi, 0xffffffff
cmp eax, esi
mov dword [0x1212a914], eax
je 0x1208b478
call fcn.1210445f
cmp eax, 1
je 0x1208b42d
push 0x12056ec8
push 0xc001007b
push 6
call fcn.120c3e64
push 0x29
push esi
call fcn.120c3e64
add esp, 0x14
jmp 0x1208b47a
call fcn.12068a2f
test eax, eax
jge 0x1208b442
push 0x29
push esi
call fcn.120c3e64
pop ecx
pop ecx
jmp 0x1208b47a
call fcn.1208b113
push 0x25c
mov esi, eax
call fcn.120c3e64
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
and dword [ebp - 4], 0
test ecx, ecx
je 0x1208b468
call fcn.1208adac
jmp 0x1208b46a
xor eax, eax
test eax, eax
mov dword [0x1212f3dc], eax
jne 0x1208b478
push 0xfffffffffffffffb
pop eax
jmp 0x1208b47a
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x120c3e64
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x120c3e73
pop dword [ebp - 0x1c]
mov eax, 0x120c3e73
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x748ad
push 0
mov eax, 0x4e4bba13
sub eax, 0x3c46a93f
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0xc2032fd5
add ecx, 0x3dfd2158
mov ebx, eax
mov esi, 0xe2a7c424
sub esi, 0xd090c424
add esi, dword [ebp - 0x1c]
mov edx, 0x7a4e607f
add edx, 0x9a90a8a5
add dword [ebp - 8], ecx
mov edi, dword [esi]
add dword [ebp - 0x14], eax
add edi, edx
add dword [ebp - 0x18], 0xc9f49422
mov dword [ebx], edi
xor dword [ebp - 0xc], 0x358a8362
add ebx, 0x1d420a33
sub ebx, 0x1d420a2f
add esi, 4
loop 0x120c3ecd
add eax, 0xfa7c7c2a
sub eax, 0xfa7b44a3
xor ebx, ebx
add ebx, eax
add eax, 0xb85de175
add eax, 0x47a21e90
mov ecx, 0x96c88c00
sub ecx, 0x84c38c00
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x120c9cad
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x54], edi
jne 0x120c9cc4
push edi
push edi
push edi
push 1
call fcn.120c3e64
mov eax, dword [esi + 0x54]
cmp eax, edi
jne 0x120c9cd2
pop edi
pop esi
jmp fcn.1208b25b
mov eax, dword [eax + 4]
cmp eax, edi
je 0x120c9cde
mov eax, dword [eax + 0x38]
jmp 0x120c9ce0
xor eax, eax
cmp eax, edi
push ebx
jne 0x120c9d0a
mov edi, dword [esi + 0x38]
xor ebx, ebx
inc ebx
cmp edi, ebx
jl 0x120c9d0a
push ebx
lea ecx, [esi + 0x28]
call fcn.120c3e64
mov ecx, dword [esi + 0x54]
push eax
call fcn.120c3e64
test eax, eax
je 0x120c9d1e
inc ebx
cmp ebx, edi
jle 0x120c9cef
mov ecx, dword [esi + 0x54]
push 0
add ecx, 8
call fcn.120c3e64
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
ret
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
push 0
call dword [eax + 4]
or eax, 0xffffffff
jmp 0x120c9d1a
Function at 0x120dc6c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x1211d6ce
call fcn.120820e8
sub esp, 0x6c
mov eax, dword [ecx + 4]
cmp ecx, dword [eax + 0xbc]
push esi
mov dword [ebp - 0x14], ecx
je 0x120dc6e4
xor esi, esi
inc esi
jmp 0x120dc875
push ebx
push edi
push dword [eax + 0x94]
lea ecx, [ebp - 0x28]
call fcn.120c3e64
lea ecx, [ebp - 0x28]
call fcn.1208cec2
xor ebx, ebx
jmp 0x120dc868
push ebx
push dword [eax + 0x4c]
call fcn.120c3e64
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x120dc860
cmp word [edi], bx
je 0x120dc860
push 1
push ebx
lea ecx, [ebp - 0x78]
call fcn.1210ba18
push 0x1205a5ac
push 0x1205a5a4
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], ebx
call fcn.120c3e64
mov esi, eax
cmp esi, 1
lea ecx, [ebp - 0x78]
jne 0x120dc899
push edi
call fcn.120c3e64
xor edi, edi
mov esi, eax
inc edi
cmp esi, edi
lea ecx, [ebp - 0x78]
jne 0x120dc899
lea eax, [ebp - 0x10]
push eax
push 0x1205a59c
call fcn.120c3e64
mov esi, eax
cmp esi, edi
jne 0x120dc896
cmp dword [ebp - 0x10], ebx
lea ecx, [ebp - 0x78]
je 0x120dc857
lea eax, [ebp - 0x10]
push eax
push 0x1205a58c
call fcn.120c3e64
mov esi, eax
cmp esi, edi
jne 0x120dc896
cmp dword [ebp - 0x10], ebx
je 0x120dc854
mov dword [ebp - 0x18], edi
push ebx
lea ecx, [ebp - 0x3c]
call fcn.120c3e64
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 1
call fcn.120c3e64
mov esi, eax
cmp esi, edi
jne 0x120dc884
mov eax, dword [ebp - 0x38]
cmp eax, ebx
mov esi, eax
je 0x120dc825
cmp word [eax], bx
je 0x120dc825
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x1b0]
jne 0x120dc80e
cmp eax, ebx
je 0x120dc7fd
mov eax, dword [eax]
jmp 0x120dc7ff
xor eax, eax
push 0x100
push esi
mov ecx, eax
call fcn.120c3e64
jmp 0x120dc825
cmp eax, ebx
je 0x120dc816
mov eax, dword [eax]
jmp 0x120dc818
xor eax, eax
push 0x100
push esi
mov ecx, eax
call fcn.120c3e64
lea eax, [ebp - 0x18]
push eax
push 0x2c
lea ecx, [ebp - 0x78]
call fcn.120c3e64
lea ecx, [ebp - 0x3c]
mov esi, eax
mov dword [ebp - 0x3c], 0x120571c8
mov byte [ebp - 4], bl
call fcn.1208d861
cmp esi, edi
jne 0x120dc896
cmp dword [ebp - 0x18], ebx
jne 0x120dc7ad
lea ecx, [ebp - 0x78]
or dword [ebp - 4], 0xffffffff
call fcn.1210ba78
lea ecx, [ebp - 0x28]
call fcn.1208cc8b
cmp eax, ebx
jne 0x120dc703
xor esi, esi
inc esi
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
mov dword [ebp - 0x3c], 0x120571c8
call fcn.1208d861
lea ecx, [ebp - 0x78]
or dword [ebp - 4], 0xffffffff
call fcn.1210ba78
jmp 0x120dc873
Function at 0x5b073a
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x6c9f28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.006bbe06
xor ebp, ebp
mov dword [esi], 0xb929dc
mov dword [esi + 0x3c], ebp
mov dword [esi + 0x40], ebp
lea edi, [esi + 0x44]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x14], edi
lea ecx, [edi + 0x18]
mov dword [edi], 0xb91be0
call fcn.0059c600
lea ecx, [edi + 0x30]
mov byte [esp + 0x38], 1
call fcn.006b9504
lea ebx, [edi + 0x44]
mov ecx, ebx
call fcn.0059c600
mov dword [ebx], 0xb90394
mov dword [edi], 0xb92900
mov dword [esi + 0xa0], ebp
mov dword [esi + 0x9c], 0xbb1284
lea ecx, [esi + 0xb0]
call fcn.0059c600
lea edi, [esi + 0xc8]
mov dword [edi + 4], ebp
mov dword [edi], 0xbb00fc
mov byte [esp + 0x38], 5
mov dword [esi], 0xb92908
mov dword [esi + 0xac], ebp
call fcn.006c5454
mov eax, dword [eax + 0xc]
push 0x40e
push eax
call dword [0x6d16b8]
push eax
mov ecx, edi
call fcn.006c1713
mov ecx, dword [esi + 0xcc]
lea eax, [esp + 0x18]
push eax
push 0x18
push ecx
call dword [0x6d10d8]
mov ecx, dword [esp + 0x1c]
mov eax, 0x55555556
imul ecx
mov ecx, dword [esp + 0x20]
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esi + 0xd4], ecx
mov ecx, dword [esp + 0x30]
mov dword [esi + 0xd0], edx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x5b0890
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x6c9f95
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0xb92908
mov dword [esp + 0x18], 0
lea ecx, [esi + 0xc8]
mov dword [esp + 0xc], ecx
mov dword [ecx], 0xbaf1f8
mov byte [esp + 0x18], 4
call fcn.006c176a
lea ecx, [esi + 0xb0]
mov byte [esp + 0x18], 2
mov dword [ecx], 0xb90390
call fcn.0059c800
lea ecx, [esi + 0x9c]
mov dword [esp + 0xc], ecx
mov dword [ecx], 0xbaf1f8
mov byte [esp + 0x18], 5
call fcn.006c176a
lea edi, [esi + 0x44]
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x44]
mov byte [esp + 0x18], 7
mov dword [ecx], 0xb90390
call fcn.0059c800
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 6
call fcn.006b9537
lea ecx, [edi + 0x18]
mov byte [esp + 0x18], 0
mov dword [ecx], 0xb90390
call fcn.0059c800
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.006c32b6
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x5c4210
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xcbbc40]
xor edx, edx
cmp eax, edx
jne 0x5c4236
xor eax, eax
mov byte [eax + 0xcbbb40], al
inc eax
cmp eax, 0x100
jl 0x5c421e
mov dword [0xcbbc40], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xcbbb40
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x5c42c7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x5c429a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x5c4268
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x5c4340
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x5c4393
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x5c437a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5c8800
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
mov eax, dword [esp + 0x78]
push ebx
push esi
cmp eax, 1
push edi
mov dword [esp + 0x14], ecx
jl 0x5c8a21
cmp eax, 8
jg 0x5c8a21
cmp dword [esp + 0x8c], 2
jl 0x5c8a21
mov eax, dword [esp + 0x7c]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x6c], ecx
sub ecx, esi
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x7c], ecx
test ecx, ecx
mov dword [esp + 0x70], ebx
jle 0x5c8a21
sub ebx, edi
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x5c8a21
mov eax, dword [esp + 0x80]
test eax, eax
je 0x5c8887
mov edx, dword [eax]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x4c], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x50], eax
xor edx, edx
push ebp
test ebx, ebx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], edx
jle 0x5c8a0a
mov ebp, dword [0x6d16f4]
mov eax, ebx
mov dword [esp + 0x10], 0x32
sub eax, edx
cmp eax, 0x32
jg 0x5c88b9
mov dword [esp + 0x10], eax
xor eax, eax
test ecx, ecx
jle 0x5c89f1
mov ebx, dword [esp + 0x10]
add ebx, edx
mov dword [esp + 0x20], ebx
sub ecx, eax
cmp ecx, 0x32
jle 0x5c88d9
mov ecx, 0x32
lea ebx, [ecx + eax]
mov ecx, dword [esp + 0x20]
push ecx
push ebx
push edx
lea edx, [esp + 0x34]
push eax
push edx
call dword [0x6d16e4]
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call ebp
mov eax, dword [esp + 0x84]
test eax, eax
je 0x5c8918
lea ecx, [esp + 0x48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call dword [0x6d16e8]
lea ecx, [esp + 0x28]
push ecx
call dword [0x6d172c]
test eax, eax
jne 0x5c89d8
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x40], ecx
mov eax, edi
mov ecx, esi
mov dword [esp + 0x44], edx
neg eax
neg ecx
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call ebp
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x60], edx
lea edx, [esp + 0x58]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x94]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x94]
sub ecx, edi
sub eax, esi
push edx
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x9c]
push eax
call fcn.005c7e10
cmp eax, 1
jne 0x5c8a02
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x80]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.005c86c0
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov eax, ebx
cmp eax, ecx
jl 0x5c88cd
mov ebx, dword [esp + 0x24]
add edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x14], edx
jge 0x5c8a0a
jmp 0x5c88a4
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
call fcn.005c7a10
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x68
ret 0x1c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x68
ret 0x1c
Function at 0x5cb430
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x5cb5c8
cmp ebp, ebx
jle 0x5cb5c8
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x5cb48e
dec eax
or eax, 0xfffffff8
inc eax
je 0x5cb495
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, 0x80000001
jns 0x5cb4a4
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x5cb4ab
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.006ba443
add esp, 4
cmp eax, ebx
je 0x5cb4cc
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.006ba443
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x5cb5be
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x5cb5a5
mov al, byte [edx]
cmp al, 0xc0
jbe 0x5cb591
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x5cb586
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x5cb594
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x5cb594
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x5cb530
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x5cb521
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x5d2ea0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x6cb948
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x6c]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x74]
push edi
push eax
mov eax, dword [esp + 0x74]
push ecx
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.005d3a20
lea edx, [esp + 0x18]
push eax
push edx
call dword [0x6d16b4]
mov eax, dword [esp + 0x18]
xor edi, edi
xor ecx, ecx
cmp eax, edi
setl cl
dec ecx
xor edx, edx
and ecx, eax
mov eax, dword [esp + 0x1c]
cmp eax, edi
mov dword [esp + 0x18], ecx
setl dl
dec edx
and edx, eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x20], edx
call dword [0x6d172c]
test eax, eax
je 0x5d2f49
mov eax, dword [esp + 0x6c]
push ebx
mov ebx, eax
xor ecx, ecx
xor edx, edx
xor esi, esi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.005d2b30
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
push ecx
push eax
lea eax, [esp + 0x20]
push eax
call dword [0x6d16f4]
push edi
lea ecx, [esp + 0x4c]
call fcn.006c146b
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], edi
call fcn.005e2140
mov edx, dword [esp + 0x5c]
add esp, 0xc
lea ecx, [esp + 0x18]
push 2
push ecx
push edx
call dword [0x6d11ac]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [0x6d175c]
lea edx, [esp + 0x38]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
call dword [0x6d16e8]
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, esi
mov dword [esp + 0x64], 0xffffffff
mov dword [edx], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x48]
call fcn.006c14dd
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14