joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52e540
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ba3c5
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x6360e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], edi
mov dword [edi], eax
mov dword [edi + 4], 0
mov dword [ebp - 4], 0
push 0x34
mov dword [edi + 4], 0
call fcn.00577033
mov esi, eax
add esp, 4
mov dword [edi + 4], esi
mov eax, dword [ebp + 0x14]
xorps xmm0, xmm0
mov dword [ebp - 4], 1
mov ecx, dword [eax]
movups xmmword [esi + 0x10], xmm0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
cmp dword [ecx + 0x14], 0x10
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
jb 0x52e5d0
mov ecx, dword [ecx]
mov dword [ebp - 0x10], ecx
cmp eax, 0x7fffffff
ja 0x52e6db
mov dword [esi + 0x24], 0xf
cmp eax, 0x10
jae 0x52e5f6
mov dword [esi + 0x20], eax
movups xmm0, xmmword [ecx]
movups xmmword [esi + 0x10], xmm0
jmp 0x52e681
mov edi, eax
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x52e60a
mov edi, SysReAllocString
jmp 0x52e614
mov eax, 0x16
cmp edi, eax
cmovb edi, eax
xor ecx, ecx
mov eax, edi
add eax, 1
setb cl
neg ecx
or ecx, eax
cmp ecx, 0x1000
jb 0x52e651
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x52e6e0
push eax
call fcn.00577033
add esp, 4
test eax, eax
je 0x52e6e5
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x52e664
test ecx, ecx
je 0x52e662
push ecx
call fcn.00577033
add esp, 4
mov ecx, eax
jmp 0x52e664
xor ecx, ecx
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x20], eax
inc eax
push eax
push dword [ebp - 0x10]
mov dword [esi + 0x10], ecx
push ecx
mov dword [esi + 0x24], edi
call fcn.00578ab0
mov edi, dword [ebp - 0x18]
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov eax, edi
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov ecx, dword [edi + 4]
mov dword [ecx], edx
mov ecx, dword [edi + 4]
mov dword [ecx + 4], edx
mov ecx, dword [edi + 4]
mov dword [ecx + 8], edx
mov ecx, dword [edi + 4]
mov byte [ecx + 0xc], 0
mov ecx, dword [edi + 4]
mov byte [ecx + 0xd], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
call fcn.004015dd
call fcn.00401539
call fcn.0057c388
int3
Function at 0x52e810
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ba44d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x6360e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push edi
mov dword [ebp - 0x10], edi
call fcn.00562f7f
add esp, 4
test eax, eax
jne 0x52e984
mov eax, dword [edi + 0x2c]
cmp eax, 0x7fffffff
je 0x52e98b
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
movzx eax, dl
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, dh
xor ecx, eax
movzx eax, byte [ebp + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [ebp + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
lea ecx, [edi + 0x30]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00498d70
mov eax, dword [eax + 4]
test eax, eax
jne 0x52e8b2
mov eax, dword [edi + 0x34]
cmp eax, dword [edi + 0x34]
je case.0x52e93e.2
mov dx, word [ebp + 0xc]
lea esi, [eax + 0xc]
movzx eax, dl
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, dh
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, esi
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0052eb90
mov ebx, dword [eax + 4]
test ebx, ebx
je case.0x52e93e.2
cmp ebx, dword [esi + 4]
je case.0x52e93e.2
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x3c], 0x6034c8
movzx eax, byte [edx + 4]
mov esi, dword [edx + 8]
mov ecx, dword [edx + 0x14]
mov byte [ebp - 0x38], al
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x2c], eax
movzx eax, byte [edx + 0x18]
mov byte [ebp - 0x24], al
movzx eax, byte [edx + 0x19]
mov byte [ebp - 0x23], al
movzx eax, byte [edx + 0x1a]
mov dword [ebp - 0x34], esi
dec esi
mov dword [ebp - 0x28], ecx
mov byte [ebp - 0x22], al
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebx + 0x10]
cmp esi, 5
ja case.0x52e93e.2
jmp dword [esi*4 + 0x52e998]
push ecx
add ecx, 0x10
jmp 0x52e95e
push ecx
add ecx, 0x20
jmp 0x52e95e
push ecx
add ecx, 0x30
jmp 0x52e95e
push ecx
jmp 0x52e95e
push ecx
add ecx, 0x40
lea eax, [ebp - 0x3c]
push eax
call fcn.0052ea00
push edi
call fcn.00562f90
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 5
call fcn.00562ac5
dec eax
push 6
mov dword [edi + 0x2c], eax
call fcn.00562ac5
nop
pop edx
jmp 3921275376

Function at 0x52f020
Capabilities:
Terminate process

Disassembly:
test ecx, ecx
je 0x52f03a
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x52f03a
mov ecx, dword [ecx + 0x44]
test ecx, ecx
je 0x52f03a
push 1
push ecx
call eax
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x548054
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x548062
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
shr eax, 4
and al, 1
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x5480bb
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
pop ebp
ret

Function at 0x54896f
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x548995
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x548995
xor al, al
jmp 0x5489a9
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x549aee
Capabilities:
Create directory

Disassembly:
push 0x38
mov eax, 0x5baafa
call fcn.00577959
xor ebx, ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x549b0e
mov al, 1
jmp 0x549b56
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x549b1f
xor al, al
jmp 0x549b56
lea ecx, [ebp - 0x44]
call fcn.00549c54
lea ecx, [ebp - 0x1c]
call fcn.005491c9
push ebx
push dword [ebp + 8]
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.00549d5d
test al, al
je 0x549b4b
mov ebx, dword [ebp - 0x24]
shr ebx, 4
and bl, 1
push dword [ebp - 0x1c]
call fcn.005772e5
pop ecx
mov al, bl
call fcn.00577927
ret

Function at 0x549bb0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x54a2c4
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
pop ebp
ret
Function at 0x54af30
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov eax, dword [esi + 0x14]
cmp eax, 0xca
jne 0x54af64
push esi
call fcn.0054e690
add esp, 4
cmp byte [esi + 0x40], 0
je 0x54af5b
pop edi
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
jmp 0x54af6b
cmp eax, 0xcb
jne 0x54afe3
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x54afce
mov eax, dword [esi + 8]
test eax, eax
je 0x54af86
mov eax, dword [eax]
push esi
call eax
add esp, 4
mov eax, dword [esi + 0x190]
push esi
mov eax, dword [eax]
call eax
add esp, 4
test eax, eax
je 0x54afc9
cmp eax, 2
je 0x54afce
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x54af77
cmp eax, 3
je 0x54afae
cmp eax, 1
jne 0x54af77
inc dword [ecx + 4]
mov edx, dword [esi + 8]
mov edi, dword [edx + 8]
cmp dword [ecx + 4], edi
jl 0x54af77
mov eax, dword [esi + 0x11c]
add eax, edi
mov dword [edx + 8], eax
jmp 0x54af77
pop edi
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.0054b020
add esp, 4
pop edi
pop esi
ret
cmp eax, 0xcc
je 0x54b005
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x14
mov ecx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [ecx + 0x18], eax
mov eax, dword [esi]
mov eax, dword [eax]
call eax
add esp, 4
push esi
call fcn.0054b020
add esp, 4
pop edi
pop esi
ret

Function at 0x54b020
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
cmp dword [esi + 0x14], 0xcc
lea ebx, [esi + 0x78]
je 0x54b04f
mov eax, dword [esi + 0x180]
push esi
mov eax, dword [eax]
call eax
add esp, 4
mov dword [ebx], 0
mov dword [esi + 0x14], 0xcc
mov eax, dword [esi + 0x180]
cmp byte [eax + 8], 0
je 0x54b0d2
nop dword [eax + eax]
mov eax, dword [ebx]
cmp eax, dword [esi + 0x60]
jae 0x54b0a6
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x54b085
mov dword [ecx + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x60]
push esi
mov dword [ecx + 8], eax
mov eax, dword [esi + 8]
mov eax, dword [eax]
call eax
add esp, 4
mov eax, dword [esi + 0x184]
mov edi, dword [ebx]
push 0
push ebx
mov eax, dword [eax + 4]
push 0
push esi
call eax
mov eax, dword [ebx]
add esp, 0x10
cmp eax, edi
je 0x54b0e9
cmp eax, dword [esi + 0x60]
jb 0x54b067
mov eax, dword [esi + 0x180]
push esi
mov eax, dword [eax + 4]
call eax
mov eax, dword [esi + 0x180]
push esi
mov eax, dword [eax]
call eax
mov dword [ebx], 0
add esp, 8
mov eax, dword [esi + 0x180]
cmp byte [eax + 8], 0
jne 0x54b060
xor eax, eax
cmp byte [esi + 0x41], al
pop edi
setne al
add eax, 0xcd
mov dword [esi + 0x14], eax
mov al, 1
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
Function at 0x558170
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x10
push ebx
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, 0x100
mov edx, dword [esi + 0x4c]
cmp edx, 1
mov ebx, dword [esi + 0x1a8]
sete al
mov dword [esp + 0x18], ebx
mov dword [esp + 0xc], edx
mov byte [ebx + 0x1c], al
mov eax, 0x2fe
push dword [esi + 0x64]
mov ecx, dword [esi + 4]
cmovne eax, edi
push eax
push 1
push esi
mov eax, dword [ecx + 8]
call eax
mov dword [ebx + 0x18], eax
xor edi, edi
mov eax, dword [ebx + 0x14]
add esp, 0x10
cmp dword [esi + 0x64], edi
jle 0x558287
push ebp
mov ebp, dword [ebx + edi*4 + 0x20]
cdq
idiv ebp
cmp dword [esp + 0x10], 1
mov dword [esp + 0x18], eax
jne 0x5581e1
mov eax, dword [ebx + 0x18]
add dword [eax + edi*4], 0xff
mov eax, dword [ebx + 0x18]
dec ebp
push ebp
xor ebx, ebx
push ebx
mov eax, dword [eax + edi*4]
push edi
push esi
mov dword [esp + 0x24], eax
call fcn.00558500
add esp, 0x10
mov edx, eax
xor esi, esi
nop
cmp esi, edx
jle 0x55821a
push ebp
inc ebx
push ebx
push edi
push dword [esp + 0x30]
call fcn.00558500
mov edx, eax
add esp, 0x10
cmp esi, edx
jg 0x558204
mov ecx, dword [esp + 0x18]
movzx eax, bl
movzx ecx, cl
imul ecx, eax
mov eax, dword [esp + 0x14]
mov byte [esi + eax], cl
inc esi
cmp esi, 0xff
jle 0x558200
cmp dword [esp + 0x10], 1
jne 0x558270
mov ebx, eax
mov ecx, 1
lea edx, [ebx - 1]
nop dword [eax + eax]
movzx eax, byte [ebx]
lea edx, [edx - 1]
mov byte [edx + 1], al
movzx eax, byte [ebx + 0xff]
mov byte [ebx + ecx + 0xff], al
inc ecx
cmp ecx, 0xff
jle 0x558250
mov esi, dword [esp + 0x24]
inc edi
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
cmp edi, dword [esi + 0x64]
jl 0x5581c5
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x5639f8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.005639d4
pop esi
leave
ret 8

Function at 0x56428a
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
push 0x105
call fcn.00563bae
mov edi, eax
test edi, edi
jne 0x5642b1
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov eax, esi
jmp 0x5642fa
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebx, 0xffffffff
cmp eax, ebx
je 0x5642f5
test al, 0x10
je 0x5642f5
test eax, 0x400
je 0x5642f1
push 0x2000000
push 0x80
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.00564300
push dword [ebp - 4]
mov esi, eax
call fcn.00563bea
test esi, esi
jne 0x5642f5
xor edx, edx
jmp 0x5642f7
mov edx, ebx
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x576d7d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.00589c05
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x576dbc
sub eax, 1
je 0x576db7
sub eax, 1
je 0x576db3
xor eax, eax
leave
ret
push 3
jmp 0x576dbe
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x578009
Capabilities:
Parse pe header

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

Function at 0x58f8de
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5c6d84
push 0x5c6d7c
push str.FlsAlloc
push 0x1e
call fcn.0058f70b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x58f912
push dword [ebp + 8]
mov ecx, esi
call dword [0x5bd4dc]
call esi
jmp 0x58f918
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x58f95c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5c6d94
push 0x5c6d8c
push str.FlsGetValue
push 0x20
call fcn.0058f70b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x58f993
push dword [ebp + 8]
mov ecx, esi
call dword [0x5bd4dc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x592fe0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00592e51

Function at 0x593485
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00578260
mov eax, dword [0x6360e8]
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.00590cd7
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x5934c7
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x593623
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.005a0220
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 + 0x65c7f0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00594280
mov ecx, dword [esi*4 + 0x65c7f0]
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 0x59361c
cmp eax, dword [edi + ecx + 0x24]
jne 0x59361c
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 0x59361c
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00594280
add esp, 0x14
test edx, edx
jl 0x59361c
jg 0x593592
test eax, eax
jb 0x59361c
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x59361c
jl 0x5935ac
cmp dword [ebp - 0x1008], eax
ja 0x59361c
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x5935ca
test ebx, ebx
je 0x593603
cmp ecx, edi
jae 0x593603
mov al, byte [ecx]
cmp al, 0xd
jne 0x5935e4
lea eax, [edi - 1]
cmp ecx, eax
jae 0x5935f0
cmp byte [ecx + 1], 0xa
jne 0x5935f0
inc ecx
jmp 0x5935f0
movzx eax, al
movsx eax, byte [eax + 0x636368]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x5935ca
cmp edx, ebx
jne 0x5935ca
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x593621
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00577025
leave
ret
Function at 0x59371e
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 + 0x65c7f0]
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 0x59375e
cmp byte [ebx], 0xa
jne 0x59375e
or byte [eax + edi + 0x28], 4
jmp 0x593763
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x593861
mov al, byte [edx]
cmp al, 0x1a
je 0x593843
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x593792
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x5937b7
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x5937c1
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 0x593774
jmp 0x593861
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 0x59383e
cmp dword [ebp - 0xc], 0
je 0x59383e
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x65c7f0]
test byte [eax + edi + 0x28], 0x48
je 0x593818
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x593803
mov byte [esi], dl
jmp 0x593814
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x65c7f0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x593861
cmp byte [ebp - 1], 0xa
jne 0x593827
cmp esi, ebx
jne 0x593827
mov byte [esi], 0xa
jmp 0x593860
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0059429e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x593861
mov byte [esi], 0xd
jmp 0x593860
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x65c7f0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x59385d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x593861
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x59386a
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 + 0x65c7f0]
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 0x5938ad
cmp word [esi], dx
jne 0x5938ad
or byte [edi + eax + 0x28], 4
jmp 0x5938b2
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 0x593a05
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 0x5939e5
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x5938f4
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x59392a
cmp eax, edx
jae 0x593936
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 0x5938cc
jmp 0x593a05
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 0x5939e1
cmp dword [ebp - 0x14], 0
je 0x5939e1
mov eax, dword [ebx*4 + 0x65c7f0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x5939b9
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x593982
mov word [esi], cx
jmp 0x5939b5
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x65c7f0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x65c7f0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x65c7f0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x593a05
pop ebx
cmp word [ebp - 4], bx
jne 0x5939ca
cmp esi, dword [ebp + 0xc]
jne 0x5939ca
mov word [esi], bx
jmp 0x593a02
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0059429e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x593a05
push 0xd
jmp 0x5939fe
mov ecx, dword [ebx*4 + 0x65c7f0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5939fc
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x593a05
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 0x597be5
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x6360e8]
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 0x597c30
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00597d84
test al, al
jne 0x597c2a
sub edx, 2
cmp edx, edi
jne 0x597c10
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x597c52
lea eax, [edi + 2]
cmp edx, eax
je 0x597c52
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00597b31
add esp, 0x10
jmp 0x597d4c
push esi
lea ecx, [ebp - 0x255]
call fcn.00597d84
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 0x597c95
push dword [ebp - 0x25c]
jmp 0x597c42
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 0x597cd2
cmp word [ebp - 0x226], 0
je 0x597cf3
cmp word [ebp - 0x226], ax
jne 0x597cd2
cmp word [ebp - 0x224], 0
je 0x597cf3
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00597b31
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x597d3f
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x597cac
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x597d27
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x597d4c
push 0x597961
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0059e7e0
add esp, 0x10
jmp 0x597d1c
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.00577025
leave
ret