joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008ece0
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x1400d0fc0]
xor rax, rsp
mov qword [rbp + 0xa0], rax
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x100
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [0x1400d3832]
mov r8d, 0x6d1
call sub.VCRUNTIME140.dll_memset
lea r14, [rsp + 0x40]
mov qword [rsp + 0x1e0], rdi
sub r14, 0x480
lea r15, [0x1400d35b8]
xor r13d, r13d
lea r12, [0x1400d38d2]
mov ebx, 0x20
movsx esi, word [r15]
cmp esi, 0xffffffff
je 0x14008ee85
cmp ebx, 0x140
jb 0x14008ee00
cmp ebx, 0x14e
ja 0x14008ee00
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x44], 0x61
mov dword [rsp + 0x48], 0x62
mov dword [rsp + 0x4c], 0x63
mov dword [rsp + 0x50], 0x64
mov dword [rsp + 0x54], 0x65
mov dword [rsp + 0x58], 0x66
mov dword [rsp + 0x5c], 0x67
mov dword [rsp + 0x60], 0x68
mov dword [rsp + 0x64], 0x69
mov dword [rsp + 0x68], 0x6e
mov dword [rsp + 0x6c], 0x6f
mov dword [rsp + 0x70], 0x6a
mov dword [rsp + 0x74], 0x6d
mov dword [rsp + 0x78], 0x6b
mov edi, dword [r14]
jmp 0x14008ee0f
mov edx, 1
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov edi, eax
mov dword [rsp + 0x28], r13d
lea r9, [rbp - 0x80]
lea r8, [rbp - 0x60]
mov dword [rsp + 0x20], 0x10
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 0xffffffff
jne 0x14008ee52
mov dword [rsp + 0x28], r13d
lea r9, [rbp - 0x80]
lea r8, [rbp - 0x60]
mov dword [rsp + 0x20], 0x10
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 1
jl 0x14008ee85
mov qword [rsp + 0x38], r13
lea r8, [rbp - 0x80]
mov qword [rsp + 0x30], r13
mov r9d, 1
mov dword [rsp + 0x28], 5
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
inc ebx
add r12, 5
add r14, 4
add r15, 2
cmp ebx, 0x15c
jle 0x14008ed62
mov rdi, qword [rsp + 0x1e0]
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.140092e60
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140092a70
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1400d0fc0]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x1400d4148], 0
lea rax, str.libOSMesa.dll
lea rcx, str.OSMesa.dll
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0
je 0x140092ac5
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140092e60
add rsp, 0x48
ret
mov qword [rsp + 0x40], rbx
xor ebx, ebx
nop dword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1400d4148], rax
test rax, rax
jne 0x140092b08
mov rax, qword [rsp + rbx*8 + 0x28]
inc rbx
test rax, rax
jne 0x140092ad0
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.140087e60
jmp 0x140092c2d
lea rdx, str.OSMesaCreateContextExt
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400d4148]
lea rdx, str.OSMesaCreateContextAttribs
mov qword [0x1400d4150], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400d4148]
lea rdx, str.OSMesaDestroyContext
mov qword [0x1400d4158], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400d4148]
lea rdx, str.OSMesaMakeCurrent
mov qword [0x1400d4160], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400d4148]
lea rdx, str.OSMesaGetColorBuffer
mov qword [0x1400d4168], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400d4148]
lea rdx, str.OSMesaGetDepthBuffer
mov qword [0x1400d4170], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400d4148]
lea rdx, str.OSMesaGetProcAddress
mov qword [0x1400d4178], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1400d4150], 0
mov qword [0x1400d4180], rax
je 0x140092bff
cmp qword [0x1400d4160], 0
je 0x140092bff
cmp qword [0x1400d4168], 0
je 0x140092bff
cmp qword [0x1400d4170], 0
je 0x140092bff
cmp qword [0x1400d4178], 0
je 0x140092bff
test rax, rax
je 0x140092bff
mov eax, 1
jmp 0x140092c2f
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.140087e60
mov rcx, qword [0x1400d4148]
test rcx, rcx
je 0x140092c2d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x1400d4148], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140092e60
add rsp, 0x48
ret

Function at 0x140093910
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x180624c40
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsxd rbx, edx
mov rdi, rcx
mov edx, ebx
mov byte [rcx], 0
call qword [sym.imp.WS2_32.dll_gethostname]
mov byte [rbx + rdi - 1], 0
test eax, eax
jne 0x180624c79
lea edx, [rax + 0x2e]
mov rcx, rdi
call fcn.18021b947
test rax, rax
je 0x180624c77
mov byte [rax], 0
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x18021b456
Capabilities:
Receive data
Receive data on socket

Disassembly:
jmp 0x1805d7ee0
sub rsp, 0x28
cmp byte [rcx + 0x558], 0
je 0x1805d7efd
call fcn.180227800
test eax, eax
jne 0x1805d7f23
xor al, al
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x4c0]
cmp rcx, 0xffffffffffffffff
je 0x1805d7ef6
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x1805d7ef6
mov al, 1
add rsp, 0x28
ret

Function at 0x18021b78f
Capabilities:
Log keystrokes

Disassembly:
jmp 0x1804f1600
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, [0x180838500]
call fcn.180226e5a
xor edx, edx
mov ecx, 0xae
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
xor r9d, r9d
mov r8d, 1
movzx edx, al
mov cl, 0xae
call qword [sym.imp.USER32.dll_keybd_event]
xor edx, edx
mov ecx, 0xae
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
xor r9d, r9d
mov r8d, 3
movzx edx, al
mov cl, 0xae
call qword [sym.imp.USER32.dll_keybd_event]
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret

Function at 0x18021b82f
Capabilities:
Log keystrokes

Disassembly:
jmp 0x1804da220
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, [0x180838500]
call fcn.180226e5a
xor edx, edx
mov ecx, 0xad
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
xor r9d, r9d
mov r8d, 1
movzx edx, al
mov cl, 0xad
call qword [sym.imp.USER32.dll_keybd_event]
xor edx, edx
mov ecx, 0xad
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
xor r9d, r9d
mov r8d, 3
movzx edx, al
mov cl, 0xad
call qword [sym.imp.USER32.dll_keybd_event]
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret
Function at 0x18021bd75
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
jmp 0x180628e40
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1807e6e00]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebp, ebp
mov dword [rsp + 0x20], 0xf0000040
mov rsi, r8
mov qword [rsp + 0x38], rbp
mov rdi, rdx
mov qword [rsp + 0x40], rbp
mov rbx, rcx
xor r8d, r8d
lea r9d, [rbp + 1]
xor edx, edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x180628eb0
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8002
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov rcx, rsi
call fcn.18021ea89
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, eax
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x20], ebp
lea edx, [r8 + 2]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rsp + 0x30], 0x10
jne 0x180628f0e
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov r8, rbx
mov dword [rsp + 0x20], ebp
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180628f1e
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x180628f30
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180220b8b
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x18021be6a
Capabilities:
Read file on windows

Disassembly:
jmp 0x18051c8a0
mov qword [rsp + 8], rcx
push rbp
push rdi
mov eax, 0x1988
call fcn.18021d256
sub rsp, rax
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x4d2
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x19a8]
mov rax, qword [0x1807e6e00]
xor rax, rbp
mov qword [rbp + 0x1930], rax
mov dword [rbp + 0x1914], 0
lea rcx, [0x180838500]
call fcn.180226e5a
mov qword [rbp + 0x1f8], 0
mov rcx, qword [rbp + 0x1960]
call fcn.180226d74
mov qword [rbp + 0x1928], rax
mov eax, dword [rbp + 0x1914]
or eax, 1
mov dword [rbp + 0x1914], eax
lea rax, [rbp + 0x10]
mov rdi, rax
xor eax, eax
mov ecx, 0x98
rep stosb byte [rdi], al
mov dword [rbp + 0x10], 0x98
mov rax, qword [rbp + 0x1f8]
mov qword [rbp + 0x18], rax
lea rax, [rbp + 0xd0]
mov qword [rbp + 0x40], rax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x40]
mov byte [rcx + rax], 0
mov dword [rbp + 0x48], 0x104
lea rax, str.Text_Files
mov qword [rbp + 0x28], rax
mov dword [rbp + 0x3c], 1
mov qword [rbp + 0x50], 0
mov dword [rbp + 0x58], 0
mov qword [rbp + 0x60], 0
mov dword [rbp + 0x70], 0x1804
lea rcx, [rbp + 0x10]
call qword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
cmp eax, 1
jne 0x18051ca95
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp + 0x218], rax
cmp qword [rbp + 0x218], 0xffffffffffffffff
je 0x18051ca95
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x274]
mov r8d, 0x1000
lea rdx, [rbp + 0x2a0]
mov rcx, qword [rbp + 0x218]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18051ca88
mov eax, dword [rbp + 0x274]
mov qword [rbp + 0x18b8], rax
cmp qword [rbp + 0x18b8], 0x1000
jae 0x18051ca3b
jmp 0x18051ca40
call fcn.180223859
mov rax, qword [rbp + 0x18b8]
mov byte [rbp + rax + 0x2a0], 0
lea rdx, [rbp + 0x2a0]
lea rcx, [rbp + 0x18d8]
call fcn.180220645
mov qword [rbp + 0x1928], rax
mov rdx, qword [rbp + 0x1928]
mov rcx, qword [rbp + 0x1960]
call fcn.18021e359
lea rcx, [rbp + 0x18d8]
call fcn.18021d2f1
mov rcx, qword [rbp + 0x218]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x1960]
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, reloc.WS2_32.dll_getpeername
call fcn.180224c2c
mov rax, rdi
mov rcx, qword [rbp + 0x1930]
xor rcx, rbp
call fcn.180220b8b
lea rsp, [rbp + 0x1948]
pop rdi
pop rbp
ret
Function at 0x18021c14e
Capabilities:
Write file on windows

Disassembly:
jmp 0x180282210
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x180836108]
call fcn.180226e5a
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x180282267
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x180282373
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x18028230c
cmp qword [rbp + 0x28], 0
jle 0x18028230c
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x1802822ac
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.1802261da
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x180282362
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x180282362
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x18021d012
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x1804b70a0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x1808384e9]
call fcn.180226e5a
mov rax, qword [rbp + 0x100]
cmp dword [rax], 0x270
jne 0x1804b70dc
mov rcx, qword [rbp + 0x100]
call fcn.18021d599
jmp 0x1804b70f7
mov rax, qword [rbp + 0x100]
cmp dword [rax], 0x4e0
jb 0x1804b70f7
mov rcx, qword [rbp + 0x100]
call fcn.180220d43
mov rax, qword [rbp + 0x100]
mov eax, dword [rax]
mov rcx, qword [rbp + 0x100]
mov eax, dword [rcx + rax*4 + 4]
mov dword [rbp + 0xd4], eax
mov rax, qword [rbp + 0x100]
mov eax, dword [rax]
inc eax
mov rcx, qword [rbp + 0x100]
mov dword [rcx], eax
mov eax, dword [rbp + 0xd4]
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shr eax, 0xb
mov rcx, qword [rbp + 0x100]
and eax, dword [rcx + 0x1384]
mov ecx, dword [rbp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shl eax, 7
and eax, 0x9d2c5680
mov ecx, dword [rbp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shl eax, 0xf
and eax, 0xefc60000
mov ecx, dword [rbp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shr eax, 0x12
mov ecx, dword [rbp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x18021d09e
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x1804f7590
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x18083840b]
call fcn.180226e5a
mov qword [rbp + 8], 0
jmp 0x1804f75ce
mov rax, qword [rbp + 8]
inc rax
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x110]
cmp qword [rbp + 8], rax
jae 0x1804f7624
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x108]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rbp + 0x100]
xor rcx, rax
mov rax, rcx
mov qword [rbp + 0x100], rax
movabs rax, 0x100000001b3
mov rcx, qword [rbp + 0x100]
imul rcx, rax
mov rax, rcx
mov qword [rbp + 0x100], rax
jmp 0x1804f75c3
mov rax, qword [rbp + 0x100]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x18021d431
Capabilities:
Set socket configuration

Disassembly:
jmp 0x1805ea7e0
sub rsp, 0x28
xor eax, eax
lea r8, [rsp + 0x38]
test edx, edx
mov edx, 0x8004667e
setne al
mov dword [rsp + 0x38], eax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
add rsp, 0x28
ret

Function at 0x18021de54
Capabilities:
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
jmp 0x1806260b0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
mov r8, rcx
mov rbx, rcx
mov rdx, rdi
mov rcx, rsi
call fcn.180626350
lea r8, [rbx + 7]
mov rcx, rsi
lea rdx, [rdi + 8]
call fcn.180626350
lea r8, [rbx + 0xe]
mov rcx, rsi
lea rdx, [rdi + 0x10]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.180626350

Function at 0x18021eab6
Capabilities:
Move file

Disassembly:
jmp 0x1805ef4d0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rdi, rcx
movaps xmmword [rsp + 0x50], xmm6
lea rcx, [rsp + 0x30]
mov rbx, rdx
call fcn.180225ad2
mov r8d, 1
mov rdx, rbx
mov rcx, rdi
movups xmm6, xmmword [rax]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x1805ef560
nop dword [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.180225ad2
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.180227bfc
cmp rax, 0x3e8
ja 0x1805ef572
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x1805ef510
xor eax, eax
mov rbx, qword [rsp + 0x70]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
mov rbx, qword [rsp + 0x70]
mov eax, 1
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret

Function at 0x18021fc9a
Capabilities:
Query environment variable

Disassembly:
jmp 0x1805f4710
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 [0x1807e6d60]
mov rdi, rax
test rax, rax
je 0x1805f478d
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 0x1805f47b8
cmp ebx, esi
je 0x1805f47b8
cmp ebx, 0x8000
ja 0x1805f47b8
cmp ebx, esi
jb 0x1805f47b3
mov edx, ebx
mov rcx, rdi
call qword [0x1807e6d60]
mov rdi, rax
test rax, rax
jne 0x1805f4750
mov rcx, rbp
call qword [fcn.18021f2b3]
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 0x1805f4798
mov rcx, rdi
jmp 0x1805f4790
Function at 0x180220c94
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
jmp 0x1805d72f0
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x138
mov rax, qword [0x1807e6e00]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov r14, qword [rsp + 0x1a0]
mov rsi, rcx
movsxd rcx, edx
xor r13d, r13d
mov rax, rcx
mov r12, r9
shl rax, 5
mov r15, r8
lea rbx, [rsi + 0x508]
mov rbp, qword [rsi + rcx*8 + 0x4c0]
add rbx, rax
mov rax, qword [rsi + 0x698]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x7c], 3
je 0x1805d73f7
lea rax, [0x180222f94]
cmp qword [rsi + rcx*8 + 0x4e8], rax
jne 0x1805d73f7
cmp qword [rbx], r13
je 0x1805d737e
test rdi, rdi
je 0x1805d73f7
mov rdx, 0xffffffffffffffff
xor r9d, r9d
mov r8, rdx
mov rcx, rbp
call fcn.180227b7a
cmp eax, 0xffffffff
je 0x1805d73f7
test al, 1
je 0x1805d73f7
mov rax, qword [rbx]
test rax, rax
jne 0x1805d73d0
mov rax, qword [rsi]
mov ecx, dword [rax + 0xb70]
add ecx, ecx
movsxd rcx, ecx
mov qword [rbx + 8], rcx
call qword [fcn.1802220c6]
mov rdi, qword [rbx + 8]
mov qword [rbx], rax
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], r13
test rax, rax
je 0x1805d73f3
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
add rdx, rax
mov r8d, edi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x1805d73f7
add qword [rbx + 0x10], rcx
jmp 0x1805d73f7
mov qword [rbx + 8], r13
xor r9d, r9d
mov r8d, r12d
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_send]
movsxd rdi, eax
mov dword [r14], r13d
cmp rdi, 0xffffffffffffffff
jne 0x1805d7464
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x1805d7430
mov dword [r14], 0x51
mov rax, r13
jmp 0x1805d7467
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, ebx
call fcn.18022437b
mov rcx, qword [rsi]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.180227fe9
mov rcx, qword [rsi]
mov dword [rcx + 0x11b0], ebx
mov dword [r14], gethostname
mov rax, rdi
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.180220b8b
add rsp, 0x138
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180220d43
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x1804ffd10
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x20]
lea rcx, [0x1808384e9]
call fcn.180226e5a
mov qword [rbp + 8], 0x26f
mov qword [rbp + 0x28], 0xe3
mov qword [rbp + 0x48], 0
jmp 0x1804ffd54
mov rax, qword [rbp + 0x48]
inc rax
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0xe3
jae 0x1804ffde5
mov rax, qword [rbp + 0x1e0]
mov rcx, qword [rbp + 0x48]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x64]
and eax, 1
test eax, eax
je 0x1804ffdaa
mov dword [rbp + 0x1b4], 0x9908b0df
jmp 0x1804ffdb4
mov dword [rbp + 0x1b4], 0
mov eax, dword [rbp + 0x64]
shr eax, 1
xor eax, dword [rbp + 0x1b4]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
xor eax, dword [rcx + rdx*4 + 0xff8]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x1804ffd49
mov qword [rbp + 0x88], 0xe3
jmp 0x1804ffe03
mov rax, qword [rbp + 0x88]
inc rax
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0x26f
jae 0x1804ffeac
mov rax, qword [rbp + 0x1e0]
mov rcx, qword [rbp + 0x88]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rbp + 0xa4], eax
mov eax, dword [rbp + 0xa4]
and eax, 1
test eax, eax
je 0x1804ffe68
mov dword [rbp + 0x1b4], 0x9908b0df
jmp 0x1804ffe72
mov dword [rbp + 0x1b4], 0
mov eax, dword [rbp + 0xa4]
shr eax, 1
xor eax, dword [rbp + 0x1b4]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x1804ffdf2
mov qword [rbp + 0xc8], 0x26f
mov eax, 4
imul rax, rax, 0x4df
mov rcx, qword [rbp + 0x1e0]
mov eax, dword [rcx + rax + 4]
and eax, 0x80000000
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rbp + 0x1e0]
mov ecx, dword [rdx + rcx + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rbp + 0xe4], eax
mov eax, dword [rbp + 0xe4]
and eax, 1
test eax, eax
je 0x1804fff0c
mov dword [rbp + 0x1b4], 0x9908b0df
jmp 0x1804fff16
mov dword [rbp + 0x1b4], 0
mov eax, dword [rbp + 0xe4]
shr eax, 1
xor eax, dword [rbp + 0x1b4]
mov ecx, 4
imul rcx, rcx, 0x18c
mov rdx, qword [rbp + 0x1e0]
xor eax, dword [rdx + rcx + 4]
mov ecx, 4
imul rcx, rcx, 0x26f
mov rdx, qword [rbp + 0x1e0]
mov dword [rdx + rcx + 4], eax
mov rax, qword [rbp + 0x1e0]
mov dword [rax], 0
lea rsp, [rbp + 0x1c8]
pop rdi
pop rbp
ret