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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov r15, r9
mov rbx, r8
mov r14, rdx
mov qword [rsp + 0x28], rcx
mov rax, qword [rsp + 0xc0]
lea rdi, [rdx + 0x10]
lea rbp, [rsp + 0x3a]
xor r12d, r12d
cmp qword [rdx + 8], 0xffffffffffffffff
cmovne r12, rdx
mov r13d, 0x7fffffff
cmp rax, r13
cmovb r13, rax
lea rsi, [rsp + 0x30]
mov qword [rsp + 0x40], r12
mov rdx, qword [r14 + 0x20]
mov rcx, rsi
mov r8, rbx
call fcn.0048e058
mov al, byte [rsp + 0x39]
cmp al, 3
je 0x48e442
mov rcx, qword [rsp + 0x30]
cmp al, 2
je 0x48e450
mov dl, byte [rsp + 0x38]
movzx r8d, word [rbp + 4]
lea r9, [rsp + 0x52]
mov word [r9 + 4], r8w
mov r8d, dword [rbp]
mov dword [r9], r8d
mov qword [rsp + 0x48], rcx
mov byte [rsp + 0x50], dl
mov byte [rsp + 0x51], al
mov rcx, r12
lea rdx, str._cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.29.0_src_io_poll_evented.rs
call fcn.0048cc80
mov rcx, qword [r12 + 8]
mov rdx, r15
mov r8d, r13d
xor r9d, r9d
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
jne 0x48e45e
call sub.WS2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rcx, rsi
call fcn.0043e1cf
cmp al, 0xd
jne 0x48e412
mov rax, qword [r12]
test rax, rax
je 0x48e412
mov rcx, qword [rax + 8]
mov rdx, qword [rax + 0x10]
lock inc qword [rdx]
jle 0x48e491
mov r12, r13
mov r13, rbx
add rcx, 0x10
mov r8, qword [rax]
mov r9b, byte [rax + 0x18]
call fcn.0043e0a8
mov rbx, rax
xor ecx, ecx
call fcn.004456fe
test rbx, rbx
je 0x48e407
mov ecx, 1
mov rdx, rsi
call fcn.0043e22c
mov rsi, rbx
mov rbx, r13
mov r13, r12
mov r12, qword [rsp + 0x40]
mov rcx, rsi
call fcn.00489d50
cmp al, 0xd
jne 0x48e470
mov qword [rsp + 0x30], rsi
mov rcx, rdi
lea rdx, [rsp + 0x48]
call fcn.0048de00
lea rsi, [rsp + 0x30]
mov rcx, rsi
call fcn.00489073
jmp 0x48e322
mov rax, qword [rsp + 0x28]
mov qword [rax], 2
jmp 0x48e480
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
jmp 0x48e46a
movsxd rcx, eax
mov rax, qword [rsp + 0x28]
and qword [rax], 0
mov qword [rax + 8], rcx
jmp 0x48e480
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rsi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
Function at 0x48e495
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
movaps xmmword [rsp + 0x70], xmm6
mov rdi, r9
mov rbx, r8
mov r14, rdx
mov qword [rsp + 0x58], rcx
mov rax, qword [rsp + 0xf0]
lea r15, [rdx + 0x10]
xor r12d, r12d
cmp qword [rdx + 8], 0xffffffffffffffff
cmovne r12, rdx
mov ebp, 0xffffffff
cmp rax, rbp
cmovb rbp, rax
xorps xmm6, xmm6
mov rdx, qword [r14 + 0x20]
lea rcx, [rsp + 0x40]
mov r8, rbx
mov r9b, 1
call fcn.0048de89
mov al, byte [rsp + 0x49]
cmp al, 3
je 0x48e622
mov rcx, qword [rsp + 0x40]
cmp al, 2
je 0x48e630
mov dl, byte [rsp + 0x48]
lea r9, [rsp + 0x4a]
movzx r8d, word [r9 + 4]
lea r10, [rsp + 0x6a]
mov word [r10 + 4], r8w
mov r8d, dword [r9]
mov dword [r10], r8d
mov qword [rsp + 0x60], rcx
mov byte [rsp + 0x68], dl
mov byte [rsp + 0x69], al
mov rcx, r12
lea rdx, str._cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.29.0_src_io_poll_evented.rs
call fcn.0048cc80
mov rcx, qword [r12 + 8]
and dword [rsp + 0x54], 0
movups xmmword [rsp + 0x28], xmm6
and dword [rsp + 0x20], 0
mov rdx, rdi
mov r8d, ebp
lea r9, [rsp + 0x54]
call sub.WS2_32.dll_WSASend
cmp eax, 0xffffffff
jne 0x48e63e
call sub.WS2_32.dll_WSAGetLastError
mov r13d, eax
shl r13, 0x20
or r13, 2
mov rcx, r13
call fcn.0043e1cf
cmp al, 0xd
jne 0x48e5ec
mov rax, qword [r12]
test rax, rax
je 0x48e5ec
mov rcx, qword [rax + 8]
mov rdx, qword [rax + 0x10]
lock inc qword [rdx]
jle 0x48e685
add rcx, 0x10
mov r8, qword [rax]
mov r9b, byte [rax + 0x18]
call fcn.0043e0a8
mov rsi, rax
xor ecx, ecx
call fcn.004456fe
test rsi, rsi
je 0x48e5ec
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], 1
mov ecx, 1
mov rdx, r13
call fcn.0043e22c
mov r13, rsi
jmp 0x48e5fa
mov qword [rsp + 0x40], 1
mov qword [rsp + 0x48], r13
mov rcx, r13
call fcn.00489d50
cmp al, 0xd
jne 0x48e65c
mov rcx, r15
lea rdx, [rsp + 0x60]
call fcn.0048de00
lea rcx, [rsp + 0x48]
call fcn.00489073
jmp 0x48e4e2
mov rax, qword [rsp + 0x58]
mov qword [rax], 2
jmp 0x48e66c
mov rax, qword [rsp + 0x58]
mov qword [rax], 1
jmp 0x48e656
mov ecx, dword [rsp + 0x54]
and qword [rsp + 0x40], 0
mov qword [rsp + 0x48], rcx
mov rax, qword [rsp + 0x58]
and qword [rax], 0
mov qword [rax + 8], rcx
jmp 0x48e66c
mov rax, qword [rsp + 0x58]
mov qword [rax], 1
mov qword [rax + 8], r13
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
Function at 0x48e6f6
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
lea rcx, [0x004941d8]
call fcn.0043ec9b
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x48e71e
mov rsi, rax
cmp qword [rax], 0
jne 0x48e78a
lea rdi, [0x004941d8]
mov rcx, rdi
call fcn.0043ec9b
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x48e788
mov rsi, rax
test rax, rax
jne 0x48e76e
mov ecx, 0x10
mov edx, 8
call fcn.00487ee9
mov rsi, rax
and qword [rax], 0
mov qword [rax + 8], rdi
mov rcx, rdi
call fcn.0043ec9b
mov ecx, eax
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
call fcn.0048b50c
mov rdx, qword [rsi]
lea rcx, [rsp + 0x20]
mov qword [rcx], rdx
mov qword [rsi], rax
call fcn.0048b540
jmp 0x48e78a
xor esi, esi
mov rax, rsi
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x492550
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov ecx, dword [0x004b8804]
mov rdi, rdx
mov rbp, r8
test ecx, ecx
jle 0x492670
mov rax, qword [0x004b8808]
xor ebx, ebx
add rax, 0x18
mov rdx, qword [rax]
cmp rsi, rdx
jb 0x49259c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rsi, rdx
jb 0x492656
add ebx, 1
add rax, 0x28
cmp ebx, ecx
jne 0x492580
mov rcx, rsi
call fcn.00493190
test rax, rax
mov r12, rax
je 0x4926a8
movsxd rbx, ebx
lea rbx, [rbx + rbx*4]
shl rbx, 3
mov r13, rbx
add r13, qword [0x004b8808]
mov qword [r13 + 0x20], rax
mov dword [r13], 0
call fcn.004932e0
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 0x18], rax
mov rax, qword [0x004b8808]
mov rcx, qword [rax + rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x49268b
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x49264f
sub eax, 0x40
and eax, 0xffffffbf
je 0x49264f
add rbx, qword [0x004b8808]
mov rcx, qword [rsp + 0x20]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x492677
add dword [0x004b8804], 1
mov r8, rbp
mov rdx, rdi
mov rcx, rsi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.ntdll.dll_memcpy
xor ebx, ebx
jmp 0x4925a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.004924e0
mov rax, qword [0x004b8808]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.004924e0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rsi
call fcn.004924e0
nop
nop dword [rax + rax]
Function at 0x492e00
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004b8ae0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004b8ac0]
test rbx, rbx
je 0x492e54
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x492e4b
test rsi, rsi
je 0x492e4b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x492e30
lea rcx, [0x004b8ae0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x493190
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x004ab600]
xor edx, edx
mov r8, rcx
cmp word [r9], 0x5a4d
je 0x4931b0
mov rax, rdx
add rsp, 0x28
ret
mov rcx, r9
call fcn.00493070
test eax, eax
je 0x4931a8
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add rax, r9
movzx edx, word [rax + 0x14]
lea rdx, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x49320d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x493204
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x4931a8
add rdx, 0x28
cmp rdx, r9
jne 0x4931f0
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x140001440
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x450
lea rcx, [0x140002090]
mov byte [rsp + 0x490], 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.GetProcessHeap
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x140002090]
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.HeapFree
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x140002090]
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.HeapAlloc
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x140002090]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.SetFileInformationByHandle
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x140002090]
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.CreateFileW
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x140002090]
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.CloseHandle
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x140002090]
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x140002100]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x498], rax
call r12
mov edi, 8
mov rcx, rax
mov edx, edi
lea r8d, [rdi + 0x16]
call rbx
mov rsi, rax
lea rcx, [rsp + 0x40]
xorps xmm0, xmm0
nop dword [rax]
nop word [rax + rax]
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx + 0x20], xmm0
movups xmmword [rcx + 0x30], xmm0
movups xmmword [rcx + 0x40], xmm0
movups xmmword [rcx + 0x50], xmm0
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmmword [rcx - 0x10], xmm0
sub rdi, 1
jne 0x140001570
movups xmmword [rcx], xmm0
mov byte [rsp + 0x490], 1
lea rdx, [rsp + 0x40]
mov dword [rsi + 0x10], 6
mov r8d, 0x208
mov rax, qword [0x140002258]
xor ecx, ecx
mov dword [rsi + 0x14], eax
movzx eax, word [0x14000225c]
mov word [rsi + 0x18], ax
call qword [rsp + 0x498]
mov qword [rsp + 0x30], rdi
lea r8d, [rdi + 1]
mov dword [rsp + 0x28], edi
lea rcx, [rsp + 0x40]
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov edx, 0x110000
call r14
lea r9d, [rdi + 0x1e]
mov r8, rsi
lea edx, [rdi + 3]
mov rcx, rax
mov rbx, rax
call rbp
mov rcx, rbx
call r15
mov qword [rsp + 0x30], rdi
lea r8d, [rdi + 1]
mov dword [rsp + 0x28], edi
lea rcx, [rsp + 0x40]
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov edx, 0x110000
call r14
lea r9d, [rdi + 1]
mov rcx, rax
lea r8, [rsp + 0x490]
mov rbx, rax
lea edx, [rdi + 4]
call rbp
mov rcx, rbx
call r15
call r12
mov rcx, rax
mov r8, rsi
xor edx, edx
call r13
mov rbx, qword [rsp + 0x4a0]
add rsp, 0x450
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002740
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140002762
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x1400027dc
mov rdi, r14
mov rcx, rbx
call fcn.140003e30
test rax, rax
jle 0x1400027b4
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.1400290e0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1400027cc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1400027d4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140002776
sub r14, rdi
jmp 0x1400028bf
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x1400027f3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400027f5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002827
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1400290e0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400028bc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140002862
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x14000289d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140010e18
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x1400028bc
cmp rbp, rax
ja 0x140002870
test rbp, rbp
je 0x1400028bc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140010e18
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret

Function at 0x140006e5c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006ea6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006ea6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006ea6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006ea6
cmp dword [rcx + 0x84], 0xe
jbe 0x140006ea6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140006ea8
xor al, al
add rsp, 0x28
ret
Function at 0x14000cda8
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.140006740
sub rsp, rax
mov rax, qword [0x14003b080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001645c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14000cdf7
mov rax, rbp
jmp 0x14000ceff
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 + 0x74cd0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001690c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x74cd0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14000cefb
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 0x14000cefb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001690c
test rax, rax
js 0x14000cefb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14000cefb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14000ceed
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14000ceed
cmp byte [rcx], 0xd
jne 0x14000ced3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14000cee2
cmp byte [rcx + 1], 0xa
jne 0x14000cee2
inc rcx
jmp 0x14000cee2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3b460]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14000ceb5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14000ceff
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400060f0
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 0x140013a78
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013874
Function at 0x140017090
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, [0x140074cd0]
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 0x1400170e7
cmp word [rdx], r13w
jne 0x1400170e7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400170ec
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140017211
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140017232
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140017125
mov rdx, r9
mov word [rbx], cx
jmp 0x14001714c
cmp r9, r8
jae 0x14001715c
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 0x140017106
jmp 0x140017211
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 0x140017206
cmp dword [rsp + 0x80], esi
je 0x140017206
lea r8, [0x140074cd0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400171de
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400171ae
mov word [rbx], r13w
jmp 0x14001720e
mov ecx, 0xd
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 0x1400171bb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001720e
cmp word [rsp + 0x70], r13w
jne 0x1400171eb
cmp rbx, r14
je 0x1400171a8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140016914
cmp word [rsp + 0x70], r13w
je 0x140017211
mov ecx, 0xd
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, [0x140074cd0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001720b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140017211
Function at 0x140017df4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140017e0a
mov al, 1
jmp 0x140017e6a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140017e1b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140017e68
mov ecx, dword [rcx + 0x18]
nop
call fcn.14002041c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140017e68
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140017e68
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140017e68
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140017e6a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001f9b4
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 0x14001f9e4
xor eax, eax
jmp 0x14001faa7
mov rbp, rbx
cmp word [rax], si
je 0x14001fa09
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001f9f0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001f9ec
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.14001dfb4
movsxd r14, eax
test eax, eax
jne 0x14001fa47
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001f9dd
mov rcx, r14
call fcn.1400191a8
mov rdi, rax
test rax, rax
jne 0x14001fa60
xor ecx, ecx
call fcn.140018d24
jmp 0x14001fa3c
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.14001dfb4
test eax, eax
jne 0x14001fa91
mov rcx, rdi
call fcn.140018d24
jmp 0x14001fa9b
xor ecx, ecx
call fcn.140018d24
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 0x140022970
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.140016d30
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 0x140022a11
cmp ebx, dword [rsp + 0x30]
je 0x140022a0a
test esi, esi
je 0x140022a0a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400229e5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400229f2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400229cf
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400229f6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140022a13
mov eax, 1
jmp 0x140022a13
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140026f8c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140012138
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140027016
cmp byte [rbp - 0x21], r15b
je 0x140027011
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14002704c
call fcn.14001b800
test eax, eax
jne 0x140027038
cmp byte [rbp - 0x21], r15b
je 0x140027030
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14002704c
cmp byte [rbp - 0x21], r15b
je 0x140027049
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14001271c
test eax, eax
jne 0x1400270ec
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140012138
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14002708b
cmp byte [rbp - 0x21], r15b
je 0x1400270c0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400270c0
call fcn.14001b800
test eax, eax
jne 0x1400270ac
cmp byte [rbp - 0x21], r15b
je 0x1400270a5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400270c0
cmp byte [rbp - 0x21], r15b
je 0x1400270bd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14001271c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400270ec
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400270ef
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400270fd
mov rcx, rdi
call fcn.140018d24
cmp byte [rbp + 0x3f], r15b
je 0x14002710c
mov rcx, qword [rbp + 0x27]
call fcn.140018d24
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret