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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [sym.imp.ucrtbase.dll___acrt_iob_func]
lea rsi, [0x1400072bf]
mov rbp, qword [rcx]
mov rdi, qword [rcx + 8]
mov ecx, 2
call rbx
lea rdx, str.could_not_load:
mov rcx, rax
call fcn.140001b10
test rbp, rbp
je 0x140002d51
lea rsi, [rdi + 8]
mov ecx, 2
call rbx
mov rdx, rsi
mov rcx, rax
call fcn.140001b10
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xc1
jne 0x140002d86
mov ecx, 2
call rbx
lea rdx, str._n_bad_format__library_may_be_wrong_architecture_
mov rcx, rax
call fcn.140001b10
mov ecx, 2
call rbx
lea rdx, [0x140007302]
mov rcx, rax
call fcn.140001b10
mov ecx, 1
call sub.ucrtbase.dll_exit
nop

Function at 0x140002da7
Capabilities:
Terminate process

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov rsi, rcx
mov ecx, 2
call rbx
lea rdx, str.could_not_import:
mov rcx, rax
call fcn.140001b10
mov ecx, 2
call rbx
mov rdx, rsi
mov rcx, rax
call fcn.140001b10
mov ecx, 2
call rbx
lea rdx, [0x140007302]
mov rcx, rax
call fcn.140001b10
mov ecx, 1
call sub.ucrtbase.dll_exit
nop

Function at 0x140003282
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
cmp byte [0x14000c0c0], 0
je 0x1400032b9
mov rcx, qword [0x14000c0f0]
test rcx, rcx
je 0x1400032b9
call fcn.14000325d
lea rcx, [0x14000c0f0]
xor edx, edx
call fcn.140001d4d
mov ecx, 1
call sub.ucrtbase.dll_exit
nop
add rsp, 0x28
ret
sub rsp, 0x28
xor r9d, r9d
lea r8, str.Nim_is_Powerful
xor ecx, ecx
lea rdx, str.Hello__world__
call qword [0x14000c1f8]
nop
add rsp, 0x28
jmp 0x140003282
sub rsp, 0x28
call fcn.14000341c
nop
add rsp, 0x28
jmp 0x140003395

Function at 0x140003395
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
cmp byte [0x14000c0c0], 0
je 0x1400032b9
mov rcx, qword [0x14000c0f0]
test rcx, rcx
je 0x1400032b9
call fcn.14000325d
lea rcx, [0x14000c0f0]
xor edx, edx
call fcn.140001d4d
mov ecx, 1
call sub.ucrtbase.dll_exit
nop
add rsp, 0x28
ret
sub rsp, 0x28
xor r9d, r9d
lea r8, str.Nim_is_Powerful
xor ecx, ecx
lea rdx, str.Hello__world__
call qword [0x14000c1f8]
nop
add rsp, 0x28
jmp 0x140003282
sub rsp, 0x28
call fcn.14000341c
nop
add rsp, 0x28
jmp 0x140003395

Function at 0x14000343e
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
cmp byte [0x14000c0c0], 0
je 0x1400032b9
mov rcx, qword [0x14000c0f0]
test rcx, rcx
je 0x1400032b9
call fcn.14000325d
lea rcx, [0x14000c0f0]
xor edx, edx
call fcn.140001d4d
mov ecx, 1
call sub.ucrtbase.dll_exit
nop
add rsp, 0x28
ret
sub rsp, 0x28
xor r9d, r9d
lea r8, str.Nim_is_Powerful
xor ecx, ecx
lea rdx, str.Hello__world__
call qword [0x14000c1f8]
nop
add rsp, 0x28
jmp 0x140003282
sub rsp, 0x28
call fcn.14000341c
nop
add rsp, 0x28
jmp 0x140003395
Function at 0x140003790
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.ucrtbase.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.ucrtbase.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.ucrtbase.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.140004af0
call sub.ucrtbase.dll_abort
nop

Function at 0x140004462
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14000c2c8]
test eax, eax
je 0x1400044fa
lea rax, [0x14000c2a0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14000c2d0]
mov qword [rbp - 8], rax
jmp 0x1400044de
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 0x1400044d2
cmp qword [rbp - 0x10], 0
je 0x1400044d2
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 0x140004498
lea rax, [0x14000c2a0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400044fb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140004600
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 0x140004628
mov eax, 0
jmp 0x140004676
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 0x140004651
mov eax, 0
jmp 0x140004676
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 0x140004671
mov eax, 0
jmp 0x140004676
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14000467c
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 0x1400046fa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400046f1
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 0x1400046f1
mov rax, qword [rbp - 8]
jmp 0x14000470f
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 0x1400046c4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400047e4
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1400128b8]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea r14, str.en_US
mov rsi, rcx
mov qword [rcx], r14
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov word [rsp + 0x30], ax
mov ebx, 0x10
mov r9d, ebx
lea rdx, [0x140008110]
lea rax, [0x140004df0]
mov r8d, 0x1b3
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call sub.api_ms_win_crt_private_l1_1_0.dll__o_bsearch
xor ebp, ebp
test rax, rax
jne 0x14000485f
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400048e5
cmp dword [rax + 0xc], 0x7c
jne 0x14000486c
cmp word [rax + 8], 0x7f
jne 0x14000484f
mov r8, qword [rax]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [r8 + rcx*2], bp
jne 0x140004873
inc rcx
cmp rcx, 0x7ffffffe
jbe 0x140004890
mov word [rsp + 0x38], bp
jmp 0x1400048d7
lea rax, [rsp + 0x38]
mov r9d, ebp
sub r8, rax
lea rdx, [rsp + 0x38]
lea rax, [rbx - 0x10]
add rax, rcx
je 0x1400048c0
movzx eax, word [r8 + rdx]
test ax, ax
je 0x1400048c0
mov word [rdx], ax
add rdx, 2
sub rbx, 1
jne 0x1400048a0
test rbx, rbx
jne 0x1400048cf
sub rdx, 2
mov r9d, 0x8007007a
mov word [rdx], bp
test r9d, r9d
jns 0x1400048e1
mov ecx, 0x7a
jmp 0x140004854
test ecx, ecx
jne 0x1400048f1
mov rcx, qword [rsp + 0x78]
call fcn.14000494c
jmp 0x14000492a
mov rbx, rbp
mov rdi, rbp
mov rdx, qword [rdi + r14]
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
test eax, eax
je 0x14000491c
inc rbx
add rdi, 0x30
cmp rdi, 0x750
jb 0x1400048f7
jmp 0x14000492a
lea rax, [rbx + rbx*2]
shl rax, 4
add rax, r14
mov qword [rsi], rax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400050e0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140005104
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140012e60], eax
call fcn.1400056f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140012e60], 0
jne case.default.0x14000515a
mov ecx, 1
call fcn.1400056f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
movabs rdi, 0x4f2627052d06ad1c
adc r10b, al
push rax
mov edi, 0x8480a500
sub ecx, eax
invalid
Function at 0x140001000
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140004008]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 7
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___int____ptr64____ptr64]
xor ebx, ebx
mov ecx, 0x46
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1400010b2
mov r8d, 0x28
mov dword [rsp + 0x28], ebx
xorps xmm0, xmm0
mov dword [rsp + 0x3c], 2
xorps xmm1, xmm1
lea rdx, [rsp + 0x28]
movdqu xmmword [rsp + 0x2c], xmm0
lea ecx, [r8 - 0x27]
movdqu xmmword [rsp + 0x40], xmm1
call qword [sym.imp.USER32.dll_SendInput]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 0x28
mov dword [rsp + 0x28], ebx
xorps xmm0, xmm0
mov dword [rsp + 0x3c], 4
xorps xmm1, xmm1
lea rdx, [rsp + 0x28]
movdqu xmmword [rsp + 0x2c], xmm0
lea ecx, [r8 - 0x27]
movdqu xmmword [rsp + 0x40], xmm1
call qword [sym.imp.USER32.dll_SendInput]
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001031

Function at 0x1400019bc
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x14004bfdd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14004bfed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14004bfd5
lea eax, [rcx + 1]
jmp 0x14004bffb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14004c00e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14004bff4
sub eax, 3
jb 0x14004c02e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14004c07d
sar eax, 1
movsxd rbp, eax
jb 0x14004c064
jmp 0x14004c03c
add ebx, ebx
jne 0x14004c03a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14004c064
inc ecx
add ebx, ebx
jne 0x14004c04a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14004c064
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14004c05d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14004c04c
add ecx, 2
jmp 0x14004c069
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14004bf92
jmp 0x14004bfdd
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x2d000
mov dl, 0xe
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14004c0cd
cmp rsi, rcx
jae 0x14004c0d5
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14004c0b4
cmp al, 0x8f
ja 0x14004c0b4
cmp byte [rsi - 2], 0xf
je 0x14004c0ba
sub al, 0xe8
cmp al, 1
ja 0x14004c09e
cmp rsi, rcx
jae 0x14004c0d5
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14004c0a4
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14004c0d5
lodsb al, byte [rsi]
jmp 0x14004c0b4
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x49000]
mov eax, dword [rdi]
or eax, eax
je 0x14004c132
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x4cb30]
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 0x14004c0e2
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 0x14004c12c
mov qword [rbx], rax
add rbx, 8
jmp 0x14004c102
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 0x14004c16c
cmp al, 0xef
ja 0x14004c15e
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14004c13e
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14004c14d
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 + 0x227]
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 0x14004c1c0
sub rsp, 0xffffffffffffff80
jmp 0x140013ff0
Function at 0x140e6a2d0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140e6a2da
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140e6a303
pop rbp
sub rbp, 0x33
sub rbp, 0xe6a2d0
sub rsp, 0x20
jmp 0x140e6a322
mov rax, 0xe6a2d0
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x65988e6f
xor byte [rax], dl
inc rax
dec rcx
jne 0x140e6a341
jmp 0x140e6a358
invalid
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
push rcx
push rsi
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
mov rsi, qword [rdx + 0x50]
xor r9, r9
movzx rcx, word [rdx + 0x4a]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
push r9
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
push rax
mov ecx, dword [rax + 0x18]
mov r8d, dword [rax + 0x20]
add r8, rdx
jrcxz 0x1400040ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x140039270
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14003927d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14003928d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140039275
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x1400392a5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140039292
sub eax, 3
jb 0x1400392bf
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400392f6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x1400392e6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400392e4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400392d3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.140039232
jmp 0x14003927d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1f800
mov dl, 0xe
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140039346
cmp rsi, rcx
jae 0x14003934e
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14003932d
cmp al, 0x8f
ja 0x14003932d
cmp byte [rsi - 2], 0xf
je 0x140039333
sub al, 0xe8
cmp al, 1
ja 0x140039317
cmp rsi, rcx
jae 0x14003934e
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14003931d
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14003934e
lodsb al, byte [rsi]
jmp 0x14003932d
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x37000]
mov eax, dword [rdi]
or eax, eax
je 0x1400393ab
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x39b34]
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 0x14003935b
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 0x1400393a5
mov qword [rbx], rax
add rbx, 8
jmp 0x14003937b
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 0x1400393e5
cmp al, 0xef
ja 0x1400393d7
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400393b7
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400393c6
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 + 0x23f]
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 0x140039439
sub rsp, 0xffffffffffffff80
jmp 0x140007270
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400232e0]
mov dword [rax], 1
mov rax, qword [0x1400232f0]
mov dword [rax], 1
mov rax, qword [0x140023300]
mov dword [rax], 1
mov rax, qword [0x1400232d0]
mov dword [rax], 1
mov rax, qword [0x140023180]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
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 0x14000150a
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140003780
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r8d, r8d
mov r13, rcx
mov r12, rdx
test rdx, rdx
je 0x1400037a1
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, r12
mov r9, r13
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, r13
add rsp, 0x28
pop r12
pop r13
jmp 0x1400140a8
jmp qword [sym.imp.msvcrt.dll_fflush]
Function at 0x140008a30
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbx
sub rsp, 0x48
mov r13, qword [0x14002a150]
mov r12, rcx
mov rbx, rdx
test r13, r13
je 0x140008b10
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
test rcx, rcx
je 0x140008a75
call sub.msvcrt.dll_strlen
mov rbx, rax
test rax, rax
jne 0x140008ab0
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x28], 0
call r13
lea rcx, [0x1400211c0]
call fcn.14000e6e0
cmp byte [rax], 0
jne 0x140008b48
add rsp, 0x48
pop rbx
pop r12
pop r13
pop r14
ret
lea rcx, [0x1400211e0]
call fcn.14000e6e0
lea rdx, [rbx + 9]
mov rcx, rax
mov r14, rax
call fcn.1400049c0
lea r8, [rbx + 1]
mov rdx, r12
mov qword [rax], rbx
mov r13, rax
lea rcx, [rax + 8]
call sub.msvcrt.dll_memcpy
mov qword [rsp + 0x20], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x28], r13
call qword [0x14002a150]
test byte [r13 + 7], 0x40
jne 0x140008a8f
mov rdx, r13
mov rcx, r14
call fcn.140005860
jmp 0x140008a8f
mov ecx, 2
call qword [fcn.1400147d0]
mov rcx, r12
mov r8, rbx
mov edx, 1
mov r13, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, r13
add rsp, 0x48
pop rbx
pop r12
pop r13
pop r14
jmp 0x1400140a8
mov byte [rax], 0
lea rcx, [0x1400210c0]
call fcn.14000e6e0
mov r12, qword [rax]
mov rdx, qword [r12 + 0x38]
test rdx, rdx
je 0x140008b69
add qword [rdx - 0x10], 0x10
mov qword [rax], rdx
mov rax, qword [r12 - 0x10]
lea rdx, [r12 - 0x10]
test rax, 0xfffffffffffffff0
je 0x140008ba0
mov r8, qword [r12]
sub rax, 0x10
xor ecx, ecx
mov qword [r12 - 0x10], rax
add rsp, 0x48
pop rbx
pop r12
pop r13
pop r14
jmp fcn.140007a70
mov r8, qword [r12]
mov ecx, 1
call fcn.140007a70
mov rcx, r12
add rsp, 0x48
pop rbx
pop r12
pop r13
pop r14
jmp fcn.140007b20

Function at 0x14000d390
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 fcn.1400147d0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1400147d0
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop