joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472620
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0xffffffffffffffff
push 0x5258c3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
push ebp
push esi
push edi
push 0x52be04
lea eax, [esp + 0x16c]
push eax
lea ecx, [esp + 0x14]
xor esi, esi
push ecx
mov dword [esp + 0x16c], 0
mov dword [esp + 0x1c], esi
call fcn.00402570
mov eax, dword [eax]
add esp, 0xc
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov edi, eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x472697
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp edi, 0xffffffff
jne 0x4726dd
mov eax, dword [esp + 0x168]
add eax, 0xfffffff0
mov dword [esp + 0x160], edi
lea ecx, [eax + 0xc]
or edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4726c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0x158
ret
mov al, byte [esp + 0x18]
test al, 1
jne 0x472782
mov ebp, dword [sym.imp.kernel32.dll_FindNextFileA]
nop
test al, 0x10
je 0x47276a
cmp byte [esp + 0x44], 0x2e
je 0x47276a
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x16c]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.00402570
add esp, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x52af78
push eax
push ecx
mov byte [esp + 0x170], 1
call fcn.00402570
add esp, 0xc
call fcn.00472620
mov esi, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0x160], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x472762
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test esi, esi
jne 0x472782
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push edi
call ebp
test eax, eax
je 0x472787
mov al, byte [esp + 0x18]
test al, 1
je 0x4726f0
mov esi, 1
push edi
call dword [sym.imp.kernel32.dll_FindClose]
mov eax, dword [esp + 0x168]
add eax, 0xfffffff0
mov dword [esp + 0x160], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4727ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x158]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x158
ret
Function at 0x475410
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1c4
push ebx
push ebp
mov ebp, dword [sym.imp.user32.dll_SystemParametersInfoA]
push esi
push edi
mov esi, ecx
push 0
lea edi, [esi + 0xbc]
push edi
push 0
lea ebx, [esi + 0xb8]
push 0x100a
mov dword [edi], 1
mov dword [ebx], 0
call ebp
push 0
push ebx
push 0
push 0x1022
call ebp
mov edi, dword [edi]
cmp dword [esi + 0x78], edi
je 0x47546f
mov eax, dword [esi + 0x1c]
push 0x105
push 0
push 0
push eax
mov dword [esi + 0x78], edi
call dword [sym.imp.user32.dll_RedrawWindow]
push 0
lea ecx, [esp + 0x84]
push ecx
push 0x154
push 0x29
mov dword [esp + 0x90], 0x154
call ebp
lea edi, [esi + 0x58]
mov ecx, edi
call fcn.00505475
lea edx, [esp + 0x120]
push edx
call dword [sym.imp.gdi32.dll_CreateFontIndirectA]
push eax
mov ecx, edi
call fcn.0050541e
test edi, edi
je 0x4754b4
mov edi, dword [edi + 4]
mov eax, dword [esi + 0x1c]
mov ebx, dword [sym.imp.user32.dll_SendMessageA]
push 1
push edi
push 0x30
push eax
call ebx
mov edx, dword [esi + 0x60]
mov eax, dword [esi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
dec edx
push edx
push 0x41d
push eax
call ebx
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ebp, dword [sym.imp.user32.dll_GetParent]
push eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
call ebp
push eax
call fcn.004fe74c
mov ecx, esi
mov edi, eax
call fcn.004ff156
cmp edi, eax
jne 0x47552b
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push 0
push ecx
push edx
push 0
push 0
mov ecx, esi
call fcn.004fc72f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c4
ret
xor eax, eax
mov ecx, 0x14
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x1c]
push eax
mov dword [esp + 0x34], 0x50
mov dword [esp + 0x38], 0x10
call ebp
push eax
call fcn.004fe74c
xor ebp, ebp
push ebp
push ebp
mov edi, eax
mov ecx, dword [edi + 0x1c]
push 0x40c
push ecx
call ebx
test eax, eax
jbe 0x47562e
lea ecx, [ecx]
mov eax, dword [edi + 0x1c]
lea edx, [esp + 0x30]
push edx
push ebp
push 0x41d
push eax
call ebx
mov ecx, dword [esp + 0x50]
cmp ecx, dword [esi + 0x1c]
je 0x4755a9
mov edx, dword [edi + 0x1c]
push 0
push 0
push 0x40c
push edx
inc ebp
call ebx
cmp ebp, eax
jb 0x475570
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c4
ret
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x1c]
push ebp
mov dword [esp + 0x3c], 0x20
mov dword [esp + 0x5c], eax
mov edx, dword [edi + 0x1c]
push 0x406
push edx
call ebx
mov ecx, dword [edi + 0x1c]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.user32.dll_GetClientRect]
push 0
push 1
push 1
push 0
push 0
mov ecx, edi
call fcn.004fc72f
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
push 1
sub edx, eax
push edx
mov edx, dword [esp + 0x20]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, edi
call fcn.004fc72f
mov ecx, esi
call fcn.004ff156
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 0x144]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c4
ret
Function at 0x47a790
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 4], 0x100
push edi
mov edi, ecx
jne 0x47a7f3
mov ebx, dword [esi + 8]
push 0x11
call dword [sym.imp.user32.dll_GetKeyState]
test ax, ax
jge 0x47a7f3
cmp ebx, 0x22
je 0x47a7c1
cmp ebx, 0x21
je 0x47a7c1
cmp ebx, 9
jne 0x47a7f3
mov eax, dword [edi + 0x1c]
push eax
call dword [sym.imp.user32.dll_GetParent]
push eax
call fcn.004fe74c
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
mov eax, dword [eax + 0x1c]
push ecx
push edx
push 0x100
push eax
call dword [sym.imp.user32.dll_PostMessageA]
pop edi
pop esi
mov eax, 1
pop ebx
ret 4
push esi
mov ecx, edi
call fcn.004717f0
pop edi
pop esi
pop ebx
ret 4

Function at 0x47aea0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
mov edi, ecx
call fcn.005157bf
mov esi, dword [eax + 0xc]
movzx eax, word [esp + 0xc]
push 0xf1
push eax
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
test eax, eax
je 0x47aedb
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x47aedb
push eax
call dword [sym.imp.kernel32.dll_LockResource_1]
mov esi, eax
test esi, esi
jne 0x47aee2
pop edi
xor eax, eax
pop esi
ret 4
movzx ecx, word [esi + 6]
push ebx
shl ecx, 2
push ebp
push ecx
call fcn.004fb3e1
mov ebx, eax
xor eax, eax
add esp, 4
cmp word [esi + 6], ax
jbe 0x47af13
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [ebx + eax*4], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 2
cmp eax, edx
jl 0x47af01
movzx eax, word [esi + 6]
push eax
push ebx
mov ecx, edi
call fcn.00516b99
push ebx
mov ebp, eax
call fcn.004fb3dc
add esp, 4
test ebp, ebp
je 0x47affb
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea ebx, [ecx + 7]
push eax
lea edx, [eax + 8]
push ebx
push edx
mov ecx, edi
call fcn.00516ddb
push 0xf
mov ebp, 1
call dword [sym.imp.user32.dll_GetSysColor]
movzx ecx, word [esi + 2]
mov edx, dword [esp + 0x14]
push 0
mov ebx, eax
push ebx
push ecx
push edx
lea ecx, [edi + 0xb4]
call fcn.00473be0
test eax, eax
je 0x47afae
movzx eax, word [esi + 2]
mov ecx, dword [esp + 0x14]
push ebp
push ebx
push eax
push ecx
lea ecx, [edi + 0xbc]
call fcn.00473be0
test eax, eax
je 0x47afae
movzx edx, word [esi + 2]
mov eax, dword [esp + 0x14]
push 2
push ebx
push edx
push eax
lea ecx, [edi + 0xc4]
call fcn.00473be0
test eax, eax
jne 0x47afb9
xor ebp, ebp
mov eax, ebp
pop ebp
pop ebx
pop edi
pop esi
ret 4
mov ecx, dword [edi + 0xb8]
mov edx, dword [edi + 0x1c]
mov esi, dword [sym.imp.user32.dll_SendMessageA]
push ecx
push 0
push 0x430
push edx
call esi
mov eax, dword [edi + 0xc0]
mov ecx, dword [edi + 0x1c]
push eax
push 0
push 0x434
push ecx
call esi
mov edx, dword [edi + 0xc8]
mov eax, dword [edi + 0x1c]
push edx
push 0
push 0x436
push eax
call esi
mov eax, ebp
pop ebp
pop ebx
pop edi
pop esi
ret 4
Function at 0x481a80
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x3c
push esi
mov esi, dword [esp + 0x50]
cmp esi, 0x30
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
jl 0x481c80
cmp esi, 0x180
jge 0x481c80
push 0x10
call dword [sym.imp.user32.dll_GetKeyState]
test ax, ax
jl 0x481c80
mov eax, esi
cdq
mov ecx, 0x30
idiv ecx
push ebx
mov ebx, dword [edi + 0x16c]
push ebp
or ebp, 0xffffffff
mov dword [esp + 0x24], ebp
mov dl, byte [edx + 0x5590a0]
mov byte [esp + 0x5c], dl
mov edx, dword [edi + 0x170]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
lea eax, [esp + 0x28]
jmp 0x481af0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x50]
add ebp, ecx
dec edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 3
jmp 0x481b10
mov edx, dword [esp + 0x10]
lea ecx, [ecx]
test edi, edi
jl 0x481bde
cmp edi, ebx
jge 0x481bde
test ebp, ebp
jl 0x481bde
cmp ebp, edx
jge 0x481bde
mov eax, dword [esp + 0x58]
test eax, eax
jl 0x481bde
mov ecx, dword [esp + 0x18]
cmp eax, dword [ecx + 0x174]
jge 0x481bde
mov esi, dword [ecx + 0x178]
imul edx, eax
add edx, ebp
imul edx, ebx
add edx, edi
movsx ecx, word [esi + edx*2]
cmp ecx, 0xffffffff
je 0x481bde
cmp ecx, 0x180
jge 0x481b8a
mov eax, 0x2aaaaaab
imul ecx
mov ecx, dword [esp + 0x14]
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ecx
je 0x481bde
mov eax, dword [esp + 0x58]
cmp edi, ebx
jge 0x481bd7
test ebp, ebp
jl 0x481bd7
mov ecx, dword [esp + 0x10]
cmp ebp, ecx
jge 0x481bd7
imul ecx, eax
add ecx, ebp
imul ecx, ebx
add ecx, edi
movsx ecx, word [esi + ecx*2]
cmp ecx, 0x30
jl 0x481bd7
cmp ecx, 0x180
jge 0x481bd7
mov eax, 0x2aaaaaab
imul ecx
mov eax, dword [esp + 0x18]
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [esp + 0x14]
cmp dword [eax + ecx*4 + 0x130], edx
je 0x481bde
mov eax, 1
jmp 0x481be0
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword [ecx], eax
mov eax, dword [esp + 0x20]
add ecx, 4
inc edi
dec eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
jne 0x481b09
mov ebp, dword [esp + 0x24]
inc ebp
cmp ebp, 1
mov dword [esp + 0x24], ebp
mov eax, ecx
jle 0x481aec
mov cl, byte [esp + 0x44]
mov al, byte [esp + 0x3c]
mov bl, byte [esp + 0x2c]
shl cl, 1
add cl, al
mov al, byte [esp + 0x34]
shl cl, 1
add cl, bl
mov bl, byte [esp + 0x40]
shl cl, 1
add cl, al
mov al, byte [esp + 0x48]
shl cl, 1
add cl, bl
mov bl, byte [esp + 0x30]
shl cl, 1
add cl, al
mov al, byte [esp + 0x28]
shl cl, 1
mov edi, dword [esp + 0x18]
add cl, bl
shl cl, 1
add cl, al
mov al, byte [esp + 0x60]
movzx edx, cl
movzx ecx, al
and edx, ecx
movzx ecx, byte [esp + 0x5c]
not al
movzx eax, al
and eax, ecx
or edx, eax
movzx esi, byte [edx + 0x5590d0]
mov eax, dword [esp + 0x14]
lea edx, [eax + eax*2]
shl edx, 4
pop ebp
add esi, edx
pop ebx
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
push esi
push eax
push ecx
push edx
mov ecx, edi
call fcn.00481a10
pop edi
mov eax, 1
pop esi
add esp, 0x3c
ret 0x14
Function at 0x48bf50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5270b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push esi
mov esi, ecx
push edi
lea ecx, [esp + 8]
call fcn.004b7640
mov edi, dword [esp + 0x60]
push 1
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x60], 0
call fcn.004b7710
mov eax, dword [esp + 0xc]
test eax, eax
je 0x48c099
lea ecx, [esp + 0x2c]
call fcn.004b7640
push 0
push edi
lea eax, [esp + 0x68]
push eax
mov ecx, esi
mov byte [esp + 0x64], 1
call fcn.0048be00
mov eax, dword [eax]
push 6
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x60], 2
call fcn.004b7710
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
mov byte [esp + 0x58], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48bfec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x30]
test eax, eax
lea ecx, [esp + 8]
je 0x48c086
push ebp
call fcn.004b7590
mov esi, eax
push esi
push 0x42
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.kernel32.dll_GlobalLock]
mov ebp, eax
push esi
push ebp
lea ecx, [esp + 0x14]
call fcn.004b7530
push esi
push ebp
lea ecx, [esp + 0x38]
call fcn.004b7550
push edi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
push edi
call dword [sym.imp.kernel32.dll_GlobalFree]
lea ecx, [esp + 0x30]
call fcn.004b74e0
lea ecx, [esp + 0xc]
call fcn.004b74e0
lea ecx, [esp + 0x30]
mov byte [esp + 0x5c], 0
call fcn.004b7660
lea ecx, [esp + 0xc]
mov dword [esp + 0x5c], 0xffffffff
call fcn.004b7660
pop ebp
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
add esp, 0x54
ret 4
call fcn.004b74e0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x58], 0
call fcn.004b7660
lea ecx, [esp + 8]
mov dword [esp + 0x58], 0xffffffff
call fcn.004b7660
mov ecx, dword [esp + 0x50]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x54
ret 4
Function at 0x497560
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 0x58]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0xc], edi
je 0x497588
push 1
push 1
call fcn.004b5610
mov ecx, eax
call fcn.004b56f0
cmp eax, ebx
jne 0x497592
pop edi
xor eax, eax
pop ebx
add esp, 0x68
ret 0xc
push ebp
push ebx
push ebx
mov ecx, eax
call fcn.004b6b90
mov eax, dword [esp + 0x7c]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov eax, dword [esp + 0x78]
push eax
call fcn.004a525c
add esp, 4
xor ebp, ebp
cmp eax, ebx
mov dword [esp + 0x14], eax
jle 0x4976f3
push esi
jmp 0x4975d0
xor ebx, ebx
jmp 0x4975d0
mov eax, 1
mov word [esp + 0x1c], bx
mov word [esp + 0x1e], ax
mov word [esp + 0x20], bx
mov word [esp + 0x22], bx
mov word [esp + 0x24], bx
mov word [esp + 0x26], bx
mov word [esp + 0x28], bx
mov word [esp + 0x2a], ax
mov dword [esp + 0x10], ebx
mov ecx, dword [edi + 0x58]
push ebx
call fcn.00497380
mov esi, eax
test esi, esi
je 0x49767c
mov edx, dword [esp + 0x7c]
mov ecx, dword [edi + 0x58]
xor eax, eax
mov ax, word [edx + ebp*2]
push eax
push ebx
call fcn.004974f0
mov edi, eax
test di, di
je 0x497678
lea ecx, [esp + 0x40]
push ecx
push esi
call dword [sym.imp.gdi32.dll_GetTextMetricsA]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
lea eax, [esp + 0x38]
push eax
movzx ecx, di
push 0x86
push ecx
push esi
call dword [sym.imp.gdi32.dll_GetGlyphOutline]
mov edx, dword [esp + 0x7c]
mov ecx, eax
mov ax, word [edx + ebp*2]
cmp ax, 0x20
mov dword [esp + 0x10], ecx
je 0x49766f
cmp ax, 0x3000
jne 0x497674
inc ecx
mov dword [esp + 0x10], ecx
test ecx, ecx
ja 0x497688
mov edi, dword [esp + 0x14]
inc ebx
cmp ebx, 0xa
jl 0x497601
jmp 0x49768c
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4976e5
mov eax, dword [esp + 0x18]
dec eax
cmp ebp, eax
jl 0x4976c9
mov eax, dword [esp + 0x84]
test eax, eax
je 0x4976c9
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
lea eax, [edx + ecx]
movsx ecx, word [esp + 0x3c]
cmp eax, ecx
jg 0x4976be
mov eax, ecx
mov edx, dword [esp + 0x80]
add dword [edx], eax
jmp 0x4976d9
mov eax, dword [esp + 0x80]
movsx ecx, word [esp + 0x3c]
add dword [eax], ecx
mov edx, eax
mov eax, dword [esp + 0x40]
cmp dword [edx + 4], eax
jge 0x4976e5
mov dword [edx + 4], eax
mov eax, dword [esp + 0x18]
inc ebp
cmp ebp, eax
jl 0x4975c3
pop esi
pop ebp
pop edi
mov eax, 1
pop ebx
add esp, 0x68
ret 0xc
Function at 0x49863e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x498691
call fcn.005157bf
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
cmp eax, ebx
je 0x498691
push eax
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x498687
xor eax, eax
jmp 0x4987aa
push eax
call dword [sym.imp.kernel32.dll_LockResource_1]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x4986c1
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x4986c1
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x4987a7
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x4986ee
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.004981c2
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x4987a7
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x498737
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x498737
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x498731
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.004981c2
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x498797
and dword [ebp + 0xc], 0
jmp 0x498797
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x498797
push 0xc
call fcn.004fb3b1
mov esi, eax
test esi, esi
pop ecx
je 0x498779
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.user32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x49877b
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x498792
push dword [ebp - 8]
call fcn.004f9d47
jmp 0x498797
call fcn.004f9d1e
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x4986fc
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4a2713
Capabilities:
Terminate process

Disassembly:
push 8
push 0x564790
call fcn.004a6418
push 8
call fcn.004a90c6
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x594490], esi
jne 0x4a2747
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov dword [0x59448c], esi
mov al, byte [ebp + 0x10]
mov byte [0x594488], al
cmp dword [ebp + 0xc], edi
jne 0x4a2791
cmp dword [0x5c79ec], edi
je 0x4a2781
mov eax, dword [0x5c79e8]
sub eax, 4
mov dword [0x5c79e8], eax
cmp eax, dword [0x5c79ec]
jb 0x4a2781
mov eax, dword [eax]
cmp eax, edi
je 0x4a2762
call eax
jmp 0x4a2762
push 0x5890d4
mov eax, 0x5890c8
call fcn.004a2691
pop ecx
push 0x5890e0
mov eax, 0x5890d8
call fcn.004a2691
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4a27c2
cmp dword [ebp + 0x10], edi
jne 0x4a27d0
mov dword [0x594490], esi
push dword [ebp + 8]
call fcn.004a264f
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4a27cf
push 8
call fcn.004a9011
pop ecx
ret
call fcn.004a6453
ret

Function at 0x4a2ebb
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004a2fa0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x4a2f56
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x594450]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4a2f56
cmp eax, 1
je 0x4a2f77
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x4a2f56
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4a2f23
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4a2f52
xor eax, eax
inc eax
jmp 0x4a2f96
cmp edi, eax
jae 0x4a2f5a
xor eax, eax
jmp 0x4a2f96
cmp eax, esi
jae 0x4a2f61
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov eax, dword [0x594450]
jmp 0x4a2f7a
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a3beb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x4a3dbf
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x5c6660]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4a3dbf
test cl, 0x48
je 0x4a3c56
cmp byte [eax + 5], 0xa
je 0x4a3c56
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x4a3ca8
call dword [sym.imp.kernel32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4a3c90
call fcn.004a37d5
mov dword [eax], 9
call fcn.004a37de
mov dword [eax], esi
jmp 0x4a3ca0
cmp eax, 0x6d
je 0x4a3dbf
push eax
call fcn.004a37e7
pop ecx
or eax, 0xffffffff
jmp 0x4a3dc1
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x4a3dba
test eax, eax
je 0x4a3ccf
cmp byte [ebx], 0xa
jne 0x4a3ccf
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4a3cd8
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x4a3db4
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4a3da4
cmp al, 0xd
je 0x4a3d0a
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4a3d96
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4a3d24
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4a3d1f
add dword [ebp + 0x10], 2
jmp 0x4a3d78
mov dword [ebp + 0x10], eax
jmp 0x4a3d92
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x4a3d4c
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x4a3d92
cmp dword [ebp - 0xc], 0
je 0x4a3d92
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4a3d6d
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4a3d78
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4a3d95
cmp ebx, dword [ebp + 0xc]
jne 0x4a3d7d
cmp byte [ebp - 1], 0xa
jne 0x4a3d7d
mov byte [ebx], 0xa
jmp 0x4a3d95
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004a4208
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4a3d96
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4a3cee
jmp 0x4a3db4
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4a3db4
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4a3dc1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret