joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002d964
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140028f90
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140028f90
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002dab4
cmp rax, 0xffffffffffffffff
je 0x14002dab4
xor edi, edi
test rbp, rbp
jle 0x14002da5f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140022cbc
mov rbx, rax
test rax, rax
jne 0x14002d9ec
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002da55
mov edx, 0x8000
mov ecx, r14d
call fcn.140021524
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14002997c
cmp eax, 0xffffffff
je 0x14002da35
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14002d9fc
mov edx, r15d
mov ecx, r14d
call fcn.140021524
jmp 0x14002da55
cmp byte [rsi + 0x38], dil
je 0x14002da4c
cmp dword [rsi + 0x34], 5
jne 0x14002da4c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002da55
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140022d34
jmp 0x14002dac8
jns 0x14002dac8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140028f90
cmp rax, 0xffffffffffffffff
jne 0x14002da80
cmp byte [rsi + 0x30], dil
je 0x14002dac8
mov edi, dword [rsi + 0x2c]
jmp 0x14002dac8
mov ecx, r14d
call fcn.140027694
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14002dac8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14002dac8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14002dac1
mov eax, dword [rsi + 0x2c]
jmp 0x14002dac6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140028f90
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140001370
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [rsp + 0x60]
mov qword [rsp], rax
mov rax, qword [rsp]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x18], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x18]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x10]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x10]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov qword [rsp + 8], 0
jmp 0x14000141a
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x10]
mov eax, dword [rax + 0x18]
cmp qword [rsp + 8], rax
jae 0x1400014a1
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 8]
movzx eax, word [rax + rcx*2]
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 8]
mov eax, dword [rax + rcx*4]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
lea rcx, [0x14001a958]
sub rcx, rax
movzx edx, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x14000148c
inc rax
test dl, dl
jne 0x140001479
xor eax, eax
jmp 0x140001491
sbb eax, eax
or eax, 1
test eax, eax
jne 0x14000149c
mov rax, qword [rsp + 0x40]
jmp 0x1400014a1
jmp 0x14000140d
add rsp, 0x58
ret

Function at 0x140001640
Capabilities:
Hash data using fnv

Disassembly:
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
sub rsp, 0x18
xor eax, eax
test eax, eax
je 0x14000165f
movsx eax, byte [rsp + 0x28]
or eax, 0x20
mov dword [rsp], eax
jmp 0x140001667
movsx eax, byte [rsp + 0x28]
mov dword [rsp], eax
mov eax, dword [rsp]
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
imul eax, eax, 0x1000193
add rsp, 0x18
ret

Function at 0x140001810
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x30]
ret

Function at 0x140001f64
Capabilities:
Parse pe header

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

Function at 0x14000839c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140008198
Function at 0x14000b45c
Capabilities:
Query environment variable

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
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14000b48c
xor eax, eax
jmp 0x14000b54f
mov rbp, rbx
cmp word [rax], si
je 0x14000b4b1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000b498
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000b494
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14000b37c
movsxd r14, eax
test eax, eax
jne 0x14000b4ef
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000b485
mov rcx, r14
call fcn.14000c338
mov rdi, rax
test rax, rax
jne 0x14000b508
xor ecx, ecx
call fcn.1400099dc
jmp 0x14000b4e4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14000b37c
test eax, eax
jne 0x14000b539
mov rcx, rdi
call fcn.1400099dc
jmp 0x14000b543
xor ecx, ecx
call fcn.1400099dc
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
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
Function at 0x14000ea40
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000a44c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000eaca
cmp byte [rbp - 0x21], r15b
je 0x14000eac5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000eb00
call fcn.14000cb48
test eax, eax
jne 0x14000eaec
cmp byte [rbp - 0x21], r15b
je 0x14000eae4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000eb00
cmp byte [rbp - 0x21], r15b
je 0x14000eafd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140009a2c
test eax, eax
jne 0x14000eba0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000a44c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000eb3f
cmp byte [rbp - 0x21], r15b
je 0x14000eb74
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000eb74
call fcn.14000cb48
test eax, eax
jne 0x14000eb60
cmp byte [rbp - 0x21], r15b
je 0x14000eb59
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000eb74
cmp byte [rbp - 0x21], r15b
je 0x14000eb71
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140009a2c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000eba0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000eba3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000ebb1
mov rcx, rdi
call fcn.1400099dc
cmp byte [rbp + 0x3f], r15b
je 0x14000ebc0
mov rcx, qword [rbp + 0x27]
call fcn.1400099dc
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140011ad0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140011af8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140011af8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002e90
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140262920]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, rcx
call fcn.140019338
xor r8d, r8d
xor edx, edx
mov ecx, 0x40000
call qword [sym.imp.KERNEL32.dll_HeapCreate]
xor edx, edx
mov r8d, 0x43ed1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x1400030bf
mov r8d, 0x43ed1
lea rdx, [0x1402634a0]
mov rcx, rax
call fcn.14019d5d0
mov dword [rsp + 0x28], 1
xor esi, esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.140017348
call rbx
xor edx, edx
mov rcx, rdi
call fcn.140017570
xor r9d, r9d
mov edx, 0x40000
mov r8d, 0x80
mov rcx, rdi
call fcn.140017310
mov rcx, rdi
call fcn.140003d30
mov r9, qword [rdi + 0x1e8]
mov edx, 0x80
lea r8d, [rsi + 1]
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov r9, qword [rdi + 0x1e8]
xor r8d, r8d
mov edx, 0x80
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov ebx, esi
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], esi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareJixun.MoeDuGenerator
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140003029
mov rbx, qword [rsp + 0x30]
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x38], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
lea rdx, str.LANG_ID
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000300f
cmp dword [rsp + 0x3c], 4
jne 0x14000300f
movzx ecx, word [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetThreadUILanguage]
test rbx, rbx
je 0x140003025
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rsi
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], esi
lea rcx, [rdi + 0x170]
mov edx, 0x66
call fcn.140005240
lea rcx, [rdi + 0x178]
mov edx, 0x67
call fcn.140005240
mov r9d, 0x27100000
xor r8d, r8d
mov edx, 0x401
mov rcx, qword [rdi + 0x230]
call qword [sym.imp.USER32.dll_SendMessageW]
mov edx, 6
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc5
mov rcx, qword [rdi + 0x5a0]
call qword [sym.imp.USER32.dll_SendMessageW]
nop
test rbx, rbx
je 0x14000309a
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140199ac0
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
mov ecx, 1
call fcn.1401a3f4c
int3
Function at 0x140003d30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140262920]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, rcx
call fcn.14001aef0
mov rcx, rax
test rax, rax
je 0x140003f21
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
call fcn.14001ed74
mov rdi, qword [rax + 0x18]
mov edx, 1
lea r8d, [rdx + 0xf]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, 0xffffffffffffffff
test rax, rax
je 0x140003ed8
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140003ed8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x140003ed8
xor ebp, ebp
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], ebp
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
lea rdx, str.StringFileInfo080004B0FileVersion
mov rcx, rax
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x140003ed8
mov qword [rsp + 0x30], rbp
call fcn.14001aef0
mov rcx, rax
test rax, rax
je 0x140003f16
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14001105c
mov ecx, dword [rsp + 0x20]
inc ecx
mov eax, 2
mul rcx
cmovo rax, rbx
mov rcx, rax
call fcn.140006790
mov rdi, rax
mov r8d, dword [rsp + 0x20]
add r8, r8
mov rdx, qword [rsp + 0x28]
mov rcx, rax
call fcn.14019d5d0
mov ecx, dword [rsp + 0x20]
mov word [rdi + rcx*2], bp
lea edx, [rbx + 0x2f]
mov rcx, rdi
call fcn.14019d410
test rax, rax
je 0x140003e74
mov word [rax], bp
lea rdx, [0x14022db70]
lea rcx, [rsp + 0x30]
call fcn.140004a30
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140004a30
lea rdx, [0x14022db88]
lea rcx, [rsp + 0x30]
call fcn.140004a30
mov rdx, qword [rsp + 0x30]
mov rcx, rsi
call fcn.140017504
mov rcx, rdi
call fcn.14000d838
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140003ed8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x140003ef4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140199ac0
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
mov ecx, 0x80004005
call fcn.140005930
nop
mov ecx, 0x80004005
call fcn.140005930
int3

Function at 0x140003f80
Capabilities:
Create thread
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov ecx, 0x1b
call qword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jb 0x140003fba
xor eax, eax
lea r8, [0x140003f30]
mov qword [rsp + 0x28], rax
mov r9, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
add rsp, 0x30
pop rbx
ret
Function at 0x140004890
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, dx
jmp method.CDialogEx.virtual_720
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov qword [rcx + 0xf0], rdx
mov rbp, r8
mov rsi, rdx
mov rdi, rcx
cmp rdx, 0x10000
jae 0x1400188e3
cmp dword [rcx + 0xe8], 0
jne 0x1400188e3
movzx eax, si
mov dword [rcx + 0xe8], eax
call fcn.14001ed74
mov r8d, 5
mov rdx, rsi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp 0x140018c44
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rsi, r9
mov rcx, rdx
mov rbx, r8
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rbx, rbx
jne 0x140018c99
call fcn.140034b30
mov rdx, rax
test rax, rax
je 0x140018c97
mov rcx, qword [rax]
mov rax, qword [rcx + 0xe8]
mov rcx, rdx
call qword [case.0x1401585e9.0]
mov rbx, rax
jmp 0x140018c99
xor ebx, ebx
and qword [rdi + 0x108], 0
mov r9, rsi
mov r8, rbx
mov rdx, rbp
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.1400189b8

Function at 0x140005060
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 0x1400050d5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1400050d5
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x1400050c5
nop
cmp rbx, rcx
jae 0x1400050d5
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x1400050b0
cmp rbx, rcx
jae 0x1400050d5
cmp word [rbx], 0
je 0x1400050d5
mov rax, rbx
jmp 0x1400050d7
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 0x1400050f0
Capabilities:
Extract resource via kernel32 functions

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 eax, r8d
mov rsi, rdx
shr eax, 4
mov edi, r8d
inc ax
mov r14, rcx
movzx edx, ax
mov r8d, 6
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
je 0x14000520b
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000520b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14000520b
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140005199
nop word [rax + rax]
cmp rbx, rcx
jae 0x14000520b
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140005180
cmp rbx, rcx
jae 0x14000520b
movzx edi, word [rbx]
test di, di
je 0x14000520b
mov r10, qword [r14]
mov ecx, 1
movzx edx, di
mov eax, dword [r10 - 0xc]
sub ecx, dword [r10 - 8]
sub eax, edi
or ecx, eax
jge 0x1400051cf
mov edx, edi
mov rcx, r14
call fcn.1400058d0
mov r10, qword [r14]
movzx edx, word [rbx]
movzx r9d, dx
lea r8, [rbx + 2]
mov rdx, rdi
mov rcx, r10
call fcn.1401a3bf4
xor edx, edx
test eax, eax
je 0x1400051f2
cmp eax, 0xc
je 0x14000522e
cmp eax, 0x50
jne 0x140005228
mov rcx, qword [r14]
cmp edi, dword [rcx - 0xc]
jg 0x140005234
mov dword [rcx - 0x10], edi
mov eax, 1
mov rcx, qword [r14]
mov word [rcx + rdi*2], dx
jmp 0x14000520d
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
call fcn.14001a7fc
int3
call fcn.14001a820
int3
mov ecx, 0x80070057
call fcn.140005930
int3
Function at 0x140005240
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov edi, edx
mov ecx, edx
call fcn.14001b0e8
mov rsi, rax
test rax, rax
jne 0x140005275
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov eax, edi
mov qword [rsp + 0x30], rbx
shr eax, 4
mov r8d, 6
inc ax
mov qword [rsp + 0x38], rbp
movzx edx, ax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
je 0x14000536d
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000536d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14000536d
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x1400052fe
cmp rbx, rcx
jae 0x14000536d
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x1400052e5
cmp rbx, rcx
jae 0x14000536d
movzx edi, word [rbx]
test di, di
je 0x14000536d
mov r10, qword [r14]
mov ebp, 1
mov ecx, ebp
movzx edx, di
mov eax, dword [r10 - 0xc]
sub ecx, dword [r10 - 8]
sub eax, edi
or ecx, eax
jge 0x140005336
mov edx, edi
mov rcx, r14
call fcn.1400058d0
mov r10, qword [r14]
movzx edx, word [rbx]
movzx r9d, dx
lea r8, [rbx + 2]
mov rdx, rdi
mov rcx, r10
call fcn.1401a3bf4
xor ecx, ecx
test eax, eax
je 0x140005359
cmp eax, 0xc
je 0x140005394
cmp eax, 0x50
jne 0x14000538e
mov rax, qword [r14]
cmp edi, dword [rax - 0xc]
jg 0x14000539a
mov dword [rax - 0x10], edi
mov rax, qword [r14]
mov word [rax + rdi*2], cx
jmp 0x140005371
xor ecx, ecx
mov ebp, ecx
mov rbx, qword [rsp + 0x30]
mov eax, ebp
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
call fcn.14001a7fc
int3
call fcn.14001a820
int3
mov ecx, 0x80070057
call fcn.140005930
int3
Function at 0x140005b70
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
lea r8, [rdx + 2]
mov rdi, rdx
movabs rax, 0xaaaaaaaaaaaaaaab
mul r8
mov rcx, rdx
shr rcx, 1
shl rcx, 2
cmp rcx, rdi
jb 0x140005cc3
mov rax, 0xffffffffffffffff
add rcx, 1
cmovb rcx, rax
lea edx, [rax + 3]
call fcn.1401a425c
mov r10, rax
test rax, rax
je 0x140005cc3
mov qword [rsp + 0x30], rsi
lea rsi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea r11, [rbx + rdi]
mov r9, rax
cmp rdi, 3
jl 0x140005c4f
movzx ecx, byte [rbx]
sub rdi, 3
movzx edx, byte [rbx + 2]
mov eax, ecx
movzx r8d, byte [rbx + 1]
and ecx, 3
shr rax, 2
add rbx, 3
shl rcx, 4
movzx eax, word [rsi + rax*2]
mov word [r9], ax
mov eax, r8d
shr rax, 4
and r8d, 0xf
or rax, rcx
shl r8d, 2
mov ecx, r8d
movzx eax, word [rsi + rax*2]
mov word [r9 + 2], ax
mov eax, edx
shr rax, 6
and edx, 0x3f
or rcx, rax
movzx eax, word [rsi + rcx*2]
mov word [r9 + 4], ax
movzx eax, word [rsi + rdx*2]
mov word [r9 + 6], ax
add r9, 8
cmp rdi, 3
jge 0x140005be0
sub r11, rbx
je 0x140005cb0
movzx edx, byte [rbx]
mov r8d, 0x3d
mov eax, edx
and edx, 3
shr rax, 2
movzx eax, word [rsi + rax*2]
mov word [r9], ax
cmp r11, 1
jne 0x140005c82
shl rdx, 5
movzx eax, r8w
movzx ecx, word [rdx + rsi]
jmp 0x140005ca1
movzx ecx, byte [rbx + 1]
mov eax, ecx
shl rdx, 4
and eax, 0xf
shr rcx, 4
shl eax, 2
or rcx, rdx
movzx eax, word [rsi + rax*2]
movzx ecx, word [rsi + rcx*2]
mov word [r9 + 2], cx
mov word [r9 + 4], ax
mov word [r9 + 6], r8w
mov rsi, qword [rsp + 0x30]
mov rax, r10
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret