joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001d4a0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14007c030]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, rcx
mov qword [rsp + 0x68], rcx
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.140008de0
mov rcx, rax
call fcn.14001d6b0
test al, al
je 0x14001d52d
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14001d521
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14001d51c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001d65a
mov rcx, r8
call fcn.140035d80
xor edi, edi
mov byte [rbx], dil
xor eax, eax
jmp 0x14001d628
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140008de0
mov rcx, rax
call fcn.14001b540
mov rbp, rax
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rdi + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
mov rcx, rbp
cmp rax, 0xffffffffffffffff
jne 0x14001d5c4
call fcn.140035d80
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14001d5bd
inc rdx
cmp rdx, 0x1000
mov rcx, qword [rbx]
jb 0x14001d5b8
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001d65a
mov rcx, r8
call fcn.140035d80
mov eax, 0xffffffff
jmp 0x14001d625
call fcn.140035d80
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
mov rcx, rsi
cmp eax, 0xffffffff
jne 0x14001d5e6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001d583
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14001d623
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14001d61e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001d65a
mov rcx, r8
call fcn.140035d80
mov eax, ebp
mov byte [rbx], 0
mov qword [rbx + 0x18], recv
mov qword [rbx + 0x10], rdi
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140035d60
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140047b50
int3

Function at 0x14001d660
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001d694
test al, 0x10
je 0x14001d694
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp edi, 0xffffffff
je 0x14001d687
mov rbx, qword [rsp + 0x30]
not dil
and dil, 1
movzx eax, dil
add rsp, 0x20
pop rdi
ret
Function at 0x140020c90
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x1f0
mov rax, qword [0x14007c030]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
mov rsi, r9
mov rbx, rdx
mov r14, rcx
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x30], r9
mov rdi, qword [rsp + 0x240]
mov qword [rsp + 0x38], rdi
xor ebp, ebp
mov qword [rcx], rbp
mov dword [rcx + 8], 0x50
mov byte [rcx + 0xc], bpl
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], 0x1000
add rcx, 0x20
mov rdx, r9
call fcn.140008de0
nop
lea rcx, [r14 + 0x40]
mov rdx, rdi
call fcn.140008de0
nop
lea rcx, [r14 + 0x60]
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], rbp
lea r8d, [rbp + 3]
lea rdx, [0x140070c70]
call fcn.14000b050
mov qword [r14 + 0x80], rbx
mov ecx, 0x202
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140020d4d
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov ebx, ebp
jmp 0x140020d9e
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
jne 0x140020d66
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rbx, rbp
jmp 0x140020d9e
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
test rcx, rcx
jne 0x140020d7d
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rbx, rbp
jmp 0x140020d9e
mov ecx, dword [rcx]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rbx, rax
test rax, rax
jne 0x140020d98
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rbx, rbp
jmp 0x140020d9e
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov qword [r14], rbx
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x140020dd7
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x140020dd2
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140020e4c
mov rcx, r8
call fcn.140035d80
mov qword [rsi + 0x10], rbp
mov qword [rsi + 0x18], recv
mov byte [rsi], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140020e1c
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140020e17
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140020e52
mov rcx, r8
call fcn.140035d80
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], recv
mov byte [rdi], 0
mov rax, r14
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.140035d60
add rsp, 0x1f0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.140047b50
nop
call fcn.140047b50
int3
Function at 0x14002da70
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
push rbp
push rsi
push r14
sub rsp, 0xf0
mov rax, qword [0x14007c030]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xorps xmm0, xmm0
mov dword [rsp + 0x70], WSAGetLastError
movups xmmword [rsp + 0x78], xmm0
xor r14d, r14d
mov rbp, rcx
mov r8, rcx
mov dword [rsp + 0x28], r14d
xor edx, edx
mov qword [rsp + 0x20], r14
mov ecx, 0xfde9
lea r9d, [r14 - 1]
movups xmmword [r11 - 0x80], xmm0
movups xmmword [r11 - 0x70], xmm0
movups xmmword [r11 - 0x60], xmm0
movups xmmword [r11 - 0x50], xmm0
movups xmmword [r11 - 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rsi, eax
test eax, eax
je 0x14002dc21
movabs rax, 0x7fffffffffffffff
mov qword [rsp + 0x118], rbx
mov rbx, rsi
cmp rsi, rax
ja 0x14002dc49
add rbx, rbx
mov qword [rsp + 0x120], rdi
cmp rbx, 0x1000
jb 0x14002db43
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x14002dc3d
call fcn.140036024
test rax, rax
je 0x14002dc43
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x14002db58
test rbx, rbx
je 0x14002db55
mov rcx, rbx
call fcn.140036024
mov rdi, rax
jmp 0x14002db58
mov rdi, r14
mov r8, rbx
xor edx, edx
mov rcx, rdi
call fcn.1400383c0
mov r9d, 0xffffffff
mov dword [rsp + 0x28], esi
mov r8, rbp
mov qword [rsp + 0x20], rdi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rsp + 0x70]
mov rdx, rdi
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14002dbda
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x14002dc11
sar rbx, 1
add rbx, rbx
cmp rbx, 0x1000
jb 0x14002dc06
mov rcx, qword [rdi - 8]
add rbx, 0x27
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x14002dc43
mov rdi, rcx
mov rdx, rbx
mov rcx, rdi
call fcn.140035d80
mov rdi, qword [rsp + 0x120]
mov rbx, qword [rsp + 0x118]
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140035d60
add rsp, 0xf0
pop r14
pop rsi
pop rbp
ret
call fcn.140002d70
int3
call fcn.140047b50
int3
call fcn.14000aaf0
int3
Function at 0x140030390
Capabilities:
Connect socket
Convert ip address from string

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14007c030]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov esi, 2
mov rbx, rdx
mov word [rsp + 0x20], si
mov rdi, rcx
test r8d, r8d
je 0x1400303c2
movzx ecx, r8w
jmp 0x1400303c6
movzx ecx, word [rcx + 8]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x22], ax
lea r8, [rsp + 0x24]
mov ecx, esi
mov rdx, rbx
test rbx, rbx
jne 0x1400303e3
mov rdx, qword [rdi]
call qword [sym.imp.WS2_32.dll_inet_pton]
mov rcx, qword [rdi + 0x10]
lea rdx, [rsp + 0x20]
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x14003042b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rdi + 0x10]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, ebx
mov qword [rdi + 0x10], 0
mov byte [rdi + 0xc], 0
jmp 0x140030431
mov byte [rdi + 0xc], 1
xor eax, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140035d60
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret

Function at 0x140030480
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0xb0
mov rax, qword [0x14007c030]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rbx, r8
mov rsi, rdx
mov rdi, qword [rcx + 0x10]
lea r9, [rsp + 0x5d]
mov rcx, rbx
movabs r10, 0xcccccccccccccccd
nop dword [rax]
dec r9
mov rax, r10
mul rcx
mov r8, rdx
shr r8, 3
movzx eax, r8b
shl al, 2
lea edx, [rax + r8]
add dl, dl
sub cl, dl
add cl, 0x30
mov byte [r9], cl
mov rcx, r8
test r8, r8
jne 0x1400304c0
lea r8, [rsp + 0x5d]
mov rdx, r9
lea rcx, [rsp + 0x28]
call fcn.14000fd30
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rdx, qword [rsp + 0x28]
xor r9d, r9d
mov r8d, dword [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
xor r9d, r9d
lea r8d, [r9 + 0x40]
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
xor r9d, r9d
mov r8d, ebx
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
mov ebx, eax
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x140030583
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003057e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400305a7
call fcn.140035d80
mov eax, ebx
jmp 0x14003058c
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140035d60
add rsp, 0xb0
pop rdi
pop rsi
pop rbx
ret
call fcn.140047b50
int3
Function at 0x1400352c4
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x1400352f2
xor eax, eax
jmp 0x1400353d8
cmp qword [rcx + 0x68], 0
je 0x140035303
call fcn.140023a90
jmp 0x1400353d8
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14003531a
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14003531c
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14003534e
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140037d00
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x1400353d2
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140035385
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x1400353ae
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140046e70
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x1400353d2
cmp rsi, rbx
ja 0x14003538c
test rsi, rsi
je 0x1400353d2
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140046e70
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140036ad8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140036b22
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140036b22
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140036b22
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140036b22
cmp dword [rcx + 0x84], 0xe
jbe 0x140036b22
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140036b24
xor al, al
add rsp, 0x28
ret
Function at 0x14003c5c8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140036730
sub rsp, rax
mov rax, qword [0x14007c030]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14004c938
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14003c617
mov rax, rbp
jmp 0x14003c71f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x7eb70]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14004cbc8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x7eb70]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14003c71b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003c71b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14004cbc8
test rax, rax
js 0x14003c71b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14003c71b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14003c70d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14003c70d
cmp byte [rcx], 0xd
jne 0x14003c6f3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14003c702
cmp byte [rcx + 1], 0xa
jne 0x14003c702
inc rcx
jmp 0x14003c702
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x7c3d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14003c6d5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14003c71f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140035d60
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140047d8c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140047dc3
call fcn.140041b88
mov dword [rax], socket
call fcn.140047b30
xor eax, eax
jmp 0x140047e51
mov rdx, r9
mov rcx, r8
call fcn.140047d28
mov rbx, rax
test rax, rax
je 0x140047e4e
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140047c54]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140047e3b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140041afc
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140047e22
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140047e31
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14004e27c
jmp 0x140047e4e
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140047e4b
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14004a170
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140049f6c

Function at 0x14004d34c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14007eb70]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14004d3a3
cmp word [rdx], r13w
jne 0x14004d3a3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14004d3a8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14004d4cd
mov r11d, recv
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14004d4ee
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14004d3e1
mov rdx, r9
mov word [rbx], cx
jmp 0x14004d408
cmp r9, r8
jae 0x14004d418
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14004d3c2
jmp 0x14004d4cd
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14004d4c2
cmp dword [rsp + 0x80], esi
je 0x14004d4c2
lea r8, [0x14007eb70]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14004d49a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14004d46a
mov word [rbx], r13w
jmp 0x14004d4ca
mov ecx, recv
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14004d477
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14004d4ca
cmp word [rsp + 0x70], r13w
jne 0x14004d4a7
cmp rbx, r14
je 0x14004d464
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14004cbd0
cmp word [rsp + 0x70], r13w
je 0x14004d4cd
mov ecx, recv
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14007eb70]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14004d4c7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14004d4cd
Function at 0x14004f52c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14004f542
mov al, 1
jmp 0x14004f5a2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14004f553
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14004f5a0
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400559ec
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14004f5a0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14004f5a0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14004f5a0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14004f5a2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140055398
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400553c8
xor eax, eax
jmp 0x14005548b
mov rbp, rbx
cmp word [rax], si
je 0x1400553ed
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400553d4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400553d0
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140053bd4
movsxd r14, eax
test eax, eax
jne 0x14005542b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400553c1
mov rcx, r14
call fcn.14004f894
mov rdi, rax
test rax, rax
jne 0x140055444
xor ecx, ecx
call fcn.14004e27c
jmp 0x140055420
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140053bd4
test eax, eax
jne 0x140055475
mov rcx, rdi
call fcn.14004e27c
jmp 0x14005547f
xor ecx, ecx
call fcn.14004e27c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140057e48
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14004cfec
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140057ee9
cmp ebx, dword [rsp + 0x30]
je 0x140057ee2
test esi, esi
je 0x140057ee2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140057ebd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140057eca
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140057ea7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140057ece
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140057eeb
mov eax, 1
jmp 0x140057eeb
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x13f1b1050
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x88
xor eax, eax
mov r14, r8
mov rbx, rdx
mov qword [rsp + 0x50], rax
mov rdi, rcx
mov qword [rsp + 0x58], rax
lea rdx, str.1.2.13
mov qword [rsp + 0x60], rax
lea r8d, [rax + 0x58]
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov rsi, r9
mov ebp, eax
call fcn.13f1bb500
mov r15d, eax
test eax, eax
je 0x13f1b10d3
lea rdx, [rbx + 0x12]
mov r8d, eax
lea rcx, str.Failed_to_extract__s:_inflateInit___failed_with_return_code__d__n
call fcn.13f1b2ad0
lea eax, [rbp - 1]
add rsp, 0x88
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, 0x2000
mov qword [rsp + 0x80], r13
call fcn.13f1c4fa0
mov r13, rax
test rax, rax
jne 0x13f1b1109
lea r8, [rbx + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_input_buffer__n
lea rcx, str.malloc
call fcn.13f1b2830
jmp 0x13f1b126c
mov ecx, 0x2000
call fcn.13f1c4fa0
mov rbp, rax
test rax, rax
jne 0x13f1b1137
lea r8, [rbx + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_output_buffer__n
lea rcx, str.malloc
call fcn.13f1b2830
jmp 0x13f1b126c
mov qword [rsp + 0xd0], r12
mov r12d, dword [rbx + 8]
nop dword [rax]
nop word [rax + rax]
mov eax, 0x2000
mov rbx, r12
cmp r12, rax
mov r9, rdi
mov edx, 1
mov rcx, r13
cmova rbx, rax
mov r8, rbx
call fcn.13f1c04ec
cmp rax, rbx
jne 0x13f1b125e
mov rcx, rdi
call fcn.13f1c0260
test eax, eax
jne 0x13f1b125e
sub r12, rbx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r13
nop word [rax + rax]
mov ebx, 0x2000
mov qword [rsp + 0x30], rbp
xor edx, edx
mov dword [rsp + 0x38], ebx
lea rcx, [rsp + 0x20]
call fcn.13f1b9950
mov edi, eax
mov r15d, 0xffffffff
lea ecx, [rax + 4]
cmp ecx, 2
jbe 0x13f1b1241
cmp eax, 2
je 0x13f1b123c
mov ecx, dword [rsp + 0x38]
sub rbx, rcx
test r14, r14
je 0x13f1b1203
mov r9, r14
lea edx, [r15 + 2]
mov r8, rbx
mov rcx, rbp
call fcn.13f1c0c2c
cmp rax, rbx
jne 0x13f1b11fe
mov rcx, r14
call fcn.13f1c0260
test eax, eax
je 0x13f1b1219
mov edi, r15d
jmp 0x13f1b1241
test rsi, rsi
je 0x13f1b1219
mov r8, rbx
mov rdx, rbp
mov rcx, rsi
call fcn.13f1bca50
add rsi, rbx
cmp dword [rsp + 0x38], 0
je 0x13f1b11a0
cmp edi, 1
je 0x13f1b1237
test r12, r12
je 0x13f1b1241
mov rdi, qword [rsp + 0xc0]
jmp 0x13f1b1150
xor r15d, r15d
jmp 0x13f1b1264
mov edi, 0xfffffffd
mov rdx, qword [rsp + 0xc8]
lea rcx, str.Failed_to_extract__s:_decompression_resulted_in_return_code__d__n
add rdx, 0x12
mov r8d, edi
call fcn.13f1b2ad0
jmp 0x13f1b1264
mov r15d, 0xffffffff
mov r12, qword [rsp + 0xd0]
lea rcx, [rsp + 0x20]
call fcn.13f1bb1e0
mov rcx, r13
call fcn.13f1c4f8c
mov rcx, rbp
call fcn.13f1c4f8c
mov r13, qword [rsp + 0x80]
mov eax, r15d
add rsp, 0x88
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret