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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov byte [rsp + 0x20], 0
lea rdx, [0x180089860]
mov rcx, qword [rsp + 0x50]
call fcn.180042268
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18005442a
mov rcx, qword [rsp + 0x58]
call fcn.180043400
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jbe 0x180054411
mov r9, qword [rsp + 0x28]
mov r8, qword [rsp + 0x30]
mov edx, 1
mov rcx, qword [rsp + 0x58]
call fcn.180043364
mov rcx, qword [rsp + 0x28]
call fcn.180042428
mov rcx, qword [rsp + 0x28]
call fcn.1800424f0
mov byte [rsp + 0x20], 1
movzx eax, byte [rsp + 0x20]
add rsp, 0x48
ret

Function at 0x180054440
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x1800a5008]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x30], 0
lea rcx, [rsp + 0x58]
call fcn.180014f50
nop
lea rdx, [0x180089850]
mov rcx, qword [rsp + 0x98]
call fcn.180042268
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18005454d
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x28]
call fcn.180042bac
mov rcx, qword [rsp + 0x28]
call fcn.180041af8
mov dword [rsp + 0x20], eax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x28]
call fcn.180042bac
cmp dword [rsp + 0x20], 0
jle 0x180054543
mov eax, dword [rsp + 0x20]
inc eax
cdqe
mov rcx, rax
call fcn.1800359bc
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x38], rax
movsxd rax, dword [rsp + 0x20]
mov r9, qword [rsp + 0x28]
mov r8, rax
mov edx, 1
mov rcx, qword [rsp + 0x38]
call fcn.1800442e4
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x38]
mov byte [rcx + rax], 0
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x58]
call fcn.18000a230
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.1800359b4
mov rcx, qword [rsp + 0x28]
call fcn.1800424f0
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x90]
call fcn.180014f20
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x58]
call fcn.1800058a0
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1800352b0
add rsp, 0x88
ret

Function at 0x1800549d0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x148
mov rax, qword [0x1800a5008]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov dword [rsp + 0x20], 0
mov eax, 1
imul rax, rax, 0
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0x100
jae 0x180054a11
jmp 0x180054a16
call fcn.1800353dc
mov rax, qword [rsp + 0x28]
mov byte [rsp + rax + 0x30], 0
xor r9d, r9d
mov r8d, 0x1c
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x150]
call fcn.18000a250
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x150]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1800352b0
add rsp, 0x148
ret
Function at 0x18005e230
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 8], rcx
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 8], 0x67452301
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 8], 0xefcdab89
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 8], 0x98badcfe
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 8], 0x10325476
ret
Function at 0x180065a50
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 8], rcx
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 8], 0x67452301
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 8], 0xefcdab89
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 8], 0x98badcfe
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 8], 0x10325476
mov eax, 4
imul rax, rax, 4
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 8], 0xc3d2e1f0
ret
Function at 0x180070ae0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.180033b00
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x30], 0
je 0x180070b24
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + 0x30]
mov rcx, qword [rsp + 0x30]
call fcn.180074200
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x30], 0
mov rcx, qword [rsp + 0x58]
call fcn.180043400
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
inc eax
mov r9d, 0x56
lea r8, str.cHttpResponseDefault.cpp
mov edx, eax
mov rcx, qword [rsp + 0x30]
call fcn.1800743e0
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x30]
call fcn.1800420e0
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x10], 0
je 0x180070b99
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + 0x10]
mov rcx, qword [rsp + 0x30]
call fcn.180074200
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x10], 0
mov rax, qword [rsp + 0x50]
mov dword [rax + 0x18], 0
lea rdx, [0x18008d978]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x30]
call fcn.180042268
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180070c79
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x28]
call fcn.180042bac
mov rcx, qword [rsp + 0x28]
call fcn.180041af8
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x18], eax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x28]
call fcn.180042bac
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x18], 0
jle 0x180070c6f
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x18]
inc eax
mov r9d, 0x68
lea r8, [0x18008dfd8]
mov edx, eax
mov rcx, qword [rsp + 0x30]
call fcn.1800743e0
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x50]
movsxd rax, dword [rax + 0x18]
mov r9, qword [rsp + 0x28]
mov r8, rax
mov edx, 1
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x10]
call fcn.1800442e4
mov rax, qword [rsp + 0x50]
movsxd rax, dword [rax + 0x18]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x10]
mov byte [rcx + rax], 0
mov rcx, qword [rsp + 0x28]
call fcn.1800424f0
add rsp, 0x48
ret
Function at 0x180071df0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.180033b00
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x68], 0
je 0x180071e34
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + 0x68]
mov rcx, qword [rsp + 0x30]
call fcn.180074200
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x68], 0
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x70], 0
je 0x180071e60
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + 0x70]
mov rcx, qword [rsp + 0x30]
call fcn.180074200
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x70], 0
lea rdx, [0x18008e264]
mov rcx, qword [rsp + 0x58]
call fcn.180042268
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180071f16
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x28]
call fcn.180042bac
mov rcx, qword [rsp + 0x28]
call fcn.180041af8
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x78], eax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x28]
call fcn.180042bac
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x78], 0
jle 0x180071f0c
mov r9d, 0x28f
lea r8, [0x18008e430]
mov rax, qword [rsp + 0x50]
mov edx, dword [rax + 0x78]
mov rcx, qword [rsp + 0x30]
call fcn.1800743e0
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0x70], rax
mov rax, qword [rsp + 0x50]
movsxd rax, dword [rax + 0x78]
mov r9, qword [rsp + 0x28]
mov r8, rax
mov edx, 1
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x70]
call fcn.1800442e4
mov rcx, qword [rsp + 0x28]
call fcn.1800424f0
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x78], 0
jne 0x180071f26
jmp 0x180071fb8
mov edx, 0x5c
mov rcx, qword [rsp + 0x58]
call fcn.180037d5c
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x180071f58
mov edx, 0x2f
mov rcx, qword [rsp + 0x58]
call fcn.180037d5c
mov qword [rsp + 0x20], rax
jmp 0x180071f65
mov rax, qword [rsp + 0x20]
inc rax
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x180071f77
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x20]
call fcn.180043400
inc eax
mov r9d, 0x2a1
lea r8, [0x18008e4d0]
mov edx, eax
mov rcx, qword [rsp + 0x30]
call fcn.1800743e0
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0x68], rax
mov rdx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x68]
call fcn.1800420e0
add rsp, 0x48
ret
Function at 0x1800728e0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x1800a5008]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x98], 0
jne 0x180072964
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x68], 0
je 0x180072964
mov rax, qword [rsp + 0x70]
mov rdx, qword [rax + 0x68]
lea rcx, [rsp + 0x30]
call fcn.180053de0
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call fcn.180006090
lea rdx, [0x18008e204]
mov rcx, rax
call fcn.180042268
mov rcx, qword [rsp + 0x70]
mov qword [rcx + 0x98], rax
lea rcx, [rsp + 0x30]
call fcn.1800058a0
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x24], eax
jge 0x1800729eb
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x90]
cmp dword [rsp + 0x20], eax
jge 0x1800729eb
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x78]
movsx eax, byte [rcx + rax]
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x70]
mov rdx, qword [rdx + 0x88]
movsx ecx, byte [rdx + rcx]
cmp eax, ecx
jne 0x1800729cf
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
jmp 0x1800729e9
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x24]
sub ecx, eax
mov eax, ecx
inc eax
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x20], 0
jmp 0x180072974
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x98], 0
je 0x180072a47
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x24]
sub ecx, eax
mov eax, ecx
test eax, eax
jle 0x180072a47
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x24]
sub ecx, eax
mov eax, ecx
cdqe
mov rcx, qword [rsp + 0x70]
mov r9, qword [rcx + 0x98]
mov r8, rax
mov edx, 1
mov rcx, qword [rsp + 0x78]
call fcn.180043364
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x98]
call fcn.180042428
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x90]
cmp dword [rsp + 0x20], eax
jge 0x180072a74
mov rax, qword [rsp + 0x70]
mov dword [rax + 8], 4
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x24]
sub ecx, eax
mov eax, ecx
jmp 0x180072abf
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x98], 0
je 0x180072aa4
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x98]
call fcn.1800424f0
mov rax, qword [rsp + 0x70]
mov qword [rax + 0x98], 0
mov rax, qword [rsp + 0x70]
mov dword [rax + 8], 3
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x24]
sub ecx, eax
mov eax, ecx
add eax, 2
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800352b0
add rsp, 0x68
ret
Function at 0x180075ac0
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x28], 0
je 0x180075ae4
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x80], 0
je 0x180075b47
mov edx, 0xea60
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x80]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x180075b25
xor edx, edx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x80]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x30]
mov qword [rax + 0x80], 0
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x28], 0
je 0x180075b6f
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x30]
mov qword [rax + 0x28], 0
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x20], 0
je 0x180075b97
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x30]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x30]
add rax, 0x58
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x30]
mov byte [rcx + rax + 8], 0
xor eax, eax
mov rcx, qword [rsp + 0x30]
mov word [rcx + 0x18], ax
mov rax, qword [rsp + 0x30]
mov qword [rax + 0x88], 0
call qword [sym.imp.WS2_32.dll_WSACleanup]
add rsp, 0x28
ret
Function at 0x180075d50
Capabilities:
Create thread
Initialize winsock library
Resolve dns

Disassembly:
mov word [rsp + 0x18], r8w
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x208
mov rax, qword [0x1800a5008]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
lea rdx, [rsp + 0x50]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
jne 0x180075d94
xor al, al
jmp 0x180075f09
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rcx, qword [rsp + 0x210]
mov qword [rcx + 0x28], rax
mov rax, qword [rsp + 0x210]
cmp qword [rax + 0x28], 0
jne 0x180075dd3
mov rcx, qword [rsp + 0x210]
call fcn.180075ac0
xor al, al
jmp 0x180075f09
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rcx, qword [rsp + 0x210]
mov qword [rcx + 0x20], rax
mov rax, qword [rsp + 0x210]
cmp qword [rax + 0x20], 0
jne 0x180075e12
mov rcx, qword [rsp + 0x210]
call fcn.180075ac0
xor al, al
jmp 0x180075f09
mov rcx, qword [rsp + 0x218]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x180075e41
mov rcx, qword [rsp + 0x210]
call fcn.180075ac0
xor al, al
jmp 0x180075f09
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rax + rcx]
mov eax, dword [rax]
mov dword [rsp + 0x30], eax
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rcx, qword [rsp + 0x210]
add rcx, 8
mov r8d, 0x10
mov rdx, rax
call fcn.180042fc0
mov rax, qword [rsp + 0x210]
movzx ecx, word [rsp + 0x220]
mov word [rax + 0x18], cx
mov rax, qword [rsp + 0x210]
add rax, 0x58
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x210]
lea r8, [0x180075a90]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rsp + 0x210]
mov qword [rcx + 0x80], rax
mov rax, qword [rsp + 0x210]
cmp qword [rax + 0x80], 0
jne 0x180075f07
mov rcx, qword [rsp + 0x210]
call fcn.180075ac0
xor al, al
jmp 0x180075f09
mov al, 1
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.1800352b0
add rsp, 0x208
ret
Function at 0x180077fa0
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0xc0], 0
je 0x180077fca
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0xc0]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x118], 0
je 0x18007802d
mov edx, 0xea60
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x118]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x18007800b
xor edx, edx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x118]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x118]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x118], 0
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0xc0], 0
je 0x18007805e
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0xc0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x40]
mov qword [rax + 0xc0], 0
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0xb8], 0
je 0x18007808f
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0xb8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x40]
mov qword [rax + 0xb8], 0
mov rax, qword [rsp + 0x40]
add rax, 0xf0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov byte [rcx + rax + 8], 0
xor eax, eax
mov rcx, qword [rsp + 0x40]
mov word [rcx + 0x18], ax
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x20], 0
je 0x1800780f2
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x20]
call fcn.1800359b4
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x28], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x2c], 0
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x120], 0
call qword [sym.imp.WS2_32.dll_WSACleanup]
add rsp, 0x38
ret
Function at 0x180078550
Capabilities:
Create thread
Initialize winsock library
Resolve dns

Disassembly:
mov word [rsp + 0x18], r8w
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x208
mov rax, qword [0x1800a5008]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
lea rdx, [rsp + 0x50]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
jne 0x180078594
xor al, al
jmp 0x180078753
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rcx, qword [rsp + 0x210]
mov qword [rcx + 0xc0], rax
mov rax, qword [rsp + 0x210]
cmp qword [rax + 0xc0], 0
jne 0x1800785d9
mov rcx, qword [rsp + 0x210]
call fcn.180077fa0
xor al, al
jmp 0x180078753
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rcx, qword [rsp + 0x210]
mov qword [rcx + 0xb8], rax
mov rax, qword [rsp + 0x210]
cmp qword [rax + 0xb8], 0
jne 0x18007861e
mov rcx, qword [rsp + 0x210]
call fcn.180077fa0
xor al, al
jmp 0x180078753
mov rcx, qword [rsp + 0x218]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x18007864d
mov rcx, qword [rsp + 0x210]
call fcn.180077fa0
xor al, al
jmp 0x180078753
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rax + rcx]
mov eax, dword [rax]
mov dword [rsp + 0x30], eax
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rcx, qword [rsp + 0x210]
add rcx, 8
mov r8d, 0x10
mov rdx, rax
call fcn.180042fc0
mov rax, qword [rsp + 0x210]
movzx ecx, word [rsp + 0x220]
mov word [rax + 0x18], cx
mov rax, qword [rsp + 0x210]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x210]
mov dword [rax + 0x28], 0
mov rax, qword [rsp + 0x210]
mov dword [rax + 0x2c], 0
mov rax, qword [rsp + 0x210]
add rax, 0xf0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x210]
lea r8, [0x180077f70]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rsp + 0x210]
mov qword [rcx + 0x118], rax
mov rax, qword [rsp + 0x210]
cmp qword [rax + 0x118], 0
jne 0x180078743
mov rcx, qword [rsp + 0x210]
call fcn.180077fa0
xor al, al
jmp 0x180078753
xor ecx, ecx
call fcn.180078860
mov ecx, eax
call fcn.180044658
mov al, 1
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.1800352b0
add rsp, 0x208
ret
Function at 0x180079c90
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x38], 0
je 0x180079cb4
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x38]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x90], 0
je 0x180079d17
mov edx, 0xea60
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x90]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x180079cf5
xor edx, edx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x90]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x90]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x90], 0
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x38], 0
je 0x180079d3f
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x38], 0
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x30], 0
je 0x180079d67
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x30], 0
mov rax, qword [rsp + 0x40]
add rax, 0x68
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov byte [rcx + rax + 8], 0
xor eax, eax
mov rcx, qword [rsp + 0x40]
mov word [rcx + 0x18], ax
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x20], 0
je 0x180079dc8
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x20]
call fcn.1800359b4
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x28], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x2c], 0
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x98], 0
call qword [sym.imp.WS2_32.dll_WSACleanup]
add rsp, 0x38
ret
Function at 0x180079f60
Capabilities:
Create thread
Initialize winsock library
Resolve dns

Disassembly:
mov word [rsp + 0x18], r8w
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x208
mov rax, qword [0x1800a5008]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
lea rdx, [rsp + 0x50]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
jne 0x180079fa4
xor al, al
jmp 0x18007a147
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rcx, qword [rsp + 0x210]
mov qword [rcx + 0x38], rax
mov rax, qword [rsp + 0x210]
cmp qword [rax + 0x38], 0
jne 0x180079fe3
mov rcx, qword [rsp + 0x210]
call fcn.180079c90
xor al, al
jmp 0x18007a147
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rcx, qword [rsp + 0x210]
mov qword [rcx + 0x30], rax
mov rax, qword [rsp + 0x210]
cmp qword [rax + 0x30], 0
jne 0x18007a022
mov rcx, qword [rsp + 0x210]
call fcn.180079c90
xor al, al
jmp 0x18007a147
mov rcx, qword [rsp + 0x218]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x18007a051
mov rcx, qword [rsp + 0x210]
call fcn.180079c90
xor al, al
jmp 0x18007a147
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rax + rcx]
mov eax, dword [rax]
mov dword [rsp + 0x30], eax
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rcx, qword [rsp + 0x210]
add rcx, 8
mov r8d, 0x10
mov rdx, rax
call fcn.180042fc0
mov rax, qword [rsp + 0x210]
movzx ecx, word [rsp + 0x220]
mov word [rax + 0x18], cx
mov rax, qword [rsp + 0x210]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x210]
mov dword [rax + 0x28], 0
mov rax, qword [rsp + 0x210]
mov dword [rax + 0x2c], 0
mov rax, qword [rsp + 0x210]
add rax, 0x68
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x210]
lea r8, [0x180079c60]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rsp + 0x210]
mov qword [rcx + 0x90], rax
mov rax, qword [rsp + 0x210]
cmp qword [rax + 0x90], 0
jne 0x18007a145
mov rcx, qword [rsp + 0x210]
call fcn.180079c90
xor al, al
jmp 0x18007a147
mov al, 1
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.1800352b0
add rsp, 0x208
ret