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

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x1400bb050], 0
jne 0x14001c136
mov byte [0x1400bb050], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x14001c10c
mov rbx, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [rbx], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add rbx, rax
mov rcx, rbx
call sym.__cxa_demangle
mov ecx, 2
mov rsi, qword [dbg.__acrt_iob_func]
mov rdi, rax
call rsi
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x14001c0fd
call rsi
mov rcx, rbx
mov rdx, rax
call sym.fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x1402d7af1]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x14001c0f8
mov rcx, rdi
call sym.free
call sym.__cxa_rethrow
call rsi
mov rcx, rdi
mov rdx, rax
call sym.fputs
jmp 0x14001c0c7
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
call sym.abort
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
sub rdx, 1
mov rcx, rax
jne 0x14001c1cb
call sym.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sym.fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
jmp 0x14001c131
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x14001c131

Function at 0x14007baa0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sym.fileno
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sym.read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x14007bae8
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14007baba
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x14008e2f0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x14008e318
mov rcx, qword [rcx]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov ebx, 4
lea rsi, [rsp + 0x2c]
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sym.read
test eax, eax
jle 0x14008e360
cdqe
add rsi, rax
sub rbx, rax
jne 0x14008e330
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x14008e36c
call rbp
cmp dword [rax], 4
je 0x14008e330
lea rcx, str.random_device_could_not_be_read
call method.std.__throw_runtime_error_char_const_
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1400b7300
Capabilities:
Query environment variable

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
xor edx, edx
lea rcx, [0x1400b8900]
movabs rdi, 0x2e78786362696c67
movabs r12, 0x6c6f6f705f68652e
call sym.pthread_mutex_init
pxor xmm0, xmm0
lea rcx, str.GLIBCXX_TUNABLES
mov qword [0x1400b8918], 0
movups xmmword [0x1400b8908], xmm0
call sym.getenv
mov dword [rsp + 0x40], 0
mov rbx, rax
lea rax, str.obj_size
mov qword [rsp + 0x30], 8
mov qword [rsp + 0x38], rax
lea rax, str.obj_count
mov qword [rsp + 0x48], 9
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x100
test rbx, rbx
jne 0x1400b73b5
jmp 0x1400b745f
mov rcx, rbx
mov edx, 0x3a
call sym.strchr
mov rbx, rax
test rax, rax
je 0x1400b7410
xor eax, eax
cmp byte [rbx], 0x3a
sete al
add rbx, rax
cmp qword [rbx], rdi
jne 0x1400b73a0
cmp qword [rbx + 7], r12
jne 0x1400b73a0
cmp byte [rbx + 0xf], 0x2e
jne 0x1400b73a0
add rbx, 0x10
lea rbp, [rsp + 0x30]
lea r13, [rsp + 0x60]
mov rsi, qword [rbp]
mov rcx, qword [rbp + 8]
test rsi, rsi
je 0x1400b73fb
mov r8, rsi
mov rdx, rbx
call sym.memcmp
test eax, eax
jne 0x1400b7405
cmp byte [rbx + rsi], 0x3d
je 0x1400b7495
add rbp, 0x18
cmp rbp, r13
jne 0x1400b73df
jmp 0x1400b73a0
mov eax, dword [rsp + 0x58]
mov edx, 0x1000
mov ecx, 6
cmp eax, edx
cmovle edx, eax
mov eax, dword [rsp + 0x40]
test eax, eax
cmove eax, ecx
movsxd rbx, eax
movsxd rax, edx
add rbx, 0x26
imul rbx, rax
shl rbx, 3
mov qword [0x1400b8918], rbx
jne 0x1400b746f
lea rcx, [sym.__tcf_0]
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp dbg.atexit
mov qword [0x1400b8918], 0x16000
mov ebx, 0x16000
mov rcx, rbx
call sym.malloc
mov qword [0x1400b8910], rax
test rax, rax
je 0x1400b74cc
xor edx, edx
mov qword [0x1400b8908], rax
mov qword [rax], rbx
mov qword [rax + 8], rdx
jmp 0x1400b7447
lea rdx, [rsp + 0x28]
lea rcx, [rbx + rsi + 1]
xor r8d, r8d
call sym.strtoul
mov rbx, qword [rsp + 0x28]
movzx edx, byte [rbx]
cmp dl, 0x3a
je 0x1400b74bc
test dl, dl
jne 0x1400b73a0
test eax, eax
js 0x1400b73a0
mov dword [rbp + 0x10], eax
jmp 0x1400b73a0
xor ecx, ecx
mov qword [0x1400b8918], rcx
jmp 0x1400b7447
Function at 0x140001f0c
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov byte [rsp + 0x64], 0
mov byte [rsp + 0x65], 0
mov byte [rsp + 0x66], 0
mov byte [rsp + 0x67], 0
mov byte [rsp + 0x68], 0
mov byte [rsp + 0x69], 5
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x220
mov r8d, 0x20
mov dl, 2
lea rcx, [rsp + 0x64]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x180001c01
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x180001bf6
mov dword [rsp + 0x60], 0
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
movzx eax, byte [rsp + 0x60]
add rsp, 0x88
ret
Function at 0x180004080
Capabilities:
Connect to http server
Create http request

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x48], 0x3a980
call fcn.18000b660
mov ecx, 1
call fcn.180008160
movzx eax, ax
and eax, 8
cmp eax, 8
jne 0x1800040be
mov dword [rsp + 0x44], 0x84c03200
jmp 0x1800040c6
mov dword [rsp + 0x44], 0x84400200
mov eax, dword [rsp + 0x44]
mov dword [0x18001b3bc], eax
mov ecx, 0x32
call fcn.180008160
movzx eax, ax
cmp eax, 1
jne 0x1800040f2
mov eax, dword [0x18001b3bc]
bts eax, 0x13
mov dword [0x18001b3bc], eax
mov ecx, 0x23
call fcn.180008160
movzx eax, ax
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x180004175
cmp dword [rsp + 0x40], 1
je 0x18000414b
cmp dword [rsp + 0x40], 2
je 0x180004124
cmp dword [rsp + 0x40], 4
je 0x180004175
jmp 0x1800041a7
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [0x18001b3a0], rax
jmp 0x1800041a7
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [0x18001b3a0], rax
jmp 0x1800041a7
mov ecx, 0x20
call fcn.180008140
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
mov edx, 3
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [0x18001b3a0], rax
mov r9d, 4
lea r8, [rsp + 0x48]
mov edx, 5
mov rcx, qword [0x18001b3a0]
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov r9d, 4
lea r8, [rsp + 0x48]
mov edx, 6
mov rcx, qword [0x18001b3a0]
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov rax, qword [0x18001b3c0]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], 0
xor r9d, r9d
movzx r8d, word [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [0x18001b3a0]
call qword [sym.imp.WININET.dll_InternetConnectA]
mov qword [0x18001b3a8], rax
mov ecx, 0x23
call fcn.180008160
movzx eax, ax
cmp eax, 4
jne 0x1800042a2
mov ecx, 0x21
call fcn.180008120
mov dword [rsp + 0x4c], eax
mov ecx, 0x21
call fcn.180008140
mov ecx, dword [rsp + 0x4c]
mov r9d, ecx
mov r8, rax
mov edx, 0x2b
mov rcx, qword [0x18001b3a8]
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov ecx, 0x22
call fcn.180008120
mov dword [rsp + 0x50], eax
mov ecx, 0x22
call fcn.180008140
mov ecx, dword [rsp + 0x50]
mov r9d, ecx
mov r8, rax
mov edx, 0x2c
mov rcx, qword [0x18001b3a8]
call qword [sym.imp.WININET.dll_InternetSetOptionA]
call fcn.18000b680
add rsp, 0x68
ret
Function at 0x1800042b0
Capabilities:
Send data
Send http request

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x530
lea rax, [0x180014808]
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xa8], 0
mov byte [rsp + 0x130], 0
lea rax, [rsp + 0x131]
mov rdi, rax
xor eax, eax
mov ecx, 0x3ff
rep stosb byte [rdi], al
mov byte [rsp + 0xb0], 0
lea rax, [rsp + 0xb1]
mov rdi, rax
xor eax, eax
mov ecx, 0x7f
rep stosb byte [rdi], al
mov qword [rsp + 0x60], 0
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0x38
rep stosb byte [rdi], al
cmp dword [0x18001b3b8], 0
jne 0x180004338
jmp 0x180004544
mov edx, dword [0x18001b3b8]
lea rcx, [rsp + 0x60]
call fcn.180009bf0
mov r9, qword [rsp + 0x540]
lea r8, [0x18001480c]
mov edx, 0x400
mov rcx, qword [rsp + 0x70]
call fcn.180001cc0
mov rax, qword [0x18001c350]
mov rax, qword [rax]
mov rcx, qword [0x18001c350]
call qword [rax + 0x18]
mov r9d, eax
lea r8, [0x180014810]
mov edx, 0x80
lea rcx, [rsp + 0xb0]
call fcn.180001cc0
lea rcx, [rsp + 0xb0]
call sub.msvcrt.dll_strlen
mov qword [rsp + 0x50], rax
mov ecx, ntohs
call fcn.180008140
mov ecx, dword [0x18001b3b8]
mov dword [rsp + 0x28], ecx
mov rcx, qword [0x18001b3b0]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x50]
mov r9d, ecx
lea r8, [rsp + 0xb0]
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.180009080
mov rcx, qword [rsp + 0x68]
call sub.msvcrt.dll_strlen
test rax, rax
jne 0x180004414
mov r9, qword [rsp + 0x70]
lea r8, [0x180014814]
mov edx, 0x400
lea rcx, [rsp + 0x130]
call fcn.180001cc0
jmp 0x18000443c
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x70]
lea r8, [0x180014818]
mov edx, 0x400
lea rcx, [rsp + 0x130]
call fcn.180001cc0
call fcn.18000b660
mov dword [rsp + 0x40], 0
jmp 0x180004455
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 4
jae 0x180004525
mov ecx, 0x1b
call fcn.180008140
mov rcx, qword [0x18001b3c0]
mov qword [rsp + 0x38], rcx
mov ecx, dword [0x18001b3bc]
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0xa0]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x130]
mov rdx, rax
mov rcx, qword [0x18001b3a8]
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.180003ef0
mov rcx, qword [rsp + 0x60]
call sub.msvcrt.dll_strlen
mov ecx, dword [rsp + 0x80]
mov dword [rsp + 0x20], ecx
mov r9, qword [rsp + 0x78]
mov r8d, eax
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WININET.dll_HttpSendRequestA]
mov rcx, qword [rsp + 0x48]
call fcn.180004690
test eax, eax
je 0x18000450a
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x180004525
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x18000444b
mov edx, dword [0x18001b3b8]
lea rcx, [rsp + 0x60]
call fcn.180009bd0
mov dword [0x18001b3b8], 0
call fcn.18000b680
add rsp, 0x530
pop rdi
ret
Function at 0x180004690
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x148
mov dword [rsp + 0x30], 0x100
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x40]
mov edx, reloc.WS2_32.dll_send
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x1800046d2
xor eax, eax
jmp 0x1800046f3
lea rcx, [rsp + 0x40]
call sub.msvcrt.dll_atoi
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0xc8
je 0x1800046ee
xor eax, eax
jmp 0x1800046f3
mov eax, 1
add rsp, 0x148
ret
Function at 0x180004f70
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0x10
cmp eax, 0x10
jne 0x180004f96
mov dword [rsp + 0x20], 1
jmp 0x180004f9e
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x180004fb0
Capabilities:
Delete directory
Delete file

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov r8d, dword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.180008280
mov edx, 0x4000
lea rcx, [rsp + 0x28]
call fcn.180008550
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x20]
call fcn.180004f70
test eax, eax
je 0x180005010
lea rdx, [0x180004d30]
mov rcx, qword [rsp + 0x20]
call fcn.18000a1f0
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll__rmdir
jmp 0x18000501a
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_remove
mov rcx, qword [rsp + 0x20]
call fcn.18000cc84
add rsp, 0x48
ret
Function at 0x180005420
Capabilities:
Create directory

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov r8d, dword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.180008280
mov edx, 0x4000
lea rcx, [rsp + 0x28]
call fcn.180008550
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll__mkdir
mov rcx, qword [rsp + 0x20]
call fcn.18000cc84
add rsp, 0x48
ret

Function at 0x180005c20
Capabilities:
Terminate process

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x38]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
mov r8d, dword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.180008280
lea rcx, [rsp + 0x30]
call fcn.1800082d0
mov dword [rsp + 0x20], eax
mov r8d, dword [rsp + 0x20]
xor edx, edx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180005ca5
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x180005ca5
jmp 0x180005cbc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov edx, dword [rsp + 0x20]
mov ecx, 0x23
call fcn.180003ab0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x50
pop rdi
ret
Function at 0x1800069c0
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
cmp qword [0x18001b3e8], 0
jne 0x1800069fe
mov ecx, 0x80004
call sub.msvcrt.dll_malloc
mov qword [0x18001b3e8], rax
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax]
call sub.WS2_32.dll_htonl
mov dword [rsp + 0x24], eax
mov r8d, 4
lea rdx, [rsp + 0x24]
mov rcx, qword [0x18001b3e8]
call sub.msvcrt.dll_memcpy
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x50]
cmp dword [rax + 4], ecx
jbe 0x180006a3d
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x20], eax
jmp 0x180006a49
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 4]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jbe 0x180006ace
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x28]
mov rdx, qword [0x18001b3e8]
lea rcx, [rdx + rcx + 4]
mov rdx, qword [rsp + 0x40]
mov r9, qword [rdx + 8]
mov r8d, eax
mov edx, 1
call sub.msvcrt.dll_fread
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x180006a93
mov rax, qword [rsp + 0x40]
mov dword [rax + 4], 0
jmp 0x180006ace
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x28]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x20]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x24]
mov eax, dword [rax + 4]
sub eax, ecx
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 4], eax
jmp 0x180006a49
mov eax, dword [rsp + 0x28]
add eax, 4
mov r8d, 8
mov edx, eax
mov rcx, qword [0x18001b3e8]
call qword [rsp + 0x48]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.180006970
add rsp, 0x38
ret

Function at 0x180006b00
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov r8d, dword [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.180008280
mov edx, 0x80
lea rcx, [rsp + 0x28]
call fcn.180003470
lea rcx, [rsp + 0x40]
call fcn.1800082d0
mov dword [rsp + 0x20], eax
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.1800034b0
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov r8d, eax
lea rdx, [0x18001b06c]
lea rcx, [rsp + 0x28]
call fcn.180003500
lea rcx, [rsp + 0x28]
call fcn.1800034f0
mov dword [rsp + 0x24], eax
lea rcx, [rsp + 0x28]
call fcn.18000bae0
mov r8d, reloc.WS2_32.dll_shutdown
mov ecx, dword [rsp + 0x24]
mov edx, ecx
mov rcx, rax
call qword [rsp + 0x80]
lea rcx, [rsp + 0x28]
call fcn.180003430
add rsp, 0x68
ret
Function at 0x1800073e0
Capabilities:
Read file on windows
Read pipe

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x180007437
mov eax, 0xffffffff
jmp 0x1800074db
cmp dword [rsp + 0x38], 0
jbe 0x1800074d7
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x30], eax
jae 0x1800074d7
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x60]
sub ecx, eax
mov eax, ecx
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8d, eax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x1800074d2
mov eax, 0xffffffff
jmp 0x1800074db
jmp 0x180007437
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x180007970
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x30], eax
jge 0x180007a03
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x60]
sub ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x58]
add rdx, rcx
mov rcx, rdx
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x1800079ea
cmp dword [rsp + 0x34], 0
jne 0x1800079f1
mov eax, 0xffffffff
jmp 0x180007a18
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
jmp 0x180007993
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x30], eax
je 0x180007a14
mov eax, 0xffffffff
jmp 0x180007a18
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x180007a20
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, dword [rsp + 0x58]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x2c], 1
lea r8, [rsp + 0x2c]
mov edx, 0x8004667e
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
jne 0x180007a72
xor eax, eax
jmp 0x180007b1a
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [rsp + 0x30]
jae 0x180007aea
mov r9d, 2
mov r8d, 1
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x180007ab1
mov dword [rsp + 0x28], 0
jmp 0x180007aea
cmp dword [rsp + 0x24], 0
jle 0x180007ac4
mov dword [rsp + 0x28], 1
jmp 0x180007aea
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x180007ade
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x180007ae8
mov dword [rsp + 0x28], 0
jmp 0x180007aea
jmp 0x180007a72
mov dword [rsp + 0x2c], 0
lea r8, [rsp + 0x2c]
mov edx, 0x8004667e
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
jne 0x180007b16
xor eax, eax
jmp 0x180007b1a
mov eax, dword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x180007b20
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x78
mov dword [rsp + 0x20], 0
lea r8, [rsp + 0x20]
mov edx, 0x8004667e
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x38], rax
lea rax, [0x180007c10]
mov qword [rsp + 0x40], rax
lea rax, [0x180007d00]
mov qword [rsp + 0x48], rax
lea rax, [0x180007bd0]
mov qword [rsp + 0x50], rax
lea rax, [fcn.1800055c0]
mov qword [rsp + 0x58], rax
lea rax, [0x180007cd0]
mov qword [rsp + 0x60], rax
lea rax, [fcn.1800055c0]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x30]
mov rdi, qword [rsp + 0x90]
mov rsi, rax
mov ecx, 0x40
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x90]
add rsp, 0x78
pop rdi
pop rsi
ret