joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180114240
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x180302d80]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x70]
call fcn.1800fe940
sub eax, dword [rsp + 0x80]
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x20], 1
jmp 0x180114291
mov eax, dword [rsp + 0x80]
inc eax
mov dword [rsp + 0x80], eax
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x24]
dec eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x34], 0
je 0x1801143d0
mov edx, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
call fcn.180100f80
cmp eax, 3
jne 0x18011436e
mov edx, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
call fcn.1800feb20
test eax, eax
je 0x18011430b
xor r8d, r8d
mov edx, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
call fcn.180100b10
mov r8, rax
lea rdx, [0x1802e3c98]
mov rcx, qword [rsp + 0x78]
call fcn.18006ef40
mov dword [rsp + 0x28], eax
jmp 0x18011433c
xor r8d, r8d
mov edx, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
call fcn.180100d00
movaps xmm2, xmm0
movq r8, xmm2
lea rdx, [0x1802e3ca0]
mov rcx, qword [rsp + 0x78]
call fcn.18006ef40
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x20], 0
je 0x18011435c
cmp dword [rsp + 0x38], 0
jle 0x18011435c
mov dword [rsp + 0x2c], 1
jmp 0x180114364
mov dword [rsp + 0x2c], 0
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x20], eax
jmp 0x1801143cb
lea r8, [rsp + 0x48]
mov edx, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
call fcn.180101d40
mov qword [rsp + 0x40], rax
cmp dword [rsp + 0x20], 0
je 0x1801143bb
mov r9, qword [rsp + 0x78]
mov r8, qword [rsp + 0x48]
mov edx, 1
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, qword [rsp + 0x48]
jne 0x1801143bb
mov dword [rsp + 0x30], 1
jmp 0x1801143c3
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
jmp 0x180114281
cmp dword [rsp + 0x20], 0
je 0x1801143e0
mov eax, 1
jmp 0x1801143f1
xor r8d, r8d
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
call fcn.1801021d0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180208a80
add rsp, 0x68
ret

Function at 0x180114970
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov eax, 0x2068
call fcn.180209100
sub rsp, rax
mov rax, qword [0x180302d80]
xor rax, rsp
mov qword [rsp + 0x2050], rax
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x2070]
call fcn.180101b80
nop
mov edx, 0x2000
lea rcx, [rsp + 0x30]
call fcn.180102ac0
mov qword [rsp + 0x28], rax
mov r9, qword [rsp + 0x2078]
mov r8d, 0x2000
mov edx, 1
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x20], 0x2000
je 0x1801149ac
lea rcx, [rsp + 0x30]
call fcn.180102c20
nop
mov rcx, qword [rsp + 0x2050]
xor rcx, rsp
call fcn.180208a80
add rsp, 0x2068
ret
Function at 0x180114a30
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov eax, 0x2078
call fcn.180209100
sub rsp, rax
mov rax, qword [0x180302d80]
xor rax, rsp
mov qword [rsp + 0x2060], rax
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x2080]
call fcn.180101b80
mov rdx, qword [rsp + 0x2090]
lea rcx, [rsp + 0x40]
call fcn.180102ac0
mov qword [rsp + 0x30], rax
mov r9, qword [rsp + 0x2088]
mov r8, qword [rsp + 0x2090]
mov edx, 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x40]
call fcn.180102c20
cmp qword [rsp + 0x28], 0
jbe 0x180114add
mov dword [rsp + 0x20], 1
jmp 0x180114ae5
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x2060]
xor rcx, rsp
call fcn.180208a80
add rsp, 0x2078
ret

Function at 0x18011e570
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x18011e5b0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x18011e5c6
mov rcx, qword [rsp + 0x40]
call fcn.18011e190
test eax, eax
je 0x18011e5d8
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
call fcn.1800ff860
nop
jmp 0x18011e63a
lea r9, [0x1802e4c14]
lea r8, [0x1802e4c18]
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call fcn.1801023b0
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x60]
lea r8, [0x1802e4c1c]
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call fcn.1801023b0
mov r8d, 0xffffffff
mov edx, 0xfffffffe
mov rcx, qword [rsp + 0x40]
call fcn.180100250
mov edx, 0xfffffffe
mov rcx, qword [rsp + 0x40]
call fcn.180100720
nop
mov rcx, qword [rsp + 0x40]
call fcn.18011e660
mov r8, qword [rsp + 0x48]
mov edx, 0xfffffffe
mov rcx, qword [rsp + 0x40]
call fcn.180100320
nop
add rsp, 0x38
ret
Function at 0x180153d20
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x180302d80]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov edx, 8
lea rcx, [rsp + 0x40]
call fcn.180021520
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x40]
call fcn.18015f300
nop
lea rax, [0x180150d20]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
add rax, 8
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x40]
call fcn.180020120
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rsp + 0x38]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rcx, qword [rsp + 0x60]
mov qword [rcx], rax
mov rax, qword [rsp + 0x60]
cmp qword [rax], 0
je 0x180153dc4
lea rcx, [rsp + 0x40]
call fcn.180068ad0
nop
jmp 0x180153ddb
mov rax, qword [rsp + 0x60]
mov dword [rax + 8], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
lea rcx, [rsp + 0x40]
call fcn.180165580
nop
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180208a80
add rsp, 0x58
ret

Function at 0x180153e00
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x180302d80]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov edx, 8
lea rcx, [rsp + 0x40]
call fcn.18005d7c0
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x40]
call fcn.18003bef0
nop
lea rax, [0x180150db0]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
add rax, 8
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x40]
call fcn.180020120
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rsp + 0x38]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rcx, qword [rsp + 0x60]
mov qword [rcx], rax
mov rax, qword [rsp + 0x60]
cmp qword [rax], 0
je 0x180153ea4
lea rcx, [rsp + 0x40]
call fcn.180068b00
nop
jmp 0x180153ebb
mov rax, qword [rsp + 0x60]
mov dword [rax + 8], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
lea rcx, [rsp + 0x40]
call fcn.180043b90
nop
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180208a80
add rsp, 0x58
ret
Function at 0x180190e10
Capabilities:
Get disk information

Disassembly:
sub rsp, 0x58
mov rax, qword [0x180302d80]
xor rax, rsp
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x20], 0
jmp 0x180190e49
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x1a
jge 0x180190ed6
mov eax, dword [rsp + 0x20]
mov ecx, 1
mov dword [rsp + 0x2c], ecx
movzx ecx, al
mov eax, dword [rsp + 0x2c]
shl eax, cl
mov ecx, dword [rsp + 0x30]
and ecx, eax
mov eax, ecx
test eax, eax
jne 0x180190e78
jmp 0x180190e3f
mov eax, dword [rsp + 0x20]
add eax, 0x41
mov byte [rsp + 0x38], al
mov byte [rsp + 0x39], Ordinal_60
mov byte [rsp + 0x3a], 0x5c
mov byte [rsp + 0x3b], 0
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 2
je 0x180190eaf
cmp dword [rsp + 0x28], 3
jne 0x180190ed1
mov eax, dword [rsp + 0x20]
mov ecx, 1
mov dword [rsp + 0x34], ecx
movzx ecx, al
mov eax, dword [rsp + 0x34]
shl eax, cl
mov ecx, dword [rsp + 0x24]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x24], eax
jmp 0x180190e3f
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180208a80
add rsp, 0x58
ret
Function at 0x1801b6c20
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.1801b6e70
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x1801b6d3a
mov rax, qword [0x180302cf8]
cmp qword [rsp + 0x20], rax
jb 0x1801b6c84
mov rax, qword [0x180302d00]
cmp qword [rsp + 0x20], rax
ja 0x1801b6c84
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1801b6c46
mov r8d, Ordinal_50
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, Ordinal_50
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x1801b6cb5
jmp 0x1801b6d3a
cmp dword [rsp + 0x50], 0x10000
jne 0x1801b6d1d
cmp qword [rsp + 0x48], 0x10000
jb 0x1801b6d1d
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1801b6cfb
mov rax, qword [rsp + 0x28]
jmp 0x1801b6d3c
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1801b6d0b
xor eax, eax
jmp 0x1801b6d3c
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1801b6d35
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.1801b6e70
mov qword [rsp + 0x20], rax
jmp 0x1801b6c46
xor eax, eax
add rsp, 0x68
ret

Function at 0x1801b6d50
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.1801b6eb0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x1801b6e66
mov rax, qword [0x180302cf8]
cmp qword [rsp + 0x20], rax
jb 0x1801b6dab
mov rax, qword [0x180302d00]
cmp qword [rsp + 0x20], rax
ja 0x1801b6dab
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1801b6d6d
mov r8d, Ordinal_50
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, Ordinal_50
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x1801b6ddc
jmp 0x1801b6e66
cmp dword [rsp + 0x50], 0x10000
jne 0x1801b6e44
cmp qword [rsp + 0x48], 0x10000
jb 0x1801b6e44
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1801b6e22
mov rax, qword [rsp + 0x28]
jmp 0x1801b6e68
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1801b6e32
xor eax, eax
jmp 0x1801b6e68
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1801b6e61
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.1801b6eb0
mov qword [rsp + 0x20], rax
jmp 0x1801b6d6d
xor eax, eax
add rsp, 0x68
ret
Function at 0x1801b6f00
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.1801b7490
mov qword [rsp + 0x28], 0
cmp qword [0x18030c7c8], 0
jne 0x1801b6f48
cmp qword [0x18030c7c0], 0
je 0x1801b6f48
mov rax, qword [0x18030c7c0]
mov qword [0x18030c7c8], rax
cmp qword [0x18030c7c8], 0
je 0x1801b6fee
mov rax, qword [0x18030c7c8]
cmp qword [rax + 0x10], 0
je 0x1801b6fee
mov rax, qword [0x18030c7c8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1801b6fee
mov rax, qword [0x18030c7c8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1801b6fee
mov rax, qword [0x18030c7c8]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x1801b6fb4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x1801b6fbb
xor eax, eax
jmp 0x1801b7169
mov rax, qword [0x18030c7c8]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x1801b7169
mov rax, qword [0x18030c7c0]
mov qword [0x18030c7c8], rax
jmp 0x1801b7010
mov rax, qword [0x18030c7c8]
mov rax, qword [rax + 8]
mov qword [0x18030c7c8], rax
cmp qword [0x18030c7c8], 0
je 0x1801b705d
cmp qword [0x18030c7c8], 0
je 0x1801b705b
mov rax, qword [0x18030c7c8]
cmp qword [rax + 0x10], 0
je 0x1801b705b
mov rax, qword [0x18030c7c8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1801b705b
mov rax, qword [0x18030c7c8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1801b705b
jmp 0x1801b6f8c
jmp 0x1801b6ffe
mov rcx, qword [rsp + 0x60]
call fcn.1801b90e0
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.1801b7170
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x1801b7167
mov rax, qword [rsp + 0x48]
mov qword [0x18030c7c8], rax
mov rax, qword [0x18030c7c8]
mov dword [rax], 0x52727464
mov rax, qword [0x18030c7c8]
mov qword [rax + 0x10], 0
mov rax, qword [0x18030c7c8]
mov rcx, qword [0x18030c7c0]
mov qword [rax + 8], rcx
mov rax, qword [0x18030c7c8]
mov qword [0x18030c7c0], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x18030c7c8]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x1801b7118
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x1801b7152
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x1801b710e
mov rax, qword [0x18030c7c8]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x1801b6f8c
xor eax, eax
add rsp, 0x58
ret
Function at 0x1801b7e80
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, Ordinal_50
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1801b7ec7
xor al, al
jmp 0x1801b7f69
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x1801b7ef1
xor al, al
jmp 0x1801b7f69
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jb 0x1801b7f61
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 0x8c]
add rax, rcx
cmp qword [rsp + 0x88], rax
jae 0x1801b7f61
mov al, 1
jmp 0x1801b7f69
jmp 0x1801b7f67
xor al, al
add rsp, 0x78
ret

Function at 0x1801b8270
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x18030c7c0]
mov qword [rsp + 0x28], rax
jmp 0x1801b8290
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1801b82bf
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1801b82bd
call sub.KERNEL32.dll_GetLastError
jmp 0x1801b82c1
jmp 0x1801b8282
xor eax, eax
add rsp, 0x38
ret
Function at 0x1801b8980
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x18030c7d8], eax
je 0x1801b899b
mov eax, 0x10dd
jmp 0x1801b8ac0
mov rax, qword [0x18030c7f0]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1801b8a45
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x1801b8a10
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x1801b8a10
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.1801b75d0
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, Ordinal_50
mov rcx, qword [rsp + 0x38]
call fcn.1802089e4
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x1801b89a7
mov qword [0x18030c7f0], 0
call fcn.1801b8030
mov rax, qword [0x18030c7e8]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1801b8aa9
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x48]
call fcn.1802089e4
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x1801b8a61
mov qword [0x18030c7e8], 0
mov dword [0x18030c7d8], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x1801b8ff0
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x18030c7dc], 0
je 0x1801b900d
mov eax, dword [0x18030c7dc]
jmp 0x1801b90d3
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x1801b9020
xor eax, eax
jmp 0x1801b90d3
mov ecx, reloc.WS2_32.dll_recv
call fcn.180208acc
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1801b908e
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x1801b9073
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x38]
call fcn.1802089e4
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x18030c7dc], eax
mov qword [0x18030c7e0], 0
mov eax, dword [rsp + 0x20]
jmp 0x1801b90d3
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1801b90a8
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x1801b9049
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x18030c7e8]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x18030c7e8], rax
xor eax, eax
add rsp, 0x48
ret
Function at 0x1801ce2b0
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, 0x30
cmp qword [rcx + 0x718], 0
mov rsi, r9
mov rbp, r8
movsxd rbx, edx
mov rdi, rcx
je 0x1801ce30e
mov dl, 1
call fcn.1801bed00
mov rax, qword [rdi + 0x670]
mov r9, rsi
mov r8, rbp
mov qword [rsp + 0x20], rax
mov edx, ebx
mov rcx, rdi
call qword [rdi + 0x718]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.1801bed00
mov eax, ebx
jmp 0x1801ce352
cmp ebx, 2
ja 0x1801ce350
mov r9, qword [rdi + 0x668]
lea rdx, [0x1802a03f0]
lea rcx, [rbx + rbx*2]
add rcx, rdx
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x668]
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1801ce370
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rdi
sub rsp, 0x160
mov rax, qword [0x180302d80]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp byte [rcx + 0xf1e], 0
mov rdi, rcx
jne 0x1801ce3b3
cmp qword [rcx + 0x678], 0
je 0x1801ce490
mov r8, rdx
mov qword [rsp + 0x158], rbx
mov edx, 0x100
lea r9, [rsp + 0x180]
lea rcx, [rsp + 0x30]
call fcn.1801d1980
lea rax, [rsp + 0x30]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1801ce3e1
mov rcx, qword [rdi + 0x678]
test rcx, rcx
je 0x1801ce428
cmp byte [rdi + 0x1597], 0
jne 0x1801ce428
lea rdx, [rsp + 0x30]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
mov byte [rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x1801ce410
mov byte [rdi + 0x1597], 1
cmp byte [rdi + 0xf1e], 0
je 0x1801ce488
mov byte [rsp + rbx + 0x30], 0xa
inc rbx
cmp rbx, 0x102
jae 0x1801ce4e3
cmp qword [rdi + 0x718], 0
mov byte [rsp + rbx + 0x30], 0
je 0x1801ce4a9
mov dl, 1
mov rcx, rdi
call fcn.1801bed00
mov rax, qword [rdi + 0x670]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x718]
xor edx, edx
mov rcx, rdi
call fcn.1801bed00
mov rbx, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180208a80
add rsp, 0x160
pop rdi
ret
mov r9, qword [rdi + 0x668]
lea rcx, [0x1802a03f0]
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x668]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x1801ce488
call fcn.18020961c
int3
Function at 0x1801ce4f0
Capabilities:
Write file on windows

Disassembly:
test rcx, rcx
je 0x1801ce656
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rdi
sub rsp, 0x860
mov rax, qword [0x180302d80]
xor rax, rsp
mov qword [rsp + 0x840], rax
cmp byte [rcx + 0xf1e], 0
mov rdi, rcx
je 0x1801ce63e
mov r8, rdx
mov qword [r11 - 0x10], rbx
mov edx, 0x801
lea r9, [r11 + 0x18]
lea rcx, [rsp + 0x30]
call fcn.1801d1980
movsxd rcx, eax
mov rbx, 0xffffffffffffffff
cmp rcx, 0x801
jb 0x1801ce5b1
mov rcx, qword [rsp + 0x878]
mov rax, rbx
nop word [rax + rax]
cmp byte [rcx + rax + 1], 0
lea rax, [rax + 1]
jne 0x1801ce570
cmp byte [rax + rcx - 1], 0xa
jne 0x1801ce598
lea r8, str...._n
mov edx, 5
lea rcx, [rsp + 0x82c]
jmp 0x1801ce5ac
lea r8, [0x1802a0410]
mov edx, 4
lea rcx, [rsp + 0x82d]
call fcn.1801d1880
lea rax, [rsp + 0x30]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1801ce5b6
cmp qword [rdi + 0x718], 0
je 0x1801ce5fe
mov dl, 1
mov rcx, rdi
call fcn.1801bed00
mov rax, qword [rdi + 0x670]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x718]
xor edx, edx
mov rcx, rdi
call fcn.1801bed00
jmp 0x1801ce636
mov r9, qword [rdi + 0x668]
lea rcx, [0x1802a03f0]
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x668]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbx, qword [rsp + 0x858]
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.180208a80
add rsp, 0x860
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x1801ce732
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov qword [rbx], 0
cmp eax, 0x2733
mov edx, 0x51
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret