joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ec930
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
push 0
push 0
push 0
push str.Microsoft_Internet_Explorer
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0xc], 0
jne 0x4ec96a
mov eax, dword [ebp - 4]
mov dword [eax + 0x84], 1
xor al, al
jmp 0x4ec990
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x20]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x18]
push eax
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x4ecbf0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x5d3640]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x40], ecx
mov byte [ebp - 0x35], 0
push 0x30
push 0
lea eax, [ebp - 0x34]
push eax
call fcn.0051f6b0
add esp, 0xc
mov dword [ebp - 0x3c], 0x30
push 0
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x34]
push edx
push 0
push 5
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x4ecc5f
mov dword [ebp - 0x44], 0
push 0xa
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x34]
push eax
call fcn.005399d4
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov byte [ebp - 0x35], 1
movzx eax, byte [ebp - 0x35]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00510479
mov esp, ebp
pop ebp
ret 4

Function at 0x4ecc80
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x5d3640]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x38], 0
push 0x30
push 0
lea eax, [ebp - 0x34]
push eax
call fcn.0051f6b0
add esp, 0xc
mov dword [ebp - 0x3c], 0x30
push 0
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x34]
push edx
push 0
push 0x13
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x4eccec
mov dword [ebp - 0x44], 0
push 0xa
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x34]
push eax
call fcn.005399d4
add esp, 0xc
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00510479
mov esp, ebp
pop ebp
ret
Function at 0x4ed0c0
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57592d
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5d3640]
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.0041eac0
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.004ec9a0
movzx ecx, al
test ecx, ecx
jne 0x4ed14c
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040bee0
mov eax, dword [ebp - 0x3c]
or eax, 1
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040d060
mov eax, dword [ebp + 8]
jmp 0x4ed256
mov ecx, dword [ebp - 0x30]
call fcn.004ecc80
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x30]
cmp dword [edx + 4], 0x194
jne 0x4ed17b
mov dword [ebp - 0x40], 5
push 0x5c7f44
lea eax, [ebp - 0x40]
push eax
call fcn.0051eb68
push 0x1000
call fcn.00534202
add esp, 4
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x29], 0
mov ecx, 1
test ecx, ecx
je 0x4ed213
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 0x4ed1af
jmp 0x4ed213
cmp dword [ebp - 0x38], 0
ja 0x4ed1bb
mov byte [ebp - 0x29], 1
jmp 0x4ed213
cmp dword [ebp - 0x38], 0x1000
jbe 0x4ed1df
mov edx, dword [ebp - 0x34]
push edx
call fcn.005231b0
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
call fcn.00534202
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 0x4ed1fe
jmp 0x4ed213
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040f750
jmp 0x4ed18f
mov edx, dword [ebp - 0x34]
push edx
call fcn.005231b0
add esp, 4
movzx eax, byte [ebp - 0x29]
test eax, eax
jne 0x4ed22f
lea ecx, [ebp - 0x28]
call fcn.004ed410
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040bee0
mov edx, dword [ebp - 0x3c]
or edx, 1
mov dword [ebp - 0x3c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040d060
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.00510479
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4ed280
Capabilities:
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57596d
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x5d3640]
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.004ef880
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.004ea560
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0040d060
push 0xa0000000
lea ecx, [ebp - 0x28]
call fcn.004ea350
push eax
lea ecx, [ebp - 0x28]
call fcn.004ea2b0
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 0x4ed31c
mov dword [ebp - 0x50], 0
jmp 0x4ed32b
mov eax, dword [ebp + 8]
push eax
call fcn.00534ca0
add esp, 4
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x48], ecx
cmp dword [ebp + 0xc], 0
jne 0x4ed37e
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 0x4ed364
mov dword [ebp - 0x54], 1
jmp 0x4ed36b
mov dword [ebp - 0x54], 0
mov cl, byte [ebp - 0x54]
mov byte [ebp - 0x41], cl
lea ecx, [ebp - 0x28]
call fcn.004046e0
mov al, byte [ebp - 0x41]
jmp 0x4ed3c5
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 0x4ed3ad
mov dword [ebp - 0x58], 1
jmp 0x4ed3b4
mov dword [ebp - 0x58], 0
mov dl, byte [ebp - 0x58]
mov byte [ebp - 0x42], dl
lea ecx, [ebp - 0x28]
call fcn.004046e0
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.00510479
mov esp, ebp
pop ebp
ret 8
Function at 0x4f1160
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575e67
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5d3640]
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 0x4f11b5
mov dword [ebx], 0x591be0
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.0040bcd0
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.0049658d
mov esi, eax
add esp, 4
test esi, esi
je 0x4f1212
push 1
mov byte [ebp - 4], 2
call fcn.0050ee2f
add esp, 4
mov dword [esi + 4], eax
jmp 0x4f1214
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 0x5116a3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
je 0x5116e2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5116e2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5116e2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x5116e2
cmp dword [ecx + 0x74], 0xe
jbe 0x5116e2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x517cc8
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 0x517cf6
cmp eax, edi
jge 0x517cea
push esi
call fcn.00514dba
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 0x517d19
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 0x517cff
mov dword [esi + 8], edx
jmp 0x517d2e
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x517d24
xor dl, dl
jmp 0x517d29
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x517d19
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 0x517d67
mov dword [0x5dee38], str.zlib_corrupt
xor eax, eax
jmp 0x517da9
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x517d7c
mov dword [0x5dee38], str.read_past_buffer
jmp 0x517d63
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x517d93
push edi
push esi
call fcn.0051a169
pop ecx
pop ecx
test eax, eax
je 0x517d63
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.0051f130
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 0x529ab6
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5d3640]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x5958d8
push esi
call fcn.00540f8b
pop ecx
pop ecx
test eax, eax
jne 0x529ae4
xor al, al
jmp 0x529b61
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.005297eb
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x529b1e
push dword [ebp - 0x210]
call fcn.005231b0
xor al, al
jmp 0x529b5f
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x529b24
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x529b44
push edx
call fcn.005299ed
pop ecx
test al, al
je 0x529b0f
push esi
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 1
jbe 0x529b52
mov bl, 1
push dword [ebp - 0x210]
call fcn.005231b0
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00510479
leave
ret
Function at 0x53e500
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.005107b0
mov eax, dword [0x5d3640]
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.00538033
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x53e542
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x53e69e
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00510ff0
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 + 0x5df4e0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00543908
mov ecx, dword [esi*4 + 0x5df4e0]
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 0x53e697
cmp eax, dword [ecx + edi + 0x24]
jne 0x53e697
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 0x53e697
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00543908
add esp, 0x14
test edx, edx
jl 0x53e697
jg 0x53e60d
test eax, eax
jb 0x53e697
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x53e697
jl 0x53e627
cmp dword [ebp - 0x1008], eax
ja 0x53e697
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x53e645
test ebx, ebx
je 0x53e67e
cmp ecx, edi
jae 0x53e67e
mov al, byte [ecx]
cmp al, 0xd
jne 0x53e65f
lea eax, [edi - 1]
cmp ecx, eax
jae 0x53e66b
cmp byte [ecx + 1], 0xa
jne 0x53e66b
inc ecx
jmp 0x53e66b
movzx eax, al
movsx eax, byte [eax + 0x5d3bf8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x53e645
cmp edx, ebx
jne 0x53e645
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x53e69c
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00510479
leave
ret

Function at 0x53f3d1
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x597f44
push 0x597f3c
push str.FlsAlloc
push 0x1f
call fcn.0053f1fc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x53f405
push dword [ebp + 8]
mov ecx, esi
call dword [0x579704]
call esi
jmp 0x53f40b
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x53f44f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x597f54
push 0x597f4c
push str.FlsGetValue
push 0x21
call fcn.0053f1fc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x53f486
push dword [ebp + 8]
mov ecx, esi
call dword [0x579704]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.DLL_TlsGetValue]
Function at 0x53f48e
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x597f5c
push 0x597f54
push str.FlsSetValue
push 0x22
call fcn.0053f1fc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x53f4c8
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x579704]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.DLL_TlsSetValue]
Function at 0x542c83
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 + 0x5df4e0]
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 0x542cc3
cmp byte [ebx], 0xa
jne 0x542cc3
or byte [edi + eax + 0x28], 4
jmp 0x542cc8
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 0x542dc7
mov dl, byte [eax]
cmp dl, 0x1a
je 0x542daa
inc eax
cmp dl, 0xd
je 0x542cf4
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x542d1a
cmp eax, ecx
jae 0x542d28
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 0x542cdc
jmp 0x542dc7
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 0x542da5
cmp dword [ebp - 0x10], 0
je 0x542da5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x5df4e0]
test byte [eax + edi + 0x28], 0x48
je 0x542d7f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x542d6a
mov byte [esi], dl
jmp 0x542d7b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5df4e0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x542dc7
cmp byte [ebp - 1], 0xa
jne 0x542d8e
cmp esi, ebx
jne 0x542d8e
mov byte [esi], 0xa
jmp 0x542dc6
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00543926
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x542dc7
mov byte [esi], 0xd
jmp 0x542dc6
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x5df4e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x542dc4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x542dc7
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x542dd0
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 + 0x5df4e0]
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 0x542e16
cmp word [ebx], dx
jne 0x542e16
or byte [eax + edi + 0x28], 4
jmp 0x542e1b
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 0x542f7e
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 0x542f5e
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x542e5c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x542e92
cmp eax, edx
jae 0x542ea0
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 0x542e37
jmp 0x542f7e
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 0x542f59
cmp dword [ebp - 0x18], 0
je 0x542f59
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x5df4e0]
test byte [eax + edi + 0x28], 0x48
je 0x542f2f
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 0x542ef3
mov word [esi], cx
jmp 0x542f2a
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x5df4e0]
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 + 0x5df4e0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x5df4e0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x542f7e
pop eax
cmp word [ebp - 4], ax
jne 0x542f3f
cmp esi, ebx
jne 0x542f3f
mov word [esi], ax
jmp 0x542f7b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00543926
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x542f7e
push 0xd
pop eax
jmp 0x542f3a
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x5df4e0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x542f78
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x542f7e
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 0x547dce
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5d3640]
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 0x547e19
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00547f69
test al, al
jne 0x547e13
sub edx, 2
cmp edx, edi
jne 0x547df9
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x547e3b
lea eax, [edi + 2]
cmp edx, eax
je 0x547e3b
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00547d1a
add esp, 0x10
jmp 0x547f35
push esi
lea ecx, [ebp - 0x255]
call fcn.00547f69
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 0x547e7e
push dword [ebp - 0x25c]
jmp 0x547e2b
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 0x547ebb
cmp word [ebp - 0x226], 0
je 0x547edc
cmp word [ebp - 0x226], ax
jne 0x547ebb
cmp word [ebp - 0x224], 0
je 0x547edc
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00547d1a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x547f28
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x547e95
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x547f10
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor eax, eax
jmp 0x547f35
push 0x547b4a
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00536830
add esp, 0x10
jmp 0x547f05
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.00510479
leave
ret

Function at 0x54884b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x54885c
pop esi
ret
push ebx
push edi
push esi
call fcn.00548814
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0053edb2
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x548884
push ebx
push esi
push edi
call fcn.0051f130
add esp, 0xc
push 0
call fcn.0053ed78
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x548c54
Capabilities:
Set environment variable

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