joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401111f0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [fcn.14011286c]
mov rdi, rax
test rax, rax
jne 0x140111232
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x140111279
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1401112d2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x140111290
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140111313
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x140140192]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x140140193]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1401112e0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
and eax, 0x945412

Function at 0x1401122d0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14011231a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14011231a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14011231a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14011231a
cmp dword [rcx + 0x84], 0xe
jbe 0x14011231a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14011231c
xor al, al
add rsp, 0x28
ret
Function at 0x1401855a0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x1401855cd
xor al, al
jmp 0x14018572f
mov rax, qword [0x1401a56b0]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x1401a56b8]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x1401a56c0]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x1401a56c8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x1401a56d0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x1401a56d8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x1401a56e0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x1401a56e8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x1401a56f0]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x140185721
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x140185679
mov r11d, 2
jmp 0x14018569d
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x140185693
mov r11d, 1
jmp 0x14018569d
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x140185745
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x1401856e2
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x1401856fa
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x14018570a
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x140185718
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x140185660
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x14018572a
Function at 0x140005f18
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001d1d0]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x140006200
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140006190
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x14001f160]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14001e5b0]
jmp 0x14000623c
cmp qword [rbx + 0x18], rdi
je 0x140006243
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140006233
jmp 0x14000625d
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x14001e5b0]
call fcn.140010878
lea rcx, [0x14001f160]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xlatb
ror bh, cl
call rdi
ror bh, cl
call rdi
ror bh, cl
call rdi
ror bh, cl
call rdi
ror bh, cl
call rdi
ror bh, cl
call rdi
xlatb
xlatb
ror bh, cl
call rdi
ror bh, cl
call rdi
ror bh, cl
call rdi
ror bh, cl
call rdi
ror bh, cl
call rdi
ror bh, cl
call rdi
ror bh, cl
call rdi
xlatb
xlatb
ror bh, cl
call rdi
ror bh, cl
call rdi
ror bh, cl
call rdi
ror bh, cl
call rdi
ror bh, cl
call rdi
ror bh, cl
iretd
call rdi
ror bh, cl
call rdi
ror bh, cl
call rdi
ror bh, cl
call rdi
ror bh, cl
call rdi
xlatb
iretd
xlatb
ror bh, cl
call rdi
ror bh, cl
call rdi
ror bh, cl
call rdi
ror bh, cl
call rdi
xlatb
xlatb
ror bh, cl
call rdi
ror bh, cl
call rdi
xlatb
xlatb
ror bh, cl
call rdi
ror bh, cl
call rdi
ror bh, cl
call rdi
ror bh, cl
call rdi
ror bh, cl
call rdi
ror bh, cl
iretd
call rdi
ror bh, cl
call rdi
ror bh, cl
call rdi
xlatb
iretd
ror bh, cl
call rcx
int3
iretd
Function at 0x1400044e8
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x990]
sub rsp, 0xa90
mov rax, qword [0x140011010]
xor rax, rsp
mov qword [rbp + 0x980], rax
xor r12d, r12d
mov r15, rdx
mov ebx, r12d
mov rdi, rcx
call fcn.14000ae74
mov rax, qword [rdi + 8]
mov esi, r12d
cmp dword [rax + 0x38], r12d
jle 0x1400046cb
mov r14d, r12d
mov r13d, 0x104
cmp esi, dword [rax + 0x3c]
jne 0x14000466a
cmp dword [rax + 0x38], 1
jg 0x1400046b8
mov r8, qword [rax + 0x30]
lea rcx, [rsp + 0x60]
mov rdx, r13
mov r8, qword [r8 + r14]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov ecx, 0x100
lea rax, [rbp + 0x580]
mov qword [rsp + 0x40], rcx
lea r9, [rbp + 0x780]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x30], rcx
lea rax, [rbp + 0x380]
mov qword [rsp + 0x28], rax
mov r8d, 3
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
lea rcx, [rsp + 0x60]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r12w
jne 0x1400045be
mov edx, 0x108
lea rcx, [rsp + rax*2 + 0x58]
sub rdx, rax
lea r8, str._.pgc
call fcn.14000116c
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.140004b3c
mov r8d, r13d
lea rdx, [rbp + 0x170]
lea rcx, str.VCPROFILE_PATH
add ebx, eax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1400046b8
cdqe
cmp word [rbp + rax*2 + 0x170], 0x5c
je 0x140004633
lea r8, [0x14000da98]
mov rdx, r13
lea rcx, [rbp + 0x170]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea r8, [rbp + 0x380]
mov rdx, r13
lea rcx, [rbp + 0x170]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea r8, str._.pgc
mov rdx, r13
lea rcx, [rbp + 0x170]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rdx, [rbp + 0x170]
jmp 0x1400046ae
mov r8, qword [rax + 0x30]
lea rcx, [rsp + 0x60]
mov rdx, r13
mov r8, qword [r8 + r14]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400046a9
test al, 0x10
je 0x1400046a9
lea r8, str..pgc
mov rdx, r13
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.140004b3c
add ebx, eax
mov rax, qword [rdi + 8]
inc esi
add r14, 8
cmp esi, dword [rax + 0x38]
jl 0x140004543
mov dword [r15], ebx
xor eax, eax
mov rcx, qword [rbp + 0x980]
xor rcx, rsp
call fcn.140009970
mov rbx, qword [rsp + 0xae0]
add rsp, 0xa90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140004b3c
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x290
mov rax, qword [0x140011010]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rsi, rdx
mov qword [rsp + 0x20], rcx
mov rbx, rcx
lea rdx, [rsp + 0x30]
xor ebp, ebp
mov rcx, rsi
mov r14d, ebp
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x140004bab
mov ecx, 0x2ee1
call fcn.14000baf4
mov rcx, rax
mov r8, rsi
mov edx, 0xbc
call fcn.14000acf0
jmp 0x140004c9f
mov edx, 0x5c
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov rdi, rax
mov edx, 0x2f
test rax, rax
je 0x140004c5d
mov rcx, rax
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
test rax, rax
je 0x140004bdb
mov rdi, rax
add rdi, 2
mov rax, rdi
mov r15d, 0x104
sub rax, rsi
sar rax, 1
sub r15, rax
lea r8, [rsp + 0x5c]
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x140004c7d
mov ecx, 0x2f58
call fcn.14000baf4
mov rcx, rax
mov rdx, rsi
call fcn.14000bf6c
mov rdx, rsi
mov rcx, rbx
call fcn.1400022a4
mov r13d, eax
test eax, eax
je 0x140004c7a
mov rbx, qword [rbx + 8]
mov ecx, 0x2ee1
call fcn.14000baf4
mov r9, qword [rbx + 0x40]
mov rcx, rax
mov r8, rsi
mov edx, r13d
call fcn.14000ac98
mov rbx, qword [rsp + 0x20]
jmp 0x140004c7d
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov rdi, rax
test rax, rax
jne 0x140004bdb
mov rdi, rsi
jmp 0x140004bdf
inc r14d
lea rdx, [rsp + 0x30]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140004bf1
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
mov ebp, r14d
mov eax, ebp
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140009970
mov rbx, qword [rsp + 0x2e0]
add rsp, 0x290
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400065b8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rax, qword [0x140011010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdx, qword [rcx + 8]
mov rbx, rcx
cmp dword [rdx + 0x14], 0
jne 0x14000660f
mov edx, dword [rcx + 0xf0]
lea r9, [0x140006534]
mov rcx, qword [rcx + 0xf8]
mov r8d, 8
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_qsort]
mov rcx, rbx
call fcn.140006558
mov rdx, qword [rbx + 8]
mov rdx, qword [rdx + 0x40]
mov ecx, 0x2f59
call fcn.14000bedc
mov rcx, qword [rbx + 0xe8]
lea rdx, [rsp + 0x30]
add rcx, 0x40
mov r8d, 0x1f
call qword [sym.imp.pgodb140.dll_public:_static_int___cdecl_PogoDbUtil::FormatTime_s_unsigned_long_long_unsigned___int64__const____ptr64__char____ptr64__unsigned_long_long_unsigned___int64__]
test eax, eax
je 0x14000664e
lea rdx, [rsp + 0x30]
lea rcx, str.___S
call fcn.14000bf6c
mov rcx, qword [rbx + 0xe8]
mov eax, dword [rcx + 0x1c]
mov r9d, dword [rcx + 0x18]
mov r8d, dword [rcx + 0x3c]
mov edx, dword [rcx + 0x38]
mov ecx, 0x2f5a
mov dword [rsp + 0x20], eax
call fcn.14000bedc
mov rdx, qword [rbx + 0xe8]
mov ecx, 0x2f7c
add rdx, 0x54
call fcn.14000bedc
mov rax, qword [rbx + 8]
cmp dword [rax + 0x14], 0
je 0x1400066ce
xor edx, edx
jmp 0x1400066ba
test byte [rdi + 8], 2
je 0x1400066b7
mov rcx, qword [rbx]
mov edx, dword [rdi + 0xc]
mov r8, qword [rcx]
call qword [r8 + 0x408]
mov rdx, rax
mov ecx, 0x2f7d
call fcn.14000bedc
mov rdx, rdi
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 0x3f8]
mov rdi, rax
test rax, rax
jne 0x140006694
mov rdx, qword [rbx + 0x68]
xorps xmm6, xmm6
mov ecx, 0x2f7e
cvtsi2sd xmm6, rdx
divsd xmm6, qword [0x14000e190]
mulsd xmm6, qword [0x14000e188]
movaps xmm2, xmm6
movq r8, xmm6
call fcn.14000bedc
movsd xmm0, qword [0x14000e180]
comisd xmm0, xmm6
jbe 0x140006714
mov ecx, 0x2f7f
call fcn.14000bedc
xor edi, edi
cmp dword [rbx + 0xf0], edi
jbe 0x140006743
mov rax, qword [rbx + 8]
mov rcx, rbx
mov rdx, qword [rbx + 0xf8]
mov r8d, dword [rax + 0x14]
mov rdx, qword [rdx + rdi*8]
call fcn.140008e14
inc edi
cmp edi, dword [rbx + 0xf0]
jb 0x14000671e
mov rax, qword [rbx + 8]
cmp dword [rax + 0x14], 0
je 0x140006755
mov rcx, rbx
call fcn.1400063e0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140009970
mov rbx, qword [rsp + 0x88]
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rdi
ret
Function at 0x140009564
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
movsxd rax, ecx
lea esi, [rdx + 0xf]
lea r14, [0x140034f60]
mov edi, 0x2720
lea rbx, [rax + rax*2]
and esi, 0xfffffff0
jge 0x1400095b9
mov ecx, edi
call fcn.14000baf4
mov rcx, rax
lea r8, str.D:_a_work1_s_src_vctoolsCompilerUtc_src_toolspogocommonmemallo.c
mov r9d, 0xd5
mov edx, 1
call fcn.14000aabc
movsxd rbp, esi
cmp rbp, 0xff0
ja 0x14000965d
cmp esi, dword [r14 + rbx*8 + 0x10]
jle 0x140009648
mov rdx, qword [0x140034f50]
test rdx, rdx
je 0x1400095e8
mov rax, qword [rdx]
mov qword [0x140034f50], rax
jmp 0x140009621
mov ecx, 0x1000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdx, rax
test rax, rax
jne 0x14000961a
mov ecx, edi
call fcn.14000baf4
mov ebx, 2
mov rcx, rax
mov edx, ebx
call fcn.14000ab14
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov dword [rax + 8], 0xff0
mov rax, qword [r14 + rbx*8]
lea rcx, [rdx + 0x10]
mov qword [rdx], rax
mov qword [r14 + rbx*8], rdx
mov eax, dword [rdx + 8]
mov dword [r14 + rbx*8 + 0x10], eax
mov qword [r14 + rbx*8 + 8], rcx
movsxd r8, dword [rdx + 8]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rdi, qword [r14 + rbx*8 + 8]
sub dword [r14 + rbx*8 + 0x10], esi
lea rax, [rdi + rbp]
mov qword [r14 + rbx*8 + 8], rax
jmp 0x1400096c3
lea rcx, [rbp + 0x10]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, rax
test rax, rax
jne 0x14000968e
mov ecx, edi
call fcn.14000baf4
mov ebx, 2
mov rcx, rax
mov edx, ebx
call fcn.14000ab14
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rdx, qword [r14 + rbx*8]
test rdx, rdx
jne 0x1400096a0
and qword [rax], rdx
mov qword [r14 + rbx*8], rcx
jmp 0x1400096a9
mov rax, qword [rdx]
mov qword [rcx], rax
mov qword [rdx], rcx
lea rdi, [rcx + 0x10]
mov dword [rcx + 8], esi
mov rcx, rdi
mov r8, rbp
xor edx, edx
call sub.VCRUNTIME140.dll_memset
and dword [r14 + rbx*8 + 0x10], 0
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14000baf4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword [0x140031b70]
xor edi, edi
mov ebx, ecx
mov esi, 1
test rax, rax
jne 0x14000bb44
cmp byte [0x140031b78], dil
jne 0x14000bb44
xor edx, edx
xor ecx, ecx
call fcn.14000b220
movzx ecx, byte [0x140031b78]
test rax, rax
mov qword [0x140031b70], rax
cmove ecx, esi
mov byte [0x140031b78], cl
mov ecx, ebx
xor r9d, r9d
sar ecx, 4
add cx, si
movzx r8d, cx
mov rcx, rax
lea edx, [r9 + 6]
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
je 0x14000bba8
mov rcx, qword [0x140031b70]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
test rax, rax
je 0x14000bba8
and ebx, 0x8000000f
jge 0x14000bb8c
sub ebx, esi
or ebx, 0xfffffff0
add ebx, esi
test ebx, ebx
je 0x14000bb9f
movzx eax, word [rcx]
lea rcx, [rcx + rax*2]
add rcx, 2
sub ebx, esi
jne 0x14000bb90
lea rax, [rcx + 2]
cmp word [rcx], di
jne 0x14000bbaf
lea rax, [0x14000d8b8]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14000bc5c
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0xb0
mov rax, qword [0x140011010]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rbx, rcx
xor r8d, r8d
lea rcx, str.VS_UNICODE_OUTPUT
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14000bcbd
mov r8d, 0x40
lea rdx, [rsp + 0x20]
lea rcx, str.VS_UNICODE_OUTPUT
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi64]
mov qword [rbx], rax
mov eax, 1
jmp 0x14000bcbf
xor eax, eax
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140009970
add rsp, 0xb0
pop rbx
ret
Function at 0x14000bcd8
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x170
mov rax, qword [0x140011010]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rbp, rdx
lea rsi, [rsp + 0x60]
mov r14, rcx
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov ecx, eax
lea rdx, [rsp + 0x40]
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_GetCPInfo]
or rdi, 0xffffffffffffffff
mov rbx, rdi
xor r12d, r12d
inc rbx
cmp word [rbp + rbx*2], r12w
jne 0x14000bd2e
imul ebx, dword [rsp + 0x40]
inc ebx
cmp ebx, 0x100
jle 0x14000bd79
movsxd rcx, ebx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
jne 0x14000bd79
mov ecx, 0x2720
call fcn.14000baf4
lea ebx, [rsi + 2]
mov rcx, rax
mov edx, ebx
call fcn.14000ab14
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov qword [rsp + 0x38], r12
mov r9d, edi
mov qword [rsp + 0x30], r12
mov r8, rbp
mov dword [rsp + 0x28], ebx
xor edx, edx
mov ecx, r15d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputs]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
cmp ebx, 0x100
jle 0x14000bdc3
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc rdi
cmp word [rbp + rdi*2], r12w
jne 0x14000bdc3
mov eax, edi
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140009970
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x14000bdfc
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r15
sub rsp, 0x30
movsxd rdi, edx
mov rbx, rcx
cmp edi, 1
ja 0x14000bec9
lea r15, [0x140000000]
xor ebp, ebp
cmp dword [r15 + rdi*4 + 0x31b80], ebp
jne 0x14000be5c
lea ecx, [rbp + 1]
test edx, edx
je 0x14000be3a
lea ecx, [rbp + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call fcn.14000bc10
mov dword [r15 + rdi*4 + 0x31b88], eax
mov dword [r15 + rdi*4 + 0x31b80], 1
cmp dword [r15 + rdi*4 + 0x31b88], ebp
je 0x14000be71
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_conio_l1_1_0.dll__cputws]
jmp 0x14000bec9
lea rcx, [rsp + 0x60]
call fcn.14000bc5c
test eax, eax
je 0x14000beaa
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], bp
jne 0x14000be83
mov rcx, qword [rsp + 0x60]
lea r8d, [rax + rax]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], rbp
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x14000bec9
mov ecx, 1
test edi, edi
je 0x14000beb8
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
mov rdx, rbx
call fcn.14000bcd8
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop rdi
pop rsi
ret
Function at 0x14000c970
Capabilities:
Get file size

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
mov rsi, r8
mov r8d, 1
mov r14, r9
test edx, edx
je 0x14000c9a2
lea edi, [r8 + 7]
mov ebp, r8d
jmp 0x14000c9aa
mov edi, 2
lea ebp, [rdi + 2]
and qword [rsp + 0x30], 0
xor r9d, r9d
and dword [rsp + 0x28], 0
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000ca49
test rsi, rsi
je 0x14000c9e6
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsi], eax
and qword [rsp + 0x28], 0
xor r9d, r9d
and dword [rsp + 0x20], 0
mov r8d, edi
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rsi, rax
test rax, rax
je 0x14000ca40
and qword [rsp + 0x28], 0
xor r9d, r9d
and qword [rsp + 0x20], 0
xor r8d, r8d
mov edx, ebp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x14000ca40
mov qword [r14], rbx
mov rax, rdi
jmp 0x14000ca4b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret