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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x45b010]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
push ecx
xor ebx, ebx
mov dword [esp + 0x1c], 4
push ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
call fcn.004040eb
mov ecx, eax
call fcn.00406f8b
lea eax, [esp + 0x1c]
push eax
call fcn.004040eb
mov ecx, eax
call fcn.00405a51
cmp dword [eax + 0x14], 8
jb 0x424b12
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push ebx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor edi, edi
lea ecx, [esp + 0x1c]
push ebx
inc edi
mov esi, eax
push edi
call fcn.004069d5
test esi, esi
jne 0x424b63
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
push ebx
push ebx
push str.RemoteControl
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 0x10]
test eax, eax
cmovne ecx, edi
mov edi, ecx
mov dword [esp + 0x10], edi
cmp dword [esp + 0x14], ebx
je 0x424b7b
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
xor eax, eax
cmp eax, edi
pop edi
pop esi
sbb eax, eax
pop ebx
xor ecx, esp
neg eax
call fcn.00431fdc
mov esp, ebp
pop ebp
ret

Function at 0x424b95
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x45b010]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
xor eax, eax
push edi
xor edi, edi
cmp dword [ebp + 8], eax
push ecx
setne al
mov dword [esp + 0x10], edi
push ecx
mov dword [esp + 0x18], eax
call fcn.004040eb
mov ecx, eax
call fcn.00406f8b
lea eax, [esp + 0x14]
push eax
call fcn.004040eb
mov ecx, eax
call fcn.00405a51
cmp dword [eax + 0x14], 8
jb 0x424be4
mov eax, dword [eax]
push edi
lea ecx, [esp + 0x10]
push ecx
push edi
push 0x20006
push edi
push edi
push edi
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push edi
push 1
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.004069d5
test esi, esi
jne 0x424c2a
push 4
lea eax, [esp + 0x14]
push eax
push 4
push edi
push str.RemoteControl
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [esp + 0xc], edi
je 0x424c3a
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x2c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
inc eax
call fcn.00431fdc
mov esp, ebp
pop ebp
ret 4
Function at 0x425f01
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
je 0x425fc4
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push edi
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x425fc3
test edi, edi
je 0x425fc3
push esi
xor esi, esi
test eax, eax
jle 0x425f98
push str._tab
push dword [edi + esi*4]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x425f66
lea eax, [esi + 1]
cmp eax, dword [ebp - 4]
jge 0x425f66
lea ecx, [ebx + 0x1e4]
jmp 0x425f88
push str._apk
push dword [edi + esi*4]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x425f92
lea eax, [esi + 1]
cmp eax, dword [ebp - 4]
jge 0x425f92
lea ecx, [ebx + 0x1e8]
mov esi, eax
push dword [edi + esi*4]
call fcn.0040692c
inc esi
cmp esi, dword [ebp - 4]
jl 0x425f42
cmp byte [0x45b042], 0
pop esi
je 0x425fc3
push dword [ebx + 0x1e4]
push str.CMainFrame::ParseArgs
push str.Common
push str.__s__s:_tab_page__s_
push 0
push 0
call fcn.00410271
add esp, 0x18
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42a7a0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x45b010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov eax, ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0xa
push esi
push 0xe
push 0x400
mov dword [ebp - 0x1c], eax
mov dword [eax], edx
call ebx
mov eax, dword [ebp - 0x1c]
push 0xa
push edi
push 0xf
push 0x400
mov dword [eax + 0xc], esi
call ebx
mov eax, dword [ebp - 0x1c]
push 0xa
mov dword [eax + 0x10], edi
lea eax, [ebp - 0x18]
push eax
push 0x12
push 0x400
call ebx
mov esi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtol]
lea eax, [ebp - 0x18]
push eax
call esi
mov edi, dword [ebp - 0x1c]
add esp, 4
push 0xa
mov dword [edi + 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x1010
push 0x400
call ebx
lea eax, [ebp - 0x18]
push eax
call esi
add esp, 4
mov dword [edi + 0x14], eax
lea eax, [ebp - 0x18]
push 0xa
push eax
push 0x10
push 0x400
call ebx
mov ax, word [ebp - 0x18]
lea edx, [ebp - 0x18]
mov dword [edi + 8], 0
test ax, ax
je 0x42a87b
movzx eax, ax
cmp ax, 0x31
jb 0x42a86f
cmp ax, 0x39
ja 0x42a86f
mov ecx, dword [edi + 8]
movzx eax, ax
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*2]
add eax, 0xffffffd0
mov dword [edi + 8], eax
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x42a851
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00431fdc
mov esp, ebp
pop ebp
ret
Function at 0x42dbc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, ecx
mov ebx, 1
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [eax + 8], edi
mov dword [eax + 0xc], esi
add eax, 0x10
mov dword [ebp + 0xc], eax
push 0x5851f42d
xor eax, eax
mov ecx, esi
push 0x4c957f2d
shr ecx, 0x1e
xor eax, esi
xor ecx, edi
push eax
push ecx
call fcn.00438780
mov edi, eax
mov esi, edx
mov eax, ebx
cdq
add edi, eax
mov eax, dword [ebp + 0xc]
adc esi, edx
inc ebx
mov dword [eax], edi
mov dword [eax + 4], esi
add eax, 8
mov dword [ebp + 0xc], eax
cmp ebx, 0x138
jl 0x42dbe3
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov dword [eax], pe_nt_image_headers32
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4364c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x45b010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push 0x20a
push 0
push eax
mov dword [ebp - 0x214], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x210]
call fcn.0042c4a0
push str.dr.dll
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x436565
mov dword [esi + 0x14], 7
xor eax, eax
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x210], ax
jne 0x43654b
push eax
lea eax, [ebp - 0x210]
push eax
jmp 0x4365aa
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
add esp, 4
push eax
lea eax, [ebp - 0x210]
push eax
jmp 0x4365aa
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00431ba0
add esp, 8
test eax, eax
je 0x436591
push 0x4426ac
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x436525
xor eax, eax
mov dword [esi + 0x14], 7
push eax
mov dword [esi + 0x10], 0
mov word [esi], ax
push 0x4426d8
mov ecx, esi
call fcn.00405894
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00431fdc
mov esp, ebp
pop ebp
ret 4
Function at 0x436760
Capabilities:
Get system information on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d1ee
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x158
mov eax, dword [0x45b010]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
je 0x436932
cmp dword [esi + 0xa8], 0
jne 0x436932
lea edi, [esi + 0x58]
mov dword [ebp - 0x140], 1
push edi
mov dword [ebp - 0x144], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp dword [esi + 0x20], 0
je 0x43692b
push str.RtlGetVersion
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x118
mov dword [ebp - 0x13c], eax
lea eax, [ebp - 0x134]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x13c]
add esp, 0xc
mov dword [ebp - 0x138], 0x11c
test eax, eax
je 0x436837
lea ecx, [ebp - 0x138]
push ecx
call eax
test eax, eax
je 0x43688d
lea eax, [ebp - 0x138]
mov dword [ebp - 0x138], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x43688d
lea eax, [ebp - 0x138]
mov dword [ebp - 0x138], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x43688d
mov eax, dword [esi + 0x20]
xor ecx, ecx
mov word [eax + 0x30], cx
mov eax, dword [esi + 0x20]
mov word [eax + 0x32], cx
mov eax, dword [esi + 0x20]
mov word [eax + 0x36], cx
mov eax, dword [esi + 0x20]
mov word [eax + 0x34], cx
jmp 0x4368c2
mov ecx, dword [esi + 0x20]
movzx eax, word [ebp - 0x134]
mov word [ecx + 0x30], ax
mov ecx, dword [esi + 0x20]
movzx eax, word [ebp - 0x130]
mov word [ecx + 0x32], ax
mov ecx, dword [esi + 0x20]
movzx eax, word [ebp - 0x24]
mov word [ecx + 0x36], ax
mov ecx, dword [esi + 0x20]
movzx eax, word [ebp - 0x12c]
mov word [ecx + 0x34], ax
xorps xmm0, xmm0
mov dword [ebp - 0x148], 0
push str.GetNativeSystemInfo
push str.kernel32.dll
movups xmmword [ebp - 0x168], xmm0
movups xmmword [ebp - 0x158], xmm0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x436903
lea ecx, [ebp - 0x168]
push ecx
call eax
jmp 0x436910
lea eax, [ebp - 0x168]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esi + 0x20]
mov ax, word [ebp - 0x168]
mov word [ecx + 0x38], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ecx, dword [esi + 0x20]
mov word [ecx + 0x3a], ax
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00431fdc
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x40bc43
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x40bc52
pop dword [ebp - 0x14]
mov eax, 0x40bc52
sub dword [ebp - 0x14], eax
push 0x40
push 0x1000
push 0x36d39
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x14]
call dword [eax]
mov ecx, 0x3d70
mov esi, eax
mov edi, 0xec3820b1
add edi, 0x14091b13
add edi, dword [ebp - 0x14]
mov ebx, 0x30c12880
sub dword [ebp - 0xc], 0x2e697541
mov edx, dword [edi]
add dword [ebp - 4], edx
xor edx, ebx
add dword [ebp - 0x10], 0xb2a2a277
mov dword [esi], edx
sub dword [ebp - 0xc], 0x4ae71e5d
add esi, 4
add edi, 0x59e522cc
sub edi, 0x59e522c8
loop 0x40bc9b
add eax, 0xe893
mov ebx, eax
add eax, 0x482fb02a
add eax, 0xb7d04fdb
mov ecx, 0x49adfc78
sub ecx, 0x496dfc78
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x7ffe5499
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0x30]
call 0x7ffe54a4
pop edx
xor dx, dx
add edx, 0x155e0
xor ecx, ecx
mov cl, 0x1e
xor byte [ecx + edx], 0x68
loop 0x7ffe54b2
push dword fs:[0x24]
pop dword [edx + 0xa]
mov cl, 0xff
push edx
loop 0x7ffe54c4
mov dword [edx + 0x11], 0xffff2cbb
mov ecx, dword [eax + 0x2c]
mov dword [edx + 0x1b], ecx
cld
cld
mov dword [edx + 0x100], ecx
cld
clc
mov dword [eax + 0x2c], esp
nop
push 0
nop
push 0
push 0
stc
push 0
push 0x30
push 0x20
nop
push 0
stc
push 0
cld
add edx, 0xfffeff38
push edx
cld
clc
push edx
push 0
cld
stc
call dword [edx + 0x1020b]
add esp, 0x3f8
xor eax, eax
stc
inc eax
ret 0xc
Function at 0x4163f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4918c8]
xor edx, edx
cmp eax, edx
jne 0x416416
xor eax, eax
mov byte [eax + 0x4917c8], al
inc eax
cmp eax, 0x100
jl 0x4163fe
mov dword [0x4918c8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4917c8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4164a7
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 0x41647a
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 0x416448
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x416520
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 0x416573
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 0x41655a
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 0x41e280
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 0x41e4a1
cmp eax, 8
jg 0x41e4a1
cmp dword [esp + 0x8c], 2
jl 0x41e4a1
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 0x41e4a1
sub ebx, edi
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x41e4a1
mov eax, dword [esp + 0x80]
test eax, eax
je 0x41e307
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 0x41e48a
mov ebp, dword [0x46748c]
mov eax, ebx
mov dword [esp + 0x10], 0x32
sub eax, edx
cmp eax, 0x32
jg 0x41e339
mov dword [esp + 0x10], eax
xor eax, eax
test ecx, ecx
jle 0x41e471
mov ebx, dword [esp + 0x10]
add ebx, edx
mov dword [esp + 0x20], ebx
sub ecx, eax
cmp ecx, 0x32
jle 0x41e359
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 [0x467478]
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call ebp
mov eax, dword [esp + 0x84]
test eax, eax
je 0x41e398
lea ecx, [esp + 0x48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call dword [0x46747c]
lea ecx, [esp + 0x28]
push ecx
call dword [0x4674c0]
test eax, eax
jne 0x41e458
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.0041d890
cmp eax, 1
jne 0x41e482
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.0041e140
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov eax, ebx
cmp eax, ecx
jl 0x41e34d
mov ebx, dword [esp + 0x24]
add edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x14], edx
jge 0x41e48a
jmp 0x41e324
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
call fcn.0041d490
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 0x420a20
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 0x420bb8
cmp ebp, ebx
jle 0x420bb8
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 0x420a7e
dec eax
or eax, 0xfffffff8
inc eax
je 0x420a85
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, 0x80000001
jns 0x420a94
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x420a9b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.00458527
add esp, 4
cmp eax, ebx
je 0x420abc
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.00458527
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 0x420bae
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 0x420b95
mov al, byte [edx]
cmp al, 0xc0
jbe 0x420b81
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x420b76
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 0x420b84
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x420b84
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x420b20
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 0x420b11
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 0x428270
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4650a8
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.00428df0
lea edx, [esp + 0x18]
push eax
push edx
call dword [0x467448]
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 [0x4674c0]
test eax, eax
je 0x428319
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.00427f00
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
push ecx
push eax
lea eax, [esp + 0x20]
push eax
call dword [0x46748c]
push edi
lea ecx, [esp + 0x4c]
call fcn.0045f14c
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.004376f0
mov edx, dword [esp + 0x5c]
add esp, 0xc
lea ecx, [esp + 0x18]
push 2
push ecx
push edx
call dword [0x467078]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [0x4674e8]
lea edx, [esp + 0x38]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
call dword [0x46747c]
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.0045f1be
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14