joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800021a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x1f8
mov rax, qword [0x1800220a8]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
lea rcx, [rsp + 0x70]
call fcn.180001930
mov rax, qword [rsp + 0x208]
mov rax, qword [rax + 8]
mov qword [rsp + 0x88], rax
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x2c], 0x3070
cmp dword [rsp + 0x2c], 0
jge 0x180002249
mov dword [rsp + 0x48], 0xc3
mov dword [rsp + 0x24], 0
jmp 0x18000221c
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x24], eax
jge 0x180002249
lea rcx, [rsp + 0xa0]
call fcn.180006be0
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x2c]
mov ecx, dword [rsp + 0x24]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x24], eax
jmp 0x180002212
mov qword [rsp + 0x40], 0
jmp 0x180002261
mov rax, qword [rsp + 0x40]
inc rax
mov qword [rsp + 0x40], rax
movsxd rax, dword [rsp + 0x4c]
cmp qword [rsp + 0x40], rax
jae 0x1800023cc
mov qword [rsp + 0x58], 0
cmp qword [rsp + 0x58], 0
je 0x18000229d
mov rcx, qword [rsp + 0x58]
call fcn.180006be0
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
imul eax, dword [rsp + 0x30]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x210]
mov rax, qword [rax + 8]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x60], 0
cmp qword [rsp + 0x60], 0
je 0x1800022dd
mov rcx, qword [rsp + 0x60]
call fcn.180006be0
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
imul eax, dword [rsp + 0x34]
mov dword [rsp + 0x34], eax
xor edx, edx
mov rax, qword [rsp + 0x40]
div qword [rsp + 0x90]
mov rax, rdx
mov rcx, qword [rsp + 0x210]
mov rcx, qword [rcx]
movzx eax, byte [rcx + rax]
mov byte [rsp + 0x20], al
mov dword [rsp + 0x38], 0x4d11
cmp dword [rsp + 0x38], 0
jge 0x18000235a
mov dword [rsp + 0x50], 0x90
mov dword [rsp + 0x28], 0
jmp 0x18000232d
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x28], eax
jge 0x18000235a
lea rcx, [rsp + 0xf0]
call fcn.180006be0
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x28]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x28], eax
jmp 0x180002323
mov rax, qword [rsp + 0x208]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x40]
movzx eax, byte [rax + rcx]
movzx ecx, byte [rsp + 0x20]
xor eax, ecx
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x3c], 0x1b
cmp dword [rsp + 0x3c], 0
je 0x1800023b8
cmp dword [rsp + 0x3c], 0
jle 0x180002391
jmp 0x1800023b8
cvtsi2sd xmm0, dword [rsp + 0x3c]
call fcn.180006230
movsd qword [rsp + 0x68], xmm0
movsd xmm0, qword [rsp + 0x68]
divsd xmm0, qword [0x180016490]
movsd qword [rsp + 0x68], xmm0
jmp 0x180002381
movzx edx, byte [rsp + 0x54]
lea rcx, [rsp + 0x70]
call fcn.180002060
jmp 0x180002254
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x200]
call fcn.1800015a0
cmp qword [rsp + 0x70], 0
je 0x1800023f0
mov rcx, qword [rsp + 0x70]
call fcn.1800067ac
mov rax, qword [rsp + 0x200]
jmp 0x180002421
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.180003cc0
add rsp, 0x1f8
ret
Function at 0x140002810
Capabilities:
Parse pe header

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
movzx eax, word [rdx]
cmp eax, 0x5a4d
jne 0x14000289c
movsxd rax, dword [rdx + 0x3c]
test rax, rax
je 0x1400028a1
cmp eax, 0x40
jb 0x140002976
cmp rax, r8
ja 0x14000298a
movzx r10d, word [rax + rdx + 0x18]
cmp r10d, 0x20b
je 0x1400028a6
mov r9b, 5
cmp r10d, 0x10b
jne 0x1400028d0
mov r9b, 2
cmp dword [rdx + rax], 0x4550
jne 0x1400028d0
lea rsi, [rdx + rax]
movzx r10d, word [rsi + 4]
mov r9b, 3
cmp r10d, 0x14c
jne 0x1400028d0
mov r9b, 4
test byte [rsi + 0x16], 2
je 0x1400028d0
lea r9, [rax + 0xf8]
cmp r9, r8
ja 0x14000299f
lea r10, [rsi + 4]
xor edi, edi
jmp 0x140002902
xor r9d, r9d
jmp 0x1400028d0
mov r9b, 1
jmp 0x1400028d0
mov r9b, 2
cmp dword [rdx + rax], 0x4550
jne 0x1400028d0
lea rsi, [rdx + rax]
movzx r10d, word [rsi + 4]
mov r9b, 3
cmp r10d, 0x8664
jne 0x1400028d0
mov r9b, 4
test byte [rsi + 0x16], 2
jne 0x1400028e9
mov byte [rcx], r9b
mov qword [rcx + 0x18], 2
mov rax, rcx
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
lea r9, [rax + 0x108]
cmp r9, r8
ja 0x14000299f
lea r10, [rsi + 4]
mov edi, 1
mov r11, r8
sub r11, r9
movzx r14d, word [r10 + 2]
lea r10, [r14*8]
lea r10, [r10 + r10*4]
mov rbx, r11
sub rbx, r10
jb 0x1400029b4
add rax, 0xffffffffffffffc0
lea r11, [rdx + 0x40]
add r9, rdx
add r10, r9
mov ebp, r14d
shr ebp, 8
mov qword [rcx], rdx
mov qword [rcx + 8], r11
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rdi
mov qword [rcx + 0x20], rsi
mov qword [rcx + 0x28], r9
mov byte [rcx + 0x30], r14b
mov dword [rcx + 0x31], ebp
mov byte [rcx + 0x37], 0
mov word [rcx + 0x35], 0
mov qword [rcx + 0x38], r10
mov qword [rcx + 0x40], rbx
mov qword [rcx + 0x48], rdx
mov qword [rcx + 0x50], r8
jmp 0x1400028db
lea r8, [0x1400580e0]
mov ecx, 0x40
mov rdx, rax
call fcn.14002cba0
lea r9, [0x1400580e0]
mov rcx, rax
mov rdx, r8
mov r8, r9
call fcn.14002cb20
lea rax, str.C:Userscomp.cargo_registry_srcindex.crates.io_6f17d22bba15001fmemexec_0.2.0_srcpeparserpe.rs
mov rcx, r9
mov rdx, r8
mov r8, rax
call fcn.14002caa0
lea r8, str.C:Userscomp.cargo_registry_srcindex.crates.io_6f17d22bba15001fmemexec_0.2.0_srcpeparser_section.rsx
mov rcx, r10
mov rdx, r11
call fcn.14002caa0
int3
Function at 0x140005330
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor ebx, ebx
xor edi, edi
xor r12d, r12d
cmp r8, 0x201
jae 0x1400053d0
jmp 0x1400053bf
jae 0x140005490
cmp r8, 0x201
jae 0x1400053d0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140005428
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x1400053ff
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14002bc50
mov rbx, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rbp + 0x3d8], r12
mov rdi, rbx
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140005451
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400054f8
mov r8d, r14d
cmp r15, r8
jne 0x1400053b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140005525
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1400053bf
jmp 0x1400053d0
cmp rsi, r8
jb 0x14000553f
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140008360
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rbx, rbx
je 0x1400054e1
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.140001f00
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
jne 0x1400054c9
jmp 0x1400054e1
lea rcx, str.internal_error:_entered_unreachable_code_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14002c6d0
jmp 0x140005554
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14002cb20
ud2
Function at 0x14000cbd0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x140059f48]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14000cc14
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x14000cc73
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x14000cc82
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14000ccba
cmp eax, 0x103
je 0x14000ccc4
test eax, eax
js 0x14000cc9f
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14000ccba
mov ecx, eax
call qword [sym.imp.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.140007dd0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140003590
mov ecx, 7
int 0x29
ud2
Function at 0x14000cd30
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x140059f48]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14000cd74
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14000cdda
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14000ce11
test eax, eax
js 0x14000cdeb
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000ce04
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
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.140007dd0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140003590
mov ecx, 7
int 0x29
ud2
Function at 0x14001b3b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14001b42a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14001b420
cmp r11, r10
ja 0x14001b4c1
cmp r10, rdx
ja 0x14001b4d3
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14001b422
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14001b400
jmp 0x14001b497
ja 0x14001b42a
mov r11, r10
cmp rax, r8
jne 0x14001b3d2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001b49b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14001b470
mov r8, r10
sub ecx, r9d
jns 0x14001b48e
jmp 0x14001b49d
cmp r10, rdx
je 0x14001b4a9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001b49d
xor al, 1
cmp r8, rdx
jne 0x14001b450
jmp 0x14001b49d
xor eax, eax
jmp 0x14001b49d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x14005c51b]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14002c6d0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14002cba0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14002cb20
int3

Function at 0x14001cb30
Capabilities:
Parse pe header

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

Function at 0x140021374
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140021170
Function at 0x14002443c
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 0x14002446c
xor eax, eax
jmp 0x14002452f
mov rbp, rbx
cmp word [rax], si
je 0x140024491
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140024478
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140024474
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.14002435c
movsxd r14, eax
test eax, eax
jne 0x1400244cf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140024465
mov rcx, r14
call fcn.140025318
mov rdi, rax
test rax, rax
jne 0x1400244e8
xor ecx, ecx
call fcn.1400229bc
jmp 0x1400244c4
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.14002435c
test eax, eax
jne 0x140024519
mov rcx, rdi
call fcn.1400229bc
jmp 0x140024523
xor ecx, ecx
call fcn.1400229bc
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 0x140027a20
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14002342c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140027aaa
cmp byte [rbp - 0x21], r15b
je 0x140027aa5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140027ae0
call fcn.140025b28
test eax, eax
jne 0x140027acc
cmp byte [rbp - 0x21], r15b
je 0x140027ac4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140027ae0
cmp byte [rbp - 0x21], r15b
je 0x140027add
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140022a0c
test eax, eax
jne 0x140027b80
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14002342c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140027b1f
cmp byte [rbp - 0x21], r15b
je 0x140027b54
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140027b54
call fcn.140025b28
test eax, eax
jne 0x140027b40
cmp byte [rbp - 0x21], r15b
je 0x140027b39
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140027b54
cmp byte [rbp - 0x21], r15b
je 0x140027b51
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140022a0c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140027b80
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140027b83
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140027b91
mov rcx, rdi
call fcn.1400229bc
cmp byte [rbp + 0x3f], r15b
je 0x140027ba0
mov rcx, qword [rbp + 0x27]
call fcn.1400229bc
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14002aa80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002aaa8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002aaa8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140007080
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
mov esi, eax
movabs eax, dword [0xda8b088900409214]
test ebx, ebx
jle 0x1400070a1
mov eax, 0xff
call fcn.140002680
xor byte [rsi], al
jne 0x140007091
pop rsi
pop rbx
ret

Function at 0x140013800
Capabilities:
Listen for remote procedure calls

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0xc]
mov ecx, dword [rcx + 8]
mov r8d, 1
call qword [sym.imp.RPCRT4.dll_RpcServerListen]
mov ebx, eax
cmp eax, 0x6b1
je 0x140013871
test eax, eax
je 0x140013871
lea rcx, str...SwRpcServer.cpp
mov edx, 0x5c
call qword [sym.imp.MSVCR120.dll_strrchr]
test rax, rax
je 0x140013841
inc rax
jmp 0x140013848
lea rax, str...SwRpcServer.cpp
lea rcx, [0x140042858]
mov rdx, rax
call fcn.140001760
movabs rcx, 0x212500000000
shl rax, 0x34
or rax, rbx
or rax, rcx
add rsp, 0x20
pop rbx
ret
movabs rax, 0x8000000000
add rsp, 0x20
pop rbx
ret
Function at 0x2fc4cae60
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 0x2fc4cb862
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f0108]
test eax, eax
je 0x2fc4cb8fa
lea rax, [0x2fc4f00e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f0110]
mov qword [rbp - 8], rax
jmp 0x2fc4cb8de
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 0x2fc4cb8d2
cmp qword [rbp - 0x10], 0
je 0x2fc4cb8d2
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 0x2fc4cb898
lea rax, [0x2fc4f00e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4cb8fb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4cba00
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 0x2fc4cba28
mov eax, 0
jmp 0x2fc4cba76
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 0x2fc4cba51
mov eax, 0
jmp 0x2fc4cba76
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 0x2fc4cba71
mov eax, 0
jmp 0x2fc4cba76
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cba7c
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 0x2fc4cbafa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cbaf1
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 0x2fc4cbaf1
mov rax, qword [rbp - 8]
jmp 0x2fc4cbb0f
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 0x2fc4cbac4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400023b8
Capabilities:
Parse pe header

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

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov r12, rdx
lea rcx, [rcx + 0x70]
lea rdx, [0x140011129]
call fcn.140004190
test rax, rax
mov rbp, rax
je 0x140001880
mov edx, dword [r12 + 4]
xor r8d, r8d
mov rcx, rax
add edx, dword [rbx]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
js 0x140001860
mov esi, dword [r12 + 0xc]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
test rax, rax
mov r13, rax
je 0x140001896
cmp byte [r12 + 0x10], 1
je 0x140001840
test rsi, rsi
mov rdi, rax
jne 0x1400017d8
jmp 0x140001820
add rdi, rbx
sub rsi, rbx
je 0x140001820
mov ebx, 0x2000
mov r9, rbp
mov r8d, 1
cmp rsi, rbx
mov rcx, rdi
cmovbe rbx, rsi
mov rdx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
test rax, rax
jne 0x1400017d0
lea r8, [r12 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.140002c20
mov rcx, r13
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
xor r13d, r13d
mov rcx, rbp
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov rax, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor r8d, r8d
mov r9, rax
mov rdx, r12
mov rcx, rbp
call fcn.140001490
test eax, eax
je 0x140001820
jmp 0x140001815
lea r8, [r12 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
call fcn.140002c20
jmp 0x14000181d
lea rdx, [r12 + 0x12]
xor r13d, r13d
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.140002aa0
jmp 0x140001828
lea r8, [r12 + 0x12]
mov r9d, esi
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
lea rcx, str.malloc
call fcn.140002c20
jmp 0x14000181d