joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140071740
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0xe0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x74], xmm0
mov dword [r11 - 0x14], eax
movzx ebx, dl
mov qword [rsp + 0x60], rax
mov rdi, rcx
lea rax, [rsp + 0x50]
mov rdx, rcx
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [r11 - 0x78]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
movups xmmword [r11 - 0x64], xmm0
mov dword [rsp + 0x28], 0x8000000
movups xmmword [r11 - 0x54], xmm0
mov dword [rsp + 0x20], eax
movups xmmword [r11 - 0x44], xmm0
movups xmmword [r11 - 0x34], xmm0
movups xmmword [r11 - 0x24], xmm0
mov dword [rsp + 0x70], WSAGetLastError
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x140071818
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1400726a0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, rdi
lea rdx, str.IS_Utils::RunAndWait:_CreateProcess__s_Failed___d
mov r9d, eax
mov rcx, rbx
call fcn.140072400
mov rbx, qword [rsp + 0xf0]
add rsp, 0xe0
pop rdi
ret
test bl, bl
je 0x14007182c
mov rcx, qword [rsp + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0xf0]
add rsp, 0xe0
pop rdi
ret
Function at 0x1400726b0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xff0]
mov eax, 0x10f0
call fcn.1401456d0
sub rsp, rax
mov rax, qword [0x1401c5538]
xor rax, rsp
mov qword [rbp + 0xfe0], rax
mov r12, r9
mov r15, r8
movsxd rdi, edx
mov r14, rcx
cmp edi, dword [rcx + 4]
jl 0x140072908
lea rbx, [rcx + 0x10]
mov qword [rsp + 0x30], rbx
mov rcx, rbx
call fcn.1401433ec
test eax, eax
jne 0x14007292f
mov eax, dword [rbx + 0x4c]
cmp eax, 0x7fffffff
je 0x14007293a
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp - 0x20]
call fcn.140147800
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x7e0]
call fcn.140147800
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
mov rax, rdi
lea rdi, str._trace_
mov rdi, qword [rdi + rax*8]
lea rdx, [rsp + 0x38]
mov rcx, r14
call fcn.140072430
cmp qword [rax + 0x18], 0x10
jb 0x14007278c
mov rax, qword [rax]
mov qword [rsp + 0x20], rdi
mov r9, rax
lea r8, str._s__s:
mov edx, 0x80
lea rcx, [rsp + 0x60]
call fcn.140017490
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x1400727e7
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400727e2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140072929
call fcn.1401452fc
lea rcx, [rsp + 0x60]
mov rsi, 0xffffffffffffffff
mov rax, rsi
inc rax
cmp byte [rcx + rax], 0
jne 0x1400727f6
mov edi, 0x7ff
sub rdi, rax
call fcn.140006220
mov rcx, qword [rax]
or rcx, 2
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], 0
mov r9, r15
mov r8, rdi
lea rdx, [rbp + 0x7e0]
call fcn.14014f270
lea rcx, [rbp - 0x20]
dec rcx
nop word [rax + rax]
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x140072840
lea r8, [rsp + 0x60]
xor edx, edx
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140072850
lea rcx, [rbp - 0x20]
dec rcx
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x140072867
lea r8, [rbp + 0x7e0]
xor edx, edx
nop dword [rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140072880
lea rcx, [rbp - 0x20]
dec rcx
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x140072897
movzx eax, word [reloc.WS2_32.dll_ioctlsocket]
mov word [rcx], ax
cmp byte [r14 + 0x60], 0
je 0x1400728e9
lea rax, [rbp - 0x20]
inc rsi
cmp byte [rax + rsi], 0
jne 0x1400728b5
mov dword [rsp + 0x28], setsockopt
lea rax, [0x1401ca0c0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, esi
lea rdx, [rbp - 0x20]
mov rcx, qword [0x1401ca0b8]
call qword [sym.imp.WS2_32.dll_sendto]
lea rdx, [rbp - 0x20]
mov rcx, qword [r14 + 8]
call fcn.1400729b0
mov rcx, qword [r14 + 8]
call fcn.1401501cc
nop
mov rcx, rbx
call fcn.140143410
mov rcx, qword [rbp + 0xfe0]
xor rcx, rsp
call fcn.1401453a0
add rsp, 0x10f0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14014bf64
nop
mov ecx, 5
call fcn.140143150
int3
dec eax
mov dword [rbx + 0x4c], eax
mov ecx, 6
call fcn.140143150
int3
Function at 0x140093850
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rsi, qword [rcx + 0x98]
mov rbx, rcx
mov rax, qword [rcx]
mov rdi, qword [rcx + 0x10]
mov qword [rsp + 0x60], rax
test rsi, rsi
je 0x140093a6f
mov qword [rsp + 0x68], rbp
xor r9d, r9d
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x38], r14
nop dword [rax]
nop word [rax + rax]
movsxd rbp, dword [rsi + 0x10]
lea r12, [rdi + 0x88]
mov r15d, dword [rsi + 0x14]
shl rbp, 5
add rbp, qword [rax + 0x20]
movzx eax, byte [rbx + 0x1f]
test al, al
jne 0x1400938c8
inc dword [rbx + 0x38]
mov r14d, dword [rbx + 0x38]
jmp 0x1400938d8
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov r14d, dword [rbx + rax*4 + 0xd8]
movsxd rcx, dword [rdi + 0x90]
lea r8d, [r15 + 2]
lea edx, [rcx + 7]
cmp dword [rdi + 0x94], ecx
jg 0x140093905
mov r9d, edx
mov dword [rsp + 0x20], r15d
mov edx, 0x37
mov rcx, rdi
call fcn.1400ad9d0
jmp 0x140093930
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r12]
mov dword [rax + rcx*8], 0x37
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], r9
mov r9, qword [rbp + 0x18]
xor edx, edx
mov r8d, dword [rsi + 0x10]
mov rcx, rbx
mov dword [rsp + 0x20], WSACleanup
mov r9, qword [r9 + 0x68]
call fcn.1400ec7c0
mov eax, dword [rdi + 0x90]
add eax, 5
cmp eax, dword [rdi + 0x94]
jle 0x140093974
mov edx, 5
mov rcx, rdi
call fcn.1400ada40
test eax, eax
jne 0x140093a56
movsxd rax, dword [rdi + 0x90]
xor r9d, r9d
lea rcx, [rax + rax*2]
mov rax, qword [r12]
mov dword [rax + rcx*8 + 8], 2
mov byte [rax + rcx*8], 0x33
mov dword [rax + rcx*8 + 4], r9d
lea rdx, [rax + rcx*8]
mov eax, dword [rdi + 0x90]
mov dword [rdx + 0xc], r9d
add eax, 2
mov dword [rdx + 8], eax
mov byte [rdx + 1], r9b
mov qword [rdx + 0x10], r9
mov word [rdx + 2], r9w
mov qword [rdx + 0x18], 0x7f
mov qword [rdx + 0x20], r9
mov qword [rdx + 0x28], r9
mov qword [rdx + 0x30], 0x61
mov qword [rdx + 0x38], 2
mov qword [rdx + 0x40], r9
mov qword [rdx + 0x48], 0x80
mov qword [rdx + 0x50], r9
mov qword [rdx + 0x58], r9
mov qword [rdx + 0x60], 0x7a
mov qword [rdx + 0x68], r9
mov qword [rdx + 0x70], r9
add dword [rdi + 0x90], 5
test rdx, rdx
je 0x140093a56
mov dword [rdx + 0x3c], r14d
lea ecx, [r15 + 1]
mov dword [rdx + 4], ecx
lea eax, [r15 - 1]
mov dword [rdx + 0x20], ecx
mov dword [rdx + 0x54], ecx
mov ecx, 8
mov word [rdx + 0x4a], cx
mov dword [rdx + 0x34], eax
mov dword [rdx + 0x50], r14d
test r14d, r14d
je 0x140093a45
movzx eax, byte [rbx + 0x1f]
cmp al, cl
jae 0x140093a45
mov dword [rbx + rax*4 + 0xd8], r14d
inc byte [rbx + 0x1f]
mov rsi, qword [rsi]
mov rax, qword [rsp + 0x60]
test rsi, rsi
jne 0x1400938a0
mov r14, qword [rsp + 0x38]
mov r12, qword [rsp + 0x70]
mov r13, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x68]
mov r15, qword [rsp + 0x30]
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400a4080
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rdi
push r14
sub rsp, 0x68
movzx eax, byte [rdx]
mov r14, rdx
mov rdi, rcx
cmp al, 0xb0
jne 0x1400a4099
movzx eax, byte [rdx + 2]
cmp al, 0xb1
jne 0x1400a40a3
mov rax, qword [rdx + 0x20]
jmp 0x1400a40b3
cmp al, 0x8a
jne 0x1400a4237
mov rax, qword [rdx + 0x20]
mov rax, qword [rax + 0x20]
movsxd rcx, dword [rax]
cmp ecx, 1
je 0x1400a4237
mov dword [r8], 0
cmp byte [rdx], 0x8a
jne 0x1400a40da
mov rcx, rdi
add rsp, 0x68
pop r14
pop rdi
jmp fcn.1400d1c10
mov eax, dword [rdi + 0x38]
mov qword [rsp + 0x60], r12
mov r12, rcx
mov qword [rsp + 0x58], r13
lea r13d, [rax + 1]
add eax, ecx
mov dword [rsp + 0x88], r13d
mov dword [rdi + 0x38], eax
test ecx, ecx
jle 0x1400a4222
mov qword [rsp + 0x80], rbx
lea rcx, [0x1400fd660]
mov qword [rsp + 0x90], rbp
mov ebp, r13d
mov qword [rsp + 0x50], r15
lea r13, [fcn.1400a4ff0]
xor r15d, r15d
mov qword [rsp + 0x98], rsi
lea edx, [r15 + 2]
nop dword [rax + rax]
cmp byte [rdi + 0x23], 0
mov rax, qword [r14 + 0x20]
mov rbx, qword [rax + r15 + 8]
je 0x1400a4190
mov word [rsp + 0x44], dx
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x48], 0
test rbx, rbx
je 0x1400a4180
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.14012b480
cmp word [rsp + 0x44], 0
je 0x1400a4190
mov r8d, ebp
mov rdx, rbx
mov rcx, rdi
call fcn.1400db5a0
jmp 0x1400a41d0
mov rsi, qword [rdi]
test rbx, rbx
je 0x1400a41ac
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call fcn.1400a4510
mov rbx, rax
cmp byte [rsi + 0x67], 0
jne 0x1400a41c0
mov r8d, ebp
mov rdx, rbx
mov rcx, rdi
call fcn.1400d9b00
test rbx, rbx
je 0x1400a41d0
mov rdx, rbx
mov rcx, rsi
call fcn.1400dd830
inc ebp
lea rcx, [0x1400fd660]
add r15, 0x20
mov edx, 2
sub r12, 1
jne 0x1400a4140
mov eax, dword [rsp + 0x88]
mov r15, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x98]
mov rbp, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x80]
mov r12, qword [rsp + 0x60]
mov r13, qword [rsp + 0x58]
add rsp, 0x68
pop r14
pop rdi
ret
mov r12, qword [rsp + 0x60]
mov eax, r13d
mov r13, qword [rsp + 0x58]
add rsp, 0x68
pop r14
pop rdi
ret
mov rcx, rdi
add rsp, 0x68
pop r14
pop rdi
jmp fcn.1400dd110
Function at 0x1400c0c80
Capabilities:
Reference sql statements

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
mov r14d, dword [rsp + 0x70]
mov ebx, r8d
mov dword [rax - 0x18], r14d
mov rbp, r9
mov qword [rax - 0x20], r9
mov rdi, rdx
mov r9, rdx
mov byte [rcx + 0x1c], 1
mov r8, rdx
mov dword [rax - 0x28], ebx
lea rdx, str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
mov rsi, rcx
call fcn.1400ec430
test ebx, ebx
jne 0x1400c0ce9
mov r9, rbp
mov dword [rsp + 0x20], r14d
mov r8, rdi
lea rdx, str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
mov rcx, rsi
call fcn.1400ec430
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 0x1400e01e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x28
xor r11d, r11d
mov rdi, r8
mov ebx, r11d
mov r14, rdx
mov rsi, rcx
cmp dword [rcx + 0x28], ebx
jle 0x1400e02e9
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r12
lea r12, str.main
mov qword [rsp + 0x20], r15
lea r15, [0x140185750]
nop
mov rax, qword [rsi + 0x20]
mov r10d, ebx
xor r10d, 1
cmp ebx, 2
cmovge r10d, ebx
movsxd rcx, r10d
shl rcx, 5
mov rbp, qword [rcx + rax + 0x18]
test rdi, rdi
je 0x1400e0261
mov r8, qword [rcx + rax]
mov r9, rdi
sub r9, r8
nop dword [rax]
movzx ecx, byte [r8]
movzx eax, byte [r9 + r8]
cmp ecx, eax
jne 0x1400e029c
test ecx, ecx
jne 0x1400e02aa
lea rcx, [rbp + 0x20]
xor r8d, r8d
mov rdx, r14
call fcn.1400a6620
mov r11, qword [rax + 0x10]
test r11, r11
jne 0x1400e0280
inc ebx
cmp ebx, dword [rsi + 0x28]
jl 0x1400e0220
mov r12, qword [rsp + 0x60]
mov rax, r11
mov rbp, qword [rsp + 0x58]
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
movzx edx, byte [rax + r15]
movzx ecx, byte [rcx + r15]
cmp ecx, edx
jne 0x1400e02af
inc r8
jmp 0x1400e0250
test r10d, r10d
jne 0x1400e0279
mov r9, rdi
mov rax, r12
sub r9, r12
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [r9 + rax]
cmp edx, ecx
jne 0x1400e02d5
test edx, edx
je 0x1400e0261
inc rax
jmp 0x1400e02c0
movzx r8d, byte [rcx + r15]
movzx edx, byte [rdx + r15]
cmp edx, r8d
jne 0x1400e0279
inc rax
jmp 0x1400e02c0
mov rax, r11
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x14014608c
Capabilities:
Parse pe header

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

Function at 0x14014f93c
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 0x14014f973
call fcn.1401525b0
mov dword [rax], socket
call fcn.14014bf44
xor eax, eax
jmp 0x14014fa01
mov rdx, r9
mov rcx, r8
call fcn.14014f8d8
mov rbx, rax
test rax, rax
je 0x14014f9fe
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14014f804]
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 0x14014f9eb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140152524
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14014f9d2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14014f9e1
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140159b88
jmp 0x14014f9fe
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14014f9fb
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 0x1401568cc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1401566c8
Function at 0x14015d718
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.1401456d0
sub rsp, rax
mov rax, qword [0x1401c5538]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14015ae20
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14015d767
mov rax, rbp
jmp 0x14015d86f
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 + 0x1cb8a0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14015e838
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x1cb8a0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14015d86b
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 0x14015d86b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14015e838
test rax, rax
js 0x14015d86b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14015d86b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14015d85d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14015d85d
cmp byte [rcx], 0xd
jne 0x14015d843
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14015d852
cmp byte [rcx + 1], 0xa
jne 0x14015d852
inc rcx
jmp 0x14015d852
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1c5950]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14015d825
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14015d86f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1401453a0
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 0x14015da90
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14015daa6
mov al, 1
jmp 0x14015db06
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14015dab7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14015db04
mov ecx, dword [rcx + 0x18]
nop
call fcn.140163f9c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14015db04
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14015db04
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14015db04
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14015db06
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14015dbd8
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, [0x1401cb8a0]
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 0x14015dc2f
cmp word [rdx], r13w
jne 0x14015dc2f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14015dc34
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14015dd59
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14015dd7a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14015dc6d
mov rdx, r9
mov word [rbx], cx
jmp 0x14015dc94
cmp r9, r8
jae 0x14015dca4
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 0x14015dc4e
jmp 0x14015dd59
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 0x14015dd4e
cmp dword [rsp + 0x80], esi
je 0x14015dd4e
lea r8, [0x1401cb8a0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14015dd26
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14015dcf6
mov word [rbx], r13w
jmp 0x14015dd56
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 0x14015dd03
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14015dd56
cmp word [rsp + 0x70], r13w
jne 0x14015dd33
cmp rbx, r14
je 0x14015dcf0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14015e840
cmp word [rsp + 0x70], r13w
je 0x14015dd59
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, [0x1401cb8a0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14015dd53
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14015dd59
Function at 0x140162db8
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 0x140162de8
xor eax, eax
jmp 0x140162eab
mov rbp, rbx
cmp word [rax], si
je 0x140162e0d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140162df4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140162df0
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.140160334
movsxd r14, eax
test eax, eax
jne 0x140162e4b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140162de1
mov rcx, r14
call fcn.140159bc4
mov rdi, rax
test rax, rax
jne 0x140162e64
xor ecx, ecx
call fcn.140159b88
jmp 0x140162e40
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.140160334
test eax, eax
jne 0x140162e95
mov rcx, rdi
call fcn.140159b88
jmp 0x140162e9f
xor ecx, ecx
call fcn.140159b88
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 0x140162ec8
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 0x140162f4f
mov rsi, rbx
cmp word [rax], bp
je 0x140162f0e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140162ef8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140162ef4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140159bc4
mov rdi, rax
test rax, rax
je 0x140162f3c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140147160
mov rbp, rdi
xor ecx, ecx
call fcn.140159b88
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 0x1401664f0
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.140159828
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 0x140166591
cmp ebx, dword [rsp + 0x30]
je 0x14016658a
test esi, esi
je 0x14016658a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140166565
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140166572
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14016654f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140166576
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140166593
mov eax, 1
jmp 0x140166593
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret