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

Disassembly:
jmp 0x1400608ac
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 0x140060933
mov rsi, rbx
cmp word [rax], bp
je 0x1400608f2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400608dc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400608d8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140001037
mov rdi, rax
test rax, rax
je 0x140060920
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000257c
mov rbp, rdi
xor ecx, ecx
call fcn.140001168
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 0x1400026b2
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140016540
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x1400828a8]
mov ecx, 2
lea r8, [0x1400828a0]
lea rdx, str.FlsGetValue
call fcn.140016010
mov ecx, ebx
test rax, rax
je 0x14001657a
add rsp, 0x20
pop rbx
jmp qword [0x1400a2020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1400027f2
Capabilities:
Query environment variable

Disassembly:
jmp 0x140060758
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 0x140060788
xor eax, eax
jmp 0x14006084b
mov rbp, rbx
cmp word [rax], si
je 0x1400607ad
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140060794
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140060790
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.14000314d
movsxd r14, eax
test eax, eax
jne 0x1400607eb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140060781
mov rcx, r14
call fcn.140001037
mov rdi, rax
test rax, rax
jne 0x140060804
xor ecx, ecx
call fcn.140001168
jmp 0x1400607e0
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.14000314d
test eax, eax
jne 0x140060835
mov rcx, rdi
call fcn.140001168
jmp 0x14006083f
xor ecx, ecx
call fcn.140001168
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 0x140002801
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140016490
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x140082868]
xor ecx, ecx
lea r8, [0x140082860]
lea rdx, str.FlsAlloc
call fcn.140016010
test rax, rax
je 0x1400164c9
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x1400a2020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x140002879
Capabilities:
Get geographical location

Disassembly:
jmp 0x140053a44
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, r9d
mov rdi, r8
mov esi, edx
lea r9, [0x140083ec8]
mov rbp, rcx
lea r8, [0x140083ec0]
lea rdx, str.GetLocaleInfoEx
mov ecx, 8
call fcn.140052f64
test rax, rax
je 0x140053aa4
movabs r10, 0xe375262d7cd44270
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call qword [0x1400a2030]
jmp 0x140053abe
xor edx, edx
mov rcx, rbp
call fcn.1400021b2
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 0x14000288d
Capabilities:
Terminate process

Disassembly:
jmp 0x1400083a0
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 0x1400029c3
Capabilities:
Parse pe header

Disassembly:
jmp 0x14004dcdc
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x14004da38

Function at 0x140002b4e
Capabilities:
Parse pe header

Disassembly:
jmp 0x140076fb0
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140076fd8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140076fd8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140002e55
Capabilities:
Parse pe header

Disassembly:
jmp 0x14000914c
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140009196
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140009196
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140009196
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140009196
cmp dword [rcx + 0x84], 0xe
jbe 0x140009196
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140009198
xor al, al
add rsp, 0x28
ret
Function at 0x140002f04
Capabilities:
Create http request

Disassembly:
jmp 0x1400073f0
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov rax, qword [0x140097280]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0x30], 0xffffffff
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.Size_Checker
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140007466
mov ecx, 2
call fcn.140003fa3
lea rdx, str.Failed_to_initialize_WinINet._n
mov rcx, rax
call fcn.1400036a7
mov eax, 0xffffffff
jmp 0x14000757d
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x1400074cb
mov ecx, 2
call fcn.140003fa3
lea rdx, str.Failed_to_open_URL._n
mov rcx, rax
call fcn.1400036a7
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, 0xffffffff
jmp 0x14000757d
mov r9, qword [rsp + 0xc0]
lea r8, str.HEAD__s
mov edx, 0x40
lea rcx, [rsp + 0x60]
call fcn.140002e69
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x84000000
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140007563
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x44]
mov edx, 0x20000005
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x140007557
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140002577
add rsp, 0xb8
ret
Function at 0x1400030c6
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x140076ef0
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 0x140076f31
mov edx, dword [rax + 0xc]
cmp r10, rdx
jb 0x140076f25
mov ecx, dword [rax + 8]
add ecx, edx
cmp r10, rcx
jb 0x140076f33
inc r9d
add rax, 0x28
cmp r9d, r11d
jb 0x140076f13
xor eax, eax
ret

Function at 0x1400032b0
Capabilities:
Terminate process

Disassembly:
jmp 0x140052250
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14005226a
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.140003940
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 0x140003a26
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140016598
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x1400828c8]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x1400828c0]
call fcn.140016010
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x1400165d8
call qword [0x1400a2020]
jmp 0x1400165de
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140003ab7
Capabilities:
Set environment variable

Disassembly:
jmp 0x1400705d4
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.1400020f4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14007065e
cmp byte [rbp - 0x21], r15b
je 0x140070659
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140070694
call fcn.140003e54
test eax, eax
jne 0x140070680
cmp byte [rbp - 0x21], r15b
je 0x140070678
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140070694
cmp byte [rbp - 0x21], r15b
je 0x140070691
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.140004020
test eax, eax
jne 0x140070734
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400020f4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400706d3
cmp byte [rbp - 0x21], r15b
je 0x140070708
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140070708
call fcn.140003e54
test eax, eax
jne 0x1400706f4
cmp byte [rbp - 0x21], r15b
je 0x1400706ed
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140070708
cmp byte [rbp - 0x21], r15b
je 0x140070705
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.140004020
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140070734
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140070737
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140070745
mov rcx, rdi
call fcn.140001168
cmp byte [rbp + 0x3f], r15b
je 0x140070754
mov rcx, qword [rbp + 0x27]
call fcn.140001168
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 0x140003ba7
Capabilities:
Parse pe header

Disassembly:
jmp 0x14004dccc
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 0x14004daa7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004daa7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004daa7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004daa7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004daa7
cmp dword [rcx + 0x84], 0xe
jbe 0x14004daa7
cmp dword [rcx + 0xf8], 0
je 0x14004daa7
mov ecx, ebx
call fcn.14004dc10
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.14004d790
nop
cmp dword [rbp + 0x20], 0
je 0x14004daf5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14004db30
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14004da38
Function at 0x1400073f0
Capabilities:
Create http request
Get http content length

Disassembly:
jmp 0x1400073f0
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov rax, qword [0x140097280]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0x30], 0xffffffff
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.Size_Checker
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140007466
mov ecx, 2
call fcn.140003fa3
lea rdx, str.Failed_to_initialize_WinINet._n
mov rcx, rax
call fcn.1400036a7
mov eax, 0xffffffff
jmp 0x14000757d
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x1400074cb
mov ecx, 2
call fcn.140003fa3
lea rdx, str.Failed_to_open_URL._n
mov rcx, rax
call fcn.1400036a7
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, 0xffffffff
jmp 0x14000757d
mov r9, qword [rsp + 0xc0]
lea r8, str.HEAD__s
mov edx, 0x40
lea rcx, [rsp + 0x60]
call fcn.140002e69
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x84000000
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140007563
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x44]
mov edx, 0x20000005
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x140007557
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140002577
add rsp, 0xb8
ret

Function at 0x14000914c
Capabilities:
Parse pe header

Disassembly:
jmp 0x14000914c
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140009196
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140009196
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140009196
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140009196
cmp dword [rcx + 0x84], 0xe
jbe 0x140009196
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140009198
xor al, al
add rsp, 0x28
ret
Function at 0x14004da38
Capabilities:
Parse pe header

Disassembly:
jmp 0x14004dccc
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 0x14004daa7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004daa7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004daa7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004daa7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004daa7
cmp dword [rcx + 0x84], 0xe
jbe 0x14004daa7
cmp dword [rcx + 0xf8], 0
je 0x14004daa7
mov ecx, ebx
call fcn.14004dc10
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.14004d790
nop
cmp dword [rbp + 0x20], 0
je 0x14004daf5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14004db30
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14004da38
Function at 0x140060758
Capabilities:
Query environment variable

Disassembly:
jmp 0x140060758
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 0x140060788
xor eax, eax
jmp 0x14006084b
mov rbp, rbx
cmp word [rax], si
je 0x1400607ad
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140060794
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140060790
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.14000314d
movsxd r14, eax
test eax, eax
jne 0x1400607eb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140060781
mov rcx, r14
call fcn.140001037
mov rdi, rax
test rax, rax
jne 0x140060804
xor ecx, ecx
call fcn.140001168
jmp 0x1400607e0
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.14000314d
test eax, eax
jne 0x140060835
mov rcx, rdi
call fcn.140001168
jmp 0x14006083f
xor ecx, ecx
call fcn.140001168
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 0x1400608ac
Capabilities:
Query environment variable

Disassembly:
jmp 0x1400608ac
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 0x140060933
mov rsi, rbx
cmp word [rax], bp
je 0x1400608f2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400608dc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400608d8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140001037
mov rdi, rax
test rax, rax
je 0x140060920
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000257c
mov rbp, rdi
xor ecx, ecx
call fcn.140001168
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 0x140065bb0
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.1400019ce
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 0x140065c51
cmp ebx, dword [rsp + 0x30]
je 0x140065c4a
test esi, esi
je 0x140065c4a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140065c25
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140065c32
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140065c0f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140065c36
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140065c53
mov eax, 1
jmp 0x140065c53
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140068fd4
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, [0x140099bb0]
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 0x14006902b
cmp word [rdx], r13w
jne 0x14006902b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140069030
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140069155
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140069176
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140069069
mov rdx, r9
mov word [rbx], cx
jmp 0x140069090
cmp r9, r8
jae 0x1400690a0
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 0x14006904a
jmp 0x140069155
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 0x14006914a
cmp dword [rsp + 0x80], esi
je 0x14006914a
lea r8, [0x140099bb0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140069122
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400690f2
mov word [rbx], r13w
jmp 0x140069152
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 0x1400690ff
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140069152
cmp word [rsp + 0x70], r13w
jne 0x14006912f
cmp rbx, r14
je 0x1400690ec
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14000173a
cmp word [rsp + 0x70], r13w
je 0x140069155
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, [0x140099bb0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14006914f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140069155
Function at 0x14006ebbc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14006ebd2
mov al, 1
jmp 0x14006ec32
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14006ebe3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14006ec30
mov ecx, dword [rcx + 0x18]
nop
call fcn.140003e04
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14006ec30
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14006ec30
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14006ec30
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14006ec32
xor al, al
add rsp, 0x20
pop rbx
ret