joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400eedea
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1401f5af0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1401f5470
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401f5b2f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140383020]
jmp 0x1401f5b39
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x1400ef164
Capabilities:
Query environment variable

Disassembly:
jmp 0x1402a4210
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1402a4040
lea rcx, [rsp + 0x40]
call fcn.1402a41c0
movzx eax, al
test eax, eax
jne 0x1402a4258
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.1402a4070
mov rax, qword [rsp + 0x70]
jmp 0x1402a4429
lea rcx, [rsp + 0x40]
call fcn.1402a4190
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1402a4130
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.1402a4190
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.1400f0a64
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1402a42fe
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.1402a4070
mov rax, qword [rsp + 0x80]
jmp 0x1402a4429
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1400eeba1
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400ee895
lea rcx, [rsp + 0x48]
call fcn.1400edfd5
movzx eax, al
test eax, eax
jne 0x1402a4365
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400ec2c5
lea rcx, [rsp + 0x40]
call fcn.1402a4070
mov rax, qword [rsp + 0x88]
jmp 0x1402a4429
lea rcx, [rsp + 0x48]
call fcn.1400ef81c
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.1402a4190
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.1400f0a64
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1402a43fb
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400ec2c5
lea rcx, [rsp + 0x40]
call fcn.1402a4070
mov rax, qword [rsp + 0xa0]
jmp 0x1402a4429
lea rcx, [rsp + 0x48]
call fcn.1400ee822
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400ec2c5
lea rcx, [rsp + 0x40]
call fcn.1402a4070
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x1400ef182
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1401f5a20
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1401f53f0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401f5a61
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140383020]
jmp 0x1401f5a67
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x1400ef27c
Capabilities:
Get geographical location

Disassembly:
jmp 0x140296710
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.140295640
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140296777
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x140383030]
jmp 0x140296799
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400edf08
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x1400ef29a
Capabilities:
Terminate process

Disassembly:
jmp 0x1401d1730
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400ef5d3
Capabilities:
Query environment variable

Disassembly:
jmp 0x14012bb60
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x468
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0xae
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x488]
mov rax, qword [0x140359238]
xor rax, rbp
mov qword [rbp + 0x428], rax
lea rcx, [0x140381218]
call fcn.1400f28c8
cmp qword [rbp + 0x450], 0
jne 0x14012bbc4
xor eax, eax
jmp 0x14012bc54
mov dword [rbp + 0x24], 0
mov qword [rbp + 0x48], 0
lea r8, [rbp + 0x48]
lea rdx, [0x1402e61c0]
mov rcx, qword [rbp + 0x450]
call fcn.1400eed59
mov qword [rbp + 8], rax
lea r8, [rbp + 0x48]
lea rdx, [0x1402e61c0]
xor ecx, ecx
call fcn.1400eed59
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
je 0x14012bc17
mov rcx, qword [rbp + 0x68]
call fcn.1400f1acc
mov dword [rbp + 0x24], eax
mov r8d, 0x104
lea rdx, [rbp + 0x90]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x20], 1
mov r9, qword [rbp + 0x460]
mov r8, qword [rbp + 0x458]
mov edx, dword [rbp + 0x24]
lea rcx, [rbp + 0x90]
call qword [sym.imp.SHELL32.dll_ExtractIconExW]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1402e3c90]
call fcn.1400f1356
mov rax, rdi
mov rcx, qword [rbp + 0x428]
xor rcx, rbp
call fcn.1400eea70
lea rsp, [rbp + 0x438]
pop rdi
pop rbp
ret
Function at 0x1400ef781
Capabilities:
Print debug messages

Disassembly:
jmp 0x1402b28e0
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x140359238]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x1402b2906
jmp 0x1402b2983
mov rcx, qword [rbp + 0x30]
call fcn.1400ee615
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x1402b291f
jmp 0x1402b2983
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x1402b293c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400ec5ae
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.1400ecef5
test eax, eax
jne 0x1402b2983
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400eea70
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x1400ef795
Capabilities:
Set registry value

Disassembly:
jmp 0x140160780
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x30]
lea rcx, [0x1403814f6]
call fcn.1400f28c8
mov rax, qword [rbp + 0x110]
cmp qword [rax], 0
jne 0x1401607fa
mov eax, dword [0x1403590c0]
inc eax
lea rcx, str.m_hKey___0
mov qword [rsp + 0x28], rcx
lea rcx, [0x1402def88]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov r8d, eax
lea rdx, [0x1402df980]
mov ecx, 2
call fcn.1400ebdbb
cmp eax, 1
jne 0x1401607fa
int3
xor eax, eax
test eax, eax
jne 0x1401607ae
cmp qword [rbp + 0x120], 0
je 0x140160816
mov dword [rbp + 0xd4], 1
jmp 0x140160820
mov dword [rbp + 0xd4], 0
mov eax, dword [rbp + 0xd4]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jne 0x14016086f
mov eax, dword [0x1403590c0]
add eax, 2
lea rcx, str.__atl_condVal
mov qword [rsp + 0x28], rcx
lea rcx, [0x1402def88]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov r8d, eax
lea rdx, [0x1402df980]
mov ecx, 2
call fcn.1400ebdbb
cmp eax, 1
jne 0x14016086f
int3
cmp dword [rbp + 4], 0
jne 0x14016087f
mov eax, recv
jmp 0x14016094f
xor eax, eax
test eax, eax
jne 0x140160800
cmp dword [rbp + 0x128], 1
je 0x1401608db
cmp dword [rbp + 0x128], 2
je 0x1401608db
mov eax, dword [0x1403590c0]
add eax, 3
lea rcx, str._dwType____1ul______dwType____2ul___
mov qword [rsp + 0x28], rcx
lea rcx, [0x1402def88]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov r8d, eax
lea rdx, [0x1402df980]
mov ecx, 2
call fcn.1400ebdbb
cmp eax, 1
jne 0x1401608db
int3
mov rax, qword [rbp + 0x120]
mov qword [rbp + 0xd8], rax
mov qword [rbp + 0xe0], 0xffffffffffffffff
inc qword [rbp + 0xe0]
mov rax, qword [rbp + 0xd8]
mov rcx, qword [rbp + 0xe0]
cmp word [rax + rcx*2], 0
jne 0x1401608f4
mov rax, qword [rbp + 0xe0]
inc eax
mov eax, eax
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x120]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp + 0x128]
xor r8d, r8d
mov rdx, qword [rbp + 0x118]
mov rax, qword [rbp + 0x110]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rsp, [rbp + 0xf8]
pop rdi
pop rbp
ret
Function at 0x1400efd94
Capabilities:
Set environment variable

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

Function at 0x1400f021c
Capabilities:
Parse pe header

Disassembly:
jmp 0x1401d2cc0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1401d2ce0
xor al, al
jmp 0x1401d2d61
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1401d2cf3
xor al, al
jmp 0x1401d2d61
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1401d2d1d
xor al, al
jmp 0x1401d2d61
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1401d2d31
xor al, al
jmp 0x1401d2d61
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1401d2d43
xor al, al
jmp 0x1401d2d61
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1401d2d5f
xor al, al
jmp 0x1401d2d61
mov al, 1
add rsp, 0x38
ret
Function at 0x1400f0e6a
Capabilities:
Terminate process

Disassembly:
jmp 0x1401f6ac0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1401f6aee
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.1400f1f7c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400f18e7
Capabilities:
Delete registry key

Disassembly:
jmp 0x14015d520
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x138
lea rbp, [rsp + 0x30]
lea rcx, [0x1403814f2]
call fcn.1400f28c8
mov rax, qword [rbp + 0x120]
cmp qword [rax], 0
je 0x14015d60f
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x14015d5b2
mov eax, dword [0x1403590a4]
add eax, 4
lea rcx, str.hAdvAPI32___0
mov qword [rsp + 0x28], rcx
lea rcx, [0x1402def88]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov r8d, eax
lea rdx, str.C:Program_Files__x86_Microsoft_Visual_Studio2019CommunityVCToolsMSVC14.29.30133_atlmfcinclude_atltransactionmanager.h
mov ecx, 2
call fcn.1400ebdbb
cmp eax, 1
jne 0x14015d5b2
int3
cmp qword [rbp + 8], 0
jne 0x14015d5c0
mov eax, 1
jmp 0x14015d637
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x14015d60d
mov qword [rsp + 0x28], 0
mov rax, qword [rbp + 0x120]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp + 0x130]
mov rcx, qword [rbp + 0x128]
call qword [rbp + 0x28]
jmp 0x14015d637
jmp 0x14015d632
mov rax, qword [rbp + 0x120]
cmp dword [rax + 8], 0
je 0x14015d632
mov rdx, qword [rbp + 0x130]
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x14015d637
mov eax, 1
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x1400f2021
Capabilities:
Print debug messages

Disassembly:
jmp 0x14028e080
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x1400f2242
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1401f5b60
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1401f54b0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401f5ba9
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140383020]
jmp 0x1401f5bb8
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x1400f24db
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1402c8950
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
sub rsp, 0x48
movzx eax, word [rsp + 0x58]
movd xmm0, eax
movdqa xmmword [rsp + 0x20], xmm0
pshuflw xmm0, xmmword [rsp + 0x20], 0
movdqa xmmword [rsp + 0x20], xmm0
movdqa xmm0, xmmword [rsp + 0x20]
pshufd xmm0, xmm0, 0
movdqa xmmword [rsp + 0x20], xmm0
mov rax, qword [rsp + 0x50]
and rax, 0xfff
cmp rax, 0xff0
ja 0x1402c8a61
mov rax, qword [rsp + 0x50]
movdqu xmm0, xmmword [rax]
movdqa xmmword [rsp + 0x30], xmm0
movdqa xmm0, xmmword [rsp + 0x10]
pxor xmm0, xmmword [rsp + 0x10]
movdqa xmmword [rsp + 0x10], xmm0
movdqa xmm0, xmmword [rsp + 0x10]
pcmpeqw xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x10], xmm0
movdqa xmm0, xmmword [rsp + 0x30]
pcmpeqw xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x30], xmm0
movdqa xmm0, xmmword [rsp + 0x10]
por xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x10], xmm0
movdqa xmm0, xmmword [rsp + 0x10]
pmovmskb eax, xmm0
mov dword [rsp], eax
cmp dword [rsp], 0
je 0x1402c8a51
mov eax, dword [rsp]
bsf eax, eax
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
add rax, qword [rsp + 0x50]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
movzx ecx, word [rsp + 0x58]
cmp eax, ecx
jne 0x1402c8a41
mov rax, qword [rsp + 0x50]
mov qword [rsp + 8], rax
jmp 0x1402c8a4a
mov qword [rsp + 8], 0
mov rax, qword [rsp + 8]
jmp 0x1402c8a9c
mov rax, qword [rsp + 0x50]
add rax, 0x10
mov qword [rsp + 0x50], rax
jmp 0x1402c8a97
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
movzx ecx, word [rsp + 0x58]
cmp eax, ecx
jne 0x1402c8a79
mov rax, qword [rsp + 0x50]
jmp 0x1402c8a9c
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
test eax, eax
jne 0x1402c8a89
xor eax, eax
jmp 0x1402c8a9c
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
jmp 0x1402c898b
add rsp, 0x48
ret
Function at 0x1400f2706
Capabilities:
Connect socket
Resolve dns

Disassembly:
jmp 0x1401698d0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1b8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x36
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1d8]
mov rax, qword [0x140359238]
xor rax, rbp
mov qword [rbp + 0x188], rax
lea rcx, [0x1403816ed]
call fcn.1400f28c8
lea rax, [rbp + 0x28]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov dword [rbp + 0x2c], 0
mov dword [rbp + 0x30], 1
mov dword [rbp + 0x34], 6
mov r8d, 6
lea rdx, str.b
mov rcx, qword [rbp + 0x1b0]
call fcn.1400eb735
mov rcx, qword [rbp + 0x1b0]
call fcn.1400ebb09
lea r9, [rbp + 0x78]
lea r8, [rbp + 0x28]
lea rdx, [0x1402f3970]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x140169990
mov rax, 0xffffffffffffffff
jmp 0x140169a72
mov qword [rbp + 0xb8], 0xffffffffffffffff
mov rax, qword [rbp + 0x78]
mov qword [rbp + 0x98], rax
jmp 0x1401699ba
mov rax, qword [rbp + 0x98]
mov rax, qword [rax + 0x28]
mov qword [rbp + 0x98], rax
cmp qword [rbp + 0x98], 0
je 0x140169a61
mov rax, qword [rbp + 0x98]
mov r8d, dword [rax + 0xc]
mov rax, qword [rbp + 0x98]
mov edx, dword [rax + 8]
mov rax, qword [rbp + 0x98]
mov ecx, dword [rax + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbp + 0xb8], rax
cmp qword [rbp + 0xb8], 0xffffffffffffffff
jne 0x140169a11
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rax, 0xffffffffffffffff
jmp 0x140169a72
mov rax, qword [rbp + 0x98]
mov r8d, dword [rax + 0x10]
mov rax, qword [rbp + 0x98]
mov rdx, qword [rax + 0x20]
mov rcx, qword [rbp + 0xb8]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0xffffffff
jne 0x140169a5a
mov rcx, qword [rbp + 0xb8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbp + 0xb8], 0xffffffffffffffff
jmp 0x1401699a8
jmp 0x140169a61
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rax, qword [rbp + 0xb8]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1402f3150]
call fcn.1400f1356
mov rax, rdi
mov rcx, qword [rbp + 0x188]
xor rcx, rbp
call fcn.1400eea70
lea rsp, [rbp + 0x198]
pop rdi
pop rbp
ret
Function at 0x1400f2c56
Capabilities:
Print debug messages

Disassembly:
jmp 0x1401ceea8
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edx, edx
mov rdi, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.1400f098d
and qword [rdi + 0x50], 0
lea rax, [0x140000000]
and dword [rdi + 0x58], 0
lea rcx, [rdi + 0x28]
and dword [rdi + 0x5c], 0
xor r8d, r8d
mov qword [rdi + 0x10], rax
xor edx, edx
mov qword [rdi + 8], rax
lea rax, [0x1402ff210]
mov qword [rdi + 0x20], rax
mov dword [rdi], 0x60
mov dword [rdi + 0x18], 0xe00
call fcn.1400ee92b
test eax, eax
jne 0x1401cef3f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x1401cef3f
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1401cef38
lea rcx, str.ERROR_:_Unable_to_initialize_critical_section_in_CAtlBaseModule_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [0x14035f200], 1
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x1402b4390
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400ec5ae
sub rsp, rax
mov rax, qword [0x140359238]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140361630]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, recv
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1402b4582
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x1402b44d6
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1402b44d6
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x1402b44bb
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x1402b4458
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1402b4542
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1402b45a1
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x1402b457d
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1402b45a1
jmp 0x1402b442e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400eea70
add rsp, 0x1498
pop rdi
pop rsi
ret