joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140027f5c
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, [0x140049aa0]
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 0x140027fb3
cmp word [rdx], r13w
jne 0x140027fb3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140027fb8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400280dd
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400280fe
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140027ff1
mov rdx, r9
mov word [rbx], cx
jmp 0x140028018
cmp r9, r8
jae 0x140028028
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 0x140027fd2
jmp 0x1400280dd
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 0x1400280d2
cmp dword [rsp + 0x80], esi
je 0x1400280d2
lea r8, [0x140049aa0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400280aa
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14002807a
mov word [rbx], r13w
jmp 0x1400280da
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 0x140028087
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400280da
cmp word [rsp + 0x70], r13w
jne 0x1400280b7
cmp rbx, r14
je 0x140028074
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140028bc4
cmp word [rsp + 0x70], r13w
je 0x1400280dd
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, [0x140049aa0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400280d7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400280dd
Function at 0x14002b22c
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 0x14002b25c
xor eax, eax
jmp 0x14002b31f
mov rbp, rbx
cmp word [rax], si
je 0x14002b281
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002b268
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002b264
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.14002996c
movsxd r14, eax
test eax, eax
jne 0x14002b2bf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002b255
mov rcx, r14
call fcn.1400228f0
mov rdi, rax
test rax, rax
jne 0x14002b2d8
xor ecx, ecx
call fcn.1400228b4
jmp 0x14002b2b4
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.14002996c
test eax, eax
jne 0x14002b309
mov rcx, rdi
call fcn.1400228b4
jmp 0x14002b313
xor ecx, ecx
call fcn.1400228b4
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 0x14002e294
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.1400231d4
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 0x14002e335
cmp ebx, dword [rsp + 0x30]
je 0x14002e32e
test esi, esi
je 0x14002e32e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14002e309
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14002e316
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14002e2f3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14002e31a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14002e337
mov eax, 1
jmp 0x14002e337
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140031044
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.1400197dc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400310ce
cmp byte [rbp - 0x21], r15b
je 0x1400310c9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140031104
call fcn.140023854
test eax, eax
jne 0x1400310f0
cmp byte [rbp - 0x21], r15b
je 0x1400310e8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140031104
cmp byte [rbp - 0x21], r15b
je 0x140031101
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.14001ec3c
test eax, eax
jne 0x1400311a4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400197dc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140031143
cmp byte [rbp - 0x21], r15b
je 0x140031178
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140031178
call fcn.140023854
test eax, eax
jne 0x140031164
cmp byte [rbp - 0x21], r15b
je 0x14003115d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140031178
cmp byte [rbp - 0x21], r15b
je 0x140031175
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.14001ec3c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400311a4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400311a7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400311b5
mov rcx, rdi
call fcn.1400228b4
cmp byte [rbp + 0x3f], r15b
je 0x1400311c4
mov rcx, qword [rbp + 0x27]
call fcn.1400228b4
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

Function at 0x140032c70
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140032c98
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140032c98
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140068a20]
mov dword [rax], 1
mov rax, qword [0x140068a30]
mov dword [rax], 1
mov rax, qword [0x140068a40]
mov dword [rax], 1
mov rax, qword [0x1400689d0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14002d750
Capabilities:
Query environment variable

Disassembly:
push rsi
mov eax, 0x10078
push rbx
call fcn.14004bac0
sub rsp, rax
xor eax, eax
mov rdx, rcx
lea rbx, [rsp + 0x20]
xor ecx, ecx
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], cx
lea rsi, [rsp + 0x70]
mov rcx, rbx
call fcn.140042a80
mov rdx, rsi
mov r8d, 0x10000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x14002d7a9
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add rsp, 0x10078
pop rbx
pop rsi
ret
Function at 0x14004a7a0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14005bf20
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14005bf20
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x14004b472
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140072a88]
test eax, eax
je 0x14004b50a
lea rax, [0x140072a60]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140072a90]
mov qword [rbp - 8], rax
jmp 0x14004b4ee
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14004b4e2
cmp qword [rbp - 0x10], 0
je 0x14004b4e2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14004b4a8
lea rax, [0x140072a60]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14004b50b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14004b610
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14004b638
mov eax, 0
jmp 0x14004b686
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14004b661
mov eax, 0
jmp 0x14004b686
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14004b681
mov eax, 0
jmp 0x14004b686
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14004b68c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14004b70a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14004b701
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14004b701
mov rax, qword [rbp - 8]
jmp 0x14004b71f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14004b6d4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400de090
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x140168f20
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp], 0
jmp 0x140168f48
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp], rax
jae 0x140168f92
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rsp + 0x20]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
movabs rax, 0x100000001b3
mov rcx, qword [rsp + 0x20]
imul rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
jmp 0x140168f3d
mov rax, qword [rsp + 0x20]
add rsp, 0x18
ret

Function at 0x1400de590
Capabilities:
Terminate process

Disassembly:
jmp 0x140106ae0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, [0x1409fe125]
call fcn.1400e2ee2
nop
cmp qword [rbp + 0xe8], 0
je 0x140106b32
cmp qword [rbp + 0xe8], 0xffffffffffffffff
je 0x140106b32
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbp + 0xe8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov rax, qword [rbp + 0xe0]
cmp qword [rax + 8], 0
je 0x140106b52
mov rax, qword [rbp + 0xe0]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, qword [rbp + 0xe0]
cmp qword [rax], 0
je 0x140106b86
mov edx, 0xffffffff
mov rax, qword [rbp + 0xe0]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
mov rax, qword [rbp + 0xe0]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret
Function at 0x1400dfa3f
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1402266a0
mov rax, rcx
neg rcx
test rax, 7
je 0x1402266bd
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x140226718
test al, 7
jne 0x1402266b0
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x1402266d1
mov rdx, qword [rax - 8]
test dl, dl
je 0x140226742
test dh, dh
je 0x14022673c
shr rdx, 0x10
test dl, dl
je 0x140226736
test dh, dh
je 0x140226730
shr rdx, 0x10
test dl, dl
je 0x14022672a
test dh, dh
je 0x140226724
shr edx, 0x10
test dl, dl
je 0x14022671e
test dh, dh
jne 0x1402266d1
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1400dfa8a
Capabilities:
Query environment variable

Disassembly:
jmp 0x140278b70
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1402786f0
lea rcx, [rsp + 0x20]
call fcn.140278740
movzx eax, al
test eax, eax
jne 0x140278bb5
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.140278720
mov rax, qword [rsp + 0x40]
jmp 0x140278caf
lea rcx, [rsp + 0x20]
call fcn.140278840
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.1402787e0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, [0x1402e1690]
mov edx, 2
mov rcx, rax
call fcn.1400dfe8b
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400df305
lea rcx, [rsp + 0x28]
call fcn.1400e043f
movzx eax, al
test eax, eax
jne 0x140278c4f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.1400e1bb4
lea rcx, [rsp + 0x20]
call fcn.140278720
mov rax, qword [rsp + 0x50]
jmp 0x140278caf
lea rcx, [rsp + 0x20]
call fcn.140278840
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1400e2dc0
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.1400dfda5
lea rcx, [rsp + 0x28]
call fcn.1400e38b0
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.1400e1bb4
lea rcx, [rsp + 0x20]
call fcn.140278720
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x1400e006b
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1401bb2f0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1401bac70
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401bb32f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1409ff020]
jmp 0x1401bb339
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x1400e033b
Capabilities:
Query environment variable

Disassembly:
jmp 0x1402788c0
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1402786f0
lea rcx, [rsp + 0x40]
call fcn.140278870
movzx eax, al
test eax, eax
jne 0x140278908
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.140278720
mov rax, qword [rsp + 0x70]
jmp 0x140278ad9
lea rcx, [rsp + 0x40]
call fcn.140278840
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1402787e0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.140278840
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.1400e179f
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1402789ae
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.140278720
mov rax, qword [rsp + 0x80]
jmp 0x140278ad9
mov r9d, 0x66
lea r8, [0x1402e1690]
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1400dfe8b
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400dfc0b
lea rcx, [rsp + 0x48]
call fcn.1400df562
movzx eax, al
test eax, eax
jne 0x140278a15
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400dded8
lea rcx, [rsp + 0x40]
call fcn.140278720
mov rax, qword [rsp + 0x88]
jmp 0x140278ad9
lea rcx, [rsp + 0x48]
call fcn.1400e0908
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.140278840
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.1400e179f
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x140278aab
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400dded8
lea rcx, [rsp + 0x40]
call fcn.140278720
mov rax, qword [rsp + 0xa0]
jmp 0x140278ad9
lea rcx, [rsp + 0x48]
call fcn.1400dfbc0
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400dded8
lea rcx, [rsp + 0x40]
call fcn.140278720
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret

Function at 0x1400e0359
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1401bb220
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1401babf0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401bb261
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1409ff020]
jmp 0x1401bb267
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x1400e0444
Capabilities:
Get geographical location

Disassembly:
jmp 0x140258fa0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.140257ed0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140259007
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x1409ff030]
jmp 0x140259029
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400df4b3
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x1400e045d
Capabilities:
Terminate process

Disassembly:
jmp 0x1401990c0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret
Function at 0x1400e07f0
Capabilities:
Create directory

Disassembly:
jmp 0x14011e210
push rbp
push rdi
sub rsp, 0x408
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x96
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1409de940]
xor rax, rbp
mov qword [rbp + 0x3c8], rax
lea rcx, [0x1409fe124]
call fcn.1400e2ee2
nop
lea rdx, str.C:WindowsLogsDPX
lea rcx, [rbp + 8]
call fcn.1400defc2
nop
lea r8, str._setuparr.log
lea rdx, [rbp + 8]
lea rcx, [rbp + 0x48]
call fcn.1400e227b
nop
lea rcx, [rbp + 8]
call fcn.1400df03a
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14011e2cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x84], eax
cmp dword [rbp + 0x84], 0xb7
je 0x14011e2cc
mov dword [rbp + 0x354], 1
lea rcx, [rbp + 0x48]
call fcn.1400e20c3
nop
lea rcx, [rbp + 8]
call fcn.1400e20c3
mov eax, dword [rbp + 0x354]
jmp 0x14011e3f6
mov edx, pe_nt_image_headers64
lea rcx, [rbp + 0xb0]
call fcn.1400df55d
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 0x20
lea rdx, [rbp + 0x48]
lea rcx, [rbp + 0xb0]
call fcn.1400de527
nop
mov rax, qword [rbp + 0xb0]
movsxd rax, dword [rax + 4]
lea rax, [rbp + rax + 0xb0]
mov rcx, rax
call fcn.1400df9a4
movzx eax, al
test eax, eax
je 0x14011e394
mov r8d, 0x5b0400
lea rdx, section..data
lea rcx, [rbp + 0xb0]
call fcn.1400e0188
nop
mov rax, qword [rbp + 0xb0]
movsxd rax, dword [rax + 4]
lea rax, [rbp + rax + 0xb0]
mov rcx, rax
call fcn.1400e3207
movzx eax, al
test eax, eax
je 0x14011e392
mov dword [rbp + 0x374], 1
lea rcx, [rbp + 0xb0]
call fcn.1400de752
nop
lea rcx, [rbp + 0x48]
call fcn.1400e20c3
nop
lea rcx, [rbp + 8]
call fcn.1400e20c3
mov eax, dword [rbp + 0x374]
jmp 0x14011e3f6
jmp 0x14011e3c6
mov dword [rbp + 0x394], 1
lea rcx, [rbp + 0xb0]
call fcn.1400de752
nop
lea rcx, [rbp + 0x48]
call fcn.1400e20c3
nop
lea rcx, [rbp + 8]
call fcn.1400e20c3
mov eax, dword [rbp + 0x394]
jmp 0x14011e3f6
mov dword [rbp + 0x3b4], 0
lea rcx, [rbp + 0xb0]
call fcn.1400de752
nop
lea rcx, [rbp + 0x48]
call fcn.1400e20c3
nop
lea rcx, [rbp + 8]
call fcn.1400e20c3
mov eax, dword [rbp + 0x3b4]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1402b3120]
call fcn.1400e1e57
mov rax, rdi
mov rcx, qword [rbp + 0x3c8]
xor rcx, rbp
call fcn.1400dfd73
lea rsp, [rbp + 0x3d8]
pop rdi
pop rbp
ret