joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001e60
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rax, qword [0x140081048]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rsi, rdx
mov rdi, rcx
lea rax, str._Info__AgentLib__Starting_UDP_Socket_server_:.
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x41], 0x34
cmp qword [rcx + 0x18], 8
jb 0x140001ead
mov rcx, qword [rcx]
mov rax, qword [rdi + 0x10]
mov qword [rbp - 1], rcx
mov qword [rbp + 7], rax
movabs rax, 0xc000000000000000
mov qword [rbp - 0x11], rax
movzx eax, word [rdx]
mov dword [rbp + 0xf], eax
movabs rax, 0x2000000000000010
mov qword [rbp - 9], rax
mov qword [rbp - 0x59], 2
lea rax, [rbp - 0x11]
mov qword [rbp - 0x51], rax
movaps xmm0, xmmword [rbp - 0x59]
movdqa xmmword [rbp - 0x59], xmm0
movaps xmm1, xmmword [rbp - 0x49]
movdqa xmmword [rbp - 0x49], xmm1
lea r8, [rbp - 0x59]
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x39]
call fcn.140002ad0
nop
lea rdx, [rbp - 0x39]
cmp qword [rbp - 0x21], 8
cmovae rdx, qword [rbp - 0x39]
mov r8, qword [rbp - 0x29]
call fcn.140010c40
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140010910
movzx edx, ax
mov rcx, rbx
call fcn.140010760
mov rcx, rbx
call fcn.140010600
lea rcx, [rbp - 0x39]
cmp qword [rbp - 0x21], 8
cmovae rcx, qword [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
mov rdx, qword [rbp - 0x21]
cmp rdx, 8
jb 0x140001fa2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001f9d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000204c
call fcn.140025820
movzx r8d, word [rsi]
mov rdx, rdi
lea rcx, [rbp + 0x17]
call fcn.14001c890
nop
lea rdx, [0x1400131d0]
lea rcx, [rbp + 0x17]
call fcn.14001cab0
nop
lea rax, vtable.UdpSocket::Server.0
mov qword [rbp + 0x17], rax
mov rcx, qword [rbp + 0x47]
cmp rcx, 0xffffffffffffffff
je 0x140001fdf
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rdx, qword [rbp + 0x37]
cmp rdx, 8
jb 0x140002021
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000201c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002046
call fcn.140025820
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140025800
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.14002c134
int3
call fcn.14002c134
int3
Function at 0x140010590
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x18], 8
mov rdi, rcx
mov rdx, rcx
jb 0x1400105aa
mov rdx, qword [rcx]
mov r8, qword [rcx + 0x10]
call fcn.140010c40
mov dl, 0xa
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call fcn.140010910
movzx edx, ax
mov rcx, rbx
call fcn.140010760
mov rcx, rbx
call fcn.140010600
cmp qword [rdi + 0x18], 8
jb 0x1400105e4
mov rdi, qword [rdi]
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
Function at 0x140012b60
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rbx, rcx
add rcx, 0x28
cmp qword [rcx + 0x18], 8
jb 0x140012b7b
mov rcx, qword [rcx]
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 0x68], rax
cmp rax, 0xffffffffffffffff
jne 0x140012c7b
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rdi
lea r8d, [rdi + 0x44]
lea rdx, str._Error__Mailslot::Client::Connect____Client_failed_to_open_mailslot.
lea rcx, [rsp + 0x40]
call fcn.140001990
nop
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
call fcn.140010c40
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140010910
movzx edx, ax
mov rcx, rbx
call fcn.140010760
mov rcx, rbx
call fcn.140010600
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140012c6e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012c69
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012c88
call fcn.140025820
xor al, al
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov al, 1
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
call fcn.14002c134
int3
Function at 0x14001c890
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x210
mov rax, qword [0x140081048]
xor rax, rsp
mov qword [rsp + 0x200], rax
movzx edi, r8w
mov rsi, rcx
mov qword [rsp + 0x20], rcx
lea rax, vtable.UdpSocket::Server.0
mov qword [rcx], rax
add rcx, 8
call fcn.1400025c0
nop
mov word [rsi + 0x28], di
mov qword [rsi + 0x30], 0xffffffffffffffff
lea rdx, [rsi + 8]
lea rcx, [rsp + 0x28]
call fcn.140010370
mov ecx, 0x202
lea rdx, [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14001c977
xor r8d, r8d
mov ebx, 2
mov edx, ebx
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsi + 0x30], rax
cmp rax, 0xffffffffffffffff
je 0x14001c977
mov word [rsp + 0x48], bx
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x4c], eax
movzx ecx, word [rsi + 0x28]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x4a], ax
lea r8d, [rbx + 0xe]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsi + 0x30]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x14001c9d9
mov rcx, qword [rsi + 0x30]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rsi + 0x30], 0xffffffffffffffff
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x14001c9b1
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c9ab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001ca0d
call fcn.140025820
nop
mov rax, rsi
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.140025800
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x14001c9b1
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c9ab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001c9ab
call fcn.14002c134
int3
Function at 0x14001d2c0
Capabilities:
Create udp socket
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1d0
mov rax, qword [0x140081048]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14001d310
mov edx, 2
lea r8d, [rax + 0x11]
mov ecx, edx
call qword [sym.imp.WS2_32.dll_socket]
cmp rax, 0xffffffffffffffff
mov qword [rbx + 0x30], rax
setne al
jmp 0x14001d312
xor al, al
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140025800
add rsp, 0x1d0
pop rbx
ret
Function at 0x14001d980
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rdi + 0x28]
mov r8, rsi
lea rdx, [rsp + 0x20]
call fcn.14001e200
mov r8, qword [rdi + 0x30]
cmp qword [rax], r8
jne 0x14001d9c0
xor bl, bl
jmp 0x14001dac6
movzx edx, byte [rsi]
movabs rcx, 0x100000001b3
movabs rax, 0xcbf29ce484222325
xor rdx, rax
movzx eax, byte [rsi + 1]
imul rdx, rcx
xor rdx, rax
movzx eax, byte [rsi + 2]
imul rdx, rcx
xor rdx, rax
movzx eax, byte [rsi + 3]
imul rdx, rcx
xor rdx, rax
movzx eax, byte [rsi + 4]
imul rdx, rcx
xor rdx, rax
movzx eax, byte [rsi + 5]
imul rdx, rcx
xor rdx, rax
movzx eax, byte [rsi + 6]
imul rdx, rcx
xor rdx, rax
movzx eax, byte [rsi + 7]
imul rdx, rcx
xor rdx, rax
imul rdx, rcx
mov rcx, qword [rdi + 0x58]
and rcx, rdx
mov rdx, qword [rdi + 0x40]
shl rcx, 4
add rdx, rcx
mov r9, qword [rdx + 8]
mov rbx, r9
cmp r9, r8
je 0x14001da66
mov rax, qword [rsi]
mov rcx, qword [rdx]
cmp rax, qword [r9 + 0x10]
je 0x14001da68
cmp rbx, rcx
je 0x14001da66
mov rbx, qword [rbx + 8]
cmp rax, qword [rbx + 0x10]
jne 0x14001da55
jmp 0x14001da68
xor ebx, ebx
test rbx, rbx
je 0x14001dac4
mov rax, qword [rdx]
cmp r9, rbx
jne 0x14001da8d
cmp rax, rbx
jne 0x14001da83
mov qword [rdx], r8
mov qword [rdx + 8], r8
jmp 0x14001da98
mov r8, qword [rbx + 8]
mov qword [rdx + 8], r8
jmp 0x14001da98
cmp rax, rbx
jne 0x14001da98
mov rax, qword [rbx]
mov qword [rdx], rax
mov rdx, qword [rbx]
lea rcx, [rbx + 0x18]
dec qword [rdi + 0x38]
mov rax, qword [rbx + 8]
mov qword [rax], rdx
mov rax, qword [rbx + 8]
mov qword [rdx + 8], rax
call fcn.140018d70
mov edx, 0x58
mov rcx, rbx
call fcn.140025820
mov bl, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rsi, qword [rsp + 0x58]
movzx eax, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14001e200
Capabilities:
Hash data using fnv

Disassembly:
movzx r9d, byte [r8]
mov r10, rcx
movabs rcx, 0x100000001b3
movabs rax, 0xcbf29ce484222325
xor r9, rax
mov r11, rdx
movzx eax, byte [r8 + 1]
mov rdx, qword [r10 + 0x30]
imul r9, rcx
xor r9, rax
movzx eax, byte [r8 + 2]
imul r9, rcx
xor r9, rax
movzx eax, byte [r8 + 3]
imul r9, rcx
xor r9, rax
movzx eax, byte [r8 + 4]
imul r9, rcx
xor r9, rax
movzx eax, byte [r8 + 5]
imul r9, rcx
xor r9, rax
movzx eax, byte [r8 + 6]
imul r9, rcx
xor r9, rax
movzx eax, byte [r8 + 7]
imul r9, rcx
xor r9, rax
imul r9, rcx
and rdx, r9
mov r9, qword [r10 + 8]
shl rdx, 4
add rdx, qword [r10 + 0x18]
mov rax, qword [rdx + 8]
cmp rax, r9
je 0x14001e2be
mov rcx, qword [r8]
mov rdx, qword [rdx]
cmp rcx, qword [rax + 0x10]
je 0x14001e2c0
cmp rax, rdx
je 0x14001e2be
mov rax, qword [rax + 8]
cmp rcx, qword [rax + 0x10]
jne 0x14001e2a1
test rax, rax
cmove rax, r9
mov qword [r11], rax
mov rax, r11
ret
xor eax, eax
test rax, rax
cmove rax, r9
mov qword [r11], rax
mov rax, r11
ret
Function at 0x14001eb70
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x14001ed4b
lea rax, [rdx - 1]
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x20], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.140002990
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x14001ed14
mov qword [rsp + 0x58], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rcx, qword [rcx]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x12]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x13]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x14]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x15]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x16]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x17]
imul r9, rdi
xor r9, rdx
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x14001ec8c
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x14001ed03
mov rdx, qword [r11 + 8]
mov r8, qword [rax + 0x10]
cmp r8, qword [rdx + 0x10]
jne 0x14001ecc9
mov r10, qword [rdx]
cmp r10, rax
je 0x14001ecc3
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x14001ed03
cmp r9, rdx
je 0x14001ecdf
nop
mov rdx, qword [rdx + 8]
cmp r8, qword [rdx + 0x10]
je 0x14001ed25
cmp r9, rdx
jne 0x14001ecd0
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x14001ec10
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x14001ed03
lea rcx, str.invalid_hash_bucket_count
call fcn.140022e10
int3
Function at 0x14001f050
Capabilities:
Get user security identifier

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x140081048]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rcx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x44]
xor ecx, ecx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rcx
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x44], ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
cmp eax, 1
jne 0x14001f0c1
mov ecx, 0x534
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140025800
add rsp, 0x60
pop rsi
ret
mov qword [rsp + 0x78], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14001f184
mov edx, dword [rsp + 0x44]
lea ecx, [rax - 0x3a]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x14001f184
mov edx, dword [rsp + 0x40]
mov ecx, 0x40
mov qword [rsp + 0x80], rdi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
jne 0x14001f138
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov rdi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140025800
add rsp, 0x60
pop rsi
ret
lea rax, [rsp + 0x48]
mov r8, rbx
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x44]
lea rax, [rsp + 0x40]
mov rdx, rsi
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x14001f176
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
jmp 0x14001f110
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, rbx
jmp 0x14001f118
xor eax, eax
jmp 0x14001f120
Function at 0x140026648
Capabilities:
Parse pe header

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

Function at 0x140034ca0
Capabilities:
Parse pe header

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

Function at 0x14003b828
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14003b83e
mov al, 1
jmp 0x14003b89e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14003b84f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14003b89c
mov ecx, dword [rcx + 0x18]
nop
call fcn.14003fe6c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003b89c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14003b89c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14003b89c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14003b89e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14003cd38
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.1400260f0
sub rsp, rax
mov rax, qword [0x140081048]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14003a3d0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14003cd87
mov rax, rbp
jmp 0x14003ce8f
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 + 0x83780]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14003d220
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x83780]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14003ce8b
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 0x14003ce8b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14003d220
test rax, rax
js 0x14003ce8b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14003ce8b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14003ce7d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14003ce7d
cmp byte [rcx], 0xd
jne 0x14003ce63
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14003ce72
cmp byte [rcx + 1], 0xa
jne 0x14003ce72
inc rcx
jmp 0x14003ce72
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x81b10]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14003ce45
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14003ce8f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140025800
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 0x14003f604
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 0x14003f634
xor eax, eax
jmp 0x14003f6f7
mov rbp, rbx
cmp word [rax], si
je 0x14003f659
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14003f640
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14003f63c
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.14003dc04
movsxd r14, eax
test eax, eax
jne 0x14003f697
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14003f62d
mov rcx, r14
call fcn.140038254
mov rdi, rax
test rax, rax
jne 0x14003f6b0
xor ecx, ecx
call fcn.140037c44
jmp 0x14003f68c
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.14003dc04
test eax, eax
jne 0x14003f6e1
mov rcx, rdi
call fcn.140037c44
jmp 0x14003f6eb
xor ecx, ecx
call fcn.140037c44
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 0x1400423c0
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.1400378e4
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 0x140042461
cmp ebx, dword [rsp + 0x30]
je 0x14004245a
test esi, esi
je 0x14004245a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140042435
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140042442
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14004241f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140042446
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140042463
mov eax, 1
jmp 0x140042463
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140044730
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, [0x140083780]
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 0x140044787
cmp word [rdx], r13w
jne 0x140044787
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14004478c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400448b1
mov r11d, recvfrom
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400448d2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400447c5
mov rdx, r9
mov word [rbx], cx
jmp 0x1400447ec
cmp r9, r8
jae 0x1400447fc
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 0x1400447a6
jmp 0x1400448b1
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 0x1400448a6
cmp dword [rsp + 0x80], esi
je 0x1400448a6
lea r8, [0x140083780]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14004487e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14004484e
mov word [rbx], r13w
jmp 0x1400448ae
mov ecx, recvfrom
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 0x14004485b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400448ae
cmp word [rsp + 0x70], r13w
jne 0x14004488b
cmp rbx, r14
je 0x140044848
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14003d228
cmp word [rsp + 0x70], r13w
je 0x1400448b1
mov ecx, recvfrom
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, [0x140083780]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400448ab
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400448b1