joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003a4e0
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, qword [rcx]
mov r11, rcx
movsxd r10, edx
mov r9, qword [rax + 0x1e0]
mov r8d, dword [r9 + r10*4 + 8]
sub r8d, 1
je 0x14003a564
sub r8d, 1
je 0x14003a53b
cmp r8d, 1
jne 0x14003a578
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x14003a55c
cmp ecx, r8d
jne 0x14003a578
xor eax, eax
mov dword [r9 + r10*4 + 8], 2
mov r8d, edx
mov dword [r9 + r10*4 + 0x408], eax
mov edx, 0xfb
mov rcx, r11
jmp fcn.14003a700
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x14003a55c
cmp ecx, 1
jne 0x14003a578
xor eax, eax
mov dword [r9 + r10*4 + 8], eax
mov dword [r9 + r10*4 + 0x408], eax
ret
xor eax, eax
mov dword [r9 + r10*4 + 8], eax
ret
xor eax, eax
mov r8d, edx
mov edx, 0xfc
mov dword [r9 + r10*4 + 8], eax
jmp fcn.14003a700
ret

Function at 0x14003a580
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, qword [rcx]
mov r11, rcx
movsxd r10, edx
mov r9, qword [rax + 0x1e0]
mov r8d, dword [r9 + r10*4 + 0xc08]
test r8d, r8d
je 0x14003a627
sub r8d, 2
je 0x14003a5e0
cmp r8d, 1
jne 0x14003a619
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x14003a5d3
cmp ecx, r8d
jne 0x14003a619
mov dword [r9 + r10*4 + 0xc08], r8d
mov dword [r9 + r10*4 + 0x1008], 0
ret
mov dword [r9 + r10*4 + 0xc08], 0
ret
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x14003a61a
cmp ecx, 1
jne 0x14003a619
mov dword [r9 + r10*4 + 0xc08], 3
mov rcx, r11
mov dword [r9 + r10*4 + 0x1008], 0
mov r8d, edx
mov edx, 0xfe
jmp fcn.14003a700
ret
mov dword [r9 + r10*4 + 0xc08], 1
ret
cmp dword [r9 + r10*4 + 0x1408], 1
jne 0x14003a60c
mov r8d, edx
mov dword [r9 + r10*4 + 0xc08], 1
mov edx, 0xfd
jmp fcn.14003a700

Function at 0x14003a650
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, qword [rcx]
mov r11, rcx
movsxd r10, edx
mov r9, qword [rax + 0x1e0]
mov r8d, dword [r9 + r10*4 + 0xc08]
sub r8d, 1
je 0x14003a6e0
sub r8d, 1
je 0x14003a6b1
cmp r8d, 1
jne 0x14003a6f7
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x14003a6d5
cmp ecx, r8d
jne 0x14003a6f7
xor eax, eax
mov dword [r9 + r10*4 + 0xc08], 2
mov r8d, edx
mov dword [r9 + r10*4 + 0x1008], eax
mov edx, 0xfd
mov rcx, r11
jmp fcn.14003a700
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x14003a6d5
cmp ecx, 1
jne 0x14003a6f7
xor eax, eax
mov dword [r9 + r10*4 + 0xc08], eax
mov dword [r9 + r10*4 + 0x1008], eax
ret
xor eax, eax
mov dword [r9 + r10*4 + 0xc08], eax
ret
xor eax, eax
mov r8d, edx
mov edx, 0xfe
mov dword [r9 + r10*4 + 0xc08], eax
jmp fcn.14003a700
ret
Function at 0x14003a700
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x258]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14003a75f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400181d0
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.140039ee0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14003aaf0
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, qword [rcx]
movsxd r11, edx
mov r10, qword [rax + 0x1e0]
mov r9d, dword [r10 + r11*4 + 8]
cmp r8d, 1
jne 0x14003ab46
test r9d, r9d
je 0x14003ab30
sub r9d, 2
je 0x14003ab58
cmp r9d, r8d
jne 0x14003ab86
cmp dword [r10 + r11*4 + 0x408], 0
jne 0x14003ab86
mov dword [r10 + r11*4 + 0x408], 1
ret
mov r8d, edx
mov dword [r10 + r11*4 + 8], 2
mov edx, 0xfb
jmp fcn.14003a700
sub r9d, 1
je 0x14003ab70
sub r9d, 1
je 0x14003ab18
cmp r9d, 1
jne 0x14003ab86
cmp dword [r10 + r11*4 + 0x408], 1
jne 0x14003ab86
mov dword [r10 + r11*4 + 0x408], 0
ret
mov r8d, edx
mov dword [r10 + r11*4 + 8], 3
mov edx, 0xfc
jmp fcn.14003a700
ret

Function at 0x14003ab90
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, qword [rcx]
movsxd r11, edx
mov r10, qword [rax + 0x1e0]
mov r9d, dword [r10 + r11*4 + 0xc08]
cmp r8d, 1
jne 0x14003abec
test r9d, r9d
je 0x14003abd3
sub r9d, 2
je 0x14003abfe
cmp r9d, r8d
jne 0x14003ac2f
cmp dword [r10 + r11*4 + 0x1008], 0
jne 0x14003ac2f
mov dword [r10 + r11*4 + 0x1008], 1
ret
mov r8d, edx
mov dword [r10 + r11*4 + 0xc08], 2
mov edx, 0xfd
jmp fcn.14003a700
sub r9d, 1
je 0x14003ac16
sub r9d, 1
je 0x14003abbb
cmp r9d, 1
jne 0x14003ac2f
cmp dword [r10 + r11*4 + 0x1008], 1
jne 0x14003ac2f
mov dword [r10 + r11*4 + 0x1008], 0
ret
mov r8d, edx
mov dword [r10 + r11*4 + 0xc08], 3
mov edx, 0xfe
jmp fcn.14003a700
ret
Function at 0x14003be20
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0xd0
mov rax, qword [0x1400a2180]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rdi, qword [rcx + 0x798]
lea rax, [rsp + 0x30]
mov rsi, qword [rcx]
mov r15, rcx
mov dword [rsp + 0x30], Ordinal_133
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rdi + 0x15c]
lea r14, [rdi + 0x168]
mov rdx, qword [r14]
add r8d, 4
mov rcx, qword [rdi + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rdi + 0x150], 0
mov dword [rdi + 0x154], eax
jne 0x14003bebd
movsxd r8, dword [rsp + 0x30]
lea rcx, [rdi + 0xd0]
lea rdx, [rsp + 0x40]
call fcn.14007c950
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x150], eax
mov r9d, dword [rdi + 0x154]
mov qword [rsp + 0xf8], rbx
mov qword [rsp + 0x100], rbp
cmp r9d, 4
jge 0x14003bf27
lea rdx, str.Received_too_short_packet
mov rcx, rsi
call fcn.1400181d0
mov dword [rdi + 0xc], 7
xor eax, eax
mov rbp, qword [rsp + 0x100]
mov rbx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14004eb80
mov rsi, qword [rsp + 0x108]
add rsp, 0xd0
pop r15
pop r14
pop rdi
ret
mov rcx, r14
call fcn.14003b940
movzx r8d, ax
mov dword [rdi + 0xc], r8d
sub r8d, 3
je 0x14003bfd9
sub r8d, 1
je 0x14003c048
sub r8d, 1
je 0x14003bf92
cmp r8d, 1
je 0x14003bf72
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rsi
lea rdx, [0x140085fb0]
call fcn.1400181d0
jmp 0x14003c048
mov rdx, qword [r14]
lea r8d, [r9 - 2]
add rdx, 2
mov rcx, rdi
call fcn.14003bb60
test eax, eax
je 0x14003c048
jmp 0x14003bef2
mov rbp, qword [r14]
lea eax, [r9 - 4]
mov rcx, r14
movsxd rbx, eax
call fcn.14003b920
movzx r9d, ax
lea rcx, [rbp + 4]
mov rdx, rbx
mov dword [rdi + 8], r9d
call fcn.14003b8e0
cmp rax, rbx
jae 0x14003c048
lfence
lea r8, [rbp + 4]
mov rcx, rsi
lea rdx, str.TFTP_error:__s_n
call fcn.1400182e0
jmp 0x14003c048
cmp r9d, 4
jle 0x14003c048
mov rcx, r14
call fcn.14003b920
movzx ecx, word [rdi + 0x48]
inc ecx
cmp cx, ax
jne 0x14003c048
mov r8, qword [r14]
lea eax, [r9 - 4]
movsxd r9, eax
add r8, 4
mov edx, 1
mov rcx, r15
call fcn.1400180f0
mov ebx, eax
test eax, eax
je 0x14003c027
mov edx, 5
mov rcx, rdi
call fcn.14003c960
mov eax, ebx
jmp 0x14003bef2
mov eax, dword [rdi + 0x154]
mov rcx, rsi
sub eax, 4
cdqe
add qword [rsi + 0xf8], rax
mov rdx, qword [rsi + 0xf8]
call fcn.140024750
mov rcx, r15
call fcn.1400249a0
test eax, eax
je 0x14003bef0
mov edx, 5
mov rcx, rdi
call fcn.14003c960
mov eax, Ordinal_46
jmp 0x14003bef2
Function at 0x14004bbc0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1400a2180]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rsi, r8
mov dword [rsp + 0x40], 8
mov rbx, rdx
mov dword [rsp + 0x20], 0xf0000000
mov rdi, rcx
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14004bc8c
mov qword [rsp + 0xa0], rbp
lea rdx, [rsp + 0x64]
xor ebp, ebp
mov dword [rsp + 0x58], 0x208
mov rcx, rsi
mov qword [rsp + 0x64], rbp
mov dword [rsp + 0x5c], 0x6601
mov dword [rsp + 0x60], 8
call fcn.14004bd00
lea rcx, [rsp + 0x64]
lea edx, [rbp + 8]
call fcn.14004e880
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r8d, [rbp + 0x14]
xor r9d, r9d
mov dword [rsp + 0x20], ebp
lea rdx, [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov rbp, qword [rsp + 0xa0]
test eax, eax
jne 0x14004bc90
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
jmp 0x14004bcda
mov rax, qword [rdi]
xor r9d, r9d
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
mov qword [rbx], rax
xor edx, edx
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14004eb80
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret

Function at 0x14004e960
Capabilities:
Create new key via cryptacquirecontext
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor eax, eax
mov dword [rsp + 0x20], 0xf0000000
lea rdi, [rcx + 8]
mov qword [rcx], rax
xor r8d, r8d
mov qword [rdi], rax
xor edx, edx
mov rbx, rcx
lea r9d, [rax + 1]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14004e9ad
mov rcx, qword [rbx]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov edx, 0x8002
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14004ea30
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [fcn.14005a818]
mov rdi, rax
test rax, rax
jne 0x14004ea72
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x14004eac0
lfence
mov rcx, qword [rdi + 8]
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x14004eb14
mov rsi, rbp
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x14004ead2
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14004eb53
nop dword [rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14008dbda]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14008dbdb]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14004eb20
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x14004f920
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004f96a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004f96a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004f96a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004f96a
cmp dword [rcx + 0x84], 0xe
jbe 0x14004f96a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14004f96c
xor al, al
add rsp, 0x28
ret
Function at 0x1400627b4
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x1400a2180]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x140090360]
mov rbp, rcx
call fcn.140064640
xor edi, edi
test rax, rax
je 0x14006289a
mov ebx, edi
call fcn.14005b688
mov r14d, dword [rax]
call fcn.14005b688
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.140072430
mov rsi, rax
test rax, rax
je 0x14006282b
call fcn.14005b688
mov dword [rax], r14d
jmp 0x140062855
call fcn.14005b688
cmp dword [rax], 0x22
jne 0x140062892
call fcn.14005b688
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.140072430
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x140062892
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140062859
cmp rax, 3
je 0x140062874
mov rcx, rsi
call fcn.140062710
test al, al
je 0x140062885
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140062885
mov dil, 1
mov rcx, rbx
call fcn.140056bb4
mov al, dil
jmp 0x14006289c
mov rcx, rbx
call fcn.140056bb4
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14004eb80
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140062e58
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.14004f1d0
sub rsp, rax
mov rax, qword [0x1400a2180]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14006b5cc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140062ea7
mov rax, rbp
jmp 0x140062faf
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 + 0xa46f0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140065340
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xa46f0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140062fab
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 0x140062fab
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140065340
test rax, rax
js 0x140062fab
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140062fab
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140062f9d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140062f9d
cmp byte [rcx], 0xd
jne 0x140062f83
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140062f92
cmp byte [rcx + 1], 0xa
jne 0x140062f92
inc rcx
jmp 0x140062f92
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xa23e0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140062f65
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140062faf
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14004eb80
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 0x140064ba8
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 0x140064bdf
call fcn.14005b688
mov dword [rax], Ordinal_27
call fcn.1400577c8
xor eax, eax
jmp 0x140064c6d
mov rdx, r9
mov rcx, r8
call fcn.140064b44
mov rbx, rax
test rax, rax
je 0x140064c6a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140064a70]
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 0x140064c57
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14005b5fc
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140064c3e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140064c4d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14006c2a0
jmp 0x140064c6a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140064c67
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 0x140066d98
Capabilities:
Parse pe header

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

Function at 0x140068f4c
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, [0x1400a46f0]
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 0x140068fa3
cmp word [rdx], r13w
jne 0x140068fa3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140068fa8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400690cd
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400690ee
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140068fe1
mov rdx, r9
mov word [rbx], cx
jmp 0x140069008
cmp r9, r8
jae 0x140069018
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 0x140068fc2
jmp 0x1400690cd
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 0x1400690c2
cmp dword [rsp + 0x80], esi
je 0x1400690c2
lea r8, [0x1400a46f0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14006909a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14006906a
mov word [rbx], r13w
jmp 0x1400690ca
mov ecx, reloc.WS2_32.dll_listen
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 0x140069077
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400690ca
cmp word [rsp + 0x70], r13w
jne 0x1400690a7
cmp rbx, r14
je 0x140069064
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140065348
cmp word [rsp + 0x70], r13w
je 0x1400690cd
mov ecx, reloc.WS2_32.dll_listen
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, [0x1400a46f0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400690c7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400690cd
Function at 0x14006b6ec
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14006b702
mov al, 1
jmp 0x14006b762
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14006b713
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14006b760
mov ecx, dword [rcx + 0x18]
nop
call fcn.140072990
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14006b760
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14006b760
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14006b760
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14006b762
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140074738
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 0x140074768
xor eax, eax
jmp 0x14007482b
mov rbp, rbx
cmp word [rax], si
je 0x14007478d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140074774
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140074770
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.140071184
movsxd r14, eax
test eax, eax
jne 0x1400747cb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140074761
mov rcx, r14
call fcn.14006d764
mov rdi, rax
test rax, rax
jne 0x1400747e4
xor ecx, ecx
call fcn.14006c2a0
jmp 0x1400747c0
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.140071184
test eax, eax
jne 0x140074815
mov rcx, rdi
call fcn.14006c2a0
jmp 0x14007481f
xor ecx, ecx
call fcn.14006c2a0
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 0x140074848
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400748cf
mov rsi, rbx
cmp word [rax], bp
je 0x14007488e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140074878
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140074874
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14006d764
mov rdi, rax
test rax, rax
je 0x1400748bc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14007c950
mov rbp, rdi
xor ecx, ecx
call fcn.14006c2a0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140077664
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.14006bbac
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 0x140077705
cmp ebx, dword [rsp + 0x30]
je 0x1400776fe
test esi, esi
je 0x1400776fe
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400776d9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400776e6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400776c3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400776ea
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140077707
mov eax, 1
jmp 0x140077707
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret