joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18008ba70
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 0x18008baa0
xor eax, eax
jmp 0x18008bb63
mov rbp, rbx
cmp word [rax], si
je 0x18008bac5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18008baac
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18008baa8
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.18008a158
movsxd r14, eax
test eax, eax
jne 0x18008bb03
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18008ba99
mov rcx, r14
call fcn.180083ce0
mov rdi, rax
test rax, rax
jne 0x18008bb1c
xor ecx, ecx
call fcn.180083ca4
jmp 0x18008baf8
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.18008a158
test eax, eax
jne 0x18008bb4d
mov rcx, rdi
call fcn.180083ca4
jmp 0x18008bb57
xor ecx, ecx
call fcn.180083ca4
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 0x18008e3b4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.180081d18
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x18008e455
cmp ebx, dword [rsp + 0x30]
je 0x18008e44e
test esi, esi
je 0x18008e44e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18008e429
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18008e436
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18008e413
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18008e43a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18008e457
mov eax, 1
jmp 0x18008e457
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180092b68
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.180086b20
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180086b20
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180092cb8
cmp rax, 0xffffffffffffffff
je 0x180092cb8
xor edi, edi
test rbp, rbp
jle 0x180092c63
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800853e8
mov rbx, rax
test rax, rax
jne 0x180092bf0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180092c59
mov edx, 0x8000
mov ecx, r14d
call fcn.1800929ec
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.18008809c
cmp eax, 0xffffffff
je 0x180092c39
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180092c00
mov edx, r15d
mov ecx, r14d
call fcn.1800929ec
jmp 0x180092c59
cmp byte [rsi + 0x38], dil
je 0x180092c50
cmp dword [rsi + 0x34], 5
jne 0x180092c50
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180092c59
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180083ca4
jmp 0x180092ccc
jns 0x180092ccc
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180086b20
cmp rax, 0xffffffffffffffff
jne 0x180092c84
cmp byte [rsi + 0x30], dil
je 0x180092ccc
mov edi, dword [rsi + 0x2c]
jmp 0x180092ccc
mov ecx, r14d
call fcn.180090378
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180092ccc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x180092ccc
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180092cc5
mov eax, dword [rsi + 0x2c]
jmp 0x180092cca
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180086b20
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1800933e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180093408
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180093408
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002e94
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rax, qword [0x140079038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov ebx, 0x80070057
cmp r8d, 0x104
jb 0x140002f37
mov rdi, rdx
mov rsi, rcx
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x28]
mov qword [rbx], rax
call fcn.1400045b9
lea rcx, section..rdata
lea rdx, [0x14005f010]
test al, al
cmovne rdx, rcx
movups xmm0, xmmword [rdx]
lea rcx, [rsp + 0x30]
movaps xmmword [rcx], xmm0
xor r14d, r14d
xor edx, edx
xor r8d, r8d
mov r9, rbx
call sub.SHELL32.dll_SHGetKnownFolderPath
mov ebx, eax
test eax, eax
jne 0x140002f37
mov rdx, qword [rsp + 0x28]
mov rcx, rdi
mov r8, rsi
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
test rax, rax
mov eax, 0x80004005
cmove r14d, eax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov ebx, r14d
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400138e0
mov eax, ebx
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14000b4f6
Capabilities:
Encode data using xor

Disassembly:
xchg ebx, eax
invalid
test dword [rcx], esp
ror esp, 1
pop rax
jg 0x14000b480
invalid
Function at 0x140001000
Capabilities:
Execute command
Terminate process

Disassembly:
sub rsp, 0x28
lea rcx, [0x140003300]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.yeah_and_now_ur_spoofed_have_fun_n
call fcn.140001350
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Closing_in_5_secs_n
call fcn.140001350
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140001e88
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001ed2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001ed2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], reloc.api_ms_win_crt_runtime_l1_1_0.dll__seh_filter_exe
jne 0x140001ed2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001ed2
cmp dword [rcx + 0x84], 0xe
jbe 0x140001ed2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001ed4
xor al, al
add rsp, 0x28
ret
Function at 0x140aa5058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140aa51df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140aa5089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140aa506f
add dl, dl
jne 0x140aa5096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140aa50f6
xor eax, eax
add dl, dl
jne 0x140aa50a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140aa51ad
add dl, dl
jne 0x140aa50b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140aa50c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140aa50d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140aa50dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140aa50ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140aa507e
mov eax, 1
add dl, dl
jne 0x140aa5106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140aa5113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140aa50fb
sub eax, ebx
mov ebx, 1
jne 0x140aa514c
mov ecx, 1
add dl, dl
jne 0x140aa512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140aa513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140aa5123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140aa507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140aa5168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140aa5175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140aa515d
cmp eax, 0x7d00
jae 0x140aa519b
cmp eax, 0x500
jb 0x140aa5196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140aa507e
cmp eax, 0x7f
ja 0x140aa519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140aa507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140aa51d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140aa507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001100
Capabilities:
Allocate or change rwx memory
Connect pipe
Create pipe
Create thread
Encode data using xor
Read file on windows
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x460
mov rax, qword [0x1400053c0]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rcx, qword [str..pipeBadCodeTest]
xor esi, esi
mov qword [rsp + 0x38], rsi
mov r9d, 0xff
mov dword [rsp + 0x30], esi
xor r8d, r8d
mov dword [rsp + 0x28], 0x400
mov edx, 1
mov dword [rsp + 0x20], 0x400
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000117b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.___Create_Pipe_Error_:__d__n
mov ebx, eax
call fcn.1400012c0
mov eax, ebx
jmp 0x14000128c
mov qword [rsp + 0x28], rsi
lea r8, section..text
xor r9d, r9d
mov dword [rsp + 0x20], esi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jle 0x14000128a
lea rcx, str.__Client_Connected..._n
mov qword [rsp + 0x470], rdi
call fcn.1400012c0
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rsi
mov r8d, 0x400
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rsp + 0x40]
lea rcx, str.__Get_DATA_Length_:__d__n
call fcn.1400012c0
mov edx, dword [rsp + 0x40]
xor ecx, ecx
mov r9d, 4
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov rcx, rax
mov rdi, rax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [rsp + 0x40]
mov ebx, esi
test ecx, ecx
je 0x140001240
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, ebx
lock xor byte [rax + rdi], 0xa
mov ecx, dword [rsp + 0x40]
inc ebx
cmp ebx, ecx
jb 0x140001224
mov edx, ecx
lea r9, [rsp + 0x44]
mov rcx, rdi
mov r8d, 0x10
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rax, [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov r8, rdi
xor edx, edx
mov dword [rsp + 0x20], esi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rdi, qword [rsp + 0x470]
xor eax, eax
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1400013b0
mov rbx, qword [rsp + 0x478]
add rsp, 0x460
pop rsi
ret

Function at 0x140001c70
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140019ed0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x140011550
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001b220
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001b240
xor al, al
jmp 0x14001b2c1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001b253
xor al, al
jmp 0x14001b2c1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001b27d
xor al, al
jmp 0x14001b2c1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001b291
xor al, al
jmp 0x14001b2c1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001b2a3
xor al, al
jmp 0x14001b2c1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001b2bf
xor al, al
jmp 0x14001b2c1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400116e5
Capabilities:
Enumerate processes

Disassembly:
jmp 0x140015550
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x448
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xaa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x468]
mov rax, qword [0x140027040]
xor rax, rbp
mov qword [rbp + 0x418], rax
lea rcx, [0x14002d0f7]
call fcn.140011799
nop
mov dword [rbp + 4], 0
lea rax, [rbp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x238
rep stosb byte [rdi], al
mov dword [rbp + 0x30], 0x238
xor edx, edx
mov ecx, 2
call fcn.1400113a2
mov qword [rbp + 0x288], rax
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 0x288]
call fcn.1400114b5
test eax, eax
je 0x140015604
mov eax, dword [rbp + 0x440]
cmp dword [rbp + 0x38], eax
jne 0x1400155f0
mov eax, dword [rbp + 0x50]
mov dword [rbp + 4], eax
jmp 0x140015604
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 0x288]
call fcn.1400116c2
test eax, eax
jne 0x1400155dd
mov rcx, qword [rbp + 0x288]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x140022510]
call fcn.14001165e
mov eax, edi
mov rcx, qword [rbp + 0x418]
xor rcx, rbp
call fcn.1400113bb
lea rsp, [rbp + 0x428]
pop rdi
pop rbp
ret

Function at 0x140019020
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400117da
movzx eax, al
test eax, eax
jne 0x140019040
mov ecx, 7
call fcn.140011668
nop
mov byte [rsp + 0x20], 0
call fcn.1400116b3
mov byte [rsp + 0x21], al
cmp dword [0x140027b78], 1
jne 0x140019064
mov ecx, 7
call fcn.140011668
nop
jmp 0x1400190bc
cmp dword [0x140027b78], 0
jne 0x1400190b7
mov dword [0x140027b78], 1
lea rdx, [0x140021660]
lea rcx, [0x140021330]
call fcn.140011398
test eax, eax
je 0x140019098
mov eax, 0xff
jmp 0x1400191c1
lea rdx, [0x140021220]
lea rcx, [section..rdata]
call fcn.14001169f
mov dword [0x140027b78], 2
jmp 0x1400190bc
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.14001164f
call fcn.140011582
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140019119
mov rcx, qword [rsp + 0x30]
call fcn.1400112e4
movzx eax, al
test eax, eax
je 0x140019119
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x14002e020]
nop
call fcn.1400115c8
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001914d
mov rcx, qword [rsp + 0x38]
call fcn.1400112e4
movzx eax, al
test eax, eax
je 0x14001914d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011771
nop
call fcn.140019270
mov dword [rsp + 0x28], eax
call fcn.140011550
movzx eax, al
test eax, eax
jne 0x14001916c
mov ecx, dword [rsp + 0x28]
call fcn.14001109b
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001917b
call fcn.140011780
nop
xor edx, edx
mov cl, 1
call fcn.1400112a3
mov eax, dword [rsp + 0x28]
jmp 0x1400191c1
add rsp, 0x68
ret
Function at 0x14001a4d0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14001a4dd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14001a4ed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14001a4d5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14001a505
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14001a4f2
sub eax, 3
jb 0x14001a51f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14001a556
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14001a546
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14001a544
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14001a533
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14001a492
jmp 0x14001a4dd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x7000
mov dl, 5
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14001a5a2
cmp rsi, rcx
jae 0x14001a5aa
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14001a589
cmp al, 0x8f
ja 0x14001a589
cmp byte [rsi - 2], 0xf
je 0x14001a58f
sub al, 0xe8
cmp al, 1
ja 0x14001a573
cmp rsi, rcx
jae 0x14001a5aa
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14001a579
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14001a5aa
lodsb al, byte [rsi]
jmp 0x14001a589
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x18000]
mov eax, dword [rdi]
or eax, eax
je 0x14001a607
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1a000]
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 0x14001a5b7
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 0x14001a601
mov qword [rbx], rax
add rbx, 8
jmp 0x14001a5d7
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 0x14001a641
cmp al, 0xef
ja 0x14001a633
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14001a613
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14001a622
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 + 0x1af]
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
mov byte [fcn.14001a6c0], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.14001a6c0
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14001a6b0
sub rsp, 0xffffffffffffff80
jmp 0x1400013f0
Function at 0x14003b070
Capabilities:
Write file on windows

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

Function at 0x14003b0e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400480b4]
mov rbx, rcx
test esi, esi
jle 0x14003b210
mov rax, qword [0x1400480b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14003b12b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14003b1b5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14003b110
mov rcx, rbx
call fcn.14003bb30
mov rdi, rax
test rax, rax
je 0x14003b232
mov rax, qword [0x1400480b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14003bc70
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400480b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14003b217
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14003b1ae
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14003b1c0
add dword [0x1400480b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400480b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14003b1ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14003b070
nop dword [rax]
xor esi, esi
jmp 0x14003b138
mov rax, qword [0x1400480b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14003b070
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14003b070
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14003b7a0
Capabilities:
Get thread local storage value

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

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

Function at 0x14003bbb0
Capabilities:
Parse pe header

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

Function at 0x14003bc70
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140044dc0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14003bc8f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14003bc98
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret