joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1419dd058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1419dd1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1419dd089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1419dd06f
add dl, dl
jne 0x1419dd096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1419dd0f6
xor eax, eax
add dl, dl
jne 0x1419dd0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1419dd1ad
add dl, dl
jne 0x1419dd0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1419dd0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1419dd0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1419dd0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1419dd0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1419dd07e
mov eax, 1
add dl, dl
jne 0x1419dd106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1419dd113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1419dd0fb
sub eax, ebx
mov ebx, 1
jne 0x1419dd14c
mov ecx, 1
add dl, dl
jne 0x1419dd12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1419dd13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1419dd123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1419dd07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1419dd168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1419dd175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1419dd15d
cmp eax, 0x7d00
jae 0x1419dd19b
cmp eax, 0x500
jb 0x1419dd196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1419dd07e
cmp eax, 0x7f
ja 0x1419dd19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1419dd07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1419dd1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1419dd07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001890
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 0x140001905
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140001905
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x1400018f5
nop
cmp rbx, rcx
jae 0x140001905
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x1400018e0
cmp rbx, rcx
jae 0x140001905
cmp word [rbx], 0
je 0x140001905
mov rax, rbx
jmp 0x140001907
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140002230
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1400cd070]
xor rax, rsp
mov qword [rsp + 0x40], rax
call fcn.140001cb0
test al, al
je 0x140002379
call fcn.1400019f0
mov rcx, rax
test rax, rax
je 0x140002396
mov rax, qword [rax]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x28]
call fcn.14001c9f0
nop
mov r8, qword [rax]
lea rdx, [0x1400be3a0]
lea rcx, [rsp + 0x38]
call fcn.140002720
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400022be
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop
xor ebx, ebx
mov qword [rsp + 0x30], rbx
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.14001cfd0
nop
mov dword [rsp + 0x20], ebx
mov rbx, qword [rsp + 0x30]
mov rdx, rbx
lea rcx, [0x140083540]
call fcn.14001cde0
lea rsi, [0x1400cd140]
cmp qword [reloc.WS2_32.dll_ntohs], 0x10
cmovae rsi, qword [0x1400cd140]
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
or eax, ecx
jge 0x140002332
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1400025b0
mov rbx, qword [rsp + 0x30]
lea r9, [rsp + 0x20]
mov rdx, rsi
mov rcx, rbx
call fcn.14001cb70
nop
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000235d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140002379
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140072f40
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov ecx, 0x80004005
call fcn.140001850
int3
Function at 0x140007cf0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1400cd070]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword [0x1400d22d8]
test rax, rax
jne 0x140007e03
lea rdi, [0x1400d2390]
mov qword [rsp + 0x30], rdi
mov rcx, rdi
call fcn.1400701e8
test eax, eax
jne 0x140007e39
cmp qword [0x1400d22d8], 0
jne 0x140007df4
lea ecx, [rax + 0x68]
call fcn.1400731c8
mov rbx, rax
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx + 0x20], xmm0
movups xmmword [rbx + 0x30], xmm0
movups xmmword [rbx + 0x40], xmm0
movups xmmword [rbx + 0x50], xmm0
mov qword [rbx + 0x60], rax
xor esi, esi
mov qword [rbx], rsi
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], rsi
lea rcx, [rbx + 0x18]
lea edx, [rax + 2]
call fcn.1400701b8
nop
lea ecx, [rsi + 8]
call fcn.1400731c8
mov qword [rax], rbx
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x14001faf0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140007e2a
cmp dword [rsp + 0x48], esi
je 0x140007e41
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x50]
call fcn.1400702cc
test eax, eax
jne 0x140007e22
mov qword [0x1400d22d8], rbx
mov rcx, rdi
call fcn.1400701f0
mov rax, qword [0x1400d22d8]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140072f40
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov ecx, eax
call fcn.14006fe9c
nop
mov dword [rsp + 0x48], esi
mov ecx, 6
call fcn.14006fed8
nop
mov ecx, eax
call fcn.14006fe9c
nop
mov ecx, 1
call fcn.14006fed8
int3
Function at 0x14000a460
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1400cd070]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, r8
cmp qword [rdx + 0x18], 0x10
jb 0x14000a48e
mov rdx, qword [rdx]
mov rcx, rdx
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rsi, rax
test rax, rax
je 0x14000a5ed
mov rcx, qword [rax + 0x18]
cmp qword [rcx], 0
je 0x14000a5e8
xor ebp, ebp
mov edi, ebp
nop word [rax + rax]
mov rax, qword [rdi + rcx]
mov r8d, dword [rax]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
mov dword [rsp + 0xb0], eax
mov edx, r8d
shr edx, 0x18
mov eax, r8d
shr eax, 0x10
movzx ecx, al
mov eax, r8d
shr eax, 8
movzx r9d, al
movzx r8d, r8b
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], ecx
lea rdx, str._d._d._d._d
lea rcx, [rsp + 0x50]
call fcn.140008640
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x30], 0
lea rax, [rsp + 0x50]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x14000a554
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140003150
nop
mov rax, qword [rbx + 8]
cmp rax, qword [rbx + 0x10]
je 0x14000a58c
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.1400024d0
add qword [rbx + 8], 0x20
jmp 0x14000a59c
lea r8, [rsp + 0x30]
mov rdx, rax
mov rcx, rbx
call fcn.14000a990
add rdi, 8
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x14000a5d9
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a5d4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000a610
call fcn.140073454
mov rcx, qword [rsi + 0x18]
cmp qword [rdi + rcx], 0
jne 0x14000a4c0
mov eax, 1
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140072f40
mov rbx, qword [rsp + 0xf0]
add rsp, 0xd0
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14000b4a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x270
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x14000b501
lea r8, [r10 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x14000b4c0
mov ecx, dword [r10]
jmp 0x14000b5ea
cmp ecx, 0x4e0
jb 0x14000b5ea
lea r11, [r10 + 0x9c4]
mov qword [rsp], rbx
mov eax, dword [r11]
mov ebx, 0xe3
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x14000b520
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x14000b570
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x14000d2b0
Capabilities:
Check if file exists
Create directory

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
lea rax, vtable.CConfig.0
mov rbp, rdx
mov qword [rcx], rax
mov r14, rcx
lea rax, str..ini
mov edx, 2
mov qword [rcx + 0x318], rax
mov r15, r8
lea rax, [0x1400bde91]
mov qword [rcx + 0x320], rax
add rcx, 0x328
call fcn.1400701b8
xor edx, edx
lea rcx, [r14 + 8]
mov r8d, 0x104
call sub.VCRUNTIME140.dll_memset
lea rdi, [r14 + 0x10c]
xor edx, edx
mov rcx, rdi
mov r8d, 0x104
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [r14 + 0x210]
mov r8d, 0x104
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x104
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov r8d, 0x104
lea rdx, [r14 + 8]
mov rcx, rdi
call qword [sym.imp.COMDLG32.dll_GetFileTitleA]
lea rcx, [r14 + 8]
call qword [sym.imp.SHLWAPI.dll_PathRemoveExtensionA]
lea r8, [r14 + 8]
mov edx, 0x104
lea rcx, [r14 + 0x210]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
test r15, r15
je 0x14000d3be
mov rcx, r15
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
mov rcx, rdi
test eax, eax
je 0x14000d3b6
mov r8, r15
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathRemoveBackslashA]
jmp 0x14000d3f4
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
jmp 0x14000d3f4
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov r8, qword [r14 + 0x320]
mov edx, 0x104
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x14000d3f4
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
test rbp, rbp
je 0x14000d414
mov r8, rbp
lea rcx, [r14 + 8]
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov r8, qword [r14 + 0x318]
lea rcx, [r14 + 8]
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [r14 + 8]
mov edx, 0x104
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
mov rbx, qword [rsp + 0x40]
mov rax, r14
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x14001cb70
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xf0
mov rax, qword [0x1400cd070]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r14, r9
mov rbx, rdx
mov rsi, rcx
mov dword [rbp - 0x49], 0x68
xorps xmm0, xmm0
movups xmmword [rbp - 0x41], xmm0
movups xmmword [rbp - 0x31], xmm0
movups xmmword [rbp - 0x21], xmm0
movups xmmword [rbp - 0x11], xmm0
movups xmmword [rbp - 1], xmm0
movups xmmword [rbp + 0xf], xmm0
mov edi, 1
mov dword [rbp - 0xd], edi
xor r15d, r15d
mov word [rbp - 9], r15w
mov qword [rbp - 0x29], r15
mov dword [rbp - 0x21], edi
mov dword [rbp - 0x1d], edi
test rdx, rdx
jne 0x14001cc1c
lea rax, [rbp - 0x69]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x49]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x8000010
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, eax
jmp 0x14001ccc7
call fcn.1400019f0
mov rcx, rax
test rax, rax
je 0x14001cd06
mov rax, qword [rax]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rbp - 0x51], rax
mov r9, rbx
mov r8, rsi
lea rdx, str._s__s
lea rcx, [rbp - 0x51]
call fcn.140002720
mov rbx, qword [rbp - 0x51]
sub edi, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
or eax, edi
jge 0x14001cc6e
xor edx, edx
lea rcx, [rbp - 0x51]
call fcn.1400025b0
mov rbx, qword [rbp - 0x51]
lea rax, [rbp - 0x69]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x49]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x8000010
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, eax
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001ccc7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov eax, dword [rbp - 0x59]
mov dword [r14], eax
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140072f40
mov rbx, qword [rsp + 0x130]
add rsp, 0xf0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140001850
int3
Function at 0x14001cea0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1400cd070]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, r8
mov ebp, edx
mov qword [rsp + 0x40], r8
xor bl, bl
mov rax, qword [r8]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
or eax, ecx
jge 0x14001cee9
xor edx, edx
mov rcx, r8
call fcn.1400025b0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], Ordinal_133
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14001cf8b
movzx edx, bp
lea r8, [0x1400bee30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbp, rax
test rax, rax
je 0x14001cf81
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
test rax, rax
je 0x14001cf81
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov bl, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rdi]
sub rdx, 0x18
mov ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14001cfab
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
movzx eax, bl
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140072f40
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140028570
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x1400285a4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140028590
ret
Function at 0x1400434f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x550], 0
jne 0x14004352a
mov rcx, qword [rcx + 0x4c0]
cmp rcx, 0xffffffffffffffff
je 0x14004352a
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x14004352a
mov al, 1
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret
Function at 0x140043fa0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x1400cd070]
xor rax, rsp
mov qword [rsp + 0x230], rax
cmp dword [rcx + 0x32c], 3
mov rdi, rdx
mov rbx, rcx
jne 0x1400441ae
cmp byte [rcx + 0x642], 0
jne 0x1400441ae
cmp byte [rcx + 0x656], 0
jne 0x1400441ae
mov rsi, qword [rcx]
lea r8, [rsp + 0x20]
mov rcx, rdi
mov dword [rsp + 0x20], Ordinal_133
lea rdx, [rsp + 0xb0]
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x14004404d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x130]
mov ecx, eax
mov ebx, eax
call fcn.14006a510
mov r9, rax
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.140045ee0
jmp 0x1400441b6
xor edx, edx
mov dword [rsp + 0x24], Ordinal_133
mov r8d, Ordinal_133
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
lea r8, [rsp + 0x24]
mov rcx, rdi
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1400440b5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x130]
mov ecx, eax
mov ebx, eax
call fcn.14006a510
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.140045ee0
jmp 0x1400441b6
mov edx, dword [rsp + 0x20]
lea rdi, [rbx + 0x3fe]
mov r8, rdi
lea r9, [rbx + 0x42c]
lea rcx, [rsp + 0xb0]
call fcn.140043350
test al, al
jne 0x14004411b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r8d, 0x100
lea rdx, [rsp + 0x130]
mov ecx, ebx
mov rdi, rax
call fcn.14006a510
mov r8d, dword [rdi]
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.140045ee0
jmp 0x1400441b6
movups xmm0, xmmword [rdi]
mov eax, dword [rdi + 0x28]
lea r9, [rbx + 0x460]
movups xmm1, xmmword [rdi + 0x10]
mov edx, dword [rsp + 0x24]
lea r8, [rbx + 0x430]
movups xmmword [rbx + 0x2f8], xmm0
lea rcx, [rsp + 0x30]
movsd xmm0, qword [rdi + 0x20]
movups xmmword [rbx + 0x308], xmm1
movsd qword [rbx + 0x318], xmm0
mov dword [rbx + 0x320], eax
movzx eax, word [rdi + 0x2c]
mov word [rbx + 0x324], ax
call fcn.140043350
test al, al
jne 0x1400441ae
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r8d, 0x100
lea rdx, [rsp + 0x130]
mov ecx, ebx
mov rdi, rax
call fcn.14006a510
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.140045ee0
jmp 0x1400441b6
mov rcx, rbx
call fcn.140043bc0
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140072f40
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140044bf0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1400cd070]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor esi, esi
mov dword [rsp + 0x20], 4
mov eax, esi
lea r9, [rsp + 0x50]
cmp byte [rcx + 0xf7b], al
mov rdi, rdx
mov rbx, rcx
mov edx, 0xffff
setne al
lea r8d, [rsi + 8]
mov rcx, rdi
mov dword [rsp + 0x50], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x140044c5f
mov r8, rdi
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov rcx, rbx
call fcn.140045ff0
jmp 0x140044cee
mov ecx, dword [rbx + 0xedc]
mov dword [rsp + 0x58], 1
call fcn.140046f10
imul ecx, eax, 0x3e8
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x5c], ecx
mov ecx, dword [rbx + 0xee0]
call fcn.140046f10
imul ecx, eax, 0x3e8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x54]
mov qword [rsp + 0x38], rsi
mov r9d, recv
mov qword [rsp + 0x30], rax
mov edx, 0x98000004
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x60], ecx
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x140044cee
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, edi
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
mov r9d, eax
mov rcx, rbx
call fcn.140045ff0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140072f40
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140045e20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x700], 0
mov rsi, r9
mov rbp, r8
movsxd rbx, edx
mov rdi, rcx
je 0x140045e7e
mov dl, 1
call fcn.14002ff10
mov rax, qword [rdi + 0x658]
mov r9, rsi
mov r8, rbp
mov qword [rsp + 0x20], rax
mov edx, ebx
mov rcx, rdi
call qword [rdi + 0x700]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.14002ff10
mov eax, ebx
jmp 0x140045ec2
cmp ebx, 2
ja 0x140045ec0
mov r9, qword [rdi + 0x650]
lea rdx, [0x14007a320]
lea rcx, [rbx + rbx*2]
add rcx, rdx
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x650]
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x1400461d2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov qword [rbx], 0
cmp eax, 0x2733
mov edx, 0x51
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret