joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009ffc
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rsi
push rdi
push r14
sub rsp, 0x50
mov qword [rax - 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rbp
mov rbx, r8
mov rbp, rdx
mov rdi, rcx
and dword [rax - 0x28], 0
mov rdx, qword [r8 + 8]
sub rdx, qword [r8]
mov rcx, rbp
call fcn.1400025c4
mov dword [rsp + 0x40], 1
mov rsi, qword [rbp + 8]
mov r14, qword [rbp + 0x10]
movups xmm1, xmmword [rbx]
movdqa xmm0, xmm1
psrldq xmm0, 8
movq r8, xmm0
movq rdx, xmm1
sub r8, rdx
mov rax, r14
sub rax, rsi
cmp rax, r8
cmovb r8, rax
mov rcx, rsi
call sub.msvcrt.dll_memcpy
cmp rsi, r14
je 0x14000a110
lea rbx, [rdi + 0x50]
mov rcx, qword [rdi + 0x60]
cmp rcx, 0x10
jb 0x14000a0f7
lea rdx, [rdi + 0x40]
lea r8, [rdx + 0x10]
sub r8, rdx
mov rcx, rbx
call sub.msvcrt.dll_memcpy
mov dword [rsp + 0x80], reloc.WS2_32.dll_recv
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
lea rcx, [rdi + 0x4f]
mov rdx, 0xffffffffffffffc0
sub rdx, rdi
add byte [rcx], 1
jne 0x14000a0f5
dec rcx
lea rax, [rdx + rcx]
test rax, rax
jns 0x14000a0e4
xor ecx, ecx
lea rax, [rcx + 1]
mov qword [rdi + 0x60], rax
mov al, byte [rbx + rcx]
xor byte [rsi], al
inc rsi
cmp rsi, r14
jne 0x14000a082
mov rax, rbp
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x14000a16c
Capabilities:
Encrypt data using aes via winapi

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x60
mov qword [r11 - 0x38], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rsi, rcx
lea rax, [0x140016d00]
mov qword [rcx], rax
lea rdi, [rcx + 8]
xor eax, eax
mov qword [rdi], rax
lea rcx, [0x1400179d0]
mov qword [rsi], rcx
mov dword [rsp + 0x38], 0x208
mov dword [rsp + 0x3c], 0x660e
mov dword [rsp + 0x40], reloc.WS2_32.dll_recv
mov qword [r11 - 0x24], rax
mov qword [r11 - 0x1c], rax
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rsi + 0x10], xmm0
movsd xmm1, qword [rsp + 0x48]
movsd qword [rsi + 0x20], xmm1
mov eax, dword [rsp + 0x50]
mov dword [rsi + 0x28], eax
xor eax, eax
mov qword [rsi + 0x2c], rax
mov qword [rsi + 0x34], rax
mov qword [rsi], rcx
mov r8d, dword [rsi + 0x18]
lea rcx, [rsi + 0x1c]
mov rdx, qword [rdx]
call sub.msvcrt.dll_memcpy
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + htons]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 1
xor r9d, r9d
lea r8d, [r9 + 0x1c]
lea rdx, [rsi + 0x10]
mov rcx, qword [0x1400210c0]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
nop
mov rax, rsi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14000de60
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 0x10], rdx
push rdi
sub rsp, 0x50
mov qword [rax - 0x10], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
and dword [rax - 0x18], 0
mov edx, 0x80
mov rcx, rsi
call fcn.1400025c4
mov dword [rsp + 0x40], 1
mov rcx, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
sub r8, rcx
mov rax, qword [rbx + 8]
sub rax, qword [rbx]
cmp rax, r8
cmovb r8, rax
mov rdx, qword [rbx]
call sub.msvcrt.dll_memcpy
mov eax, dword [rbx + 8]
sub eax, dword [rbx]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x30], 0x80
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov rax, qword [rsi + 8]
mov qword [rsp + 0x20], rax
xor edx, edx
lea r9d, [rdx + 0x40]
lea r8d, [rdx + 1]
mov rcx, qword [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov byte [rsp + 0x80], 0
mov edx, dword [rsp + 0x78]
lea r8, [rsp + 0x80]
mov rcx, rsi
call fcn.140002428
mov rdx, qword [rsi + 0x10]
mov r8, qword [rsi + 8]
mov r9, rdx
sub r9, r8
shr r9, 1
je 0x14000df43
dec rdx
mov cl, byte [r8]
mov al, byte [rdx]
mov byte [r8], al
mov byte [rdx], cl
dec rdx
inc r8
sub r9, 1
jne 0x14000df2d
mov rax, rsi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x14000eba0
Capabilities:
Encrypt data using curve25519

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp + 0x27], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rbx, rdx
mov rsi, rcx
and dword [rbp - 0x49], 0
mov r8d, 0x20
lea rdx, [rbp + 7]
call fcn.140002574
nop
mov rax, qword [rbp + 0xf]
and byte [rax], 0xf8
mov rax, qword [rbp + 0xf]
and byte [rax + 0x1f], 0x7f
mov rax, qword [rbp + 0xf]
or byte [rax + 0x1f], 0x40
mov rax, qword [rbp + 0xf]
lea rcx, [0x140016730]
mov qword [rbp - 0x41], rcx
lea r15, [0x140016858]
mov qword [rbp - 0x41], r15
lea r14, [0x140016868]
mov qword [rbp - 0x41], r14
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x19], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 9], xmm1
lea r8, reloc.WS2_32.dll_htons
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x39]
call fcn.140004a04
nop
mov edi, 1
mov dword [rbp - 0x49], edi
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.msvcrt.dll_free]
mov qword [rsi + 8], rbx
lea rcx, [0x140018508]
mov qword [rsi], rcx
lea rax, [rsi + 0x10]
mov qword [rbp + 0x6f], rax
mov qword [rax], r15
mov qword [rax], r14
movups xmm2, xmmword [rax + 8]
movups xmm3, xmmword [rax + 0x18]
movups xmm4, xmmword [rax + 0x28]
movups xmm5, xmmword [rax + 0x38]
movups xmm0, xmmword [rbp - 0x39]
movups xmmword [rax + 8], xmm0
movups xmm1, xmmword [rbp - 0x29]
movups xmmword [rax + 0x18], xmm1
movups xmm0, xmmword [rbp - 0x19]
movups xmmword [rax + 0x28], xmm0
movups xmm1, xmmword [rbp - 9]
movups xmmword [rax + 0x38], xmm1
movups xmmword [rbp - 0x39], xmm2
movups xmmword [rbp - 0x29], xmm3
movups xmmword [rbp - 0x19], xmm4
movups xmmword [rbp - 9], xmm5
and edi, 0xfffffffe
mov dword [rbp - 0x49], edi
mov qword [rbp - 0x41], r15
mov qword [rsi], rcx
mov rax, rsi
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000f42c
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov r15, r8
mov r13, rcx
xor eax, eax
mov dword [rbp - 0x50], eax
mov qword [rbp - 0x40], rax
movups xmm1, xmmword [rdx]
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rbx, xmm0
mov r14, rbx
movq rdi, xmm1
sub r14, rdi
lea rcx, [r14 + 0xc]
call qword [sym.imp.msvcrt.dll_malloc]
mov rsi, rax
mov word [rax], 0x208
xor eax, eax
lea r12d, [rax + 2]
mov word [rsi + 2], ax
mov dword [rsi + 4], 0x6602
sub ebx, edi
mov r8d, ebx
mov dword [rsi + 8], r8d
lea rcx, [rsi + 0xc]
mov rdx, rdi
call sub.msvcrt.dll_memcpy
lea rax, [rbp - 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x100
xor r9d, r9d
lea r8d, [r14 + 0xc]
mov rdx, rsi
mov rcx, qword [0x1400210c0]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, qword [rbp - 0x38]
mov edx, 0x8009
mov rcx, qword [0x1400210c0]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov dword [rbp - 0x30], 0x800c
lea ebx, [r12 + 0x1e]
mov r8d, ebx
xor edx, edx
lea rcx, [rbp - 0x28]
call sub.msvcrt.dll_memset
xor r9d, r9d
lea r8, [rbp - 0x30]
lea edx, [rbx - 0x1b]
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
nop
xor edi, edi
mov qword [rbp - 0x38], rdi
movups xmm1, xmmword [r15]
movdqa xmm0, xmm1
psrldq xmm0, 8
movq r8, xmm0
movq rdx, xmm1
sub r8d, edx
xor r9d, r9d
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
nop
mov edx, ebx
mov rcx, r13
call fcn.1400025c4
mov dword [rbp - 0x50], r12d
mov dword [rbp + 0x48], ebx
mov dword [rsp + 0x20], edi
lea r9, [rbp + 0x48]
mov r8, qword [r13 + 8]
mov edx, r12d
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
and r12d, 0xfffffffd
mov dword [rbp - 0x50], r12d
or r12d, 1
mov dword [rbp - 0x50], r12d
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x14000f5b4
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov qword [rbp - 0x40], rdi
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x14000f5c7
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov qword [rbp - 0x38], rdi
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x14000f5da
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov qword [rbp - 0x40], rdi
mov rax, r13
mov rbx, qword [rsp + 0xd0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001111c
Capabilities:
Generate random numbers via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp - 0x39], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rsi
mov rsi, r8
mov r12, rdx
mov rdi, rcx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
and qword [rbp - 0x19], 0
mov rdx, r8
lea rcx, [rbp - 0x11]
call fcn.14000ad48
nop
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x17], xmm0
and qword [rbp + 0x27], 0
mov rdx, qword [rdi + 0x60]
sub rdx, qword [rdi + 0x50]
sar rdx, 3
lea rcx, [rbp + 0xf]
call fcn.14000af44
mov r14, qword [rdi + 0x58]
mov rbx, qword [rdi + 0x50]
jmp 0x1400111a5
mov rdx, rbx
lea rcx, [rbp + 0xf]
call fcn.14000ac6c
add rbx, 8
cmp rbx, r14
jne 0x140011195
movzx eax, word [r12]
mov word [rbp + 0x2f], ax
lea r8, [rbp - 0x31]
lea rdx, [rbp - 0x59]
lea rcx, [0x140021020]
call fcn.14000a65c
nop
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.msvcrt.dll_free]
nop
mov rcx, qword [rbp - 9]
call qword [sym.imp.msvcrt.dll_free]
nop
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.msvcrt.dll_free]
mov rbx, qword [rbp - 0x49]
sub rbx, qword [rbp - 0x51]
sar rbx, 3
test rbx, rbx
je 0x140011248
lea rcx, [rbp + 0x67]
lea rdx, [rbp + 0x6f]
sub edx, ecx
lea r8, [rbp + 0x67]
mov rcx, qword [0x1400210c0]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
xor edx, edx
mov rax, qword [rbp + 0x67]
div rbx
mov rax, qword [rbp - 0x51]
mov rbx, qword [rax + rdx*8]
mov qword [rbp + 0x67], rbx
test rbx, rbx
je 0x140011261
lea rdx, [rbp + 0x67]
lea rcx, [rdi + 0x48]
call fcn.14000ac6c
mov rdx, rbx
mov rcx, rdi
call fcn.140011294
jmp 0x140011261
lea r8, str.No_available_routers_n
mov edx, 2
lea rcx, [0x140021010]
call fcn.140001720
nop
mov rcx, qword [rbp - 0x51]
call qword [sym.imp.msvcrt.dll_free]
nop
mov rcx, qword [rsi + 8]
call qword [sym.imp.msvcrt.dll_free]
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140032008
Capabilities:
Parse pe header

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

Function at 0x14005a440
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x14006d068
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x14006d09a
movzx eax, byte [rcx + rdx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x14006d07d
mov rax, r8
ret

Function at 0x140062d50
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x140069e68
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x140069e9a
movzx eax, byte [rcx + rdx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x140069e7d
mov rax, r8
ret

Function at 0x140079238
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x28
call fcn.14007f398
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x14007928a
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 0x14007928a
sub ecx, 1
je 0x140079283
cmp ecx, 1
je 0x14007927c
xor eax, eax
jmp 0x14007928f
mov eax, 3
jmp 0x14007928f
mov eax, 1
jmp 0x14007928f
mov eax, 2
add rsp, 0x28
ret

Function at 0x1400a4484
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400a46d8
Function at 0x1400a46d8
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1400a46d8
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 0x1400a4747
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400a4747
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400a4747
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400a4747
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400a4747
cmp dword [rcx + 0x84], 0xe
jbe 0x1400a4747
cmp dword [rcx + 0xf8], 0
je 0x1400a4747
mov ecx, ebx
call fcn.1400a458c
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.1400a48f4
nop
cmp dword [rbp + 0x20], 0
jne 0x1400a47a8
call fcn.1400ce2bc
cmp eax, 1
jne 0x1400a4798
xor dl, dl
jmp 0x1400a47a2
call fcn.1400ce288
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x1400a47b3
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400a4674
int3

Function at 0x1400a9a64
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x140cdeac0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov r10, rax
lea rdx, [rax - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x1400a9af0
lea r8, [rsp + 0x40]
xor edx, edx
mov cl, byte [rbx]
lea rax, [rsp + 0x234]
mov byte [r8], cl
inc r8
cmp r8, rax
je 0x1400a9ac2
movzx eax, word [rbx]
add rbx, 2
test ax, ax
jne 0x1400a9aa1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x233], dl
sub r8d, eax
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x30]
dec r8d
lea rdx, [rsp + 0x40]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14002fa60
add rsp, 0x250
pop rbx
ret

Function at 0x1400b7370
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400b7398
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400b7398
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400c5b34
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 [0x140cef050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x1400c5b99
test rax, rax
jne 0x1400c5b87
lea r9, [0x140b86660]
lea r8, [0x140b86658]
lea rdx, [0x140b86660]
lea ecx, [rax + 0xa]
call fcn.1400c6c40
test rax, rax
je 0x1400c5b99
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.1400e5100
jmp 0x1400c5bb3
xor edx, edx
mov rcx, rbp
call fcn.1400c5f98
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 0x1400d13a8
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 0x1400d141b
cmp word [rcx], si
je 0x1400d141b
lea rdx, [0x140b87ab8]
call fcn.1400dedb8
test eax, eax
je 0x1400d141b
lea rdx, [0x140b87ad0]
mov rcx, rbx
call fcn.1400dedb8
test eax, eax
jne 0x1400d1411
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 0x1400d1438
mov eax, dword [rsp + 0x30]
jmp 0x1400d144a
mov rcx, rbx
call fcn.1400d76bc
jmp 0x1400d144a
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 0x1400d143c
xor eax, eax
jmp 0x1400d144a
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x1400d144a
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 0x1400d1480
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.1400c47ac
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 0x1400d1523
cmp edi, dword [rsp + 0x30]
je 0x1400d151c
test ebp, ebp
je 0x1400d151c
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x1400d14f8
sub dx, 0x61
cmp dx, 0x19
ja 0x1400d1504
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x1400d14e5
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x1400d1508
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x1400d1525
mov eax, 1
jmp 0x1400d1525
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400d371c
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 0x1400d374c
xor eax, eax
jmp 0x1400d380f
mov rbp, rbx
cmp word [rax], si
je 0x1400d3771
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400d3758
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400d3754
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.1400c45cc
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x1400d37b2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400d3745
call fcn.1400c4450
mov rdi, rax
test rax, rax
jne 0x1400d37c8
xor ecx, ecx
call fcn.1400c43f0
jmp 0x1400d37a7
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.1400c45cc
test eax, eax
jne 0x1400d37f9
mov rcx, rdi
call fcn.1400c43f0
jmp 0x1400d3803
xor ecx, ecx
call fcn.1400c43f0
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 0x1400d382c
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 0x1400d38b3
mov rsi, rbx
cmp word [rax], bp
je 0x1400d3872
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400d385c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400d3858
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400c4450
mov rdi, rax
test rax, rax
je 0x1400d38a0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400e52c0
mov rbp, rdi
xor ecx, ecx
call fcn.1400c43f0
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 0x1400d4564
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, r8d
mov rbp, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ebx, eax
test eax, eax
je 0x1400d45ac
test rdi, rdi
je 0x1400d459b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.1400ce370
cmp eax, 1
je 0x1400d45ac
mov eax, 4
jmp 0x1400d45f1
call fcn.1400ce32c
cmp eax, 2
jne 0x1400d45e8
call fcn.1400c6424
test al, al
je 0x1400d45e8
call fcn.1400c6740
test al, al
jne 0x1400d45de
bts esi, 0x15
xor ecx, ecx
mov rdx, rdi
mov r8, rbp
mov r9d, esi
call fcn.1400c60ec
jmp 0x1400d45f1
call fcn.1400c66a8
mov rcx, rax
jmp 0x1400d45ce
neg ebx
sbb eax, eax
neg eax
add eax, 3
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400ddf60
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400ddf76
mov al, 1
jmp 0x1400ddfe2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400ddf87
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400ddfe0
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400d47b4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400ddfe0
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 0x1400ddfe0
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400ddfe0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400ddfe2
xor al, al
add rsp, 0x20
pop rbx
ret