joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140cdd114
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x28
call fcn.140d038d4
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x140cdd166
and dword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov r9d, 2
lea edx, [r9 + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx ecx, word [rsp + 0x30]
sub ecx, 0x30
je 0x140cdd166
sub ecx, 1
je 0x140cdd15f
cmp ecx, 1
je 0x140cdd158
xor eax, eax
jmp 0x140cdd16b
mov eax, 3
jmp 0x140cdd16b
mov eax, 1
jmp 0x140cdd16b
mov eax, 2
add rsp, 0x28
ret

Function at 0x140ce2db0
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.140cd95f0
sub rsp, rax
mov rax, qword [0x14100f500]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140cfb050
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140ce2dff
mov rax, rbp
jmp 0x140ce2f0b
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 + 0x10a9560]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140d02a9c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x10a9560]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140ce2f07
mov dword [rsp + 0x30], edi
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + r12*8 + 0x28]
lea rdx, [rsp + 0x40]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140ce2f07
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140d02a9c
test rax, rax
js 0x140ce2f07
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140ce2f07
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140ce2ef9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140ce2ef9
cmp byte [rcx], 0xd
jne 0x140ce2edf
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140ce2eee
cmp byte [rcx + 1], 0xa
jne 0x140ce2eee
inc rcx
jmp 0x140ce2eee
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x100fbc0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140ce2ec1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140ce2f0b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140cd9320
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 0x140cf4e10
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 [0x14100f500]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x140ea3610]
mov r14, rcx
call fcn.140d08cf0
xor edi, edi
test rax, rax
je 0x140cf4f8b
mov ebx, edi
call fcn.140cf5204
mov ebp, dword [rax]
call fcn.140cf5204
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, r14
mov dword [rax], edi
call fcn.140d08c3c
mov rsi, rax
test rax, rax
je 0x140cf4e85
call fcn.140cf5204
mov dword [rax], ebp
jmp 0x140cf4eb6
call fcn.140cf5204
cmp dword [rax], 0x22
jne 0x140cf4f83
call fcn.140cf5204
xor r8d, r8d
mov rdx, r14
xor ecx, ecx
mov dword [rax], ebp
call fcn.140d08c3c
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x140cf4f83
or rax, 0xffffffffffffffff
mov rcx, rax
inc rcx
cmp word [rsi + rcx*2], di
jne 0x140cf4ebd
cmp rcx, 3
je 0x140cf4f65
inc rax
cmp word [rsi + rax*2], di
jne 0x140cf4ed0
cmp rax, 5
jb 0x140cf4f83
mov r8w, 0x5c
mov dx, 0x2f
cmp word [rsi], r8w
je 0x140cf4efb
cmp word [rsi], dx
jne 0x140cf4f83
cmp word [rsi + 2], r8w
je 0x140cf4f08
cmp word [rsi + 2], dx
jne 0x140cf4f83
cmp word [rsi + 4], r8w
je 0x140cf4f83
cmp word [rsi + 4], dx
je 0x140cf4f83
lea rcx, [rsi + 6]
jmp 0x140cf4f2a
cmp ax, r8w
je 0x140cf4f32
cmp ax, dx
je 0x140cf4f32
add rcx, 2
movzx eax, word [rcx]
test ax, ax
jne 0x140cf4f1b
test ax, ax
je 0x140cf4f83
add rcx, 2
movzx eax, word [rcx]
test ax, ax
je 0x140cf4f83
cmp ax, r8w
je 0x140cf4f5a
cmp ax, dx
je 0x140cf4f5a
add rcx, 2
movzx eax, word [rcx]
test ax, ax
jne 0x140cf4f43
test ax, ax
je 0x140cf4f65
cmp word [rcx + 2], di
jne 0x140cf4f83
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140cf4f76
mov dil, 1
mov rcx, rbx
call fcn.140ceb430
mov al, dil
jmp 0x140cf4f8d
mov rcx, rbx
call fcn.140ceb430
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140cd9320
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 0x140cf5228
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
test rcx, rcx
jne 0x140cf5247
call fcn.140d09380
jmp 0x140cf52fc
and qword [rbp - 0x30], 0
lea rcx, [rbp - 0x50]
and qword [rbp - 0x28], 0
xor edx, edx
and qword [rbp - 0x20], 0
and qword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
mov byte [rbp - 8], 0
call fcn.140ceecbc
mov rax, qword [rbp - 0x48]
mov r9d, 0xfde9
cmp dword [rax + 0xc], r9d
jne 0x140cf5292
cmp byte [rbp - 0x38], 0
je 0x140cf52c7
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140cf52c7
call fcn.140d0512c
test eax, eax
jne 0x140cf52b3
cmp byte [rbp - 0x38], al
je 0x140cf52ab
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140cf52c7
cmp byte [rbp - 0x38], 0
je 0x140cf52c4
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
xor r9d, r9d
lea r8, [rbp + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x30]
call fcn.140cf3df4
test eax, eax
je 0x140cf52e0
or ebx, 0xffffffff
jmp 0x140cf52eb
mov rcx, qword [rbp - 0x20]
call fcn.140d09380
mov ebx, eax
cmp byte [rbp - 8], 0
je 0x140cf52fa
mov rcx, qword [rbp - 0x20]
call fcn.140d04dc0
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret

Function at 0x140cf8898
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140cf8907
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140cf8907
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140cf8907
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140cf8907
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140cf8907
cmp dword [rcx + 0x84], 0xe
jbe 0x140cf8907
cmp dword [rcx + 0xf8], 0
je 0x140cf8907
mov ecx, ebx
call fcn.140cf89ac
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140cf87a0
nop
cmp dword [rbp + 0x20], 0
jne 0x140cf8968
call fcn.140d0b300
cmp eax, 1
jne 0x140cf8958
xor dl, dl
jmp 0x140cf8962
call fcn.140d0b28c
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x140cf8973
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140cf897c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140cf8898
Function at 0x140cf8a80
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140cf8907
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140cf8907
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140cf8907
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140cf8907
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140cf8907
cmp dword [rcx + 0x84], 0xe
jbe 0x140cf8907
cmp dword [rcx + 0xf8], 0
je 0x140cf8907
mov ecx, ebx
call fcn.140cf89ac
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140cf87a0
nop
cmp dword [rbp + 0x20], 0
jne 0x140cf8968
call fcn.140d0b300
cmp eax, 1
jne 0x140cf8958
xor dl, dl
jmp 0x140cf8962
call fcn.140d0b28c
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x140cf8973
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140cf897c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140cf8898

Function at 0x140cf8d18
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 0x140cf8d4f
call fcn.140cf5204
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.140cf5aac
xor eax, eax
jmp 0x140cf8de1
mov rdx, r9
mov rcx, r8
call fcn.140cf8cb4
mov rbx, rax
test rax, rax
je 0x140cf8dde
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x28], rax
lea r8, [0x140cf8be8]
mov eax, dword [rsp + 0x60]
mov rdx, rsi
mov r9, rbx
mov dword [rsp + 0x20], eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140cf8dcb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140cf5194
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140cf8db2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140cf8dc1
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140d04dc0
jmp 0x140cf8dde
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140cf8ddb
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 0x140cfc9a0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov r14, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.140ceecbc
mov rax, qword [rbp - 0x58]
mov edi, 0xfde9
cmp dword [rax + 0xc], edi
jne 0x140cfc9eb
xor ebx, ebx
cmp byte [rbp - 0x48], bl
je 0x140cfca1f
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140cfca1f
call fcn.140d0512c
xor ebx, ebx
test eax, eax
jne 0x140cfca0d
cmp byte [rbp - 0x48], bl
je 0x140cfca06
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
mov edi, 1
jmp 0x140cfca1f
cmp byte [rbp - 0x48], bl
je 0x140cfca1d
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
mov edi, ebx
mov r9d, edi
mov qword [rbp - 0x30], rbx
lea r8, [rbp + 0x30]
mov qword [rbp - 0x28], rbx
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x20], rbx
mov rcx, rsi
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], rbx
mov byte [rbp - 8], bl
call fcn.140cf3df4
mov esi, eax
test eax, eax
je 0x140cfca5b
call fcn.140cf5204
or edi, 0xffffffff
mov dword [rax], esi
jmp 0x140cfcab4
mov r9d, edi
mov qword [rbp - 0x60], rbx
lea r8, [rbp + 0x30]
mov qword [rbp - 0x58], rbx
lea rdx, [rbp - 0x60]
mov qword [rbp - 0x50], rbx
mov rcx, r14
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], rbx
mov byte [rbp - 0x38], bl
call fcn.140cf3df4
mov edi, eax
test eax, eax
je 0x140cfca97
call fcn.140cf5204
mov dword [rax], edi
or edi, 0xffffffff
jmp 0x140cfcaa6
mov rdx, qword [rbp - 0x50]
mov rcx, qword [rbp - 0x20]
call fcn.140d0b718
mov edi, eax
cmp byte [rbp - 0x38], bl
je 0x140cfcab4
mov rcx, qword [rbp - 0x50]
call fcn.140d04dc0
cmp byte [rbp - 8], bl
je 0x140cfcac2
mov rcx, qword [rbp - 0x20]
call fcn.140d04dc0
lea r11, [rsp + 0x80]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140d02440
Capabilities:
Delete file

Disassembly:
jmp 0x140d02448
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
test rcx, rcx
jne 0x140d02467
call fcn.140d10774
jmp 0x140d0251c
and qword [rbp - 0x30], 0
lea rcx, [rbp - 0x50]
and qword [rbp - 0x28], 0
xor edx, edx
and qword [rbp - 0x20], 0
and qword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
mov byte [rbp - 8], 0
call fcn.140ceecbc
mov rax, qword [rbp - 0x48]
mov r9d, 0xfde9
cmp dword [rax + 0xc], r9d
jne 0x140d024b2
cmp byte [rbp - 0x38], 0
je 0x140d024e7
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140d024e7
call fcn.140d0512c
test eax, eax
jne 0x140d024d3
cmp byte [rbp - 0x38], al
je 0x140d024cb
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140d024e7
cmp byte [rbp - 0x38], 0
je 0x140d024e4
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
xor r9d, r9d
lea r8, [rbp + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x30]
call fcn.140cf3df4
test eax, eax
je 0x140d02500
or ebx, 0xffffffff
jmp 0x140d0250b
mov rcx, qword [rbp - 0x20]
call fcn.140d10774
mov ebx, eax
cmp byte [rbp - 8], 0
je 0x140d0251a
mov rcx, qword [rbp - 0x20]
call fcn.140d04dc0
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret

Function at 0x140d02448
Capabilities:
Delete file

Disassembly:
jmp 0x140d02448
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
test rcx, rcx
jne 0x140d02467
call fcn.140d10774
jmp 0x140d0251c
and qword [rbp - 0x30], 0
lea rcx, [rbp - 0x50]
and qword [rbp - 0x28], 0
xor edx, edx
and qword [rbp - 0x20], 0
and qword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
mov byte [rbp - 8], 0
call fcn.140ceecbc
mov rax, qword [rbp - 0x48]
mov r9d, 0xfde9
cmp dword [rax + 0xc], r9d
jne 0x140d024b2
cmp byte [rbp - 0x38], 0
je 0x140d024e7
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140d024e7
call fcn.140d0512c
test eax, eax
jne 0x140d024d3
cmp byte [rbp - 0x38], al
je 0x140d024cb
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140d024e7
cmp byte [rbp - 0x38], 0
je 0x140d024e4
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
xor r9d, r9d
lea r8, [rbp + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x30]
call fcn.140cf3df4
test eax, eax
je 0x140d02500
or ebx, 0xffffffff
jmp 0x140d0250b
mov rcx, qword [rbp - 0x20]
call fcn.140d10774
mov ebx, eax
cmp byte [rbp - 8], 0
je 0x140d0251a
mov rcx, qword [rbp - 0x20]
call fcn.140d04dc0
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret
Function at 0x140d02b48
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
xor edi, edi
mov rax, r15
lea rcx, [0x1410a9560]
and eax, 0x3f
mov r12, r15
sar r12, 6
mov rsi, rdx
lea r9d, [rdi + 0xa]
mov r14, r15
lea rbp, [rax + rax*8]
mov rax, qword [rcx + r12*8]
mov r10, qword [rax + rbp*8 + 0x28]
test r8, r8
je 0x140d02b9e
cmp word [rdx], r9w
jne 0x140d02b9e
or byte [rax + rbp*8 + 0x38], 4
jmp 0x140d02ba3
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x140d02d22
mov r11d, reloc.WS2_32.dll_listen
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x140d02ced
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x140d02beb
cmp rcx, r8
jae 0x140d02c0b
cmp word [rcx], r9w
jne 0x140d02beb
add rax, 4
mov edx, r9d
jmp 0x140d02bee
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x140d02bc0
jmp 0x140d02d22
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], di
mov r8d, r13d
mov dword [rsp + 0x80], edi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140d02ce6
cmp dword [rsp + 0x80], edi
je 0x140d02ce6
lea r9, [0x1410a9560]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x140d02cc0
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x140d02c73
mov word [rbx], bp
jmp 0x140d02d1f
mov word [rsp + 0x78], ax
mov rdx, r14
mov rax, r14
sar rdx, 6
and eax, 0x3f
mov word [rbx], reloc.WS2_32.dll_listen
lea r8, [rax + rax*8]
mov rax, qword [r9 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, r13
jl 0x140d02c8e
mov rax, r14
sar rax, 6
and r14d, 0x3f
mov rax, qword [r9 + rax*8]
lea rcx, [r14 + r14*8]
mov byte [rax + rcx*8 + 0x3c], bpl
jmp 0x140d02d1f
cmp word [rsp + 0x70], bp
jne 0x140d02ccc
cmp rbx, rsi
je 0x140d02c6b
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140d02aa4
cmp word [rsp + 0x70], bp
je 0x140d02d22
mov word [rbx], reloc.WS2_32.dll_listen
jmp 0x140d02d1f
mov rcx, r15
lea r9, [0x1410a9560]
and ecx, 0x3f
mov rax, r15
sar rax, 6
lea r8, [rcx + rcx*8]
mov rcx, qword [r9 + rax*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140d02d1c
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140d02d22
mov word [rbx], dx
add rbx, r13
sub rbx, rsi
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
Function at 0x140d053d4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x141364050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x140d05439
test rax, rax
jne 0x140d05427
lea r9, [0x140ea50c0]
lea r8, [0x140ea50b8]
lea rdx, [0x140ea50c0]
lea ecx, [rax + 0xa]
call fcn.140d04ec0
test rax, rax
je 0x140d05439
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.140da1350
jmp 0x140d05453
xor edx, edx
mov rcx, rbp
call fcn.140d0577c
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140d07b64
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140d07b7a
mov al, 1
jmp 0x140d07be6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140d07b8b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140d07be4
mov ecx, dword [rcx + 0x18]
nop
call fcn.140cfb524
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140d07be4
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140d07be4
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140d07be4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140d07be6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140d0ce4c
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 0x140d0ce7c
xor eax, eax
jmp 0x140d0cf3f
mov rbp, rbx
cmp word [rax], si
je 0x140d0cea1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140d0ce88
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140d0ce84
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.140d08814
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x140d0cee2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140d0ce75
call fcn.140d05ec0
mov rdi, rax
test rax, rax
jne 0x140d0cef8
xor ecx, ecx
call fcn.140d04dc0
jmp 0x140d0ced7
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.140d08814
test eax, eax
jne 0x140d0cf29
mov rcx, rdi
call fcn.140d04dc0
jmp 0x140d0cf33
xor ecx, ecx
call fcn.140d04dc0
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 0x140d0cf5c
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 0x140d0cfe3
mov rsi, rbx
cmp word [rax], bp
je 0x140d0cfa2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140d0cf8c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140d0cf88
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140d05ec0
mov rdi, rax
test rax, rax
je 0x140d0cfd0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140da1510
mov rbp, rdi
xor ecx, ecx
call fcn.140d04dc0
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 0x140d10094
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov dword [rsp + 0x30], esi
mov rbx, rcx
test rcx, rcx
je 0x140d10107
cmp word [rcx], si
je 0x140d10107
lea rdx, [0x140ea6cd8]
call fcn.140d14378
test eax, eax
je 0x140d10107
lea rdx, [0x140ea6cf0]
mov rcx, rbx
call fcn.140d14378
test eax, eax
jne 0x140d100fd
mov ecx, dword [rdi + 8]
lea r9d, [rsi + 2]
lea r8, [rsp + 0x30]
mov edx, 0x2000000b
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x140d10124
mov eax, dword [rsp + 0x30]
jmp 0x140d10136
mov rcx, rbx
call fcn.140cfb5fc
jmp 0x140d10136
mov ecx, dword [rdi + 8]
lea r8, [rsp + 0x30]
mov r9d, 2
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x140d10128
xor eax, eax
jmp 0x140d10136
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x140d10136
call qword [sym.imp.KERNEL32.dll_GetACP]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140d10148
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov ebp, edx
mov dword [rax + 8], ebx
mov edi, ecx
call fcn.140d04900
mov ecx, edi
lea r9d, [rbx + 2]
and ecx, 0x3ff
lea r8, [rsp + 0x30]
bts ecx, 0xa
mov edx, 0x20000001
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x140d101eb
cmp edi, dword [rsp + 0x30]
je 0x140d101e4
test ebp, ebp
je 0x140d101e4
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x140d101c0
sub dx, 0x61
cmp dx, 0x19
ja 0x140d101cc
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x140d101ad
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x140d101d0
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x140d101ed
mov eax, 1
jmp 0x140d101ed
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret