joyce8/EMBER2024-capa huggingface dataset:
Function at 0x620bd0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbdc
push ebx
xor ecx, ecx
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0x420], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040bbbc
mov eax, dword [ebp - 8]
call fcn.0040bbbc
xor eax, eax
push ebp
push 0x620dae
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, 0x64
call fcn.00407568
cmp eax, 0x32
jle 0x620c4b
push 0
push 0
push 0
push 1
lea edx, [ebp - 0x420]
mov eax, dword [ebp - 8]
call fcn.004278b0
mov eax, dword [ebp - 0x420]
call fcn.0040c5d0
push eax
call sub.wininet.dll_InternetOpenW
mov dword [ebp - 0x10], eax
jmp 0x620c75
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x424]
mov eax, dword [ebp - 8]
call fcn.004278b0
mov eax, dword [ebp - 0x424]
call fcn.0040c5d0
push eax
call sub.wininet.dll_InternetOpenW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x620d81
xor eax, eax
push ebp
push 0x620d7a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80000000
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040c5d0
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetOpenUrlW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x620d61
xor eax, eax
push ebp
push 0x620d5a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xff00
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x488c40]
call fcn.004b3688
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x620d3a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
push eax
push 0x400
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x620d18
lea edx, [ebp - 0x41c]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0x10]
cmp dword [ebp - 0x18], 0
jne 0x620cea
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x620d41
mov eax, dword [ebp - 0x1c]
call fcn.00409d14
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x620d81
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x620db5
lea eax, [ebp - 0x424]
mov edx, 2
call fcn.0040bb28
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040bb28
pop eax
jmp eax
Function at 0x6212b0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbdc
push ebx
xor ecx, ecx
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0x420], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040bbbc
mov eax, dword [ebp - 8]
call fcn.0040bbbc
xor eax, eax
push ebp
push 0x62148e
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, 0x64
call fcn.00407568
cmp eax, 0x32
jle 0x62132b
push 0
push 0
push 0
push 1
lea edx, [ebp - 0x420]
mov eax, dword [ebp - 8]
call fcn.004278b0
mov eax, dword [ebp - 0x420]
call fcn.0040c5d0
push eax
call sub.wininet.dll_InternetOpenW
mov dword [ebp - 0x10], eax
jmp 0x621355
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x424]
mov eax, dword [ebp - 8]
call fcn.004278b0
mov eax, dword [ebp - 0x424]
call fcn.0040c5d0
push eax
call sub.wininet.dll_InternetOpenW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x621461
xor eax, eax
push ebp
push 0x62145a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80000000
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040c5d0
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetOpenUrlW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x621441
xor eax, eax
push ebp
push 0x62143a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xff00
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x488c40]
call fcn.004b3688
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x62141a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
push eax
push 0x400
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x6213f8
lea edx, [ebp - 0x41c]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0x10]
cmp dword [ebp - 0x18], 0
jne 0x6213ca
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x621421
mov eax, dword [ebp - 0x1c]
call fcn.00409d14
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x621461
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x621495
lea eax, [ebp - 0x424]
mov edx, 2
call fcn.0040bb28
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040bb28
pop eax
jmp eax
Function at 0x432d20
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov edx, dword [0x591f6c]
cmp edx, dword [ecx + 4]
jle 0x432d76
push 0x591f6c
call fcn.0053f46a
add esp, 4
cmp dword [0x591f6c], 0xffffffff
jne 0x432d76
mov ecx, 0x591f70
call fcn.0041f450
push 0x56b790
call fcn.0053f39a
add esp, 4
push 0x591f6c
call fcn.0053f419
add esp, 4
mov dword [ebp - 8], 0x591f70
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 4]
sub edx, dword [ecx]
sar edx, 3
cmp edx, 0x64
jae 0x432ddb
mov byte [ebp - 1], 1
mov dword [ebp - 0xc], 0x591f70
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [eax + 4]
sub edx, dword [ecx]
sar edx, 3
xor edx, 0x36
mov dword [ebp - 0x18], edx
lea eax, [ebp - 0x24]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dl, byte [ebp - 1]
mov byte [ecx], dl
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov dword [ecx], edx
lea eax, [ebp - 0x24]
push eax
mov ecx, 0x591f70
call fcn.004f5a80
jmp 0x432de5
mov ecx, 0x591f70
call fcn.004ee980
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0
je 0x432e00
lea ecx, [ebp + 8]
call fcn.00414d00
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp + 8]
call fcn.00417140
mov esp, ebp
pop ebp
ret

Function at 0x432e10
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
lea ecx, [ebp + 8]
call fcn.00414d00
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
and eax, 2
jne 0x432e44
mov ecx, dword [ebp - 4]
or ecx, 2
push ecx
lea ecx, [ebp + 8]
call fcn.00414d00
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp + 8]
call fcn.00417140
mov esp, ebp
pop ebp
ret
Function at 0x4338c0
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
add ecx, 0x1c
call fcn.004ef1e0
mov ecx, dword [ebp - 4]
add ecx, 0x34
call fcn.004ef1e0
mov ecx, dword [ebp - 4]
add ecx, 0x4c
call fcn.00415170
mov ecx, dword [ebp - 4]
add ecx, 0x64
call fcn.00415170
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_128.0.0.0_Safari_537.36
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x433910
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
add ecx, 0x1c
call fcn.004ef1e0
mov ecx, dword [ebp - 4]
add ecx, 0x34
call fcn.004ef1e0
mov ecx, dword [ebp - 4]
add ecx, 0x4c
call fcn.00415170
mov ecx, dword [ebp - 4]
add ecx, 0x64
call fcn.00415170
mov eax, dword [ebp - 4]
mov cl, byte [ebp + 8]
mov byte [eax + 0x14], cl
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_128.0.0.0_Safari_537.36
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4
Function at 0x50d180
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0050cfa0
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x50d1c1
mov eax, dword [ebp - 4]
jmp 0x50d2f6
cmp dword [ebp + 0x18], 0
je 0x50d1d7
mov eax, dword [ebp + 0x18]
xor ecx, ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
jmp 0x50d2a4
xor edx, edx
mov dword [ebp - 0x24], 0x18e04856
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
xor eax, 0x11
xor ecx, 0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ecx
xor edx, edx
mov dword [ebp - 0x2c], 0x11
mov dword [ebp - 0x28], edx
mov eax, dword [0x58bb60]
xor eax, 0xa949
mov ecx, dword [0x58bb64]
xor ecx, 0
push 0
push 2
push ecx
push eax
call fcn.00567560
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
push 0
push 0xa949
mov edx, dword [0x58bb5c]
push edx
mov eax, dword [0x58bb58]
push eax
call fcn.00567560
push 0
push 0x11
push edx
push eax
call fcn.00567440
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edx
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
add ecx, dword [ebp - 0x34]
adc edx, eax
add ecx, 1
adc edx, 0
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], edx
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x40]
sub ecx, dword [ebp - 0x44]
sbb edx, eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], edx
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x54]
mov esi, dword [ebp - 0x50]
push esi
push eax
push edx
push ecx
call fcn.00567440
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], edx
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x14], 0
je 0x50d2b8
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0xc], ecx
jmp 0x50d2bf
mov dword [ebp - 0xc], str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_126.0.0.0_Safari_537.36
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
movzx edx, byte [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0050ccc0
add esp, 0x1c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
call fcn.0050d160
add esp, 4
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x53c410
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [ebx + 0xc]
shl eax, 2
mov ecx, dword [ebx + 8]
lea edx, [ecx + eax*4]
push edx
mov eax, dword [ebx + 8]
push eax
call fcn.0053c580
add esp, 8
mov dword [ebp - 4], 4
mov ecx, dword [ebx + 0xc]
lea edx, [ecx*4 - 4]
mov dword [ebp - 8], edx
jmp 0x53c46a
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
sub ecx, 4
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 8]
jae 0x53c4b8
mov eax, dword [ebp - 4]
mov ecx, dword [ebx + 8]
aesimc xmm0, xmmword [ecx + eax*4]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
movaps xmmword [ebp - 0x40], xmm0
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 8]
aesimc xmm0, xmmword [eax + edx*4]
movaps xmmword [ebp - 0x30], xmm0
mov ecx, dword [ebp - 4]
mov edx, dword [ebx + 8]
movups xmm0, xmmword [ebp - 0x30]
movups xmmword [edx + ecx*4], xmm0
mov eax, dword [ebp - 8]
mov ecx, dword [ebx + 8]
movups xmm0, xmmword [ebp - 0x40]
movups xmmword [ecx + eax*4], xmm0
jmp 0x53c458
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 8]
aesimc xmm0, xmmword [eax + edx*4]
movaps xmmword [ebp - 0x50], xmm0
mov ecx, dword [ebp - 4]
mov edx, dword [ebx + 8]
movups xmm0, xmmword [ebp - 0x50]
movups xmmword [edx + ecx*4], xmm0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x53fa85
Capabilities:
Parse pe header

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

Function at 0x54097f
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 0x5409a6
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x5409a9
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.0054095b
pop esi
leave
ret 8
Function at 0x54f6f1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00567840
mov eax, dword [0x58b040]
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.0055d233
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x54f733
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x54f88f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00567790
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 + 0x5902e8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0054c03b
mov ecx, dword [esi*4 + 0x5902e8]
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 0x54f888
cmp eax, dword [ecx + edi + 0x24]
jne 0x54f888
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 0x54f888
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0054c03b
add esp, 0x14
test edx, edx
jl 0x54f888
jg 0x54f7fe
test eax, eax
jb 0x54f888
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x54f888
jl 0x54f818
cmp dword [ebp - 0x1008], eax
ja 0x54f888
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x54f836
test ebx, ebx
je 0x54f86f
cmp ecx, edi
jae 0x54f86f
mov al, byte [ecx]
cmp al, 0xd
jne 0x54f850
lea eax, [edi - 1]
cmp ecx, eax
jae 0x54f85c
cmp byte [ecx + 1], 0xa
jne 0x54f85c
inc ecx
jmp 0x54f85c
movzx eax, al
movsx eax, byte [eax + 0x58b248]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x54f836
cmp edx, ebx
jne 0x54f836
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x54f88d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0053fcd7
leave
ret
Function at 0x55819d
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 + 0x5902e8]
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 0x5581dd
cmp byte [ebx], 0xa
jne 0x5581dd
or byte [edi + eax + 0x28], 4
jmp 0x5581e2
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 0x5582e1
mov dl, byte [eax]
cmp dl, 0x1a
je 0x5582c4
inc eax
cmp dl, 0xd
je 0x55820e
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x558234
cmp eax, ecx
jae 0x558242
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 0x5581f6
jmp 0x5582e1
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 0x5582bf
cmp dword [ebp - 0x10], 0
je 0x5582bf
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x5902e8]
test byte [eax + edi + 0x28], 0x48
je 0x558299
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x558284
mov byte [esi], dl
jmp 0x558295
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5902e8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x5582e1
cmp byte [ebp - 1], 0xa
jne 0x5582a8
cmp esi, ebx
jne 0x5582a8
mov byte [esi], 0xa
jmp 0x5582e0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0054c059
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x5582e1
mov byte [esi], 0xd
jmp 0x5582e0
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x5902e8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5582de
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5582e1
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x5582ea
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 + 0x5902e8]
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 0x558330
cmp word [ebx], dx
jne 0x558330
or byte [eax + edi + 0x28], 4
jmp 0x558335
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 0x558498
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 0x558478
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x558376
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x5583ac
cmp eax, edx
jae 0x5583ba
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 0x558351
jmp 0x558498
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 0x558473
cmp dword [ebp - 0x18], 0
je 0x558473
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x5902e8]
test byte [eax + edi + 0x28], 0x48
je 0x558449
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 0x55840d
mov word [esi], cx
jmp 0x558444
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x5902e8]
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 + 0x5902e8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x5902e8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x558498
pop eax
cmp word [ebp - 4], ax
jne 0x558459
cmp esi, ebx
jne 0x558459
mov word [esi], ax
jmp 0x558495
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0054c059
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x558498
push 0xd
pop eax
jmp 0x558454
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x5902e8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x558492
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x558498
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 0x55bc05
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x570910
push 0x570908
push str.FlsAlloc
push 0x1f
call fcn.0055bacd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x55bc39
push dword [ebp + 8]
mov ecx, esi
call dword [0x56c20c]
call esi
jmp 0x55bc3f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x55bc83
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x570920
push 0x570918
push str.FlsGetValue
push 0x21
call fcn.0055bacd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x55bcba
push dword [ebp + 8]
mov ecx, esi
call dword [0x56c20c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x55bcc2
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x570928
push 0x570920
push str.FlsSetValue
push 0x22
call fcn.0055bacd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x55bcfc
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x56c20c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x55c09b
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0055c017
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x55c20a
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x55c20a
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x55c1bf
jg 0x55c0f7
test eax, eax
je 0x55c1b5
push 1
push 0x1000
call fcn.0055d396
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x55c11a
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x55c1ac
push 0x8000
push ebx
call fcn.005568d0
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x55c143
jg 0x55c13e
cmp ecx, 0x1000
jb 0x55c143
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0055960b
add esp, 0x10
cmp eax, 0xffffffff
je 0x55c188
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x55c13e
jl 0x55c16f
test ecx, ecx
jne 0x55c130
push dword [ebp - 0xc]
push ebx
call fcn.005568d0
push esi
call fcn.0055b6de
add esp, 0xc
xor ebx, ebx
jmp 0x55c218
cmp byte [edi + 0x24], 0
je 0x55c19f
cmp dword [edi + 0x20], 5
jne 0x55c19f
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x55c1aa
mov ebx, dword [edi + 0x18]
jmp 0x55c1ac
xor ebx, ebx
push esi
call fcn.0055b6de
pop ecx
jmp 0x55c218
test ecx, ecx
jg 0x55c181
jl 0x55c1bf
test eax, eax
jae 0x55c181
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0054c059
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x55c1df
cmp byte [edi + 0x1c], 0
je 0x55c181
jmp 0x55c210
push ebx
call fcn.0055ae59
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x55c181
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x55c218
cmp byte [edi + 0x1c], 0
je 0x55c215
mov ebx, dword [edi + 0x18]
jmp 0x55c218
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0054c059
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret