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

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000268d
xor eax, eax
jmp 0x1400027f9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400026c7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400026c7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1400027f9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400027ec
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000270a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140002735
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400027f1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400027a4
sub eax, 1
je 0x1400027a4
cmp eax, 2
jne 0x1400027ec
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400027f1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400027d2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1400027ec
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400027f1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140003430
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002d70
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002e43
cmp byte [rcx + 0x71], 0
je 0x140002e43
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140002e3f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002e04
sub eax, 1
je 0x140002e08
cmp eax, 2
jne 0x140002e3f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003430
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002e36
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140002e3f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140002dec
xor al, al
jmp 0x140002dec
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003430
add rsp, 0x60
pop rbx
ret

Function at 0x140003db0
Capabilities:
Parse pe header

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

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call fcn.1002f120
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
int3

Function at 0x1002ee90
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x1004f960]
cmp word [rax], 0x5a4d
jne 0x1002eefc
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x1002eefc
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1002eefc
movzx edx, word [rax + 6]
test edx, edx
je 0x1002eefc
sub rcx, qword [0x1004f960]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x1002eee9
add rax, 0x28
add edx, 0xffffffff
je 0x1002eefc
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x1002eee0
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x1002eee0
ret
xor eax, eax
ret

Function at 0x1002ef00
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x1004f960]
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1002ef2b
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x1002ef2b
cmp word [rcx + rdx + 0x18], 0x20b
jne 0x1002ef2b
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1002ef90
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1004f960]
cmp word [rax], 0x5a4d
jne 0x1002efb4
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1002efb4
cmp word [rax + rcx + 0x18], 0x20b
je 0x1002efb6
xor eax, eax
ret

Function at 0x100314f0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
mov rdi, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
call rdi
lea rcx, str.libcabi:
mov edx, 0xb
mov r8d, 1
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov ecx, 2
call rdi
mov r8, qword [rsp + 0x20]
mov rcx, rax
mov rdx, rsi
call fcn.1002f120
mov ecx, 2
call rdi
mov ecx, 0xa
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
int3
Function at 0x140001f60
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov eax, dword [rcx + 0x1fc]
mov rbx, rcx
test eax, eax
jne 0x140002051
nop dword [rax + rax]
mov r8d, dword [rbx + 0x50]
xor r9d, r9d
mov rdx, qword [rbx + 0x90]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test eax, eax
jle 0x140001ffa
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbx]
mov r8d, edi
mov rdx, qword [rbx + 0x90]
mov r9, qword [rcx + 0x150]
mov rcx, rbx
call r9
cmp eax, 2
jne 0x140002003
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 0x4c7
cmove eax, ecx
mov dword [rbx + 0x18], 1
mov dword [rbx + 0x1c], 4
mov dword [rbx + 0x20], eax
xor eax, eax
mov dword [rbx + 0x24], 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp edi, 0xffffffff
je 0x140002044
test edi, edi
je 0x140002021
mov eax, dword [rbx + 0x1fc]
test eax, eax
je 0x140001f80
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov dword [rbx + 0x18], 1
xor eax, eax
mov qword [rbx + 0x1c], 5
mov dword [rbx + 0x24], 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x140001fd5
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rdi
ret
Function at 0x1403afa58
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r14d, ecx
call fcn.1403afa14
mov rdx, qword [rax + 0x18]
mov rbp, qword [rdx + 0x20]
mov r11, rbp
mov rcx, r11
call fcn.1403afa50
mov r11, qword [r11]
mov r10, qword [rax + 0x30]
test r10, r10
je 0x1403afae3
movsxd rax, dword [r10 + 0x3c]
mov ecx, dword [rax + r10 + 0x88]
test ecx, ecx
je 0x1403afae3
lea rdi, [r10 + rcx]
mov ecx, dword [rdi + 0xc]
add rcx, r10
call fcn.1403afa20
mov esi, dword [rdi + 0x20]
xor ebx, ebx
add rsi, r10
mov r15d, eax
cmp dword [rdi + 0x18], ebx
jbe 0x1403afae3
mov ecx, dword [rsi]
add rcx, r10
call fcn.1403afa20
add eax, r15d
cmp r14d, eax
je 0x1403afb03
inc ebx
add rsi, 4
cmp ebx, dword [rdi + 0x18]
jb 0x1403afac6
cmp r11, rbp
jne 0x1403afa83
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
mov ecx, dword [rdi + 0x24]
add rcx, r10
movzx r8d, word [rcx + rbx*2]
mov ecx, dword [rdi + 0x1c]
add rcx, r10
mov eax, dword [rcx + r8*4]
add rax, r10
jmp 0x1403afaea
Function at 0x1403afefc
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
mov ecx, 0x7bac0721
call fcn.1403afa58
mov ecx, 0xf477a895
mov r13, rax
call fcn.1403afa58
lea rcx, [rbp - 0x50]
mov qword [rbp + 0x40], rax
mov dword [rbp - 0x50], 0x6c64746e
xor r15d, r15d
mov dword [rbp - 0x4c], 0x6c642e6c
mov word [rbp - 0x48], WSAGetLastError
mov dword [rbp - 0x20], 0x526c7452
mov dword [rbp - 0x1c], 0x6c6c4165
mov dword [rbp - 0x18], 0x7461636f
mov dword [rbp - 0x14], 0x61654865
mov word [rbp - 0x10], reloc.WS2_32.dll_WSASetLastError
call fcn.1403afb20
mov rcx, rax
lea rdx, [rbp - 0x20]
call fcn.1403afb40
lea rcx, [rbp - 0x40]
mov qword [rbp + 0x48], rax
mov dword [rbp - 0x40], 0x6c64746e
mov dword [rbp - 0x3c], 0x6c642e6c
mov word [rbp - 0x38], WSAGetLastError
mov dword [rbp - 0x30], 0x416c7452
mov dword [rbp - 0x2c], 0x636f6c6c
mov dword [rbp - 0x28], 0x48657461
mov dword [rbp - 0x24], 0x706165
call fcn.1403afb20
mov rcx, rax
lea rdx, [rbp - 0x30]
call fcn.1403afb40
mov rcx, qword [rbx]
lea edi, [r15 + 1]
mov r12, qword [rbx + 8]
mov qword [rbp + 0x50], rax
cmp dword [rcx + 0x94], r15d
jbe 0x1403b010f
mov esi, dword [rcx + 0x90]
lea edx, [rdi + 0x13]
add rsi, r12
mov rcx, rsi
call r13
test eax, eax
jne 0x1403b010f
add rsi, 0x10
mov edi, 1
cmp dword [rsi - 4], r15d
je 0x1403b010f
mov ecx, dword [rsi - 4]
mov rdx, qword [rbx + 0x38]
add rcx, r12
call qword [rbx + 0x20]
mov r14, rax
test rax, rax
je 0x1403b010c
mov ecx, dword [rbx + 0x18]
mov r15, qword [rbx + 0x10]
inc ecx
movsxd rdi, ecx
shl rdi, 3
call qword [rbp + 0x40]
mov rcx, rax
test r15, r15
je 0x1403b0052
mov r9, rdi
mov r8, r15
xor edx, edx
call qword [rbp + 0x48]
jmp 0x1403b005d
mov r8, rdi
mov edx, 8
call qword [rbp + 0x50]
mov rcx, rax
test rax, rax
je 0x1403b00fe
mov qword [rbx + 0x10], rax
movsxd rax, dword [rbx + 0x18]
mov qword [rcx + rax*8], r14
inc dword [rbx + 0x18]
mov eax, dword [rsi - 0x10]
test eax, eax
jne 0x1403b0081
mov eax, dword [rsi]
mov r15d, eax
mov edi, 1
add r15, r12
mov rax, qword [r15]
test rax, rax
je 0x1403b00d3
mov edi, dword [rsi]
add rdi, r12
mov r8, qword [rbx + 0x38]
mov rcx, r14
test rax, rax
jns 0x1403b00ab
movzx edx, word [r15]
jmp 0x1403b00b5
mov rdx, qword [r15]
add rdx, 2
add rdx, r12
call qword [rbx + 0x28]
mov qword [rdi], rax
test rax, rax
je 0x1403b00f0
add r15, 8
add rdi, 8
mov rax, qword [r15]
test rax, rax
jne 0x1403b0099
lea edi, [rax + 1]
add rsi, 0x14
mov edx, setsockopt
lea rcx, [rsi - 0x10]
call r13
xor r15d, r15d
test eax, eax
je 0x1403b0002
jmp 0x1403b010f
mov rdx, qword [rbx + 0x38]
xor edi, edi
mov rcx, r14
call qword [rbx + 0x30]
jmp 0x1403b010f
mov rdx, qword [rbx + 0x38]
mov rcx, r14
call qword [rbx + 0x30]
xor edi, edi
jmp 0x1403b010f
mov edi, r15d
mov rbx, qword [rsp + 0xc8]
mov eax, edi
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1403b016c
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r9
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov r15, rcx
mov ecx, 0x4faef192
call fcn.1403afa58
mov ecx, 0x9e5a8833
mov r12, rax
call fcn.1403afa58
mov ecx, 0xf477a895
mov rbx, rax
call fcn.1403afa58
mov ecx, 0xc9f93d32
mov rdi, rax
call fcn.1403afa58
lea rcx, [rbp - 0x20]
mov qword [rbp + 0x48], rax
mov dword [rbp - 0x20], 0x6c64746e
mov dword [rbp - 0x1c], 0x6c642e6c
mov word [rbp - 0x18], WSAGetLastError
mov dword [rbp - 0x10], 0x416c7452
mov dword [rbp - 0xc], 0x636f6c6c
mov dword [rbp - 8], 0x48657461
mov dword [rbp - 4], 0x706165
call fcn.1403afb20
mov rcx, rax
lea rdx, [rbp - 0x10]
call fcn.1403afb40
mov r13, rax
mov eax, 0x5a4d
cmp word [r15], ax
jne 0x1403b0289
movsxd rsi, dword [r15 + 0x3c]
add rsi, r15
cmp dword [rsi], 0x4550
jne 0x1403b0289
mov edx, dword [rsi + 0x50]
mov r9d, 4
mov rcx, qword [rsi + 0x30]
mov r8d, 0x3000
call rbx
mov r14, rax
test rax, rax
jne 0x1403b025f
mov edx, dword [rsi + 0x50]
lea r9d, [rax + 4]
xor ecx, ecx
mov r8d, 0x3000
call rbx
mov r14, rax
test rax, rax
je 0x1403b0289
call rdi
mov edx, 8
mov rcx, rax
lea r8d, [rdx + 0x38]
call r13
xor r13d, r13d
mov rdi, rax
mov rcx, r14
test rax, rax
jne 0x1403b02a9
xor edx, edx
mov r8d, 0x8000
call r12
xor eax, eax
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov qword [rax + 8], r14
mov r9d, 4
mov qword [rax + 0x18], r13
mov r8d, 0x1000
mov qword [rax + 0x10], r13
lea rax, [0x1403b012c]
mov qword [rdi + 0x20], rax
lea rax, [0x1403b0134]
mov qword [rdi + 0x28], rax
lea rax, [0x1403b013c]
mov qword [rdi + 0x30], rax
mov qword [rdi + 0x38], r13
mov edx, dword [rsi + 0x54]
call rbx
mov r8d, dword [rsi + 0x54]
mov rdx, r15
mov rcx, rax
mov rbx, rax
call qword [rbp + 0x48]
movsxd rax, dword [r15 + 0x3c]
mov r8, rdi
add rax, rbx
mov rdx, rsi
mov qword [rdi], rax
mov rcx, r15
mov qword [rax + 0x30], r14
call fcn.1403afb70
mov rdx, r14
sub rdx, qword [rsi + 0x30]
je 0x1403b0328
mov rcx, rdi
call fcn.1403afe60
mov rcx, rdi
call fcn.1403afefc
test eax, eax
je 0x1403b0289
mov rcx, rdi
call fcn.1403afc64
mov rcx, rdi
call fcn.1403afe14
mov rax, qword [rdi]
cmp dword [rax + 0x28], r13d
je 0x1403b0370
mov eax, dword [rax + 0x28]
xor r8d, r8d
add rax, r14
mov rcx, r14
lea ebx, [r8 + 1]
mov edx, ebx
call rax
test eax, eax
je 0x1403b0289
mov dword [rdi + 0x1c], ebx
mov rax, rdi
jmp 0x1403b028b

Function at 0x1403b0440
Capabilities:
Encode data using xor

Disassembly:
movsxd r8, edx
test edx, edx
jle 0x1403b0453
xor byte [rcx], 0x3a
inc rcx
sub r8, 1
jne 0x1403b0447
mov eax, 1
ret
Function at 0x1408e5d50
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x110
mov rax, qword [0x140916040]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov rdi, r8
movzx ebp, dx
mov rsi, rcx
call fcn.1408e5c80
movzx ecx, ax
mov word [rdi], cx
test cx, cx
je 0x1408e5df5
cmp ecx, 2
je 0x1408e5da6
cmp ecx, 0x17
je 0x1408e5da6
mov ecx, 0x2741
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor ebx, ebx
jmp 0x1408e5eba
cmp ecx, 2
mov edx, 0x1c
mov eax, reloc.WS2_32.dll_recv
mov r9, rdi
cmovne eax, edx
mov edx, ecx
mov dword [rsp + 0x30], eax
xor r8d, r8d
lea rax, [rsp + 0x30]
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSAStringToAddressW]
test eax, eax
jne 0x1408e5d9f
test bp, bp
je 0x1408e5deb
movzx ecx, bp
call qword [sym.imp.WS2_32.dll_htons]
mov word [rdi + 2], ax
mov ebx, 1
jmp 0x1408e5eba
xor eax, eax
mov dword [rsp + 0x38], 0xc00
xorps xmm0, xmm0
lea rcx, [rsp + 0x70]
movups xmmword [rdi + 2], xmm0
mov qword [rdi + 0x12], rax
xor ebx, ebx
mov word [rdi + 0x1a], ax
xorps xmm1, xmm1
movzx eax, word [rdi]
mov r8d, 3
mov dword [rsp + 0x3c], eax
mov rdx, rsi
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x70], rax
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x60], rbx
movdqu xmmword [rsp + 0x50], xmm1
call fcn.1408e6440
mov rcx, qword [rsp + 0x70]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov rcx, qword [rsp + 0x70]
mov esi, eax
lea rax, [rsp + 0x78]
cmp rcx, rax
je 0x1408e5e7a
call fcn.1408eda50
test esi, esi
je 0x1408e5e82
mov ecx, esi
jmp 0x1408e5eb4
mov rsi, qword [rsp + 0x30]
mov rdx, rsi
test rsi, rsi
je 0x1408e5ea6
nop
mov eax, dword [rdx + 4]
cmp eax, 2
je 0x1408e5edf
cmp eax, 0x17
je 0x1408e5edf
mov rdx, qword [rdx + 0x28]
test rdx, rdx
jne 0x1408e5e90
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov ecx, 0x2af9
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, ebx
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.1408e81d0
mov rbx, qword [rsp + 0x148]
add rsp, 0x110
pop rdi
pop rsi
pop rbp
ret
mov r8, qword [rdx + 0x10]
mov rcx, rdi
mov rdx, qword [rdx + 0x20]
call fcn.140906ea0
mov rcx, rsi
mov ebx, 1
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
movzx ecx, bp
call qword [sym.imp.WS2_32.dll_htons]
mov word [rdi + 2], ax
jmp 0x1408e5eba
Function at 0x1408e5f10
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
mov rdi, r8
mov dword [rax + 0x28], 0x1c
mov rsi, rdx
lea r8, [rax + 0x28]
xor ebx, ebx
lea rdx, [rax - 0x28]
mov word [rax - 0x28], bx
mov r14, r9
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1408e5f51
xor eax, eax
jmp 0x1408e5fcc
movzx ecx, word [rsp + 0x22]
mov qword [rsp + 0x50], rbp
movzx ebp, word [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [r14], ax
lea rcx, [rsp + 0x28]
movzx eax, word [rsp + 0x20]
mov r8, rsi
movsxd r9, dword [rdi]
lea rdx, [rsp + 0x24]
cmp eax, 2
cmovne rdx, rcx
mov ecx, eax
call qword [sym.imp.WS2_32.dll_InetNtopW]
test rax, rax
je 0x1408e5fa7
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
mov ebx, 1
mov dword [rdi], eax
jmp 0x1408e5fc5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x57
jne 0x1408e5fc5
cmp bp, 2
mov ecx, reloc.WS2_32.dll_shutdown
mov eax, 0x41
cmovne ecx, eax
mov dword [rdi], ecx
mov rbp, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1408e5ff0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov r15d, r9d
mov rsi, r8
mov r14, rdx
mov rbp, rcx
mov rbx, qword [rdx + 8]
xor edi, edi
test rbx, rbx
je 0x1408e60a5
cmp qword [rbx], rdi
je 0x1408e6097
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x1408e6046
mov rax, 0xffffffffffffffff
jmp 0x1408e60ce
lea rdx, str.CreateFileTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1408e609c
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov rcx, qword [rbx]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
mov r8d, 1
mov rcx, rbp
call rax
jmp 0x1408e60ce
cmp dword [rbx + 8], edi
jne 0x1408e60a5
mov rax, 0xffffffffffffffff
jmp 0x1408e60ce
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x1408e60db
call fcn.1408e5c50
jmp 0x1408e60e0
mov qword [r14], rax
mov eax, edi
test eax, eax
js 0x1408e61d2
lea rdx, [rsp + 0x7c]
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x78], eax
cmp eax, 0xffffffff
jne 0x1408e610c
call fcn.1408e5c50
test eax, eax
js 0x1408e61d2
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1408e61cd
cmp rcx, r15
ja 0x1408e61c6
mov rbx, qword [r14]
lea rdx, [rsp + 0x7c]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x78], eax
mov r9, qword [rsp + 0x78]
shr r9, 0x20
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, rax
mov qword [rsi + 0x10], rax
test rax, rax
jne 0x1408e6170
call fcn.1408e5c50
mov ebx, eax
jmp 0x1408e61d2
mov rax, qword [rsp + 0x78]
mov qword [rsi + 8], rax
mov dword [rsi + 0x20], 4
mov qword [rsi + 0x18], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 4
call qword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov qword [rsi], rax
test rax, rax
jne 0x1408e61c0
call fcn.1408e5c50
mov ebx, eax
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x10], rdi
mov eax, ebx
jmp 0x1408e61d2
mov ebx, edi
mov eax, ebx
jmp 0x1408e61d2
mov eax, 0x800700df
jmp 0x1408e61d2
mov eax, 0x800703ee
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x1408e61f0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov dword [rsp + 0x50], 1
mov rdi, rcx
mov dword [rsp + 0x48], 0
test edx, edx
jne 0x1408e6218
lea r9, [rsp + 0x50]
jmp 0x1408e6222
cmp edx, 1
jne 0x1408e626b
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0xfffffffb
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x48]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 4
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.WS2_32.dll_setsockopt]
or eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
cmp edx, 2
jne 0x1408e62be
lea r9, [rsp + 0x48]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0xfffffffb
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 4
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.WS2_32.dll_setsockopt]
or eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x40]
mov eax, 0xffffffff
add rsp, 0x30
pop rdi
ret

Function at 0x1408e7210
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1408e7288
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1408e7288
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x1408e7275
nop
cmp rbx, rcx
jae 0x1408e7288
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x1408e7260
cmp rbx, rcx
jae 0x1408e7288
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
jmp 0x1408e728a
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret