joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180041b40
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x18005c040]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov qword [rcx], rsi
mov rbx, rcx
mov qword [rcx + 8], rsi
xor edx, edx
mov ecx, 4
mov ebp, r8d
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180041c6b
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x180041c62
nop dword [rax + rax]
cmp dword [rsp + 0x20], 0x10
jb 0x180041c44
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180041c44
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180041c44
mov rdx, qword [rbx]
test rdx, rdx
jne 0x180041c02
mov rcx, qword [0x180159c88]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x180041c62
jmp 0x180041c37
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180041c37
mov rcx, qword [0x180159c88]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x180041c62
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180041bb0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x180041cc5
cmp dword [rbx + 0xc], esi
jbe 0x180041cc5
nop word [rax + rax]
mov r8, qword [rbx]
xor edx, edx
mov eax, esi
mov ecx, 0x5a
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x180041cbe
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.180041990
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x180041c80
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180047370
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180041cf0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x18005c040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x180159e60]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180041d63
mov eax, 0xa
jmp 0x180041df6
test esi, esi
je 0x180041d85
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x180041da8
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180041da8
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180041da1
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180041da8
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180047370
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x180041e20
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x180159e6c]
mov ebx, edi
test ecx, ecx
je 0x180041f5d
mov rax, qword [0x180159e60]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x180041e78
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180041e50
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x180041f5d
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.180041b40
mov r8d, dword [0x180159e6c]
cmp ebx, r8d
jae 0x180041ee8
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x180159e60]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x180041ee1
mov edx, esi
mov ecx, ebx
call fcn.180041cf0
mov edi, eax
test eax, eax
jne 0x180041ee8
mov r8d, dword [0x180159e6c]
inc ebx
cmp ebx, r8d
jb 0x180041eb0
cmp qword [rsp + 0x20], 0
je 0x180041f5d
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180041f49
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180041f3a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180041f10
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180159c88]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1800422d0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x180159c80], ebp
je 0x180042327
cmp rbx, 0x20
jae 0x180042310
xor ecx, ecx
jmp 0x180042312
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180159c80], ebp
jne 0x180042306
cmp qword [0x180159c88], r15
je 0x180042423
test rdi, rdi
jne 0x180042347
mov ecx, esi
call fcn.180041e20
mov ebp, eax
jmp 0x180042428
mov ecx, dword [0x180159e6c]
mov ebx, r15d
test ecx, ecx
je 0x18004236f
mov r8, qword [0x180159e60]
mov rax, r8
nop
cmp rdi, qword [rax]
je 0x180042379
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180042360
mov ebp, 4
jmp 0x180042428
cmp ebx, 0xffffffff
je 0x18004236f
mov eax, ebx
imul rdx, rax, 0x38
movzx eax, byte [rdx + r8 + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x18004241a
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.180041b40
mov edx, esi
mov ecx, ebx
call fcn.180041cf0
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x180042428
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180042404
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x1800423fa
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x1800423d0
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180159c88]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180042428
neg esi
sbb ebp, ebp
add ebp, 6
jmp 0x180042428
mov ebp, 2
xchg dword [0x180159c80], r15d
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x180042ff0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x270
mov rax, qword [0x18005c040]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor r12d, r12d
mov r8d, 0x104
lea rdx, [rsp + 0x150]
lea rcx, str.USERPROFILE
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
xorps xmm0, xmm0
test eax, eax
je 0x180043206
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r12
lea rax, [rsp + 0x150]
mov rbp, 0xffffffffffffffff
mov r8, rbp
nop dword [rax]
inc r8
cmp byte [rax + r8], r12b
jne 0x180043070
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0x30]
call fcn.180045ad0
nop
lea rdi, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
test rsi, rsi
je 0x1800431a7
xor edx, edx
mov r8d, 0x100
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
lea rcx, [0x180053da4]
lea rdx, [0x180053da6]
nop dword [rax + rax]
movzx eax, byte [rcx]
mov byte [rsp + rax + 0x50], 1
inc rcx
cmp rcx, rdx
jne 0x1800430d0
lea rax, [rsi - 1]
mov rcx, rbp
cmp rax, rbp
cmovb rcx, rax
add rcx, rdi
movzx eax, byte [rcx]
cmp byte [rsp + rax + 0x50], 0
jne 0x180043116
nop dword [rax + rax]
cmp rcx, rdi
je 0x1800431a7
dec rcx
movzx eax, byte [rcx]
cmp byte [rsp + rax + 0x50], 0
je 0x180043100
sub rcx, rdi
cmp rcx, 0xffffffffffffffff
je 0x1800431a7
inc rcx
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], r12
cmp rsi, rcx
jb 0x180043251
sub rsi, rcx
cmp rsi, 0xffffffffffffffff
cmovb rbp, rsi
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rdx, qword [rsp + 0x30]
add rdx, rcx
mov r8, rbp
mov rcx, rbx
call fcn.180045ad0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x180043226
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800431a0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800431ff
call fcn.1800478b4
jmp 0x180043226
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], r12
mov r8d, 7
lea rdx, str.Unknown
mov rcx, rbx
call fcn.180045ad0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x180043226
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800431a0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800431a0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], r12
mov r8d, 7
lea rdx, str.Unknown
mov rcx, rbx
call fcn.180045ad0
mov rax, rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.180047370
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
call fcn.180045a50
nop
int3
Function at 0x180045910
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
test edx, edx
je 0x180045952
cmp edx, 1
jne 0x18004597c
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
lea r8, [0x1800458b0]
mov qword [rsp + 0x28], rax
mov r9, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x30
pop rbx
ret
cmp dword [0x180159da8], 0
je 0x18004597c
call fcn.180042450
mov rcx, qword [0x180159da0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov qword [0x180159da0], rax
mov dword [0x180159da8], eax
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x140002539
Capabilities:
Enumerate process modules

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov rsi, rcx
lea rdi, [rsp + 0x40]
and qword [rdi], 0
mov qword [rdi + 8], 8
and qword [rdi + 0x10], 0
lea rbx, [rsp + 0x34]
and dword [rbx], 0
mov qword [rsp + 0x38], rdx
xor r8d, r8d
mov eax, 8
xor ebp, ebp
mov rcx, qword [rdx]
shl r8d, 3
mov dword [rsp + 0x20], 3
mov rdx, rax
mov r9, rbx
call sub.psapi.dll_EnumProcessModulesEx
test eax, eax
je 0x1400025bd
mov r14d, dword [rsp + 0x34]
cmp r14d, ebp
jbe 0x1400025d1
mov rcx, rdi
mov rdx, r14
xor r8d, r8d
call fcn.140002159
mov rax, qword [rsp + 0x48]
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x38]
mov ebp, r14d
jmp 0x140002573
call fcn.140001f87
and qword [rsi], 0
mov qword [rsi + 8], rax
lea rcx, [rsp + 0x40]
jmp 0x140002614
shr r14d, 3
mov rdx, qword [rsp + 0x50]
cmp rdx, r14
jb 0x140002627
lea rdi, [rsp + 0x40]
mov rax, qword [rdi + 8]
lea rcx, [rax + r14*8]
lea rdx, [rsp + 0x58]
mov qword [rdx], rax
mov qword [rdx + 8], rcx
lea rax, [rsp + 0x38]
mov qword [rdx + 0x10], rax
lea rcx, [rsi + 8]
call fcn.140001f11
mov qword [rsi], 4
mov rcx, rdi
call fcn.1400023e2
mov rax, rsi
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
lea r8, str.__a_
mov rcx, r14
call fcn.140020c60
int3

Function at 0x140002e55
Capabilities:
Parse pe header

Disassembly:
push rsi
push rdi
mov r8d, 0x100
mov eax, 1
cmp rdx, 0x40
jb 0x140002f4d
test cl, 3
je 0x140002e7c
mov r8d, 0x400
jmp 0x140002f4d
cmp word [rcx], 0x5a4d
jne 0x140002f47
mov r9d, dword [rcx + 0x3c]
test r9b, 3
jne 0x140002e71
cmp r9d, 0x1000000
jbe 0x140002ea5
mov r8d, 0x700
jmp 0x140002f4d
lea r11, [r9 + 0x88]
cmp r11, rdx
ja 0x140002f4d
mov r9d, r9d
cmp dword [rcx + r9], 0x4550
jne 0x140002f47
movzx esi, word [rcx + r9 + 0x18]
cmp esi, 0x20b
je 0x140002edc
cmp esi, 0x10b
jne 0x140002f47
mov edi, dword [rcx + r9 + 0x54]
cmp rdi, rdx
ja 0x140002f4d
mov r10d, dword [rcx + r9 + 0x50]
cmp edi, r10d
ja 0x140002e9a
cmp si, 0x20b
jne 0x140002f53
mov esi, dword [rcx + r9 + 0x84]
cmp esi, 0x10
mov edi, 0x10
cmovb edi, esi
lea r11d, [r11 + rdi*8]
cmp r11, rdx
ja 0x140002f4d
movzx r11d, word [rcx + r9 + 6]
cmp r11, 0x60
ja 0x140002e9a
imul r11, r11, 0x28
add r11, r9
movzx ecx, word [rcx + r9 + 0x14]
add rcx, r11
add rcx, 0x18
cmp rcx, rdx
ja 0x140002f4d
shl r10, 0x20
xor eax, eax
mov r8, r10
jmp 0x140002f4d
mov r8d, 0x500
or rax, r8
pop rdi
pop rsi
ret
mov r8d, 0x600
jmp 0x140002f4d
Function at 0x140003319
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0x58
movaps xmmword [rsp + 0x40], xmm10
movaps xmmword [rsp + 0x30], xmm9
movaps xmmword [rsp + 0x20], xmm8
movaps xmmword [rsp + 0x10], xmm7
movaps xmmword [rsp], xmm6
aesimc xmm0, xmmword [rdx + 0x10]
aesimc xmm1, xmmword [rdx + 0x20]
aesimc xmm2, xmmword [rdx + 0x30]
aesimc xmm3, xmmword [rdx + 0x40]
aesimc xmm4, xmmword [rdx + 0x50]
aesimc xmm5, xmmword [rdx + 0x60]
aesimc xmm6, xmmword [rdx + 0x70]
aesimc xmm7, xmmword [rdx + 0x80]
aesimc xmm8, xmmword [rdx + 0x90]
mov rax, rcx
movaps xmm9, xmmword [rdx]
movaps xmm10, xmmword [rdx + 0xa0]
movaps xmmword [rcx], xmm9
movdqa xmmword [rcx + 0x10], xmm0
movdqa xmmword [rcx + 0x20], xmm1
movdqa xmmword [rcx + 0x30], xmm2
movdqa xmmword [rcx + 0x40], xmm3
movdqa xmmword [rcx + 0x50], xmm4
movdqa xmmword [rcx + 0x60], xmm5
movdqa xmmword [rcx + 0x70], xmm6
movdqa xmmword [rcx + 0x80], xmm7
movdqa xmmword [rcx + 0x90], xmm8
movaps xmmword [rcx + 0xa0], xmm10
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x1400093b0
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 0x140009450
jmp 0x14000943f
jae 0x14000950f
cmp r8, 0x201
jae 0x140009450
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x1400094a7
sub r8, rbx
sub rdi, rbx
cmp r8, rdi
jbe 0x14000947f
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.14001f600
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 0x1400094d0
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x14000957b
mov r8d, r13d
cmp r12, r8
jne 0x140009430
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400095af
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14000943f
jmp 0x140009450
cmp r14, r8
jb 0x1400095c9
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.14000ba80
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 0x140009564
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.140001100
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 0x14000954f
jmp 0x140009564
lea rcx, str.internal_error:_entered_unreachable_code_rustc_eeb90cda1969383f56a2637cbd3037bdf598841clibrary_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.1400208b0
jmp 0x1400095de
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.140020c60
ud2
Function at 0x14000f990
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x140075448]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x14000f9c8
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 0x14000fa26
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x14000fa53
test eax, eax
js 0x14000fa32
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x14000fa49
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.XT_a_
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.14000b830
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140007b70
mov ecx, 7
int 0x29
ud2
Function at 0x14001cdf0
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 0x14001ce7a
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 0x14001ce70
cmp r10, r11
jb 0x14001cef6
cmp r10, rdx
ja 0x14001cf08
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x14001ce72
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14001ce50
jmp 0x14001ced7
ja 0x14001ce7a
mov r11, r10
cmp rax, r8
jne 0x14001ce17
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x14001cedb
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 0x14001ceb0
mov r8, r10
sub ecx, r9d
jns 0x14001cece
jmp 0x14001cedd
cmp r10, rdx
je 0x14001ceea
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001cedd
xor al, 1
cmp r8, rdx
jne 0x14001ce90
jmp 0x14001cedd
xor eax, eax
jmp 0x14001cedd
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.140020790
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140020cd0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140020c60
int3

Function at 0x14001ecd4
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
xor edi, edi
mov r12d, r9d
mov esi, r8d
mov r13, rdx
mov rbx, rcx
cmp qword [rcx + 8], rdi
jne 0x14000108c
mov eax, edi
jmp 0x140001092
mov eax, dword [rcx + 0x10]
sub eax, dword [rcx + 8]
lea edx, [rax + rsi]
call fcn.140001138
mov rcx, qword [rbx + 0x10]
mov r8, rsi
mov rdx, r13
call fcn.1400072c0
test r12d, r12d
je 0x140001116
mov r11, rdi
mov r9, rdi
test esi, esi
jle 0x140001116
mov r10, qword [rsp + 0x60]
movzx ecx, byte [r11 + r10]
mov r8, qword [rbx + 0x10]
mov eax, 0x8fb823ef
inc r11
imul ecx
add edx, ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0x66666667
imul edx, edx, 0x1c8
sub ecx, edx
imul edi
add cl, 0x36
xor byte [r9 + r8], cl
sar edx, 2
mov ecx, edi
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
add eax, eax
sub ecx, eax
neg ecx
sbb rax, rax
inc edi
inc r9
and r11, rax
cmp edi, esi
jl 0x1400010bd
add qword [rbx + 0x10], rsi
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov eax, esi
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x140002cf4
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x1d0
mov rax, qword [0x14001c258]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
xor edi, edi
lea rax, vtable.CTcpSocket.0
mov rbx, rcx
mov qword [rcx + 0x10], rdi
mov dword [rcx + 0x18], edi
mov qword [rcx], rax
mov dword [rcx + 0x58], edi
mov qword [rcx + 0x48], rdi
mov qword [rcx + 0x50], rdi
lea rax, vtable.CBuffer.0
lea rdx, [rsp + 0x20]
mov qword [rcx + 0x40], rax
mov qword [rcx + 0x60], rax
mov dword [rcx + 0x78], edi
mov qword [rcx + 0x68], rdi
mov qword [rcx + 0x70], rdi
mov qword [rcx + 0x80], rax
mov dword [rcx + 0x98], edi
mov qword [rcx + 0x88], rdi
mov qword [rcx + 0x90], rdi
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edx, [rdi + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, edi
mov qword [rbx + 8], rax
xchg dword [rbx + 0x20], ecx
or qword [rbx + 0xb0], 0xffffffffffffffff
mov qword [rbx + 0xa0], rdi
mov qword [rbx + 0xa8], rdi
mov dword [rbx + 0x1c], edi
mov rax, rbx
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140007290
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1d0
pop rdi
ret

Function at 0x140002dd0
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
cmp dword [rcx + 0x20], edi
je 0x140002e3f
mov rcx, qword [rcx + 0xb0]
lea r9, [rax + 8]
mov edx, 0xffff
mov r8d, 0x80
mov dword [rax + 8], 1
mov dword [rax - 0x18], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx + 0xb0]
call qword [sym.imp.KERNEL32.dll_CancelIo]
xchg dword [rbx + 0x20], edi
mov rcx, qword [rbx + 0xb0]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
or qword [rbx + 0xb0], 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret