joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48771c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rbx
mov rax, rsp
sub rsp, 0x240
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
mov dword [rax + 0x18], 0
call fcn.004028fc
mov dword [rsp + 0x258], 1
xor r9d, r9d
lea r8d, [r9 + 5]
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x487774
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.00402b10
mov rcx, rbx
call fcn.00409d70
mov rax, rbx
add rsp, 0x240
pop rbx
ret

Function at 0x4886e8
Capabilities:
Get common file path
Get file system object information
Get startup folder

Disassembly:
push rbx
mov rax, rsp
sub rsp, 0x2f0
mov edx, ecx
lea r8, [rax + 0x18]
xor ecx, ecx
mov qword [rax + 0x18], 0
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov rcx, qword [rsp + 0x308]
test rcx, rcx
je 0x488759
lea r8, [rsp + 0x30]
mov r9d, 0x2b8
mov edx, 0x80
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x20], 0x4008
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov rcx, qword [rsp + 0x308]
mov rbx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test rbx, rbx
je 0x488759
mov eax, dword [rsp + 0x38]
jmp 0x48875b
xor eax, eax
add rsp, 0x2f0
pop rbx
ret

Function at 0x488764
Capabilities:
Get file system object information

Disassembly:
push rbx
sub rsp, 0x2f0
mov rbx, r8
lea r8, [rsp + 0x30]
bts edx, 7
mov r9d, 0x2b8
mov dword [rsp + 0x20], 0x4010
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [rsp + 0x38]
mov dword [rbx], ecx
add rsp, 0x2f0
pop rbx
ret

Function at 0x48879c
Capabilities:
Get file system object information

Disassembly:
sub rsp, 0x2f8
neg cl
lea r8, [rsp + 0x30]
lea rcx, [0x0049d460]
sbb eax, eax
mov r9d, 0x2b8
mov edx, 0x90
and eax, 0xffffff01
add eax, 0x100
or eax, 0x4010
mov dword [rsp + 0x20], eax
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
add rsp, 0x2f8
ret

Function at 0x48cc74
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
mov r11w, ax
shr r11d, 0xf
test r11b, 1
jne 0x48cca7
cmp dword [rbx + 0x54], 1
ja 0x48cca7
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x40]
jmp 0x48ccaf
mov rcx, rbx
call fcn.0048c8d0
add rsp, 0x20
pop rbx
ret
Function at 0x48d1e8
Capabilities:
Get file system object information

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x3a8
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov rdi, r9
mov ebp, r8d
mov r12d, edx
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.004028fc
nop
cmp byte [rdi], 0
je 0x48d26b
mov rdx, qword [rdi + 8]
lea rcx, [rsp + 0x80]
call fcn.0045c734
nop
mov r8, rax
mov edx, 0xdb0
lea rcx, [rsp + 0x70]
call fcn.0045c824
nop
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.00402b78
nop
mov rcx, qword [rsp + 0x70]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x80]
call sub.msvcrt.dll_free
lea rcx, [rdi + 0x18]
call fcn.00402ebc
lea ebx, [rax + 1]
mov r8d, ebx
lea rdx, [rsp + 0x60]
lea rcx, [rdi + 0x18]
call fcn.004119e0
nop
mov rax, qword [rdi + 0x18]
lea rdx, [rax + rbx*2]
lea rcx, [rsp + 0x50]
call fcn.00402998
nop
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.0048d114
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.0048d114
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.00402a88
nop
lea rcx, [rsp + 0x30]
call fcn.004033cc
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.00402d74
lea rcx, [rsp + 0x30]
call fcn.004033cc
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.00402d74
lea rcx, [rsp + 0x30]
call fcn.004033cc
cmp byte [rdi + 1], 0
je 0x48d34e
mov edx, 0x3f4
lea rcx, [rsp + 0x30]
call fcn.00460ea8
lea rdx, [0x004a22e0]
lea rcx, [rsp + 0x30]
call fcn.00402db8
lea rcx, [rdi + 0x10]
xor r8d, r8d
lea rdx, [rsp + 0xa0]
call fcn.0040bf34
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x30]
call fcn.00402db8
mov edx, r12d
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rdx, qword [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov dword [rsp + 0x20], 0x110
mov r9d, 0x2b8
lea r8, [rsp + 0xe0]
mov edx, 0x80
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
je 0x48d3b9
mov edx, ebp
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
xor r9d, r9d
mov r8, qword [rsp + 0xe0]
mov edx, 0x170
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
nop
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x50]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x60]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
add rsp, 0x3a8
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x491f64
Capabilities:
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x58
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
xor ebp, ebp
cmp dword [rdx + 8], ebp
jne 0x491f8e
lea eax, [rbp - 1]
jmp 0x492075
cmp ebx, 0xffffffff
cmove ebx, ebp
lea rcx, [rsp + 0x38]
call fcn.004028fc
nop
mov edx, 0x110
cmp dword [rsp + 0x44], edx
jae 0x491fb4
lea rcx, [rsp + 0x38]
call fcn.00402588
mov r8d, 0x10e
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, qword [rsp + 0x38]
mov word [rcx + 0x21c], bp
mov edx, ebp
cmp word [rcx], bp
je 0x491fe6
inc edx
add rcx, 2
cmp word [rcx], bp
jne 0x491fdb
mov dword [rsp + 0x40], edx
cmp eax, ebp
je 0x491ff5
cmp eax, 0x10e
jb 0x492002
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.00402b78
mov dword [rsp + 0x20], 1
lea r9, [rsp + 0x88]
xor r8d, r8d
mov edx, ebx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.SHELL32.dll_ExtractIconExW]
cmp eax, 1
jne 0x492066
mov r8, qword [rsp + 0x88]
cmp r8, rbp
je 0x492066
lea edx, [rax - 2]
mov rcx, qword [rsi + 0x38]
call qword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.USER32.dll_DestroyIcon]
mov ebx, dword [rsi + 0x30]
lea ecx, [rbx + 1]
mov dword [rsi + 0x30], ecx
mov rcx, qword [rsp + 0x38]
call sub.msvcrt.dll_free
mov eax, ebx
jmp 0x492075
mov rcx, qword [rsp + 0x38]
call sub.msvcrt.dll_free
mov eax, 0xffffffff
add rsp, 0x58
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x4927bc
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov rsi, rcx
mov ecx, reloc.COMCTL32.dll_InitCommonControls
mov rbx, rdx
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x12
mov di, ax
shr edi, 0xf
and dil, 1
call qword [sym.imp.USER32.dll_GetKeyState]
mov r11w, ax
shr r11d, 0xf
test r11b, 1
jne 0x492876
movzx ecx, word [rbx + 0x18]
xor edx, edx
cmp dil, dl
je 0x492846
cmp cx, 0x41
je 0x49284c
movzx eax, cx
cmp eax, 0x20
je 0x49282e
cmp eax, 0x6a
jle 0x492876
cmp eax, 0x6d
jle 0x49282e
cmp eax, 0x6f
je 0x49282e
cmp eax, 0xbb
je 0x49282e
cmp eax, 0xbd
jne 0x492876
cmp dil, dl
jne 0x492876
cmp cx, 0x20
mov rcx, rsi
setne dl
call fcn.004926b4
mov al, 1
jmp 0x492878
cmp cx, 0x6a
jne 0x492809
mov ecx, 2
lea r9, [rsp + 0x20]
mov edx, 0x102b
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x2c], ecx
mov rcx, qword [rsi + 0x40]
mov r8, 0xffffffffffffffff
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x492842
xor al, al
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret

Function at 0x49a770
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x49a7a9
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.SetDefaultDllDirectories
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x49a7a9
mov ecx, 0xc00
call rax
add rsp, 0x28
ret
Function at 0x49aba0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x40]
mov r9, r8
mov rbx, rcx
mov r8, rdx
mov qword [rsp + 0x28], rax
xor ecx, ecx
xor edx, edx
mov dword [rsp + 0x20], 0
call qword [sym.imp.msvcrt.dll__beginthreadex]
test rax, rax
mov qword [rbx], rax
je 0x49abdb
xor eax, eax
add rsp, 0x30
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 1
test eax, eax
cmovne ecx, eax
mov eax, ecx
add rsp, 0x30
pop rbx
ret

Function at 0x49acb0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x198
mov rax, qword [0x004d5108]
mov qword [rsp + 0x150], rax
mov rax, qword [0x004d5e50]
mov qword [r11 - 0x10], rbp
mov qword [r11 - 0x18], rsi
test rax, rax
mov qword [r11 - 0x20], rdi
mov qword [r11 - 0x28], r12
mov qword [r11 - 0x30], r13
mov rdi, r9
mov esi, r8d
mov r12, rdx
mov rbp, rcx
mov r13d, 1
jne 0x49adc6
cmp dword [0x004d5e48], eax
jne 0x49adc6
lea rax, [rsp + 0x38]
mov qword [r11 - 8], rbx
lea rdx, str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x20], rax
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x49ad99
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea rdx, [0x0049d88a]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x30], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
test eax, eax
cmove ebx, r13d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x49ad99
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x004d5e50], rax
jmp 0x49ada0
mov rax, qword [0x004d5e50]
test rax, rax
mov rbx, qword [rsp + 0x190]
jne 0x49adc6
lea rcx, str.hhctrl.ocx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov qword [0x004d5e50], rax
je 0x49adee
mov r10, qword [0x004d5e40]
test r10, r10
jne 0x49adf9
lea edx, [r10 + 0xf]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov r10, rax
mov qword [0x004d5e40], rax
jne 0x49adf9
mov dword [0x004d5e48], r13d
xor eax, eax
jmp 0x49ae08
mov r9, rdi
mov r8d, esi
mov rdx, r12
mov rcx, rbp
call r10
mov r13, qword [rsp + 0x168]
mov r12, qword [rsp + 0x170]
mov rdi, qword [rsp + 0x178]
mov rsi, qword [rsp + 0x180]
mov rbp, qword [rsp + 0x188]
mov rcx, qword [rsp + 0x150]
call fcn.0049bb80
add rsp, 0x198
ret
Function at 0x49b6b0
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
sub rsp, 0xc8
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
nop
cmp word [0x00400000], 0x5a4d
je 0x49b6ed
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
lea rdi, [0x00400000]
jmp 0x49b77b
movsxd rax, dword [0x0040003c]
lea rdi, [0x00400000]
add rax, rdi
cmp dword [rax], 0x4550
je 0x49b711
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x49b77b
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x49b758
cmp ecx, 0x20b
je 0x49b730
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x49b77b
cmp dword [rax + 0x84], 0xe
ja 0x49b744
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x49b77b
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
jmp 0x49b77b
cmp dword [rax + 0x74], 0xe
ja 0x49b769
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x49b77b
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
mov ecx, 2
call qword [sym.imp.msvcrt.dll___set_app_type]
mov qword [0x004d6400], 0xffffffffffffffff
mov qword [0x004d6408], 0xffffffffffffffff
mov rcx, qword [sym.imp.msvcrt.dll__fmode]
mov eax, dword [0x004d5e84]
mov dword [rcx], eax
mov rcx, qword [sym.imp.msvcrt.dll__commode]
mov eax, dword [0x004d5e80]
mov dword [rcx], eax
call fcn.0049b960
cmp dword [0x004d50f8], 0
jne 0x49b7d5
lea rcx, [fcn.0049b960]
call qword [sym.imp.msvcrt.dll___setusermatherr]
lea rdx, [0x0049ca20]
lea rcx, [0x0049ca18]
call fcn.00580000
mov r11d, dword [0x004d5e7c]
mov dword [rsp + 0xd8], r11d
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x004d5e78]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x3c]
call qword [sym.imp.msvcrt.dll___getmainargs]
lea rdx, [0x0049ca10]
lea rcx, [0x0049c970]
call sub.msvcrt.dll__initterm
mov r11, qword [sym.imp.msvcrt.dll__acmdln]
mov r8, qword [r11]
mov qword [rsp + 0x30], r8
cmp byte [r8], 0x22
jne 0x49b876
nop
nop
inc r8
mov qword [rsp + 0x30], r8
movzx eax, byte [r8]
test al, al
je 0x49b866
cmp al, 0x22
je 0x49b866
jmp 0x49b850
cmp byte [r8], 0x22
jne 0x49b886
inc r8
mov qword [rsp + 0x30], r8
jmp 0x49b886
cmp byte [r8], 0x20
jbe 0x49b886
inc r8
mov qword [rsp + 0x30], r8
jmp 0x49b876
movzx eax, byte [r8]
test al, al
je 0x49b89c
cmp al, 0x20
ja 0x49b89c
inc r8
mov qword [rsp + 0x30], r8
jmp 0x49b886
test byte [rsp + 0x8c], 1
je 0x49b8b1
movzx r9d, word [rsp + 0x90]
jmp 0x49b8b7
mov r9d, 0xa
xor edx, edx
mov rcx, rdi
call fcn.0045ba78
mov edi, eax
mov dword [rsp + 0x38], eax
test ebx, ebx
jne 0x49b8d3
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
call qword [sym.imp.msvcrt.dll__cexit]
jmp 0x49b8f7
mov eax, edi
jmp 0x49b900
mov rbx, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xe8]
add rsp, 0xc8
ret
Function at 0x49ba50
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rdi, rcx
lea rsi, [0x004d5f30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [0x004d6028]
lea rdx, [rsp + 0x70]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x49bad1
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x48]
mov r9, rax
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov r8, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov r11, qword [0x004d6028]
jmp 0x49baed
mov r11, qword [rsp + 0x68]
lea rax, [rsp + 0x68]
add rax, 8
mov qword [0x004d6028], r11
mov qword [0x004d5fc8], rax
mov rax, qword [0x004d5108]
mov qword [0x004d5ea0], r11
mov qword [0x004d5fb0], rdi
mov dword [0x004d5e90], 0xc0000409
mov dword [0x004d5e94], 1
mov qword [rsp + 0x50], rax
mov rax, qword [0x004d5100]
xor ecx, ecx
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x004aa490]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
add rsp, 0x68
ret
cmp rcx, qword [0x004d5108]
jne 0x49bb99
rol rcx, 0x10
test cx, 0xffff
jne 0x49bb95
ret
ror rcx, 0x10
jmp 0x49ba50
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Spawn thread to rwx shellcode

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov edx, 0x142
mov dword [rsp + 0x30], 0
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor r9d, r9d
lea r8, [0x1400030a0]
xor edx, edx
lea r10, str.mysupersecretkey
mov rbx, rax
nop dword [rax]
xor ecx, ecx
lea r8, [r8 + 1]
cmp rdx, 0x10
cmovne rcx, rdx
inc r9d
movzx eax, byte [rcx + r10]
lea rdx, [rcx + 1]
xor byte [r8 - 1], al
cmp r9d, 0x142
jb 0x140001050
mov r8d, 0x142
lea rdx, [0x1400030a0]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
lea r9, [rsp + 0x30]
mov edx, 0x142
mov r8d, 0x20
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400010d8
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov r8, rbx
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140001100
add rsp, 0x40
pop rbx
ret

Function at 0x1400019c8
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1400a45d0]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140006ad1
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x140006acb
shr ax, 8
cmp al, 2
jne 0x140006acb
call fcn.14000f3d0
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140049680
add rsp, 0x1d8
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140049680
add rsp, 0x1d8
ret
Function at 0x140016a70
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xe0
mov rax, qword [0x1400a45d0]
xor rax, rsp
mov qword [rsp + 0xd0], rax
cmp dword [rcx + 0x76c], 0
mov rax, qword [rsp + 0x130]
mov r14, r9
mov rbp, r8
mov esi, edx
mov rdi, rcx
je 0x140016b9d
test rax, rax
je 0x140016b9d
mov rdx, qword [rax + 0xd8]
test rdx, rdx
je 0x140016b9d
mov ecx, esi
lea r9, str.Data
dec ecx
je 0x140016af7
dec ecx
je 0x140016ae7
dec ecx
je 0x140016afe
dec ecx
je 0x140016aee
jmp 0x140016b9d
lea r9, str.Header
lea rax, [0x14007cf70]
jmp 0x140016b05
lea r9, str.Header
lea rax, str.from
mov qword [rsp + 0x28], rdx
lea r8, str.__s__s__s_
lea rcx, [rsp + 0x30]
mov edx, 0xa0
mov qword [rsp + 0x20], rax
call fcn.1400267b0
lea rax, [rsp + 0x30]
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rax + rbx], 0
jne 0x140016b30
mov r10, qword [rdi + 0x2c8]
test r10, r10
je 0x140016b67
mov rax, qword [rdi + 0x218]
lea r8, [rsp + 0x30]
mov r9, rbx
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call r10
test eax, eax
je 0x140016b9d
jmp 0x140016bad
mov r9, qword [rdi + 0x210]
mov edx, 2
lea rcx, [0x14007ce98]
lea r8d, [rdx - 1]
call fcn.14004a8a0
mov r9, qword [rdi + 0x210]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call fcn.14004a8a0
mov r9, r14
mov r8, rbp
mov edx, esi
mov rcx, rdi
call fcn.140017600
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140049680
add rsp, 0xe0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140016ed0
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 0x140016f0b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov edx, 0x51
cmp eax, 0x2733
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

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
xor r10d, r10d
cmp rdx, qword [rcx + 0x240]
mov rdi, r9
sete r10b
mov rsi, r8
mov r14, rcx
movsxd rax, r10d
mov edx, r10d
mov rbx, qword [rcx + rax*8 + 0x238]
call fcn.140017500
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
movsxd rdi, eax
cmp rdi, 0xffffffffffffffff
jne 0x140017306
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x1400172da
mov rcx, qword [rsp + 0x50]
lea eax, [rdi + 0x52]
mov qword [rcx], 0
jmp 0x140017310
mov edx, eax
mov rcx, r14
call fcn.1400289e0
mov rcx, qword [r14]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.140016bd0
mov rax, qword [r14]
mov dword [rax + 0x4d1c], ebx
mov eax, gethostname
jmp 0x140017308
xor eax, eax
mov rcx, qword [rsp + 0x50]
mov qword [rcx], rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140017500
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
movsxd rcx, edx
mov rax, qword [rsi + 0x460]
mov rbp, qword [rsi + rcx*8 + 0x238]
lea rbx, [rcx + 0x14]
shl rbx, 5
add rbx, rsi
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x7c], 3
je 0x1400175dc
lea rax, [0x140016f50]
cmp qword [rsi + rcx*8 + 0x260], rax
jne 0x1400175dc
cmp qword [rbx], 0
je 0x140017566
test rdi, rdi
je 0x1400175dc
or r8, 0xffffffffffffffff
xor r9d, r9d
mov rcx, rbp
or rdx, r8
call fcn.1400164f0
cmp eax, 0xffffffff
je 0x1400175dc
test al, 1
je 0x1400175dc
cmp qword [rbx], 0
jne 0x1400175bb
mov rax, qword [rsi]
mov ecx, dword [rax + 0x728]
add ecx, ecx
movsxd rcx, ecx
mov qword [rbx + 8], rcx
call qword [section..data]
mov rdi, qword [rbx + 8]
xor ecx, ecx
mov qword [rbx], rax
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], rcx
test rax, rax
jne 0x1400175bb
mov qword [rbx + 8], rcx
jmp 0x1400175dc
mov rdx, qword [rbx]
xor r9d, r9d
mov r8d, edi
add rdx, qword [rbx + 0x10]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x1400175dc
add qword [rbx + 0x10], rcx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140017600
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r10, qword [rcx + 0x2c8]
mov rdi, r9
mov rsi, r8
mov rbx, rcx
test r10, r10
je 0x140017643
mov rax, qword [rcx + 0x218]
mov qword [rsp + 0x20], rax
call r10
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp edx, 2
ja 0x140017686
mov r9, qword [rbx + 0x210]
movsxd rcx, edx
lea rdx, [0x14007ce98]
lea rcx, [rcx + rcx*2]
add rcx, rdx
mov edx, 2
lea r8d, [rdx - 1]
call fcn.14004a8a0
mov r9, qword [rbx + 0x210]
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call fcn.14004a8a0
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

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

Disassembly:
sub rsp, 0x28
cmp dword [rcx + 0x2c0], 0
je 0x14001779d
call fcn.14000fbc0
test eax, eax
jne 0x1400177c8
xor eax, eax
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x238]
cmp rcx, 0xffffffffffffffff
je 0x140017796
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x1400177c8
add rsp, 0x28
ret
mov eax, 1
add rsp, 0x28
ret
Function at 0x140017ff0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x1400a64c4]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x14001804d
lea r9d, [rax + 3]
lea r8d, [rax + 2]
lea ecx, [rax + 6]
xor edx, edx
call fcn.140029970
test eax, eax
je 0x140018041
mov dword [0x1400a64c4], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x1400a64c4], 1
jmp 0x140018052
cmp eax, 2
je 0x1400180a4
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x140018083
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x1400180a4
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret

Function at 0x140018190
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [rcx]
mov rax, rdx
mov edx, 6
mov rdi, rcx
lea r9, [rsp + 0x40]
lea r8d, [rdx - 5]
mov rcx, rax
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1400181fb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rdi
mov edx, eax
call fcn.1400289e0
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, rbx
mov r8, rax
call fcn.140016ce0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rdx, str.TCP_NODELAY_set_n
mov rcx, rbx
call fcn.140016ce0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret