joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401d6431
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
jmp 0x1402a8180
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x838
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x172
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x858]
mov rax, qword [0x140812ac0]
xor rax, rbp
mov qword [rbp + 0x7f8], rax
mov dword [rbp + 0x7e4], 0
lea rcx, reloc.WS2_32.dll_accept
call fcn.1401dd605
nop
lea rax, [rbp + 0x704]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rbp + 0x728]
lea rcx, [rbp + 0x704]
call fcn.140281bb0
mov rcx, rax
call fcn.1401d6549
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x1402a8286
lea rax, [rbp + 0x744]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rbp + 0x768]
lea rcx, [rbp + 0x744]
call fcn.1402821d0
mov rcx, rax
call fcn.1401d6490
mov rdx, rax
mov rcx, qword [rbp + 0x820]
call fcn.1401d8321
mov eax, dword [rbp + 0x7e4]
or eax, 1
mov dword [rbp + 0x7e4], eax
mov rax, qword [rbp + 0x820]
jmp 0x1402a83c5
mov rcx, qword [rbp + 0x828]
call fcn.1401d4cda
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rbp + 8]
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x1402a8324
mov rcx, qword [rbp + 8]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
lea rax, [rbp + 0x794]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rbp + 0x7b8]
lea rcx, [rbp + 0x794]
call fcn.1402828a0
mov rcx, rax
call fcn.1401d6490
mov rdx, rax
mov rcx, qword [rbp + 0x820]
call fcn.1401d8321
mov eax, dword [rbp + 0x7e4]
or eax, 1
mov dword [rbp + 0x7e4], eax
mov rax, qword [rbp + 0x820]
jmp 0x1402a83c5
lea rcx, [rbp + 0x48]
call fcn.1401dd56f
nop
mov dword [rbp + 0x4a4], 0
lea r9, [rbp + 0x4a4]
mov r8d, 0x400
lea rdx, [rbp + 0x90]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1402a837f
cmp dword [rbp + 0x4a4], 0
jbe 0x1402a837f
mov eax, dword [rbp + 0x4a4]
mov r8d, eax
lea rdx, [rbp + 0x90]
lea rcx, [rbp + 0x48]
call fcn.1401ddda3
nop
jmp 0x1402a8338
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
lea rdx, [rbp + 0x48]
mov rcx, qword [rbp + 0x820]
call fcn.1401dcc19
mov eax, dword [rbp + 0x7e4]
or eax, 1
mov dword [rbp + 0x7e4], eax
lea rcx, [rbp + 0x48]
call fcn.1401d5a9a
nop
mov rax, qword [rbp + 0x820]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.1401dbb48
mov rax, rdi
mov rcx, qword [rbp + 0x7f8]
xor rcx, rbp
call fcn.1401d8740
lea rsp, [rbp + 0x808]
pop rdi
pop rbp
ret
Function at 0x1401d677e
Capabilities:
Query environment variable

Disassembly:
jmp 0x140472530
push rdi
sub rsp, 0x30
lea rcx, [0x1407c7128]
call fcn.1401d7075
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14047255b
mov rcx, qword [rsp + 0x20]
call fcn.1401dd538
jmp 0x14047255d
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x1401d6d50
Capabilities:
Move file

Disassembly:
jmp 0x1404e9e80
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xd8
lea rdi, [rsp + 0x20]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xf0]
mov rax, qword [0x140812ac0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0x20], 0x3e8
lea rcx, [rsp + 0x78]
call fcn.1401dc714
lea rcx, [rsp + 0x38]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0xf0]
call fcn.1401d47c1
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0xf8]
call fcn.1401d47c1
mov qword [rsp + 0x60], rax
mov r8d, 1
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x1404e9f67
cmp qword [rsp + 0x58], 0
je 0x1404e9f3b
mov rcx, qword [rsp + 0x58]
call fcn.1401d73f9
mov qword [rsp + 0x58], 0
xor eax, eax
test eax, eax
jne 0x1404e9f20
cmp qword [rsp + 0x60], 0
je 0x1404e9f5c
mov rcx, qword [rsp + 0x60]
call fcn.1401d73f9
mov qword [rsp + 0x60], 0
xor eax, eax
test eax, eax
jne 0x1404e9f41
jmp 0x1404ea02b
lea rax, [rsp + 0xb0]
lea rcx, [rsp + 0x38]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x88]
call fcn.1401dc714
lea rcx, [rsp + 0xa0]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0xa0]
call fcn.1401ddfce
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jl 0x1404e9fd1
movsxd rax, dword [rsp + 0x20]
cmp qword [rsp + 0x68], rax
jle 0x1404ea01a
cmp qword [rsp + 0x58], 0
je 0x1404e9fec
mov rcx, qword [rsp + 0x58]
call fcn.1401d73f9
mov qword [rsp + 0x58], 0
xor eax, eax
test eax, eax
jne 0x1404e9fd1
cmp qword [rsp + 0x60], 0
je 0x1404ea00d
mov rcx, qword [rsp + 0x60]
call fcn.1401d73f9
mov qword [rsp + 0x60], 0
xor eax, eax
test eax, eax
jne 0x1404e9ff2
mov eax, 1
jmp 0x1404ea02d
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
jmp 0x1404e9f06
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1401dbb48
mov rax, rdi
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1401d8740
add rsp, 0xd8
pop rdi
pop rsi
ret
Function at 0x1401d784f
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x14057e95c
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14057e9e9
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x14057e9e9
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14057e9e9
sub r8, rdx
movzx edx, word [rcx + 0x14]
add rdx, 0x18
add rdx, rcx
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x14057e9d0
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14057e9ca
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14057e9d2
add rdx, 0x28
jmp 0x14057e9af
xor edx, edx
test rdx, rdx
jne 0x14057e9db
xor al, al
jmp 0x14057e9ef
cmp dword [rdx + 0x24], 0
jge 0x14057e9e5
xor al, al
jmp 0x14057e9ef
mov al, 1
jmp 0x14057e9ef
xor al, al
jmp 0x14057e9ef
add rsp, 0x18
ret
Function at 0x1401d7c50
Capabilities:
Receive data
Receive data on socket

Disassembly:
jmp 0x140474ad0
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov r8, qword [rsp + 0x78]
mov edx, dword [rsp + 0x70]
lea rcx, str.recv
call fcn.140474d50
movzx eax, al
test eax, eax
je 0x140474b0c
mov eax, 0xffffffff
jmp 0x140474b5a
mov r9d, dword [rsp + 0x68]
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x30], eax
cmp qword [rsp + 0x78], 0
je 0x140474b56
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x60]
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
lea rcx, str.RECV__s:_d_recv__lu____ld_n
call fcn.1401ddbaf
nop
mov eax, dword [rsp + 0x30]
add rsp, 0x40
pop rdi
ret
Function at 0x1401d8c9f
Capabilities:
Query environment variable

Disassembly:
jmp 0x1404a5400
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
lea rdi, [rsp + 0x30]
mov ecx, reloc.WS2_32.dll_sendto
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x90]
mov dword [rsp + 0x44], 0
cmp dword [rsp + 0x98], 0
jl 0x1404a5450
cmp dword [rsp + 0x98], 2
jl 0x1404a546b
mov r8d, 0x335
lea rdx, [0x1407dfd90]
lea rcx, str.sockindex___0__sockindex___2
call fcn.1401d4924
xor eax, eax
cmp qword [rsp + 0xb0], 0
jne 0x1404a5491
mov r8d, 0x336
lea rdx, [0x1407dfe60]
lea rcx, str.pnwritten
call fcn.1401d4924
xor eax, eax
cmp qword [rsp + 0x90], 0
jne 0x1404a54b7
mov r8d, 0x337
lea rdx, [0x1407dff10]
lea rcx, [0x1407dffa0]
call fcn.1401d4924
xor eax, eax
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x20], 0
jne 0x1404a54e1
mov r8d, 0x338
lea rdx, [0x1407dffb0]
lea rcx, [0x1407e0040]
call fcn.1401d4924
xor eax, eax
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x58], rax
lea rcx, str.CURL_SMALLSENDS
call fcn.1401d7075
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x1404a5561
mov r8d, 0xa
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1401d5d97
mov eax, eax
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x1404a5561
mov rax, qword [rsp + 0x68]
cmp qword [rsp + 0xa8], rax
jae 0x1404a554a
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x70], rax
jmp 0x1404a5554
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xa8], rax
movsxd rax, dword [rsp + 0x98]
lea rcx, [rsp + 0x44]
mov qword [rsp + 0x20], rcx
mov r9, qword [rsp + 0xa8]
mov r8, qword [rsp + 0xa0]
mov edx, dword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
mov r10, qword [rsp + 0x58]
call qword [r10 + rax*8 + 0x240]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jge 0x1404a55ce
cmp dword [rsp + 0x44], 0
jne 0x1404a55ce
mov r8d, 0x347
lea rdx, [0x1407e0070]
lea rcx, str._nwritten___0___result
call fcn.1401d4924
xor eax, eax
cmp qword [rsp + 0x30], 0
jge 0x1404a55e1
mov qword [rsp + 0x78], 0
jmp 0x1404a55eb
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
mov qword [rax], rcx
mov eax, dword [rsp + 0x44]
mov edi, eax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1401dbb48
mov eax, edi
add rsp, 0x80
pop rdi
ret
Function at 0x1401d92d5
Capabilities:
Terminate process

Disassembly:
jmp 0x14057ed4c
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x1401d9b40
Capabilities:
Initialize winsock library

Disassembly:
jmp 0x1404abc20
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x220
lea rdi, [rsp + 0x30]
mov ecx, 0x7c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x230]
mov rax, qword [0x140812ac0]
xor rax, rsp
mov qword [rsp + 0x210], rax
mov eax, dword [rsp + 0x230]
and eax, 2
test eax, eax
je 0x1404abcf7
mov eax, 0x202
mov word [rsp + 0x38], ax
lea rdx, [rsp + 0x50]
movzx ecx, word [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rsp + 0x1f4], eax
cmp dword [rsp + 0x1f4], 0
je 0x1404abc9d
mov eax, 2
jmp 0x1404abe4b
movzx eax, word [rsp + 0x50]
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x38]
and rcx, 0xff
movzx ecx, cl
cmp eax, ecx
jne 0x1404abce7
movzx eax, word [rsp + 0x50]
shr rax, 8
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x38]
shr rcx, 8
and rcx, 0xff
movzx ecx, cl
cmp eax, ecx
je 0x1404abcf7
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
jmp 0x1404abe4b
call fcn.1401dd934
mov dword [rsp + 0x1f8], eax
cmp dword [rsp + 0x1f8], 0
je 0x1404abd19
mov eax, dword [rsp + 0x1f8]
jmp 0x1404abe4b
lea rcx, str.iphlpapi.dll
call fcn.1401dc5a2
mov qword [0x14081db50], rax
cmp qword [0x14081db50], 0
je 0x1404abd6c
lea rdx, str.if_nametoindex
mov rcx, qword [0x14081db50]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x200], rax
cmp qword [rsp + 0x200], 0
je 0x1404abd6c
mov rax, qword [rsp + 0x200]
mov qword [0x14081db30], rax
lea rcx, str.ws2_32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1404abdd1
lea rdx, str.FreeAddrInfoExW
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14081db38], rax
lea rdx, str.GetAddrInfoExCancel
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14081db40], rax
lea rdx, str.GetAddrInfoExW
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14081db48], rax
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.1401dbc65
movzx eax, al
test eax, eax
je 0x1404abdfe
mov byte [0x14081e57c], 1
jmp 0x1404abe05
mov byte [0x14081e57c], 0
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
mov edx, 2
mov ecx, 6
call fcn.1401dbc65
movzx eax, al
test eax, eax
je 0x1404abe35
mov byte [0x14081e571], 1
jmp 0x1404abe3c
mov byte [0x14081e571], 0
lea rcx, [0x14081e580]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1401dbb48
mov rax, rdi
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.1401d8740
add rsp, 0x220
pop rdi
ret
Function at 0x1401d9e38
Capabilities:
Write file on windows

Disassembly:
jmp 0x1402dcd20
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, reloc.WS2_32.dll_accept
call fcn.1401dd605
nop
mov r9, qword [rbp + 0xf8]
mov r8, qword [rbp + 0xf0]
mov rdx, qword [rbp + 0xe8]
mov rcx, qword [rbp + 0xe0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret

Function at 0x1401d9ed3
Capabilities:
Get geographical location

Disassembly:
jmp 0x14057bd54
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14057bd8e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14057bd93
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14057bddc
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x14057bddc
dec r8
sub rdx, 1
jne 0x14057bdc2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1401da130
Capabilities:
Query environment variable

Disassembly:
jmp 0x140488d30
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
call fcn.1401dbec7
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x80], rax
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x80], 0
jne 0x140488d6e
mov eax, 1
jmp 0x140488e0f
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x80]
mov byte [rax + 0x12bf], 1
lea rcx, str.CURL_DEBUG
call fcn.1401d7075
test rax, rax
je 0x140488da5
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x80]
mov byte [rax + 0xa5e], 1
mov rax, qword [rsp + 0x40]
lea rcx, [0x14048b450]
mov qword [rsp + 0x20], rcx
lea r9, [0x1401dce2b]
lea r8, [0x1401d6936]
mov rdx, qword [rsp + 0x50]
mov rcx, rax
call fcn.1401d7f34
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x80]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0xc20], rcx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov qword [rax + 0x88], rcx
mov rax, qword [rsp + 0x40]
add rax, 0x58
xor edx, edx
mov rcx, rax
call fcn.1401d9997
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x1401da2ed
Capabilities:
Read file on windows

Disassembly:
jmp 0x1402dcca0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, reloc.WS2_32.dll_accept
call fcn.1401dd605
nop
mov r9, qword [rbp + 0xf8]
mov r8, qword [rbp + 0xf0]
mov rdx, qword [rbp + 0xe8]
mov rcx, qword [rbp + 0xe0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret
Function at 0x1401da315
Capabilities:
Hash data with crc32

Disassembly:
jmp 0x1402dec00
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x198
lea rbp, [rsp + 0x20]
lea rcx, reloc.WS2_32.dll_accept
call fcn.1401dd605
nop
mov eax, dword [rbp + 0x1a0]
not eax
mov dword [rbp + 0x1a0], eax
mov eax, dword [rbp + 0x1a0]
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x190]
mov qword [rbp + 0x28], rax
lea rax, [0x1405c79b0]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x198], 0
je 0x1402ded46
mov rax, qword [rbp + 0x198]
mov qword [rbp + 0x158], rax
mov rax, qword [rbp + 0x198]
dec rax
mov qword [rbp + 0x198], rax
cmp qword [rbp + 0x158], 0
je 0x1402dec9a
mov dword [rbp + 0x160], 1
jmp 0x1402deca4
mov dword [rbp + 0x160], 0
cmp dword [rbp + 0x160], 0
je 0x1402ded41
mov rax, qword [rbp + 0x28]
movzx eax, byte [rax]
mov byte [rbp + 0x154], al
mov rax, qword [rbp + 0x28]
inc rax
mov qword [rbp + 0x28], rax
movzx eax, byte [rbp + 0x154]
mov byte [rbp + 0x64], al
movzx eax, byte [rbp + 0x64]
cmp eax, 0x23
jne 0x1402ded1b
cmp qword [rbp + 0x198], 2
jb 0x1402ded1b
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x28]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x1402ded1b
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rbp + 0x28]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x1402ded1b
mov eax, dword [rbp + 0x1a0]
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shr eax, 8
mov ecx, dword [rbp + 4]
and ecx, 0xff
movzx edx, byte [rbp + 0x64]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rbp + 0x48]
xor eax, dword [rdx + rcx*4]
mov dword [rbp + 4], eax
jmp 0x1402dec65
jmp 0x1402dede0
mov rax, qword [rbp + 0x28]
movzx eax, byte [rax]
mov byte [rbp + 0x154], al
mov rax, qword [rbp + 0x28]
inc rax
mov qword [rbp + 0x28], rax
movzx eax, byte [rbp + 0x154]
mov byte [rbp + 0x84], al
movzx eax, byte [rbp + 0x84]
test eax, eax
je 0x1402dede0
movzx eax, byte [rbp + 0x84]
cmp eax, 0x23
jne 0x1402dedb7
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x28]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x1402dedb7
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rbp + 0x28]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x1402dedb7
mov eax, dword [rbp + 0x1a0]
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shr eax, 8
mov ecx, dword [rbp + 4]
and ecx, 0xff
movzx edx, byte [rbp + 0x84]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rbp + 0x48]
xor eax, dword [rdx + rcx*4]
mov dword [rbp + 4], eax
jmp 0x1402ded46
mov eax, dword [rbp + 4]
not eax
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x1401da509
Capabilities:
Terminate process

Disassembly:
jmp 0x14057f57c
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov ecx, 1
call fcn.1401ddbf0
test al, al
je 0x14057f46b
xor sil, sil
mov byte [rsp + 0x20], sil
call fcn.1401dbee0
mov bl, al
mov ecx, dword [0x14081dd68]
cmp ecx, 1
je 0x14057f476
test ecx, ecx
jne 0x14057f3a1
mov dword [0x14081dd68], 1
lea rdx, [0x14059eb18]
lea rcx, [0x14059e7e8]
call fcn.1401d85ec
test eax, eax
je 0x14057f382
mov eax, 0xff
jmp 0x14057f45b
lea rdx, [0x14059e6d8]
lea rcx, [section..rdata]
call fcn.1401dbe54
mov dword [0x14081dd68], 2
jmp 0x14057f3a9
mov sil, 1
mov byte [rsp + 0x20], sil
mov cl, bl
call fcn.1401dba71
call fcn.1401daa36
mov rbx, rax
cmp qword [rax], 0
je 0x14057f3dc
mov rcx, rax
call fcn.1401d784f
test al, al
je 0x14057f3dc
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [rbx]
call qword [0x140851020]
call fcn.1401db143
mov rbx, rax
cmp qword [rax], 0
je 0x14057f3fe
mov rcx, rax
call fcn.1401d784f
test al, al
je 0x14057f3fe
mov rcx, qword [rbx]
call fcn.1401dd13c
call fcn.1401d53ab
mov rdi, rax
call fcn.1401db91d
mov rbx, qword [rax]
call fcn.1401db02b
mov r8, rdi
mov rdx, rbx
mov ecx, dword [rax]
call fcn.1401da3bf
mov ebx, eax
call fcn.1401da658
test al, al
je 0x14057f480
test sil, sil
jne 0x14057f435
call fcn.1401dd312
xor edx, edx
mov cl, 1
call fcn.1401d757a
mov eax, ebx
jmp 0x14057f45b
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, 7
call fcn.1401dbc24
nop
mov ecx, 7
call fcn.1401dbc24
mov ecx, ebx
call fcn.1401d4ab4
nop
mov ecx, ebx
call fcn.1401d96ef
nop
int3
sub rsp, 0x28
call fcn.1401da7b1
add rsp, 0x28
jmp 0x14057f314

Function at 0x1401da658
Capabilities:
Parse pe header

Disassembly:
jmp 0x140580930
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14058097a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14058097a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14058097a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14058097a
cmp dword [rcx + 0x84], 0xe
jbe 0x14058097a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14058097c
xor al, al
add rsp, 0x28
ret
Function at 0x1401da7fc
Capabilities:
Resolve dns

Disassembly:
jmp 0x1404eb960
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x1404eb9bf
mov rax, qword [rsp + 0x58]
mov r9, qword [rax]
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
lea rcx, str.ADDR__s:_d_getaddrinfo_____p_n
call fcn.1401ddbaf
nop
jmp 0x1404eb9d6
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
lea rcx, str.ADDR__s:_d_getaddrinfo___failed_n
call fcn.1401ddbaf
nop
mov eax, dword [rsp + 0x20]
add rsp, 0x30
pop rdi
ret

Function at 0x1401da973
Capabilities:
Create thread

Disassembly:
jmp 0x1404ebe80
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
xor edx, edx
xor ecx, ecx
call fcn.1401dd4e8
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1404ebedb
mov ecx, 0xffffffff
call fcn.1401d90c8
cmp qword [rsp + 0x30], rax
jne 0x1404ebedf
xor eax, eax
jmp 0x1404ebee4
mov rax, qword [rsp + 0x30]
add rsp, 0x40
pop rdi
ret
Function at 0x1401db94a
Capabilities:
Create process on windows

Disassembly:
jmp 0x140286cb0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xf8
lea rbp, [rsp + 0x30]
lea rcx, reloc.WS2_32.dll_accept
call fcn.1401dd605
nop
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rbp + 0xe0]
lea rdx, [0x1405c6f70]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret

Function at 0x1401dbbb1
Capabilities:
Convert ip address from string

Disassembly:
jmp 0x1404d11e0
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
lea rdi, [rsp + 0x20]
mov ecx, 0x18
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x90]
mov rax, qword [0x140812ac0]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea r8, [rsp + 0x24]
mov rdx, qword [rsp + 0x90]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x1404d124d
lea r8, [rsp + 0x48]
mov rdx, qword [rsp + 0x90]
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x1404d1251
mov al, 1
jmp 0x1404d1253
xor al, al
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_bind
call fcn.1401dbb48
mov rax, rdi
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401d8740
add rsp, 0x80
pop rdi
ret