joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51dcc0
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, ecx
push 0x40
push 0
lea eax, [esi + 4]
mov dword [esi], vtable.XMLUpdater::v2::CMD5Checksum.0
push eax
call fcn.00556180
add esp, 0xc
mov dword [esi + 0x48], 0
mov dword [esi + 0x44], 0
mov eax, esi
mov dword [esi + 0x4c], 0x67452301
mov dword [esi + 0x50], 0xefcdab89
mov dword [esi + 0x54], 0x98badcfe
mov dword [esi + 0x58], 0x10325476
pop esi
ret

Function at 0x51ec80
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x61094c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ecx + 8]
test edi, edi
je 0x51ed07
test esi, esi
je 0x51ed07
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.00556180
add esp, 0xc
mov dword [ebp - 0x88], 0x7f
lea eax, [ebp - 0x88]
push 0
push eax
lea eax, [ebp - 0x84]
push eax
push 0
push 5
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x51ed07
lea eax, [ebp - 0x84]
push eax
call fcn.00560096
add esp, 4
mov dword [esi], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553cca
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.00553cca
mov esp, ebp
pop ebp
ret 4

Function at 0x51ed20
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x61094c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ecx + 8]
test esi, esi
je 0x51ed98
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00556180
add esp, 0xc
mov dword [ebp - 0x108], 0xff
lea eax, [ebp - 0x108]
push 0
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0x13
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x51ed98
lea eax, [ebp - 0x104]
push eax
call fcn.00560096
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553cca
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00553cca
mov esp, ebp
pop ebp
ret
Function at 0x51f530
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x597e40
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x61094c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
push 8
mov dword [ebp - 0x14], esi
mov dword [esi], vtable.std::basic_streambuf_unsigned_char__struct_std::char_traits_unsigned_char__.0
call fcn.00553ee1
mov edi, eax
add esp, 4
test edi, edi
je 0x51f596
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0053ee9a
add esp, 4
mov dword [edi + 4], eax
jmp 0x51f598
xor edi, edi
mov eax, dword [ebp - 0x10]
lea ebx, [esi + 4]
mov dword [ebp - 0x18], ebx
lea edx, [esi + 8]
mov ebx, dword [ebp - 0x10]
lea ecx, [esi + 0x18]
mov dword [esi + 0x34], edi
lea edi, [esi + 0x14]
mov dword [ebp - 0x14], edx
add esi, 0x24
mov edx, dword [ebp - 0x10]
add eax, 0x28
mov dword [ebx], vtable.std::basic_filebuf_unsigned_char__struct_std::char_traits_unsigned_char__.0
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x3d], 0
mov ebx, dword [ebp - 0x18]
mov dword [edx + 0xc], ebx
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], ecx
mov dword [ebx + 0x2c], esi
mov ebx, dword [ebp - 0x18]
mov dword [edx], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [esi], 0
mov dword [eax + 0x4c], 0
mov ecx, dword [0x61e9e8]
mov edx, dword [0x61e9ec]
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], edx
mov dword [eax + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x523440
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], edi
test eax, eax
jg 0x52346c
jl 0x523460
test ecx, ecx
jne 0x52346c
pop edi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
push esi
je 0x52352c
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
nop dword [eax]
mov ecx, ebx
call fcn.00425540
mov esi, eax
mov eax, edx
mov dword [ebp - 0xc], eax
test eax, eax
jl 0x5234d3
jg 0x523498
test esi, esi
je 0x5234d3
mov ecx, dword [ebp - 4]
cmp ecx, eax
jg 0x5234ad
mov eax, dword [ebp - 8]
jl 0x5234a8
cmp eax, esi
jae 0x5234ad
mov esi, eax
mov dword [ebp - 0xc], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.00555c00
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
sub ecx, esi
sbb edx, dword [ebp - 0xc]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x5234fc
mov eax, dword [ebx]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x5a0478]
mov ecx, ebx
call esi
mov edx, dword [ebp - 4]
cmp eax, 0xffffffff
je 0x523516
mov ecx, dword [ebp - 8]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
test edx, edx
jg 0x523480
jl 0x523516
test ecx, ecx
jne 0x523480
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
pop esi
sbb ecx, edx
pop edi
mov edx, ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x523569
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x523569
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.00555c00
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
cmp dword [ebx + 0x4c], 0
mov ecx, edi
je 0x5235db
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x52358f
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov esi, dword [ebp - 4]
mov ecx, edi
cmp edi, 0xfff
jbe 0x5235c4
nop dword [eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.0056a3b9
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x5235ef
cmp edi, eax
ja 0x5235a0
test ecx, ecx
je 0x5235db
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.0056a3b9
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ecx
pop esi
pop edi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop esi
pop edi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x525330
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59bfa8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x61094c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
movzx eax, word [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x18], eax
mov dword [esi], 0
lea edi, [esi + 4]
mov dword [ebp - 4], 0
mov dword [edi], 0
push 0
push 0
push 0
push 4
push str.Simple_HttpFetcher_1.1
mov byte [ebp - 4], 1
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
lea ecx, [ebp - 0x1c]
cmp esi, ecx
je 0x5253ac
mov ecx, dword [esi]
mov dword [esi], eax
test ecx, ecx
je 0x5253b7
push ecx
jmp 0x5253b1
test eax, eax
je 0x5253b7
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [esi]
test eax, eax
je 0x525472
push 4
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0xaa0
push ecx
push 0x54
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x5253fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00521e40
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.WinHttp:_Failed_to_set_secure_protocols
jmp 0x52548e
cmp dword [ebx + 0x14], 8
jb 0x525404
mov ebx, dword [ebx]
push 0
push dword [ebp - 0x18]
push ebx
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
lea ecx, [ebp - 0x1c]
cmp edi, ecx
je 0x525424
mov ecx, dword [edi]
mov dword [edi], eax
test ecx, ecx
je 0x52542f
push ecx
jmp 0x525429
test eax, eax
je 0x52542f
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [edi], 0
jne 0x525452
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00521e40
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.WinHttp:_Failed_to_connect_to_host
jmp 0x52548e
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00553cca
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00521e40
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.WinHttp:_Failed_to_create_session
push esi
push eax
lea ecx, [ebp - 0x2c]
call fcn.0051fd40
push 0x608ae8
lea eax, [ebp - 0x2c]
push eax
call fcn.00555b8c
int3
Function at 0x529c60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5961a0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x61094c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_unsigned_char__struct_std::char_traits_unsigned_char__.0
call fcn.00553ee1
mov esi, eax
add esp, 4
test esi, esi
je 0x529cc0
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0053ee9a
add esp, 4
mov dword [esi + 4], eax
jmp 0x529cc2
xor esi, esi
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
lea edi, [eax + 0x14]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x2c], edx
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp + 8]
mov dword [ebx], 0
mov ebx, dword [ebp - 0x10]
mov dword [edi], 0
mov dword [edx], 0
mov dword [ebx + 0x38], eax
mov dword [ebx], vtable.SKVS_DAD::internal::cryptolib_buf.0
mov edx, dword [eax + 4]
mov ecx, dword [eax]
sub edx, ecx
mov eax, dword [ebx + 0xc]
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x5744b6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5b4038
push 0x5b4030
push str.FlsAlloc
push 0x1e
call fcn.00574263
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5744ea
push dword [ebp + 8]
mov ecx, esi
call dword [0x5a0478]
call esi
jmp 0x5744f0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x574534
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5b4048
push 0x5b4040
push str.FlsGetValue
push 0x20
call fcn.00574263
mov esi, eax
add esp, 0x10
test esi, esi
je 0x57456b
push dword [ebp + 8]
mov ecx, esi
call dword [0x5a0478]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x577fb7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00577c59

Function at 0x577fc2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00577de8

Function at 0x57879c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00554560
mov eax, dword [0x61094c]
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.00573381
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x5787de
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x57893a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00554d30
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 + 0x61f9f8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00578331
mov ecx, dword [esi*4 + 0x61f9f8]
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 0x578933
cmp eax, dword [edi + ecx + 0x24]
jne 0x578933
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 0x578933
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00578331
add esp, 0x14
test edx, edx
jl 0x578933
jg 0x5788a9
test eax, eax
jb 0x578933
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x578933
jl 0x5788c3
cmp dword [ebp - 0x1008], eax
ja 0x578933
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x5788e1
test ebx, ebx
je 0x57891a
cmp ecx, edi
jae 0x57891a
mov al, byte [ecx]
cmp al, 0xd
jne 0x5788fb
lea eax, [edi - 1]
cmp ecx, eax
jae 0x578907
cmp byte [ecx + 1], 0xa
jne 0x578907
inc ecx
jmp 0x578907
movzx eax, al
movsx eax, byte [eax + 0x610d78]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x5788e1
cmp edx, ebx
jne 0x5788e1
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x578938
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00553cca
leave
ret
Function at 0x5789d9
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 + 0x61f9f8]
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 0x578a19
cmp byte [ebx], 0xa
jne 0x578a19
or byte [eax + edi + 0x28], 4
jmp 0x578a1e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x578b1c
mov al, byte [edx]
cmp al, 0x1a
je 0x578afe
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x578a4d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x578a72
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x578a7c
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 0x578a2f
jmp 0x578b1c
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 0x578af9
cmp dword [ebp - 0xc], 0
je 0x578af9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x61f9f8]
test byte [eax + edi + 0x28], 0x48
je 0x578ad3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x578abe
mov byte [esi], dl
jmp 0x578acf
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x61f9f8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x578b1c
cmp byte [ebp - 1], 0xa
jne 0x578ae2
cmp esi, ebx
jne 0x578ae2
mov byte [esi], 0xa
jmp 0x578b1b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0057834f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x578b1c
mov byte [esi], 0xd
jmp 0x578b1b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x61f9f8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x578b18
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x578b1c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x578b25
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 + 0x61f9f8]
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 0x578b68
cmp word [esi], dx
jne 0x578b68
or byte [edi + eax + 0x28], 4
jmp 0x578b6d
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 0x578cc0
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 0x578ca0
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x578baf
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x578be5
cmp eax, edx
jae 0x578bf1
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 0x578b87
jmp 0x578cc0
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 0x578c9c
cmp dword [ebp - 0x14], 0
je 0x578c9c
mov eax, dword [ebx*4 + 0x61f9f8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x578c74
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x578c3d
mov word [esi], cx
jmp 0x578c70
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x61f9f8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x61f9f8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x61f9f8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x578cc0
pop ebx
cmp word [ebp - 4], bx
jne 0x578c85
cmp esi, dword [ebp + 0xc]
jne 0x578c85
mov word [esi], bx
jmp 0x578cbd
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0057834f
add esp, 0x10
cmp word [ebp - 4], bx
je 0x578cc0
push 0xd
jmp 0x578cb9
mov ecx, dword [ebx*4 + 0x61f9f8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x578cb7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x578cc0
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 0x5799b8
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0057993a

Function at 0x57b3b3
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x61094c]
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 0x57b3fe
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0057b552
test al, al
jne 0x57b3f8
sub edx, 2
cmp edx, edi
jne 0x57b3de
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x57b420
lea eax, [edi + 2]
cmp edx, eax
je 0x57b420
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0057b2ff
add esp, 0x10
jmp 0x57b51a
push esi
lea ecx, [ebp - 0x255]
call fcn.0057b552
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 0x57b463
push dword [ebp - 0x25c]
jmp 0x57b410
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 0x57b4a0
cmp word [ebp - 0x226], 0
je 0x57b4c1
cmp word [ebp - 0x226], ax
jne 0x57b4a0
cmp word [ebp - 0x224], 0
je 0x57b4c1
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0057b2ff
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x57b50d
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x57b47a
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x57b4f5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x57b51a
push 0x57b12f
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00581920
add esp, 0x10
jmp 0x57b4ea
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.00553cca
leave
ret

Function at 0x57be3e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x57be4f
pop esi
ret
push ebx
push edi
push esi
call fcn.0057be07
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0057241f
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x57be77
push ebx
push esi
push edi
call fcn.00555c00
add esp, 0xc
push 0
call fcn.005723e5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x57c23b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0057be8c