joyce8/EMBER2024-capa huggingface dataset:
Function at 0x624f68
Capabilities:
Inspect section memory permissions
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [edi], 0x1008727c
lea esi, [edi + 4]
push 0x100
push ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], 0xff
call fcn.0062aaa8
mov dword [esi], eax
mov ecx, 0x20
mov dword [esi + 4], ebx
add esp, 8
mov byte [eax], bl
mov eax, 1
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xac], ecx
push 0x10084833
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0x10000
mov dword [esp + 0x24], 0x10086e84
mov dword [esp + 0x28], 0x20000
mov dword [esp + 0x2c], 0x10086e74
mov dword [esp + 0x30], 0x100000
mov dword [esp + 0x34], 0x10086e68
mov dword [esp + 0x38], 0x40000
mov dword [esp + 0x3c], 0x10086e5c
mov dword [esp + 0x40], 0x80000
mov dword [esp + 0x44], 0x10086e50
mov dword [esp + 0x48], 0x80000000
mov dword [esp + 0x4c], 0x10086e40
mov dword [esp + 0x50], 0x40000000
mov dword [esp + 0x54], 0x10086e30
mov dword [esp + 0x58], 0x20000000
mov dword [esp + 0x5c], 0x10086e20
mov dword [esp + 0x60], 0x10000000
mov dword [esp + 0x64], 0x10086e14
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], 0x10086e04
mov dword [esp + 0x70], 0x80
mov dword [esp + 0x74], 0x10086dec
mov dword [esp + 0x78], 8
mov dword [esp + 0x7c], 0x10086ddc
mov dword [esp + 0x80], 2
mov dword [esp + 0x84], 0x10086dcc
mov dword [esp + 0x88], 0x100
mov dword [esp + 0x8c], 0x10086db4
mov dword [esp + 0x90], 0x10
mov dword [esp + 0x94], 0x10086da4
mov dword [esp + 0x98], 4
mov dword [esp + 0x9c], 0x10086d90
mov dword [esp + 0xa4], 0x10086d80
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], 0x10086d6c
mov dword [esp + 0xb4], 0x10086d5c
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call fcn.006111f8
mov ebp, dword [esp + 0x10]
push ebp
mov ecx, esi
call fcn.006111f8
cmp ebp, ebx
je 0x625127
push ebp
call fcn.0062ab58
add esp, 4
xor ebp, ebp
mov eax, dword [esp + ebp*8 + 0x1c]
test dword [esp + 0x120], eax
je 0x62515c
not eax
and dword [esp + 0x120], eax
cmp dword [edi + 8], ebx
je 0x625150
push 0x10086d58
mov ecx, esi
call fcn.00611038
mov eax, dword [esp + ebp*8 + 0x20]
push eax
mov ecx, esi
call fcn.00611038
add ebp, 1
cmp ebp, 0x13
jb 0x625129
cmp dword [edi + 8], ebx
jne 0x6251ab
push 0x10086d50
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call fcn.006111f8
mov ebp, dword [esp + 0x10]
push ebp
mov ecx, esi
call fcn.006111f8
cmp ebp, ebx
je 0x6251e7
push ebp
call fcn.0062ab58
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 4
mov eax, dword [esp + 0x120]
cmp eax, ebx
je 0x6251e7
push eax
lea ecx, [esp + 0x20]
push 0x10086d48
push ecx
call dword [0x10084254]
add esp, 0xc
cmp dword [edi + 8], ebx
je 0x6251db
push 0x10086d58
mov ecx, esi
call fcn.00611038
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.00611038
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 4
Function at 0x625738
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x17c
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [edi], 0x1008727c
lea esi, [edi + 4]
push 0x100
push ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], 0xff
call fcn.0062aaa8
add esp, 8
mov dword [esi], eax
mov dword [esi + 4], ebx
push 0x10084833
lea ecx, [esp + 0x14]
mov byte [eax], bl
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x100870f8
mov dword [esp + 0x28], pe_nt_image_headers32
mov dword [esp + 0x2c], 0x100870e0
mov dword [esp + 0x30], 2
mov dword [esp + 0x34], 0x100870cc
mov dword [esp + 0x38], 4
mov dword [esp + 0x3c], 0x100870b4
mov dword [esp + 0x40], 0x800
mov dword [esp + 0x44], 0x100870a0
mov dword [esp + 0x48], 8
mov dword [esp + 0x4c], 0x10087080
mov dword [esp + 0x50], 0x10
mov dword [esp + 0x54], 0x10087064
mov dword [esp + 0x58], 0x20
mov dword [esp + 0x5c], 0x10087044
mov dword [esp + 0x60], 0x80
mov dword [esp + 0x64], 0x10087028
mov dword [esp + 0x68], 0x100
mov dword [esp + 0x6c], 0x1008700c
mov dword [esp + 0x70], 0x200
mov dword [esp + 0x74], 0x10086ff4
mov dword [esp + 0x78], 0x1000
mov dword [esp + 0x7c], 0x10086fdc
mov dword [esp + 0x80], 0x2000
mov dword [esp + 0x84], 0x10086fc4
mov dword [esp + 0x88], 0x4000
mov dword [esp + 0x8c], 0x10086fa8
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call fcn.006111f8
mov ebp, dword [esp + 0x10]
push ebp
mov ecx, esi
call fcn.006111f8
cmp ebp, ebx
je 0x62588f
push ebp
call fcn.0062ab58
add esp, 4
mov ebx, dword [esp + 0x190]
xor ebp, ebp
mov eax, dword [esp + ebp*8 + 0x1c]
test ebx, eax
je 0x6258c2
not eax
and ebx, eax
cmp dword [edi + 8], 0
je 0x6258b6
push 0x10086d58
mov ecx, esi
call fcn.00611038
mov eax, dword [esp + ebp*8 + 0x20]
push eax
mov ecx, esi
call fcn.00611038
add ebp, 1
cmp ebp, 0xe
jb 0x625898
xor ebp, ebp
cmp dword [edi + 8], ebp
jne 0x625913
push 0x10086d50
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call fcn.006111f8
mov ebx, dword [esp + 0x10]
push ebx
mov ecx, esi
call fcn.006111f8
cmp ebx, ebp
je 0x62594e
push ebx
call fcn.0062ab58
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x17c
ret 4
cmp ebx, ebp
je 0x62594e
push ebx
lea ecx, [esp + 0x90]
push 0x10086d48
push ecx
call dword [0x10084254]
add esp, 0xc
cmp dword [edi + 8], ebp
je 0x62593f
push 0x10086d58
mov ecx, esi
call fcn.00611038
lea edx, [esp + 0x8c]
push edx
mov ecx, esi
call fcn.00611038
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x17c
ret 4
Function at 0x6328d8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
xor ebp, ebp
cmp ebx, ebp
push esi
push edi
mov dword [esp + 0x10], ebp
je 0x632976
mov eax, dword [ebx + 0x3c]
mov esi, dword [eax + ebx + 0x78]
add eax, ebx
add esi, ebx
cmp dword [esi + 0x18], ebp
mov dword [esp + 0x18], eax
jbe 0x632976
jmp 0x632908
mov eax, dword [esi + 0x20]
mov edi, dword [esp + 0x1c]
lea ecx, [eax + ebp*4]
mov eax, dword [ecx + ebx]
add eax, ebx
test eax, 0xffff0000
je 0x632937
test edi, 0xffff0000
je 0x632937
push edi
push eax
call dword [0x100841a8]
neg eax
sbb eax, eax
add eax, 1
jmp 0x632940
xor edx, edx
cmp eax, edi
sete dl
mov eax, edx
test eax, eax
je 0x63296e
mov eax, dword [esi + 0x24]
lea ecx, [eax + ebp*2]
movzx edx, word [ecx + ebx]
mov eax, dword [esi + 0x1c]
lea ecx, [eax + edx*4]
mov edi, dword [ecx + ebx]
add edi, ebx
cmp edi, esi
jb 0x63296a
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x7c]
add eax, esi
cmp edi, eax
jbe 0x632980
mov dword [esp + 0x10], edi
add ebp, 1
cmp ebp, dword [esi + 0x18]
jb 0x632908
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor ecx, ecx
cmp byte [edi], cl
mov eax, edi
je 0x632993
add eax, 1
add ecx, 1
cmp byte [eax], 0
jne 0x632988
lea ebx, [ecx + 1]
xor esi, esi
test ebx, ebx
jbe 0x6329a7
push ebx
call fcn.0062aa08
add esp, 4
mov esi, eax
push ebx
push edi
push esi
call fcn.0062a988
mov al, byte [esi]
add esp, 0xc
test al, al
mov edi, esi
je 0x6329c8
cmp al, 0x2e
je 0x6329d9
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x6329ba
push esi
call fcn.0062ab58
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
push esi
call dword [0x100840d8]
add edi, 1
push edi
push eax
call fcn.006328d8
push esi
mov edi, eax
call fcn.0062ab58
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x6523e8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x18]
mov dx, word [eax]
shr dx, 1
push esi
movzx esi, dx
xor ecx, ecx
test si, si
push edi
mov word [esp + 8], 0x5c
mov word [esp + 0xa], 0x2f
mov word [esp + 0xc], 0x3a
mov word [esp + 0xe], 0x2a
mov word [esp + 0x10], 0x3f
mov word [esp + 0x12], 0x22
mov word [esp + 0x14], 0x3c
mov word [esp + 0x16], 0x3e
mov word [esp + 0x18], 0x7c
jbe 0x65246f
mov edi, dword [eax + 4]
jmp 0x652448
movzx edx, cx
movzx edx, word [edi + edx*2]
xor eax, eax
lea esp, [esp]
cmp dx, word [esp + eax*2 + 8]
je 0x65247a
add eax, 1
cmp eax, 9
jb 0x652458
add ecx, 1
cmp cx, si
jb 0x652448
pop edi
mov eax, 1
pop esi
add esp, 0x14
ret
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret
Function at 0x6de712
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret 4

Function at 0x6e0868
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea edi, [ecx + 4]
mov dword [ebp - 0xc], ecx
mov dword [ecx], 0x4450c8
xor edx, edx
xor eax, eax
mov ecx, edi
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x6e0883
mov byte [edi + 0x100], dl
mov byte [edi + 0x101], dl
xor ebx, ebx
mov ecx, edi
mov dword [ebp - 8], 0x100
mov al, byte [ecx]
movzx esi, dl
mov edx, dword [ebp + 8]
mov byte [ebp - 1], al
movzx eax, al
movzx edx, byte [esi + edx]
add ebx, edx
add eax, ebx
mov ebx, 0x100
cdq
idiv ebx
movzx ebx, dl
mov al, byte [ebx + edi]
mov byte [ecx], al
mov al, byte [ebp - 1]
mov byte [ebx + edi], al
lea eax, [esi + 1]
cdq
idiv dword [ebp + 0xc]
inc ecx
dec dword [ebp - 8]
jne 0x6e08a4
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x6e0a65
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0xc], 0
mov al, byte [ecx + 0x104]
mov dl, byte [ecx + 0x105]
jbe 0x6e0b09
push ebx
push esi
push edi
movzx edi, al
movzx ebx, dl
jmp 0x6e0a93
mov ebx, dword [ebp - 0xc]
lea eax, [edi + 1]
mov esi, 0x100
cdq
idiv esi
movzx edi, dl
mov al, byte [edi + ecx + 4]
mov byte [ebp - 2], dl
lea esi, [edi + ecx + 4]
mov byte [ebp - 1], al
movzx eax, al
add eax, ebx
mov ebx, 0x100
cdq
idiv ebx
mov ebx, dword [ebp - 8]
movzx eax, dl
mov dword [ebp - 0xc], eax
mov byte [ebp - 3], dl
mov dl, byte [eax + ecx + 4]
lea eax, [eax + ecx + 4]
mov byte [esi], dl
mov dl, byte [ebp - 1]
mov byte [eax], dl
mov eax, dword [ebp + 8]
add ebx, eax
movzx eax, byte [esi]
movzx edx, dl
add eax, edx
mov esi, 0x100
cdq
idiv esi
movzx eax, dl
mov al, byte [eax + ecx + 4]
xor byte [ebx], al
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jb 0x6e0a90
mov al, byte [ebp - 2]
mov dl, byte [ebp - 3]
pop edi
pop esi
pop ebx
push 1
mov byte [ecx + 0x104], al
mov byte [ecx + 0x105], dl
pop eax
leave
ret 8
Function at 0x6ef6f6
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x443c0f
call fcn.00703954
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.006f08e3
xor edi, edi
mov dword [esi + 0x1c], 0xa
mov dword [ebp - 4], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
mov dword [esi + 0x18], edi
mov ebx, dword [ebp + 8]
mov byte [ebp - 4], 1
mov dword [esi], 0x4450f4
mov dword [esi + 0x30], ebx
call fcn.006f9b72
push edi
mov dword [esi + 4], eax
push dword [ebp + 0xc]
push ebx
push eax
call fcn.006f9b99
push 8
call fcn.0070393a
mov dword [esi + 0x24], eax
mov ecx, dword [0x44b1dc]
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
mov ecx, dword [ebp - 0xc]
add esp, 0x14
mov dword [eax + 4], esi
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x45ad29
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4aad58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebp
push edi
mov edi, ecx
xor ebp, ebp
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x48]
push ebp
push eax
push ecx
lea ecx, [edi + 0x104]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call fcn.00455c29
test eax, eax
jne 0x45ad95
push ebp
push 0x4d40b0
mov ecx, edi
call fcn.00459fa9
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
pop edi
pop ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
mov edx, dword [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x50]
push esi
push ebp
push ebp
push ebx
lea ecx, [edx + 0x14]
call fcn.00455659
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.00448289
push ebx
mov dword [esp + 0x4c], ebp
call fcn.00455dd9
add esp, 4
test eax, eax
je 0x45ae38
add esi, 0x18
push esi
call fcn.00448cd9
add esi, eax
push esi
call fcn.00448cd9
mov ecx, dword [esp + 0x60]
add esp, 8
cmp ecx, 3
lea eax, [esi + eax + 8]
ja 0x45b13b
jmp dword [ecx*4 + 0x457fd0]
mov eax, dword [esi]
push ebp
push eax
mov ecx, edi
call fcn.0045a0e9
mov ebx, dword [esp + 0x58]
mov ebp, eax
lea edi, [esi + 0x18]
mov edx, dword [ebp + 0x28]
lea ecx, [ebx + ebx*4]
mov esi, edi
lea eax, [edx + ecx*4]
push esi
mov dword [esp + 0x5c], eax
call fcn.00448cd9
add esi, eax
push esi
call fcn.00448cd9
add esi, eax
add esp, 8
mov esi, dword [esi]
test esi, esi
je 0x45ae89
mov ecx, dword [esi + 0x1c]
push ecx
call dword [fcn.004ae43c]
test eax, eax
je 0x45ae89
mov eax, 1
jmp 0x45ae8b
xor eax, eax
cmp ebx, 8
jge 0x45b0f0
cmp ebx, 7
ja 0x45b13b
jmp dword [ebx*4 + 0x457fe0]
test eax, eax
jne 0x45b103
mov ecx, dword [esp + 0x10]
push eax
push 0x4d409c
call fcn.00459fa9
push 6
call dword [ebp + 0x2c]
lea edx, [esp + 0x1c]
xor ecx, ecx
add ebx, 0xfffffff8
push edx
mov dword [esp + 0x20], ecx
push ebx
push esi
mov dword [esp + 0x2c], ecx
call eax
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
call fcn.0045b649
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
mov esi, eax
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x2c], 0x4c0270
call fcn.00448489
mov ecx, dword [esp + 0x40]
mov eax, esi
pop esi
mov edx, edi
pop ebx
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
Function at 0x463ca9
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4eab18]
xor edx, edx
cmp eax, edx
jne 0x463ccf
xor eax, eax
mov byte [eax + 0x4eaa18], al
inc eax
cmp eax, 0x100
jl 0x463cb7
mov dword [0x4eab18], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4eaa18
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x463d60
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 0x463d33
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 0x463d01
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x463dd9
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 0x463e2c
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 0x463e13
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 0x4680c9
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 0x4682ea
cmp eax, 8
jg 0x4682ea
cmp dword [esp + 0x8c], 2
jl 0x4682ea
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 0x4682ea
sub ebx, edi
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x4682ea
mov eax, dword [esp + 0x80]
test eax, eax
je 0x468150
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 0x4682d3
mov ebp, dword [0x4ae480]
mov eax, ebx
mov dword [esp + 0x10], 0x32
sub eax, edx
cmp eax, 0x32
jg 0x468182
mov dword [esp + 0x10], eax
xor eax, eax
test ecx, ecx
jle 0x4682ba
mov ebx, dword [esp + 0x10]
add ebx, edx
mov dword [esp + 0x20], ebx
sub ecx, eax
cmp ecx, 0x32
jle 0x4681a2
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 [0x4ae490]
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call ebp
mov eax, dword [esp + 0x84]
test eax, eax
je 0x4681e1
lea ecx, [esp + 0x48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call dword [0x4ae48c]
lea ecx, [esp + 0x28]
push ecx
call dword [fcn.004ae44c]
test eax, eax
jne 0x4682a1
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.004676d9
cmp eax, 1
jne 0x4682cb
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.00467f89
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov eax, ebx
cmp eax, ecx
jl 0x468196
mov ebx, dword [esp + 0x24]
add edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x14], edx
jge 0x4682d3
jmp 0x46816d
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
call fcn.004672d9
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 0x46a869
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 0x46aa01
cmp ebp, ebx
jle 0x46aa01
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 0x46a8c7
dec eax
or eax, 0xfffffff8
inc eax
je 0x46a8ce
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, 0x80000001
jns 0x46a8dd
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x46a8e4
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.004a1d9b
add esp, 4
cmp eax, ebx
je 0x46a905
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.004a1d9b
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 0x46a9f7
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 0x46a9de
mov al, byte [edx]
cmp al, 0xc0
jbe 0x46a9ca
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x46a9bf
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 0x46a9cd
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x46a9cd
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x46a969
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 0x46a95a
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 0x472609
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4ac168
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.00473189
lea edx, [esp + 0x18]
push eax
push edx
call dword [fcn.004ae628]
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 [fcn.004ae44c]
test eax, eax
je 0x4726b2
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.00472299
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
push ecx
push eax
lea eax, [esp + 0x20]
push eax
call dword [0x4ae480]
push edi
lea ecx, [esp + 0x4c]
call fcn.004a8a23
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.00481aa9
mov edx, dword [esp + 0x5c]
add esp, 0xc
lea ecx, [esp + 0x18]
push 2
push ecx
push edx
call dword [0x4ae0e0]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [fcn.004ae418]
lea edx, [esp + 0x38]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
call dword [0x4ae48c]
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.004a8a95
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14