joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004f100
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
push rdi
sub rsp, 0xc8
mov rax, qword [0x140177698]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdi, qword [rsp + 0x108]
mov r10, r8
movzx eax, word [rsp + 0x110]
mov r11, rdx
mov rdx, qword [rsp + 0x100]
xor ebx, ebx
sub r10d, r11d
mov r8d, dword [rdi]
cmp r8d, 4
jne 0x14004f183
mov word [rsp + 0x32], ax
mov r8d, 2
mov eax, dword [rdi + 4]
mov word [rsp + 0x30], r8w
mov dword [rsp + 0x34], eax
test r9, r9
je 0x14004f16e
mov rcx, qword [r9 + 0xa0]
jmp 0x14004f178
mov rax, qword [rcx]
mov rcx, qword [rax + 0x19c8]
test rdx, rdx
je 0x14004f1c5
mov rcx, qword [rdx + 0x18]
jmp 0x14004f1c5
cmp r8d, 6
jne 0x14004f296
mov word [rsp + 0x32], ax
mov edx, reloc.WS2_32.dll_socket
mov word [rsp + 0x30], dx
mov dword [rsp + 0x34], ebx
mov dword [rsp + 0x48], ebx
movups xmm0, xmmword [rdi + 4]
movups xmmword [rsp + 0x38], xmm0
test r9, r9
je 0x14004f1bb
mov rcx, qword [r9 + 0xa0]
jmp 0x14004f1c5
mov rax, qword [rcx]
mov rcx, qword [rax + 0x3d00]
cmp rcx, 0xffffffffffffffff
je 0x14004f222
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8d, r10d
mov rdx, r11
call qword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jg 0x14004f222
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14004f20b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jne 0x14004f210
jmp 0x14004f29b
mov ebx, 0xffffe5a5
mov eax, dword [rdi]
cmp eax, 4
jne 0x14004f226
mov eax, dword [0x14014fad4]
cmp dword [rdi + 4], eax
jne 0x14004f25b
mov eax, ebx
jmp 0x14004f29b
cmp eax, 6
jne 0x14004f25b
mov eax, dword [0x14014faec]
cmp dword [rdi + 4], eax
jne 0x14004f25b
mov eax, dword [0x14014faf0]
cmp dword [rdi + 8], eax
jne 0x14004f25b
mov eax, dword [0x14014faf4]
cmp dword [rdi + 0xc], eax
jne 0x14004f25b
mov eax, dword [0x14014faf8]
cmp dword [rdi + 0x10], eax
jne 0x14004f25b
mov eax, ebx
jmp 0x14004f29b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2750
je 0x14004f28f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2742
je 0x14004f28f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2751
je 0x14004f28f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2743
jne 0x14004f222
mov eax, 0xfffeffe6
jmp 0x14004f29b
mov eax, 0xfffefffc
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14006a270
add rsp, 0xc8
pop rdi
pop rbx
ret
Function at 0x14004fa60
Capabilities:
Connect socket

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140177698]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp dword [rdx], 4
mov rbx, rcx
je 0x14004faa3
lea rdx, str.ERROR:_mDNSPlatformTCPConnect___attempt_to_connect_to_an_IPv6_address:_operation_not_supported
xor ecx, ecx
call fcn.140051100
mov eax, 0xfffeffff
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14006a270
add rsp, 0x50
pop rbx
ret
mov rax, qword [rsp + 0x88]
mov qword [rcx + 0x18], rax
mov rax, qword [rsp + 0x90]
mov qword [rcx + 0x20], rax
mov eax, 2
mov rcx, qword [rcx + 8]
mov word [rsp + 0x20], ax
mov eax, dword [rdx + 4]
lea rdx, [rsp + 0x20]
mov word [rsp + 0x22], r8w
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rdi
xor edi, edi
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x24], eax
lea r8d, [rdi + 0x10]
call qword [sym.imp.WS2_32.dll_connect]
mov esi, eax
test eax, eax
je 0x14004fb10
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x14004fb10
mov eax, 0xfffeff04
jmp 0x14004fb46
mov rcx, qword [rbx + 8]
lea r8, [0x14004d290]
test esi, esi
mov r9, rbx
mov edx, gethostbyname
sete dil
mov dword [rbx + 0x10], edi
call fcn.140050df0
test eax, eax
jne 0x14004fb46
cmp dword [rbx + 0x10], 0
mov eax, 0xfffeff05
mov ecx, 0xfffeff03
cmovne eax, ecx
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14006a270
add rsp, 0x50
pop rbx
ret
Function at 0x14004fb80
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140177698]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor ebp, ebp
mov dword [rsp + 0x20], 1
mov rdi, r8
mov rsi, rcx
test edx, edx
jne 0x14004fd32
lea ecx, [rbp + 0x38]
mov qword [rsp + 0x50], rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x14004fd03
mov qword [rax], rbp
xor ecx, ecx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rbp
mov qword [rax + 0x28], rbp
mov qword [rax + 0x30], rsi
mov esi, 2
mov qword [rax + 8], 0xffffffffffffffff
mov word [rsp + 0x28], si
mov qword [rsp + 0x30], rbp
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x2c], eax
xor r8d, r8d
movzx eax, word [rdi]
lea edx, [rbp + 1]
mov ecx, esi
mov word [rsp + 0x2a], ax
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x14004fc46
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x14004fcdf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x14004fcdf
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x28]
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x14004fc73
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x14004fcdf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x14004fcdf
mov rcx, qword [rbx + 8]
lea r8, [rsp + 0x20]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x14004fc9f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x14004fcdf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x14004fcdf
xor eax, eax
mov dword [rsp + 0x24], reloc.WS2_32.dll_recv
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x24]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x28]
mov rcx, qword [rbx + 8]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14004fd25
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x14004fcdf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x14004fd25
mov rcx, qword [rbx + 8]
cmp rcx, 0xffffffffffffffff
je 0x14004fcf7
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbx + 8], 0xffffffffffffffff
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, rbp
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14006a270
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
movzx eax, word [rsp + 0x2a]
mov word [rdi], ax
mov rax, rbx
jmp 0x14004fd03
mov rax, rbp
jmp 0x14004fd08
Function at 0x140050040
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [rcx + 8]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
mov ebx, eax
test eax, eax
jns 0x140050084
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x140050082
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x14005007a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x140050082
mov eax, ebx
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1400500f0
Capabilities:
Create thread

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov rdx, rcx
lea rcx, [0x1401aff70]
call fcn.140067580
inc dword [0x1401aff88]
cmp dword [0x1401affb4], 0x40
jae 0x140050154
lea rcx, [0x1401aff90]
mov qword [rsi + 0x20], rcx
lea r8, [0x1401aff60]
mov edx, dword [0x1401affb4]
mov qword [r8 + rdx*8 + 0x58], rsi
mov edx, dword [0x1401affb4]
mov rcx, qword [rsi + 8]
mov qword [r8 + rdx*8 + 0x258], rcx
inc dword [0x1401affb4]
xor eax, eax
add rsp, 0x30
pop rsi
ret
mov rdx, qword [0x1401b03c8]
test rdx, rdx
je 0x140050172
cmp dword [rdx + 0x24], 0x40
jb 0x1400501a4
mov rdx, qword [rdx + 0x430]
test rdx, rdx
jne 0x140050160
mov qword [rsp + 0x40], rbx
mov ecx, 0x438
mov qword [rsp + 0x48], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400501ca
mov rbx, qword [rsp + 0x40]
mov eax, 0xfffefffd
mov rdi, qword [rsp + 0x48]
add rsp, 0x30
pop rsi
ret
mov qword [rsi + 0x20], rdx
mov eax, dword [rdx + 0x24]
mov qword [rdx + rax*8 + 0x28], rsi
mov rax, qword [rsi + 8]
mov ecx, dword [rdx + 0x24]
mov qword [rdx + rcx*8 + 0x228], rax
inc dword [rdx + 0x24]
xor eax, eax
add rsp, 0x30
pop rsi
ret
xor edx, edx
mov r8d, 0x438
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rdi + 0x10], rax
test rax, rax
jne 0x1400501fd
mov ebx, 0xfffefffd
jmp 0x1400502d4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rdi + 0x18], rax
test rax, rax
jne 0x140050220
mov ebx, 0xfffefffd
jmp 0x1400502d4
mov rcx, rdi
call fcn.140050960
mov ebx, eax
test eax, eax
jne 0x1400502d4
lea rax, [rdi + 8]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea r8, [0x1400509e0]
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
jne 0x140050271
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400502cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jne 0x1400502d4
mov rdx, rdi
lea rcx, [0x1401b03c8]
call fcn.140067580
mov ecx, dword [0x1401b05e0]
lea r8, [0x1401aff60]
mov rax, qword [rdi + 0x18]
mov qword [r8 + rcx*8 + 0x480], rax
inc dword [0x1401b05e0]
mov qword [rsi + 0x20], rdi
mov eax, dword [rdi + 0x24]
mov qword [rdi + rax*8 + 0x28], rsi
mov ecx, dword [rdi + 0x24]
mov rax, qword [rsi + 8]
mov qword [rdi + rcx*8 + 0x228], rax
mov eax, ebx
inc dword [rdi + 0x24]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x30
pop rsi
ret
mov ebx, 0xffffe5d4
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x1400502eb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x10], 0
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x140050302
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x18], 0
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rsi
ret
Function at 0x140050320
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rdx, rcx
lea rcx, [0x1401b03c8]
call fcn.1400675d0
mov edx, dword [0x1401b05e0]
xor eax, eax
test edx, edx
je 0x140050396
mov r8, qword [rbx + 0x18]
lea r9, [0x1401aff60]
lea ecx, [rax + 1]
cmp qword [r9 + rax*8 + 0x480], r8
je 0x140050368
mov eax, ecx
cmp ecx, edx
jb 0x140050353
jmp 0x140050396
movsxd rax, ecx
mov r8, rdx
lea rdx, [r9 + 0x480]
sub r8, rax
add r9, 0x480
shl r8, 3
lea rdx, [rdx + rax*8]
lea eax, [rcx - 1]
movsxd rcx, eax
lea rcx, [r9 + rcx*8]
call sub.VCRUNTIME140.dll_memmove
mov dword [rbx + 0x20], 1
dec dword [0x1401b05e0]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov edi, 0xffffe5d4
test eax, eax
jne 0x1400503f9
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400503cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400503f9
jmp 0x1400503ce
mov eax, edi
mov dword [rsp + 0x28], eax
lea r8, str.PollRemoveWorker
lea rax, str.SetEvent__
mov r9d, 0x1f0
lea rdx, str._s:_d____s_failed:__d_n
mov qword [rsp + 0x20], rax
xor ecx, ecx
call fcn.140051100
mov rcx, qword [rbx]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x140050451
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140050422
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140050458
jmp 0x140050424
mov eax, edi
mov dword [rsp + 0x28], eax
lea r8, str.PollRemoveWorker
lea rax, str.WaitForSingleObject__
mov r9d, 0x1f4
lea rdx, str._s:_d____s_failed:__d_n
mov qword [rsp + 0x20], rax
xor ecx, ecx
call fcn.140051100
jmp 0x140050458
cmp eax, 0x102
jne 0x1400504a8
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x1400504a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14005047d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
je 0x1400504a8
lea rax, str.TerminateThread__
mov dword [rsp + 0x28], edi
mov r9d, 0x1fa
mov qword [rsp + 0x20], rax
lea r8, str.PollRemoveWorker
xor ecx, ecx
lea rdx, str._s:_d____s_failed:__d_n
call fcn.140051100
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x10]
mov qword [rbx], 0
test rcx, rcx
je 0x1400504cf
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], 0
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400504e6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x18], 0
mov rcx, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
Function at 0x140057ec0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
call fcn.14004efa0
mov r9d, dword [rbx + 0x30]
mov eax, dword [rbx + 0x34]
cmp r9d, eax
je 0x140057efa
mov r8, rdi
mov dword [rsp + 0x20], eax
lea rdx, str._s:_mDNS_Lock:_Locking_failure__mDNS_busy___ld____mDNS_reentrancy___ld_
xor ecx, ecx
call fcn.140051100
mov r9d, dword [rbx + 0x30]
mov eax, dword [rbx + 0x240]
test r9d, r9d
jne 0x140057f32
test eax, eax
je 0x140057f47
call sub.KERNEL32.dll_GetTickCount
add eax, dword [rbx + 0x23c]
lea rdx, str._s:_mDNS_Lock:_m__timenow_already_set___ld__ld_
mov r9d, dword [rbx + 0x240]
mov r8, rdi
xor ecx, ecx
mov dword [rsp + 0x20], eax
call fcn.140051100
jmp 0x140057f47
test eax, eax
jne 0x140057f65
mov r8, rdi
lea rdx, str._s:_mDNS_Lock:_m__mDNS_busy_is__ld_but_m__timenow_not_set
xor ecx, ecx
call fcn.140051100
call sub.KERNEL32.dll_GetTickCount
add eax, dword [rbx + 0x23c]
mov dword [rbx + 0x240], eax
jne 0x140057f65
mov eax, 1
mov dword [rbx + 0x240], eax
mov r9d, dword [rbx + 0x244]
sub r9d, eax
test r9d, r9d
jle 0x140057fa2
add dword [rbx + 0x23c], r9d
lea rdx, str._s:_mDNSPlatformRawTime_went_backwards_by__ld_ticks__setting_correction_factor_to__ld
mov eax, dword [rbx + 0x23c]
mov r8, rdi
xor ecx, ecx
mov dword [rsp + 0x20], eax
call fcn.140051100
mov eax, dword [rbx + 0x244]
mov dword [rbx + 0x240], eax
inc dword [rbx + 0x30]
mov dword [rbx + 0x244], eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140066f50
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
lea rax, [rsp + 0x50]
mov rsi, rcx
mov qword [rcx], rbp
lea r9, [0x1401566e8]
mov qword [rsp + 0x50], rbp
xor edx, edx
mov qword [rsp + 0x58], rbp
lea r8d, [rbp + 1]
mov qword [rsp + 0x20], rax
lea rcx, [0x1401566d8]
mov edi, ebp
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test eax, eax
js 0x140066fef
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140066ff4
mov rax, qword [rcx]
lea rdx, [rsp + 0x58]
call qword [rax + 0x38]
mov ebx, eax
test eax, eax
js 0x140066fef
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140067007
nop
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x38]
mov ebx, eax
test eax, eax
je 0x140066fea
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, edi
inc edi
cmp eax, 0x1e
jge 0x140066fea
mov rcx, qword [rsp + 0x58]
jmp 0x140066fc0
test ebx, ebx
cmovns ebx, ebp
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x14006700c
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140067017
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x140067630
Capabilities:
Authenticate hmac
Encode data using xor
Hash data with md5

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xa0
mov rax, qword [0x140177698]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov edi, r8d
mov rsi, rdx
mov r14, rcx
cmp r8d, 0x40
jbe 0x1400676b3
xor eax, eax
mov dword [rsp + 0x20], 0x67452301
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x24], 0xefcdab89
mov dword [rsp + 0x28], 0x98badcfe
mov qword [rsp + 0x2c], 0x10325476
call fcn.140068090
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x80]
call fcn.140067f10
lea rsi, [rsp + 0x80]
mov edi, reloc.WS2_32.dll_recv
mov edx, 0x40
lea rcx, [r14 + 0x17e4]
call fcn.14004f010
lea rbp, [r14 + 0x1824]
mov edx, 0x40
mov rcx, rbp
call fcn.14004f010
mov r8d, edi
lea rcx, [r14 + 0x17e4]
mov rdx, rsi
call fcn.14004efe0
mov r8d, edi
mov rdx, rsi
mov rcx, rbp
call fcn.14004efe0
lea rax, [r14 + 0x1825]
mov ecx, 2
nop dword [rax]
nop dword [rax + rax]
xor byte [rbp - 0x40], 0x36
lea rax, [rax + 0x20]
xor byte [rbp], 0x5c
lea rbp, [rbp + 0x20]
xor byte [rax - 0x60], 0x36
xor byte [rax - 0x20], 0x5c
xor byte [rax - 0x5f], 0x36
xor byte [rax - 0x1f], 0x5c
xor byte [rax - 0x5e], 0x36
xor byte [rax - 0x1e], 0x5c
xor byte [rax - 0x5d], 0x36
xor byte [rax - 0x1d], 0x5c
xor byte [rax - 0x5c], 0x36
xor byte [rax - 0x1c], 0x5c
xor byte [rax - 0x5b], 0x36
xor byte [rax - 0x1b], 0x5c
xor byte [rax - 0x5a], 0x36
xor byte [rax - 0x1a], 0x5c
xor byte [rax - 0x59], 0x36
xor byte [rax - 0x19], 0x5c
xor byte [rax - 0x58], 0x36
xor byte [rax - 0x18], 0x5c
xor byte [rax - 0x57], 0x36
xor byte [rax - 0x17], 0x5c
xor byte [rax - 0x56], 0x36
xor byte [rax - 0x16], 0x5c
xor byte [rax - 0x55], 0x36
xor byte [rax - 0x15], 0x5c
xor byte [rax - 0x54], 0x36
xor byte [rax - 0x14], 0x5c
xor byte [rax - 0x53], 0x36
xor byte [rax - 0x13], 0x5c
xor byte [rax - 0x52], 0x36
xor byte [rax - 0x12], 0x5c
xor byte [rax - 0x51], 0x36
xor byte [rax - 0x11], 0x5c
xor byte [rax - 0x50], 0x36
xor byte [rax - 0x10], 0x5c
xor byte [rax - 0x4f], 0x36
xor byte [rax - 0xf], 0x5c
xor byte [rax - 0x4e], 0x36
xor byte [rax - 0xe], 0x5c
xor byte [rax - 0x4d], 0x36
xor byte [rax - 0xd], 0x5c
xor byte [rax - 0x4c], 0x36
xor byte [rax - 0xc], 0x5c
xor byte [rax - 0x4b], 0x36
xor byte [rax - 0xb], 0x5c
xor byte [rax - 0x4a], 0x36
xor byte [rax - 0xa], 0x5c
xor byte [rax - 0x49], 0x36
xor byte [rax - 9], 0x5c
xor byte [rax - 0x48], 0x36
xor byte [rax - 8], 0x5c
xor byte [rax - 0x47], 0x36
xor byte [rax - 7], 0x5c
xor byte [rax - 0x46], 0x36
xor byte [rax - 6], 0x5c
xor byte [rax - 0x45], 0x36
xor byte [rax - 5], 0x5c
xor byte [rax - 0x44], 0x36
xor byte [rax - 4], 0x5c
xor byte [rax - 0x43], 0x36
xor byte [rax - 3], 0x5c
xor byte [rax - 0x42], 0x36
xor byte [rax - 2], 0x5c
sub rcx, 1
jne 0x140067710
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14006a270
add rsp, 0xa0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14006b210
Capabilities:
Accept command line arguments

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x70
xor ebx, ebx
mov dword [rsp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x50], rax
mov rdi, rax
test rax, rax
jne 0x14006b24d
lea rax, [rbx - 1]
add rsp, 0x70
pop r15
pop rdi
pop rbx
ret
mov eax, dword [rsp + 0x40]
mov r15, 0xffffffffffffffff
inc eax
mov qword [rsp + 0x98], rsi
movsxd rcx, eax
mov eax, 8
mul rcx
mov qword [rsp + 0x60], r14
cmovo rax, r15
mov rcx, rax
call fcn.14006a678
mov r14, rax
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14006b34c
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0xa0], r12
mov r12, r14
mov qword [rsp + 0x68], r13
mov r13, rdi
sub r13, r14
mov r14d, ebx
nop dword [rax]
nop word [rax + rax]
mov rbp, qword [r12 + r13]
mov r9d, r15d
mov qword [rsp + 0x38], rbx
mov r8, rbp
mov qword [rsp + 0x30], rbx
xor edx, edx
mov dword [rsp + 0x28], ebx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
mov rcx, rdi
call fcn.14006a678
mov qword [rsp + 0x38], rbx
mov r9d, r15d
mov qword [rsp + 0x30], rbx
mov r8, rbp
mov dword [rsp + 0x28], edi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [r12], rsi
lea r12, [r12 + 8]
mov eax, dword [rsp + 0x40]
inc r14d
cmp r14d, eax
jne 0x14006b2c0
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x90]
cdqe
mov rcx, rdi
mov qword [r14 + rax*8], rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rsp + 0x40]
mov rdx, r14
call fcn.140012560
mov esi, eax
cmp dword [rsp + 0x40], ebx
je 0x14006b38b
mov rdi, r14
mov rcx, qword [rdi]
test rcx, rcx
je 0x14006b38b
call fcn.140069bdc
inc ebx
add rdi, 8
cmp ebx, dword [rsp + 0x40]
jne 0x14006b372
mov rcx, r14
call fcn.140069bdc
mov r14, qword [rsp + 0x60]
mov eax, esi
mov rsi, qword [rsp + 0x98]
add rsp, 0x70
pop r15
pop rdi
pop rbx
ret
Function at 0x408880
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
call sub.kernel32.dll_SetCurrentDirectoryW
test eax, eax
jne 0x408892
call fcn.00408840
add rsp, 0x28
ret

Function at 0x408b80
Capabilities:
Accept command line arguments

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x38], 0
nop
xor rax, rax
mov dword [rbp + 0x2c], eax
call sub.kernel32.dll_GetCommandLineW
mov rcx, rax
lea rdx, [rbp + 0x38]
call fcn.00408a90
mov rcx, rax
lea rdx, [rbp + 0x38]
call fcn.00408a90
cmp qword [rbp + 0x38], 0
je 0x408bc6
mov ecx, dword [rbp + 0x2c]
add ecx, 1
mov dword [rbp + 0x2c], ecx
jmp 0x408ba8
nop
nop
lea rcx, [rbp + 0x38]
call fcn.0040e810
mov eax, dword [rbp + 0x2c]
lea rsp, [rbp + 0x40]
pop rbp
ret
Function at 0x40c3d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x30
mov qword [rsp + 0x28], rcx
mov ebx, edx
mov rax, qword [rsp + 0x28]
mov r13d, dword [rax + 0x18]
mov rcx, qword [rsp + 0x28]
call fcn.0040c970
mov esi, eax
test sil, sil
jne 0x40c592
test ebx, ebx
je 0x40c592
xor rdi, rdi
test r13d, r13d
jle 0x40c4af
call sub.kernel32.dll_GetTickCount
mov r14d, eax
test r13d, r13d
jle 0x40c48e
cmp ebx, 0xffffffff
je 0x40c43b
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x40c43b
xor rsi, rsi
jmp 0x40c592
mov rax, qword [rsp + 0x28]
cmp dword [rax], 1
jg 0x40c48e
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0
jne 0x40c480
xor eax, eax
mov ecx, 1
mov rdx, qword [rsp + 0x28]
lock cmpxchg dword [rdx], ecx
test eax, eax
jne 0x40c480
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp 0x40c592
call fcn.0040cb00
sub r13d, 1
test r13d, r13d
jg 0x40c422
nop
cmp ebx, 0xffffffff
je 0x40c4af
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jb 0x40c4aa
xor rsi, rsi
jmp 0x40c592
sub eax, r14d
sub ebx, eax
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x40c3eb
mov edx, ecx
add edx, 2
mov eax, ecx
mov r8, qword [rsp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40c4af
nop
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov rcx, qword [rsp + 0x28]
call fcn.0040c640
xor rcx, rcx
mov rdx, rax
mov r8d, ebx
mov rax, qword [0x007879a0]
call qword [rax + 0x20]
test eax, eax
sete sil
cmp ebx, 0xffffffff
je 0x40c51c
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jae 0x40c519
sub eax, r14d
sub ebx, eax
jmp 0x40c51c
xor rbx, rbx
test sil, sil
je 0x40c550
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax]
mov eax, ecx
test eax, 1
jne 0x40c54d
mov edx, ecx
sub edx, 2
or edx, 1
mov eax, ecx
mov r8, qword [rsp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40c521
mov dil, 1
nop
jmp 0x40c56f
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax]
mov edx, ecx
sub edx, 2
mov eax, ecx
mov r8, qword [rsp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40c550
mov dil, 1
test dil, dil
je 0x40c4d4
nop
test sil, sil
je 0x40c592
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov eax, esi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop r13
pop r14
ret