joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400048b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000d008]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400048dd
xor eax, eax
jmp 0x140004a49
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140004917
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140004917
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140004a49
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140004a3c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000495a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140004985
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140004a41
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400049f4
sub eax, 1
je 0x1400049f4
cmp eax, 2
jne 0x140004a3c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140004a41
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140004a22
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140004a3c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140004a41
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140006bd0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140004df0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000d008]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140004ec3
cmp byte [rcx + 0x71], 0
je 0x140004ec3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140004ebf
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140004e84
sub eax, 1
je 0x140004e88
cmp eax, 2
jne 0x140004ebf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140006bd0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140004eb6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140004ebf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140004e6c
xor al, al
jmp 0x140004e6c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140006bd0
add rsp, 0x60
pop rbx
ret

Function at 0x1400065a0
Capabilities:
Get geographical location

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

Function at 0x1400075e0
Capabilities:
Parse pe header

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

Disassembly:
push rdi
sub rsp, 0x40
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rbx
lea rdx, [0x140004010]
xor ebx, ebx
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov edi, ebx
call qword [0x140003010]
test eax, eax
jne 0x140001984
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
lea rdx, str.IP_Value
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x58], 4
mov dword [rsp + 0x60], ebx
mov qword [rsp + 0x20], rax
call qword [0x140003018]
test eax, eax
jne 0x140001984
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
lea rsi, [0x140004180]
lea rdx, str.GATEWAY1_Value
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x50], 0x104
mov qword [rsp + 0x20], rsi
call qword [0x140003018]
test eax, eax
jne 0x140001912
mov rcx, rsi
call fcn.140001e26
mov r8d, ebx
mov rcx, rbx
movsxd r9, eax
test eax, eax
jle 0x14000190d
nop word [rax + rax]
mov eax, 0x55555556
inc rcx
imul r8d
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dl
add al, al
add dl, al
movzx eax, r8b
inc r8d
sub al, dl
add al, 2
add byte [rcx + rsi - 1], al
cmp rcx, r9
jl 0x1400018e0
mov edi, 1
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x50]
lea rsi, [0x140004290]
mov qword [rsp + 0x28], rax
lea rdx, str.GATEWAY2_Value
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x50], 0x104
call qword [0x140003018]
test eax, eax
jne 0x14000197f
mov rcx, rsi
call fcn.140001e26
mov rcx, rbx
movsxd r8, eax
test eax, eax
jle 0x14000197a
nop
mov eax, ebx
inc rcx
inc ebx
cdq
and eax, 1
xor eax, edx
sub eax, edx
inc al
add byte [rcx + rsi - 1], al
cmp rcx, r8
jl 0x140001960
mov edi, 1
mov rsi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x38]
test rcx, rcx
je 0x140001999
call qword [0x140003030]
mov eax, edi
add rsp, 0x40
pop rdi
ret
Function at 0x140001a70
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1a0
mov rax, qword [0x140004150]
xor rax, rsp
mov qword [rsp + 0x190], rax
xor eax, eax
lea rdi, [0x140004180]
xor edx, edx
mov r8d, 0x104
mov rcx, rdi
mov byte [rsp + 0x30], 0x61
mov byte [rsp + 0x31], 0x61
mov byte [rsp + 0x32], 0x2e
mov byte [rsp + 0x33], 0x64
mov byte [rsp + 0x34], 0x61
mov byte [rsp + 0x35], 0x74
mov byte [rsp + 0x36], 0
mov word [rsp + 0x37], ax
mov byte [rsp + 0x39], al
call fcn.140001e20
lea rcx, [0x140004290]
xor edx, edx
mov r8d, 0x104
call fcn.140001e20
lea rcx, [rsp + 0x81]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x80], 0
call fcn.140001e20
lea rcx, [rsp + 0x20]
mov byte [rsp + 0x20], 0x6a
mov byte [rsp + 0x21], 0x74
mov byte [rsp + 0x22], 0x77
mov byte [rsp + 0x23], 0x2f
mov byte [rsp + 0x24], 0x2f
mov byte [rsp + 0x25], 0x2a
mov byte [rsp + 0x26], 0x62
mov byte [rsp + 0x27], 0x74
mov byte [rsp + 0x28], 0x62
mov byte [rsp + 0x29], 0
call fcn.140001e26
xor ebx, ebx
mov r9d, ebx
mov r8, rbx
movsxd r10, eax
test eax, eax
jle 0x140001b6d
mov eax, r9d
inc r8
inc r9d
cdq
and eax, 1
xor eax, edx
sub eax, edx
add al, 3
add byte [rsp + r8 + 0x1f], al
cmp r8, r10
jl 0x140001b50
lea rcx, [rsp + 0x80]
xor edx, edx
mov r8d, 0x104
call fcn.140001e20
lea rdx, [rsp + 0x80]
mov ecx, 0x104
call qword [0x1400030b0]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x80]
call fcn.140001e32
call fcn.140001800
test eax, eax
jne 0x140001c14
lea rdx, str.qa_i4420_fqpn7_tsu1422___2_mj40022365.dp35abqab
mov rcx, rdi
call fcn.140001e2c
mov rcx, rdi
call fcn.140001e26
mov rcx, rbx
movsxd r8, eax
test eax, eax
jle 0x140001bfb
mov eax, 0x55555556
inc rcx
imul ebx
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dl
add al, al
add dl, al
movzx eax, bl
inc ebx
sub al, dl
add al, 2
add byte [rcx + rdi - 1], al
cmp rcx, r8
jl 0x140001bd1
xor edx, edx
lea rcx, [rsp + 0x40]
lea r8d, [rdx + 0x32]
call fcn.140001e20
lea rdx, [0x140004189]
jmp 0x140001c89
xor edx, edx
lea rcx, [rsp + 0x40]
lea r8d, [rdx + 0x32]
call fcn.140001e20
lea rdx, [0x140004189]
lea rcx, [rsp + 0x40]
mov r8d, 0x18
call qword [0x140003138]
lea rdx, str.0109a2_
lea rcx, [rsp + 0x40]
call fcn.140001e32
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.140001e32
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x40]
call fcn.1400019b0
test eax, eax
jne 0x140001ccc
lea r8d, [rax + 0x32]
lea rcx, [rsp + 0x40]
xor edx, edx
call fcn.140001e20
lea rdx, [0x14000429e]
lea rcx, [rsp + 0x40]
mov r8d, 0x18
call qword [0x140003138]
lea rdx, str.0109a2_
lea rcx, [rsp + 0x40]
call fcn.140001e32
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.140001e32
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x40]
call fcn.1400019b0
xor eax, eax
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140001e00
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x1a0
pop rdi
ret
Function at 0x140001cf0
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x28
lea rcx, str.SeDebugPrivilege
mov edx, 1
call fcn.140001580
lea r8, str.sofpogpdwqewcxnhbhahaha
mov edx, 1
xor ecx, ecx
call qword [0x140003070]
mov qword [0x140004170], rax
call qword [0x140003078]
cmp eax, 0xb7
je 0x140001d4c
call fcn.140001a70
mov rcx, qword [0x140004170]
call qword [0x140003068]
mov rcx, qword [0x140004170]
call qword [0x1400030b8]
call fcn.140001630
xor eax, eax
add rsp, 0x28
ret
Function at 0x140003f4c
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.140003b5c
add rsp, 0x28
jmp 0x140003f70
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 [0x14001d938], rdi
jne 0x140008848
mov eax, dword [0x14001d930]
cmp eax, 1
je 0x140008868
mov eax, dword [0x14001d930]
cmp eax, ebx
jne 0x14000887f
mov dword [0x14001d930], 1
lea r13, [0x140014218]
lea rdi, [0x140014200]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x14000401c
cmp eax, ebx
jne 0x14000401c
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x140004011
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x140003ffa
cmp eax, ebx
jne 0x140008875
mov eax, dword [0x14001d930]
cmp eax, 1
jne 0x14000404c
lea rdx, [0x1400141f8]
lea rcx, [0x1400141c0]
call fcn.14018e000
mov dword [0x14001d930], 2
cmp r12d, ebx
jne 0x14000405b
mov rax, rbx
xchg qword [0x14001d938], rax
cmp qword [0x14001d950], rbx
jne 0x14000888e
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
je 0x1400088b7
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
jbe 0x14000409f
cmp word [rcx], 0x22
je 0x140008912
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x140004084
cmp word [rcx], bx
jne 0x1400088c1
cmp word [rcx], bx
jne 0x1400088ce
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.1400040e8
nop
jmp 0x1400088e6
cmp rax, rdi
jne 0x140008858
mov r12d, 1
jmp 0x140003fba
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140003fa9
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x140004024
mov eax, 0xff
jmp 0x140008951
mov dword [0x14001db2c], 1
jmp 0x140004024
lea rcx, [0x14001d950]
call fcn.140011e1c
cmp eax, ebx
je 0x140004068
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x14001d950]
nop
jmp 0x140004068
mov eax, 0xff
jmp 0x140008951
cmp edx, ebx
je 0x1400040a8
jmp 0x14000408a
cmp word [rcx], 0x20
ja 0x1400040b1
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400040a8
mov dword [0x14001db28], eax
cmp dword [0x14001d30c], ebx
jne 0x1400088fc
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14001db2c], ebx
jne 0x140008910
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14001db28]
jmp 0x140008951
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
jmp 0x140004094
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
Function at 0x180009e7c
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 0x180009eac
xor eax, eax
jmp 0x180009f6f
mov rbp, rbx
cmp word [rax], si
je 0x180009ed1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180009eb8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180009eb4
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.180009d9c
movsxd r14, eax
test eax, eax
jne 0x180009f0f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180009ea5
mov rcx, r14
call fcn.1800075e4
mov rdi, rax
test rax, rax
jne 0x180009f28
xor ecx, ecx
call fcn.1800083d4
jmp 0x180009f04
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.180009d9c
test eax, eax
jne 0x180009f59
mov rcx, rdi
call fcn.1800083d4
jmp 0x180009f63
xor ecx, ecx
call fcn.1800083d4
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 0x18000f660
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18000f688
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18000f688
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x40e930
Capabilities:
Get system information on windows
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
mov rbx, qword [0x006881d8]
mov r12, qword [rsp + 0xf0]
test rbx, rbx
mov qword [rsp + 0xd0], rcx
mov rbp, rdx
mov rsi, r9
mov qword [rsp + 0xe0], r8
je 0x40eb30
mov r13, qword [sym.imp.kernel32.dll_ReadFile]
lea r14, [rsp + 0x50]
cmp r12, rbx
cmovbe rbx, r12
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rbp]
mov rdx, qword [rax]
call fcn.0040e7f0
xor ecx, ecx
mov r9d, 4
mov rdx, rbx
mov r8d, 0x3000
call qword [sym.imp.kernel32.dll_VirtualAlloc]
test rax, rax
je 0x40ebb7
mov qword [rbp], rax
mov rax, qword [rsp + 0xe0]
xor r9d, r9d
mov r8d, 7
mov edx, 0x80000000
mov rcx, qword [rsp + 0xd0]
mov qword [rax], rbx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.kernel32.dll_CreateFileA]
cmp rax, 1
mov rdi, rax
je 0x40eb50
cmp rax, 2
je 0x40eb74
cmp qword [rsp + 0xf8], 0
setne r15b
cmp rax, 0xffffffffffffffff
sete al
test al, r15b
jne 0x40eae1
cmp rdi, 0xffffffffffffffff
je 0x40eaf1
mov qword [rsi], 0
xor ecx, ecx
jmp 0x40ea6b
test eax, eax
mov r8d, dword [rsp + 0x50]
je 0x40eaac
mov rcx, r8
add rcx, qword [rsi]
cmp r12, rcx
mov qword [rsi], rcx
sete dl
test r8, r8
sete al
or al, dl
jne 0x40eba0
cmp rbx, rcx
jbe 0x40eb10
mov r8d, ebx
mov rdx, rcx
mov r9, r14
add rdx, qword [rbp]
mov qword [rsp + 0x20], 0
sub r8d, ecx
mov rcx, rdi
call r13
test eax, eax
jne 0x40ea45
test r15b, r15b
je 0x40ea45
call qword [sym.imp.kernel32.dll_GetLastError]
mov rsi, qword [rsp + 0xf8]
mov dword [rsi], eax
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rbp]
mov rdx, qword [rax]
call fcn.0040e7f0
mov rcx, rdi
call qword [sym.imp.kernel32.dll_CloseHandle]
xor edx, edx
mov eax, edx
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.kernel32.dll_GetLastError]
mov rdi, qword [rsp + 0xf8]
mov dword [rdi], eax
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rbp]
mov rdx, qword [rax]
call fcn.0040e7f0
xor edx, edx
jmp 0x40eacb
add rbx, rbx
mov rcx, rdi
call qword [sym.imp.kernel32.dll_CloseHandle]
cmp r12, rbx
cmovbe rbx, r12
jmp 0x40e984
lea rcx, [rsp + 0x50]
call qword [sym.imp.kernel32.dll_GetSystemInfo]
mov ebx, dword [rsp + 0x54]
mov qword [0x006881d8], rbx
jmp 0x40e971
lea r8, str.__res_____fd_t_1_____fd_t_1_____fd_t__1_______0_
xor r9d, r9d
mov edx, 0x2564
mov qword [rsp + 0x20], 0
lea rcx, str.gotsan.cpp
call fcn.00406990
lea r8, str.__res_____fd_t_2_____fd_t_2_____fd_t__1_______0_
xor r9d, r9d
mov edx, 0x2565
mov qword [rsp + 0x20], 0
lea rcx, str.gotsan.cpp
call fcn.00406990
nop dword [rax + rax]
mov byte [rsp + 0x4f], al
mov rcx, rdi
call qword [sym.imp.kernel32.dll_CloseHandle]
movzx edx, byte [rsp + 0x4f]
jmp 0x40eacb
call qword [sym.imp.kernel32.dll_GetLastError]
mov dword [rsp + 0x20], 0
lea r8, str.allocate
mov rcx, rbx
lea rdx, str.ReadFileToBuffer
mov r9d, eax
call fcn.0040d4f0
nop
nop
Function at 0x414c90
Capabilities:
Get system information on windows
Read file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
test rdx, rdx
mov rsi, rcx
mov rbx, rdx
je 0x414c08
movsx edx, byte [rdx]
test dl, dl
je 0x414b56
xor eax, eax
nop
add rax, 1
cmp byte [rbx + rax], 0
jne 0x414b40
cmp rax, 0xf9c
ja 0x414c43
mov rdi, qword [rsi]
mov eax, 1
xchg byte [rdi], al
test al, al
je 0x414b6c
mov rcx, rdi
call fcn.00438d60
mov rcx, qword [rsi + 8]
lea rax, [rcx - 1]
cmp rax, 1
jbe 0x414c30
cmp rcx, 0xffffffffffffffff
je 0x414c30
call qword [sym.imp.kernel32.dll_CloseHandle]
mov qword [rsi + 8], 0xffffffffffffffff
cmp byte [rbx], 0x73
jne 0x414bed
lea r8, str.stdout
mov rax, rbx
jmp 0x414bb5
test r10d, r10d
je 0x414c10
add rax, 1
add r8, 1
movzx ecx, byte [rax]
cmp byte [r8], cl
movsx r10d, byte [rax]
je 0x414bb0
lea rdx, str.stderr
mov rax, rbx
jmp 0x414bda
test r8d, r8d
je 0x414c20
add rax, 1
add rdx, 1
movzx ecx, byte [rax]
cmp byte [rdx], cl
movsx r8d, byte [rax]
je 0x414bd5
lea rcx, [rsi + 0x10]
mov r9, rbx
mov edx, 0x1000
lea r8, [0x0059e953]
call fcn.0040bf10
mov byte [rdi], 0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
mov qword [rsi + 8], 1
jmp 0x414c05
mov qword [rsi + 8], 2
jmp 0x414c05
mov qword [rsi + 8], 0xffffffffffffffff
cmp byte [rbx], 0x73
je 0x414b9b
jmp 0x414bed
movsx eax, byte [rbx + 7]
lea rcx, str.ERROR:_Path_is_too_long:__c_c_c_c_c_c_c_c..._n
movsx r9d, byte [rbx + 2]
movsx r8d, byte [rbx + 1]
mov dword [rsp + 0x40], eax
movsx eax, byte [rbx + 6]
mov dword [rsp + 0x38], eax
movsx eax, byte [rbx + 5]
mov dword [rsp + 0x30], eax
movsx eax, byte [rbx + 4]
mov dword [rsp + 0x28], eax
movsx eax, byte [rbx + 3]
mov dword [rsp + 0x20], eax
call fcn.0040d370
call fcn.00406930
nop
nop word [rax + rax]
mov rax, qword [rsp + 0x28]
test rax, rax
mov qword [rdx], 0
mov qword [r8], 0
mov qword [r9], 0
je 0x414cb4
jmp fcn.0040e930
mov eax, 1
ret
Function at 0x140001000
Capabilities:
Parse pe header

Disassembly:
push rsi
sub rsp, 0x20
mov rax, qword [0x1400e0028]
mov dword [rax], 1
mov rax, qword [0x1400e0030]
add bh, al
add byte [rcx], al
add byte [rax], al
add byte [rax - 0x75], cl
mov eax, dword [0x1400e0038]

Function at 0x140001018
Capabilities:
Parse pe header

Disassembly:
add bh, al
add byte [rcx], al
add byte [rax], al
add byte [rax - 0x75], cl
mov eax, dword [0x1400e0038]
mov dword [rax], 1
mov rcx, qword [sym.plugin_container.exe_Ordinal_0]
movzx edx, word [rcx]
xor eax, eax

Function at 0x140001028
Capabilities:
Parse pe header

Disassembly:
add bh, al
add byte [rcx], al
add byte [rax], al
add byte [rax - 0x75], cl
mov eax, dword [0x1400e0038]
mov dword [rax], 1
mov rcx, qword [sym.plugin_container.exe_Ordinal_0]
movzx edx, word [rcx]
xor eax, eax
Function at 0x140001470
Capabilities:
Accept command line arguments

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov rbx, qword [0x1400e00c0]
call fcn.1400aab20
mov rax, qword [rbx]
xor rax, rbp
mov qword [rbp], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [rbp - 4], 0
lea rdx, [rbp - 4]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test rax, rax
je 0x1400014cd
mov rdi, rax
mov ecx, dword [rbp - 4]
mov rdx, rax
call fcn.140001500
mov esi, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400014d2
mov esi, 0x7f
mov rax, qword [rbp]
xor rax, rbp
mov rcx, qword [rbx]
cmp rcx, rax
jne 0x1400014ec
mov eax, esi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop rbp
ret
call fcn.14005fbe0
int3
Function at 0x140007080
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
mov esi, eax
movabs eax, dword [0xda8b088900409214]
test ebx, ebx
jle 0x1400070a1
mov eax, 0xff
call fcn.140002680
xor byte [rsi], al
jne 0x140007091
pop rsi
pop rbx
ret

Function at 0x14000d210
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x168
mov r13, qword [0x1400e00c0]
mov rax, qword [r13]
xor rax, rsp
mov qword [rsp + 0x160], rax
test rdx, rdx
je 0x14000d2a0
mov rsi, rdx
mov rdi, rcx
mov ebp, 0xffffffff
lea r14, str._var_tmp_build_firefox_1390a2309e98_security_sandbox_chromium_base_rand_util_win.cc
lea r15, str.success
lea r12, [rsp + 0x28]
jmp 0x14000d268
add rdi, rbx
sub rsi, rbx
je 0x14000d2a0
cmp rsi, rbp
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x14000d260
mov rcx, r12
mov rdx, r14
mov r8d, 0x20
mov r9, r15
call fcn.140003350
mov rcx, r12
call fcn.1400035d0
jmp 0x14000d260
mov rax, qword [rsp + 0x160]
xor rax, rsp
mov rcx, qword [r13]
cmp rcx, rax
jne 0x14000d2c8
add rsp, 0x168
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.14005fbe0
int3