joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008c268
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x1400a43c0], rdi
je 0x14008c2c8
cmp rax, rdi
jne 0x14008c2bb
mov r12d, 1
jmp 0x14008c2c8
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14008c2a1
mov eax, dword [0x1400a43b8]
cmp eax, 1
jne 0x14008c2dd
lea ecx, [rax + 0x1e]
call fcn.140138000
jmp 0x14008c344
mov eax, dword [0x1400a43b8]
cmp eax, ebx
jne 0x14008c33a
mov dword [0x1400a43b8], 1
lea r13, [0x140001bd0]
lea rdi, [0x140001bb8]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x14008c32c
cmp eax, ebx
jne 0x14008c32c
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x14008c321
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14008c30a
cmp eax, ebx
je 0x14008c344
mov eax, 0xff
jmp 0x14008c48c
mov dword [0x1400a36b4], 1
mov eax, dword [0x1400a43b8]
cmp eax, 1
jne 0x14008c36c
lea rdx, [0x140001bb0]
lea rcx, [0x140001b98]
call sub.msvcrt.dll__initterm
mov dword [0x1400a43b8], 2
cmp r12d, ebx
jne 0x14008c37b
mov rax, rbx
xchg qword [0x1400a43c0], rax
cmp qword [0x1400a43d8], rbx
je 0x14008c3a3
lea rcx, [0x1400a43d8]
call fcn.14008caac
cmp eax, ebx
je 0x14008c3a3
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x1400a43d8]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
jne 0x14008c3b9
mov eax, 0xff
jmp 0x14008c48c
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x14008c43e
cmp word [rcx], bx
je 0x14008c3d4
cmp edx, ebx
jne 0x14008c43e
cmp word [rcx], bx
je 0x14008c3ea
cmp word [rcx], 0x20
ja 0x14008c3ea
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14008c3d4
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140030f14
mov dword [0x1400a36b0], eax
cmp dword [0x1400a3694], ebx
jne 0x14008c428
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400a36b4], ebx
jne 0x14008c43c
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400a36b0]
jmp 0x14008c48c
cmp word [rcx], 0x22
jne 0x14008c451
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14008c3c5
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
sub rsp, 0x28
call fcn.14008cbc0
add rsp, 0x28
jmp 0x14008c268
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00409800]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x00409810]
mov dword [rax], 1
mov rax, qword [0x00409820]
mov dword [rax], 1
mov rax, qword [0x004097f0]
mov dword [rax], 1
mov rax, qword [0x00409680]
cmp word [rax], 0x5a4d
je 0x4010d0
mov rax, qword [0x004097e0]
mov dword [0x0040c008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010c2
mov ecx, 2
call sym.__set_app_type
mov rcx, 0xffffffffffffffff
call dbg._encode_pointer
mov rdx, qword [0x00409710]
mov qword [rdx], rax
mov rdx, qword [0x00409700]
mov qword [rdx], rax
mov rax, qword [0x00409770]
mov edx, dword [rax]
mov rax, qword [sym.imp.msvcrt.dll__fmode]
mov rax, qword [rax]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x00409620]
cmp dword [rax], 1
je 0x401120
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401133
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058
Function at 0x404957
Capabilities:
Execute command

Disassembly:
call fcn.00406ed5
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
lea rcx, str.taskkill__f__im_taskmgr.exe
call sym.system
lea rcx, str.taskkill__f__im_cmd.exe
call sym.system
mov ecx, 0x1f4
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
jmp 0x404968
Function at 0x405400
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rbp, dword [0x0040c094]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x40551a
mov rax, qword [0x0040c098]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x40544e
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x405500
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x405432
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x405552
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x0040c098]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call dbg._GetPEImageBase
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x0040c098]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x405535
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4054f9
sub eax, 0x40
and eax, 0xffffffbf
je 0x4054f9
mov r9, rbp
add r9, qword [0x0040c098]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x405521
add dword [0x0040c094], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.memcpy
xor ebp, ebp
jmp 0x40545b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
mov rax, qword [0x0040c098]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call dbg.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call dbg.__report_error
nop
nop word cs:[rax + rax]

Function at 0x406130
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x406140
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x406150
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x406191
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x406188
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x406193
add rax, 0x28
cmp rax, r9
jne 0x406174
xor eax, eax
repz ret

Function at 0x406240
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x00409680]
cmp word [rbx], 0x5a4d
je 0x406260
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call sym._ValidateImageBase.part.0
test eax, eax
je 0x406254
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp dbg._FindPESection
Function at 0x4064b0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0040ca00]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0040c9e0]
test rbx, rbx
je 0x406504
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x4064fb
test rsi, rsi
je 0x4064fb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4064e0
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x0040ca00]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax

Function at 0x406f10
Capabilities:
Resume thread
Suspend thread

Disassembly:
push rsi
push rbx
sub rsp, 0x4f8
mov rbx, 0xffffffffffffffff
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x406f58
mov rcx, rsi
mov dword [rsp + 0x50], 0x100003
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov rcx, rsi
test eax, eax
cmovne rbx, qword [rsp + 0x118]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rax, rbx
add rsp, 0x4f8
pop rbx
pop rsi
ret
Function at 0x406fe0
Capabilities:
Create thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov ebp, dword [rsp + 0xb0]
mov rbx, rcx
mov r14, rdx
mov rsi, r8
mov r13, r9
cmp ebp, 0x10000
ja 0x407170
mov rdx, qword [rcx + 8]
test rdx, rdx
je 0x40703c
mov rcx, qword [rcx + 0x10]
xor r9d, r9d
mov r8d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_SignalObjectAndWait]
mov rcx, qword [rbx + 0x10]
mov rdi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rdi
mov rcx, qword [rbx + 8]
call rdi
mov rcx, qword [rbx]
test rcx, rcx
je 0x40704a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r12d, r12d
test ebp, ebp
jne 0x407063
mov eax, r12d
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
lea rdi, [rbx + 8]
mov r8, rsi
xor edx, edx
mov rcx, r14
shr rsi, 1
call sym.memset
and rdi, 0xfffffffffffffff8
mov rcx, rbx
xor eax, eax
sub rcx, rdi
mov qword [rbx], 0
mov qword [rbx + 0x30], 0
add ecx, 0x38
xor edx, edx
shr ecx, 3
rep stosq qword [rdi], rax
mov rax, rsi
mov ecx, ebp
mov dword [0x0040ca90], ebp
shl rax, 0x10
mov rsi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [0x0040ca78], r14
mov qword [0x0040ca80], r13
div rcx
lea rax, [r13 + rax*2]
mov qword [0x0040ca88], rax
call rsi
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rdi, rax
call rsi
mov dword [rsp + 0x30], 2
mov rcx, rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rbx
mov r8, rbp
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x407190
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
test rax, rax
mov qword [rbx + 0x10], rax
je 0x4071a7
lea rax, [rsp + 0x4c]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [dbg.profthr_func]
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
mov qword [rbx + 8], rax
je 0x4071cd
mov edx, 0xf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
jmp 0x407051
call qword [sym.imp.msvcrt.dll__errno]
mov r12d, 0xffffffff
mov dword [rax], 0x16
jmp 0x407051
call qword [sym.imp.msvcrt.dll__errno]
mov r12d, 0xffffffff
mov dword [rax], 3
jmp 0x407051
xor ecx, ecx
mov r12d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0xb
jmp 0x407051
mov rcx, qword [rbx]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12d, 0xffffffff
call rsi
mov rcx, qword [rbx + 0x10]
call rsi
mov qword [rbx], 0
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0xb
jmp 0x407051
Function at 0x140008954
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 0x140008982
xor eax, eax
jmp 0x140008a68
cmp qword [rcx + 0x68], 0
je 0x140008993
call fcn.140008a84
jmp 0x140008a68
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400089aa
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400089ac
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400089de
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14002a020
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 0x140008a62
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140008a15
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 0x140008a3e
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140013be0
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140008a62
cmp rsi, rbx
ja 0x140008a1c
test rsi, rsi
je 0x140008a62
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140013be0
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 0x14000a4ac
Capabilities:
Parse pe header

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

Function at 0x140016bec
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400169e8
Function at 0x14001e55c
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.140009db0
sub rsp, rax
mov rax, qword [0x14003d040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001a79c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001e5ab
mov rax, rbp
jmp 0x14001e6b3
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 + 0x3f650]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001f67c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3f650]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001e6af
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 0x14001e6af
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001f67c
test rax, rax
js 0x14001e6af
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001e6af
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001e6a1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001e6a1
cmp byte [rcx], 0xd
jne 0x14001e687
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001e696
cmp byte [rcx + 1], 0xa
jne 0x14001e696
inc rcx
jmp 0x14001e696
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3d470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001e669
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001e6b3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140009690
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 0x14001e8d4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001e8ea
mov al, 1
jmp 0x14001e94a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001e8fb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001e948
mov ecx, dword [rcx + 0x18]
nop
call fcn.140022918
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001e948
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001e948
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001e948
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001e94a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001ea1c
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, [0x14003f650]
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 0x14001ea73
cmp word [rdx], r13w
jne 0x14001ea73
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001ea78
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001eb9d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001ebbe
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001eab1
mov rdx, r9
mov word [rbx], cx
jmp 0x14001ead8
cmp r9, r8
jae 0x14001eae8
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 0x14001ea92
jmp 0x14001eb9d
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 0x14001eb92
cmp dword [rsp + 0x80], esi
je 0x14001eb92
lea r8, [0x14003f650]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001eb6a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001eb3a
mov word [rbx], r13w
jmp 0x14001eb9a
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 0x14001eb47
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001eb9a
cmp word [rsp + 0x70], r13w
jne 0x14001eb77
cmp rbx, r14
je 0x14001eb34
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001f684
cmp word [rsp + 0x70], r13w
je 0x14001eb9d
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, [0x14003f650]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001eb97
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001eb9d
Function at 0x1400220e0
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 0x140022110
xor eax, eax
jmp 0x1400221d3
mov rbp, rbx
cmp word [rax], si
je 0x140022135
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002211c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140022118
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.1400206e0
movsxd r14, eax
test eax, eax
jne 0x140022173
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140022109
mov rcx, r14
call fcn.140019540
mov rdi, rax
test rax, rax
jne 0x14002218c
xor ecx, ecx
call fcn.140019504
jmp 0x140022168
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.1400206e0
test eax, eax
jne 0x1400221bd
mov rcx, rdi
call fcn.140019504
jmp 0x1400221c7
xor ecx, ecx
call fcn.140019504
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 0x140024e6c
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.14001aca8
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 0x140024f0d
cmp ebx, dword [rsp + 0x30]
je 0x140024f06
test esi, esi
je 0x140024f06
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140024ee1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140024eee
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140024ecb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140024ef2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140024f0f
mov eax, 1
jmp 0x140024f0f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140027dc4
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.1400151d8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140027e4e
cmp byte [rbp - 0x21], r15b
je 0x140027e49
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140027e84
call fcn.14001c018
test eax, eax
jne 0x140027e70
cmp byte [rbp - 0x21], r15b
je 0x140027e68
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140027e84
cmp byte [rbp - 0x21], r15b
je 0x140027e81
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.140015864
test eax, eax
jne 0x140027f24
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400151d8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140027ec3
cmp byte [rbp - 0x21], r15b
je 0x140027ef8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140027ef8
call fcn.14001c018
test eax, eax
jne 0x140027ee4
cmp byte [rbp - 0x21], r15b
je 0x140027edd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140027ef8
cmp byte [rbp - 0x21], r15b
je 0x140027ef5
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.140015864
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140027f24
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140027f27
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140027f35
mov rcx, rdi
call fcn.140019504
cmp byte [rbp + 0x3f], r15b
je 0x140027f44
mov rcx, qword [rbp + 0x27]
call fcn.140019504
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 0x140029bd0
Capabilities:
Parse pe header

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