joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400086c8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov esi, edx
mov rdi, rcx
mov edx, 0x29
mov ecx, 0x80220
call fcn.1400013f4
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140008792
xor edx, edx
lea r8d, [rbp + 0x18]
mov rcx, rax
call sub.ntdll.dll_memset
mov rcx, rdi
test esi, esi
jne 0x140008718
call fcn.140004f6c
jmp 0x14000871d
call fcn.140004f14
or r14, 0xffffffffffffffff
mov qword [rbx], rax
cmp rax, r14
jne 0x140008736
mov rcx, rbx
call fcn.14000522c
mov rbx, rbp
jmp 0x140008792
lea rcx, [rbx + 0x80018]
mov dword [rbx + 0xc], esi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
test esi, esi
jne 0x140008792
mov rcx, qword [rbx]
lea r9, [rsp + 0x60]
lea r8d, [rsi + 3]
mov qword [rsp + 0x20], rbp
lea rdx, [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x60]
test eax, eax
cmove ecx, r14d
mov dword [rbx + 0x10], ecx
cmp ecx, 3
jne 0x140008792
cmp byte [rbx + 0x18], 0xef
jne 0x140008792
cmp byte [rbx + 0x19], 0xbb
jne 0x140008792
cmp byte [rbx + 0x1a], 0xbf
mov eax, ecx
cmove eax, ebp
mov dword [rbx + 0x10], eax
mov rbp, qword [rsp + 0x58]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret

Function at 0x140008984
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
cmp dword [rsp + 0x80], 0
mov rbp, r9
mov edi, r8d
mov ebx, edx
mov rsi, rcx
jne 0x1400089e6
mov r8d, dword [rsp + 0x88]
lea r9, [0x14003e3c0]
mov rdx, rbp
lea rcx, str.Config
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, edi
jge 0x140008a1c
lea r9d, [rax + rbx]
mov edx, ebx
lea r8d, [rbx + rdi - 1]
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckRadioButton]
jmp 0x140008a1c
call fcn.140005540
mov r8d, eax
lea rdx, [0x140034a04]
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_wsprintfA]
lea r9, [0x14003e3c0]
mov rdx, rbp
lea r8, [rsp + 0x20]
lea rcx, str.Config
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140008b4c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
mov r15, rdx
mov rdi, rcx
mov esi, ebx
mov ebp, ebx
test r8d, r8d
je 0x140008c53
lea eax, [r8 - 1]
mov r14d, ebx
movsxd r12, eax
movsxd rdx, dword [rdi + 0x10]
cmp dword [rdi + 8], ebx
je 0x140008bcb
test edx, edx
je 0x140008c33
movsxd r8, dword [rdi + 0x14]
movzx ecx, byte [r8 + rdi + 0x18]
lea eax, [r8 + 1]
mov dword [rdi + 0x14], eax
lea eax, [rdx - 1]
mov dword [rdi + 0x10], eax
cmp cl, 0xd
je 0x140008c28
cmp cl, 0xa
je 0x140008c28
test ebp, ebp
jne 0x140008c40
cmp r14, r12
jge 0x140008b81
inc esi
mov byte [r14 + r15], cl
inc r14
jmp 0x140008b81
cmp edx, 1
jg 0x140008b92
movsxd rax, dword [rdi + 0x14]
lea rdx, [rdx + rdi + 0x18]
lea r9, [rsp + 0x70]
mov qword [rsp + 0x20], rbx
mov r8d, 0x7ffff
mov cl, byte [rax + rdi + 0x18]
mov byte [rdi + 0x18], cl
mov rcx, qword [rdi]
mov dword [rdi + 0x14], ebx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140008c05
or eax, 0xffffffff
jmp 0x140008c10
mov eax, dword [rsp + 0x70]
cmp eax, 0x7fffe
jg 0x140008c17
mov dword [rdi + 8], 1
cmp eax, 0xffffffff
je 0x140008b81
add dword [rdi + 0x10], eax
jmp 0x140008b81
test ebp, ebp
jne 0x140008c3c
mov ebp, ecx
jmp 0x140008b81
test esi, esi
jne 0x140008c47
mov byte [r15], bl
jmp 0x140008c53
cmp ebp, ecx
jne 0x140008c47
mov dword [rdi + 0x10], edx
mov dword [rdi + 0x14], r8d
movsxd rax, esi
mov byte [rax + r15], bl
mov ebx, 1
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x140008d88
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
lea edx, [rbx + 0x18]
lea esi, [rbx + 0xe]
call fcn.14000a310
mov rdi, rax
test rax, rax
je 0x140008de2
mov rcx, rax
movzx eax, word [rax]
jmp 0x140008dcb
mov rdx, rcx
add rcx, 2
cmp eax, 0x2f
jne 0x140008dc8
mov eax, 0x5c
mov word [rdx], ax
movzx eax, word [rcx]
test eax, eax
jne 0x140008db4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, rdi
call fcn.14000522c
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400092b0
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
xor ebx, ebx
lea edx, [rbx + 0x1c]
call fcn.14000a310
mov rdi, rax
test rax, rax
je 0x140009303
mov rcx, rax
movzx eax, word [rax]
jmp 0x1400092f2
mov rdx, rcx
add rcx, 2
cmp eax, 0x2f
jne 0x1400092ef
mov eax, 0x5c
mov word [rdx], ax
movzx eax, word [rcx]
test eax, eax
jne 0x1400092db
mov edx, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, eax
mov rcx, rdi
call fcn.14000522c
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140009574
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r12, rdx
xor ebx, ebx
mov ecx, 0x8820
mov r13, r9
lea edx, [rbx + 0x45]
call fcn.1400013f4
mov r14, rax
test rax, rax
je 0x140009662
lea rsi, [rax + 0x208]
lea r15, [rsi + 0x208]
lea rdi, [r15 + 0x208]
lea rbp, [rdi + 0x8000]
test r12, r12
je 0x1400095e7
mov r8d, 0x104
mov rdx, rsi
mov rcx, r12
call fcn.14000a1f8
jmp 0x1400095ea
mov rsi, rbx
mov rcx, qword [rsp + 0x80]
mov r8d, 0x104
mov rdx, r15
call fcn.14000a1f8
test r13, r13
je 0x140009618
mov r8d, 0x4000
mov rdx, rdi
mov rcx, r13
call fcn.14000a1f8
jmp 0x14000961b
mov rdi, rbx
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x140009638
mov r8d, 0x104
mov rdx, rbp
call fcn.14000a1f8
jmp 0x14000963b
mov rbp, rbx
mov eax, dword [rsp + 0x98]
mov r9, rdi
mov rcx, qword [rsp + 0x70]
mov r8, r15
mov dword [rsp + 0x28], eax
mov rdx, rsi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rbx, rax
mov rcx, r14
call fcn.14000522c
mov rax, rbx
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000a9ec
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xe0
mov r12d, edx
mov rdi, rcx
or eax, 0xffffffff
mov edx, reloc.WS2_32.dll_send
mov ecx, 0x18000
mov dword [rbp + 0x7f], eax
mov r15d, r8d
call fcn.1400013f4
mov rsi, rax
test rax, rax
je 0x14000ab86
mov edx, 1
lea rbx, [rax + 0x10000]
mov rcx, rdi
call fcn.14000864c
mov r14, rax
mov rdx, rdi
mov rcx, rbx
cmp byte [rax], 0
jne 0x14000aa7b
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
movzx eax, byte [rbx]
mov rcx, rbx
jmp 0x14000aa75
mov rdx, rcx
inc rcx
cmp eax, 0x2f
jne 0x14000aa72
mov byte [rdx], 0x5c
movzx eax, byte [rcx]
test eax, eax
jne 0x14000aa64
jmp 0x14000aab3
mov r8d, r14d
sub r8d, edi
inc r8d
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
movzx ecx, byte [rbx]
mov rax, rbx
jmp 0x14000aaa3
mov rdx, rax
inc rax
cmp ecx, 0x2f
jne 0x14000aaa0
mov byte [rdx], 0x5c
movzx ecx, byte [rax]
test ecx, ecx
jne 0x14000aa92
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov r8d, 0x8000
mov rdx, rsi
mov rcx, rbx
call fcn.14000a1f8
mov edi, 0x68
lea rcx, [rbp - 0x39]
mov r8d, edi
xor edx, edx
mov rbx, rax
call sub.ntdll.dll_memset
xor edx, edx
mov dword [rbp - 0x39], edi
lea r8d, [rdi - 0x50]
mov dword [rbp + 3], 1
lea rcx, [rbp - 0x51]
mov word [rbp + 7], r12w
call sub.ntdll.dll_memset
lea rax, [rbp - 0x51]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rbp - 0x39]
mov rdx, rbx
mov qword [rsp + 0x40], rax
xor ecx, ecx
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14000ab86
mov rax, qword [rbp - 0x51]
lea rdx, [rbp - 0x59]
mov r9d, r15d
mov qword [rbp - 0x59], rax
xor r8d, r8d
lea ecx, [rdi - 0x67]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x14000ab72
mov rcx, qword [rbp - 0x51]
lea rdx, [rbp + 0x7f]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [rbp + 0x7f]
test eax, eax
mov eax, 0xffffffff
cmove ecx, eax
mov dword [rbp + 0x7f], ecx
mov rcx, qword [rbp - 0x51]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.14000522c
mov eax, dword [rbp + 0x7f]
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14000abb0
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0xe0
mov r14d, edx
mov rdi, rcx
xor ebx, ebx
mov ecx, 0x18000
lea edx, [rbx + 0x13]
call fcn.1400013f4
mov rsi, rax
test rax, rax
je 0x14000ad13
mov edx, 1
lea rbx, [rax + 0x10000]
mov rcx, rdi
call fcn.14000864c
mov rbp, rax
mov rdx, rdi
mov rcx, rbx
cmp byte [rax], 0
jne 0x14000ac34
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
movzx eax, byte [rbx]
mov rcx, rbx
jmp 0x14000ac2e
mov rdx, rcx
inc rcx
cmp eax, 0x2f
jne 0x14000ac2b
mov byte [rdx], 0x5c
movzx eax, byte [rcx]
test eax, eax
jne 0x14000ac1d
jmp 0x14000ac6c
mov r8d, ebp
sub r8d, edi
inc r8d
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
movzx ecx, byte [rbx]
mov rax, rbx
jmp 0x14000ac5c
mov rdx, rax
inc rax
cmp ecx, 0x2f
jne 0x14000ac59
mov byte [rdx], 0x5c
movzx ecx, byte [rax]
test ecx, ecx
jne 0x14000ac4b
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov r8d, 0x8000
mov rdx, rsi
mov rcx, rbx
call fcn.14000a1f8
mov edi, 0x68
lea rcx, [rsp + 0x70]
mov r8d, edi
xor edx, edx
mov rbx, rax
call sub.ntdll.dll_memset
xor edx, edx
mov dword [rsp + 0x70], edi
lea r8d, [rdi - 0x50]
mov dword [rsp + 0xac], 1
lea rcx, [rsp + 0x50]
mov word [rsp + 0xb0], r14w
call sub.ntdll.dll_memset
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rsp + 0x70]
mov rdx, rbx
mov qword [rsp + 0x40], rax
xor ecx, ecx
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test eax, eax
je 0x14000ad13
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.14000522c
lea r11, [rsp + 0xe0]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x14000f220
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x70]
xor edi, edi
call fcn.14000fdd4
cmp eax, 0xc8
jne 0x14000f2c1
mov rcx, rbx
call fcn.140004f6c
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14000f2c1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
lea r9, [rsp + 0x78]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetFileTime]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea rcx, [rsp + 0x20]
call fcn.1400087a8
lea rcx, [rsp + 0x30]
mov ebp, eax
call fcn.1400087a8
sub ebp, eax
cmp ebx, dword [rsp + 0x70]
jne 0x14000f2b4
mov ecx, ebp
neg ecx
test ebp, ebp
cmovns ecx, ebp
cmp ecx, 1
jle 0x14000f2b9
mov edi, 1
mov rcx, rsi
call fcn.140004ef4
mov rbx, qword [rsp + 0x60]
mov eax, edi
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x14000f7ac
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x50
xor ebx, ebx
mov ebp, r9d
mov r15d, r8d
mov rsi, rdx
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r14d, eax
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], ebx
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r8d, r15d
mov rdx, rsi
mov rcx, r12
call fcn.1400102d0
mov edi, eax
test eax, eax
jg 0x14000f822
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r14d
cmp eax, 0x1388
jb 0x14000f7e0
cmp edi, 0xc
jl 0x14000f839
mov rcx, rsi
call fcn.14000882c
cmp eax, ebp
mov ecx, 1
cmove ebx, ecx
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret

Function at 0x14000f96c
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call qword [sym.imp.WS2_32.dll_inet_addr]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14000f9bd
mov edx, 0x2e
mov rcx, rdi
call fcn.1400090c8
test eax, eax
jns 0x14000f9a6
mov rcx, rdi
call fcn.14000fbb4
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14000f9bd
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x14000f9bd
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov ebx, dword [rcx]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000fbb4
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor edi, edi
mov r15, rcx
mov esi, edi
lea r13d, [rdi + 1]
mov edx, r13d
call fcn.140010148
mov ebp, eax
cmp eax, 0xffffffff
jne 0x14000fda2
mov edx, 0x1d1
mov ecx, 0x254
call fcn.1400013f4
mov rsi, rax
test rax, rax
je 0x14000fda2
lea r14, [rax + 0x200]
mov dword [rsp + 0x78], 0x3a4
mov rdx, r14
lea r9, [rsp + 0x78]
lea r8d, [rdi + 0x40]
lea rcx, str.smartcol.xyz:932
call fcn.140010714
xor edx, edx
xor ecx, ecx
call fcn.140010bc4
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x14000fda2
lea r8, [rsp + 0x80]
mov dword [rsp + 0x80], r13d
mov edx, 0x8004667e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor edx, edx
mov r8d, 0x200
mov rcx, rsi
call sub.ntdll.dll_memset
movzx ecx, word [0x14003e180]
mov r9, r15
mov ebx, ecx
xor r8d, r8d
add cx, r13w
mov edx, ebx
mov word [0x14003e180], cx
mov rcx, rsi
call fcn.14000f85c
xor edx, edx
lea rcx, [rsi + 6]
call fcn.14000883c
mov rcx, rsi
call fcn.14000f608
mov r8d, eax
mov dword [rsp + 0x28], edi
mov eax, dword [rsp + 0x78]
mov r9, r14
mov rdx, rsi
mov dword [rsp + 0x20], eax
mov rcx, r12
call fcn.140010380
mov r9d, ebx
mov r8d, 0x200
mov rdx, rsi
mov rcx, r12
call fcn.14000f7ac
test eax, eax
je 0x14000fd99
lea rcx, [rsi + 2]
call fcn.14000882c
test al, 0xf
jne 0x14000fd99
lea rcx, [rsi + 4]
lea rbx, [rsi + 0xc]
call fcn.14000882c
mov r14d, eax
test eax, eax
je 0x14000fd1a
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call fcn.14000f6b4
lea rbx, [rax + 4]
sub r14d, r13d
jne 0x14000fd01
lea rcx, [rsi + 6]
call fcn.14000882c
mov r13d, eax
test eax, eax
jle 0x14000fd99
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call fcn.14000f6b4
mov rbx, rax
lea rcx, [rax + 8]
call fcn.14000882c
mov rcx, rbx
movsxd r14, eax
call fcn.14000882c
cmp eax, 1
jne 0x14000fd6a
lea rcx, [rbx + 2]
call fcn.14000882c
cmp eax, 1
jne 0x14000fd6a
cmp r14d, 4
je 0x14000fd78
inc edi
lea rbx, [rbx + r14 + 0xa]
cmp edi, r13d
jge 0x14000fd99
jmp 0x14000fd2a
lea rcx, [rbx + 0xa]
call fcn.1400087ec
lea rcx, [rbx + 4]
mov ebp, eax
call fcn.14000880c
mov r8d, eax
mov edx, ebp
mov rcx, r15
call fcn.14001006c
mov rcx, r12
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, rsi
call fcn.14000522c
cmp ebp, 0xffffffff
jne 0x14000fdbb
xor edx, edx
mov rcx, r15
call fcn.140010148
mov ebp, eax
mov rbx, qword [rsp + 0x70]
mov eax, ebp
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000fdd4
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov r13, r8
xor r15d, r15d
mov rbp, rcx
mov dword [rdx], r15d
xor edx, edx
mov rcx, r13
lea r8d, [r15 + 0x10]
call sub.ntdll.dll_memset
mov ebx, 0x1f4
mov ecx, 0x1410
lea edx, [rbx - 0x44]
call fcn.1400013f4
mov rsi, rax
test rax, rax
je 0x140010001
lea rdi, [rax + 0x1000]
mov rcx, rbp
lea rbx, [rdi + 0x208]
mov rdx, rbx
lea r9d, [r15 + 0x50]
lea r8, [rsp + 0xc8]
lea r12, [rbx + 0x104]
call fcn.1400107d8
mov r14, rax
test rax, rax
jne 0x14000fe63
mov ebx, 0x190
jmp 0x140010001
mov edx, dword [rsp + 0xc8]
mov rcx, rbx
call fcn.14001096c
mov qword [rsp + 0x68], rax
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x14000fe8a
mov ebx, 0x1e4
jmp 0x140010001
lea r8, [rsp + 0x60]
mov dword [rsp + 0x60], 1
mov edx, 0x8004667e
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r8d, dword [rsp + 0xc8]
mov r9, r14
mov qword [rsp + 0x50], r15
mov rdx, rbx
mov qword [rsp + 0x48], r15
mov rcx, rbp
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
call fcn.140010518
mov r9d, 0x2710
mov r8d, 0xfff
mov rdx, rsi
mov rcx, rbp
call fcn.140010408
test eax, eax
jg 0x14000ff03
mov ebx, 0x1e4
jmp 0x14000fff8
cdqe
mov r8d, 0x104
mov rdx, rdi
mov rcx, rsi
mov byte [rax + rsi], r15b
call fcn.140002754
mov edx, 1
mov rcx, rdi
mov r14, rax
call fcn.14000864c
mov rcx, rax
xor edx, edx
call fcn.1400019a8
mov r8d, 5
lea rdx, str.HTTP_
mov rcx, rdi
mov ebx, eax
call fcn.140033a28
test eax, eax
je 0x14000ff59
mov ebx, 0x19c
jmp 0x14000fff8
cmp byte [r14], r15b
je 0x14000fff8
mov rbp, qword [rsp + 0xb8]
mov r8d, 0x104
mov rdx, rdi
mov rcx, r14
call fcn.140002754
mov r14, rax
cmp byte [rdi], r15b
je 0x14000fff3
mov r8, r12
lea rdx, [0x1400349f8]
mov rcx, rdi
call fcn.14000752c
mov edx, 1
mov rcx, rdi
call fcn.14000864c
lea rdx, str.Content_Length:
mov rcx, r12
mov r15, rax
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x14000ffc8
xor edx, edx
mov rcx, r15
call fcn.1400019a8
mov dword [rbp], eax
jmp 0x14000ffe7
lea rdx, str.Last_Modified:
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x14000ffe7
mov rdx, r13
mov rcx, r15
call fcn.14000f024
xor r15d, r15d
cmp byte [r14], r15b
jne 0x14000ff6a
mov rbp, qword [rsp + 0x68]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, rsi
call fcn.14000522c
mov eax, ebx
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400102d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x50
mov rdi, rdx
mov ebx, r8d
xor edx, edx
mov rsi, rcx
lea rcx, [rax - 0x20]
mov rbp, r9
lea r8d, [rdx + 0x10]
call sub.ntdll.dll_memset
mov r9d, dword [rsp + 0x88]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov r8d, ebx
lea rax, [rsp + 0x38]
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
test eax, eax
jle 0x140010366
test rbp, rbp
je 0x140010349
mov edx, dword [rsp + 0x3c]
mov rcx, rbp
call fcn.140010024
mov rbx, qword [rsp + 0x80]
test rbx, rbx
je 0x140010366
movzx ecx, word [rsp + 0x3a]
call qword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
mov dword [rbx], eax
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
test r9, r9
jne 0x1400103f2
or ecx, 0xffffffff
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x34], eax
movzx r8d, word [rsp + 0x70]
lea rcx, [rsp + 0x30]
mov edx, eax
call fcn.140010920
mov r9d, dword [rsp + 0x78]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
mov r8d, ebx
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_sendto]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, r9
call fcn.14000f96c
mov dword [rsp + 0x34], eax
cmp eax, 0xffffffff
jne 0x1400103aa
or eax, 0xffffffff
jmp 0x1400103e2

Function at 0x140010408
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov ebp, r9d
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r14d, eax
jmp 0x14001045d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x14001047a
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r14d
cmp eax, ebp
jae 0x140010475
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x140010438
jmp 0x14001047f
or eax, 0xffffffff
jmp 0x14001047f
mov eax, 0xfffffffe
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14001049c
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
test r8d, r8d
jle 0x1400104ff
movsxd rdx, ebx
xor r9d, r9d
add rdx, rsi
mov r8d, edi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x1400104df
add ebx, eax
sub edi, eax
jmp 0x1400104f7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1400104fd
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
test edi, edi
jg 0x1400104c0
jmp 0x1400104ff
xor ebx, ebx
mov rbp, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rdx, rbx
mov rcx, rdi
mov r8d, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14001049c

Function at 0x14001096c
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor r8d, r8d
mov edi, edx
mov rsi, rcx
lea edx, [r8 + 1]
lea ecx, [rdx + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400109da
mov rcx, rsi
call fcn.14000f96c
mov edx, eax
lea rcx, [rsp + 0x20]
movzx r8d, di
call fcn.140010920
cmp dword [rsp + 0x24], 0xffffffff
je 0x1400109d1
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1400109de
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
or rbx, 0xffffffffffffffff
mov rsi, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140010b50
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x1c0
xor ebx, ebx
lea rdi, [rsp + 0x20]
test rcx, rcx
mov esi, 0x202
cmovne rdi, rcx
mov ecx, esi
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140010b8f
cmp word [rdi], si
je 0x140010bb4
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor r8d, r8d
xor ecx, ecx
lea edx, [r8 + 0x20]
call fcn.140003fa0
lea r11, [rsp + 0x1c0]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov ebx, 1
jmp 0x140010b9d