joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000295a
Capabilities:
Query environment variable

Disassembly:
jmp 0x18005fa84
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 0x18005fab4
xor eax, eax
jmp 0x18005fb77
mov rbp, rbx
cmp word [rax], si
je 0x18005fad9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18005fac0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18005fabc
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.180003341
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x18005fb1a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18005faad
call fcn.180001037
mov rdi, rax
test rax, rax
jne 0x18005fb30
xor ecx, ecx
call fcn.180001177
jmp 0x18005fb0f
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.180003341
test eax, eax
jne 0x18005fb61
mov rcx, rdi
call fcn.180001177
jmp 0x18005fb6b
xor ecx, ecx
call fcn.180001177
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 0x18000295f
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x180019ab0
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x18008b270]
xor ecx, ecx
lea r8, [0x18008b268]
lea rdx, str.FlsAlloc
call fcn.180019630
test rax, rax
je 0x180019ae9
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x1800ae020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x1800029dc
Capabilities:
Get geographical location

Disassembly:
jmp 0x1800622c8
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1800af050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x18006232d
test rax, rax
jne 0x18006231b
lea r9, [0x18008dbb8]
lea r8, [0x18008dbb0]
lea rdx, str.GetLocaleInfoEx
lea ecx, [rax + 0xa]
call fcn.180061758
test rax, rax
je 0x18006232d
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.1800043c2
jmp 0x180062347
xor edx, edx
mov rcx, rbp
call fcn.1800022ac
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 0x1800029f0
Capabilities:
Terminate process

Disassembly:
jmp 0x1800096d8
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x180002b4e
Capabilities:
Parse pe header

Disassembly:
jmp 0x18002133c
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x180021088

Function at 0x180002cf2
Capabilities:
Parse pe header

Disassembly:
jmp 0x18007ed00
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18007ed28
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18007ed28
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1800032b5
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x18007ec40
movsxd r8, dword [rcx + 0x3c]
xor r9d, r9d
add r8, rcx
mov r10, rdx
movzx eax, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rax, 0x18
add rax, r8
test r11d, r11d
je 0x18007ec81
mov edx, dword [rax + 0xc]
cmp r10, rdx
jb 0x18007ec75
mov ecx, dword [rax + 8]
add ecx, edx
cmp r10, rcx
jb 0x18007ec83
inc r9d
add rax, 0x28
cmp r9d, r11d
jb 0x18007ec63
xor eax, eax
ret

Function at 0x1800034bd
Capabilities:
Terminate process

Disassembly:
jmp 0x18001eeb8
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x18001eed2
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.180003bc0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x180003ad0
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x18007e25c
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x18000003c]
lea rsi, [0x180000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x18007e2d5
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x18007e2d5
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
cmp r9w, r11w
jae 0x18007e2d5
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x18007e2c9
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x18007e2e7
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x18007e2b7
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x18007e2d7
Function at 0x180003c9c
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x180019bb8
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x18008b2d0]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x18008b2c8]
call fcn.180019630
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x180019bf8
call qword [0x1800ae020]
jmp 0x180019bfe
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180003d32
Capabilities:
Set environment variable

Disassembly:
jmp 0x18006f930
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.1800021e4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x18006f9ba
cmp byte [rbp - 0x21], r15b
je 0x18006f9b5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x18006f9f0
call fcn.180004106
test eax, eax
jne 0x18006f9dc
cmp byte [rbp - 0x21], r15b
je 0x18006f9d4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x18006f9f0
cmp byte [rbp - 0x21], r15b
je 0x18006f9ed
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.18000431d
test eax, eax
jne 0x18006fa90
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1800021e4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x18006fa2f
cmp byte [rbp - 0x21], r15b
je 0x18006fa64
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x18006fa64
call fcn.180004106
test eax, eax
jne 0x18006fa50
cmp byte [rbp - 0x21], r15b
je 0x18006fa49
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x18006fa64
cmp byte [rbp - 0x21], r15b
je 0x18006fa61
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.18000431d
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x18006fa90
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x18006fa93
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x18006faa1
mov rcx, rdi
call fcn.180001177
cmp byte [rbp + 0x3f], r15b
je 0x18006fab0
mov rcx, qword [rbp + 0x27]
call fcn.180001177
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 0x180003e27
Capabilities:
Parse pe header

Disassembly:
jmp 0x18002132c
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 0x1800210f7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800210f7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1800210f7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1800210f7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1800210f7
cmp dword [rcx + 0x84], 0xe
jbe 0x1800210f7
cmp dword [rcx + 0xf8], 0
je 0x1800210f7
mov ecx, ebx
call fcn.18002127c
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.180020df8
nop
cmp dword [rbp + 0x20], 0
jne 0x180021158
call fcn.1800016c2
cmp eax, 1
jne 0x180021148
xor dl, dl
jmp 0x180021152
call fcn.180002464
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x180021163
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800211a4
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180021088

Function at 0x180021088
Capabilities:
Parse pe header

Disassembly:
jmp 0x18002132c
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 0x1800210f7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800210f7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1800210f7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1800210f7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1800210f7
cmp dword [rcx + 0x84], 0xe
jbe 0x1800210f7
cmp dword [rcx + 0xf8], 0
je 0x1800210f7
mov ecx, ebx
call fcn.18002127c
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.180020df8
nop
cmp dword [rbp + 0x20], 0
jne 0x180021158
call fcn.1800016c2
cmp eax, 1
jne 0x180021148
xor dl, dl
jmp 0x180021152
call fcn.180002464
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x180021163
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800211a4
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180021088
Function at 0x1800581c0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [section..data]
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 0x18005824c
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 0x18005821e
movzx eax, word [rbx]
add rbx, 2
test ax, ax
jne 0x1800581fd
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.1800026cb
add rsp, 0x250
pop rbx
ret

Function at 0x180059d64
Capabilities:
Print debug messages

Disassembly:
jmp 0x180059d64
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 0x180059dac
test rdi, rdi
je 0x180059d9b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.18000184d
cmp eax, 1
je 0x180059dac
mov eax, 4
jmp 0x180059df1
call fcn.180003b75
cmp eax, 2
jne 0x180059de8
call fcn.1800018ac
test al, al
je 0x180059de8
call fcn.180002c2a
test al, al
jne 0x180059dde
bts esi, 0x15
xor ecx, ecx
mov rdx, rdi
mov r8, rbp
mov r9d, esi
call fcn.180003bb1
jmp 0x180059df1
call fcn.180003a3f
mov rcx, rax
jmp 0x180059dce
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 0x18005fa84
Capabilities:
Query environment variable

Disassembly:
jmp 0x18005fa84
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 0x18005fab4
xor eax, eax
jmp 0x18005fb77
mov rbp, rbx
cmp word [rax], si
je 0x18005fad9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18005fac0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18005fabc
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.180003341
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x18005fb1a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18005faad
call fcn.180001037
mov rdi, rax
test rax, rax
jne 0x18005fb30
xor ecx, ecx
call fcn.180001177
jmp 0x18005fb0f
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.180003341
test eax, eax
jne 0x18005fb61
mov rcx, rdi
call fcn.180001177
jmp 0x18005fb6b
xor ecx, ecx
call fcn.180001177
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 0x18005fbd8
Capabilities:
Query environment variable

Disassembly:
jmp 0x18005fbd8
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 0x18005fc5f
mov rsi, rbx
cmp word [rax], bp
je 0x18005fc1e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x18005fc08
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x18005fc04
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.180001037
mov rdi, rax
test rax, rax
je 0x18005fc4c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1800026d0
mov rbp, rdi
xor ecx, ecx
call fcn.180001177
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 0x1800622c8
Capabilities:
Get geographical location

Disassembly:
jmp 0x1800622c8
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1800af050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x18006232d
test rax, rax
jne 0x18006231b
lea r9, [0x18008dbb8]
lea r8, [0x18008dbb0]
lea rdx, str.GetLocaleInfoEx
lea ecx, [rax + 0xa]
call fcn.180061758
test rax, rax
je 0x18006232d
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.1800043c2
jmp 0x180062347
xor edx, edx
mov rcx, rbp
call fcn.1800022ac
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 0x18006c614
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 0x18006c687
cmp word [rcx], si
je 0x18006c687
lea rdx, [0x18008fd00]
call fcn.1800026fd
test eax, eax
je 0x18006c687
lea rdx, [0x18008fd20]
mov rcx, rbx
call fcn.1800026fd
test eax, eax
jne 0x18006c67d
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 0x18006c6a4
mov eax, dword [rsp + 0x30]
jmp 0x18006c6b6
mov rcx, rbx
call fcn.180001082
jmp 0x18006c6b6
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 0x18006c6a8
xor eax, eax
jmp 0x18006c6b6
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x18006c6b6
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 0x18006c724
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.180001a5f
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 0x18006c7c7
cmp edi, dword [rsp + 0x30]
je 0x18006c7c0
test ebp, ebp
je 0x18006c7c0
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x18006c79c
sub dx, 0x61
cmp dx, 0x19
ja 0x18006c7a8
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x18006c789
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x18006c7ac
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x18006c7c9
mov eax, 1
jmp 0x18006c7c9
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 0x18006f930
Capabilities:
Set environment variable

Disassembly:
jmp 0x18006f930
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.1800021e4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x18006f9ba
cmp byte [rbp - 0x21], r15b
je 0x18006f9b5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x18006f9f0
call fcn.180004106
test eax, eax
jne 0x18006f9dc
cmp byte [rbp - 0x21], r15b
je 0x18006f9d4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x18006f9f0
cmp byte [rbp - 0x21], r15b
je 0x18006f9ed
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.18000431d
test eax, eax
jne 0x18006fa90
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1800021e4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x18006fa2f
cmp byte [rbp - 0x21], r15b
je 0x18006fa64
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x18006fa64
call fcn.180004106
test eax, eax
jne 0x18006fa50
cmp byte [rbp - 0x21], r15b
je 0x18006fa49
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x18006fa64
cmp byte [rbp - 0x21], r15b
je 0x18006fa61
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.18000431d
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x18006fa90
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x18006fa93
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x18006faa1
mov rcx, rdi
call fcn.180001177
cmp byte [rbp + 0x3f], r15b
je 0x18006fab0
mov rcx, qword [rbp + 0x27]
call fcn.180001177
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 0x1800755d4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800755ea
mov al, 1
jmp 0x180075656
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1800755fb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180075654
mov ecx, dword [rcx + 0x18]
nop
call fcn.1800040ac
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180075654
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 0x180075654
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180075654
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180075656
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180077828
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, [0x1800a3d70]
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 0x18007787e
cmp word [rdx], r9w
jne 0x18007787e
or byte [rax + rbp*8 + 0x38], 4
jmp 0x180077883
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x180077a02
mov r11d, 0xd
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x1800779cd
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x1800778cb
cmp rcx, r8
jae 0x1800778eb
cmp word [rcx], r9w
jne 0x1800778cb
add rax, 4
mov edx, r9d
jmp 0x1800778ce
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x1800778a0
jmp 0x180077a02
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 0x1800779c6
cmp dword [rsp + 0x80], edi
je 0x1800779c6
lea r9, [0x1800a3d70]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x1800779a0
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x180077953
mov word [rbx], bp
jmp 0x1800779ff
mov word [rsp + 0x78], ax
mov rdx, r14
mov rax, r14
sar rdx, 6
and eax, 0x3f
mov word [rbx], 0xd
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 0x18007796e
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 0x1800779ff
cmp word [rsp + 0x70], bp
jne 0x1800779ac
cmp rbx, rsi
je 0x18007794b
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1800017a3
cmp word [rsp + 0x70], bp
je 0x180077a02
mov word [rbx], 0xd
jmp 0x1800779ff
mov rcx, r15
lea r9, [0x1800a3d70]
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 0x1800779fc
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x180077a02
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