joyce8/EMBER2024-capa huggingface dataset:
Function at 0x495520
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push 0x5e0bfc
mov eax, dword [ebp + 0xc]
push eax
call fcn.00582902
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x495545
jmp 0x495699
push 2
push 0
mov ecx, dword [ebp - 4]
push ecx
call fcn.005820e1
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
call fcn.005843f5
add esp, 4
cdq
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
push eax
call fcn.0058450b
add esp, 4
mov ecx, dword [ebp + 8]
push ecx
call fcn.004aa330
add esp, 4
mov dword [ebp - 0xc], eax
push 0xffffffffffffffff
push 0
mov edx, dword [ebp - 0xc]
push edx
call fcn.004a8300
add esp, 0xc
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cdq
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x24]
jl 0x4955d1
jg 0x4955b2
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x28]
jbe 0x4955d1
push 0x12
mov edx, dword [ebp + 8]
push edx
call fcn.004aa690
add esp, 8
mov eax, dword [ebp - 4]
push eax
call fcn.00581418
add esp, 4
jmp 0x495699
mov ecx, dword [ebp - 0x18]
or ecx, dword [ebp - 0x14]
je 0x4955e7
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
jmp 0x4955f3
xor ecx, ecx
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.004a7420
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x495626
mov ecx, dword [ebp + 8]
push ecx
call fcn.004aa5c0
add esp, 4
mov edx, dword [ebp - 4]
push edx
call fcn.00581418
add esp, 4
jmp 0x495699
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push 1
mov edx, dword [ebp - 8]
push edx
call fcn.00581cc9
add esp, 0x10
xor ecx, ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x30]
jne 0x495673
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x2c]
jne 0x495673
push fcn.004a74c0
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004aa4c0
add esp, 0x14
jmp 0x49568d
push 0xa
mov edx, dword [ebp + 8]
push edx
call fcn.004aa690
add esp, 8
mov eax, dword [ebp - 8]
push eax
call fcn.004a74c0
add esp, 4
mov ecx, dword [ebp - 4]
push ecx
call fcn.00581418
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x495870
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0x8000
push 0x8000
push 0
push 0x5f55b8
call fcn.00572370
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
push 0x5f55b8
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4958b5
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 8]
jbe 0x4958bb
xor eax, eax
jmp 0x4958c0
mov eax, 0x5f55b8
mov esp, ebp
pop ebp
ret
Function at 0x4d58d0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov byte [eax + 0x10], 1
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
mov eax, dword [ebp + 8]
push eax
call fcn.004fb4c0
add esp, 0x1c
cmp dword [ebp + 0x10], 0
jne 0x4d5922
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
push str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
mov ecx, dword [ebp + 8]
push ecx
call fcn.004fb4c0
add esp, 0x14
pop ebp
ret
Function at 0x50bc60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [eax], 0
push 0
push 0x14
call fcn.004fa8d0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x50bc8c
mov eax, 7
jmp 0x50bd36
movzx ecx, byte [0x5e8b44]
test ecx, ecx
je 0x50bca8
push 0xc8
call fcn.004f07e0
add esp, 4
test eax, eax
je 0x50bcba
push 0x14
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.00572370
add esp, 0xc
jmp 0x50bd07
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 4]
add ecx, 4
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
push 0x50bdc0
push 0
push 0
call fcn.0057d88a
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0
jne 0x50bd07
push 0x14
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.00572370
add esp, 0xc
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
jne 0x50bd2c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp + 0x10]
push eax
call dword [ebp + 0xc]
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov dword [edx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x544f90
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp - 4]
mov byte [edx + 0x88], 1
lea eax, [ebp - 0xc]
push eax
call fcn.0047c220
add esp, 4
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov dword [eax + 0x90], ecx
mov dword [eax + 0x94], edx
mov esp, ebp
pop ebp
ret

Function at 0x544fe0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov byte [eax + 0x98], 1
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret

Function at 0x545120
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
add eax, 0x28
mov dword [ebp - 0xc], eax
push 0
mov ecx, dword [ebp - 0xc]
call fcn.00418d90
movzx ecx, al
test ecx, ecx
je 0x545148
jmp 0x5451f7
mov edx, dword [ebp - 4]
mov byte [edx + 0x88], 0
mov ecx, dword [ebp - 4]
add ecx, 0x28
call fcn.004192d0
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xac]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 4]
add eax, 8
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [ebp - 0x10]
mov edx, dword [ebp - 4]
add edx, 8
push edx
call fcn.00546700
add esp, 4
mov eax, dword [ebp - 4]
add eax, 8
push eax
call fcn.00546150
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
add ecx, 8
push ecx
call fcn.00546170
add esp, 4
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x24], ecx
push 0
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret
Function at 0x559be0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c44d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
push eax
call fcn.00409310
add esp, 4
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.004119c0
add esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0x559b60
mov edx, dword [ebp - 0x10]
add edx, 4
push edx
push 0
lea ecx, [ebp - 0x14]
call fcn.004192d0
push eax
mov eax, dword [ebp - 0x18]
push eax
push 0
push 0
call fcn.0057d88a
add esp, 0x18
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0
je 0x559c5e
lea ecx, [ebp - 0x14]
call fcn.00436d70
jmp 0x559c6f
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0
push 6
call fcn.0055ac33
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00417aa0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x55e0e1
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.0055e0bd
pop esi
leave
ret 8

Function at 0x57040a
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.00585a48
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 0x570449
sub eax, 1
je 0x570444
sub eax, 1
je 0x570440
xor eax, eax
leave
ret
push 3
jmp 0x57044b
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x571a57
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x571a96
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x571a96
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x571a96
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x571a96
cmp dword [ecx + 0x74], 0xe
jbe 0x571a96
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x5841b8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.005714f0
mov eax, dword [0x5f0eb4]
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.00583ce4
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x5841fa
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x584356
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00570fd0
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 + 0x5fef30]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00590052
mov ecx, dword [esi*4 + 0x5fef30]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x58434f
cmp eax, dword [ecx + edi + 0x24]
jne 0x58434f
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x58434f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00590052
add esp, 0x14
test edx, edx
jl 0x58434f
jg 0x5842c5
test eax, eax
jb 0x58434f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x58434f
jl 0x5842df
cmp dword [ebp - 0x1008], eax
ja 0x58434f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x5842fd
test ebx, ebx
je 0x584336
cmp ecx, edi
jae 0x584336
mov al, byte [ecx]
cmp al, 0xd
jne 0x584317
lea eax, [edi - 1]
cmp ecx, eax
jae 0x584323
cmp byte [ecx + 1], 0xa
jne 0x584323
inc ecx
jmp 0x584323
movzx eax, al
movsx eax, byte [eax + 0x5f1128]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x5842fd
cmp edx, ebx
jne 0x5842fd
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x584354
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00571524
leave
ret
Function at 0x584e90
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5f0eb4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x5c4e5c
push esi
call fcn.00591f06
pop ecx
pop ecx
test eax, eax
jne 0x584ebe
xor al, al
jmp 0x584f3b
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.00584bd1
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x584ef8
push dword [ebp - 0x210]
call fcn.00576f66
xor al, al
jmp 0x584f39
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x584efe
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x584f1e
push edx
call fcn.00584dc7
pop ecx
test al, al
je 0x584ee9
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x584f2c
mov bl, 1
push dword [ebp - 0x210]
call fcn.00576f66
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00571524
leave
ret

Function at 0x58d9b0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5c6714
push 0x5c670c
push str.FlsAlloc
push 0x1f
call fcn.0058d7db
mov esi, eax
add esp, 0x10
test esi, esi
je 0x58d9e4
push dword [ebp + 8]
mov ecx, esi
call dword [0x5a85e4]
call esi
jmp 0x58d9ea
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x58da2e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5c6724
push 0x5c671c
push str.FlsGetValue
push 0x21
call fcn.0058d7db
mov esi, eax
add esp, 0x10
test esi, esi
je 0x58da65
push dword [ebp + 8]
mov ecx, esi
call dword [0x5a85e4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x58da6d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5c672c
push 0x5c6724
push str.FlsSetValue
push 0x22
call fcn.0058d7db
mov esi, eax
add esp, 0x10
test esi, esi
je 0x58daa7
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5a85e4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x58f2e8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x5fef30]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x58f328
cmp byte [ebx], 0xa
jne 0x58f328
or byte [edi + eax + 0x28], 4
jmp 0x58f32d
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x58f42c
mov dl, byte [eax]
cmp dl, 0x1a
je 0x58f40f
inc eax
cmp dl, 0xd
je 0x58f359
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x58f37f
cmp eax, ecx
jae 0x58f38d
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x58f341
jmp 0x58f42c
push 0
lea eax, [ebp - 0x10]
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 0x58f40a
cmp dword [ebp - 0x10], 0
je 0x58f40a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x5fef30]
test byte [eax + edi + 0x28], 0x48
je 0x58f3e4
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x58f3cf
mov byte [esi], dl
jmp 0x58f3e0
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5fef30]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x58f42c
cmp byte [ebp - 1], 0xa
jne 0x58f3f3
cmp esi, ebx
jne 0x58f3f3
mov byte [esi], 0xa
jmp 0x58f42b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00590070
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x58f42c
mov byte [esi], 0xd
jmp 0x58f42b
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x5fef30]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x58f429
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x58f42c
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x58f435
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x5fef30]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x58f47b
cmp word [ebx], dx
jne 0x58f47b
or byte [eax + edi + 0x28], 4
jmp 0x58f480
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x58f5e3
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x58f5c3
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x58f4c1
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x58f4f7
cmp eax, edx
jae 0x58f505
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x58f49c
jmp 0x58f5e3
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x58f5be
cmp dword [ebp - 0x18], 0
je 0x58f5be
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x5fef30]
test byte [eax + edi + 0x28], 0x48
je 0x58f594
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x58f558
mov word [esi], cx
jmp 0x58f58f
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x5fef30]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x5fef30]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x5fef30]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x58f5e3
pop eax
cmp word [ebp - 4], ax
jne 0x58f5a4
cmp esi, ebx
jne 0x58f5a4
mov word [esi], ax
jmp 0x58f5e0
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00590070
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x58f5e3
push 0xd
pop eax
jmp 0x58f59f
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x5fef30]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x58f5dd
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x58f5e3
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x5934dd
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5f0eb4]
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 0x593528
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00593678
test al, al
jne 0x593522
sub edx, 2
cmp edx, edi
jne 0x593508
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x59354a
lea eax, [edi + 2]
cmp edx, eax
je 0x59354a
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00593429
add esp, 0x10
jmp 0x593644
push esi
lea ecx, [ebp - 0x255]
call fcn.00593678
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 0x59358d
push dword [ebp - 0x25c]
jmp 0x59353a
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 0x5935ca
cmp word [ebp - 0x226], 0
je 0x5935eb
cmp word [ebp - 0x226], ax
jne 0x5935ca
cmp word [ebp - 0x224], 0
je 0x5935eb
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00593429
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x593637
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x5935a4
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x59361f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x593644
push 0x593259
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00599fd0
add esp, 0x10
jmp 0x593614
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.00571524
leave
ret