joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403b90
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov ebx, 1
mov dword [esp + 4], 0x403b5b
mov edx, dword [0x429c50]
mov dword [esp], str.static_yyconst_int__s__d___n_______0__n
mov dword [esp + 8], edx
call fcn.0040ebc0
cmp ebx, dword [0x429c50]
jge 0x403c17
jmp 0x403bd0
mov edx, dword [0x42dd10]
test edx, edx
je 0x403bf0
cmp ebx, 0x40
jle 0x403bf0
cmp ebx, 0x5a
jle 0x403d37
nop
lea esi, [esi]
mov eax, dword [ebx*4 + 0x42f8d0]
test eax, eax
js 0x403d30
mov dword [ebx*4 + 0x42f8d0], eax
inc ebx
mov dword [esp], eax
call fcn.0040e780
cmp ebx, dword [0x429c50]
jl 0x403bd0
call fcn.0040e280
mov eax, dword [0x42dde0]
test eax, eax
jne 0x403c2c
add esp, 0x10
pop ebx
pop esi
pop edi
ret
mov dword [esp + 8], 0x18
mov ebx, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], 1
mov dword [esp], 0x403b61
add ebx, 0x40
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [0x429c50]
test eax, eax
mov edx, eax
js 0x403d22
mov esi, edx
xor edi, edi
sar esi, 3
cmp edi, esi
jge 0x403c25
nop
cmp edi, eax
mov ebx, edi
jl 0x403cb1
mov edx, dword [sym.imp.msvcrt.dll__iob]
lea ecx, [edx + 0x40]
mov ebx, dword [ecx + 4]
dec ebx
test ebx, ebx
mov dword [ecx + 4], ebx
js 0x403c9f
mov ecx, dword [edx + 0x40]
mov byte [ecx], 0xa
inc dword [edx + 0x40]
inc edi
cmp edi, esi
jge 0x403c25
mov eax, dword [0x429c50]
jmp 0x403c70
mov dword [esp + 4], ecx
mov dword [esp], 0xa
call sub.msvcrt.dll__flsbuf
jmp 0x403c93
mov dword [esp], ebx
call fcn.0040d8c0
mov dword [esp + 8], eax
mov edx, dword [sym.imp.msvcrt.dll__iob]
mov ecx, dword [ebx*4 + 0x42f8d0]
mov dword [esp + 4], 0x403b7a
add edx, 0x40
mov dword [esp + 0xc], ecx
mov dword [esp], edx
call sub.msvcrt.dll_fprintf
mov edx, dword [sym.imp.msvcrt.dll__iob]
lea ecx, [edx + 0x40]
mov eax, dword [ecx + 4]
dec eax
test eax, eax
mov dword [ecx + 4], eax
js 0x403d10
mov ecx, dword [edx + 0x40]
mov byte [ecx], 0x20
inc dword [edx + 0x40]
add ebx, esi
cmp ebx, dword [0x429c50]
jl 0x403cb1
jmp 0x403c76
mov dword [esp + 4], ecx
mov dword [esp], 0x20
call sub.msvcrt.dll__flsbuf
jmp 0x403cfe
lea edx, [eax + 7]
jmp 0x403c64
neg eax
jmp 0x403bff
mov dword [esp], ebx
call fcn.0040e0d0
movzx esi, al
mov ecx, dword [esi*4 + 0x42f8d0]
mov dword [ebx*4 + 0x42f8d0], ecx
jmp 0x403bf0
Function at 0x40e430
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
mov edx, dword [0x427174]
mov dword [esp + 4], 0x40df91
mov ecx, dword [esp + 0x20]
mov dword [esp + 8], edx
mov edx, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 0xc], ecx
add edx, 0x40
mov dword [esp], edx
call sub.msvcrt.dll_fprintf
mov dword [esp + 0x20], 1
add esp, 0x1c
jmp fcn.00409de0

Function at 0x40f960
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
mov esi, 1
push ebx
sub esp, 0x20
mov edx, dword [esp + 0x30]
mov dword [esp + 4], 0x40f8e0
mov dword [esp + 8], edx
mov edx, dword [sym.imp.msvcrt.dll__iob]
add edx, 0x40
mov dword [esp], edx
call sub.msvcrt.dll_fprintf
cmp esi, dword [0x42ea70]
jle 0x40f9c4
mov dword [esp + 8], 0x17
mov esi, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], 1
mov dword [esp], 0x40f918
add esi, 0x40
mov dword [esp + 0xc], esi
call sub.msvcrt.dll_fwrite
add esp, 0x20
pop ebx
pop esi
pop edi
ret
mov dword [esp + 8], esi
mov ebx, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], 0x40f930
add ebx, 0x40
mov dword [esp], ebx
call sub.msvcrt.dll_fprintf
mov ecx, dword [0x42a170]
mov edx, dword [0x42a9e0]
mov edi, dword [0x42ac30]
mov ebx, dword [ecx + esi*4]
mov eax, dword [0x429c60]
mov ecx, dword [edx + esi*4]
mov edx, dword [edi + esi*4]
mov edi, dword [eax + esi*4]
mov dword [esp + 0xc], ecx
mov ecx, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 0x10], edx
mov dword [esp + 8], ebx
add ecx, 0x40
mov dword [esp + 4], 0x40f93d
mov dword [esp], ecx
call sub.msvcrt.dll_fprintf
test edi, edi
jne 0x40fa58
mov dword [esp], 0xa
mov edx, dword [sym.imp.msvcrt.dll__iob]
inc esi
add edx, 0x40
mov dword [esp + 4], edx
call sub.msvcrt.dll_fputc
cmp esi, dword [0x42ea70]
jle 0x40f9c4
jmp 0x40f994
mov dword [esp + 8], edi
mov edi, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], 0x40f94c
add edi, 0x40
mov dword [esp], edi
call sub.msvcrt.dll_fprintf
jmp 0x40fa2d
Function at 0x426300
Capabilities:
Delete file

Disassembly:
sub esp, 0x1c
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x18], esi
test ebx, ebx
je 0x4263a2
call sub.msvcrt.dll__errno
mov esi, dword [eax]
mov dword [esp + 4], 2
mov dword [esp], ebx
call fcn.00426660
test eax, eax
jne 0x426390
mov dword [esp + 4], 0x10
mov dword [esp], ebx
call fcn.00426660
test eax, eax
je 0x426381
call sub.msvcrt.dll__errno
mov dword [eax], esi
mov dword [esp], ebx
call sub.KERNEL32.dll_DeleteFileA
sub esp, 4
xor edx, edx
test eax, eax
je 0x42636c
mov ebx, dword [esp + 0x14]
mov eax, edx
mov esi, dword [esp + 0x18]
add esp, 0x1c
ret
call fcn.00426640
mov esi, eax
call sub.msvcrt.dll__errno
mov dword [eax], esi
mov edx, 0xffffffff
jmp 0x42635e
call sub.msvcrt.dll__errno
mov dword [eax], 0x15
jmp 0x42637a
mov dword [esp + 4], 0x180
mov dword [esp], ebx
call sub.msvcrt.dll__chmod
jmp 0x426332
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
jmp 0x42637a

Function at 0x426660
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x1c
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x18], ebp
xor ebp, ebp
test ebx, ebx
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x14], edi
je 0x426689
test esi, 0xffffffe8
je 0x4266b0
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
mov eax, 0xffffffff
mov ebx, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
add esp, 0x1c
ret
mov dword [esp], 0x8001
call sub.KERNEL32.dll_SetErrorMode
sub esp, 4
mov dword [esp], ebx
call sub.KERNEL32.dll_GetFileAttributesA
sub esp, 4
mov edi, eax
cmp eax, 0xffffffff
je 0x426713
mov dword [esp], 0
call sub.KERNEL32.dll_SetErrorMode
sub esp, 4
mov eax, 0xffffffff
inc ebp
je 0x426699
test esi, 0x10
je 0x4266f8
test edi, 0x10
je 0x426706
and esi, 2
je 0x426702
and edi, 1
jne 0x426706
xor eax, eax
jmp 0x426699
call sub.msvcrt.dll__errno
mov dword [eax], 0xd
jmp 0x426694
call fcn.00426640
mov ebp, eax
call sub.msvcrt.dll__errno
mov dword [eax], ebp
mov ebp, 0xffffffff
jmp 0x4266d1
Function at 0x42211b
Capabilities:
Parse pe header

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

Function at 0x4347a0
Capabilities:
Parse pe header

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

Function at 0x40894a
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x4085d8
or ecx, ecx
call fcn.00408966
and esi, ecx
sub esi, ecx
xor dword [eax], edx
inc eax
cmp eax, ebx
jne fcn.0040894a
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408f6c
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x77b865f1
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
je 0x4300d2
nop
nop
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x7c0c410b
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401bee
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x42d040]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
mov dword [esp + 0x28], ecx
xor ecx, ecx
push edi
mov dword [esp + 0x24], ebx
mov eax, ecx
mov byte [esp + ecx + 0x30], cl
cdq
idiv dword [ebp + 0xc]
mov al, byte [edx + esi]
mov byte [esp + ecx + 0x130], al
inc ecx
cmp ecx, 0x100
jl 0x401c1a
xor edi, edi
xor esi, esi
mov dl, byte [esp + esi + 0x30]
movzx eax, byte [esp + esi + 0x130]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x401c5e
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x30]
mov byte [esp + esi + 0x30], al
inc esi
mov byte [esp + edi + 0x30], dl
cmp esi, 0x100
jl 0x401c3b
and dword [esp + 0x10], 0
xor eax, eax
and dword [esp + 0x18], eax
mov esi, 0x3e8
xor edi, edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], edi
cmp eax, edi
je 0x401ca4
mov dword [eax], ebx
add eax, 4
mov dword [esp + 0x1c], eax
jmp 0x401cbb
lea ecx, [esp + 0x24]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004049a4
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
sub esi, 1
jne 0x401c95
mov ebx, dword [esp + 0x18]
and dword [esp + 0x28], esi
mov dword [esp + 0x14], edi
cmp dword [ebx], esi
jle 0x401d56
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
inc edx
and edx, 0x800000ff
jns 0x401ced
dec edx
or edx, 0xffffff00
inc edx
mov cl, byte [esp + edx + 0x30]
mov eax, dword [esp + 0xc]
movzx esi, cl
add eax, esi
mov dword [esp + 0x10], edx
and eax, 0x800000ff
jns 0x401d0c
dec eax
or eax, 0xffffff00
inc eax
mov dword [esp + 0xc], eax
mov al, byte [esp + eax + 0x30]
mov byte [esp + edx + 0x30], al
mov eax, dword [esp + 0xc]
push 0
mov byte [esp + eax + 0x34], cl
mov eax, edi
xor eax, 4
push eax
call fcn.0040278c
push eax
call fcn.00403b06
mov edx, dword [esp + 0x14]
pop ecx
mov ecx, dword [esp + 0x2c]
movzx eax, byte [esp + edx + 0x30]
add eax, esi
movzx eax, al
mov al, byte [esp + eax + 0x30]
xor byte [ecx + edi], al
inc edi
cmp edi, dword [ebx]
jl 0x401cdc
mov edi, dword [esp + 0x14]
sub edi, ebx
and edi, 0xfffffffc
push edi
push ebx
call fcn.004044af
pop ecx
pop ecx
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406ca2
mov esp, ebp
pop ebp
ret
Function at 0x401f49
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x42d040]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
mov esi, dword [0x48f740]
xor ebx, ebx
push edi
mov dword [esp + 0x10], edx
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + esi + 0x78]
add eax, esi
mov dword [esp + 0x18], eax
mov edi, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add edi, esi
mov dword [esp + 0x14], eax
test eax, eax
je 0x401fb9
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
add eax, esi
push eax
call fcn.004028d3
lea ecx, [esp + 0x1c]
call fcn.00401d79
cmp eax, dword [esp + 0x10]
je 0x401fd0
lea ecx, [esp + 0x1c]
add edi, 4
call fcn.00403198
inc ebx
cmp ebx, dword [esp + 0x14]
jb 0x401f89
xor edi, edi
mov ecx, dword [esp + 0x34]
lea eax, [esi + edi]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406ca2
mov esp, ebp
pop ebp
ret
mov edx, str.QwruxAA
call fcn.00403b38
push eax
call fcn.00403b06
mov edx, dword [esp + 0x1c]
pop ecx
mov eax, dword [edx + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x1c]
call fcn.00403198
jmp 0x401fbb

Function at 0x402003
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x48f740], eax
pop edi
pop esi
ret

Function at 0x407a6d
Capabilities:
Parse pe header

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

Function at 0x41612c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x427050
push 0x427048
push str.FlsAlloc
push 0x1e
call fcn.00416015
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416160
push dword [ebp + 8]
mov ecx, esi
call dword [0x42312c]
call esi
jmp 0x416166
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4161aa
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x427060
push 0x427058
push str.FlsGetValue
push 0x20
call fcn.00416015
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4161e1
push dword [ebp + 8]
mov ecx, esi
call dword [0x42312c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x416f76
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416c18

Function at 0x416f81
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416da7
Function at 0x4185ec
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407be0
mov eax, dword [0x42d040]
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.004149e5
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41862e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41878a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00421a10
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 + 0x48f338]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00418a12
mov ecx, dword [esi*4 + 0x48f338]
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 0x418783
cmp eax, dword [edi + ecx + 0x24]
jne 0x418783
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 0x418783
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418a12
add esp, 0x14
test edx, edx
jl 0x418783
jg 0x4186f9
test eax, eax
jb 0x418783
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x418783
jl 0x418713
cmp dword [ebp - 0x1008], eax
ja 0x418783
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x418731
test ebx, ebx
je 0x41876a
cmp ecx, edi
jae 0x41876a
mov al, byte [ecx]
cmp al, 0xd
jne 0x41874b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x418757
cmp byte [ecx + 1], 0xa
jne 0x418757
inc ecx
jmp 0x418757
movzx eax, al
movsx eax, byte [eax + 0x42d9b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x418731
cmp edx, ebx
jne 0x418731
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x418788
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406ca2
leave
ret
Function at 0x419b73
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x42d040]
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 0x419bbe
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00419d12
test al, al
jne 0x419bb8
sub edx, 2
cmp edx, edi
jne 0x419b9e
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x419be0
lea eax, [edi + 2]
cmp edx, eax
je 0x419be0
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00419abf
add esp, 0x10
jmp 0x419cda
push esi
lea ecx, [ebp - 0x255]
call fcn.00419d12
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 0x419c23
push dword [ebp - 0x25c]
jmp 0x419bd0
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 0x419c60
cmp word [ebp - 0x226], 0
je 0x419c81
cmp word [ebp - 0x226], ax
jne 0x419c60
cmp word [ebp - 0x224], 0
je 0x419c81
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00419abf
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x419ccd
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x419c3a
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x419cb5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x419cda
push 0x4198ef
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0041f8e0
add esp, 0x10
jmp 0x419caa
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.00406ca2
leave
ret
Function at 0x41ed7c
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 + 0x48f338]
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 0x41edbc
cmp byte [ebx], 0xa
jne 0x41edbc
or byte [eax + edi + 0x28], 4
jmp 0x41edc1
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41eebf
mov al, byte [edx]
cmp al, 0x1a
je 0x41eea1
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41edf0
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41ee15
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41ee1f
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 0x41edd2
jmp 0x41eebf
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 0x41ee9c
cmp dword [ebp - 0xc], 0
je 0x41ee9c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x48f338]
test byte [eax + edi + 0x28], 0x48
je 0x41ee76
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ee61
mov byte [esi], dl
jmp 0x41ee72
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x48f338]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41eebf
cmp byte [ebp - 1], 0xa
jne 0x41ee85
cmp esi, ebx
jne 0x41ee85
mov byte [esi], 0xa
jmp 0x41eebe
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00418a30
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41eebf
mov byte [esi], 0xd
jmp 0x41eebe
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x48f338]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41eebb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41eebf
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41eec8
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 + 0x48f338]
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 0x41ef0b
cmp word [esi], dx
jne 0x41ef0b
or byte [edi + eax + 0x28], 4
jmp 0x41ef10
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 0x41f063
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 0x41f043
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41ef52
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41ef88
cmp eax, edx
jae 0x41ef94
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 0x41ef2a
jmp 0x41f063
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 0x41f03f
cmp dword [ebp - 0x14], 0
je 0x41f03f
mov eax, dword [ebx*4 + 0x48f338]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41f017
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41efe0
mov word [esi], cx
jmp 0x41f013
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x48f338]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x48f338]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x48f338]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41f063
pop ebx
cmp word [ebp - 4], bx
jne 0x41f028
cmp esi, dword [ebp + 0xc]
jne 0x41f028
mov word [esi], bx
jmp 0x41f060
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00418a30
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41f063
push 0xd
jmp 0x41f05c
mov ecx, dword [ebx*4 + 0x48f338]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41f05a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41f063
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 0x421810
Capabilities:
Parse pe header

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