joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008660
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov esi, r9d
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x38]
lea r9, [rsp + 0x30]
mov rdi, rcx
mov byte [rsp + 0x20], 0
call fcn.140007eb0
mov rbx, qword [rdi + 0x18]
test rbx, rbx
je 0x1400086f0
nop
nop
nop
mov dword [rsp + 0x80], SafeArrayUnaccessData
mov rcx, qword [rbx]
lea rdx, [rsp + 0x80]
mov rax, qword [rcx]
call qword [rax]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x1400086a0
mov rbx, qword [rdi + 0x18]
test rbx, rbx
je 0x1400086e8
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400086e0
mov edx, 1
call fcn.140009650
mov rcx, rbx
call fcn.140052150
mov qword [rdi + 0x18], 0
mov edx, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x38]
xor r9d, r9d
add ecx, edx
xor r8d, r8d
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x48], ecx
mov ecx, dword [rsp + 0x3c]
mov dword [rsp + 0x44], 0
add ecx, edx
mov edx, esi
mov dword [rsp + 0x4c], ecx
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov rax, qword [rdi + 0xa8]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x34]
mov rcx, rdi
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x50], 1
sub eax, dword [rsp + 0x40]
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x4c]
sub eax, dword [rsp + 0x44]
mov dword [rsp + 0x68], eax
mov rax, qword [rdi]
call qword [rax]
mov rcx, qword [rdi + 0xa8]
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rdi + 0xa8]
call qword [sym.imp.USER32.dll_UpdateWindow]
cmp qword [rdi + 0xa8], 0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
setne al
mov rsp, r11
pop rdi
ret
Function at 0x1400093a0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x1400980c0]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, qword [rcx + 0x20]
mov rbp, rcx
lea rcx, [rsp + 0x30]
mov eax, dword [rbp + 0x28]
mov rdi, qword [rbp + 0x18]
mov dword [rcx], eax
mov eax, dword [rbp + 0x2c]
mov dword [rcx + 4], eax
mov eax, dword [rbp + 0x30]
mov dword [rcx + 8], eax
mov eax, dword [rbp + 0x34]
mov dword [rcx + 0xc], eax
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetParent]
mov r9, rdi
mov r8, rbx
mov rcx, rax
mov edx, 0x135
call qword [sym.imp.USER32.dll_SendMessageA]
test rax, rax
je 0x140009423
lea rdx, [rsp + 0x30]
mov r8, rax
mov rcx, rbx
call qword [sym.imp.USER32.dll_FillRect]
mov esi, dword [rbp + 0x10]
mov r9d, SafeArrayGetLBound
lea rdx, [rsp + 0x30]
test sil, 1
mov rcx, rbx
lea r8d, [r9 - 5]
jne 0x140009442
lea r8d, [r9 - 0xa]
call qword [sym.imp.USER32.dll_DrawEdge]
mov rcx, qword [rbp + 0x18]
lea rdx, [rsp + 0x40]
mov r8d, 0x100
call qword [sym.imp.USER32.dll_GetWindowTextA]
test sil, 4
je 0x1400094c2
mov edx, 0xf0f0f0
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SetTextColor]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
repne scasb al, byte [rdi]
mov dword [rsp + 0x20], 0x25
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call qword [sym.imp.USER32.dll_DrawTextA]
add dword [rsp + 0x34], 1
add dword [rsp + 0x30], 1
add dword [rsp + 0x38], 1
add dword [rsp + 0x3c], 1
mov edx, 0x787878
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SetTextColor]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
repne scasb al, byte [rdi]
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
not rcx
mov dword [rsp + 0x20], 0x25
lea r8, [rcx - 1]
mov rcx, rbx
call qword [sym.imp.USER32.dll_DrawTextA]
test sil, 0x10
je 0x140009519
add dword [rsp + 0x34], 3
add dword [rsp + 0x30], 3
sub dword [rsp + 0x38], 3
sub dword [rsp + 0x3c], 3
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.USER32.dll_DrawFocusRect]
mov al, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140052650
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000c9f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov eax, r8d
mov rsi, rdx
mov ebx, r8d
shr eax, 4
mov rbp, rcx
mov r8d, 6
add ax, 1
mov rcx, rsi
movzx edx, ax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
mov r12, rax
je 0x14000cb59
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000cb59
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rdi, rax
je 0x14000cb59
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and ebx, 0xf
jbe 0x14000ca8a
cmp rdi, r11
jae 0x14000cb59
add ebx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x14000ca74
cmp rdi, r11
jae 0x14000cb59
movzx eax, word [rdi]
test ax, ax
je 0x14000cb59
mov qword [rsp + 0x60], r13
movzx ebx, ax
call qword [0x140098040]
xor r13d, r13d
lea r12, [rdi + 2]
mov r9d, ebx
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov ecx, eax
mov r8, r12
xor edx, edx
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, qword [rbp]
mov edx, 1
movsxd rsi, eax
sub edx, dword [rcx - 8]
mov ecx, dword [rcx - 0xc]
sub ecx, esi
or edx, ecx
jge 0x14000cafa
mov edx, esi
mov rcx, rbp
call fcn.14000cec0
mov rbx, qword [rbp]
movzx edi, word [rdi]
call qword [0x140098040]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov ecx, eax
mov r9d, edi
mov r8, r12
xor edx, edx
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test esi, esi
mov r13, qword [rsp + 0x60]
js 0x14000cb4e
mov rcx, qword [rbp]
cmp esi, dword [rcx - 0xc]
jg 0x14000cb4e
mov dword [rcx - 0x10], esi
mov rcx, qword [rbp]
mov eax, 1
mov byte [rsi + rcx], 0
jmp 0x14000cb5b
mov ecx, 0x80070057
call fcn.140002840
int3
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x14000eba0
Capabilities:
Get graphical window text

Disassembly:
push rbx
push rsi
sub rsp, 0x28
test dl, dl
mov rbx, rcx
je 0x14000ebe6
test rcx, rcx
je 0x14000ebb9
lea rsi, [rcx + 0x20]
jmp 0x14000ebbb
xor esi, esi
cmp qword [rsi], 0
je 0x14000ecb9
mov rdx, qword [rcx + 8]
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.USER32.dll_SetWindowTextA]
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov al, 1
add rsp, 0x28
pop rsi
pop rbx
ret
xor esi, esi
test rcx, rcx
je 0x14000ebf3
lea rax, [rcx + 0x20]
jmp 0x14000ebf6
mov rax, rsi
cmp qword [rax], rsi
je 0x14000ecb9
test rcx, rcx
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x20], r13
je 0x14000ec14
add rcx, 0x20
jmp 0x14000ec17
mov rcx, rsi
mov rcx, qword [rcx]
mov qword [rsp + 0x50], r12
call qword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov rdx, qword [rbx + 8]
test rdx, rdx
lea r13d, [rax + 1]
movsxd rbp, r13d
je 0x14000ec7b
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x48], rdi
xor eax, eax
mov rdi, rdx
lea r12, [rbp + 1]
repne scasb al, byte [rdi]
mov rdi, qword [rsp + 0x48]
not rcx
sub rcx, 1
cmp rcx, r12
je 0x14000ec88
mov rcx, rdx
call fcn.140052fa0
test r13d, r13d
je 0x14000ec75
mov rcx, r12
call fcn.1400516a0
mov qword [rbx + 8], rax
jmp 0x14000ec88
mov qword [rbx + 8], rsi
jmp 0x14000ec88
lea rcx, [rbp + 1]
call fcn.1400516a0
mov qword [rbx + 8], rax
test rbx, rbx
mov r12, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x40]
je 0x14000ec9b
lea rsi, [rbx + 0x20]
mov rdx, qword [rbx + 8]
mov rcx, qword [rsi]
mov r8d, r13d
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov r13, qword [rsp + 0x20]
mov al, 1
add rsp, 0x28
pop rsi
pop rbx
ret
xor al, al
add rsp, 0x28
pop rsi
pop rbx
ret
Function at 0x140010650
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov r12d, ecx
lea rcx, [0x140252140]
xor r13d, r13d
xor edx, edx
mov rbx, r13
call fcn.1400517e8
lea ebp, [r13 + 1]
test rax, rax
mov rsi, rax
je 0x140010756
nop
test rbx, rbx
jne 0x140010756
mov eax, r12d
lea edx, [rbx + 6]
xor r9d, r9d
shr eax, 4
mov rcx, rsi
add ax, 1
movzx r8d, ax
call qword [sym.imp.KERNEL32.dll_FindResourceExA]
test rax, rax
mov rdi, rax
jne 0x1400106c3
mov rbx, r13
jmp 0x140010739
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x1400106d9
mov rbx, r13
jmp 0x140010734
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rbx, rax
jne 0x1400106ef
mov rbx, r13
jmp 0x140010734
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, r12d
mov r11d, eax
add r11, rbx
and ecx, 0xf
jbe 0x140010722
nop
nop
cmp rbx, r11
jae 0x140010727
add ecx, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x140010710
cmp rbx, r11
jb 0x14001072c
mov rbx, r13
jmp 0x140010734
cmp word [rbx], r13w
cmove rbx, r13
test rbx, rbx
jne 0x140010771
lea rcx, [0x140252140]
mov edx, ebp
call fcn.1400517e8
add ebp, 1
test rax, rax
mov rsi, rax
jne 0x140010690
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
mov rax, rsi
jmp 0x140010758
Function at 0x140010870
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
sub rsp, 0x130
mov rax, qword [0x1400980c0]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rcx, qword [0x140253708]
mov ebx, dword [0x140254ce4]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea r8d, [rdx - 6]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
jne 0x1400108b3
xor eax, eax
jmp 0x1400109f8
mov rcx, qword [0x140253708]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400108ac
mov rcx, rax
mov qword [rsp + 0x140], rsi
mov qword [rsp + 0x148], rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
lea rsi, [0x140253b60]
xor edx, edx
mov rcx, rsi
mov r8d, 0xff
mov rdi, rax
call fcn.1400565d0
mov rcx, qword [0x140253708]
mov r9d, 0xfe
lea edx, [r9 - 0x6e]
mov r8, rsi
call qword [sym.imp.USER32.dll_LoadStringA]
mov qword [0x14024f508], rsi
cmp word [rdi + 6], 0
mov rsi, qword [rsp + 0x140]
je 0x14001093c
mov rcx, qword [0x140253708]
mov edx, SafeArrayGetLBound
call fcn.140001c00
test ebx, ebx
jne 0x1400109a2
movzx ecx, word [rdi + 2]
movsx eax, word [rdi]
mov dword [0x140254ccc], 1
mov edx, eax
mov word [0x14024f3b8], cx
movsx ecx, cx
mov word [0x14024f3b6], ax
mov dword [0x14024f3ec], eax
lea eax, [rcx - 0x28]
mov dword [0x14024f3f0], eax
lea eax, [rcx - 0x1e]
mov dword [0x14024f408], edx
mov dword [0x14024f41c], edx
mov dword [0x14024f4a4], eax
movzx r8d, word [rdi + 4]
lea rcx, [0x140001e10]
xor edx, edx
imul r8d, r8d, 0x3e8
call fcn.1400522b0
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0xff
call fcn.1400565d0
mov rcx, qword [0x140253708]
lea r8, [rsp + 0x20]
mov r9d, 0xfe
mov edx, 0x70
call qword [sym.imp.USER32.dll_LoadStringA]
test ebx, ebx
mov rdi, qword [rsp + 0x148]
je 0x1400109e9
lea rcx, [rsp + 0x20]
call fcn.140052e90
jmp 0x1400109f3
lea rcx, [rsp + 0x20]
call fcn.140001f30
mov eax, 1
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140052650
add rsp, 0x130
pop rbx
ret

Function at 0x140011af0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x1400980c0]
xor rax, rsp
mov qword [rsp + 0x450], rax
cmp word [rcx], 0x5c
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
je 0x140011b45
cmp word [rcx + 2], 0x3a
je 0x140011b45
lea rdx, [0x140253960]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rsp + 0x50]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x140011b53
mov rdx, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
xor r9d, r9d
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x50]
lea r8d, [r9 + 1]
mov edx, 0x40000000
mov dword [rsp + 0x28], 7
mov dword [rsp + 0x20], 1
call fcn.140069680
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x140011bd7
lea r9, [rsp + 0x40]
mov r8d, esi
mov rdx, rdi
mov rcx, rax
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r9, [0x140253724]
lea r8, [0x14025371c]
lea rdx, [0x140253714]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140052650
add rsp, 0x460
pop rdi
pop rsi
pop rbx
ret
Function at 0x14001a6a0
Capabilities:
Enumerate pe sections

Disassembly:
movzx eax, word [rdx + 0x14]
xor r10d, r10d
mov r11d, ecx
lea r9, [rax + rdx + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x14001a6e0
mov eax, dword [r9 + 8]
test eax, eax
jne 0x14001a6c3
mov eax, dword [r9 + 0x10]
mov ecx, dword [r9 + 0xc]
cmp r11d, ecx
jb 0x14001a6d3
add eax, ecx
cmp r11d, eax
jb 0x14001a6e3
add r10d, 1
add r9, 0x28
cmp r10d, edx
jb 0x14001a6b7
xor eax, eax
ret
mov eax, ecx
sub eax, dword [r9 + 0x14]
movsxd rcx, eax
mov rax, r11
sub rax, rcx
add rax, r8
ret

Function at 0x1400351ee
Capabilities:
Encode data using xor

Disassembly:
add qword [rsp + r15 - 0x248e73], 0xffffffffbfca22c9
xor r15w, 0x7026
jo 0x14002ad01
call fcn.140430e82
sub ecx, dword [rax - 0x75]
pop rsp
and al, 0x60
add rsp, 0x50
pop rdi
ret
mov rbp, qword [rsp + r15 - 0x242130]
add r15w, 0x6d4b
ja 0x14002acf5
pushfq
add qword [rsp + 8], 0xffffffffbfa7a09b
push 0x5d61218c
push r8
push r13
mov qword [rsp + 0x20], 0x31175c6b
push qword [rsp + 0x18]
popfq
lea rsp, [rsp + 0x20]
call fcn.140544439

Function at 0x14003d570
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0x80
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov r13, r9
mov ebp, r8d
mov rbx, rdx
mov rdi, rcx
cmp dword [rcx + 0x1e0], 0
jne 0x14003d6e0
lea rcx, [0x140080830]
jmp 0x1405808ed

Function at 0x1400435c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x330
mov qword [rsp + 0x1f0], 0xfffffffffffffffe
mov edi, edx
mov rbx, rcx
lea rcx, [0x1400808b0]
jmp 0x1405822ea

Function at 0x140044210
Capabilities:
Authenticate hmac
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x3f0
mov qword [rsp + 0x220], 0xfffffffffffffffe
mov r13d, edx
mov dword [rsp + 0x448], edx
mov rbx, rcx
lea rcx, [0x1400808d0]
jmp 0x1405838d1
Function at 0x140046d90
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 8
cmp dword [rcx + 0x398], 0
mov r9d, edx
je 0x140046daf
mov rax, r9
add rax, qword [rcx + 0x3a8]
add rsp, 8
ret
mov qword [rsp], rbx
mov rbx, qword [rcx + 0x3a8]
movsxd rdx, dword [rbx + 0x3c]
add rdx, rbx
cmp word [rdx + 0x18], 0x20b
jne 0x140046e18
movzx eax, word [rdx + 0x14]
movzx r10d, word [rdx + 6]
xor r11d, r11d
test r10d, r10d
lea rcx, [rax + rdx + 0x18]
mov r8d, r11d
je 0x140046e74
mov eax, dword [rcx + 8]
test eax, eax
jne 0x140046df0
mov eax, dword [rcx + 0x10]
mov edx, dword [rcx + 0xc]
cmp r9d, edx
jb 0x140046dff
add eax, edx
cmp r9d, eax
jb 0x140046e63
add r8d, 1
add rcx, 0x28
cmp r8d, r10d
jb 0x140046de6
mov rax, r11
mov rbx, qword [rsp]
add rsp, 8
ret
movzx eax, word [rdx + 0x14]
movzx r10d, word [rdx + 6]
xor r11d, r11d
test r10d, r10d
lea rcx, [rax + rdx + 0x18]
mov r8d, r11d
je 0x140046e74
mov eax, dword [rcx + 8]
test eax, eax
jne 0x140046e3b
mov eax, dword [rcx + 0x10]
mov edx, dword [rcx + 0xc]
cmp r9d, edx
jb 0x140046e4a
add eax, edx
cmp r9d, eax
jb 0x140046e63
add r8d, 1
add rcx, 0x28
cmp r8d, r10d
jb 0x140046e31
mov rax, r11
mov rbx, qword [rsp]
add rsp, 8
ret
mov eax, edx
mov r11, r9
sub eax, dword [rcx + 0x14]
movsxd rcx, eax
sub r11, rcx
add r11, rbx
mov rax, r11
mov rbx, qword [rsp]
add rsp, 8
ret
Function at 0x14004bc90
Capabilities:
Parse pe header

Disassembly:
push rsi
push rdi
push r12
push r14
sub rsp, 0x28
cmp word [rcx], 0x5a4d
mov rdi, r9
mov r14, r8
mov r12d, edx
mov rsi, rcx
je 0x14004bcbb
xor eax, eax
add rsp, 0x28
pop r14
pop r12
pop rdi
pop rsi
ret
mov qword [rsp + 0x50], rbx
movsxd rbx, dword [rcx + 0x3c]
mov edx, 4
add rbx, rcx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x14004bce1
cmp dword [rbx], 0x4550
je 0x14004bcf3
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x28
pop r14
pop r12
pop rdi
pop rsi
ret
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x20], r15
xor r15d, r15d
mov dword [rdi], r15d
mov dword [rdx], r15d
cmp word [rbx + 0x18], 0x20b
mov ebp, r15d
lea r13d, [r15 + 1]
jne 0x14004bd34
mov eax, dword [rbx + 0x50]
mov ecx, dword [rbx + 0xf8]
mov ebp, r13d
mov dword [rdi], eax
mov eax, dword [rbx + 8]
mov dword [rdx], eax
jmp 0x14004bd44
mov eax, dword [rbx + 0x50]
mov ecx, dword [rbx + 0xe8]
mov dword [rdi], eax
mov eax, dword [rbx + 8]
mov dword [rdx], eax
test ecx, ecx
je 0x14004bdd6
mov edi, ecx
add rdi, rsi
test r12d, r12d
jne 0x14004bd78
test ebp, ebp
je 0x14004bd6a
mov r8, rsi
mov rdx, rbx
call fcn.14001a6a0
mov rdi, rax
jmp 0x14004bd78
mov r8, rsi
mov rdx, rbx
call fcn.14001a6a0
mov rdi, rax
mov edx, 0x48
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x14004bdd6
mov ecx, dword [rdi + 8]
sub ecx, 0x10
mov edi, ecx
add rdi, rsi
test r12d, r12d
jne 0x14004bdbc
test ebp, ebp
je 0x14004bdae
mov r8, rsi
mov rdx, rbx
call fcn.14001a6a0
mov rdi, rax
jmp 0x14004bdbc
mov r8, rsi
mov rdx, rbx
call fcn.14001a6a0
mov rdi, rax
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x14004bdd6
cmp dword [rdi], 0x424a5342
je 0x14004bddd
xor eax, eax
jmp 0x14004bed5
mov ecx, r15d
add r14, r13
mov r11d, 0x1c
nop
nop
movzx r8d, byte [r14 - 1]
movzx r9d, byte [r14]
movzx r10d, byte [r14 + 1]
add r8d, r13d
movzx r13d, byte [r14 + 2]
mov eax, 0x80078071
add r14, 4
mul r8d
shr edx, 0xf
mov eax, 0x80078071
imul edx, edx, 0xfff1
sub r8d, edx
add ecx, r8d
add r9d, r8d
mul ecx
mov eax, 0x80078071
shr edx, 0xf
imul edx, edx, 0xfff1
sub ecx, edx
mul r9d
mov eax, 0x80078071
shr edx, 0xf
imul edx, edx, 0xfff1
sub r9d, edx
add r10d, r9d
lea r8d, [rcx + r9]
mul r8d
mov eax, 0x80078071
shr edx, 0xf
imul edx, edx, 0xfff1
sub r8d, edx
mul r10d
mov eax, 0x80078071
shr edx, 0xf
imul edx, edx, 0xfff1
sub r10d, edx
add r13d, r10d
lea ecx, [r8 + r10]
mul ecx
mov eax, 0x80078071
shr edx, 0xf
imul edx, edx, 0xfff1
sub ecx, edx
mul r13d
mov eax, 0x80078071
shr edx, 0xf
imul edx, edx, 0xfff1
sub r13d, edx
add ecx, r13d
mul ecx
shr edx, 0xf
imul edx, edx, 0xfff1
sub ecx, edx
sub r11, 1
jne 0x14004bdf0
shl ecx, 0x10
add ecx, r13d
cmp ecx, dword [rdi + 0xc]
cmovne rdi, r15
mov rax, rdi
mov r13, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov r15, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x50]
add rsp, 0x28
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14004bf00
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x660
mov qword [rsp + 0x180], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400980c0]
xor rax, rsp
mov qword [rsp + 0x650], rax
mov rbx, r8
mov r14, rdx
mov qword [rsp + 0xa0], rdx
mov qword [rsp + 0x1b0], rdx
mov rax, qword [0x140254d10]
add rax, 0xc8
mov qword [rsp + 0x58], rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [rsp + 0x60], 1
mov qword [rsp + 0x98], rbx
xor r12d, r12d
mov qword [rsp + 0x90], r12
mov rdx, qword [0x140254d10]
add rdx, 0x78
mov rdi, qword [rdx + 8]
mov rax, qword [rdi + 8]
mov rcx, rdi
cmp byte [rax + 0x29], r12b
jne 0x14004bfb9
cmp qword [rax + 0x18], rbx
jae 0x14004bfad
mov rax, qword [rax + 0x10]
jmp 0x14004bfb3
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x29], r12b
je 0x14004bfa1
mov qword [rsp + 0x168], rcx
mov qword [rsp + 0x160], rdx
cmp rcx, rdi
je 0x14004bfde
cmp rbx, qword [rcx + 0x18]
jb 0x14004bfde
lea rcx, [rsp + 0x160]
jmp 0x14004bff6
mov qword [rsp + 0x158], rdi
mov qword [rsp + 0x150], rdx
lea rcx, [rsp + 0x150]
lea rdi, [rsp + 0x1c0]
mov rax, qword [rcx]
mov qword [rdi], rax
mov rax, qword [rcx + 8]
mov qword [rdi + 8], rax
mov r13, qword [rdx + 8]
mov rdi, qword [rsp + 0x1c0]
test rdi, rdi
je 0x14004c022
cmp rdi, rdx
je 0x14004c027
call fcn.1400532a0
mov rsi, qword [rsp + 0x1c8]
cmp rsi, r13
je 0x14004c04a
test rdi, rdi
jne 0x14004c03e
call fcn.1400532a0
cmp rsi, qword [rdi + 8]
jne 0x14004c04a
call fcn.1400532a0
nop
lea rcx, [0x140080ef0]
jmp 0x140589900

Function at 0x14004f750
Capabilities:
Query or enumerate registry value
Set environment variable
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0xe0
mov rax, qword [0x1400980c0]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov ebp, ecx
lea rcx, [0x140081188]
mov esi, edx
jmp 0x14058b3e6

Function at 0x14004f8c0
Capabilities:
Query or enumerate registry value
Set environment variable
Set registry value

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0xe0
mov rax, qword [0x1400980c0]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov edi, ecx
lea rcx, [0x1400811b8]
mov ebp, edx
jmp 0x14058b603
Function at 0x140051868
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1400980c0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.1400565d0
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x140000000]
mov esi, 0x94
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call fcn.1400565d0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x1400518fb
cmp dword [rsp + 0x24], 5
jb 0x140051915
jmp 0x140051911
cmp dword [rsp + 0x30], esi
jne 0x140051915
cmp dword [rsp + 0x24], 4
ja 0x140051911
jne 0x140051915
cmp dword [rsp + 0x28], 0
jbe 0x140051915
mov byte [rbx + 0x18], sil
lea rax, [0x14006da88]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.1400516a8
movzx ecx, byte [0x140254e7c]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x140254e7c], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140052650
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x1400522b0
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
sub rsp, 0x30
xor ebx, ebx
test rcx, rcx
mov rbp, r8
mov r12d, edx
mov rsi, rcx
jne 0x1400522fd
call fcn.140057640
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
mov dword [rax], SafeArrayUnaccessData
call fcn.140053190
or rax, 0xffffffffffffffff
jmp 0x140052392
mov qword [rsp + 0x40], rdi
call fcn.14006b680
mov edx, 0x2d8
mov ecx, 1
call fcn.1400577a0
test rax, rax
mov rdi, rax
je 0x140052376
call fcn.140056f60
mov rcx, rdi
mov rdx, qword [rax + 0xc0]
call fcn.140056d40
lea r8, [0x140052210]
mov rdx, r12
mov r9, rdi
xor ecx, ecx
mov qword [rsp + 0x28], rdi
mov qword [rdi + 0x90], rsi
mov qword [rdi + 0x98], rbp
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
mov rbx, rax
mov qword [rdi + 8], rax
jne 0x1400523a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.140052950
test ebx, ebx
je 0x140052389
mov ecx, ebx
call fcn.1400576a0
or rax, 0xffffffffffffffff
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x1400523c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x140052376
mov rax, rbx
jmp 0x14005238d