joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180024374
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 0x1800243a4
xor eax, eax
jmp 0x180024467
mov rbp, rbx
cmp word [rax], si
je 0x1800243c9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800243b0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800243ac
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.180022abc
movsxd r14, eax
test eax, eax
jne 0x180024407
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18002439d
mov rcx, r14
call fcn.18001e338
mov rdi, rax
test rax, rax
jne 0x180024420
xor ecx, ecx
call fcn.18001d53c
jmp 0x1800243fc
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.180022abc
test eax, eax
jne 0x180024451
mov rcx, rdi
call fcn.18001d53c
jmp 0x18002445b
xor ecx, ecx
call fcn.18001d53c
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 0x140001440
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
xor edx, edx
mov rdi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
nop dword [rax]
nop dword [rax + rax]
lea rdx, [rsp + 0x4c]
mov r8, rdi
sub r8, rdx
nop dword [rax + rax]
movzx ecx, word [rdx]
movzx eax, word [rdx + r8]
sub ecx, eax
jne 0x1400014a4
add rdx, 2
test eax, eax
jne 0x140001490
test ecx, ecx
je 0x1400014cb
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001480
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
mov eax, dword [rsp + 0x28]
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

Function at 0x1400014e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001521
xor eax, eax
add rsp, 0x40
pop rdi
ret
mov qword [rsp + 0x50], rbx
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x58], rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
movsxd rbx, eax
mov rdx, rbx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor r9d, r9d
mov qword [rsp + 0x20], 0
mov rdx, rax
mov r8d, ebx
mov rcx, rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rbx, qword [rsp + 0x50]
test eax, eax
je 0x140001594
cmp dword [rsi], 0x905a4d
jne 0x140001594
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rsi, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x40
pop rdi
ret

Function at 0x140001730
Capabilities:
Enumerate gui resources

Disassembly:
sub rsp, 0x28
movsxd rdx, ecx
lea rcx, [0x1400016e0]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, qword [0x1400091a0]
add rsp, 0x28
ret
Function at 0x140005130
Capabilities:
Execute command

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rbx, rdx
lea rcx, [0x1400091b0]
cmp qword [0x1400091c8], 0xf
cmova rcx, qword [0x1400091b0]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov r12, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov r14, qword [rbx + 0x10]
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, r14
cmp rax, 0xa
jb 0x140005338
mov r15, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14000519d
mov r15, qword [rbx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
lea rbp, [r14 + 0xa]
mov edi, 0xf
lea rsi, [rsp + 0x20]
cmp rbp, rdi
jbe 0x14000523b
mov rdi, rbp
or rdi, 0xf
cmp rdi, rcx
jbe 0x1400051fd
mov rdi, rcx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140005f44
test rax, rax
je 0x1400052c2
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140005236
mov eax, 0x16
cmp rdi, rax
cmovb rdi, rax
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x140005225
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14000533e
jmp 0x1400051de
test rcx, rcx
je 0x140005234
call fcn.140005f44
mov rsi, rax
jmp 0x140005236
xor esi, esi
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
movsd xmm0, qword [str.___X_____]
movsd qword [rsi], xmm0
movzx eax, word [0x1400075e8]
mov word [rsi + 8], ax
lea rcx, [rsi + 0xa]
mov r8, r14
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + rbp], 0
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0xf
cmova rdx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x30]
mov rcx, r12
call fcn.140005d20
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x1400052cf
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400052c9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400052c9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140005f80
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140005305
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140005300
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005331
mov rcx, r8
call fcn.140005f80
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140005020
nop
call fcn.140004f80
int3
Function at 0x1400067cc
Capabilities:
Parse pe header

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

Function at 0x141ec0210
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141ec0397
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141ec0241
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141ec0227
add dl, dl
jne 0x141ec024e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141ec02ae
xor eax, eax
add dl, dl
jne 0x141ec025d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141ec0365
add dl, dl
jne 0x141ec026e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141ec027b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141ec0288
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141ec0295
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141ec02a2
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141ec0236
mov eax, 1
add dl, dl
jne 0x141ec02be
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141ec02cb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141ec02b3
sub eax, ebx
mov ebx, 1
jne 0x141ec0304
mov ecx, 1
add dl, dl
jne 0x141ec02e6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141ec02f3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141ec02db
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141ec0236
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141ec0320
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141ec032d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141ec0315
cmp eax, 0x7d00
jae 0x141ec0353
cmp eax, 0x500
jb 0x141ec034e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141ec0236
cmp eax, 0x7f
ja 0x141ec0356
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141ec0236
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141ec038a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x141ec0236
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400070a2
Capabilities:
Execute syscall

Disassembly:
mov r8, r10
mov r10, 1
xor r10, r10
mov r10, 0xa
mov r10, rcx
xor eax, eax
sub r8, r10
add eax, 0x18
xor r8, r8
syscall
ret

Function at 0x140008cd0
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 rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x140008cfe
xor eax, eax
jmp 0x140008de4
cmp qword [rcx + 0x68], 0
je 0x140008d0f
call fcn.140008e00
jmp 0x140008de4
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140008d26
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140008d28
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140008d5a
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140024740
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x140008dde
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140008d91
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 0x140008dba
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.1400119f8
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140008dde
cmp rsi, rbx
ja 0x140008d98
test rsi, rsi
je 0x140008dde
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1400119f8
sub rsi, rax
sub rbp, rsi
mov rax, rbp
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 0x14000a7cc
Capabilities:
Parse pe header

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

Function at 0x140013efc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013cf8
Function at 0x1400199c0
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.14000a5d0
sub rsp, rax
mov rax, qword [0x140035080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400185a0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140019a0f
mov rax, rbp
jmp 0x140019b17
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 + 0x393b0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001aae0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x393b0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140019b13
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 0x140019b13
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001aae0
test rax, rax
js 0x140019b13
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140019b13
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140019b05
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140019b05
cmp byte [rcx], 0xd
jne 0x140019aeb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140019afa
cmp byte [rcx + 1], 0xa
jne 0x140019afa
inc rcx
jmp 0x140019afa
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x354a0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140019acd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140019b17
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000a370
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 0x140019d38
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140019d4e
mov al, 1
jmp 0x140019dae
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140019d5f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140019dac
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001ef9c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140019dac
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140019dac
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140019dac
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140019dae
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140019e80
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, [0x1400393b0]
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 0x140019ed7
cmp word [rdx], r13w
jne 0x140019ed7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140019edc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001a001
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001a022
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140019f15
mov rdx, r9
mov word [rbx], cx
jmp 0x140019f3c
cmp r9, r8
jae 0x140019f4c
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 0x140019ef6
jmp 0x14001a001
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 0x140019ff6
cmp dword [rsp + 0x80], esi
je 0x140019ff6
lea r8, [0x1400393b0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140019fce
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140019f9e
mov word [rbx], r13w
jmp 0x140019ffe
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 0x140019fab
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140019ffe
cmp word [rsp + 0x70], r13w
jne 0x140019fdb
cmp rbx, r14
je 0x140019f98
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001aae8
cmp word [rsp + 0x70], r13w
je 0x14001a001
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, [0x1400393b0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140019ffb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001a001
Function at 0x14001e488
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 0x14001e4b8
xor eax, eax
jmp 0x14001e57b
mov rbp, rbx
cmp word [rax], si
je 0x14001e4dd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001e4c4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001e4c0
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.14001cb98
movsxd r14, eax
test eax, eax
jne 0x14001e51b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001e4b1
mov rcx, r14
call fcn.14001ad4c
mov rdi, rax
test rax, rax
jne 0x14001e534
xor ecx, ecx
call fcn.1400177ac
jmp 0x14001e510
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.14001cb98
test eax, eax
jne 0x14001e565
mov rcx, rdi
call fcn.1400177ac
jmp 0x14001e56f
xor ecx, ecx
call fcn.1400177ac
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 0x1400214f0
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.1400173d4
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 0x140021591
cmp ebx, dword [rsp + 0x30]
je 0x14002158a
test esi, esi
je 0x14002158a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140021565
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140021572
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14002154f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140021576
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140021593
mov eax, 1
jmp 0x140021593
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140022b44
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.140013448
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140022bce
cmp byte [rbp - 0x21], r15b
je 0x140022bc9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140022c04
call fcn.140017ab0
test eax, eax
jne 0x140022bf0
cmp byte [rbp - 0x21], r15b
je 0x140022be8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140022c04
cmp byte [rbp - 0x21], r15b
je 0x140022c01
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.140013580
test eax, eax
jne 0x140022ca4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140013448
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140022c43
cmp byte [rbp - 0x21], r15b
je 0x140022c78
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140022c78
call fcn.140017ab0
test eax, eax
jne 0x140022c64
cmp byte [rbp - 0x21], r15b
je 0x140022c5d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140022c78
cmp byte [rbp - 0x21], r15b
je 0x140022c75
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.140013580
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140022ca4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140022ca7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140022cb5
mov rcx, rdi
call fcn.1400177ac
cmp byte [rbp + 0x3f], r15b
je 0x140022cc4
mov rcx, qword [rbp + 0x27]
call fcn.1400177ac
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 0x140024430
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140024458
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140024458
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140011a70
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x1c8], 0
mov ebx, edx
mov rdi, rcx
jne 0x140011a98
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140032afc
test ebx, ebx
jne 0x140011ab3
mov qword [0x1402783d0], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140285ae4], eax
cmp qword [0x1402783d0], 0
je 0x140011ae1
mov edx, ebx
mov rcx, rdi
call fcn.140032afc
movsxd rcx, eax
mov qword [0x1402783d0], rcx
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp ebx, 2
jl 0x140011ad1
lea rcx, [0x140285ce0]
call fcn.14001ae80
mov rax, qword [rdi + 0x1c8]
mov rbx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x140285ae4]
mov rcx, qword [rdi + 0x1c8]
mov edx, eax
mov rax, qword [rbx + 0xa0]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax