joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18002ed60
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x500
mov rax, qword [0x180074808]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
mov ebp, r8d
mov rdi, rdx
mov r8d, ecx
mov ecx, 0x1fffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18002ee47
test rax, rax
je 0x18002ee47
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rcx, rbx
cmp eax, 0xffffffff
je 0x18002ee79
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x518], rsi
mov dword [rsp + 0x50], 0x100001
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x18002ee3c
nop word [rax + rax]
mov rcx, qword [rsp + 0x118]
cmp rcx, rdi
jb 0x18002ee3c
lea rax, [rdi + rbp]
cmp rcx, rax
jae 0x18002ee3c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp esi, 3
jge 0x18002ee6c
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
lea rdx, [rsp + 0x20]
mov rcx, rbx
inc esi
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x18002edf0
mov rax, rbx
mov rsi, qword [rsp + 0x518]
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.180041e80
lea r11, [rsp + 0x500]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x18002ee3f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x18002ee47

Function at 0x18002ee90
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edx, reloc.WS2_32.dll_ntohs
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor edi, edi
cmp dword [0x1800a4918], edi
jbe 0x18002ef05
mov qword [rsp + 0x30], rbx
xor ebx, ebx
mov rcx, qword [0x1800a4910]
mov rcx, qword [rbx + rcx]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [0x1800a4910]
mov rcx, qword [rbx + rcx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
add rbx, 8
cmp edi, dword [0x1800a4918]
jb 0x18002eed0
mov rbx, qword [rsp + 0x30]
mov rcx, qword [0x1800a4910]
call fcn.180043658
mov qword [0x1800a4910], 0
mov dword [0x1800a4918], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edx, esi
mov rcx, rax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_SetThreadPriority]
Function at 0x18002f140
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x410
mov rax, qword [0x180074808]
xor rax, rsp
mov qword [rsp + 0x400], rax
xor ebx, ebx
mov rbp, rcx
mov rsi, rdx
mov qword [rdx + 8], rbx
mov qword [rdx], rbx
mov dword [rdx + 0x10], ebx
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x3e0
call fcn.18004a690
mov eax, dword [0x1800a1be0]
mov dword [rsp + 0x20], 0x1234566f
lea rcx, [0x1800a1be0]
test eax, eax
je 0x18002f1b0
nop
cmp eax, 3
je 0x18002f207
mov eax, dword [rcx + 0x10]
add rcx, 0x10
test eax, eax
jne 0x18002f1a0
lea rdx, str.disasm.c
lea rcx, [0x180064c04]
mov r8d, 0x77
call fcn.180044898
lea rdx, str.disasm.c
lea rcx, [0x180064c04]
mov r8d, 0x36
call fcn.180044898
mov eax, ebx
mov rcx, qword [rsp + 0x400]
xor rcx, rsp
call fcn.180041e80
mov rbx, qword [rsp + 0x440]
add rsp, 0x410
pop rdi
pop rsi
pop rbp
ret
mov eax, dword [rcx]
mov rdi, rbp
mov dword [rsp + 0x24], eax
mov rax, qword [rcx + 8]
mov qword [rsp + 0x28], rax
nop dword [rax]
lea rcx, [rsp + 0x20]
mov r8, rdi
mov rdx, rdi
call fcn.1800214b0
mov r11, rax
test rax, rax
je 0x18002f1e2
mov ecx, dword [rax + 0x124]
cmp ecx, 0x105
je 0x18002f1e2
cmp ecx, 0x101
je 0x18002f1e2
cmp ecx, 0x102
je 0x18002f1e2
cmp ecx, 0x103
je 0x18002f1e2
cmp ecx, 0x104
je 0x18002f1e2
cmp ecx, 0x2001
je 0x18002f27a
cmp ecx, 0x2003
jne 0x18002f2b1
test byte [rax + 0x325], 1
je 0x18002f2b1
movzx eax, byte [rax + 0x324]
and al, 0xf
cmp al, 8
jne 0x18002f2b1
cmp dword [r11 + 0x2b0], 2
jne 0x18002f2b1
test dword [r11 + 0x1d0], 0x200000
je 0x18002f2b1
cmp dword [r11 + 0x1e0], 0xb
je 0x18002f302
cmp ecx, 0x2001
je 0x18002f2c5
cmp ecx, 0x2003
jne 0x18002f35b
test byte [r11 + 0x325], 1
je 0x18002f35b
movzx eax, byte [r11 + 0x324]
and al, 0xf
cmp al, 8
jne 0x18002f35b
cmp dword [r11 + 0x2b0], 2
jne 0x18002f35b
test dword [r11 + 0x160], 0x200000
je 0x18002f35b
cmp dword [r11 + 0x170], 0xb
jne 0x18002f35b
mov rcx, qword [r11 + 0x328]
mov rax, qword [rsi + 8]
sub rcx, rbp
add rcx, rdi
cmp rcx, rax
cmovl rax, rcx
mov qword [rsi + 8], rax
mov rax, qword [rsi]
cmp rcx, rax
cmovg rax, rcx
mov qword [rsi], rax
mov eax, dword [rsi + 0x10]
cmp eax, 4
jae 0x18002f1e2
add rax, rax
lea ecx, [rbx + 3]
mov dword [rsi + rax*8 + 0x18], ecx
mov ecx, dword [rsi + 0x10]
mov rax, qword [r11 + 0x328]
add rcx, 2
add rcx, rcx
mov qword [rsi + rcx*8], rax
inc dword [rsi + 0x10]
jmp 0x18002f398
mov eax, dword [r11 + 0x2b0]
cmp eax, 1
jb 0x18002f374
test dword [r11 + 0x160], 0x200000
jne 0x18002f3b2
cmp eax, 2
jb 0x18002f386
test dword [r11 + 0x1d0], 0x200000
jne 0x18002f3b2
cmp eax, 3
jb 0x18002f398
test dword [r11 + 0x240], 0x200000
jne 0x18002f3b2
mov eax, dword [r11 + 0x138]
add ebx, eax
add rdi, rax
cmp ebx, 5
jb 0x18002f220
jmp 0x18002f1e2
lea rcx, str.scaphooks:__DisassembleAndSkip:_found_unsupported_OP_IPREL_on_operand_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x18002f1e2
Function at 0x180032fd0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x8070
call fcn.18004b9a0
sub rsp, rax
mov rax, qword [0x180074808]
xor rax, rsp
mov qword [rsp + 0x8060], rax
imul r9d, r9d, 0xf4240
cmp qword [0x1800a42e8], 0
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x4058], rcx
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x4050], 1
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], 0
jne 0x180033053
mov rax, qword [0x1800a4320]
xor r9d, r9d
test rax, rax
je 0x18003304d
call rax
jmp 0x180033053
call qword [sym.imp.WS2_32.dll_recv]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x4050]
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [0x1800a42e8]
test eax, eax
jne 0x180033089
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x1800330f3
cmp eax, 0xffffffff
jne 0x1800330a1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
jmp 0x1800330f5
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
jne 0x18003308e
lea rdx, [rsp + 0x4050]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x1800330f3
mov rax, qword [0x1800a4320]
xor r9d, r9d
mov r8d, esi
mov rdx, rdi
mov rcx, rbx
test rax, rax
je 0x1800330e4
call rax
jmp 0x1800330ea
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x1800330f3
cmp eax, 0xffffffff
jne 0x1800330f5
xor eax, eax
mov rcx, qword [rsp + 0x8060]
xor rcx, rsp
call fcn.180041e80
add rsp, 0x8070
pop rdi
pop rsi
pop rbx
ret
Function at 0x180033110
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
mov eax, 0x8078
call fcn.18004b9a0
sub rsp, rax
mov rax, qword [0x180074808]
xor rax, rsp
mov qword [rsp + 0x8060], rax
xor r13d, r13d
mov r12d, r9d
mov esi, r8d
mov rbp, rdx
mov rdi, rcx
mov ebx, r13d
test r8d, r8d
jle 0x180033239
test rdi, rdi
je 0x180033239
mov rax, qword [0x1800a4330]
mov r8d, esi
movsxd rdx, ebx
xor r9d, r9d
sub r8d, ebx
add rdx, rbp
mov rcx, rdi
test rax, rax
je 0x18003317e
call rax
jmp 0x180033184
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x180033190
add ebx, eax
jmp 0x180033231
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x18003325b
mov r10, qword [0x1800a42e8]
test r10, r10
je 0x180033239
mov eax, r12d
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x4050]
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x4058], rdi
imul eax, eax, 0xf4240
mov dword [rsp + 0x34], eax
lea rax, [rsp + 0x30]
mov dword [rsp + 0x4050], 1
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x20], rax
call r10
test eax, eax
je 0x18003325b
cmp eax, 0xffffffff
je 0x18003325b
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
jne 0x18003325b
lea rdx, [rsp + 0x4050]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x18003325b
cmp ebx, esi
jl 0x180033153
mov eax, ebx
mov rcx, qword [rsp + 0x8060]
xor rcx, rsp
call fcn.180041e80
add rsp, 0x8078
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
or eax, 0xffffffff
jmp 0x18003323b
Function at 0x180033ee0
Capabilities:
Create udp socket

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0xc30
mov rax, qword [0x180074808]
xor rax, rsp
mov qword [rsp + 0xc20], rax
mov ebp, ecx
mov rbx, r8
mov edi, edx
lea rcx, [rsp + 0x51]
xor edx, edx
mov r8d, 0x3ff
mov rsi, r9
mov byte [rsp + 0x50], 0
call fcn.18004a690
cmp ebp, 1
jne 0x180033f5f
mov edx, 0x400
mov qword [rsp + 0x28], rsi
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rbx
lea r8d, [rdx - 1]
test edi, edi
jne 0x180033f51
lea r9, str.__s__Resovling_domain_name:__s_Local.
call fcn.180043dc0
jmp 0x180033fc3
lea r9, str.__s__Resovling_domain_name:__s_Remote.
call fcn.180043dc0
jmp 0x180033fc3
cmp ebp, 2
jne 0x180033f8d
test edi, edi
jne 0x180033f71
lea r9, str.__s__Connecting_to__s:_d
jmp 0x180033f99
cmp edi, 1
jne 0x180033f7f
lea r9, str.__s__Connect_to__s:_d_failed
jmp 0x180033f99
cmp edi, 2
jne 0x180033fc3
lea r9, str.__s__Connected_to__s:_d
jmp 0x180033f99
cmp ebp, 3
jne 0x180033fc3
lea r9, str.__s__Connect_to:__s:_d_failed.___Proxy_Error__
movzx eax, word [rsp + 0xc70]
mov r8d, 0x3ff
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x30], eax
lea edx, [r8 + 1]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rbx
call fcn.180043dc0
cmp byte [rsp + 0x50], 0
je 0x1800340c2
cmp qword [0x1800a42c8], 0
je 0x1800340c2
cmp qword [0x1800a4318], 0
je 0x1800340c2
lea rcx, [rsp + 0x451]
xor edx, edx
mov r8d, 0x7cf
call fcn.18004a690
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x50]
lea rdx, [rsp + 0x50]
mov byte [rsp + 0x450], 0x11
repne scasb al, byte [rdi]
mov byte [rsp + 0x455], bpl
not rcx
dec rcx
movzx ebx, cx
lea rcx, [rsp + 0x456]
inc ebx
mov r8d, ebx
mov dword [rsp + 0x451], ebx
call fcn.180042380
mov edx, 1
mov esi, 2
lea r8d, [rdx + 5]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800340c2
lea rcx, [0x180067e70]
mov word [rsp + 0x40], si
call qword [sym.imp.WS2_32.dll_inet_addr]
movzx ecx, word [0x1800a1e3e]
mov dword [rsp + 0x44], eax
call qword [sym.imp.WS2_32.dll_htons]
lea r8d, [rsi + 0xe]
lea rdx, [rsp + 0x40]
mov rcx, rdi
mov word [rsp + 0x42], ax
call qword [0x1800a42c8]
mov rcx, rdi
cmp eax, 0xffffffff
je 0x1800340bc
lea r8d, [rbx + 6]
lea r9d, [rsi + 1]
lea rdx, [rsp + 0x450]
call fcn.180033110
mov rcx, rdi
call qword [0x1800a4318]
mov rcx, qword [rsp + 0xc20]
xor rcx, rsp
call fcn.180041e80
mov rbx, qword [rsp + 0xc50]
add rsp, 0xc30
pop rdi
pop rsi
pop rbp
ret
Function at 0x180036c00
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov edx, 1
mov rbx, rcx
lea ecx, [rdx + 1]
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 8], rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rbx + 8]
mov edi, eax
cmp rcx, 0xffffffffffffffff
jne 0x180036c4a
mov ecx, eax
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
mov dword [rsp + 0x30], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, edi
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rbx, qword [rsp + 0x38]
mov eax, 1
add rsp, 0x20
pop rdi
ret

Function at 0x180036de0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x30
mov rdi, rcx
lea rcx, [0x1800a44c8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r11, qword [0x1800a4938]
mov rcx, qword [0x1800a4930]
sub r11, rcx
sar r11, 3
test r11, r11
jne 0x180036e2b
lea rcx, [0x1800a44c8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or ebx, 0xffffffff
jmp 0x180036e3d
mov rcx, qword [rcx]
mov ebx, dword [rcx]
lea rcx, [0x1800a44c8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, ebx
call fcn.18000cbf0
cmp dword [0x1800a4c3c], 1
mov rbp, rax
jne 0x180036e63
or eax, 0xffffffff
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
lea rcx, [0x1800a4d70]
mov qword [rsp + 0x40], rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [0x1800a3d68], 0
lea rcx, [0x1800a4d70]
setne bl
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor esi, esi
test bl, bl
jne 0x180036ed0
lea rcx, [0x1800a4d70]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea r8, [0x180030a00]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
call fcn.180044078
lea rcx, [0x1800a4d70]
mov qword [0x1800a3d68], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp qword [rdi + 8], 0xffffffffffffffff
je 0x180036ede
xor eax, eax
jmp 0x180036f6d
mov rcx, rdi
call fcn.180036c00
test eax, eax
je 0x180036ef6
mov rcx, rdi
call fcn.180036c80
test eax, eax
jne 0x180036efb
or eax, 0xffffffff
jmp 0x180036f6d
cmp byte [rbp + 0x10c], sil
mov eax, 1
lea rcx, [rdi + 8]
cmovne esi, eax
mov qword [rsp + 0x48], r12
mov edx, esi
call fcn.1800350b0
test eax, eax
je 0x180036f45
lea r8, [rbp + 0x14c]
lea rdx, [rbp + 0x10c]
lea rcx, [rdi + 8]
call fcn.180035160
test eax, eax
je 0x180036f45
mov rcx, rdi
call fcn.1800368f0
test eax, eax
jne 0x180036f62
mov rcx, qword [rdi + 8]
cmp rcx, 0xffffffffffffffff
je 0x180036f5d
call qword [0x1800a4318]
mov qword [rdi + 8], 0xffffffffffffffff
or eax, 0xffffffff
jmp 0x180036f68
mov byte [rdi + 0x10], 1
xor eax, eax
mov r12, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1800391e0
Capabilities:
Read file on windows

Disassembly:
push rsi
push r12
sub rsp, 0x288
mov rax, qword [0x180074808]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r12, rcx
lea rax, str.ddd.cfg
lea r9, [0x1800a3d70]
lea rcx, [rsp + 0x60]
lea r8, str._s_s
mov edx, 0x104
mov qword [rsp + 0x20], rax
call fcn.180041ea0
lea rdx, [0x180064bb8]
lea rcx, [rsp + 0x60]
mov r8d, 0x40
call fcn.180043de4
mov rsi, rax
test rax, rax
jne 0x18003924f
xor eax, eax
jmp 0x180039318
mov rcx, rax
call fcn.18004481c
lea rdx, [rsp + 0x30]
mov ecx, eax
call fcn.18004416c
mov r11, qword [rsp + 0x50]
cmp r11, qword [0x1800a4360]
je 0x180039248
mov ecx, dword [rsi + 0x1c]
mov qword [rsp + 0x2b0], rbp
mov qword [0x1800a4360], r11
call fcn.1800466d8
movsxd rbp, eax
test eax, eax
je 0x180039303
lea ecx, [rbp + 1]
mov qword [rsp + 0x2a8], rbx
mov qword [rsp + 0x280], rdi
movsxd rbx, ecx
mov rcx, rbx
call fcn.180043698
mov r8, rbx
xor edx, edx
mov rcx, rax
mov rdi, rax
call fcn.18004a690
mov r9, rsi
mov r8d, 1
mov rdx, rbp
mov rcx, rdi
call fcn.180046ac0
mov r9d, pe_nt_image_headers64
mov r8, rdi
lea edx, [r9 + 1]
mov rcx, r12
mov byte [rbp + rdi], 0
call fcn.180042ac8
mov rcx, rdi
call fcn.180043658
mov rdi, qword [rsp + 0x280]
mov rbx, qword [rsp + 0x2a8]
mov rcx, rsi
call fcn.180043f40
mov rbp, qword [rsp + 0x2b0]
mov eax, 1
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.180041e80
add rsp, 0x288
pop r12
pop rsi
ret
Function at 0x180039410
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x2b0
mov rax, qword [0x180074808]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov rdi, rcx
lea rcx, [0x1800a4e08]
movzx r13d, r9w
mov r12, r8
mov r14d, edx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
cmp qword [0x1800a4368], rbx
jne 0x180039483
lea r8, [0x180039ad0]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
call fcn.180044078
mov qword [0x1800a4368], rax
lea rcx, [0x1800a4e08]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebp, dword [rsp + 0x308]
mov esi, dword [rsp + 0x310]
test ebp, ebp
cmovs ebp, ebx
test esi, esi
cmovs esi, ebx
cmp qword [0x1800a4368], rbx
je 0x180039651
lea rcx, [0x1800a4de0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r11, qword [0x1800a4dc8]
mov rax, qword [r11 + 8]
mov rcx, r11
cmp byte [rax + 0x141], bl
jne 0x1800394f2
cmp qword [rax + 0x18], rdi
jae 0x1800394e4
mov rax, qword [rax + 0x10]
jmp 0x1800394ea
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x141], bl
je 0x1800394d8
mov qword [rsp + 0x30], rcx
cmp rcx, r11
je 0x180039509
cmp rdi, qword [rcx + 0x18]
jb 0x180039509
lea rbx, [rsp + 0x30]
jmp 0x180039513
mov qword [rsp + 0x38], r11
lea rbx, [rsp + 0x38]
mov rbx, qword [rbx]
cmp rbx, r11
je 0x180039591
test ebp, ebp
jle 0x180039525
add dword [rbx + 0x134], ebp
test esi, esi
jle 0x18003952f
add dword [rbx + 0x138], esi
test r12, r12
je 0x180039551
cmp byte [r12], 0
je 0x180039551
mov r9d, 0x103
lea rcx, [rbx + 0x29]
mov r8, r12
lea edx, [r9 + 1]
call fcn.180042ac8
test r13w, r13w
je 0x18003955f
mov word [rbx + 0x12e], r13w
cmp byte [rbx + 0x130], 2
je 0x180039644
movzx eax, byte [rsp + 0x300]
movzx edx, byte [rbx + 0x28]
cmp r14b, byte [rbx + 0x28]
mov byte [rbx + 0x130], al
movzx eax, r14b
cmovne edx, eax
mov byte [rbx + 0x28], dl
jmp 0x180039644
lea rcx, [0x1800a4de0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [rsp + 0x180]
xor edx, edx
mov r8d, 0x120
call fcn.18004a690
mov r9d, 0x103
lea rcx, [rsp + 0x189]
lea edx, [r9 + 1]
mov r8, r12
mov qword [rsp + 0x180], rdi
call fcn.180042ac8
movzx eax, byte [rsp + 0x300]
lea rcx, [0x1800a4de0]
mov byte [rsp + 0x290], al
mov word [rsp + 0x28e], r13w
mov dword [rsp + 0x294], ebp
mov dword [rsp + 0x298], esi
mov byte [rsp + 0x188], r14b
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x180]
mov r8d, 0x120
mov qword [rsp + 0x50], rdi
call fcn.180042380
lea rcx, [rsp + 0x50]
call fcn.18003a930
lea rcx, [rsp + 0x38]
mov rdx, rax
call fcn.18003a520
lea rcx, [0x1800a4de0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.180041e80
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x180039cb0
Capabilities:
Terminate thread

Disassembly:
sub rsp, 0x28
lea rcx, [0x1800a4e08]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [0x1800a4368]
test rcx, rcx
je 0x180039cf0
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x1800a4368]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1800a4368], 0
lea rcx, [0x1800a4e08]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1800a4de0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.180039d30
lea rcx, [0x1800a4de0]
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x180044788
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
test rcx, rcx
jne 0x1800447b2
call fcn.180046e8c
and dword [rax], 0
call fcn.180046e6c
mov ebx, socket
mov dword [rax], ebx
call fcn.18004a658
mov eax, ebx
jmp 0x180044802
test edx, 0xfffffff9
jne 0x180044795
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1800447db
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.180046eac
call fcn.180046e6c
mov eax, dword [rax]
jmp 0x180044802
test al, 0x10
jne 0x180044800
test al, 1
je 0x180044800
test bl, 2
je 0x180044800
call fcn.180046e8c
mov dword [rax], 5
call fcn.180046e6c
mov dword [rax], ntohs
jmp 0x1800447d2
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x1800496ff
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x180074808]
jne 0x180041e9a
rol rcx, 0x10
test cx, 0xffff
jne 0x180041e96
repz ret
ror rcx, 0x10
jmp 0x180049658
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1800a2a90]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1800a2b88]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1800496dd
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1800a2a90]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1800496ff
mov rax, qword [rsp + 0x88]
mov qword [0x1800a2b88], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1800a2b28], rax
mov rax, qword [0x1800a2b88]
mov qword [0x1800a2a00], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1800a2b10], rax
mov dword [0x1800a29f0], 0xc0000409
mov dword [0x1800a29f4], 1
mov rax, qword [0x180074808]
mov qword [rsp + 0x68], rax
mov rax, qword [0x180074810]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1800a2a88], eax
mov ecx, 1
call fcn.180053f38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180061580]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1800a2a88], 0
jne 0x180049786
mov ecx, 1
call fcn.180053f38
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret