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

Disassembly:
push 0xffffffffffffffff
push 0x480c18
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ad980]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
call dword [0x48561c]
mov ecx, dword [esp + 0x30]
mov ebx, eax
push ebx
call fcn.00451761
xor esi, esi
mov dword [esp + 0x18], 0x487604
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], esi
call fcn.00448fba
movzx ecx, word [esp + 0x34]
mov eax, dword [eax + 0xc]
push ecx
push eax
call dword [0x485618]
push eax
lea ecx, [esp + 0x1c]
call fcn.00451761
mov edx, dword [esp + 0x1c]
push edx
call dword [0x485614]
test eax, eax
jle 0x41b475
mov eax, dword [esp + 0x1c]
push esi
push eax
call dword [0x485624]
mov edi, eax
test edi, edi
jne 0x41b3b2
push eax
push eax
push 0x800
push ebx
call dword [0x485620]
jmp 0x41b461
cmp edi, 0xffffffff
jne 0x41b41e
mov ecx, dword [esp + 0x1c]
push esi
push ecx
call dword [0x4856a4]
push eax
call fcn.0045172c
mov ebp, eax
call dword [0x485610]
lea ecx, [esp + 0x34]
mov edi, eax
call fcn.00406680
mov byte [esp + 0x28], 1
push 0x400
lea edx, [esp + 0x38]
push edx
push esi
lea ecx, [esp + 0x24]
call fcn.004517cf
mov eax, dword [esp + 0x34]
push eax
push edi
push 0x410
push esi
push ebx
call dword [0x48560c]
mov ecx, dword [esp + 0x30]
push edi
push ebp
call fcn.0041b4c0
mov byte [esp + 0x28], 0
lea ecx, [esp + 0x34]
jmp 0x41b45c
lea ecx, [esp + 0x14]
call fcn.00406680
mov byte [esp + 0x28], 2
push 0
lea ecx, [esp + 0x18]
push ecx
push edi
lea ecx, [esp + 0x24]
call fcn.004517cf
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 4]
push edx
push edi
push 0
push ecx
call dword [0x485620]
mov byte [esp + 0x28], 0
lea ecx, [esp + 0x14]
call fcn.004065d0
mov edx, dword [esp + 0x1c]
push edx
inc esi
call dword [0x485614]
cmp esi, eax
jl 0x41b38d
lea ecx, [esp + 0x18]
call fcn.004517b9
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0x487604
call fcn.004517b9
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
Function at 0x427d50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x480988
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ad980]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov esi, ecx
lea ebp, [esi + 4]
push ebp
lea ecx, [esp + 0x18]
call fcn.00406150
xor ebx, ebx
mov dword [esp + 0x44], ebx
lea edi, [esi + 0x2c]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x1c], ebx
call fcn.00401ee0
mov eax, dword [esi]
mov dword [esi + 0x14], 1
mov eax, dword [eax - 0xc]
cdq
and edx, 0x3f
add eax, edx
sar eax, 6
add eax, 8
push eax
call fcn.00427be0
mov ecx, dword [esi + 0x30]
mov dword [esi + 0x18], ebx
mov eax, dword [ecx]
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
or edi, 0xffffffff
cmp ecx, ebx
je 0x427e5c
mov ecx, dword [esi + 0x28]
push ebx
push esi
lea edx, [esp + 0x28]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
call fcn.00427f40
cmp eax, ebx
mov edx, dword [esi]
mov ecx, dword [edx - 0xc]
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
mov dword [edx + 4], ecx
jle 0x427e53
mov ecx, dword [esi + 0x30]
mov edx, dword [ecx]
mov dword [edx + 0x14], eax
mov edx, dword [esi + 0x30]
mov ecx, eax
sar ecx, 0x10
mov ecx, dword [edx + ecx*4]
and eax, 0xffff
shl eax, 5
cmp dword [ecx + eax + 0x18], ebx
je 0x427e6a
push 0x495060
mov ecx, ebp
call fcn.00406a10
jmp 0x427e6a
push 0xf
push 0x495094
jmp 0x427e63
push 0xe
push 0x4950b4
mov ecx, ebp
call fcn.00406920
mov edx, dword [esp + 0x14]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x1c], ebx
cmp dword [edx - 0xc], ebx
je 0x427eeb
mov eax, dword [ebp]
cmp dword [eax - 0xc], ebx
jne 0x427e9b
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebp
call fcn.00406530
jmp 0x427eeb
push 0x4950d4
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00404f00
mov byte [esp + 0x50], 1
push ebp
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.004252b0
add esp, 0x18
mov byte [esp + 0x44], 2
push eax
mov ecx, ebp
call fcn.00406530
mov byte [esp + 0x44], 1
lea ecx, [esp + 0x18]
call fcn.004065d0
mov byte [esp + 0x44], bl
lea ecx, [esp + 0x1c]
call fcn.004065d0
cmp dword [esi + 0x34], ebx
je 0x427f1d
mov esi, dword [esi + 0x30]
mov eax, dword [esi]
test dword [eax + 0xc], 0x800000
jne 0x427f1d
mov eax, dword [eax + 0x14]
cmp eax, ebx
je 0x427f1d
mov edx, eax
sar edx, 0x10
mov ecx, dword [esi + edx*4]
and eax, 0xffff
shl eax, 5
cmp dword [ecx + eax + 0x18], ebx
jne 0x427f1d
mov bl, 1
mov dword [esp + 0x44], edi
lea ecx, [esp + 0x14]
call fcn.004065d0
mov al, bl
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
Function at 0x43d330
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x482e10
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x4ad980]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea eax, [esi + 4]
push eax
mov dword [esi], 0x498830
call dword [0x485650]
xor eax, eax
mov ebx, 1
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esp + 0x1c], eax
lea ecx, [esi + 0x30]
push ecx
mov dword [esi], 0x49836c
call fcn.0043fc80
mov byte [esp + 0x1c], bl
lea edx, [esi + 0x64]
push edx
call fcn.0043f770
mov byte [esp + 0x1c], 2
lea eax, [esi + 0xdc]
push eax
call fcn.0043f770
mov byte [esp + 0x1c], 3
lea ecx, [esi + 0x154]
push ecx
call fcn.0043f770
mov byte [esp + 0x1c], 4
push 0x48d76c
lea ecx, [esp + 0x14]
call fcn.004063f0
mov bl, 5
mov byte [esp + 0x1c], bl
push 0x48d76c
lea ecx, [esp + 0x10]
call fcn.004063f0
mov byte [esp + 0x1c], 6
mov dword [esi + 0x2c], 0x8024
mov byte [esp + 0x1c], bl
lea ecx, [esp + 0xc]
call fcn.004065d0
mov byte [esp + 0x1c], 4
lea ecx, [esp + 0x10]
call fcn.004065d0
mov dword [esp + 0x1c], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret 4

Function at 0x43d450
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47d918
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4ad980]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esi], 0x49836c
mov dword [esp + 0x14], 3
lea eax, [esi + 0x154]
push eax
call fcn.0043f850
mov byte [esp + 0x14], 2
lea ecx, [esi + 0xdc]
push ecx
call fcn.0043f850
mov byte [esp + 0x14], 1
lea edx, [esi + 0x64]
push edx
call fcn.0043f850
xor cl, cl
mov byte [esp + 0x14], cl
lea eax, [esi + 0x30]
mov dword [esp + 8], eax
mov dword [eax], 0x498874
mov byte [esp + 0x14], cl
mov dword [eax], 0x498830
mov dword [esp + 0x14], 0xffffffff
mov dword [esi], 0x498830
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4
Function at 0x43efe0
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x482c28
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4ad980]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
push 1
push 0x14
push 0xc8
push 0xa
lea esi, [edi + 0xe4]
push 0xa
mov ecx, esi
call fcn.0045011c
push 1
push 0x14
push 0x96
push 0x2d
lea ecx, [edi + 0x25c]
push 0x37
call fcn.0045011c
push 1
push 0xf
push 0x91
push 0x41
lea ecx, [edi + 0x3d4]
push 0x37
call fcn.0045011c
push 1
push 0x14
push 0x96
push 0x53
lea ecx, [edi + 0x318]
push 0x37
call fcn.0045011c
push 1
push 0x1a
push 0x2b
push 0x40
lea ecx, [edi + 0x1a0]
push 0xa
call fcn.0045011c
push 1
push 0x20
push 0x26
push 0x37
push 0xc8
lea ecx, [edi + 0x468]
call fcn.0045011c
push 1
push 0x14
push 0xd2
push 0x82
lea ecx, [edi + 0x518]
push 0xa
mov dword [esp + 0x30], ecx
call fcn.0045011c
push 1
push 0x32
push 0xd2
push 0x98
lea ecx, [edi + 0x5d4]
push 0xa
mov dword [esp + 0x34], ecx
call fcn.0045011c
push 1
push 0x1c
push 0x52
push 0xd2
lea ecx, [edi + 0x690]
push 0x82
mov dword [esp + 0x2c], ecx
call fcn.0045011c
mov eax, 0x333333
push 0xfffffffffffffff1
push 0x258
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], eax
call fcn.004245d0
mov ebx, 0x4984d0
call fcn.0042f5b0
lea esi, [edi + 0x1a0]
call fcn.00424400
mov eax, dword [esi + 0x20]
push 1
push 0
push eax
mov esi, dword [0x485684]
call esi
lea ecx, [esp + 0x14]
call fcn.00406680
mov dword [esp + 0x30], 0
call fcn.00430f90
add eax, 0x41
push eax
lea ecx, [esp + 0x18]
push 0x4984e0
push ecx
call fcn.00405fb0
mov edx, dword [esp + 0x20]
add esp, 0xc
push edx
lea ecx, [edi + 0x25c]
call fcn.004500ba
push str.v_pBottInfo__d___NULL
lea ecx, [edi + 0x318]
call fcn.004500ba
mov ebx, 0x498504
call fcn.0042f5b0
mov ebx, dword [0x485724]
mov dword [edi + 0x430], eax
mov dword [edi + 0x42c], eax
mov dword [edi + 0x434], 0
mov dword [edi + 0x428], 1
movzx eax, word [edi + 0xc0]
mov ecx, dword [edi + 0x3f4]
shl eax, 0x10
push eax
push 0
push 0x401
push ecx
call ebx
mov edx, dword [edi + 0x3f4]
push 0
push 0
push 0x402
push edx
call ebx
mov ebx, 0x498520
call fcn.0042f5b0
mov edi, dword [esp + 0x18]
mov ebx, 1
push ebx
mov dword [edi + 0x64], eax
mov eax, dword [edi + 0x20]
push 0
push eax
mov dword [edi + 0xa0], 0
mov byte [edi + 0x60], bl
call esi
mov esi, dword [esp + 0x1c]
push 0xfffffffffffffff3
push 0x1f4
call fcn.004245d0
mov eax, dword [esp + 0x20]
mov ecx, 0x978f88
mov dword [eax + 0x80], ecx
mov dword [eax + 0x84], ecx
mov byte [eax + 0x58], bl
mov ebx, 0x498540
mov byte [eax + 0x59], 0
call fcn.0042f5b0
mov ecx, dword [edi + 0x20]
push 1
push 0
push ecx
mov dword [edi + 0xa0], 0
mov dword [edi + 0x64], eax
mov byte [edi + 0x60], 1
call dword [0x485684]
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.004065d0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x511b70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x475dc8
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.0050ca90
test eax, eax
jne 0x511bdc
push ebp
push 0x53bf30
mov ecx, edi
call fcn.00510df0
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.0050c610
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.004ff020
push ebx
mov dword [esp + 0x4c], ebp
call fcn.0050cc40
add esp, 4
test eax, eax
je 0x511c7f
add esi, 0x18
push esi
call fcn.004ffa70
add esi, eax
push esi
call fcn.004ffa70
mov ecx, dword [esp + 0x60]
add esp, 8
cmp ecx, 3
lea eax, [esi + eax + 8]
ja 0x511f82
jmp dword [ecx*4 + 0x4183c0]
mov eax, dword [esi]
push ebp
push eax
mov ecx, edi
call fcn.00510f30
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.004ffa70
add esi, eax
push esi
call fcn.004ffa70
add esi, eax
add esp, 8
mov esi, dword [esi]
test esi, esi
je 0x511cd0
mov ecx, dword [esi + 0x1c]
push ecx
call dword [fcn.0047a408]
test eax, eax
je 0x511cd0
mov eax, 1
jmp 0x511cd2
xor eax, eax
cmp ebx, 8
jge 0x511f37
cmp ebx, 7
ja 0x511f82
jmp dword [ebx*4 + 0x4183d0]
test eax, eax
jne 0x511f4a
mov ecx, dword [esp + 0x10]
push eax
push 0x53bf1c
call fcn.00510df0
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.00512490
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], 0x5249a8
call fcn.004ff220
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 0x51abd0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x553a40]
xor edx, edx
cmp eax, edx
jne 0x51abf6
xor eax, eax
mov byte [eax + 0x553940], al
inc eax
cmp eax, 0x100
jl 0x51abde
mov dword [0x553a40], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x553940
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x51ac87
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 0x51ac5a
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 0x51ac28
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x51ad00
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 0x51ad53
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 0x51ad3a
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 0x51eff0
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 0x51f211
cmp eax, 8
jg 0x51f211
cmp dword [esp + 0x8c], 2
jl 0x51f211
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 0x51f211
sub ebx, edi
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x51f211
mov eax, dword [esp + 0x80]
test eax, eax
je 0x51f077
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 0x51f1fa
mov ebp, dword [fcn.0047a48c]
mov eax, ebx
mov dword [esp + 0x10], 0x32
sub eax, edx
cmp eax, 0x32
jg 0x51f0a9
mov dword [esp + 0x10], eax
xor eax, eax
test ecx, ecx
jle 0x51f1e1
mov ebx, dword [esp + 0x10]
add ebx, edx
mov dword [esp + 0x20], ebx
sub ecx, eax
cmp ecx, 0x32
jle 0x51f0c9
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 [fcn.0047a49c]
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call ebp
mov eax, dword [esp + 0x84]
test eax, eax
je 0x51f108
lea ecx, [esp + 0x48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call dword [fcn.0047a498]
lea ecx, [esp + 0x28]
push ecx
call dword [fcn.0047a458]
test eax, eax
jne 0x51f1c8
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.0051e600
cmp eax, 1
jne 0x51f1f2
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.0051eeb0
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov eax, ebx
cmp eax, ecx
jl 0x51f0bd
mov ebx, dword [esp + 0x24]
add edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x14], edx
jge 0x51f1fa
jmp 0x51f094
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
call fcn.0051e200
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 0x521790
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 0x521928
cmp ebp, ebx
jle 0x521928
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 0x5217ee
dec eax
or eax, 0xfffffff8
inc eax
je 0x5217f5
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, 0x80000001
jns 0x521804
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x52180b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.005619bb
add esp, 4
cmp eax, ebx
je 0x52182c
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.005619bb
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 0x52191e
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 0x521905
mov al, byte [edx]
cmp al, 0xc0
jbe 0x5218f1
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x5218e6
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 0x5218f4
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x5218f4
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x521890
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 0x521881
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 0x5294d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x477238
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.0052a050
lea edx, [esp + 0x18]
push eax
push edx
call dword [fcn.0047a64c]
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.0047a458]
test eax, eax
je 0x529579
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.00529160
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
push ecx
push eax
lea eax, [esp + 0x20]
push eax
call dword [fcn.0047a48c]
push edi
lea ecx, [esp + 0x4c]
call 0x56873f
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.00538a10
mov edx, dword [esp + 0x5c]
add esp, 0xc
lea ecx, [esp + 0x18]
push 2
push ecx
push edx
call dword [fcn.0047a0e0]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [fcn.0047a41c]
lea edx, [esp + 0x38]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
call dword [fcn.0047a498]
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 0x5687b1
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14