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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor ebp, ebp
mov rsi, rax
test rax, rax
je 0x14004b7f2
movsxd rax, dword [rax + 0x3c]
mov ebx, ebp
mov ecx, dword [rax + rsi + 0x88]
add rcx, rsi
mov edi, dword [rcx + 0x20]
mov r15d, dword [rcx + 0x24]
add rdi, rsi
mov r12d, dword [rcx + 0x1c]
add r15, rsi
mov r14d, dword [rcx + 0x18]
add r12, rsi
test r14d, r14d
je 0x14004b7f2
mov ecx, dword [rdi]
lea rdx, str.VirtualFreeEx
add rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x14004b81a
inc ebx
add rdi, 4
cmp ebx, r14d
jb 0x14004b7d2
mov qword [0x1400757f8], rbp
xor al, al
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
mov eax, ebx
movzx ecx, word [r15 + rax*2]
mov eax, dword [r12 + rcx*4]
add rax, rsi
mov qword [0x1400757f8], rax
setne al
jmp 0x14004b7fb
Function at 0x140052120
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x140074040]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x234
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov dword [rsp + 0x20], 0x238
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140052296
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
lea rax, [rsp + 0x4c]
mov rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], 0
jne 0x140052190
cmp qword [rbx + 0x18], 7
mov r9, rbx
mov r10, qword [rbx + 0x10]
jbe 0x1400521ab
mov r9, qword [rbx]
cmp rcx, r10
lea rdx, [rsp + 0x4c]
mov r8, r10
cmovb r8, rcx
test r8, r8
je 0x1400521e4
lea rax, [rsp + 0x4c]
sub r9, rax
nop word [rax + rax]
movzx eax, word [r9 + rdx]
cmp ax, word [rdx]
jne 0x1400521ef
add rdx, 2
sub r8, 1
jne 0x1400521d0
cmp r10, rcx
jb 0x1400521ef
jbe 0x1400522b9
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x14005228d
nop word [rax + rax]
lea rcx, [rsp + 0x4c]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140052220
cmp qword [rbx + 0x18], 7
mov r9, rbx
mov r10, qword [rbx + 0x10]
jbe 0x14005223b
mov r9, qword [rbx]
cmp rax, r10
lea rdx, [rsp + 0x4c]
mov r8, r10
cmovb r8, rax
test r8, r8
je 0x140052274
lea rcx, [rsp + 0x4c]
sub r9, rcx
nop word [rax + rax]
movzx ecx, word [r9 + rdx]
cmp cx, word [rdx]
jne 0x14005227b
add rdx, 2
sub r8, 1
jne 0x140052260
cmp r10, rax
jb 0x14005227b
jbe 0x1400522b9
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140052210
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400537a0
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
jmp 0x140052298
Function at 0x140052b00
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
xor ebp, ebp
nop dword [rax]
nop dword [rax + rax]
mov ebx, ebp
cmp dword [0x1400751f8], ebp
mov rcx, qword [rdi]
je 0x140052b8a
mov rdx, qword [rdi + 8]
mov r8d, ebx
call fcn.140055200
cmp rax, qword [rdi + 8]
jne 0x140052b5b
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x140052b72
cmp ebx, 0xff
jne 0x140052b5b
mov ebx, 1
jmp 0x140052b22
inc ebx
cmp ebx, 0x100
jl 0x140052b22
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140052b20
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x140052b72
mov dword [rsi], ebx
mov dword [0x1400751f8], ebp
mov rcx, qword [rdi]
test rcx, rcx
je 0x140052bcb
mov rdx, qword [rdi + 0x10]
sub rdx, rcx
and rdx, 0xfffffffffffffffc
cmp rdx, 0x1000
jb 0x140052bbb
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140052bd8
mov rcx, r8
call fcn.14005393c
mov qword [rdi], rbp
mov qword [rdi + 8], rbp
mov qword [rdi + 0x10], rbp
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3

Function at 0x1400543a4
Capabilities:
Parse pe header

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

Function at 0x140054620
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14005465a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14005465f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400546a8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400579f0]
cmp byte [rcx + rax], 0
je 0x1400546a8
dec r8
sub rdx, 1
jne 0x14005468e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140062d80
Capabilities:
Parse pe header

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

Function at 0x14006768c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14006779c

Function at 0x14006779c
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14006779c
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14006780b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14006780b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14006780b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14006780b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14006780b
cmp dword [rcx + 0x84], 0xe
jbe 0x14006780b
cmp dword [rcx + 0xf8], 0
je 0x14006780b
mov ecx, ebx
call fcn.140067708
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140067940
nop
cmp dword [rbp + 0x20], 0
jne 0x14006786c
call fcn.140074780
cmp eax, 1
jne 0x14006785c
xor dl, dl
jmp 0x140067866
call fcn.14007474c
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x140067877
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14006776c
int3

Function at 0x14006d450
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14006d478
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14006d478
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140076754
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 0x140076784
xor eax, eax
jmp 0x140076847
mov rbp, rbx
cmp word [rax], si
je 0x1400767a9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140076790
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14007678c
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.140076674
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x1400767ea
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14007677d
call fcn.140073070
mov rdi, rax
test rax, rax
jne 0x140076800
xor ecx, ecx
call fcn.1400709c0
jmp 0x1400767df
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.140076674
test eax, eax
jne 0x140076831
mov rcx, rdi
call fcn.1400709c0
jmp 0x14007683b
xor ecx, ecx
call fcn.1400709c0
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 0x140076864
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400768eb
mov rsi, rbx
cmp word [rax], bp
je 0x1400768aa
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140076894
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140076890
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140073070
mov rdi, rax
test rax, rax
je 0x1400768d8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14007d010
mov rbp, rdi
xor ecx, ecx
call fcn.1400709c0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140079750
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.140069668
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400797da
cmp byte [rbp - 0x21], r15b
je 0x1400797d5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140079810
call fcn.1400716d4
test eax, eax
jne 0x1400797fc
cmp byte [rbp - 0x21], r15b
je 0x1400797f4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140079810
cmp byte [rbp - 0x21], r15b
je 0x14007980d
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.1400754e8
test eax, eax
jne 0x1400798b0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140069668
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14007984f
cmp byte [rbp - 0x21], r15b
je 0x140079884
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140079884
call fcn.1400716d4
test eax, eax
jne 0x140079870
cmp byte [rbp - 0x21], r15b
je 0x140079869
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140079884
cmp byte [rbp - 0x21], r15b
je 0x140079881
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.1400754e8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400798b0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400798b3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400798c1
mov rcx, rdi
call fcn.1400709c0
cmp byte [rbp + 0x3f], r15b
je 0x1400798d0
mov rcx, qword [rbp + 0x27]
call fcn.1400709c0
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 0x140001140
Capabilities:
Act as tcp client
Check for debugger via api
Connect socket
Connect tcp socket
Convert ip address from string
Create tcp socket
Create thread
Initialize winsock library
Terminate process

Disassembly:
sub rsp, 0x308
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov ecx, 0x202
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140001196
lea rcx, str.Failed_to_initialize_Winsock._n
call fcn.140001010
mov eax, 1
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.140001360
add rsp, 0x308
ret
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x1400011ba
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
cmp eax, 1
je 0x1400011ba
xor eax, eax
jmp 0x1400011bf
mov eax, 1
test eax, eax
jne 0x14000132c
mov r8d, 0x104
lea rdx, [rsp + 0x1e0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rdx, str.sandbox
lea rcx, [rsp + 0x1e0]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
jne 0x14000132c
mov qword [rsp + 0x300], rbx
mov ecx, 0x115c
mov ebx, 2
mov word [rsp + 0x30], bx
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [rsp + 0x34]
mov ecx, ebx
lea rdx, str.127.0.0.1
mov word [rsp + 0x32], ax
call qword [sym.imp.WS2_32.dll_inet_pton]
mov edx, 1
mov r8d, 6
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_socket]
mov qword [0x140005680], rax
cmp rax, 0xffffffffffffffff
jne 0x14000125f
lea rcx, str.Socket_creation_failed._n
call fcn.140001010
jmp 0x1400012d3
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140001281
lea rcx, str.Connection_failed._n
jmp 0x1400012c1
lea rcx, str.Connected_to_server._n
call fcn.140001010
xor r9d, r9d
mov qword [rsp + 0x28], 0
lea r8, [0x140001070]
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
jne 0x1400012fe
lea rcx, str.Failed_to_create_thread._n
call fcn.140001010
mov rcx, qword [0x140005680]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
mov rbx, qword [rsp + 0x300]
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.140001360
add rsp, 0x308
ret
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140005680]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x1400012de
lea rcx, str.Debugger_or_sandbox_detected._n
call fcn.140001010
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x1400044b0
Capabilities:
Create thread

Disassembly:
push rsi
sub rsp, 0x110
mov r11, r9
mov qword [rsp + 0x68], r11
mov qword [rsp + 0x30], r8
mov rax, rdx
mov rdx, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, rcx
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x168]
mov qword [rsp + 0x58], rax
mov r8, qword [rsp + 0x160]
mov qword [rsp + 0x50], r8
mov r9d, dword [rsp + 0x158]
mov dword [rsp + 0x84], r9d
mov r9, qword [rsp + 0x150]
mov qword [rsp + 0x48], r9
mov r10, qword [rsp + 0x148]
mov qword [rsp + 0x40], r10
mov rsi, qword [rsp + 0x140]
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0xa8], rcx
mov qword [rsp + 0xb0], rdx
mov qword [rsp + 0xb8], r11
mov qword [rsp + 0xc0], r10
mov qword [rsp + 0xc8], r9
mov qword [rsp + 0xd0], r8
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xf0], 0
mov qword [rsp + 0xf8], 0
xor eax, eax
mov r8d, eax
call fcn.140003fe0
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0xe0], 0
mov qword [rsp + 0xe8], 0
xor eax, eax
mov r8d, eax
call fcn.140003f90
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x100], 0
mov qword [rsp + 0x108], 0
xor eax, eax
mov r8d, eax
call fcn.140004030
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x70]
mov r9, qword [rsp + 0x78]
mov r10d, dword [rsp + 0x84]
mov dword [rsp + 0x20], r10d
mov qword [rsp + 0x28], rax
call qword [sym.imp.kernel32.dll_CreateThread]
mov qword [rsp + 0xa0], rax
lea rcx, [rsp + 0xa0]
call fcn.1400049e0
mov cl, al
xor cl, 0xff
and cl, 1
lea rdx, [rsp + 0xa0]
call fcn.1400040a0
mov rcx, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
mov r8, rdx
mov rdx, qword [rsp + 0x90]
call fcn.140003f20
mov rax, qword [rsp + 0x98]
add rsp, 0x110
pop rsi
ret
Function at 0x14000d570
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 + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x14000d610
jmp 0x14000d5ff
jae 0x14000d6cf
cmp r8, 0x201
jae 0x14000d610
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x14000d667
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x14000d63f
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.1400221a0
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x14000d690
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x14000d73b
mov r8d, r13d
cmp r12, r8
jne 0x14000d5f0
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000d76f
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14000d5ff
jmp 0x14000d610
cmp r14, r8
jb 0x14000d789
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.14000f3c0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x14000d724
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.1400046a0
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 + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x14000d70f
jmp 0x14000d724
lea rcx, str.internal_error:_entered_unreachable_code_rustc_3f5fd8dd41153bc5fdca9427e9e05be2c767ba23library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.140023020
jmp 0x14000d79e
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.140023490
ud2
Function at 0x140013840
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x140027d18]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x140013878
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x1400138d6
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x140013903
test eax, eax
js 0x1400138e2
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x1400138f9
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.14000f0b0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.14000bd30
mov ecx, 7
int 0x29
ud2
Function at 0x140020290
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x14002031a
mov rax, rdx
mov rdx, qword [rbp + 0x50]
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 0x140020310
cmp r11, r10
ja 0x140020396
cmp r10, rdx
ja 0x1400203a8
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x140020312
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1400202f0
jmp 0x140020377
ja 0x14002031a
mov r11, r10
cmp rax, r8
jne 0x1400202b7
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x14002037b
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140020350
mov r8, r10
sub ecx, r9d
jns 0x14002036e
jmp 0x14002037d
cmp r10, rdx
je 0x14002038a
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14002037d
xor al, 1
cmp r8, rdx
jne 0x140020330
jmp 0x14002037d
xor eax, eax
jmp 0x14002037d
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.140022ee0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140023500
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140023490
int3

Function at 0x140021b8c
Capabilities:
Parse pe header

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