joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001ebb0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov eax, dword [0x1405d4bc0]
mov rbx, rcx
test eax, eax
jne 0x14001ec29
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x24]
dec eax
mov edx, eax
shr edx, 1
or edx, eax
mov eax, edx
shr eax, 2
or eax, edx
mov ecx, eax
shr ecx, 4
or ecx, eax
mov edx, ecx
shr edx, 8
or edx, ecx
mov eax, edx
shr eax, 0x10
or eax, edx
inc eax
mov dword [0x1405d4bd0], eax
mov eax, dword [rsp + 0x48]
mov dword [0x1405d4bd4], eax
mov eax, 1
xchg dword [0x1405d4bc0], eax
mov r13d, dword [0x1405d4bd0]
lea rax, [0x140425320]
test rbx, rbx
cmovne rax, rbx
mov r12d, dword [rax]
mov r14d, dword [rax + 4]
mov esi, dword [rax + 8]
mov r15d, dword [rax + 0xc]
mov eax, r12d
shr rax, 1
and eax, 1
lea rbp, [rax*2 + 1]
lea eax, [r14 - 0x10000]
cmp eax, 0xfff0000
ja 0x14001ec74
lea eax, [r14 - 1]
test r14d, eax
je 0x14001ec7b
mov r14d, dword [0x1405d4bd4]
lea eax, [rsi - 0x40]
cmp eax, 0xc0
ja 0x14001ec8c
lea eax, [rsi - 1]
test esi, eax
je 0x14001ec91
mov esi, 0x40
mov eax, 0xcccccccc
bt r12d, 0x1c
cmovae r15d, eax
imul rcx, rbp, 0x38
add rcx, 0x60
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x14001ed3f
xorps xmm0, xmm0
lea rcx, [rax + 0x10]
movups xmmword [rax], xmm0
lea rbx, [rax + 0x60]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor r9d, r9d
mov qword [rdi + 0x50], rbx
mov qword [rdi + 0x40], r9
lea rax, [rbx + 0x10]
mov qword [rdi + 0x48], r9
mov r8d, r9d
mov qword [rdi + 0x58], rbp
mov dword [rdi], r12d
mov dword [rdi + 4], r14d
mov dword [rdi + 8], esi
mov dword [rdi + 0xc], r15d
mov dword [rdi + 0x38], r13d
nop dword [rax]
mov qword [rax - 0x10], r9
mov rcx, r8
mov qword [rax - 8], r9
mov edx, esi
shl edx, cl
inc r8
mov qword [rax], r9
mov dword [rax + 8], r9d
mov word [rax + 0xc], dx
mov byte [rax + 0xf], r9b
mov qword [rax + 0x10], r9
mov qword [rax + 0x18], r9
mov qword [rax + 0x20], r9
lea rax, [rax + 0x38]
bsf ecx, edx
mov byte [rax - 0x2a], cl
cmp r8, rbp
jb 0x14001ed00
mov rax, rdi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14001ed60
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movzx eax, word [r8 + 0x1c]
lea r15, [r9 - 1]
mov r14, rcx
add r15, rax
movzx ecx, byte [r8 + 0x1e]
mov rbp, r9
shr r15, cl
mov ecx, 0x68
lea r12d, [r15 + 0x3f]
shr r12d, 6
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xorps xmm0, xmm0
mov edi, 1
mov rbx, rax
movups xmmword [rsp + 0x20], xmm0
test rax, rax
je 0x14001eede
mov ecx, r12d
shl rcx, 4
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xor r13d, r13d
mov rsi, rax
test rax, rax
je 0x14001eed5
test byte [r14], dil
je 0x14001ee05
lea r8d, [rdi + 6]
mov rdx, rbp
lea rcx, [rsp + 0x20]
call sym.Token_Disc.exe_unsigned_int___cdecl_asmjit::_abi_1_10::VirtMem::allocDualMapping_struct_asmjit::_abi_1_10::VirtMem::DualMapping____ptr64__unsigned_long_long_unsigned___int64___enum_asmjit::_abi_1_10::VirtMem::MemoryFlags_
mov rdx, qword [rsp + 0x28]
mov edi, eax
mov r13d, 4
jmp 0x14001ee3c
test rbp, rbp
jne 0x14001ee0f
lea edi, [rbp + 2]
jmp 0x14001ee32
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x14001ee32
mov qword [rsp + 0x20], rax
xor edi, edi
mov rdx, qword [rsp + 0x20]
mov qword [rsp + 0x28], rdx
test edi, edi
jne 0x14001eecc
mov eax, dword [r14]
shr eax, 2
test al, 1
je 0x14001ee63
mov rcx, rbp
shr rcx, 2
test rcx, rcx
je 0x14001ee63
mov eax, dword [r14 + 0xc]
mov rdi, rdx
rep stosd dword [rdi], eax
mov r8d, r12d
xor edx, edx
shl r8, 4
mov rcx, rsi
call fcn.1401cbb7e
mov rax, qword [rsp + 0x80]
xor ecx, ecx
movups xmm0, xmmword [rsp + 0x20]
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], rcx
mov qword [rbx + 0x20], rax
lea rax, [rsi + r12*8]
mov qword [rbx + 0x60], rax
mov rax, qword [rsp + 0x78]
mov qword [rbx], rcx
mov qword [rbx + 8], rcx
movups xmmword [rbx + 0x28], xmm0
mov qword [rax], rbx
xor eax, eax
mov qword [rbx + 0x38], rbp
mov dword [rbx + 0x40], r13d
mov dword [rbx + 0x44], r15d
mov dword [rbx + 0x48], ecx
mov dword [rbx + 0x4c], r15d
mov dword [rbx + 0x50], ecx
mov dword [rbx + 0x54], r15d
mov qword [rbx + 0x58], rsi
jmp 0x14001eee0
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, edi
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140021510
Capabilities:
Get system information on windows

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xf0
cmp dword [0x1405d4ba0], 0
jne 0x1400215f4
xorps xmm0, xmm0
mov word [rbp - 0x79], 2
xor eax, eax
lea rcx, [rbp - 0x79]
movups xmmword [rbp - 0x77], xmm0
mov dword [rbp + 0x19], eax
movups xmmword [rbp - 0x67], xmm0
mov word [rbp + 0x1d], ax
movups xmmword [rbp - 0x57], xmm0
movups xmmword [rbp - 0x47], xmm0
movups xmmword [rbp - 0x37], xmm0
movups xmmword [rbp - 0x27], xmm0
movups xmmword [rbp - 0x17], xmm0
movups xmmword [rbp - 7], xmm0
movups xmmword [rbp + 9], xmm0
call fcn.1400208e0
lea rcx, [rbp + 0x27]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movaps xmm0, xmmword [rbp - 0x79]
movaps xmm1, xmmword [rbp - 0x69]
mov eax, dword [rbp + 0x47]
movaps xmmword [0x1405d4ac0], xmm0
movaps xmmword [0x1405d4ad0], xmm1
movaps xmm1, xmmword [rbp - 0x49]
movaps xmmword [0x1405d4af0], xmm1
movaps xmm1, xmmword [rbp - 0x29]
movaps xmmword [0x1405d4b10], xmm1
movaps xmm1, xmmword [rbp - 9]
mov dword [rbp - 0x59], eax
movaps xmm0, xmmword [rbp - 0x59]
movaps xmmword [0x1405d4ae0], xmm0
movaps xmm0, xmmword [rbp - 0x39]
movaps xmmword [0x1405d4b00], xmm0
movaps xmm0, xmmword [rbp - 0x19]
movaps xmmword [0x1405d4b20], xmm0
movaps xmm0, xmmword [rbp + 7]
movaps xmmword [0x1405d4b30], xmm1
movsd xmm1, qword [rbp + 0x17]
movaps xmmword [0x1405d4b40], xmm0
movsd qword [0x1405d4b50], xmm1
mov dword [0x1405d4ba0], 1
lea rax, [0x1405d4ac0]
add rsp, 0xf0
pop rbp
ret

Function at 0x1400216d0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x28
mov eax, r8d
shr eax, 2
test al, 1
je 0x1400216ee
shr r8d, 1
and r8d, 1
inc r8d
shl r8d, 5
jmp 0x14002170b
test r8b, 3
je 0x140021705
shr r8d, 1
and r8d, 1
lea r8d, [r8*2 + 2]
jmp 0x14002170b
mov r8d, 1
lea r9, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
xor edx, edx
mov ecx, 2
test eax, eax
cmovne ecx, edx
mov eax, ecx
add rsp, 0x28
ret

Function at 0x1400218e0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
mov eax, dword [0x1405d4bc0]
test eax, eax
jne 0x140021946
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x24]
dec eax
mov ecx, eax
shr ecx, 1
or ecx, eax
mov eax, ecx
shr eax, 2
or eax, ecx
mov ecx, eax
shr ecx, 4
or ecx, eax
mov edx, ecx
shr edx, 8
or edx, ecx
mov eax, edx
shr eax, 0x10
or eax, edx
inc eax
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x64], eax
mov rax, qword [rsp + 0x60]
mov qword [0x1405d4bd0], rax
mov eax, 1
xchg dword [0x1405d4bc0], eax
mov rax, qword [0x1405d4bd0]
add rsp, 0x58
ret

Function at 0x140024810
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
mov r9, qword [rcx + 0x18]
mov rax, rdx
test r9, r9
je 0x14002483e
cmp r8, 0xffffffffffffffff
jne 0x140024830
inc r8
cmp byte [rdx + r8], 0
jne 0x140024826
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
xor eax, eax
add rsp, 0x28
ret
Function at 0x140037fc0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x1400380a2
call fcn.14004e900
test al, al
jne 0x1400380a2
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x140037ff2
mov r8, rdi
mov edx, 0x2e
mov rcx, rbx
call fcn.1400585c0
test rax, rax
je 0x140038037
sub rax, rbx
mov edx, 0x2e
mov r8, rax
mov rcx, rbx
call fcn.1400585c0
mov rsi, rax
test rax, rax
je 0x140038037
inc rsi
mov rcx, rbx
sub rcx, rsi
add rdi, rcx
test rsi, rsi
cmovne rbx, rsi
lea rsi, [rbx + rdi]
mov edi, 0x1505
cmp rbx, rsi
jae 0x14003806b
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.14004ab40
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x140038050
mov rsi, qword [rsp + 0x30]
mov rcx, rdi
movabs rax, 0x410410410410411
mul rdi
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
imul rcx, rcx, 0x3f
sub rdi, rcx
mov rax, rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140044730
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
cmp byte [rcx + 0xab7], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x1400447fb
cmp qword [rcx + 0x268], 0
je 0x1400447ae
mov qword [rsp + 0x40], rbx
call fcn.1400326e0
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.140032a50
mov rcx, qword [rdi + 0x1e0]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x268]
movzx edx, bl
mov rcx, rdi
call fcn.140032a50
mov rbx, qword [rsp + 0x40]
jmp 0x1400447fb
mov ecx, esi
test edx, edx
je 0x1400447be
sub ecx, 1
je 0x1400447be
cmp ecx, 1
jne 0x1400447fb
mov r9, qword [rdi + 0x1d8]
lea rax, [0x1401d13e0]
mov edx, 2
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x1d8]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x140046de0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
cdqe
add rsp, 0x28
ret
Function at 0x1400470d0
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x1400470fa
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExW
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1401d17d8]
mov rcx, rbx
mov r14, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcspbrk]
test rax, rax
je 0x14004715a
mov rcx, rbx
test r14, r14
je 0x140047147
xor edx, edx
lea r8d, [rdx + 8]
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test r14, r14
je 0x140047191
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140047191
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r15d, eax
test eax, eax
je 0x14004725a
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x40], rsi
mov rdx, rdi
nop word [rax + rax]
inc rdx
cmp word [rbx + rdx*2], bp
jne 0x1400471c0
lea ecx, [rax + 1]
add rcx, rdx
add rcx, rcx
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x14004724c
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14004724c
mov rax, rdi
cmp word [rsi + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x1400471f3
mov dword [rsi + rax*2], 0x5c
cmp word [rsi + rdi*2 + 2], bp
lea rdi, [rdi + 1]
jne 0x140047205
lea rcx, [rdi + rdi]
sub rcx, rbx
add rcx, rsi
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rcx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x140047220
mov rcx, rsi
test r14, r14
je 0x140047243
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x140047249
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbp, rax
mov rcx, rsi
call qword [fcn.1401cbbd2]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x1400472c0
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x1405d2948]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x140047326
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140047309
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x140047303
shr ax, 8
cmp al, 2
je 0x140047326
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1401cac00
add rsp, 0x1e8
ret
call fcn.14007ac80
test eax, eax
jne 0x140047537
mov qword [rsp + 0x200], rsi
lea rcx, str.kernel32
mov qword [rsp + 0x208], rdi
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x140047366
mov qword [0x1405d34c8], rsi
jmp 0x1400474f4
mov qword [rsp + 0x1f0], rbx
lea rdx, str.LoadLibraryExW
mov rcx, rdi
mov qword [rsp + 0x1f8], rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rbx, str.iphlpapi.dll
mov rbp, rax
mov rcx, rbx
lea rdx, [0x1401d17d8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcspbrk]
test rax, rax
je 0x1400473cb
mov rcx, rbx
test rbp, rbp
je 0x1400473bd
xor edx, edx
lea r8d, [rdx + 8]
call rbp
mov rsi, rax
jmp 0x1400474bc
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
jmp 0x1400474bc
test rbp, rbp
je 0x1400473fa
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400473fa
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call rbp
mov rsi, rax
jmp 0x1400474bc
xor edx, edx
mov qword [rsp + 0x1e0], r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r14d, eax
test eax, eax
je 0x1400474b4
lea ecx, [rax + 1]
lea rcx, [rcx*2 + 0x18]
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x1400474ab
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1400474ab
mov rcx, 0xffffffffffffffff
mov rax, rcx
nop word [rax + rax]
cmp word [rdi + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x140047450
mov dword [rdi + rax*2], 0x5c
cmp word [rdi + rcx*2 + 2], si
lea rcx, [rcx + 1]
jne 0x140047462
lea rdx, [rcx + rcx]
sub rdx, rbx
add rdx, rdi
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rdx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x140047480
mov rcx, rdi
test rbp, rbp
je 0x1400474a2
xor edx, edx
lea r8d, [rdx + 8]
call rbp
jmp 0x1400474a8
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
mov rcx, rdi
call qword [fcn.1401cbbd2]
mov r14, qword [rsp + 0x1e0]
mov rbp, qword [rsp + 0x1f8]
mov rbx, qword [rsp + 0x1f0]
mov qword [0x1405d34c8], rsi
test rsi, rsi
je 0x1400474f4
lea rdx, str.if_nametoindex
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400474f4
mov qword [0x1405d34c0], rax
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.14007a820
test al, al
lea rcx, [0x1405d4be8]
setne byte [0x1405d4be0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rdi, qword [rsp + 0x208]
xor eax, eax
mov rsi, qword [rsp + 0x200]
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1401cac00
add rsp, 0x1e8
ret
Function at 0x14004f6c0
Capabilities:
Convert ip address from string

Disassembly:
cmp qword [rsp + 0x28], 0
mov qword [r9], 0
jge 0x14004f6d5
mov eax, 0xfffffffe
ret
mov qword [rsp + 0x28], r9
mov r9b, 1
jmp fcn.14004f150
Function at 0x140058d70
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rbx, rcx
movaps xmmword [rsp + 0x50], xmm6
lea rcx, [rsp + 0x30]
mov rdi, rdx
call fcn.1400383b0
mov rcx, rbx
movups xmm6, xmmword [rax]
call fcn.140058050
mov rcx, rdi
mov rsi, rax
call fcn.140058050
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x140058e20
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.1400383b0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.140038440
cmp rax, 0x3e8
ja 0x140058e53
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x140058dd0
test rsi, rsi
je 0x140058e2e
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x140058e3c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
test rsi, rsi
je 0x140058e61
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x140058e6f
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 1
jmp 0x140058e3e
Function at 0x140059300
Capabilities:
Resolve dns

Disassembly:
push rdi
push r12
push r13
push r15
sub rsp, 0x28
mov r13, r9
xor edi, edi
mov qword [r9], rdi
xor r15d, r15d
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x14005949e
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rsi
mov rsi, qword [rsp + 0x68]
test rsi, rsi
je 0x14005947e
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x20], r14
nop
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x14005936e
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140059360
inc rbx
jmp 0x140059370
xor ebx, ebx
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x14005937d
lea ebp, [rax + 0xe]
jmp 0x140059389
cmp eax, 0x17
jne 0x140059421
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], 0
je 0x140059421
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x140059421
cmp rax, rbp
jb 0x140059421
lea rcx, [rbp + 0x30]
add rcx, rbx
call qword [section..data]
mov r14, rax
test rax, rax
je 0x140059430
mov ecx, dword [rsi]
mov r8, rbp
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [r14 + 0x30]
mov dword [rax + 0x10], ebp
xor eax, eax
mov qword [r14 + 0x18], rax
mov qword [r14 + 0x28], rax
mov qword [r14 + 0x20], rcx
mov rdx, qword [rsi + 0x20]
call sub.VCRUNTIME140.dll_memcpy
test rbx, rbx
je 0x14005940e
mov rcx, qword [r14 + 0x20]
mov r8, rbx
add rcx, rbp
mov qword [r14 + 0x18], rcx
mov rdx, qword [rsi + 0x18]
call sub.VCRUNTIME140.dll_memcpy
test rdi, rdi
cmove rdi, r14
test r15, r15
je 0x14005941e
mov qword [r15 + 0x28], r14
mov r15, r14
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x140059350
jmp 0x140059436
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x58]
test rcx, rcx
je 0x140059450
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x140059479
test rdi, rdi
je 0x140059475
nop word [rax + rax]
mov rbx, qword [rdi + 0x28]
mov rcx, rdi
call qword [fcn.1401cbbd2]
mov rdi, rbx
test rbx, rbx
jne 0x140059460
xor edi, edi
jmp 0x14005948d
test rdi, rdi
jne 0x14005948d
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rsi, qword [rsp + 0x60]
mov eax, r12d
mov rbx, qword [rsp + 0x50]
mov qword [r13], rdi
add rsp, 0x28
pop r15
pop r13
pop r12
pop rdi
ret

Function at 0x140059900
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rbx
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
test rax, rax
je 0x140059937
cmp rax, 0xffffffffffffffff
cmovne rbx, rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret
add rsp, 0x30
pop rbx
ret
Function at 0x1400599a0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbx, rdx
mov edx, 0x2b
mov rsi, r8
mov rbp, rcx
test r8, r8
je 0x140059a7b
xor r14d, r14d
nop dword [rax]
mov edi, 4
lea rdx, [rsp + 0x50]
cmp rsi, rdi
mov r8d, 4
mov rcx, rbp
cmovb rdi, rsi
call fcn.14003e8f0
cmp eax, 4
je 0x1400599f8
mov edx, eax
jmp 0x140059a25
cmp byte [0x1405d34d4], r14b
jne 0x140059a2f
mov r9d, 2
mov dword [rsp + 0x50], r14d
lea rdx, [rsp + 0x50]
xor ecx, ecx
lea r8d, [r9 + 2]
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb edx, edx
and edx, 2
mov eax, edx
test eax, eax
jne 0x140059a7d
mov eax, dword [rsp + 0x50]
jmp 0x140059a4e
imul eax, dword [0x1405d34d0], 0x41c64e6d
mov edx, r14d
add eax, 0x3039
mov dword [0x1405d34d0], eax
ror eax, 0x10
mov dword [rsp + 0x50], eax
test rdi, rdi
je 0x140059a72
sub rsi, rdi
nop word [rax + rax]
mov byte [rbx], al
inc rbx
shr eax, 8
sub rdi, 1
jne 0x140059a60
mov dword [rsp + 0x50], eax
test rsi, rsi
jne 0x1400599d0
mov eax, edx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x140059a90
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
sub rdi, 1
je 0x140059b33
xor ebp, ebp
lea r14, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
nop
mov r8d, 4
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.14003e8f0
cmp eax, 4
jne 0x140059aff
cmp byte [0x1405d34d4], bpl
jne 0x140059b4b
lea r9d, [rax - 2]
mov dword [rsp + 0x50], ebp
mov r8d, eax
lea rdx, [rsp + 0x50]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
test eax, eax
jne 0x140059b38
mov ecx, dword [rsp + 0x50]
cmp ecx, 0xfffffffc
jae 0x140059ac0
mov eax, 0x8421085
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
imul eax, eax, 0x3e
sub ecx, eax
movzx eax, byte [rcx + r14]
mov byte [rsi], al
inc rsi
sub rdi, 1
jne 0x140059ac0
mov byte [rsi], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
imul ecx, dword [0x1405d34d0], 0x41c64e6d
add ecx, 0x3039
mov dword [0x1405d34d0], ecx
ror ecx, 0x10
mov dword [rsp + 0x50], ecx
jmp 0x140059b07
Function at 0x14005ca00
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [case.0x140040a80.0]
mov rdi, rax
test rax, rax
je 0x14005ca7d
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x14005caa8
cmp ebx, esi
je 0x14005caa8
cmp ebx, 0x8000
ja 0x14005caa8
cmp ebx, esi
jb 0x14005caa3
mov edx, ebx
mov rcx, rdi
call qword [case.0x140040a80.0]
mov rdi, rax
test rax, rax
jne 0x14005ca40
mov rcx, rbp
call qword [fcn.1401cbbd2]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x14005ca88
mov rcx, rdi
jmp 0x14005ca80

Function at 0x14005e270
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov byte [rsp + 0x38], 0xff
mov rcx, qword [rcx + 0x20]
mov edi, r8d
mov esi, edx
mov byte [rsp + 0x3a], dil
xor r9d, r9d
mov byte [rsp + 0x39], sil
lea rdx, [rsp + 0x38]
mov rcx, qword [rcx + 0x1a8]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14005e2cf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbx
mov r8d, eax
call fcn.140044820
mov r9d, edi
lea rdx, str.SENT
mov r8d, esi
mov rcx, rbx
call fcn.14005de10
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret