joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140023680
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, rcx
test rcx, rcx
je 0x140023799
cmp word [rcx], 0
je 0x140023799
lea rdx, vtable.CVolCommonBaseWithMemManager.0
mov qword [rbp - 0x19], rdx
lea rsi, vtable.CVolObject.0
mov qword [rbp - 0x19], rsi
xor edi, edi
mov qword [rbp - 0x11], rdi
mov qword [rbp - 9], rdi
lea rcx, vtable.CWString.0
mov qword [rbp - 0x19], rcx
lea rcx, [rbp + 7]
mov qword [rbp + 0x67], rcx
mov qword [rbp + 7], rdx
mov qword [rbp + 7], rsi
mov qword [rbp + 0xf], rdi
mov qword [rbp + 0x17], rdi
lea r14, vtable.CVolMem.0
mov qword [rbp + 7], r14
mov qword [rbp + 0x1f], rdi
mov qword [rbp + 0x2f], rdi
mov qword [rbp + 0x27], rdi
mov qword [rbp + 0x37], 0x40
mov qword [rbp - 1], rdi
mov qword [rbp + 0x37], 0xfe
cmp word [rax], di
je 0x140023737
lea rdx, [rbp - 0x19]
mov rcx, rax
call fcn.140023580
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rbx, rdi
cmp eax, 0xffffffff
setne bl
lea rax, [rbp + 7]
mov qword [rbp + 0x67], rax
mov qword [rbp + 7], r14
mov rdx, qword [rbp + 0x1f]
test rdx, rdx
je 0x140023780
mov rax, qword [rbp + 7]
mov r8, qword [rax + 0x18]
cmp rax, r14
jne 0x140023779
lea rcx, [0x1400fc2f8]
call fcn.140025900
jmp 0x140023780
lea rcx, [rbp + 7]
call r8
mov qword [rbp + 0x1f], rdi
mov qword [rbp + 0x2f], rdi
mov qword [rbp + 0x27], rdi
mov qword [rbp + 7], rsi
mov qword [rbp - 0x19], rsi
mov rax, rbx
jmp 0x14002379b
xor eax, eax
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400237c0
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x38]
sub rsp, 0x120
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rbx, rcx
test rcx, rcx
je 0x14002398b
cmp word [rcx], 0
je 0x14002398b
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rbp - 0x50]
call fcn.14008f150
mov dword [rbp - 0x50], 0x68
or dword [rbp - 0x14], 1
mov edi, 1
mov word [rbp - 0x10], di
lea rax, vtable.CVolCommonBaseWithMemManager.0
mov qword [rsp + 0x50], rax
lea r15, vtable.CVolObject.0
mov qword [rsp + 0x50], r15
xor esi, esi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rsi
lea r14, vtable.CVolMem.0
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x70], rsi
mov qword [rbp - 0x80], 0x40
cmp word [rbx], si
jne 0x1400238a4
mov rax, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
sub rax, rbx
cmp rax, 2
jl 0x140023890
mov rax, qword [rsp + 0x68]
mov word [rax + rbx], si
add qword [rsp + 0x78], 2
jmp 0x1400238d1
lea rdx, [rbx + 2]
lea rcx, [rsp + 0x50]
call fcn.1400249a0
mov word [rax + rbx], si
jmp 0x1400238d1
or r8, 0xffffffffffffffff
nop dword [rax + rax]
lea r8, [r8 + 1]
cmp word [rbx + r8*2], 0
jne 0x1400238b0
lea r8, [r8*2 + 2]
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140024c30
mov rdx, qword [rsp + 0x68]
cmp qword [rsp + 0x78], 0
cmove rdx, rsi
lea rax, [rbp - 0x78]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x14002391b
mov rdi, rsi
jmp 0x14002393f
mov edx, 0x1f4
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.USER32.dll_WaitForInputIdle]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov qword [rsp + 0x50], r14
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x140023972
mov rax, qword [rsp + 0x50]
mov r8, qword [rax + 0x18]
cmp rax, r14
jne 0x14002396a
lea rcx, [0x1400fc2f8]
call fcn.140025900
jmp 0x140023972
lea rcx, [rsp + 0x50]
call r8
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x50], r15
mov rax, rdi
jmp 0x14002398d
xor eax, eax
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140023c20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbx, rdx
test rcx, rcx
je 0x140023c9f
cmp word [rcx], 0
je 0x140023c9f
test r8, r8
js 0x140023c9f
lea rdx, [0x1400d3c48]
mov qword [rsp + 0x30], rsi
call fcn.14009b03c
mov rsi, rax
test rax, rax
jne 0x140023c69
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, rsi
mov r8, rdi
mov edx, 1
mov rcx, rbx
call fcn.1400980b0
xor ebx, ebx
mov rcx, rsi
cmp rax, rdi
sete bl
call fcn.140093808
mov rsi, qword [rsp + 0x30]
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400240f0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movzx edi, cl
lea rax, [rdi - 0x60]
cmp rax, 9
ja 0x140024175
sub rdi, 0x30
mov rbx, rdi
test rdi, rdi
je 0x140024167
cmp rdi, 0x11
je 0x140024131
mov ecx, reloc.WS2_32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x140024131
mov rbx, rdi
bts rbx, 0xd
cmp rbx, 0x10
je 0x14002414c
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x14002414c
bts rbx, 0xf
cmp rbx, 0x12
je 0x140024167
mov ecx, reloc.WS2_32.dll_select
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x140024167
bts rbx, 0xe
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp rdi, 0x6d
jne 0x140024184
mov edi, 0xbd
mov ebx, edi
jmp 0x140024119
cmp rdi, 0x6e
jne 0x140024193
mov edi, 0xbe
mov ebx, edi
jmp 0x140024119
cmp rdi, 0x6f
jne 0x1400241a5
mov edi, 0xbf
mov ebx, edi
jmp 0x140024119
lea rax, [0x1400d3f80]
mov rax, qword [rax + rdi*8]
cmp word [rax], 0
jne 0x14002410b
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140024e40
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x20
mov rax, rdx
mov rbx, rcx
test rdx, rdx
je 0x140024f5c
cmp word [rdx], 0
je 0x140024f5c
mov qword [rsp + 0x30], rbp
lea rdx, [0x1400d3c5c]
mov rcx, rax
mov qword [rsp + 0x38], rdi
or rsi, 0xffffffffffffffff
call fcn.14009b03c
mov rdi, rax
test rax, rax
je 0x140024f17
xor edx, edx
lea r8d, [rsi + 3]
mov rcx, rax
call fcn.140097ab4
mov rcx, rdi
call fcn.14009ba54
xor r8d, r8d
movsxd rbp, eax
xor edx, edx
mov rcx, rdi
call fcn.140097ab4
test rbp, rbp
jle 0x140024f0d
mov rdx, rbp
mov rcx, rbx
call fcn.1400248f0
mov rcx, rax
lea edx, [rsi + 2]
mov r9, rdi
mov r8, rbp
call fcn.14009b498
mov rcx, rdi
mov rbp, rax
call fcn.14009bc94
test eax, eax
jne 0x140024f0f
mov rdx, rbp
mov rcx, rbx
call fcn.1400249a0
mov rcx, rdi
call fcn.140093808
mov rax, rbp
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
xor esi, esi
mov rcx, rdi
call fcn.140093808
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x140024f3f
mov rax, qword [rbx]
lea rcx, vtable.CVolMem.0
mov r8, qword [rax + 0x18]
cmp rax, rcx
jne 0x140024f6b
lea rcx, [0x1400fc2f8]
call fcn.140025900
mov qword [rbx + 0x18], 0
mov rax, rsi
mov qword [rbx + 0x28], 0
mov qword [rbx + 0x20], 0
jmp 0x140024ef8
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
mov rcx, rbx
call r8
jmp 0x140024f3f

Function at 0x140025970
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x60
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
mov qword [rbx + 0x28], 0x3e8
lea rax, [rbx + 0x50]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rax
lea rcx, vtable.CVolObject.0
mov qword [rax], rcx
xor edi, edi
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rdi
lea rcx, vtable.CVolMem.0
mov qword [rax], rcx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x28], rdi
mov qword [rax + 0x20], rdi
mov qword [rax + 0x30], 0x40
mov qword [rax + 0x30], 0x100
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x48]
lea rax, [rax*2 + 2]
mov qword [rbx + 0x30], rax
mov qword [rbx + 0x38], 0x3e80
mov qword [rbx + 0x40], 1
mov qword [rbx + 0x48], rdi
mov rax, rbx
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
Function at 0x140028730
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x1400287a4
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400287c6
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400287c6
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je 0x1400287c6
mov rdx, rdi
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov eax, 1
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x140028a6e
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140028730
cmp byte [0x1400fcc10], 0
jne 0x140028ab9
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140028aa9
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400fcc08], rax
mov byte [0x1400fcc10], 1
jmp 0x140028ac0
mov rax, qword [0x1400fcc08]
mov byte [0x1400fcc10], 1
jmp 0x140028ac0
mov rax, qword [0x1400fcc08]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x140028adf
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
Function at 0x140028a40
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x1400287a4
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400287c6
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400287c6
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je 0x1400287c6
mov rdx, rdi
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov eax, 1
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x140028a6e
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140028730
cmp byte [0x1400fcc10], 0
jne 0x140028ab9
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140028aa9
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400fcc08], rax
mov byte [0x1400fcc10], 1
jmp 0x140028ac0
mov rax, qword [0x1400fcc08]
mov byte [0x1400fcc10], 1
jmp 0x140028ac0
mov rax, qword [0x1400fcc08]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x140028adf
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
Function at 0x140028af0
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x2c0], rbx
mov rax, qword [0x1400f80b8]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rsi, rdx
mov rax, rcx
mov qword [rsp + 0x70], rcx
xor ecx, ecx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x50], ecx
mov qword [rsp + 0x58], rcx
mov edi, dword [rax + 8]
or edi, 0x2001f
mov rax, qword [rax]
mov qword [rsp + 0x60], rcx
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140028b76
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], edi
mov r8, rsi
mov rdx, rax
call fcn.140028540
jmp 0x140028b8f
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
mov r9d, edi
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x140028c89
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140028bb4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x48], rcx
and edi, 0x300
mov dword [rsp + 0x50], edi
test ebx, ebx
jne 0x140028c89
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
xor edi, edi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x80]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140028c5f
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x48]
call fcn.140028af0
mov ebx, eax
test eax, eax
jne 0x140028c8b
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x80]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140028c10
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140028c74
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x50], edi
mov rdx, rsi
mov rcx, qword [rsp + 0x70]
call fcn.140028a40
mov ebx, eax
jmp 0x140028c8b
xor edi, edi
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140028ca0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rdi
mov eax, ebx
mov dword [rsp + 0x50], edi
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14008d330
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x290
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400292a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x1400f80b8]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x70], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14002932e
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14002932e
call fcn.140028510
mov ebx, eax
jmp 0x140029453
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14002934f
call fcn.140028510
jmp 0x140029442
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x140029372
call fcn.140028510
jmp 0x140029442
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x140029394
mov ebx, 0x8007000e
jmp 0x140029444
mov ecx, eax
test eax, eax
je 0x1400293cc
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x1400293c2
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x1400293cc
lea rcx, [rsp + 0x70]
call fcn.14002b9a0
jmp 0x1400293d6
mov ecx, 0x80070216
call fcn.14001cda0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x1400293e9
mov rax, qword [rsp + 0x70]
test rax, rax
jne 0x1400293fa
mov ebx, 0x8007000e
jmp 0x140029444
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x14002941f
call fcn.140028510
jmp 0x140029442
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.14002a290
mov ebx, eax
test rdi, rdi
je 0x140029453
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x14002946a
lea rcx, [rsp + 0x70]
call fcn.14002b990
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.14008d330
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x14004dfa9
Capabilities:
Write file on windows

Disassembly:
test rcx, rcx
je 0x14004e10d
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rdi
sub rsp, 0x860
mov rax, qword [0x1400f80b8]
xor rax, rsp
mov qword [rsp + 0x840], rax
cmp byte [rcx + 0xf76], 0
mov rdi, rcx
je 0x14004e0f5
mov r8, rdx
mov qword [r11 - 0x10], rbx
mov edx, 0x801
lea r9, [r11 + 0x18]
lea rcx, [rsp + 0x30]
call fcn.140060750
movsxd rcx, eax
mov rbx, 0xffffffffffffffff
cmp rcx, 0x801
jb 0x14004e061
mov rcx, qword [rsp + 0x878]
mov rax, rbx
nop word [rax + rax]
cmp byte [rcx + rax + 1], 0
lea rax, [rax + 1]
jne 0x14004e020
cmp byte [rax + rcx - 1], 0xa
jne 0x14004e048
lea r8, str...._n
mov edx, 5
lea rcx, [rsp + 0x82c]
jmp 0x14004e05c
lea r8, [0x1400ba8c4]
mov edx, 4
lea rcx, [rsp + 0x82d]
call fcn.140060630
lea rax, [rsp + 0x30]
inc rbx
cmp byte [rax + rbx], 0
jne 0x14004e066
cmp byte [rdi + 0xf76], 0
je 0x14004e0ed
cmp qword [rdi + 0x700], 0
je 0x14004e0b7
mov dl, 1
mov rcx, rdi
call fcn.14003c130
mov rax, qword [rdi + 0x658]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x700]
xor edx, edx
mov rcx, rdi
call fcn.14003c130
jmp 0x14004e0ed
mov r9, qword [rdi + 0x650]
lea rcx, [0x1400ba850]
mov edx, 2
lea r8d, [rdx - 1]
call fcn.1400980b0
mov r9, qword [rdi + 0x650]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call fcn.1400980b0
mov rbx, qword [rsp + 0x858]
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.14008d330
add rsp, 0x860
pop rdi
ret

Function at 0x140050920
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call fcn.1400a378c
cdqe
add rsp, 0x28
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp byte [0x1400fa610], 0
mov esi, r8d
mov rdi, qword [rsp + 0x68]
je 0x14005272f
test rdi, rdi
je 0x14005272f
mov eax, dword [0x1400fa614]
test eax, eax
jne 0x140052727
mov r8d, dword [rsp + 0x60]
lea rsi, str.recv
mov r9, rsi
lea rcx, str.LIMIT__s:_d__s_reached_memlimit_n
mov rdx, rdi
call fcn.1400523d0
mov ecx, 2
call fcn.14009c2c8
mov r9d, dword [rsp + 0x60]
lea rdx, str.LIMIT__s:_d__s_reached_memlimit_n
mov rcx, rax
mov qword [rsp + 0x20], rsi
mov r8, rdi
call fcn.140060600
mov rcx, qword [0x1400fa608]
call fcn.14009fb54
call fcn.14009328c
mov dword [rax], ntohl
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
dec eax
mov dword [0x1400fa614], eax
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test rdi, rdi
je 0x140052757
mov r8d, dword [rsp + 0x60]
lea rcx, str.RECV__s:_d_recv__lu____ld_n
mov r9d, esi
mov dword [rsp + 0x20], eax
mov rdx, rdi
call fcn.1400523d0
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400527d0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp byte [0x1400fa610], 0
mov esi, r8d
mov rdi, qword [rsp + 0x68]
je 0x14005287f
test rdi, rdi
je 0x14005287f
mov eax, dword [0x1400fa614]
test eax, eax
jne 0x140052877
mov r8d, dword [rsp + 0x60]
lea rsi, str.send
mov r9, rsi
lea rcx, str.LIMIT__s:_d__s_reached_memlimit_n
mov rdx, rdi
call fcn.1400523d0
mov ecx, 2
call fcn.14009c2c8
mov r9d, dword [rsp + 0x60]
lea rdx, str.LIMIT__s:_d__s_reached_memlimit_n
mov rcx, rax
mov qword [rsp + 0x20], rsi
mov r8, rdi
call fcn.140060600
mov rcx, qword [0x1400fa608]
call fcn.14009fb54
call fcn.14009328c
mov dword [rax], ntohl
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
dec eax
mov dword [0x1400fa614], eax
call qword [sym.imp.WS2_32.dll_send]
mov ebx, eax
test rdi, rdi
je 0x1400528a7
mov r8d, dword [rsp + 0x60]
lea rcx, str.SEND__s:_d_send__lu____ld_n
mov r9d, esi
mov dword [rsp + 0x20], eax
mov rdx, rdi
call fcn.1400523d0
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140066350
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
lea r9, str.F:_vcpkg_vcpkg_buildtreescurl_srce5cd7b457b_ffb4748466.cleanlibgetenv.c
xor ebp, ebp
mov ebx, 1
mov edx, ebx
xor ecx, ecx
lea r8d, [rbp + 0x2d]
call fcn.140052570
mov rdi, rax
test rax, rax
je 0x1400663d9
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x14006640f
cmp ebx, esi
je 0x14006640f
cmp ebx, 0x8000
ja 0x14006640f
cmp ebx, esi
jb 0x14006640a
mov edx, ebx
lea r9, str.F:_vcpkg_vcpkg_buildtreescurl_srce5cd7b457b_ffb4748466.cleanlibgetenv.c
mov r8d, reloc.WLDAP32.dll_Ordinal_45
mov rcx, rdi
call fcn.140052570
mov rdi, rax
test rax, rax
jne 0x140066390
mov edx, Ordinal_50
mov rcx, rbp
lea r8, str.F:_vcpkg_vcpkg_buildtreescurl_srce5cd7b457b_ffb4748466.cleanlibgetenv.c
call fcn.140052370
xor eax, eax
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
mov rax, rdi
jmp 0x1400663ef
mov edx, Ordinal_60
mov rcx, rdi
jmp 0x1400663e1
Function at 0x140092e74
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140092d07
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140092d07
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140092d07
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140092d07
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140092d07
cmp dword [rcx + 0x84], 0xe
jbe 0x140092d07
cmp dword [rcx + 0xf8], 0
je 0x140092d07
mov ecx, ebx
call fcn.140092da8
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140092b98
cmp dword [rbp + 0x20], 0
je 0x140092d54
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140092d5c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140092ca0

Function at 0x1400a9ac4
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x1400a9aa1
call fcn.14009328c
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
call fcn.14009316c
or eax, 0xffffffff
jmp 0x1400a9abe
sub dword [rcx + 0x10], 1
jns 0x1400a9ab0
add rsp, 0x28
jmp fcn.1400a843c
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x1400a9a80