joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b210
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x430afc]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x230], ecx
lea ecx, [ebp - 0x14]
call fcn.0040af60
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040b1a0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40b27b
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x224], edx
lea ecx, [ebp - 0x14]
call fcn.0040af90
mov eax, dword [ebp - 0x224]
jmp 0x40b30c
mov dword [ebp - 4], 0x100
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40b2e1
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040b210
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40b2d8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x228], edx
lea ecx, [ebp - 0x14]
call fcn.0040af90
mov eax, dword [ebp - 0x228]
jmp 0x40b30c
mov dword [ebp - 4], 0x100
jmp 0x40b282
lea ecx, [ebp - 0x14]
call fcn.0040b0d0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x230]
call fcn.0040b010
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x14]
call fcn.0040af90
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0041733b
mov esp, ebp
pop ebp
ret 4
Function at 0x40b870
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x40b879
xor ecx, ecx
jne 0x40b879
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x40b89a
mov eax, 0xd
jmp 0x40b8f5
xor eax, eax
jne 0x40b881
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_lstrlenW]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax*2]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2]
mov dword [ebp - 4], edx
cmp dword [ebp - 0xc], 1
jne 0x40b8ab
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 7
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8
Function at 0x416c74
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x43217c], 0
push esi
jne 0x416be7
call fcn.00416b0d
test eax, eax
je 0x416c2a
mov eax, dword [0x43217c]
cmp eax, 1
jne 0x416c08
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x416c2a
pop esi
ret
push eax
call dword [0x432184]
test eax, eax
jne 0x416c72
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x416c2e
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x43217c]
call dword [0x432184]
mov edi, eax
test edi, edi
je 0x416c53
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x416c6f
mov edi, esi
add esi, 0xff0
push edi
push dword [0x43217c]
call dword [0x432180]
add edi, 0x10
cmp edi, esi
jb 0x416c5b
mov eax, edi
pop edi
pop esi
ret
jmp 0x416bd4

Function at 0x41733b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x430afc]
jne 0x417345
repz ret
jmp fcn.00419366

Function at 0x4212b0
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.0041f3bf
and dword [ebp - 4], 0
cmp dword [0x432c14], 0
mov ebx, eax
jne 0x421361
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x421412
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x421412
push eax
call fcn.0041f34d
mov dword [esp], 0x42bd48
push edi
mov dword [0x432c14], eax
call esi
push eax
call fcn.0041f34d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x432c18], eax
call esi
push eax
call fcn.0041f34d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x432c1c], eax
call esi
push eax
call fcn.0041f34d
pop ecx
mov dword [0x432c24], eax
test eax, eax
je 0x421361
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041f34d
pop ecx
mov dword [0x432c20], eax
mov eax, dword [0x432c20]
cmp eax, ebx
je 0x4213b9
cmp dword [0x432c24], ebx
je 0x4213b9
push eax
call fcn.0041f3c8
push dword [0x432c24]
mov esi, eax
call fcn.0041f3c8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4213b9
test edi, edi
je 0x4213b9
call esi
test eax, eax
je 0x4213b0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4213b0
test byte [ebp - 0xc], 1
jne 0x4213b9
or dword [ebp + 0x10], 0x200000
jmp 0x4213f2
mov eax, dword [0x432c18]
cmp eax, ebx
je 0x4213f2
push eax
call fcn.0041f3c8
pop ecx
test eax, eax
je 0x4213f2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4213f2
mov eax, dword [0x432c1c]
cmp eax, ebx
je 0x4213f2
push eax
call fcn.0041f3c8
pop ecx
test eax, eax
je 0x4213f2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x432c14]
call fcn.0041f3c8
pop ecx
test eax, eax
je 0x421412
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x421414
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4055b1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, str.C:UsersADMINI1AppDataLocalTemp_nsnE21A.tmp
push esi
call fcn.004059dd
push esi
call fcn.00405564
mov edi, eax
test edi, edi
jne 0x4055d2
xor eax, eax
jmp 0x405624
push edi
call fcn.00405c3f
test byte [0x423e98], 0x80
je 0x4055eb
mov al, byte [edi]
test al, al
je 0x4055ce
cmp al, 0x5c
je 0x4055ce
sub edi, esi
jmp 0x405603
call fcn.00405cd8
test eax, eax
je 0x4055fd
test byte [eax], 0x10
je 0x4055ce
push esi
call fcn.00405517
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x4055ef
call fcn.004054d0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405695
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4056b1
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x4056b4
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x4056e3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405727
test edi, edi
jne 0x4056ee
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405721
Function at 0x5b3350
Capabilities:
Encode data using xor

Disassembly:
movsb byte es:[edi], byte [esi]
inc esp
sti
cmp esi, dword [ecx + 0x74d1ee40]
pop ss
idiv ah
mov dl, 8
aad 0x26
sub dword [ebx + 0x55], ebp
inc esp
adc al, 0xcb
adc eax, 0xaaf965c4
cld
push ebp
mov ebx, 0x5c29f19
aam 0x79
les esi, [eax + ebp*2 + 0x62]
enter 0xffffffffffffe857, 0xffffffffffffffa8
xchg esp, eax
jl 0x5b33fe
push edx
cli
test esp, esi
cmp ecx, dword [eax - 0x75]
push ebp
mov ecx, 0x9730a194
push ss
in eax, dx
imul esi, dword [ecx + 0x4e5446a], 0xa1c91c61
dec ebp
xchg esp, eax
mov fs, word [ebp + 0x5b40d1ca]
les esi, [edx]
dec ebx
add ecx, dword [esi + 0x20]
test byte [edi + 0x63aee03b], ah
inc esi
insd dword es:[edi], dx
or dh, byte [ebx + 0x69]
in al, dx
jb 0x5b3380
cmpsd dword [esi], dword es:[edi]
push esp
push 0x1be62aa5
pop ss
mov word gs:[0xf9b1c1b5], gs
pop edi
retf
sbb dword [ecx], 0x6e3cb585
push ecx
jnp 0x5b3424
rol bh, 1
stosd dword es:[edi], eax
inc edi
stosd dword es:[edi], eax
int 0x9e
pop eax
into
xor al, byte [ebx]
sbb dword [edx + 0x78714565], 0x6c947a94
aas
or eax, 0xf6629249
call dword gs:[eax - 0x4b]
invalid
push eax
mov ch, 0x8f
adc edi, dword [0x1bf505a4]
pop eax
std
add bh, ah
pop ebx
sbb al, 0xd7
sahf
push ds
aad 0xef
invalid
Function at 0x5d7e05
Capabilities:
Encode data using xor

Disassembly:
sub cl, byte [ebx]
mov edi, 0xfb826819
mov al, byte [0x3eeba2c8]
popal
push ecx
loope 0x5d7e57
and edi, dword [ebx + 0x3a6ac728]
cmp dword [ebx - 0x49], edi
and byte [eax + 0x2a], bh
and eax, 0x5eb4e08
xor ecx, ebp
xchg dword [edi + eax*2 - 0x3d0c89f8], edi
invalid
arpl word [ebp + 0x2f], bx
scasb al, byte es:[edi]
sub eax, 0x2949c457
pcmpeqw mm5, qword [eax + 0x51]
xchg edi, eax
sbb byte [ebp + 0x36], ah
cmc
cmp bh, ah
mov ah, 0x74
in al, dx
out 0x70, al
lds ecx, [0x9b078826]
add al, 0x17
fsubr dword [eax - 0x67]
scasd eax, dword es:[edi]
dec eax
mov gs, word [ebx - 0x77]
mov ch, 0xf0
push ebp
cwde
call 0x77e2893c
pop ss
add al, 0x42
outsd dx, dword [esi]
pop edx
xor byte [edi + 0x2e], ah
jns 0x5d7ead
ja 0x5d7e53
mov esi, dword [edi + 0x348c2469]
mov byte [0xd6e8f70e], dl
lea ebp, [ecx]
or byte [edi + 0x227de6ef], dh
cmp al, 0x7f
add cl, 0x58
cmpsd dword [esi], dword es:[edi]
jns 0x5d7ee1
push edi
mov dh, 0x44
aad 0x85
cmpsd dword [esi], dword es:[edi]
ror bl, 1
jle 0x5d7e44
dec edi
xchg edi, eax
adc edx, dword [eax]
sbb dword [eax], edx
cwde
invalid
mov eax, gs
sbb al, 0x21
ret 0xb7b2
Function at 0x65921d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x660378
cmp edx, dword [eax]
je 0x65923f
add eax, 8
inc ecx
cmp eax, 0x660408
jl 0x659230
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x660378]
jne 0x65936d
mov eax, dword [0xa65cb0]
cmp eax, 1
je 0x659347
test eax, eax
jne 0x659270
cmp dword [0x6602a4], 1
je 0x659347
cmp edx, 0xfc
je 0x65936d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x6592a7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00659c00
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0065a090
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x6592ea
lea eax, [ebp - 0x1a4]
push eax
call fcn.0065a090
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65e624
push edi
call fcn.0065bf60
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00659c00
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00659c10
lea eax, [ebp - 0xa0]
push 0x65e604
push eax
call fcn.00659c10
push dword [esi + 0x66037c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00659c10
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0065bed4
add esp, 0x2c
pop edi
jmp 0x65936d
lea eax, [ebp + 8]
lea esi, [esi + 0x66037c]
push 0
push eax
push dword [esi]
call fcn.0065a090
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 0x41ebe4
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0041ed94
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x41ece2
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x41ec85
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x41ecc8
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x41ec9c
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x41ecb7
test al, 0x40
je 0x41ecae
mov ecx, dword [edi + 0x20]
jmp 0x41ecb5
test al, 0x80
je 0x41ecc8
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x41ecc8
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x41ec54
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x514760
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x1109790]
xor edx, edx
cmp eax, edx
jne 0x514786
xor eax, eax
mov byte [eax + 0x1109690], al
inc eax
cmp eax, 0x100
jl 0x51476e
mov dword [0x1109790], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x1109690
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x514817
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 0x5147ea
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 0x5147b8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x514820
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 0x514873
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 0x51485a
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 0x518be0
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 0x518e01
cmp eax, 8
jg 0x518e01
cmp dword [esp + 0x8c], 2
jl 0x518e01
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 0x518e01
sub ebx, edi
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x518e01
mov eax, dword [esp + 0x80]
test eax, eax
je 0x518c67
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 0x518dea
mov ebp, dword [0x65872c]
mov eax, ebx
mov dword [esp + 0x10], 0x32
sub eax, edx
cmp eax, 0x32
jg 0x518c99
mov dword [esp + 0x10], eax
xor eax, eax
test ecx, ecx
jle 0x518dd1
mov ebx, dword [esp + 0x10]
add ebx, edx
mov dword [esp + 0x20], ebx
sub ecx, eax
cmp ecx, 0x32
jle 0x518cb9
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 [0x658718]
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call ebp
mov eax, dword [esp + 0x84]
test eax, eax
je 0x518cf8
lea ecx, [esp + 0x48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call dword [0x658720]
lea ecx, [esp + 0x28]
push ecx
call dword [0x658760]
test eax, eax
jne 0x518db8
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.005181f0
cmp eax, 1
jne 0x518de2
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.00518aa0
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov eax, ebx
cmp eax, ecx
jl 0x518cad
mov ebx, dword [esp + 0x24]
add edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x14], edx
jge 0x518dea
jmp 0x518c84
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
call fcn.00517df0
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 0x51bad0
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 0x51bc68
cmp ebp, ebx
jle 0x51bc68
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 0x51bb2e
dec eax
or eax, 0xfffffff8
inc eax
je 0x51bb35
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, 0x80000001
jns 0x51bb44
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x51bb4b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.00641322
add esp, 4
cmp eax, ebx
je 0x51bb6c
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.00641322
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 0x51bc5e
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 0x51bc45
mov al, byte [edx]
cmp al, 0xc0
jbe 0x51bc31
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x51bc26
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 0x51bc34
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x51bc34
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x51bbd0
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 0x51bbc1
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 0x5236a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x6520d8
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.00524220
lea edx, [esp + 0x18]
push eax
push edx
call dword [0x6586f4]
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 [0x658760]
test eax, eax
je 0x523749
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.00523330
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
push ecx
push eax
lea eax, [esp + 0x20]
push eax
call dword [0x65872c]
push edi
lea ecx, [esp + 0x4c]
call fcn.0064831f
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.00539bb0
mov edx, dword [esp + 0x5c]
add esp, 0xc
lea ecx, [esp + 0x18]
push 2
push ecx
push edx
call dword [0x6581d0]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [0x65878c]
lea edx, [esp + 0x38]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
call dword [0x658720]
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.00648391
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14