joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008188
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 [0x14000d868], rdi
je 0x1400081e8
cmp rax, rdi
jne 0x1400081db
mov r12d, 1
jmp 0x1400081e8
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400081c1
mov eax, dword [0x14000d860]
cmp eax, 1
jne 0x1400081fd
lea ecx, [rax + 0x1e]
call fcn.14016b000
jmp 0x140008264
mov eax, dword [0x14000d860]
cmp eax, ebx
jne 0x14000825a
mov dword [0x14000d860], 1
lea r13, [0x140001548]
lea rdi, [0x140001530]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x14000824c
cmp eax, ebx
jne 0x14000824c
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x140008241
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000822a
cmp eax, ebx
je 0x140008264
mov eax, 0xff
jmp 0x1400083ac
mov dword [0x14000b554], 1
mov eax, dword [0x14000d860]
cmp eax, 1
jne 0x14000828c
lea rdx, [0x140001528]
lea rcx, [0x1400014b8]
call sub.msvcrt.dll__initterm
mov dword [0x14000d860], 2
cmp r12d, ebx
jne 0x14000829b
mov rax, rbx
xchg qword [0x14000d868], rax
cmp qword [0x14000d870], rbx
je 0x1400082c3
lea rcx, [0x14000d870]
call fcn.14000862c
cmp eax, ebx
je 0x1400082c3
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x14000d870]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
jne 0x1400082d9
mov eax, 0xff
jmp 0x1400083ac
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x14000835e
cmp word [rcx], bx
je 0x1400082f4
cmp edx, ebx
jne 0x14000835e
cmp word [rcx], bx
je 0x14000830a
cmp word [rcx], 0x20
ja 0x14000830a
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400082f4
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.140003b3c
mov dword [0x14000b550], eax
cmp dword [0x14000b534], ebx
jne 0x140008348
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000b554], ebx
jne 0x14000835c
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000b550]
jmp 0x1400083ac
cmp word [rcx], 0x22
jne 0x140008371
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 0x1400082e5
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.1400087ec
add rsp, 0x28
jmp 0x140008188
Function at 0x140004000
Capabilities:
Encode data using xor

Disassembly:
xor rdx, rdx
push rsp
pop r15
and r15w, 0xf700
mov dl, 0xa8
fld st(4)
fxsave64 [r15]
movabs r13, 0x2b65351af45e9af2
add r15, 8
mov rsi, qword [r15]
dec rdx
xor qword [rsi + rdx*8 + 0x24], r13
test rdx, rdx
jne 0x140004025
mov edx, 0x5ba08cab
push 3
push 0x73
jge 0x1400040bb
add byte [rbx - 0x77], dl
jno 0x140004069
invalid
movabs byte [0x9edc54987355eec5], al
push rbx
push rcx
sbb ebx, dword [rbp - 0x18]
and edi, dword [rdi + 0x48]
cmp al, bl
fstp xword [rbx - 0x7a4b6326]
scasb al, byte [rdi]
ret 0xdb2b
pop rbx
wait
or eax, 0x38a7c8bf
cmpsd dword [rsi], dword [rdi]
div byte [rbx + 0x3f]
push rsp
mov ch, 0xc7
adc edx, dword [rdi]
invalid
Function at 0x1400113de
Capabilities:
Terminate process

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

Disassembly:
jmp 0x14001a660
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001a680
xor al, al
jmp 0x14001a701
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001a693
xor al, al
jmp 0x14001a701
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 0x14001a6bd
xor al, al
jmp 0x14001a701
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001a6d1
xor al, al
jmp 0x14001a701
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001a6e3
xor al, al
jmp 0x14001a701
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001a6ff
xor al, al
jmp 0x14001a701
mov al, 1
add rsp, 0x38
ret
Function at 0x140002e00
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140004a40
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140004a40
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002e70
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0a4]
mov rbx, rcx
test esi, esi
jle 0x140002fa0
mov rax, qword [0x14000a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002ebb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002f45
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002ea0
mov rcx, rbx
call fcn.1400038c0
mov rdi, rax
test rax, rax
je 0x140002fc2
mov rax, qword [0x14000a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003a00
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002fa7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002f3e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002f50
add dword [0x14000a0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002f3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002e00
nop dword [rax]
xor esi, esi
jmp 0x140002ec8
mov rax, qword [0x14000a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002e00
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002e00
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003530
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x14000358c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140003583
test rsi, rsi
je 0x140003583
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003568
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400038c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006aa0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400038e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400038e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400038e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000393d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003934
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400038e0
add rax, 0x28
cmp rax, r9
jne 0x140003920
xor eax, eax
ret

Function at 0x140003940
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006aa0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000395f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003968
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000395f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003a00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006aa0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140003a1f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003a28
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14001122b
Capabilities:
Terminate process

Disassembly:
jmp 0x140013870
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 0x140011249
Capabilities:
Read file on windows

Disassembly:
jmp 0x140011950
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x138
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x12
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x158]
lea rcx, [0x14002500f]
call fcn.1400113ed
mov qword [rbp + 8], 0
mov qword [rbp + 0x28], 0
cmp dword [rbp + 0x138], 0
jne 0x1400119ba
mov dword [rbp + 0x138], 0xa
mov qword [rbp + 0x28], 0
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rbp + 8]
mov rdx, qword [rbp + 0x128]
add rdx, rcx
mov rcx, rdx
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x28]
mov r8d, eax
mov rdx, rcx
mov rax, qword [rbp + 0x120]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140011a31
cmp qword [rbp + 0x28], 0
je 0x140011a26
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 8], rax
jmp 0x140011a31
mov ecx, 5
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rbp + 0x138]
dec eax
mov dword [rbp + 0x138], eax
mov rax, qword [rbp + 8]
cmp qword [rbp + 0x130], rax
jbe 0x140011a59
cmp dword [rbp + 0x138], 0
ja 0x1400119ba
mov rax, qword [rbp + 8]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001bf00]
call fcn.140011375
mov rax, rdi
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x1400112cb
Capabilities:
Parse pe header

Disassembly:
jmp 0x140015fb0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015fd0
xor al, al
jmp 0x140016051
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015fe3
xor al, al
jmp 0x140016051
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 0x14001600d
xor al, al
jmp 0x140016051
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140016021
xor al, al
jmp 0x140016051
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140016033
xor al, al
jmp 0x140016051
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001604f
xor al, al
jmp 0x140016051
mov al, 1
add rsp, 0x38
ret
Function at 0x1400113b1
Capabilities:
Write file on windows

Disassembly:
jmp 0x140011b40
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x138
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x12
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x158]
lea rcx, [0x14002500f]
call fcn.1400113ed
mov qword [rbp + 8], 0
mov qword [rbp + 0x28], 0
cmp dword [rbp + 0x138], 0
jne 0x140011baa
mov dword [rbp + 0x138], 0x64
mov qword [rbp + 0x28], 0
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rbp + 8]
mov rdx, qword [rbp + 0x128]
add rdx, rcx
mov rcx, rdx
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x28]
mov r8d, eax
mov rdx, rcx
mov rax, qword [rbp + 0x120]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140011c21
cmp qword [rbp + 0x28], 0
je 0x140011c16
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 8], rax
jmp 0x140011c21
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rbp + 0x138]
dec eax
mov dword [rbp + 0x138], eax
mov rax, qword [rbp + 8]
cmp qword [rbp + 0x130], rax
jbe 0x140011c49
cmp dword [rbp + 0x138], 0
ja 0x140011baa
mov rax, qword [rbp + 8]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001bdf0]
call fcn.140011375
mov rax, rdi
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x140003a00
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003a34
cmp word [rcx], 0x5a4d
jne 0x140003a34
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003a34
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003a34
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003940
test eax, eax
jne 0x140003a50
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.1400039b0
test rax, rax
je 0x140003a45
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.1400041f6
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140004100
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.1400040a0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140004554
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x14045ccd8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x14045ccd4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x1400045a2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000459a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140004689
inc ebx
add rax, 0x28
jmp 0x14000457a
mov rcx, r12
call fcn.140004d81
mov rbp, rax
test rax, rax
jne 0x1400045c1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1400044f0
movsxd rbx, ebx
mov rax, qword [0x14045ccd8]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.140004e2f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14045ccd8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140004623
mov rax, qword [0x14045ccd8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400044f0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140004683
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140004683
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14045ccd8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140004683
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400044f0
inc dword [0x14045ccd4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140004ab0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x14045cd40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14045cd20]
test rbx, rbx
je 0x140004afc
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140004af6
test eax, eax
jne 0x140004af6
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140004ace
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140004cb0
Capabilities:
Parse pe header

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

Function at 0x140004cd4
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140004d0e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140004d05
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140004d10
inc r8d
add rax, 0x28
jmp 0x140004cec
xor eax, eax
ret

Function at 0x140004d81
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140458e90]
mov r8, rcx
mov rcx, r9
call fcn.140004cb0
test eax, eax
je 0x140004dad
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140004cd4
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400128cf
Capabilities:
Terminate process

Disassembly:
jmp 0x140032240
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 0x140012a50
Capabilities:
Get geographical location

Disassembly:
jmp 0x14002d210
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 0x14002d24d
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.140013004
add rsp, 0x58
ret

Function at 0x140012af0
Capabilities:
Parse pe header

Disassembly:
jmp 0x140033590
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400335b0
xor al, al
jmp 0x140033631
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400335c3
xor al, al
jmp 0x140033631
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 0x1400335ed
xor al, al
jmp 0x140033631
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140033601
xor al, al
jmp 0x140033631
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140033613
xor al, al
jmp 0x140033631
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14003362f
xor al, al
jmp 0x140033631
mov al, 1
add rsp, 0x38
ret
Function at 0x140001000
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x38
lea r9, [0x1400083d8]
lea rdx, str.runas
xor ecx, ecx
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r9
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
add rsp, 0x38
ret

Function at 0x140001060
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xa0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x1400010e9
movsxd rax, dword [0x14000003c]
lea rdi, [0x140000000]
add rax, rdi
cmp dword [rax], 0x4550
je 0x1400010ab
xor ebx, ebx
mov dword [rsp + 0xb0], ebx
jmp 0x1400010f9
mov ecx, 0x20b
cmp word [rax + 0x18], cx
je 0x1400010c1
xor ebx, ebx
mov dword [rsp + 0xb0], ebx
jmp 0x1400010f9
cmp dword [rax + 0x84], 0xe
ja 0x1400010d5
xor ebx, ebx
mov dword [rsp + 0xb0], ebx
jmp 0x1400010f9
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0xb0], ebx
jmp 0x1400010f9
xor ebx, ebx
mov dword [rsp + 0xb0], ebx
lea rdi, [0x140000000]
mov ecx, 1
call fcn.140002928
test eax, eax
jne 0x140001129
cmp dword [0x14000b030], 1
jne 0x140001115
call fcn.140001a00
mov ecx, 0x1c
call fcn.1400017d8
mov ecx, 0xff
call fcn.14000145c
call fcn.1400028a4
test eax, eax
jne 0x140001154
cmp dword [0x14000b030], 1
jne 0x140001140
call fcn.140001a00
mov ecx, 0x10
call fcn.1400017d8
mov ecx, 0xff
call fcn.14000145c
call fcn.14000255c
nop
call fcn.14000226c
test eax, eax
jns 0x14000116d
mov ecx, 0x1b
call fcn.1400013f0
call sub.KERNEL32.dll_GetCommandLineW
mov qword [0x14000c178], rax
call fcn.1400021d8
mov qword [0x14000b028], rax
call fcn.1400020e8
test eax, eax
jns 0x140001198
mov ecx, 8
call fcn.1400013f0
call fcn.140001e18
test eax, eax
jns 0x1400011ab
mov ecx, 9
call fcn.1400013f0
mov ecx, 1
call fcn.1400014fc
test eax, eax
je 0x1400011c0
mov ecx, eax
call fcn.1400013f0
call fcn.140001dbc
test byte [rsp + 0x6c], 1
movzx edx, word [rsp + 0x70]
mov r9d, 0xa
cmovne r9d, edx
mov r8, rax
xor edx, edx
mov rcx, rdi
call fcn.140001000
mov edi, eax
mov dword [rsp + 0x20], eax
test ebx, ebx
jne 0x1400011f7
mov ecx, eax
call fcn.140001738
call fcn.140001750
jmp 0x140001218
mov eax, edi
jmp 0x140001221
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa0
pop rdi
ret
sub rsp, 0x28
call fcn.140002974
add rsp, 0x28
jmp 0x140001060