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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400b48b4
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1400b48b4
dec r8
sub rdx, 1
jne 0x1400b489a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x10001abd4
Capabilities:
Encode data using xor

Disassembly:
movabs byte [0x97b4b8d05fcc5317], al
pop rbp
invalid
out 0xdd, al
jae 0x10001ab5b
invalid
hlt
lodsb al, byte [rsi]
in eax, 0x70
out 0xbf, eax
push 0xffffffffffffffd4
cld
out dx, eax
sti
inc eax
outsd dx, dword [rsi]
mul dword [rsi - 0x43820230]
cmpsb byte [rsi], byte [rdi]
sar ch, 1
jge 0x10001ab95
cmpsb byte [rsi], byte [rdi]
sar ch, 1
jge 0x10001ab95
xor dh, al
pop rbp
rcl byte [rbp - 0x6c], 0x55
sal dword [rsi - 0x48], 5
movsxd rax, dword [rsi - 0x68]
jg 0x10001abc6
push rdi
punpckhbw mm1, mm6
jns 0x10001ac0e
int 0xb
vcmpsd xmm8, xmm0, xmm5, 0xb6
movntq qword [rdi + 0x27], mm6
jp 0x10001abae
invalid
push 0x6fa396ee
retf
Function at 0x140004940
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x7c0]
sub rsp, 0x8c0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x7b0], rax
mov edi, edx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r14d, r14d
mov ebx, eax
cmp dword [0x14000e02c], 0xffffffff
jne 0x140004a52
cmp byte [0x1400100c0], r14b
mov r9d, 0x20019
mov dword [0x14000e02c], r14d
mov qword [rsp + 0x30], r14
jne 0x1400049b6
cmp byte [0x14000ff08], r14b
mov eax, 0x20119
cmovne r9d, eax
lea rax, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.SoftwarePoliciesMicrosoftWindowsInstaller
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140004a52
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rdx, str.Debug
lea rax, [rsp + 0x38]
mov dword [rsp + 0x48], 0x28
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x50]
mov dword [rsp + 0x38], 0x50
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140004a35
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax]
and ecx, 3
mov dword [0x14000e02c], ecx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x48], 0x28
jle 0x140004a52
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [0x14000e02c]
and eax, 3
test al, al
je 0x140004ab5
xor edx, edx
mov word [rbp - 0x60], r14w
mov r8d, 0x800
lea rcx, [rbp - 0x5e]
call sub.msvcrt.dll_memset
lea rcx, [rbp - 0x60]
mov edx, 0xf1000401
invalid
invalid
Function at 0x140008e70
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov rax, qword [rsp + 8]
and rdx, 0
dec rax
cmp word [rax], 0x5a4d
jne 0x140008e0b
je 0x140008e16
call 0x140008e65
mov bl, 0xc7
lahf
pop rsi
jne 0x140008df6
call 0x140008e0e
mov ecx, edi
xor eax, 0x3c508b0b
mov edx, dword [rax + 0x3c]
cmp edx, 0x400
jae 0x140008df6
sub rax, 0x48b5
add rdx, rax
add rdx, 0x48b5
add rax, 0x48b5
cmp word [rdx], 0x4550
jne 0x140008e44
je 0x140008e82
invalid
je 0x140008e93
jne 0x140008df6
lea rax, [0x140008d1c]
sub rsp, 8
mov qword [rsp], rcx
mov rcx, 0xffffffffffff2810
add rcx, 0xd960
add rcx, rax
push rcx
xchg rcx, rax
add rsp, 8
mov rcx, qword [rsp - 8]
mov rcx, qword [rsp]
add rsp, 8
call rax
lodsd eax, dword [rsi]
push rbp
movabs byte [0x894808ec8348c391], al
sub al, 0x24
mov rbp, rsp
mov qword [rsp - 8], 0
ret
add byte [rax], al
add byte [rax], al
sub rsp, 8
pop rax
add rax, rcx
sub rsp, 0x1e0
sub rsp, 0x20
and spl, 0xf0
mov byte [rbp - 0xd], 0x56
mov byte [rbp - 0xc], 0x69
mov byte [rbp - 0xb], 0x72
mov byte [rbp - 0xa], 0x74
mov byte [rbp - 9], 0x75
mov byte [rbp - 8], 0x61
mov byte [rbp - 7], 0x6c
mov byte [rbp - 6], 0x41
mov byte [rbp - 5], 0x6c
mov byte [rbp - 4], 0x6c
mov byte [rbp - 3], 0x6f
mov byte [rbp - 2], 0x63
mov byte [rbp - 1], 0
mov qword [rsp - 8], rsi
sub rsp, 8
add rsp, 8
mov rcx, qword [rsp - 8]
lea rdx, [rbp - 0xd]
call rax
sub rsp, 8
mov qword [rsp], 0
add rsp, 8
mov rcx, qword [rsp - 8]
mov rdx, 0x61be
mov r8, 0x3000
mov r9, 0x40
call rax
mov rcx, 0x4615
lea r9, [0x140004a7d]
dec rcx
mov dl, byte [r9 + rcx]
mov byte [rax + rcx], dl
test rcx, rcx
jne 0x140008f34
mov rcx, 0x3fe0
mov r9d, 0x15c13
mov r10d, 0x92819200
dec rcx
mov dl, byte [rax + rcx]
xor dl, r9b
mov byte [rax + rcx], dl
sub r10d, 0x26fe2
add r9d, r10d
add r9d, 0x26fe2
add r10d, 0x26fe2
rol r9d, 1
test rcx, rcx
jne 0x140008f8d
je 0x140008f93
call 0x140008f84
fild qword [rdi - 0x7c]
jmp 0x174f45706
jne 0x140008f56
xor al, 1
add byte [rbp - 0x7f], dh
jne 0x140008f16
add rax, 0x1ed4
mov rsp, rbp
pop rbp
ret

Function at 0x1400096cc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140009718
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140009710
cmp dword [rcx + 0x3c], edx
jl 0x140009710
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140009710
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140009718
mov rax, rdx
add rsp, 0x18
ret

Function at 0x18060d485
Capabilities:
Encode data using xor

Disassembly:
not r11w
mov qword [rsp], r11
xor cx, si
neg cx
neg word [rsp + 5]
pop r11
ror r11, 0xc5
adc cx, 0x81bd
dec r11d
shl r11w, 0xa4
not r11b
neg cx
xor cx, 0x4c31
call fcn.18062ae55
mov eax, 0xac10b22b
mov r9d, 0x57290e1a
lea rsi, [rsi + r9 - 0x57290e1c]
jmp 0x18062372f
sar r9d, 0xfd
neg ax
movzx eax, word [r9 + rsi - 2]
shl r9w, 0xe
jb 0x180608dc0
xor ax, bp
ror r9w, 0x4a
call fcn.1806111ad
Function at 0x6daa63e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6dac75e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6daa6568
mov rax, qword [0x6dac75e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6daa642c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6daa64b5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6daa6410
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6daa659d
mov rax, qword [0x6dac75e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6dac75e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6daa6580
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6daa64ae
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6daa6510
add dword [0x6dac75e4], 1
cmp edi, 8
jae 0x6daa64e3
test dil, 4
jne 0x6daa6554
test edi, edi
je 0x6daa64d8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6daa656f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6daa64d8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6daa64fc
jmp 0x6daa64d8
add rsi, qword [0x6dac75e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6daa64ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6daa64d8
xor esi, esi
jmp 0x6daa6437
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6daa64d8
mov rax, qword [0x6dac75e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6daa6cf0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6dac78c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6dac78a0]
test rbx, rbx
je 0x6daa6d44
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 0x6daa6d3b
test rsi, rsi
je 0x6daa6d3b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6daa6d20
lea rcx, [0x6dac78c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6daa6f80
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6daa6f90
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6daa6fa0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6daa6fe1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6daa6fd8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6daa6fe3
add rax, 0x28
cmp rax, r9
jne 0x6daa6fc4
xor eax, eax
ret

Function at 0x6daa7080
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6dac41f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6daa70ed
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6daa70ed
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6daa70ed
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6daa70e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6daa70ef
add rax, 0x28
cmp rax, r9
jne 0x6daa70d0
xor eax, eax
add rsp, 0x28
ret

Function at 0x6daa71f0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6dac41f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6daa7210
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6daa7208
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6daa726d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6daa7264
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6daa7274
add rax, 0x28
cmp rax, r9
jne 0x6daa7250
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6daa7290
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6dac41f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6daa72fe
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6daa72fe
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6daa72fe
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6daa72fe
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6daa72f5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6daa7305
add rcx, 0x28
cmp rcx, rax
jne 0x6daa72e0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6daa7318
jmp 0x6daa72fe
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6daa7326
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6daa72fe
test r9d, r9d
jg 0x6daa7310
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6daa7660
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x100003668
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x1000036b5
cmp rcx, 0xffffffffffffffff
je 0x1000036b5
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1000036ad
cmp dword [rcx + 0x3c], edx
jl 0x1000036ad
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1000036ad
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1000036b5
mov rax, rdx
add rsp, 0x18
ret
Function at 0x1400074c0
Capabilities:
Read file on windows

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, 0x20
mov rsi, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x1400074ee
xor eax, eax
jmp 0x1400075da
cmp qword [rcx + 0x68], 0
je 0x140007502
lfence
call fcn.140007600
jmp 0x1400075da
mov rax, qword [rcx + 0x38]
mov rbp, rsi
mov rdx, qword [rax]
test rdx, rdx
je 0x140007519
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000751b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000754d
cmp rax, rsi
mov rbx, rsi
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140008e10
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rbp, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x1400075d1
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140007584
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x1400075ad
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14001375c
add r14, rax
sub rbp, rax
cmp rax, rbx
jne 0x1400075d1
cmp rbp, rbx
ja 0x14000758b
test rbp, rbp
je 0x1400075d1
mov r9, qword [rdi + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, r14
call fcn.14001375c
sub rbp, rax
sub rsi, rbp
mov rax, rsi
lfence
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140008ae8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140008b32
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140008b32
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140008b32
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140008b32
cmp dword [rcx + 0x84], 0xe
jbe 0x140008b32
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140008b34
xor al, al
add rsp, 0x28
ret
Function at 0x14001f8d0
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.1400083e0
sub rsp, rax
mov rax, qword [0x14003f038]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001c8f4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001f91f
mov rax, rbp
jmp 0x14001fa27
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 + 0x41400]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400209f0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x41400]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001fa23
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 0x14001fa23
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400209f0
test rax, rax
js 0x14001fa23
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001fa23
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001fa15
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001fa15
cmp byte [rcx], 0xd
jne 0x14001f9fb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001fa0a
cmp byte [rcx + 1], 0xa
jne 0x14001fa0a
inc rcx
jmp 0x14001fa0a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3f440]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001f9dd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001fa27
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140007ea0
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 0x14001fc48
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001fc5e
mov al, 1
jmp 0x14001fcbe
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001fc6f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001fcbc
mov ecx, dword [rcx + 0x18]
nop
call fcn.140022ec4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001fcbc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001fcbc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001fcbc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001fcbe
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001fd90
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, [0x140041400]
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 0x14001fde7
cmp word [rdx], r13w
jne 0x14001fde7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001fdec
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001ff11
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001ff32
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001fe25
mov rdx, r9
mov word [rbx], cx
jmp 0x14001fe4c
cmp r9, r8
jae 0x14001fe5c
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 0x14001fe06
jmp 0x14001ff11
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 0x14001ff06
cmp dword [rsp + 0x80], esi
je 0x14001ff06
lea r8, [0x140041400]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001fede
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001feae
mov word [rbx], r13w
jmp 0x14001ff0e
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 0x14001febb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001ff0e
cmp word [rsp + 0x70], r13w
jne 0x14001feeb
cmp rbx, r14
je 0x14001fea8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400209f8
cmp word [rsp + 0x70], r13w
je 0x14001ff11
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, [0x140041400]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001ff0b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001ff11
Function at 0x1400226bc
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 0x140022743
mov rsi, rbx
cmp word [rax], bp
je 0x140022702
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400226ec
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400226e8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001b770
mov rdi, rax
test rax, rax
je 0x140022730
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140008e10
mov rbp, rdi
xor ecx, ecx
call fcn.14001b2b4
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 0x140025458
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.14001a3c0
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 0x1400254f9
cmp ebx, dword [rsp + 0x30]
je 0x1400254f2
test esi, esi
je 0x1400254f2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400254cd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400254da
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400254b7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400254de
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400254fb
mov eax, 1
jmp 0x1400254fb
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14004c650
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
cmp qword [rsp + 0x60], 0
je 0x14004c66e
cmp qword [rsp + 0x68], 0
jne 0x14004c675
xor eax, eax
jmp 0x14004c7a1
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov dword [rsp], 0
jmp 0x14004c716
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x18]
cmp dword [rsp], eax
jae 0x14004c79f
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
movzx edx, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x14004c75e
inc rax
test dl, dl
jne 0x14004c74b
xor eax, eax
jmp 0x14004c763
sbb eax, eax
or eax, 1
test eax, eax
jne 0x14004c79a
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x38]
movzx eax, word [rcx + rax*2]
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 0x10]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
jmp 0x14004c7a1
jmp 0x14004c70e
xor eax, eax
add rsp, 0x58
ret