joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007a6a0
Capabilities:
Link many functions at runtime

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rcx, str.api_ms_win_core_synch_l1_2_0.dll
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x14007a6f5
mov rdi, rax
lea rdx, str.WaitOnAddress
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x14007a6f5
mov rsi, rax
lea rdx, str.WakeByAddressSingle
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x14007a6f5
mov r14, rax
xor edi, edi
jmp 0x14007a77d
lea rcx, [0x140088ab0]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x14007a7e8
mov rsi, rax
lea rdx, str.NtCreateKeyedEvent
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x14007a7e8
mov rbx, rax
lea rdx, str.NtReleaseKeyedEvent
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x14007a7e8
mov rdi, rax
lea rdx, str.NtWaitForKeyedEvent
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x14007a7e8
mov rsi, rax
lea rcx, [rsp + 0x28]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rbx
test eax, eax
jne 0x14007a7e8
mov r14, qword [rsp + 0x28]
mov al, byte [0x1400a5530]
mov edx, 0x18
xor ecx, ecx
call fcn.1400639e0
test rax, rax
je 0x14007a81d
mov rbx, rax
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], r14
xor eax, eax
lock cmpxchg qword [0x1400a53b8], rbx
je 0x14007a7db
mov rsi, rax
cmp qword [rbx], 0
je 0x14007a7c6
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, qword [0x1400a54b0]
xor edx, edx
mov r8, rbx
call qword [sym.imp.kernel32.dll_HeapFree]
mov rbx, rsi
mov rax, rbx
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rax, str.parking_lot_requires_either_NT_Keyed_Events__WinXP__or_WaitOnAddress_WakeByAddress__Win8_
lea rcx, [rsp + 0x28]
mov qword [rcx], rax
mov qword [rcx + 8], 1
lea rax, [0x140094880]
mov qword [rcx + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rcx + 0x18], xmm0
lea rdx, str.AM_V__d_5R_x1D1_2u___LKukH_X1_S_7c__A7__Z_V_DD_N__d_______W35_5HNJ_z6___K_a6____L___c3A__yw__________h_Zb6Qi_3__q____XNPH
call fcn.140078a90
mov ecx, 8
mov edx, 0x18
call fcn.1400775a0
int3
Function at 0x140006a80
Capabilities:
Create service
Get common file path
Persist via windows service

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x2e0
mov rax, qword [0x140041080]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov rbx, rcx
xor edi, edi
xor edx, edx
xor ecx, ecx
mov r8d, 2
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rbx], rax
test rax, rax
je 0x140006c75
mov r8d, 0xf01ff
mov rdx, qword [section..data]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rbx + 8], rax
test rax, rax
jne 0x140006d33
lea rdx, [rsp + 0xc0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xorps xmm0, xmm0
movups xmmword [rsp + 0x98], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0xa8], xmm1
lea rax, [rsp + 0xc0]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], di
jne 0x140006b20
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x98]
call fcn.1400020f0
nop
mov r8, qword [str.driver.sys]
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x78]
call fcn.140001e20
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x90], 7
cmova rax, qword [rsp + 0x78]
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 1
mov r9d, 0xf01ff
mov rdx, qword [section..data]
mov r8, rdx
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov qword [rbx + 8], rax
test rax, rax
jne 0x140006c98
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdx, qword [rsp + 0x90]
cmp rdx, 7
jbe 0x140006c17
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006c12
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006d40
call fcn.14000bd50
movdqa xmm0, xmmword [0x14002fda0]
movdqu xmmword [rsp + 0x88], xmm0
mov word [rsp + 0x78], di
mov rdx, qword [rsp + 0xb0]
cmp rdx, 7
jbe 0x140006c75
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x98]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006c70
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006d3a
call fcn.14000bd50
xor al, al
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.14000c0b0
mov rbx, qword [rsp + 0x2f8]
add rsp, 0x2e0
pop rdi
ret
mov rdx, qword [rsp + 0x90]
cmp rdx, 7
jbe 0x140006cd9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006cd4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006d40
call fcn.14000bd50
movdqa xmm0, xmmword [0x14002fda0]
movdqu xmmword [rsp + 0x88], xmm0
mov word [rsp + 0x78], di
mov rdx, qword [rsp + 0xb0]
cmp rdx, 7
jbe 0x140006d33
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x98]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006d2e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006d3a
call fcn.14000bd50
mov al, 1
jmp 0x140006c77
call fcn.140011b84
nop
call fcn.140011b84
int3
Function at 0x140009d7c
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 0x140009daa
xor eax, eax
jmp 0x140009e90
cmp qword [rcx + 0x68], 0
je 0x140009dbb
call fcn.140009eac
jmp 0x140009e90
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140009dd2
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140009dd4
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140009e06
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14002c990
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 0x140009e8a
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140009e3d
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 0x140009e66
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140016560
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140009e8a
cmp rsi, rbx
ja 0x140009e44
test rsi, rsi
je 0x140009e8a
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140016560
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 0x14000c808
Capabilities:
Parse pe header

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

Disassembly:
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 0x14001896f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001896f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001896f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001896f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001896f
cmp dword [rcx + 0x84], 0xe
jbe 0x14001896f
cmp dword [rcx + 0xf8], 0
je 0x14001896f
mov ecx, ebx
call fcn.140018a14
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.140018808
nop
cmp dword [rbp + 0x20], 0
jne 0x1400189d0
call fcn.140023704
cmp eax, 1
jne 0x1400189c0
xor dl, dl
jmp 0x1400189ca
call fcn.1400236d0
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x1400189db
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400189e4
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140018900

Function at 0x140018ae8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140018900

Function at 0x14001eddc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x140047050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x14001ee41
test rax, rax
jne 0x14001ee2f
lea r9, str.GetLocaleInfoEx
lea r8, [0x140034be8]
lea rdx, str.GetLocaleInfoEx
lea ecx, [rax + 0xa]
call fcn.14001e9ec
test rax, rax
je 0x14001ee41
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.14002c950
jmp 0x14001ee5b
xor edx, edx
mov rcx, rbp
call fcn.14001f0cc
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 0x140021d6c
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.14000c380
sub rsp, rax
mov rax, qword [0x140041080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001e52c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140021dbb
mov rax, rbp
jmp 0x140021ec7
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 + 0x437d0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002311c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x437d0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140021ec3
mov dword [rsp + 0x30], edi
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + r12*8 + 0x28]
lea rdx, [rsp + 0x40]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140021ec3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002311c
test rax, rax
js 0x140021ec3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140021ec3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140021eb5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140021eb5
cmp byte [rcx], 0xd
jne 0x140021e9b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140021eaa
cmp byte [rcx + 1], 0xa
jne 0x140021eaa
inc rcx
jmp 0x140021eaa
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x414d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140021e7d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140021ec7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000c0b0
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 0x1400221e4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400221fa
mov al, 1
jmp 0x140022266
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14002220b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140022264
mov ecx, dword [rcx + 0x18]
nop
call fcn.140025864
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140022264
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 0x140022264
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140022264
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140022266
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140022404
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, [0x1400437d0]
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 0x14002245a
cmp word [rdx], r9w
jne 0x14002245a
or byte [rax + rbp*8 + 0x38], 4
jmp 0x14002245f
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x1400225de
mov r11d, 0xd
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x1400225a9
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x1400224a7
cmp rcx, r8
jae 0x1400224c7
cmp word [rcx], r9w
jne 0x1400224a7
add rax, 4
mov edx, r9d
jmp 0x1400224aa
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x14002247c
jmp 0x1400225de
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 0x1400225a2
cmp dword [rsp + 0x80], edi
je 0x1400225a2
lea r9, [0x1400437d0]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x14002257c
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x14002252f
mov word [rbx], bp
jmp 0x1400225db
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 0x14002254a
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 0x1400225db
cmp word [rsp + 0x70], bp
jne 0x140022588
cmp rbx, rsi
je 0x140022527
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140023124
cmp word [rsp + 0x70], bp
je 0x1400225de
mov word [rbx], 0xd
jmp 0x1400225db
mov rcx, r15
lea r9, [0x1400437d0]
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 0x1400225d8
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400225de
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
Function at 0x140024d14
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 0x140024d44
xor eax, eax
jmp 0x140024e07
mov rbp, rbx
cmp word [rax], si
je 0x140024d69
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140024d50
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140024d4c
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.1400233d4
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x140024daa
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140024d3d
call fcn.14001cd00
mov rdi, rax
test rax, rax
jne 0x140024dc0
xor ecx, ecx
call fcn.14001c1e0
jmp 0x140024d9f
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.1400233d4
test eax, eax
jne 0x140024df1
mov rcx, rdi
call fcn.14001c1e0
jmp 0x140024dfb
xor ecx, ecx
call fcn.14001c1e0
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 0x140027d5c
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 0x140027dcf
cmp word [rcx], si
je 0x140027dcf
lea rdx, [0x140035d48]
call fcn.14002ae30
test eax, eax
je 0x140027dcf
lea rdx, [0x140035d60]
mov rcx, rbx
call fcn.14002ae30
test eax, eax
jne 0x140027dc5
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 0x140027dec
mov eax, dword [rsp + 0x30]
jmp 0x140027dfe
mov rcx, rbx
call fcn.14001baa0
jmp 0x140027dfe
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 0x140027df0
xor eax, eax
jmp 0x140027dfe
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x140027dfe
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 0x140027e10
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.14001bfac
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 0x140027eb3
cmp edi, dword [rsp + 0x30]
je 0x140027eac
test ebp, ebp
je 0x140027eac
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x140027e88
sub dx, 0x61
cmp dx, 0x19
ja 0x140027e94
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x140027e75
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x140027e98
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x140027eb5
mov eax, 1
jmp 0x140027eb5
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 0x14002a900
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.140017938
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002a98a
cmp byte [rbp - 0x21], r15b
je 0x14002a985
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14002a9c0
call fcn.14001ebfc
test eax, eax
jne 0x14002a9ac
cmp byte [rbp - 0x21], r15b
je 0x14002a9a4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14002a9c0
cmp byte [rbp - 0x21], r15b
je 0x14002a9bd
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.1400182c4
test eax, eax
jne 0x14002aa60
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140017938
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14002a9ff
cmp byte [rbp - 0x21], r15b
je 0x14002aa34
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14002aa34
call fcn.14001ebfc
test eax, eax
jne 0x14002aa20
cmp byte [rbp - 0x21], r15b
je 0x14002aa19
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14002aa34
cmp byte [rbp - 0x21], r15b
je 0x14002aa31
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.1400182c4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14002aa60
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14002aa63
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14002aa71
mov rcx, rdi
call fcn.14001c1e0
cmp byte [rbp + 0x3f], r15b
je 0x14002aa80
mov rcx, qword [rbp + 0x27]
call fcn.14001c1e0
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 0x14002c520
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002c548
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002c548
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1800036a0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x1800036fd
lea rbx, [0x18012d9b0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1800036e4
cmp r10, 2
jb 0x1800036e4
cmp byte [r9], r8b
jne 0x1800036e4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x1800036c0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x18000373f
lea rbx, [0x18012d9b0]
cmp r8b, 0x23
jne 0x180003723
cmp byte [r9], r8b
jne 0x180003723
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x180003710
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x180003880
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x18000389a
mov qword [r8], 0
lea rdx, [0x18012d5b4]
call fcn.180003750
mov rbx, rax
test rax, rax
jne 0x1800038ba
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x180003991
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180003991
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180003991
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180003991
cmp rdi, 0xffffffffffffffff
je 0x180003991
mov rax, qword [0x18015a5c0]
test rax, rax
je 0x18000392e
inc dword [rax + 0xec]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x180003991
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x18000397e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x18015a5c0]
test rax, rax
je 0x180003973
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x18000399a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x18000398c
mov qword [r14], rdi
mov rax, rsi
jmp 0x18000399c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret