joyce8/EMBER2024-capa huggingface dataset:
Function at 0x55e0b0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x5bb424
xor edi, edi
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x55e0ca
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x5bb440
push esi
call fcn.0058f380
add esp, 8
test eax, eax
je 0x55e112
test ebp, ebp
je 0x55e103
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.kernel32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x55e138
push str.AddDllDirectory
push ebx
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x55e138
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x55e1ef
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x55e155
sub ecx, ebx
lea eax, [ecx + 1]
add eax, edx
push eax
call dword [0x636024]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x55e1e5
push dword [esp + 0x10]
push ebx
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
test eax, eax
je 0x55e1e5
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x55e187
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x55e1a0
sub ecx, edx
sub ecx, esi
add ecx, ebx
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x55e1b0
test ebp, ebp
je 0x55e1dc
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x636028]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x636028]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x562890
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x5628ce
mov eax, dword [esi + 0x70]
cmp byte [eax + 0xf8], 0
jne 0x5628bf
push 0
call fcn.00562890
add esp, 4
test al, al
mov eax, dword [esi + 0x70]
setne cl
inc cl
mov byte [eax + 0xf8], cl
mov eax, dword [esi + 0x70]
pop esi
cmp byte [eax + 0xf8], 2
sete al
ret
push 0
push 2
push 0x17
call dword [sym.imp.ws2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x5628e3
xor al, al
pop esi
ret
push eax
call dword [sym.imp.ws2_32.dll_closesocket]
mov al, 1
pop esi
ret
Function at 0x56d2a0
Capabilities:
Move file

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.00551190
push dword [esp + 0x38]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x18], xmm0
call fcn.00599dd3
push dword [esp + 0x40]
mov edi, eax
call fcn.00599dd3
mov ebx, dword [sym.imp.kernel32.dll_MoveFileExA]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebx
test eax, eax
jne 0x56d335
mov ebp, dword [sym.imp.kernel32.dll_Sleep]
nop dword [eax + eax]
lea eax, [esp + 0x20]
push eax
call fcn.00551190
movups xmm0, xmmword [esp + 0x14]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.00551240
add esp, 0x20
test edx, edx
ja 0x56d359
jb 0x56d327
cmp eax, 0x3e8
ja 0x56d359
push 1
call ebp
push 1
push esi
push edi
call ebx
test eax, eax
je 0x56d2f0
test edi, edi
je 0x56d342
push edi
call fcn.0058c4ce
add esp, 4
test esi, esi
je 0x56d34f
push esi
call fcn.0058c4ce
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test edi, edi
je 0x56d366
push edi
call fcn.0058c4ce
add esp, 4
test esi, esi
je 0x56d373
push esi
call fcn.0058c4ce
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x56dd20
Capabilities:
Create thread

Disassembly:
push 0
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push 0
push 0
call fcn.00597acd
mov ecx, eax
add esp, 0x18
xor eax, eax
test ecx, ecx
je 0x56dd46
cmp ecx, 0xffffffff
cmovne eax, ecx
ret

Function at 0x56dd90
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov ecx, 0x2b
test edi, edi
je 0x56de3b
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
nop dword [eax]
mov ebx, 4
lea eax, [esp + 0x1c]
push 4
push eax
cmp edi, ebx
push ebp
cmovb ebx, edi
call fcn.005566d0
add esp, 0xc
cmp eax, 4
jne 0x56ddf6
cmp byte [0x637270], 0
jne 0x56de02
push 2
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov ecx, eax
test eax, eax
jne 0x56de3d
mov eax, dword [esp + 0x1c]
jmp 0x56de1f
imul eax, dword [0x63726c], 0x41c64e6d
add eax, 0x3039
mov dword [0x63726c], eax
rol eax, 0x10
xor ecx, ecx
mov dword [esp + 0x1c], eax
test ebx, ebx
je 0x56de33
mov byte [esi], al
dec edi
inc esi
shr eax, 8
sub ebx, 1
jne 0x56de23
mov dword [esp + 0x1c], eax
test edi, edi
jne 0x56ddb0
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x56de50
Capabilities:
Generate random numbers via winapi

Disassembly:
sub esp, 0x8c
mov eax, dword [0x636510]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x98]
mov dword [esp + 4], eax
mov eax, edx
push ebx
and eax, 0xfffffffe
lea ebx, [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x9c]
cmp eax, 0x100
jae 0x56dfb9
test dl, 1
je 0x56dfb9
push esi
dec edx
mov esi, ebx
push edi
mov edi, edx
mov dword [esp + 0xa8], edx
shr edi, 1
mov ecx, 0x2b
je 0x56df63
nop word [eax + eax]
push 4
lea eax, [esp + 0x14]
mov ebx, 4
push eax
push dword [esp + 0x1c]
cmp edi, ebx
cmovb ebx, edi
call fcn.005566d0
add esp, 0xc
cmp eax, 4
jne 0x56df09
cmp byte [0x637270], 0
jne 0x56df19
push 2
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov ecx, eax
test eax, eax
jne 0x56dfa0
mov eax, dword [esp + 0x10]
jmp 0x56df36
imul eax, dword [0x63726c], 0x41c64e6d
add eax, 0x3039
mov dword [0x63726c], eax
rol eax, 0x10
xor ecx, ecx
mov dword [esp + 0x10], eax
test ebx, ebx
je 0x56df50
nop word [eax + eax]
mov byte [esi], al
dec edi
inc esi
shr eax, 8
sub ebx, 1
jne 0x56df40
mov dword [esp + 0x10], eax
test edi, edi
jne 0x56dec0
mov edx, dword [esp + 0xa8]
lea ebx, [esp + 0x18]
mov eax, ecx
test eax, eax
jne 0x56dfa0
test edx, edx
je 0x56df9a
nop dword [eax]
movzx ecx, byte [ebx]
lea ebx, [ebx + 1]
mov eax, ecx
and ecx, 0xf
shr eax, 4
movzx eax, byte [eax + 0x5bd794]
mov byte [ebp], al
movzx eax, byte [ecx + 0x5bd794]
mov byte [ebp + 1], al
add ebp, 2
sub edx, 2
jne 0x56df70
mov byte [ebp], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0058774b
add esp, 0x8c
ret
mov ecx, dword [esp + 0x90]
mov eax, 0x2b
pop ebp
pop ebx
xor ecx, esp
call fcn.0058774b
add esp, 0x8c
ret
Function at 0x56dfe0
Capabilities:
Generate random numbers via winapi

Disassembly:
push dword [esp + 8]
push 0
push dword [esp + 0xc]
call fcn.00588b30
add esp, 0xc
push 2
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
ret
Function at 0x570d40
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
xor ebp, ebp
push esi
push edi
lea esi, [ebp + 1]
push esi
push ebp
call dword [0x63602c]
mov edi, eax
add esp, 8
test edi, edi
je 0x570d97
nop word [eax + eax]
push esi
push edi
push dword [esp + 0x1c]
mov ebp, edi
mov ebx, esi
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x570daf
cmp esi, ebx
je 0x570daf
cmp esi, 0x8000
ja 0x570daf
cmp esi, ebx
jb 0x570da8
push esi
push edi
call dword [0x63602c]
mov edi, eax
add esp, 8
test edi, edi
jne 0x570d60
push ebp
call dword [0x636028]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [0x636028]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x577450
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x188
mov eax, dword [0x636510]
xor eax, esp
mov dword [esp + 0x184], eax
mov eax, dword [esp + 0x18c]
push ebx
mov ebx, dword [esp + 0x194]
push esi
mov esi, dword [eax + 8]
lea eax, [esp + 0xc]
push 0x80
push 0
push eax
mov dword [esp + 0x14], 0x80
call fcn.00588b30
add esp, 0xc
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
push dword [esi + 0x98]
call dword [sym.imp.ws2_32.dll_getsockname]
test eax, eax
je 0x5774f4
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x8c]
push 0x100
push eax
push esi
call fcn.0054e560
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.0055c320
add esp, 0x1c
mov eax, 2
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.0058774b
add esp, 0x188
ret
lea eax, [esi + 0x120]
push eax
lea eax, [esi + 0xf0]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
call fcn.0055cf50
add esp, 0x10
test al, al
jne 0x577567
push edi
call fcn.0058d105
mov esi, dword [eax]
call fcn.0058d105
mov edi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push esi
call fcn.0054e560
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0055c320
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.0058774b
add esp, 0x188
ret
mov ecx, dword [esp + 0x18c]
xor eax, eax
pop esi
pop ebx
xor ecx, esp
call fcn.0058774b
add esp, 0x188
ret
Function at 0x57e2d0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x120
mov eax, dword [0x636510]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x124]
push ebx
push ebp
mov ebp, dword [esp + 0x134]
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x138]
xor esi, esi
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edi
call fcn.00599dd3
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x57e34f
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.0054e650
push eax
push edi
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push ebp
call fcn.0055c320
push esi
call dword [0x636028]
add esp, 0x20
lea eax, [ebx + 0x4d]
jmp 0x57e4af
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x57e3a9
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.0054e650
push eax
push edi
push str.schannel:_failed_to_open_CA_file__s:__s
push ebp
call fcn.0055c320
push 0
mov esi, 0x4d
call dword [0x636028]
add esp, 0x20
jmp 0x57e4a1
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.kernel32.dll_GetFileSizeEx]
test eax, eax
jne 0x57e3e9
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.0054e650
push eax
push edi
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
push ebp
call fcn.0055c320
add esp, 0x1c
mov esi, 0x4d
jmp 0x57e48d
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x28], ebx
jl 0x57e417
jg 0x57e3fd
cmp edi, 0x100000
jbe 0x57e417
push 0x100000
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push ebp
call fcn.0055c320
add esp, 0xc
mov esi, 0x4d
jmp 0x57e48d
lea eax, [edi + 1]
push eax
call dword [0x636024]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x57e42f
lea esi, [eax + 0x1b]
jmp 0x57e48d
test edi, edi
je 0x57e474
nop dword [eax]
nop word [eax + eax]
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [esp + 0x28]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x57e4cc
mov eax, dword [esp + 0x10]
test eax, eax
je 0x57e4c8
add esi, eax
cmp esi, edi
jb 0x57e440
push ebp
push dword [esp + 0x18]
mov byte [edi + ebx], 0
push edi
push ebx
push dword [esp + 0x2c]
call fcn.0057e0d0
add esp, 0x14
mov esi, eax
push dword [esp + 0x18]
call dword [sym.imp.kernel32.dll_CloseHandle]
push ebx
call dword [0x636028]
add esp, 4
push dword [esp + 0x20]
call fcn.0058c4ce
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0058774b
add esp, 0x120
ret
mov edi, esi
jmp 0x57e474
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.0054e650
push eax
push dword [esp + 0x24]
push str.schannel:_failed_to_read_from_CA_file__s:__s
push ebp
call fcn.0055c320
add esp, 0x1c
mov esi, 0x4d
jmp 0x57e48d
Function at 0x588267
Capabilities:
Parse pe header

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

Function at 0x58e340
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00587440
mov eax, dword [0x636510]
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.0059be2a
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x58e382
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x58e4de
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00587760
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 + 0x637978]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00597d46
mov ecx, dword [esi*4 + 0x637978]
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 0x58e4d7
cmp eax, dword [ecx + edi + 0x24]
jne 0x58e4d7
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 0x58e4d7
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00597d46
add esp, 0x14
test edx, edx
jl 0x58e4d7
jg 0x58e44d
test eax, eax
jb 0x58e4d7
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x58e4d7
jl 0x58e467
cmp dword [ebp - 0x1008], eax
ja 0x58e4d7
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x58e485
test ebx, ebx
je 0x58e4be
cmp ecx, edi
jae 0x58e4be
mov al, byte [ecx]
cmp al, 0xd
jne 0x58e49f
lea eax, [edi - 1]
cmp ecx, eax
jae 0x58e4ab
cmp byte [ecx + 1], 0xa
jne 0x58e4ab
inc ecx
jmp 0x58e4ab
movzx eax, al
movsx eax, byte [eax + 0x636610]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x58e485
cmp edx, ebx
jne 0x58e485
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x58e4dc
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0058774b
leave
ret
Function at 0x5974e1
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x636510]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x61c718
push esi
call fcn.0059f764
pop ecx
pop ecx
test eax, eax
jne 0x59750f
xor al, al
jmp 0x59758c
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.00597216
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x597549
push dword [ebp - 0x210]
call fcn.0058c4ce
xor al, al
jmp 0x59758a
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x59754f
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x59756f
push edx
call fcn.00597418
pop ecx
test al, al
je 0x59753a
push esi
call dword [sym.imp.kernel32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x59757d
mov bl, 1
push dword [ebp - 0x210]
call fcn.0058c4ce
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0058774b
leave
ret
Function at 0x599e9c
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 + 0x637978]
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 0x599edc
cmp byte [ebx], 0xa
jne 0x599edc
or byte [edi + eax + 0x28], 4
jmp 0x599ee1
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 0x599fe0
mov dl, byte [eax]
cmp dl, 0x1a
je 0x599fc3
inc eax
cmp dl, 0xd
je 0x599f0d
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x599f33
cmp eax, ecx
jae 0x599f41
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 0x599ef5
jmp 0x599fe0
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 0x599fbe
cmp dword [ebp - 0x10], 0
je 0x599fbe
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x637978]
test byte [eax + edi + 0x28], 0x48
je 0x599f98
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x599f83
mov byte [esi], dl
jmp 0x599f94
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x637978]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x599fe0
cmp byte [ebp - 1], 0xa
jne 0x599fa7
cmp esi, ebx
jne 0x599fa7
mov byte [esi], 0xa
jmp 0x599fdf
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00597d64
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x599fe0
mov byte [esi], 0xd
jmp 0x599fdf
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x637978]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x599fdd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x599fe0
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x599fe9
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 + 0x637978]
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 0x59a02f
cmp word [ebx], dx
jne 0x59a02f
or byte [eax + edi + 0x28], 4
jmp 0x59a034
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 0x59a197
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 0x59a177
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x59a075
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x59a0ab
cmp eax, edx
jae 0x59a0b9
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 0x59a050
jmp 0x59a197
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 0x59a172
cmp dword [ebp - 0x18], 0
je 0x59a172
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x637978]
test byte [eax + edi + 0x28], 0x48
je 0x59a148
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 0x59a10c
mov word [esi], cx
jmp 0x59a143
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x637978]
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 + 0x637978]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x637978]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x59a197
pop eax
cmp word [ebp - 4], ax
jne 0x59a158
cmp esi, ebx
jne 0x59a158
mov word [esi], ax
jmp 0x59a194
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00597d64
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x59a197
push 0xd
pop eax
jmp 0x59a153
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x637978]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x59a191
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x59a197
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 0x59caee
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x61d49c
push 0x61d494
push str.FlsAlloc
push 0x1f
call fcn.0059c96d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x59cb22
push dword [ebp + 8]
mov ecx, esi
call dword [0x5b2368]
call esi
jmp 0x59cb28
call dword [sym.imp.kernel32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x59cb6c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x61d4ac
push 0x61d4a4
push str.FlsGetValue
push 0x21
call fcn.0059c96d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x59cba3
push dword [ebp + 8]
mov ecx, esi
call dword [0x5b2368]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.kernel32.dll_TlsGetValue]

Function at 0x59cbab
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x61d4b4
push 0x61d4ac
push str.FlsSetValue
push 0x22
call fcn.0059c96d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x59cbe5
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5b2368]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.kernel32.dll_TlsSetValue]