joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800b8d10
Capabilities:
Check http status code

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x20], 0
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x48]
cdq
mov ecx, 0x64
idiv ecx
cmp eax, 2
je 0x1800b8d60
lea rdx, str.Couldnt_set_desired_mode
mov rcx, qword [rsp + 0x28]
call fcn.180060120
mov eax, reloc.WS2_32.dll_recvfrom
jmp 0x1800b8dde
cmp dword [rsp + 0x48], 0xc8
je 0x1800b8d80
mov r8d, dword [rsp + 0x48]
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
mov rcx, qword [rsp + 0x28]
call fcn.18005ffc0
cmp dword [rsp + 0x50], 0x13
jne 0x1800b8d97
mov rcx, qword [rsp + 0x40]
call fcn.1800b7490
mov dword [rsp + 0x20], eax
jmp 0x1800b8dda
cmp dword [rsp + 0x50], 0x14
jne 0x1800b8dae
mov rcx, qword [rsp + 0x40]
call fcn.1800b7540
mov dword [rsp + 0x20], eax
jmp 0x1800b8dda
cmp dword [rsp + 0x50], 0x15
jne 0x1800b8dc5
mov rcx, qword [rsp + 0x40]
call fcn.1800b77d0
mov dword [rsp + 0x20], eax
jmp 0x1800b8dda
cmp dword [rsp + 0x50], 0x16
jne 0x1800b8dda
mov rcx, qword [rsp + 0x40]
call fcn.1800b7810
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x1800c4320
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp dword [rsp + 0x48], 0
je 0x1800c433e
mov dword [rsp + 0x20], 1
jmp 0x1800c4346
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x24], eax
lea r8, [rsp + 0x24]
mov edx, 0x8004667e
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
add rsp, 0x38
ret

Function at 0x1800c65a0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov rax, qword [0x180173200]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0x30], 0
lea rcx, str.RLM_SKIP_UUID
call fcn.1800fc424
test rax, rax
je 0x1800c65e1
mov eax, 1
jmp 0x1800c66b3
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0xd0]
mov byte [rcx + rax], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
lea r8, [0x1800c66e0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x1800c6637
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
jmp 0x1800c66af
lea rcx, str.RLM_UUID_THREAD_TIMEOUT
call fcn.1800fc424
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x1800c6660
mov rcx, qword [rsp + 0x48]
call fcn.1800fbf74
mov dword [rsp + 0x34], eax
jmp 0x1800c6668
mov dword [rsp + 0x34], 0xea60
mov edx, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x1800c669c
mov r8d, 0x40
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0xd0]
call fcn.1800fccf0
jmp 0x1800c66a4
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1800e95d0
add rsp, 0xc8
ret
Function at 0x1800d5d30
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x78]
call fcn.1800fb030
mov qword [rsp + 0x38], rax
movabs rax, 0x7fffffffffffffff
cmp qword [rsp + 0x38], rax
jbe 0x1800d5d6d
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1800d5ebb
cmp qword [rsp + 0x38], 0
je 0x1800d5d8d
mov rax, qword [rsp + 0x38]
shl rax, 1
mov rcx, rax
call qword [fcn.1800fb170]
mov qword [rsp + 0x50], rax
jmp 0x1800d5d9f
lea rcx, [0x180178047]
call qword [0x180150278]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x1800d5dbb
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1800d5ebb
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x40]
call fcn.1800d6230
mov dword [rsp + 0x30], 0
cmp dword [rsp + 0x30], 0
je 0x1800d5de7
mov eax, dword [rsp + 0x30]
jmp 0x1800d5ebb
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1800d5e92
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8002
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1800d5e85
mov dword [rsp + 0x34], reloc.WS2_32.dll_recv
mov eax, dword [rsp + 0x38]
shl eax, 1
xor r9d, r9d
mov r8d, eax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8, qword [rsp + 0x80]
mov edx, 2
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rax, qword [rsp + 0x80]
add rax, 0x10
mov r8d, 5
xor edx, edx
mov rcx, rax
call fcn.18012a620
mov rcx, qword [rsp + 0x40]
call qword [fcn.1800fb1f8]
xor eax, eax
add rsp, 0x68
ret
Function at 0x1800d60c0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x180173200]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x40], 8
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1800d6116
xor al, al
jmp 0x1800d620a
mov r8d, reloc.WS2_32.dll_sendto
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.18012a620
mov byte [rsp + 0x58], 8
mov byte [rsp + 0x59], 2
mov dword [rsp + 0x5c], 0x6601
mov dword [rsp + 0x60], 8
lea rdx, [rsp + 0x64]
mov rcx, qword [rsp + 0xa0]
call fcn.1800d5ed0
mov edx, 8
lea rcx, [rsp + 0x64]
call fcn.1800e2b70
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, reloc.WS2_32.dll_sendto
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x1800d61a3
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
jmp 0x1800d620a
mov r8d, 8
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
call fcn.180129f80
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1800e95d0
add rsp, 0x88
ret

Function at 0x1800d8bb0
Capabilities:
Get hostname

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov byte [rcx + rax], 0
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_gethostname]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x48]
dec eax
cdqe
mov rcx, qword [rsp + 0x40]
mov byte [rcx + rax], 0
cmp dword [rsp + 0x20], 0
je 0x1800d8c00
mov eax, dword [rsp + 0x20]
jmp 0x1800d8c26
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, qword [rsp + 0x40]
call fcn.1800ea994
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800d8c24
mov rax, qword [rsp + 0x28]
mov byte [rax], 0
xor eax, eax
add rsp, 0x38
ret
Function at 0x1800e0120
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, Ordinal_41
call fcn.1800e9570
sub rsp, rax
cmp dword [reloc.WS2_32.dll_accept], 0
je 0x1800e0168
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x1800e014d
mov dword [reloc.WS2_32.dll_accept], eax
jmp 0x1800e0168
xorps xmm2, xmm2
lea rcx, [rsp + 0x38]
mov edx, 8
call fcn.18006cf60
cmp dword [reloc.WS2_32.dll_accept], 0
jne 0x1800e0184
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xorps xmm2, xmm2
lea rcx, [rsp + 0x30]
mov edx, 4
mov dword [rsp + 0x30], eax
call fcn.18006cf60
add rsp, 0x28
ret
Function at 0x1800fef1c
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.180104b98
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180104b98
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1800ff06c
cmp rax, 0xffffffffffffffff
je 0x1800ff06c
xor edi, edi
test rbp, rbp
jle 0x1800ff017
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180109964
mov rbx, rax
test rax, rax
jne 0x1800fefa4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800ff00d
mov edx, 0x8000
mov ecx, r14d
call fcn.180105bf0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.180107cfc
cmp eax, 0xffffffff
je 0x1800fefed
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800fefb4
mov edx, r15d
mov ecx, r14d
call fcn.180105bf0
jmp 0x1800ff00d
cmp byte [rsi + 0x38], dil
je 0x1800ff004
cmp dword [rsi + 0x34], 5
jne 0x1800ff004
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1800ff00d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1801099dc
jmp 0x1800ff080
jns 0x1800ff080
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180104b98
cmp rax, 0xffffffffffffffff
jne 0x1800ff038
cmp byte [rsi + 0x30], dil
je 0x1800ff080
mov edi, dword [rsi + 0x2c]
jmp 0x1800ff080
mov ecx, r14d
call fcn.18010d384
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800ff080
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x1800ff080
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800ff079
mov eax, dword [rsi + 0x2c]
jmp 0x1800ff07e
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180104b98
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1800ffe24
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x180173200]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x180139730]
mov rbp, rcx
call fcn.18010df48
xor edi, edi
test rax, rax
je 0x1800fff0a
mov ebx, edi
call fcn.180102964
mov r14d, dword [rax]
call fcn.180102964
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.18010de94
mov rsi, rax
test rax, rax
je 0x1800ffe9b
call fcn.180102964
mov dword [rax], r14d
jmp 0x1800ffec5
call fcn.180102964
cmp dword [rax], 0x22
jne 0x1800fff02
call fcn.180102964
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.18010de94
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1800fff02
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1800ffec9
cmp rax, 3
je 0x1800ffee4
mov rcx, rsi
call fcn.1800ffd80
test al, al
je 0x1800ffef5
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1800ffef5
mov dil, 1
mov rcx, rbx
call fcn.1800fb1f8
mov al, dil
jmp 0x1800fff0c
mov rcx, rbx
call fcn.1800fb1f8
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1800e95d0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x180101ab8
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x180173200]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x180101b02
call fcn.180102944
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.180102964
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.1801098fc
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800e95d0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x180101b0d
lea eax, [rbx + 1]
jmp 0x180101aef
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x180101aed
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x180101aef
Function at 0x180101b8c
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
test rcx, rcx
jne 0x180101bab
call fcn.18010f13c
jmp 0x180101c60
and qword [rbp - 0x30], 0
lea rcx, [rbp - 0x50]
and qword [rbp - 0x28], 0
xor edx, edx
and qword [rbp - 0x20], 0
and qword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
mov byte [rbp - 8], 0
call fcn.1800f746c
mov rax, qword [rbp - 0x48]
mov r9d, 0xfde9
cmp dword [rax + 0xc], r9d
jne 0x180101bf6
cmp byte [rbp - 0x38], 0
je 0x180101c2b
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x180101c2b
call fcn.180109c84
test eax, eax
jne 0x180101c17
cmp byte [rbp - 0x38], al
je 0x180101c0f
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x180101c2b
cmp byte [rbp - 0x38], 0
je 0x180101c28
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
xor r9d, r9d
lea r8, [rbp + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x30]
call fcn.1800fda90
test eax, eax
je 0x180101c44
or ebx, 0xffffffff
jmp 0x180101c4f
mov rcx, qword [rbp - 0x20]
call fcn.18010f13c
mov ebx, eax
cmp byte [rbp - 8], 0
je 0x180101c5e
mov rcx, qword [rbp - 0x20]
call fcn.1801099dc
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret

Function at 0x180103044
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1800e9570
sub rsp, rax
mov rax, qword [0x180173200]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180106370
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180103093
mov rax, rbp
jmp 0x18010319b
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x178bd0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180104b90
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x178bd0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180103197
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180103197
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180104b90
test rax, rax
js 0x180103197
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180103197
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180103189
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180103189
cmp byte [rcx], 0xd
jne 0x18010316f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18010317e
cmp byte [rcx + 1], 0xa
jne 0x18010317e
inc rcx
jmp 0x18010317e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1733a0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180103151
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18010319b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1800e95d0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180104618
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x18010464f
call fcn.180102964
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1801098fc
xor eax, eax
jmp 0x1801046dd
mov rdx, r9
mov rcx, r8
call fcn.1801044ec
mov rbx, rax
test rax, rax
je 0x1801046da
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1801043a8]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1801046c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1801028d8
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1801046ae
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1801046bd
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1801099dc
jmp 0x1801046da
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1801046d7
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x180106648
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rbx, rcx
mov ecx, dword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
jne 0x180106683
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1801028d8
call fcn.180102964
mov eax, dword [rax]
jmp 0x1801066fa
cmp rdi, qword [rbx + 0x18]
ja 0x18010668f
mov qword [rbx + 0x20], rdi
jmp 0x1801066f8
cmp byte [rbx + 0x28], 0
lea rsi, [rdi + 1]
je 0x1801066a6
mov rcx, qword [rbx + 0x10]
call fcn.1801099dc
mov byte [rbx + 0x28], 0
lea rcx, [rdi*2 + 2]
call fcn.18010a448
mov qword [rbx + 0x10], rax
mov r8, rax
neg rax
mov edx, 0
sbb eax, eax
not eax
and eax, 0xc
cmove rdx, rsi
test eax, eax
sete cl
mov byte [rbx + 0x28], cl
mov qword [rbx + 0x18], rdx
test eax, eax
jne 0x1801066fa
mov ecx, dword [rbx + 0x18]
mov rdx, r8
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, eax
test rax, rax
je 0x18010666d
mov qword [rbx + 0x20], rax
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180106944
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x180178bd0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x18010699b
cmp word [rdx], r13w
jne 0x18010699b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1801069a0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180106ac5
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180106ae6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1801069d9
mov rdx, r9
mov word [rbx], cx
jmp 0x180106a00
cmp r9, r8
jae 0x180106a10
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1801069ba
jmp 0x180106ac5
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180106aba
cmp dword [rsp + 0x80], esi
je 0x180106aba
lea r8, [0x180178bd0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180106a92
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180106a62
mov word [rbx], r13w
jmp 0x180106ac2
mov ecx, reloc.WS2_32.dll_listen
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x180106a6f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180106ac2
cmp word [rsp + 0x70], r13w
jne 0x180106a9f
cmp rbx, r14
je 0x180106a5c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180104b98
cmp word [rsp + 0x70], r13w
je 0x180106ac5
mov ecx, reloc.WS2_32.dll_listen
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x180178bd0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180106abf
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180106ac5
Function at 0x18010cca0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18010ccb6
mov al, 1
jmp 0x18010cd16
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18010ccc7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18010cd14
mov ecx, dword [rcx + 0x18]
nop
call fcn.18010d384
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18010cd14
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18010cd14
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18010cd14
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18010cd16
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x180110558
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180110578
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1801028d8
or eax, 0xffffffff
jmp 0x18011057a
xor eax, eax
add rsp, 0x28
ret