joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4623f4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x46245e
mov eax, ebx
call fcn.004647e0
test al, al
jne 0x46245e
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404c40
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x46244b
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x46246b
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404ba4
jmp 0x46246b
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404ba4
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x463904
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x463972
mov eax, esi
call fcn.0044bc54
test al, al
je 0x463972
mov eax, dword [ebx + 0x84]
call fcn.0044b8b4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x463972
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x463966
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044b8b4
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00443730
jmp 0x463972
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00463740
pop esi
pop ebx
ret

Function at 0x485db0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x485e0a
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.00485da0
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.00483690
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004831a8
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485e11
lea eax, [ebp - 4]
call fcn.00404b50
ret
Function at 0x48e89c
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
xor ecx, ecx
mov edx, 0x40
call fcn.00403570
ret

Function at 0x48ea48
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404fd0
xor eax, eax
push ebp
push 0x48eb96
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x6c]
call fcn.0048e89c
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00404fe0
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x48eb75
xor eax, eax
push ebp
push 0x48eb6e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x48eb57
xor eax, eax
push ebp
push 0x48eb50
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x48eb39
xor eax, eax
push ebp
push 0x48eb32
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize
mov ecx, eax
lea eax, [ebp - 0x6c]
mov edx, dword [ebp - 0x14]
call fcn.0048e8d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48eb39
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48eb57
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48eb75
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
ret
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x6c]
call fcn.0048e958
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48eb9d
lea eax, [ebp - 4]
call fcn.00404b50
ret
Function at 0x48ec4c
Capabilities:
Create process on windows
Resume thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404fd0
mov eax, dword [ebp - 8]
call fcn.00404fd0
mov eax, dword [ebp - 0xc]
call fcn.00404fd0
xor eax, eax
push ebp
push 0x48ed0d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x44
call fcn.00403570
lea eax, [ebp - 0x60]
xor ecx, ecx
mov edx, 0x10
call fcn.00403570
mov dword [ebp - 0x50], 0x44
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 4]
call fcn.00404fe0
push eax
push 0
push 0x20
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404fe0
push eax
mov eax, dword [ebp - 8]
call fcn.00404fe0
push eax
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x48ecf2
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x58]
mov dword [eax], edx
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_ResumeThread
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48ed14
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404b74
ret

Function at 0x48edec
Capabilities:
Check for time delay via gettickcount
Enumerate gui resources

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, ecx
mov dword [esp], edx
xor ebx, ebx
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 8], eax
call sub.kernel32.dll_GetTickCount_1
mov ebp, eax
jmp 0x48ee40
lea eax, [esp + 4]
push eax
push 0x48ed20
call sub.user32.dll_EnumWindows
mov esi, dword [esp + 8]
test esi, esi
jbe 0x48ee2d
mov eax, dword [esp]
mov dword [eax], esi
mov bl, 1
jmp 0x48ee71
push 0x14
call sub.kernel32.dll_Sleep_2
mov eax, dword [0x4af56c]
mov eax, dword [eax]
call fcn.00462850
call sub.kernel32.dll_GetTickCount_1
sub eax, ebp
xor edx, edx
push edx
push eax
mov eax, edi
cdq
cmp edx, dword [esp + 4]
jne 0x48ee5d
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x48ee71
jmp 0x48ee61
pop edx
pop eax
jle 0x48ee71
mov eax, dword [0x4af56c]
mov eax, dword [eax]
cmp byte [eax + 0xa4], 0
je 0x48ee0d
mov eax, ebx
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x48ef50
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, edx
mov esi, eax
xor ebx, ebx
xor eax, eax
mov dword [esp], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, esp
push eax
push 0x48ee7c
call sub.user32.dll_EnumWindows
mov eax, dword [esp + 4]
test eax, eax
jbe 0x48ef85
mov edx, dword [esp]
mov dword [esi], edx
mov dword [edi], eax
mov bl, 1
mov eax, ebx
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4925cc
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4925fa
mov eax, ebx
call fcn.00493080
cmp dword [ebx + 0x40], 0
je 0x4925f3
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x49266b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x49265d
cmp dword [ebx + 8], 0
je 0x49261c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x49262e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x49265d
cmp dword [ebx + 8], 0
je 0x49260f
cmp eax, 3
je 0x492641
dec eax
jne 0x49260f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x49260f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x49260f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x492689
cmp dword [ebx + 0x14], 0xcc
je 0x492689
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00492694
pop ebx
ret

Function at 0x4a3504
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
movzx ebx, byte [0x4a3540]
push 0x10
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4a351b
or bl, 1
push 0x11
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4a352a
or bl, 4
push 0x12
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4a3539
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x4a3df0
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 4]
mov edx, dword [0x43f3b0]
call fcn.00403ddc
test al, al
je 0x4a3e32
mov eax, dword [0x4af56c]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4a3e32
mov edx, dword [0x4af56c]
xor edx, edx
call fcn.0045a38c
push 0
mov eax, dword [0x4af56c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
pop ebx
ret
Function at 0x4a86b0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4a86b8
push ecx
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x4a8855
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, dword [0x4af56c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
call fcn.0040983c
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
mov ecx, 0x4a886c
call fcn.00404e68
mov eax, dword [ebp - 4]
call fcn.0040976c
test al, al
je 0x4a8810
lea edx, [ebp - 0x10]
mov eax, dword [ebx + 0x3a8]
call fcn.00443810
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, 0x4a8880
call fcn.00404e68
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.0048ea48
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x18]
call fcn.0048eba4
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00408bb8
mov eax, dword [ebp - 0x14]
push eax
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 8]
call fcn.0048ea48
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x30]
call fcn.0048eba4
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.00408bb8
mov edx, dword [ebp - 0x2c]
pop eax
call fcn.00404f78
je 0x4a8810
push 0x24
push 0x4a8894
push 0x4a889c
mov eax, ebx
call fcn.0044b8b4
push eax
call sub.user32.dll_MessageBoxA_1
cmp eax, 7
je 0x4a8810
mov eax, dword [ebx + 0x394]
mov edx, dword [eax]
call dword [edx + 0xd8]
test al, al
je 0x4a87c2
push 0x40
push 0x4a8894
push 0x4a8928
mov eax, ebx
call fcn.0044b8b4
push eax
call sub.user32.dll_MessageBoxA_1
jmp 0x4a8810
push 0
lea edx, [ebp - 0x34]
mov eax, dword [ebx + 0x3a8]
call fcn.00443810
lea eax, [ebp - 0x34]
mov edx, 0x4a8984
call fcn.00404e1c
mov eax, dword [ebp - 0x34]
call fcn.00404fe0
push eax
mov eax, dword [ebp - 8]
call fcn.00404fe0
mov esi, eax
push esi
call sub.kernel32.dll_CopyFileA
push 0
push esi
mov eax, dword [ebp - 4]
call fcn.00404fe0
push eax
call sub.kernel32.dll_CopyFileA
mov byte [ebx + 0x424], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a885c
lea eax, [ebp - 0x34]
call fcn.00404b50
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.00404b74
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00404b74
lea eax, [ebp - 0x10]
call fcn.00404b50
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404b74
ret
Function at 0x405dcd
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a94], 0
push esi
jne 0x405e04
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405dde
mov dword [ecx*4 + 0x422a90], eax
inc ecx
cmp ecx, 0x100
jl 0x405dd9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e35
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a90]
xor eax, esi
inc ecx
dec edx
jne 0x405e17
pop edi
not eax
pop esi
ret 0xc

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret

Function at 0x4829eb
Capabilities:
Encode data using xor

Disassembly:
push 1
pop ecx
cmp dword [esp + 8], ecx
jl 0x482a0b
mov eax, dword [esp + 4]
mov edx, ecx
and edx, 3
mov dl, byte [esp + edx + 0xc]
xor byte [eax], dl
inc ecx
inc eax
cmp ecx, dword [esp + 8]
jle 0x4829f8
ret
Function at 0x464680
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x1c727a0]
xor edx, edx
cmp eax, edx
jne 0x4646a6
xor eax, eax
mov byte [eax + 0x1c726a0], al
inc eax
cmp eax, 0x100
jl 0x46468e
mov dword [0x1c727a0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x1c726a0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x464737
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 0x46470a
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 0x4646d8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x464740
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 0x464793
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 0x46477a
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 0x468b10
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 0x468d31
cmp eax, 8
jg 0x468d31
cmp dword [esp + 0x8c], 2
jl 0x468d31
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 0x468d31
sub ebx, edi
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x468d31
mov eax, dword [esp + 0x80]
test eax, eax
je 0x468b97
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 0x468d1a
mov ebp, dword [fcn.0050c64c]
mov eax, ebx
mov dword [esp + 0x10], 0x32
sub eax, edx
cmp eax, 0x32
jg 0x468bc9
mov dword [esp + 0x10], eax
xor eax, eax
test ecx, ecx
jle 0x468d01
mov ebx, dword [esp + 0x10]
add ebx, edx
mov dword [esp + 0x20], ebx
sub ecx, eax
cmp ecx, 0x32
jle 0x468be9
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.0050c638]
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call ebp
mov eax, dword [esp + 0x84]
test eax, eax
je 0x468c28
lea ecx, [esp + 0x48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call dword [fcn.0050c640]
lea ecx, [esp + 0x28]
push ecx
call dword [fcn.0050c680]
test eax, eax
jne 0x468ce8
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.00468120
cmp eax, 1
jne 0x468d12
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.004689d0
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov eax, ebx
cmp eax, ecx
jl 0x468bdd
mov ebx, dword [esp + 0x24]
add edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x14], edx
jge 0x468d1a
jmp 0x468bb4
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
call fcn.00467d20
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 0x46be20
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 0x46bfb8
cmp ebp, ebx
jle 0x46bfb8
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 0x46be7e
dec eax
or eax, 0xfffffff8
inc eax
je 0x46be85
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, 0x80000001
jns 0x46be94
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x46be9b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.004f6b9d
add esp, 4
cmp eax, ebx
je 0x46bebc
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.004f6b9d
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 0x46bfae
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 0x46bf95
mov al, byte [edx]
cmp al, 0xc0
jbe 0x46bf81
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x46bf76
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 0x46bf84
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x46bf84
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x46bf20
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 0x46bf11
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 0x474070
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5089a8
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.00474bf0
lea edx, [esp + 0x18]
push eax
push edx
call dword [fcn.0050c610]
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.0050c680]
test eax, eax
je 0x474119
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.00473d00
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.0050c64c]
push edi
lea ecx, [esp + 0x4c]
call fcn.004fdbb6
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.00489f10
mov edx, dword [esp + 0x5c]
add esp, 0xc
lea ecx, [esp + 0x18]
push 2
push ecx
push edx
call dword [fcn.0050c188]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [fcn.0050c6b8]
lea edx, [esp + 0x38]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
call dword [fcn.0050c640]
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.004fdc28
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14