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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040aa30
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x418abb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x418abb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x418a6e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x418a79
or bh, 8
and edi, 0x8000000
je 0x418a94
mov eax, dword [0x43915c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x418abb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418e90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x418ebb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x418edf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x418efa
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x41e029
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41e06b
call fcn.00422796
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41e06b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41e062
xor eax, eax
jmp 0x41e073
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041e079
pop edi
pop esi
pop ebx
ret 4

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x77fe199a
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43104e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x431024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x61cd449d
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x4021e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [0x429040]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
mov dword [esp + 0x2c], 0x52800
xor ecx, ecx
mov esi, 0x19
nop dword [eax]
mov eax, ecx
mov byte [esp + ecx + 0x38], cl
xor edx, edx
div esi
mov al, byte [edx + 0x47c2c0]
mov byte [esp + ecx + 0x138], al
inc ecx
cmp ecx, 0x100
jl 0x402210
xor esi, esi
xor edi, edi
nop dword [eax]
nop dword [eax + eax]
mov dl, byte [esp + esi + 0x38]
movzx eax, byte [esp + esi + 0x138]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x402263
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x38]
mov byte [esp + esi + 0x38], al
inc esi
mov byte [esp + edi + 0x38], dl
cmp esi, 0x100
jl 0x402240
xor eax, eax
mov edi, 0x3e8
xor esi, esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], esi
cmp eax, esi
je 0x4022a4
mov dword [eax], 0x52800
add eax, 4
mov dword [esp + 0x18], eax
jmp 0x4022bb
lea ecx, [esp + 0x2c]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.004043a0
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
sub edi, 1
jne 0x402291
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x24], esi
cmp dword [ebx], edi
jle 0x4023aa
xor esi, esi
inc esi
and esi, 0x800000ff
jns 0x4022e3
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [esp + esi + 0x38]
mov eax, dword [esp + 0x10]
movzx edx, cl
add eax, edx
and eax, 0x800000ff
jns 0x4022fe
dec eax
or eax, 0xffffff00
inc eax
mov dword [esp + 0x10], eax
mov al, byte [esp + eax + 0x38]
mov byte [esp + esi + 0x38], al
mov eax, dword [esp + 0x10]
mov byte [esp + eax + 0x38], cl
movzx eax, byte [esp + esi + 0x38]
add eax, edx
movzx eax, al
mov dword [esp + 0x28], eax
call fcn.00403530
mov dword [esp + 0x20], eax
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + eax + 0x30]
mov eax, dword [ecx + 4]
mov ecx, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], eax
mov edx, dword [eax]
call dword [edx + 4]
lea eax, [esp + 0x14]
push eax
call fcn.00403390
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
mov eax, dword [edx + 0x20]
call eax
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x34], al
test ecx, ecx
je 0x402379
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x402379
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
call fcn.00403fa0
mov ecx, dword [esp + 0x20]
call fcn.00403d00
mov eax, dword [esp + 0x28]
mov al, byte [esp + eax + 0x38]
xor byte [edi + 0x429ac0], al
inc edi
cmp edi, dword [ebx]
jl 0x4022d2
mov esi, dword [esp + 0x24]
sub esi, ebx
mov eax, ebx
and esi, 0xfffffffc
cmp esi, 0x1000
jb 0x4023c9
mov ebx, dword [eax - 4]
add esi, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4023e8
push esi
push ebx
call fcn.00407d33
mov ecx, dword [esp + 0x244]
add esp, 8
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00407cf0
mov esp, ebp
pop ebp
ret
call fcn.0040c9f3
int3
Function at 0x402610
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x34
mov eax, dword [0x429040]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [0x47da30]
push ebp
push esi
push edi
mov eax, dword [ebx + 0x3c]
xor esi, esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], 0
mov eax, dword [eax + ebx + 0x78]
add eax, ebx
mov dword [esp + 0x20], eax
mov edi, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add edi, ebx
mov dword [esp + 0x1c], eax
test eax, eax
je 0x402726
mov edx, dword [edi]
xorps xmm0, xmm0
add edx, ebx
mov dword [esp + 0x34], 0
mov eax, edx
mov dword [esp + 0x38], 0
movups xmmword [esp + 0x24], xmm0
lea ebp, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402678
sub eax, ebp
lea ecx, [esp + 0x24]
push eax
push edx
call fcn.004039c0
lea ecx, [esp + 0x24]
call fcn.004023f0
cmp eax, dword [esp + 0x18]
je 0x4026d9
mov ecx, dword [esp + 0x38]
add edi, 4
cmp ecx, 0xf
jbe 0x4026d0
mov edx, dword [esp + 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4026c6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40273f
push ecx
push edx
call fcn.00407d33
add esp, 8
inc esi
cmp esi, dword [esp + 0x1c]
jb 0x402657
jmp 0x402726
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x24]
lea eax, [eax + esi*2]
movzx ecx, word [eax + ebx]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + ebx]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x38]
cmp ecx, 0xf
jbe 0x402726
mov edx, dword [esp + 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40271c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40273f
push ecx
push edx
call fcn.00407d33
add esp, 8
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
add eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00407cf0
add esp, 0x34
ret
call fcn.0040c9f3
int3

Function at 0x4031f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push 4
call fcn.00407d03
add esp, 4
lea ecx, [esp + 4]
mov dword [eax], 0x4031d0
push ecx
push 0
push eax
push 0x4045d0
push 0
push 0
call fcn.0040c5ef
add esp, 0x18
mov dword [esp], eax
test eax, eax
je 0x40328b
cmp dword [esp + 4], 0
je 0x40329a
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [esp + 4]
cmp ecx, eax
je 0x4032a1
push 0
push ecx
push dword [esp + 8]
call fcn.0040776a
add esp, 0xc
test eax, eax
jne 0x4032a8
xorps xmm0, xmm0
movlpd qword [esp], xmm0
cmp dword [esp], 0x1a4cc
jne 0x40326a
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret 0x10
mov edx, str.Catching_n
mov ecx, 0x47cad8
call fcn.00403720
push 0
call dword [sym.imp.GDI32.dll_GdiSetBatchLimit]
xor eax, eax
cmp dword [esp + 4], eax
jne 0x4032af
jmp 0x403264
push 6
mov dword [esp + 8], 0
call fcn.0040498d
push 1
call fcn.0040498d
push 5
call fcn.0040498d
push 2
call fcn.0040498d
call fcn.0040c680
int3
Function at 0x405ac8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x405ae9
jl 0x405ae0
test edi, edi
jne 0x405ae9
xor eax, eax
xor edx, edx
jmp 0x405baa
cmp dword [ebx + 0x38], 0
je 0x405afe
push eax
push edi
push dword [ebp + 8]
call fcn.00405bb0
jmp 0x405baa
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x405b45
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x405b45
cmp eax, edi
jb 0x405b1f
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00408fd0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x405b4b
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x405b9f
mov ecx, ebx
call fcn.00405318
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x405b8a
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040d761
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x405b9f
jmp 0x405b5d
test edx, edx
je 0x405b9f
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040d761
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x40896d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4089ac
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4089ac
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4089ac
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4089ac
cmp dword [ecx + 0x74], 0xe
jbe 0x4089ac
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41304a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x422024
push 0x42201c
push str.FlsAlloc
push 0x1e
call fcn.00412ef3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41307e
push dword [ebp + 8]
mov ecx, esi
call dword [0x41f14c]
call esi
jmp 0x413084
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4130c8
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x422034
push 0x42202c
push str.FlsGetValue
push 0x20
call fcn.00412ef3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4130ff
push dword [ebp + 8]
mov ecx, esi
call dword [0x41f14c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x414bca
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041486c

Function at 0x414bd5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004149fb

Function at 0x414fcf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408ae0
mov eax, dword [0x429040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00413a61
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x415011
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41516d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041e3c0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x47d708]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041619f
mov ecx, dword [esi*4 + 0x47d708]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x415166
cmp eax, dword [edi + ecx + 0x24]
jne 0x415166
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x415166
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041619f
add esp, 0x14
test edx, edx
jl 0x415166
jg 0x4150dc
test eax, eax
jb 0x415166
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x415166
jl 0x4150f6
cmp dword [ebp - 0x1008], eax
ja 0x415166
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x415114
test ebx, ebx
je 0x41514d
cmp ecx, edi
jae 0x41514d
mov al, byte [ecx]
cmp al, 0xd
jne 0x41512e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41513a
cmp byte [ecx + 1], 0xa
jne 0x41513a
inc ecx
jmp 0x41513a
movzx eax, al
movsx eax, byte [eax + 0x4292f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x415114
cmp edx, ebx
jne 0x415114
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41516b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00407cf0
leave
ret
Function at 0x41563d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x47d708]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41567d
cmp byte [ebx], 0xa
jne 0x41567d
or byte [eax + edi + 0x28], 4
jmp 0x415682
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x415780
mov al, byte [edx]
cmp al, 0x1a
je 0x415762
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4156b1
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4156d6
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4156e0
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x415693
jmp 0x415780
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41575d
cmp dword [ebp - 0xc], 0
je 0x41575d
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47d708]
test byte [eax + edi + 0x28], 0x48
je 0x415737
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x415722
mov byte [esi], dl
jmp 0x415733
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47d708]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x415780
cmp byte [ebp - 1], 0xa
jne 0x415746
cmp esi, ebx
jne 0x415746
mov byte [esi], 0xa
jmp 0x41577f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004161bd
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x415780
mov byte [esi], 0xd
jmp 0x41577f
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47d708]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41577c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x415780
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x415789
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x47d708]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4157cc
cmp word [esi], dx
jne 0x4157cc
or byte [edi + eax + 0x28], 4
jmp 0x4157d1
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x415924
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x415904
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x415813
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x415849
cmp eax, edx
jae 0x415855
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4157eb
jmp 0x415924
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x415900
cmp dword [ebp - 0x14], 0
je 0x415900
mov eax, dword [ebx*4 + 0x47d708]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4158d8
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4158a1
mov word [esi], cx
jmp 0x4158d4
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47d708]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47d708]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47d708]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x415924
pop ebx
cmp word [ebp - 4], bx
jne 0x4158e9
cmp esi, dword [ebp + 0xc]
jne 0x4158e9
mov word [esi], bx
jmp 0x415921
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004161bd
add esp, 0x10
cmp word [ebp - 4], bx
je 0x415924
push 0xd
jmp 0x41591d
mov ecx, dword [ebx*4 + 0x47d708]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41591b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x415924
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4186ed
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x429040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x418738
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041888c
test al, al
jne 0x418732
sub edx, 2
cmp edx, edi
jne 0x418718
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41875a
lea eax, [edi + 2]
cmp edx, eax
je 0x41875a
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00418639
add esp, 0x10
jmp 0x418854
push esi
lea ecx, [ebp - 0x255]
call fcn.0041888c
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41879d
push dword [ebp - 0x25c]
jmp 0x41874a
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4187da
cmp word [ebp - 0x226], 0
je 0x4187fb
cmp word [ebp - 0x226], ax
jne 0x4187da
cmp word [ebp - 0x224], 0
je 0x4187fb
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00418639
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x418847
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4187b4
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41882f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x418854
push 0x418469
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0041c520
add esp, 0x10
jmp 0x418824
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407cf0
leave
ret

Function at 0x41e380
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41e3ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41e3ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret