joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50dcf0
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60639d
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x689640]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x28]
call fcn.007105c6
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x30]
call fcn.0050d540
movzx ecx, al
test ecx, ecx
jne 0x50dd7c
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [ebp + 8]
call fcn.0076d594
mov eax, dword [ebp - 0x3c]
or eax, 1
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0074d431
mov eax, dword [ebp + 8]
jmp 0x50de86
mov ecx, dword [ebp - 0x30]
call fcn.0050d8b0
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x30]
cmp dword [edx + 4], 0x194
jne 0x50ddab
mov dword [ebp - 0x40], 5
push 0x678240
lea eax, [ebp - 0x40]
push eax
call fcn.00516565
push 0x1000
call fcn.008280c8
add esp, 4
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x29], 0
mov ecx, 1
test ecx, ecx
je 0x50de43
lea edx, [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x50dddf
jmp 0x50de43
cmp dword [ebp - 0x38], 0
ja 0x50ddeb
mov byte [ebp - 0x29], 1
jmp 0x50de43
cmp dword [ebp - 0x38], 0x1000
jbe 0x50de0f
mov edx, dword [ebp - 0x34]
push edx
call fcn.008120b6
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
call fcn.008280c8
add esp, 4
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x50de2e
jmp 0x50de43
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00406861
jmp 0x50ddbf
mov edx, dword [ebp - 0x34]
push edx
call fcn.008120b6
add esp, 4
movzx eax, byte [ebp - 0x29]
test eax, eax
jne 0x50de5f
lea ecx, [ebp - 0x28]
call fcn.0050e0a0
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0076d594
mov edx, dword [ebp - 0x3c]
or edx, 1
mov dword [ebp - 0x3c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0074d431
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00817892
mov esp, ebp
pop ebp
ret 0x14
Function at 0x50deb0
Capabilities:
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6063dd
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x689640]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c], ecx
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x4c]
add ecx, 0x24
call fcn.0080e384
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x60]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.0050af30
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0074d431
push 0xa0000000
lea ecx, [ebp - 0x28]
call fcn.0050acb0
push eax
lea ecx, [ebp - 0x28]
call fcn.007bf4e2
push eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
cmp dword [ebp + 8], 0
jne 0x50df4c
mov dword [ebp - 0x50], 0
jmp 0x50df5b
mov eax, dword [ebp + 8]
push eax
call fcn.00812a47
add esp, 4
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x48], ecx
cmp dword [ebp + 0xc], 0
jne 0x50dfae
push 0
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
cmp eax, 1
jne 0x50df94
mov dword [ebp - 0x54], 1
jmp 0x50df9b
mov dword [ebp - 0x54], 0
mov cl, byte [ebp - 0x54]
mov byte [ebp - 0x41], cl
lea ecx, [ebp - 0x28]
call fcn.00719c52
mov al, byte [ebp - 0x41]
jmp 0x50dff5
push 0
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
cmp eax, 1
jne 0x50dfdd
mov dword [ebp - 0x58], 1
jmp 0x50dfe4
mov dword [ebp - 0x58], 0
mov dl, byte [ebp - 0x58]
mov byte [ebp - 0x42], dl
lea ecx, [ebp - 0x28]
call fcn.00719c52
mov al, byte [ebp - 0x42]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00817892
mov esp, ebp
pop ebp
ret 8
Function at 0x513cd0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x606cb7
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x689640]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x10], 0
je 0x513d25
mov dword [ebx], 0x631448
mov dword [ebx + 0x50], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
push 0
lea esi, [ebx + 4]
mov ecx, ebx
push 0
push esi
mov dword [ebp + 0xc], esi
call fcn.0040c650
mov eax, dword [ebx]
push 8
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], esi
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ecx + ebx - 4], eax
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00438512
mov esi, eax
add esp, 4
test esi, esi
je 0x513d82
push 1
mov byte [ebp - 4], 2
call fcn.00535101
add esp, 4
mov dword [esi + 4], eax
jmp 0x513d84
xor esi, esi
lea eax, [ebx + 4]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
lea ecx, [eax + 0x18]
mov dword [eax + 0x20], ecx
lea edx, [eax + 0x24]
mov dword [eax + 0x2c], edx
lea edi, [eax + 0x14]
mov dword [eax + 0x1c], edi
add eax, 0x28
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x10]
mov dword [esi], 0
mov esi, dword [ebp + 0xc]
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov ebx, dword [ebp + 8]
mov ecx, ebx
not ecx
mov dword [edi], 0
mov dword [edx], 0
and ecx, 1
shl ecx, 2
mov eax, ebx
mov edx, ecx
mov dword [esi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
or edx, 8
mov dword [esi + 0x38], 0
and al, 8
cmove edx, ecx
mov eax, edx
or eax, 0x10
and bl, 4
cmove eax, edx
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x53be41
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x53be68
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x53be6b
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.DLL_FormatMessageA]
push eax
push dword [esi]
call fcn.0053be1d
pop esi
leave
ret 8
Function at 0x5554ef
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.005b0b1f
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 0x55552e
sub eax, 1
je 0x555529
sub eax, 1
je 0x555525
xor eax, eax
leave
ret
push 3
jmp 0x555530
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x55f6af
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 8]
mov edi, eax
mov edx, eax
and edi, 7
je 0x55f6dd
cmp eax, edi
jge 0x55f6d1
push esi
call fcn.0055c2eb
mov eax, dword [esi + 8]
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub eax, edi
mov dword [esi + 8], eax
mov edx, eax
xor ecx, ecx
test eax, eax
jle 0x55f700
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x55f6e6
mov dword [esi + 8], edx
jmp 0x55f715
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x55f70b
xor dl, dl
jmp 0x55f710
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x55f700
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x55f74e
mov dword [0x695a08], str.zlib_corrupt
xor eax, eax
jmp 0x55f790
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x55f763
mov dword [0x695a08], str.read_past_buffer
jmp 0x55f74a
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x55f77a
push edi
push esi
call fcn.00561f00
pop ecx
pop ecx
test eax, eax
je 0x55f74a
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.00568f10
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret
Function at 0x5929a6
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x689640]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x6374f0
push esi
call fcn.005ba813
pop ecx
pop ecx
test eax, eax
jne 0x5929d4
xor al, al
jmp 0x592a51
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.005925e8
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x592a0e
push dword [ebp - 0x210]
call fcn.008120b6
xor al, al
jmp 0x592a4f
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x592a14
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x592a34
push edx
call fcn.005928dd
pop ecx
test al, al
je 0x5929ff
push esi
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 1
jbe 0x592a42
mov bl, 1
push dword [ebp - 0x210]
call fcn.008120b6
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00817892
leave
ret

Function at 0x5a5a38
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0081558c
mov eax, dword [0x689640]
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.005ab55e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x5b64b8
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x5b6614
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00557600
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 + 0x6967e8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.005bdc1d
mov ecx, dword [esi*4 + 0x6967e8]
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 0x5b660d
cmp eax, dword [ecx + edi + 0x24]
jne 0x5b660d
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 0x5b660d
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005bdc1d
add esp, 0x14
test edx, edx
jl 0x5b660d
jg 0x5b6583
test eax, eax
jb 0x5b660d
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x5b660d
jl 0x5b659d
cmp dword [ebp - 0x1008], eax
ja 0x5b660d
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x5b65bb
test ebx, ebx
je 0x5b65f4
cmp ecx, edi
jae 0x5b65f4
mov al, byte [ecx]
cmp al, 0xd
jne 0x5b65d5
lea eax, [edi - 1]
cmp ecx, eax
jae 0x5b65e1
cmp byte [ecx + 1], 0xa
jne 0x5b65e1
inc ecx
jmp 0x5b65e1
movzx eax, al
movsx eax, byte [eax + 0x689c10]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x5b65bb
cmp edx, ebx
jne 0x5b65bb
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x5b6612
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00817892
leave
ret

Function at 0x5b7e4c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x639ea4
push 0x639e9c
push str.FlsAlloc
push 0x1f
call fcn.005b7b1a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5b7e80
push dword [ebp + 8]
mov ecx, esi
call dword [0x60e78c]
call esi
jmp 0x5b7e86
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x5b7eca
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x639eb4
push 0x639eac
push str.FlsGetValue
push 0x21
call fcn.005b7b1a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5b7f01
push dword [ebp + 8]
mov ecx, esi
call dword [0x60e78c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.DLL_TlsGetValue]
Function at 0x5b7f09
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x639ebc
push 0x639eb4
push str.FlsSetValue
push 0x22
call fcn.005b7b1a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5b7f43
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x60e78c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.DLL_TlsSetValue]
Function at 0x5bcd97
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 + 0x6967e8]
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 0x5bcdd7
cmp byte [ebx], 0xa
jne 0x5bcdd7
or byte [edi + eax + 0x28], 4
jmp 0x5bcddc
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 0x5bcedb
mov dl, byte [eax]
cmp dl, 0x1a
je 0x5bcebe
inc eax
cmp dl, 0xd
je 0x5bce08
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x5bce2e
cmp eax, ecx
jae 0x5bce3c
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 0x5bcdf0
jmp 0x5bcedb
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 0x5bceb9
cmp dword [ebp - 0x10], 0
je 0x5bceb9
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x6967e8]
test byte [eax + edi + 0x28], 0x48
je 0x5bce93
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x5bce7e
mov byte [esi], dl
jmp 0x5bce8f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x6967e8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x5bcedb
cmp byte [ebp - 1], 0xa
jne 0x5bcea2
cmp esi, ebx
jne 0x5bcea2
mov byte [esi], 0xa
jmp 0x5bceda
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005bdc3b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x5bcedb
mov byte [esi], 0xd
jmp 0x5bceda
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x6967e8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5bced8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5bcedb
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x5bcee4
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 + 0x6967e8]
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 0x5bcf2a
cmp word [ebx], dx
jne 0x5bcf2a
or byte [eax + edi + 0x28], 4
jmp 0x5bcf2f
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 0x5bd092
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 0x5bd072
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x5bcf70
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x5bcfa6
cmp eax, edx
jae 0x5bcfb4
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 0x5bcf4b
jmp 0x5bd092
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 0x5bd06d
cmp dword [ebp - 0x18], 0
je 0x5bd06d
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x6967e8]
test byte [eax + edi + 0x28], 0x48
je 0x5bd043
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 0x5bd007
mov word [esi], cx
jmp 0x5bd03e
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x6967e8]
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 + 0x6967e8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x6967e8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x5bd092
pop eax
cmp word [ebp - 4], ax
jne 0x5bd053
cmp esi, ebx
jne 0x5bd053
mov word [esi], ax
jmp 0x5bd08f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.005bdc3b
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x5bd092
push 0xd
pop eax
jmp 0x5bd04e
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x6967e8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x5bd08c
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x5bd092
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 0x5c4683
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x689640]
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 0x5c46ce
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.005c4a16
test al, al
jne 0x5c46c8
sub edx, 2
cmp edx, edi
jne 0x5c46ae
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x5c46f0
lea eax, [edi + 2]
cmp edx, eax
je 0x5c46f0
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.005c434a
add esp, 0x10
jmp 0x5c47ea
push esi
lea ecx, [ebp - 0x255]
call fcn.005c4a16
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 0x5c4733
push dword [ebp - 0x25c]
jmp 0x5c46e0
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 0x5c4770
cmp word [ebp - 0x226], 0
je 0x5c4791
cmp word [ebp - 0x226], ax
jne 0x5c4770
cmp word [ebp - 0x224], 0
je 0x5c4791
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.005c434a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x5c47dd
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x5c474a
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x5c47c5
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor eax, eax
jmp 0x5c47ea
push 0x5c3f4c
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.005a9860
add esp, 0x10
jmp 0x5c47ba
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.00817892
leave
ret