joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180008b00
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0x278
mov rax, qword [0x180030010]
xor rax, rsp
mov qword [rsp + 0x260], rax
cmp qword [rsp + 0x280], 0xffffffffffffffff
jne 0x180008b53
mov edx, 0x2719
mov rcx, qword [rsp + 0x298]
call fcn.180016020
mov eax, 0xffffffff
jmp 0x180008cb7
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x34], 0
jmp 0x180008b6f
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x34], eax
jae 0x180008b90
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x280]
cmp qword [rsp + rax*8 + 0x58], rcx
jne 0x180008b8e
jmp 0x180008b90
jmp 0x180008b65
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x34], eax
jne 0x180008bbc
cmp dword [rsp + 0x50], 0x40
jae 0x180008bbc
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x280]
mov qword [rsp + rax*8 + 0x58], rcx
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
xor eax, eax
test eax, eax
jne 0x180008b5b
movzx eax, byte [rsp + 0x288]
and eax, 1
test eax, eax
je 0x180008bed
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x4c], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
jmp 0x180008c3a
cmp dword [rsp + 0x290], 0
jl 0x180008c31
mov eax, dword [rsp + 0x290]
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x290]
cdq
mov ecx, 0x3e8
idiv ecx
mov eax, edx
imul eax, eax, 0x3e8
mov dword [rsp + 0x4c], eax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
jmp 0x180008c3a
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x280]
inc rax
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_select]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jge 0x180008c74
mov byte [rsp + 0x30], 1
jmp 0x180008c79
mov byte [rsp + 0x30], 0
movzx edx, byte [rsp + 0x30]
mov rcx, qword [rsp + 0x298]
call fcn.180007d90
cmp dword [rsp + 0x38], 0
jne 0x180008cb3
movzx eax, byte [rsp + 0x288]
and eax, 1
test eax, eax
je 0x180008cb3
mov edx, 0x2733
mov rcx, qword [rsp + 0x298]
call fcn.180016020
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.180024410
add rsp, 0x278
ret
Function at 0x180008cd0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0x278
mov rax, qword [0x180030010]
xor rax, rsp
mov qword [rsp + 0x260], rax
cmp qword [rsp + 0x280], 0xffffffffffffffff
jne 0x180008d23
mov edx, 0x2719
mov rcx, qword [rsp + 0x298]
call fcn.180016020
mov eax, 0xffffffff
jmp 0x180008e86
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x34], 0
jmp 0x180008d3f
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x34], eax
jae 0x180008d60
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x280]
cmp qword [rsp + rax*8 + 0x58], rcx
jne 0x180008d5e
jmp 0x180008d60
jmp 0x180008d35
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x34], eax
jne 0x180008d8c
cmp dword [rsp + 0x50], 0x40
jae 0x180008d8c
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x280]
mov qword [rsp + rax*8 + 0x58], rcx
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
xor eax, eax
test eax, eax
jne 0x180008d2b
movzx eax, byte [rsp + 0x288]
and eax, 1
test eax, eax
je 0x180008dbd
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x4c], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
jmp 0x180008e0a
cmp dword [rsp + 0x290], 0
jl 0x180008e01
mov eax, dword [rsp + 0x290]
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x290]
cdq
mov ecx, 0x3e8
idiv ecx
mov eax, edx
imul eax, eax, 0x3e8
mov dword [rsp + 0x4c], eax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
jmp 0x180008e0a
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x280]
inc rax
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
lea r8, [rsp + 0x50]
xor edx, edx
mov ecx, eax
call qword [sym.imp.WS2_32.dll_select]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jge 0x180008e43
mov byte [rsp + 0x30], 1
jmp 0x180008e48
mov byte [rsp + 0x30], 0
movzx edx, byte [rsp + 0x30]
mov rcx, qword [rsp + 0x298]
call fcn.180007d90
cmp dword [rsp + 0x38], 0
jne 0x180008e82
movzx eax, byte [rsp + 0x288]
and eax, 1
test eax, eax
je 0x180008e82
mov edx, 0x2733
mov rcx, qword [rsp + 0x298]
call fcn.180016020
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.180024410
add rsp, 0x278
ret
Function at 0x180008ea0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x488
mov rax, qword [0x180030010]
xor rax, rsp
mov qword [rsp + 0x470], rax
cmp qword [rsp + 0x490], 0xffffffffffffffff
jne 0x180008eee
mov edx, 0x2719
mov rcx, qword [rsp + 0x4a0]
call fcn.180016020
mov eax, 0xffffffff
jmp 0x18000908a
mov dword [rsp + 0x260], 0
mov dword [rsp + 0x34], 0
jmp 0x180008f0d
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x260]
cmp dword [rsp + 0x34], eax
jae 0x180008f34
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x490]
cmp qword [rsp + rax*8 + 0x268], rcx
jne 0x180008f32
jmp 0x180008f34
jmp 0x180008f03
mov eax, dword [rsp + 0x260]
cmp dword [rsp + 0x34], eax
jne 0x180008f6f
cmp dword [rsp + 0x260], 0x40
jae 0x180008f6f
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x490]
mov qword [rsp + rax*8 + 0x268], rcx
mov eax, dword [rsp + 0x260]
inc eax
mov dword [rsp + 0x260], eax
xor eax, eax
test eax, eax
jne 0x180008ef9
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x38], 0
jmp 0x180008f91
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x38], eax
jae 0x180008fb2
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x490]
cmp qword [rsp + rax*8 + 0x58], rcx
jne 0x180008fb0
jmp 0x180008fb2
jmp 0x180008f87
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x38], eax
jne 0x180008fde
cmp dword [rsp + 0x50], 0x40
jae 0x180008fde
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x490]
mov qword [rsp + rax*8 + 0x58], rcx
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
xor eax, eax
test eax, eax
jne 0x180008f7d
cmp dword [rsp + 0x498], 0
jl 0x180009028
mov eax, dword [rsp + 0x498]
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x498]
cdq
mov ecx, 0x3e8
idiv ecx
mov eax, edx
imul eax, eax, 0x3e8
mov dword [rsp + 0x4c], eax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
jmp 0x180009031
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x490]
inc rax
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x260]
xor edx, edx
mov ecx, eax
call qword [sym.imp.WS2_32.dll_select]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jge 0x18000906f
mov byte [rsp + 0x30], 1
jmp 0x180009074
mov byte [rsp + 0x30], 0
movzx edx, byte [rsp + 0x30]
mov rcx, qword [rsp + 0x4a0]
call fcn.180007d90
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.180024410
add rsp, 0x488
ret
Function at 0x180009260
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x58
cmp qword [rsp + 0x78], 0
je 0x18000929a
mov rax, qword [rsp + 0x78]
movsx eax, byte [rax]
test eax, eax
je 0x18000929a
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x28], rax
jmp 0x1800092a3
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x80], 0
je 0x1800092d6
mov rax, qword [rsp + 0x80]
movsx eax, byte [rax]
test eax, eax
je 0x1800092d6
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
jmp 0x1800092df
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x80], rax
call fcn.180007d70
mov r9, qword [rsp + 0x90]
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [rsp + 0x20], eax
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x38]
call fcn.1800090b0
mov rdi, qword [rsp + 0x98]
mov rsi, rax
mov ecx, 0x18
rep movsb byte [rdi], byte [rsi]
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x98]
mov ecx, 0x18
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x70]
add rsp, 0x58
pop rdi
pop rsi
ret

Function at 0x18000c330
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x180030010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r8d, 1
lea rdx, str.ServicesActive
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x18000c371
xor al, al
jmp 0x18000c412
mov r8d, 0x80000000
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x18000c3a6
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x18000c412
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x18000c3de
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x18000c412
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [rsp + 0x44], 4
jne 0x18000c405
mov dword [rsp + 0x20], 1
jmp 0x18000c40d
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180024410
add rsp, 0x78
ret
Function at 0x18000ca80
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x198
mov rax, qword [0x180030010]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov dword [rsp + 0x20], 0
mov edx, 0x18
lea rcx, [rsp + 0x30]
call fcn.180001990
lea rcx, [rsp + 0x30]
call fcn.18000e010
nop
mov dword [rsp + 0x50], 0x130
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Process32First]
cmp eax, 1
jne 0x18000cb3c
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Process32Next]
cmp eax, 1
jne 0x18000cb3c
mov rdx, qword [rsp + 0x1a8]
lea rcx, [rsp + 0x7c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x18000cb3a
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.18000e130
jmp 0x18000caf4
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x1a0]
call fcn.18000df10
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x30]
call fcn.18000e290
mov rax, qword [rsp + 0x1a0]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.180024410
add rsp, 0x198
ret
Function at 0x18000d2b0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
cmp qword [rsp + 0x30], 0
jne 0x18000d2e4
mov r9d, setsockopt
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
add rsp, 0x28
ret

Function at 0x18000dd30
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 1
je 0x18000dd53
jmp 0x18000dd78
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x18000db90]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x48
ret

Function at 0x18000e600
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x68], 0
je 0x18000e639
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.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 0x18000e727
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x50], 0
jle 0x18000e6cf
cmp qword [rsp + 0x20], 0
jle 0x18000e6cf
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x50], rax
jge 0x18000e679
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call fcn.1800145c0
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rsp + 0x50], 0
jle 0x18000e717
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x80], 0
je 0x18000e717
mov rax, qword [rsp + 0x40]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
add rsp, 0x38
ret
Function at 0x18000e730
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x180030010]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x80], 0
jg 0x18000e764
xor eax, eax
jmp 0x18000e916
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x68], 0
je 0x18000e78d
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
jmp 0x18000e916
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x18000e82c
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.18000e930
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call fcn.1800145c0
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x80], 0
je 0x18000e906
mov rcx, qword [rsp + 0x70]
call fcn.180011be0
mov qword [rsp + 0x38], 0xfff
cmp qword [rsp + 0x40], 0xfff
jbe 0x18000e8cd
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x78]
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 + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x28], 0xfff
je 0x18000e8cb
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
jmp 0x18000e916
jmp 0x18000e852
cmp qword [rsp + 0x40], 0
jbe 0x18000e906
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x40]
mov edx, 1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180024410
add rsp, 0x68
ret
Function at 0x180011ca0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rax, qword [0x180030010]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0xa0]
cmp qword [rax + 0x68], 0
je 0x180011cdd
mov rax, qword [rsp + 0xa0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x180011ce4
mov al, 1
jmp 0x180011e2e
call fcn.180014480
mov rcx, qword [rsp + 0xa0]
mov rcx, qword [rcx]
mov qword [rsp + 0x48], rcx
mov edx, eax
mov rcx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0x48]
call qword [rax + 0x18]
mov dword [rsp + 0x38], eax
call fcn.180014480
mov dword [rsp + 0x3c], eax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x3c]
call fcn.1800144e0
movzx eax, al
test eax, eax
je 0x180011d35
xor al, al
jmp 0x180011e2e
mov qword [rsp + 0x50], 0x20
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0xa0]
add rcx, 0x74
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x60]
mov rdx, rcx
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x180011d9b
cmp dword [rsp + 0x30], 1
je 0x180011da7
cmp dword [rsp + 0x30], 3
je 0x180011e1c
jmp 0x180011e2c
mov rax, qword [rsp + 0xa0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jbe 0x180011df3
mov rax, qword [rsp + 0xa0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x40]
mov edx, 1
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x40], rax
je 0x180011df3
xor al, al
jmp 0x180011e2e
mov rax, qword [rsp + 0xa0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x180011e0d
mov dword [rsp + 0x34], 1
jmp 0x180011e15
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x180011e2e
mov rax, qword [rsp + 0xa0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x180011e2e
xor al, al
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.180024410
add rsp, 0x98
ret

Function at 0x180014690
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x28
ret

Function at 0x1800160c0
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x28
mov r8d, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_connect]
add rsp, 0x28
ret
Function at 0x180016140
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x60]
mov r8d, dword [rsp + 0x58]
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret
Function at 0x180024b94
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x180058550
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rbp, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x18005857c
xor al, al
jmp 0x1800586a0
movdqa xmm0, xmmword [0x180078ae0]
movdqa xmm1, xmmword [0x180078af0]
mov rax, qword [r9]
xor r11d, r11d
mov qword [rsp + 0x50], r12
mov rcx, r8
movdqa xmmword [rsp], xmm0
movdqa xmm0, xmmword [0x180078b00]
movdqa xmmword [rsp + 0x10], xmm1
lea r12, [r8 + rax]
mov edx, r11d
movdqa xmm1, xmmword [0x180078b10]
movdqa xmmword [rsp + 0x20], xmm0
movdqa xmmword [rsp + 0x30], xmm1
test rbx, rbx
je 0x180058692
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x1800585f9
mov r11d, 2
jmp 0x18005861d
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x180058613
mov r11d, 1
jmp 0x18005861d
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, r12
ja 0x1800586b5
mov eax, r10d
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov eax, r10d
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x18005865a
mov byte [rcx + 2], 0x3d
jmp 0x18005866a
shr r10, 6
and r10d, 0x3f
movzx eax, byte [rsp + r10]
mov byte [rcx + 2], al
add rcx, 3
add r8, 3
test r11, r11
je 0x18005867c
mov byte [rcx], 0x3d
jmp 0x180058683
movzx eax, byte [rsp + r9]
mov byte [rcx], al
inc rcx
inc r8
cmp rdx, rbx
jb 0x1800585e0
sub rcx, rsi
mov al, 1
mov qword [rbp], rcx
mov r12, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
xor al, al
jmp 0x18005869b

Function at 0x1800b72f4
Capabilities:
Encode data using xor

Disassembly:
or qword [rsp + 0x40], 0x14b47c18
mov r13, qword [rsp + 0x38]
mov byte [rsp + 0x40], 0xd
movzx ebx, byte [rsp + 0x5c]
cmp word [rsp + 0x40], 0x9f2
mov rbx, qword [rsp + 0x50]
mov dword [rsp + 0x58], 0x43f009c9
movzx r11d, r14w
call fcn.1801e3b07

Function at 0x18014bed8
Capabilities:
Encode data using xor

Disassembly:
movabs r9, 0x246f221d1d232f4d
sub r9d, 0x69827f15
xor r9b, 0x23
js fcn.18014bed8
sub r9b, r9b
mov r9, qword [rsp + 8]
add qword [rsp + 0x10], 0x7fcd4ed3
call fcn.180055c3b

Function at 0x18016d3c0
Capabilities:
Encode data using xor

Disassembly:
push r14
mov r14, rdx
jb fcn.180113407
add qword [rsp + 0x38], 0xffffffffffeb01c4
mov rsi, qword [rsp + 0x50]
test dword [rsp + 0x1c], esi
jo 0x1801781c1
sub r14b, 0xd7
movzx rsi, byte [rsp + 0x50]
add dx, word [rsp + 0x53]
push rdx
push 0x28493f24
mov rsi, qword [rsp + 0x48]
mov rsi, qword [rsi + r9 - 0x277e066f]
lea r14, [r11 + r9*4 + 0x20e023f0]
call fcn.180191035