joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2915da430
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2915dae32
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x29173e108]
test eax, eax
je 0x2915daeca
lea rax, [0x29173e0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x29173e110]
mov qword [rbp - 8], rax
jmp 0x2915daeae
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 0x2915daea2
cmp qword [rbp - 0x10], 0
je 0x2915daea2
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 0x2915dae68
lea rax, [0x29173e0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2915daecb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2915dafd0
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 0x2915daff8
mov eax, 0
jmp 0x2915db046
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 0x2915db021
mov eax, 0
jmp 0x2915db046
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 0x2915db041
mov eax, 0
jmp 0x2915db046
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2915db04c
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 0x2915db0ca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2915db0c1
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 0x2915db0c1
mov rax, qword [rbp - 8]
jmp 0x2915db0df
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 0x2915db094
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x100001400
Capabilities:
Terminate process

Disassembly:
mov word [rbx], di
add rbx, 2
cmp word [rbx], di
je 0x100001683
lea rdx, str._ProcessID
lea rcx, [rsp + 0x90]
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, edi
jne 0x100001683
lea rax, [rsp + 0x30]
mov edx, 0x29
lea rcx, [rsp + 0x30]
sub rbx, rax
mov r8d, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea rax, [rdx + 0x7fffffd5]
cmp rax, rdi
je 0x100001072
movzx eax, word [rbx + rcx]
cmp ax, di
je 0x100001072
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x100001050
cmp rdx, rdi
je 0x100001690
cmp r8d, edi
mov word [rcx], di
jl 0x1000010c8
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ole32.dll_CLSIDFromString]
cmp eax, edi
jl 0x1000010c8
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, edi
jl 0x1000010c8
lea rcx, [rsp + 0x20]
xor edx, edx
call 0x100093000
call qword [sym.imp.ole32.dll_CoUninitialize]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.100001650
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x2b0
pop rdi
ret
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x2b0
mov rax, qword [0x100003018]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
xor r9d, r9d
mov rbx, r8
xor ecx, ecx
lea edx, [r9 + 1]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_HeapSetInformation]
xor edi, edi
lea rax, [rsp + 0x90]
mov r11d, 0x105
lea rcx, [rsp + 0x90]
mov edx, edi
sub rbx, rax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea rax, [r11 + 0x7ffffef9]
cmp rax, rdi
je 0x100001482
movzx eax, word [rbx + rcx]
cmp ax, di
je 0x100001482
mov word [rcx], ax
add rcx, 2
sub r11, 1
jne 0x100001460
cmp r11, rdi
je 0x100001670
cmp edx, edi
mov word [rcx], di
jl 0x1000010c8
lea rbx, [rsp + 0x90]
cmp word [rsp + 0x90], di
je 0x100001683
cmp word [rbx], 0x3a
je section..text
add rbx, 2
cmp word [rbx], di
jne 0x1000014ac
jmp 0x10000167e
sub rcx, 2
mov edx, 0x8007007a
jmp 0x10000148b
jmp 0x100001007
lea rbx, [rsp + 0x90]
jmp 0x10000102d
sub rcx, 2
mov r8d, 0x8007007a
jmp 0x10000107b
Function at 0x14000159b
Capabilities:
Terminate process

Disassembly:
jmp 0x14000f4b0
push rbx
movsxd r11, r9d
mov rbx, r8
mov r10, rcx
test edx, edx
jns 0x14000f4c8
lea rcx, str.bad_value_count
jmp 0x14000f537
mov r9, qword [rcx]
cmp r11d, 1
je 0x14000f50b
mov ecx, 0x100
cmp dword [rsp + 0x30], ecx
je 0x14000f50b
sub ecx, dword [rsp + 0x30]
mov r8d, r11d
jmp 0x14000f502
mov rax, r9
inc r9
sub r8d, 1
je 0x14000f4f8
movzx eax, byte [rax]
cmp eax, ecx
jge 0x14000f502
dec edx
mov r8d, r11d
cmp r9, rbx
ja 0x14000f530
test edx, edx
jg 0x14000f4e5
mov qword [r10], r9
pop rbx
ret
movsxd r8, edx
mov rcx, r11
imul r11, r8
xor edx, edx
mov rax, r11
div rcx
cmp rax, r8
jne 0x14000f530
lea rax, [r11 + r9]
cmp rax, rbx
ja 0x14000f530
mov qword [r10], rax
pop rbx
ret
lea rcx, str.EOF_reading_band
xor edx, edx
pop rbx
jmp fcn.1400014b0

Function at 0x1400015be
Capabilities:
Terminate process

Disassembly:
jmp 0x14001f8a4
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov ecx, 1
call fcn.1400018bb
test al, al
je 0x14001f76f
xor sil, sil
mov byte [rsp + 0x20], sil
call fcn.140001712
mov bl, al
mov ecx, dword [0x140033b48]
cmp ecx, 1
je 0x14001f77a
test ecx, ecx
jne 0x14001f6a5
mov dword [0x140033b48], 1
lea rdx, [0x140025660]
lea rcx, [0x140025330]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
test eax, eax
je 0x14001f686
mov eax, 0xff
jmp 0x14001f75f
lea rdx, [0x140025220]
lea rcx, [section..rdata]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [0x140033b48], 2
jmp 0x14001f6ad
mov sil, 1
mov byte [rsp + 0x20], sil
mov cl, bl
call fcn.1400016cc
call fcn.140001604
mov rbx, rax
cmp qword [rax], 0
je 0x14001f6e0
mov rcx, rax
call fcn.140001334
test al, al
je 0x14001f6e0
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [rbx]
call qword [0x140038020]
call fcn.14000165e
mov rbx, rax
cmp qword [rax], 0
je 0x14001f702
mov rcx, rax
call fcn.140001334
test al, al
je 0x14001f702
mov rcx, qword [rbx]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_initial_narrow_environment
mov rdi, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argv
mov rbx, qword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argc
mov r8, rdi
mov rdx, rbx
mov ecx, dword [rax]
call fcn.1400015a5
mov ebx, eax
call fcn.1400015c8
test al, al
je 0x14001f784
test sil, sil
jne 0x14001f739
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
xor edx, edx
mov cl, 1
call fcn.140001325
mov eax, ebx
jmp 0x14001f75f
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, 7
call fcn.1400016f9
nop
mov ecx, 7
call fcn.1400016f9
mov ecx, ebx
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
mov ecx, ebx
call sub.api_ms_win_crt_runtime_l1_1_0.dll__exit
nop
int3
sub rsp, 0x28
call fcn.1400c7000
add rsp, 0x28
jmp 0x14001f618
Function at 0x1400015c8
Capabilities:
Parse pe header

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

Function at 0x1400015dc
Capabilities:
Terminate process

Disassembly:
jmp 0x14001e660
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rdx
mov rbx, rcx
jne 0x14001e6b4
lea rdx, [0x14002ee04]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [rbx], rax
test rax, rax
jne 0x14001e6b4
mov rcx, qword [rbx + 0x50]
lea rdx, str.Error:_Could_not_open_jar_file:__s_n
mov r8, rdi
mov rcx, qword [rcx + 0xc0]
call fcn.140001749
mov ecx, 3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400017d5
Capabilities:
Terminate process

Disassembly:
jmp 0x140014d78
push rbx
sub rsp, 0x20
mov ebx, edx
mov edx, 2
call fcn.1400012bc
movzx ecx, bx
mov rdx, rax
cmp ebx, ecx
je 0x140014da7
xor edx, edx
lea rcx, str.Internal_buffer_overflow
add rsp, 0x20
pop rbx
jmp fcn.1400014b0
mov eax, ebx
mov byte [rdx + 1], bl
sar eax, 8
mov byte [rdx], al
add rsp, 0x20
pop rbx
ret

Function at 0x1400017f8
Capabilities:
Terminate process
Write file on windows

Disassembly:
jmp 0x14001ec14
test r8d, r8d
jle 0x14001ec67
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ebx, r8d
mov rsi, rdx
mov rdi, rcx
mov r9, qword [rdi]
mov edx, 1
mov r8d, ebx
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
test eax, eax
jle 0x14001ec68
add dword [rdi + 0x34], eax
sub ebx, eax
movsxd rcx, eax
add rsi, rcx
test ebx, ebx
jg 0x14001ec31
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rcx, qword [rdi + 0x50]
lea rdx, str.Error:_write_on_output_file_failed_err_d_n
mov r8d, dword [rax]
mov rcx, qword [rcx + 0xc0]
call fcn.140001749
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140001b80
Capabilities:
Check internet connectivity via wininet

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
setne al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140004130
add rsp, 0x38
ret

Function at 0x140001bc0
Capabilities:
Create process on windows
Delete file

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0xf0
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov dword [rsp + 0x70], 0x68
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
xor ecx, ecx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov rbx, rdx
mov qword [rsp + 0x38], rcx
xor r9d, r9d
mov qword [rsp + 0x30], rcx
xor r8d, r8d
movups xmmword [r11 - 0x50], xmm0
mov word [r11 - 0x48], cx
xor edx, edx
mov dword [rsp + 0x28], 0x8000008
mov dword [rsp + 0x20], ecx
mov rcx, rbx
movups xmmword [r11 - 0x70], xmm0
mov dword [r11 - 0x4c], 0x81
movups xmmword [r11 - 0x60], xmm0
movups xmmword [r11 - 0x40], xmm0
movups xmmword [r11 - 0x30], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140001c82
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140001c82
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140004130
add rsp, 0xf0
pop rbx
ret

Function at 0x140001cb0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, 0x13c8
call fcn.1400051c0
sub rsp, rax
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x13b0], rax
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x13a4], 0xffffffff
mov edx, 1
mov dword [rsp + 0x24], eax
nop dword [rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x24], eax
inc rdx
cmp rdx, 0x270
jb 0x140001cf0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x270
call fcn.140003cf0
mov ecx, eax
imul rcx, rcx, 0xfa1
cmp ecx, 0x71e
ja 0x140001d4d
lea rcx, [rsp + 0x20]
call fcn.140003cf0
mov ecx, eax
imul rcx, rcx, 0xfa1
cmp ecx, 0x71f
jb 0x140001d32
shr rcx, 0x20
add ecx, 0x800003e8
btc ecx, 0x1f
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x13b0]
xor rcx, rsp
call fcn.140004130
add rsp, 0x13c8
ret
Function at 0x140003be0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r8, r9
mov rdi, rdx
mov r9, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x30]
call fcn.140003f00
mov rsi, qword [rax]
xor ebp, ebp
mov qword [rax], rbp
mov qword [rsp + 0x38], rsi
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x140003c98
mov rdx, qword [rbx + 0x30]
cmp rdx, 0xf
jbe 0x140003c7b
mov rcx, qword [rbx + 0x18]
inc rdx
cmp rdx, 0x1000
jb 0x140003c76
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003cdb
mov rcx, r8
call fcn.1400044ec
mov qword [rbx + 0x28], rbp
mov qword [rbx + 0x30], 0xf
mov byte [rbx + 0x18], 0
mov edx, 0x40
mov rcx, rbx
call fcn.1400044ec
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebp
mov r9, rsi
lea r8, [0x140004080]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x140003ce2
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140004130
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov dword [rbx], ebp
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x140003cf0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x140003d51
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140003d10
mov ecx, dword [r9]
jmp 0x140003e3b
cmp ecx, 0x4e0
jb 0x140003e3b
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140003d70
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140003dc0
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x140004d8c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004dd6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004dd6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004dd6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004dd6
cmp dword [rcx + 0x84], 0xe
jbe 0x140004dd6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140004dd8
xor al, al
add rsp, 0x28
ret
Function at 0x1400299f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ecx, dword [0x140061a68]
xor edi, edi
cmp byte [0x140061a6c], dil
je 0x140029a18
call qword [sym.imp.KERNEL32.dll_FlsGetValue]
jmp 0x140029a1e
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140029abc
mov rax, qword [rax + 0x50]
cmp rax, 8
jb 0x140029a62
mov rcx, qword [rbx + 0x38]
lea rax, [rax*2 + 2]
cmp rax, 0x1000
jb 0x140029a5c
mov rdx, qword [rcx - 8]
sub rcx, rdx
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140029aa6
mov rcx, rdx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x48], rdi
lea rcx, [rbx + 0x28]
mov esi, 7
mov qword [rbx + 0x50], rsi
mov word [rbx + 0x38], di
call fcn.140010c78
mov rcx, rbx
call fcn.14001b898
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [0x140061a68]
xor edx, edx
cmp byte [0x140061a6c], dil
je 0x140029aad
call qword [sym.imp.KERNEL32.dll_FlsSetValue]
jmp 0x140029ab3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x140029abc
mov rcx, rsi
int 0x29
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14136d1d5
Capabilities:
Encode data using xor

Disassembly:
push rsp
adc dl, cl
invalid
add qword [rsp + 0x20], 0xffffffffbebd20ed
push r10
push rsi
push rbx
push qword [rsp + 0x28]
popfq
lea rsp, [rsp + 0x40]
call fcn.1415dc99e
sbb qword [r11], rsp
mov esi, esi
jg 0x14136d195
sal byte [rsi + 0x20], cl
ror dword [rcx + 0x2d], 0x89
xchg byte [rcx - 0x6a], cl
and cl, al
sub rax, 0xffffffff96498689
xor byte [rcx + 0x2e97fccb], cl
jbe 0x14136d258
adc dword [rax - 0x3b], esp
jbe 0x14136d1fa
mov dl, pe_nt_image_headers64
enter 0xfffffffffffff576, 4
lodsb al, byte [rsi]
and eax, 0xc5209989
invalid
fucomi st(3)
xchg esi, eax
popfq
add ch, dl
fcom dword [rcx]
imul ebp, dword [rcx + 0x37], 0x7a
pop rdi
jge 0x14136d2e4
xor eax, 0x1ec211d8
cmp al, 0x7f
adc al, 0x5a
pushfq
invalid
add dword [rax + 0x32], ebx
xor al, 0x6f
jb 0x14136d35e
xchg esi, eax
adc dword [rdx - 0xb40891e], 0x426f3460
pop rsp
jmp [rcx]
mov esi, esi
mov ecx, ecx
pushfq
Function at 0x14002d240
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14002d24d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14002d25d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14002d245
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14002d275
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14002d262
sub eax, 3
jb 0x14002d28f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14002d2c6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14002d2b6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14002d2b4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14002d2a3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14002d202
jmp 0x14002d24d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x17a00
mov dl, 0xe
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14002d312
cmp rsi, rcx
jae 0x14002d31a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14002d2f9
cmp al, 0x8f
ja 0x14002d2f9
cmp byte [rsi - 2], 0xf
je 0x14002d2ff
sub al, 0xe8
cmp al, 1
ja 0x14002d2e3
cmp rsi, rcx
jae 0x14002d31a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14002d2e9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14002d31a
lodsb al, byte [rsi]
jmp 0x14002d2f9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x2b000]
mov eax, dword [rdi]
or eax, eax
je 0x14002d377
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x2d1dc]
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 0x14002d327
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 0x14002d371
mov qword [rbx], rax
add rbx, 8
jmp 0x14002d347
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 0x14002d3b1
cmp al, 0xef
ja 0x14002d3a3
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14002d383
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14002d392
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 + 0x247]
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 0x14002d405
sub rsp, 0xffffffffffffff80
jmp 0x140006738
Function at 0x140002530
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14002e040]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [rcx + 0x18], 7
mov rsi, r8
mov rbx, rdx
jbe 0x140001d0f
mov rcx, qword [rcx]
xor edi, edi
xor r9d, r9d
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov dword [rsp + 0x28], 0x80
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140001d44
xor al, al
jmp 0x140001d7b
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rdi
mov r8d, esi
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140001d78
mov eax, dword [rsp + 0x40]
cmp rax, rsi
jne 0x140001d78
mov dil, 1
mov al, dil
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140005bb0
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret