joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002c180
Capabilities:
Hash data with crc32

Disassembly:
test r8d, r8d
jle 0x14002c3ce
mov r11, rsp
push rbp
push rsi
sub rsp, 0x58
mov rax, qword [0x140070010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [r11 - 0x18], rdi
mov rbp, rcx
mov qword [r11 - 0x20], r14
lea rdi, [rdx + 0x1a]
mov qword [r11 - 0x28], r15
mov r14d, 0xffffffff
lea r15, [0x14005fb80]
mov qword [r11 + 0x18], rbx
movsxd rsi, r8d
nop dword [rax + rax]
mov edx, dword [rdi - 0x1a]
test edx, edx
je 0x14002c396
mov rcx, rbp
call fcn.14002b7a0
mov r9d, dword [rdi - 0x16]
mov rbx, rax
test r9d, r9d
je 0x14002c251
movsxd rdx, dword [rbp + 0x5530]
mov r8, qword [rbp + 0x5538]
mov r10, rdx
shl r10, 4
add r10, r8
test rdx, rdx
je 0x14002c241
nop dword [rax]
mov rcx, rdx
shr rcx, 1
mov rax, rcx
add rax, rax
cmp dword [r8 + rax*8], r9d
jae 0x14002c239
lea r8, [r8 + rax*8]
mov rax, 0xffffffffffffffff
sub rax, rcx
add r8, 0x10
add rdx, rax
jmp 0x14002c23c
mov rdx, rcx
test rdx, rdx
jne 0x14002c210
cmp r8, r10
je 0x14002c251
cmp dword [r8], r9d
jne 0x14002c251
mov rcx, qword [r8 + 8]
jmp 0x14002c253
xor ecx, ecx
mov qword [rbx + 0x18], rcx
movsx eax, word [rdi - 2]
movd xmm1, eax
movsx eax, word [rdi]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
movss dword [rbx + 0x48], xmm1
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x4c], xmm0
movsx eax, word [rdi + 2]
movd xmm1, eax
movsx eax, word [rdi + 4]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
movss dword [rbx + 0x50], xmm1
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x54], xmm0
movsx eax, word [rdi + 6]
movd xmm1, eax
movsx eax, word [rdi + 8]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
mov eax, dword [rbx + 0xc4]
and eax, 0xfffffe49
movss dword [rbx + 0x58], xmm1
or eax, 0x49
mov dword [rbx + 0xc4], eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x5c], xmm0
test rcx, rcx
je 0x14002c2e7
cmp qword [rcx + 0x20], 0
jne 0x14002c2dc
mov qword [rcx + 0x20], rbx
jmp 0x14002c2e7
cmp qword [rcx + 0x28], 0
jne 0x14002c2e7
mov qword [rcx + 0x28], rbx
mov eax, dword [rdi - 0xe]
mov r9, rbx
mov dword [rbx + 0xbc], eax
movsx eax, byte [rdi - 0xa]
mov dword [rbx + 0x60], eax
mov ecx, dword [rdi - 6]
mov eax, dword [rbx + 0xc]
and ecx, 0xc1fc20
or eax, dword [rbx + 4]
or eax, ecx
mov dword [rbx + 8], ecx
mov dword [rbx + 0x10], eax
mov rax, qword [rbx + 0x18]
test rax, rax
je 0x14002c32c
nop word [rax + rax]
mov r9, rax
mov rax, qword [rax + 0x18]
test rax, rax
jne 0x14002c320
mov r9d, dword [r9]
lea r8, str.DockNode__02X
mov edx, 0x14
lea rcx, [rsp + 0x20]
call fcn.140011770
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov ecx, r14d
test r9b, r9b
je 0x14002c388
cmp r9b, 0x23
jne 0x14002c36b
cmp byte [r8], r9b
jne 0x14002c36b
cmp byte [r8 + 1], r9b
cmove ecx, r14d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r15 + rdx*4]
test r9b, r9b
jne 0x14002c358
not ecx
call fcn.14001a7c0
mov qword [rbx + 0x88], rax
add rdi, 0x24
sub rsi, 1
jne 0x14002c1d0
mov r15, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14005cb30
add rsp, 0x58
pop rsi
pop rbp
ret
Function at 0x140033a80
Capabilities:
Resolve function by parsing pe exports

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, 0x50
mov edi, r8d
mov rbx, rdx
mov rbp, rcx
xor r14d, r14d
nop word [rax + rax]
mov eax, dword [rbx]
mov dword [rsp + 0x20], eax
mov rax, qword [rbx + 0x18]
mov word [rsp + 0x32], r14w
test rax, rax
je 0x140033acd
mov eax, dword [rax]
mov dword [rsp + 0x24], eax
jmp 0x140033ad2
mov dword [rsp + 0x24], r14d
mov eax, dword [rbx + 0x10]
shr eax, 0xa
test al, 1
je 0x140033afd
mov rax, qword [rbx + 0x88]
test rax, rax
je 0x140033afd
mov rax, qword [rax + 0x390]
test rax, rax
je 0x140033afd
mov eax, dword [rax + 8]
mov dword [rsp + 0x28], eax
jmp 0x140033b02
mov dword [rsp + 0x28], r14d
mov eax, dword [rbx + 0xbc]
mov dword [rsp + 0x2c], eax
cmp qword [rbx + 0x20], r14
je 0x140033b1c
movzx eax, byte [rbx + 0x60]
mov byte [rsp + 0x30], al
jmp 0x140033b21
mov byte [rsp + 0x30], 0xff
cvttss2si ecx, dword [rbx + 0x48]
mov eax, dword [rbx + 8]
mov r8d, dword [rbp + 0x24]
and eax, 0xc1fc20
mov dword [rsp + 0x34], eax
mov byte [rsp + 0x31], dil
cvttss2si eax, dword [rbx + 0x4c]
mov word [rsp + 0x38], cx
cvttss2si ecx, dword [rbx + 0x50]
mov word [rsp + 0x3a], ax
cvttss2si eax, dword [rbx + 0x54]
mov word [rsp + 0x3c], cx
cvttss2si ecx, dword [rbx + 0x58]
mov word [rsp + 0x3e], ax
cvttss2si eax, dword [rbx + 0x5c]
mov word [rsp + 0x40], cx
mov ecx, dword [rbp + 0x20]
mov word [rsp + 0x42], ax
cmp ecx, r8d
jne 0x140033ba3
inc ecx
test r8d, r8d
je 0x140033b8e
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x140033b93
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
lea rcx, [rbp + 0x20]
call fcn.140034e00
movsxd rax, dword [rbp + 0x20]
mov rcx, qword [rbp + 0x28]
movups xmm0, xmmword [rsp + 0x20]
movups xmm1, xmmword [rsp + 0x30]
lea rdx, [rax + rax*8]
mov eax, dword [rsp + 0x40]
movups xmmword [rcx + rdx*4], xmm0
movups xmmword [rcx + rdx*4 + 0x10], xmm1
mov dword [rcx + rdx*4 + 0x20], eax
inc dword [rbp + 0x20]
mov rdx, qword [rbx + 0x20]
inc edi
test rdx, rdx
je 0x140033be3
mov r8d, edi
mov rcx, rbp
call fcn.140033a80
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x140033ab0
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
Function at 0x14005d7b8
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x14000e93d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14000e94d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14000e935
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14000e965
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14000e952
sub eax, 3
jb 0x14000e97f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14000e9b6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14000e9a6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14000e9a4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14000e993
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14000e8f2
jmp 0x14000e93d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x5000
mov dl, 1
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14000ea02
cmp rsi, rcx
jae 0x14000ea0a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14000e9e9
cmp al, 0x8f
ja 0x14000e9e9
cmp byte [rsi - 2], 0xf
je 0x14000e9ef
sub al, 0xe8
cmp al, 1
ja 0x14000e9d3
cmp rsi, rcx
jae 0x14000ea0a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14000e9d9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14000ea0a
lodsb al, byte [rsi]
jmp 0x14000e9e9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xc000]
mov eax, dword [rdi]
or eax, eax
je 0x14000ea67
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xe1dc]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14000ea17
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14000ea61
mov qword [rbx], rax
add rbx, 8
jmp 0x14000ea37
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14000eaa1
cmp al, 0xef
ja 0x14000ea93
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14000ea73
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14000ea82
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x227]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14000eaf5
sub rsp, 0xffffffffffffff80
jmp 0x140005588
Function at 0x1400012ec
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, 0x120
mov rbx, rcx
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, qword [rbx + 0x20]
mov edx, 9
mov rbp, rax
call qword [sym.imp.USER32.dll_GetDlgItem]
xor edi, edi
lea rdx, [rsp + 0x50]
lea r8d, [rdi + 0x64]
mov rcx, rbp
mov rsi, rax
mov word [rsp + 0x50], di
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, qword [rbx + 0x20]
lea rdx, [rsp + 0x130]
mov dword [rsp + 0x130], edi
mov dword [rsp + 0x134], edi
call qword [sym.imp.USER32.dll_ClientToScreen]
lea r8d, [rdi + 0x10]
lea rcx, [rsp + 0x40]
xor edx, edx
call fcn.1400fa680
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowRect]
mov r8d, dword [rsp + 0x40]
mov r9d, dword [rsp + 0x44]
mov edi, dword [rsp + 0x48]
mov ebx, dword [rsp + 0x4c]
mov dword [rsp + 0x30], 4
sub edi, r8d
sub r8d, dword [rsp + 0x130]
sub ebx, r9d
sub r9d, dword [rsp + 0x134]
xor edx, edx
mov rcx, rsi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x44], r9d
call qword [sym.imp.USER32.dll_SetWindowPos]
mov r8d, dword [rsp + 0x44]
mov edx, dword [rsp + 0x40]
mov r9d, edi
mov rcx, rsi
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], ebx
call qword [sym.imp.USER32.dll_MoveWindow]
xor edx, edx
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400047e4
Capabilities:
Get common file path
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rcx
mov rcx, qword [rcx]
mov ebx, esi
cmp rcx, rsi
je 0x14000480a
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea edx, [rbx + 0x2d0]
mov rcx, rdi
movsxd rdx, edx
call fcn.1400619c8
cmp ebx, esi
jg 0x1400048b9
mov rax, qword [rdi]
lea rcx, [0x140114950]
mov r8d, 0x208
mov word [rax], si
mov rdx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, esi
mov ebx, eax
jg 0x14000489e
mov rdx, qword [rdi]
lea rcx, [0x140114940]
mov r8d, 0x208
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, esi
mov ebx, eax
jg 0x14000489e
mov rdx, qword [rdi]
xor r9d, r9d
xor ecx, ecx
lea r8d, [r9 + 0x24]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbx, eax
cmp ebx, esi
jle 0x1400048b9
mov rax, qword [rdi]
lea rdx, [0x140114930]
lea rcx, [rax + rbx*2]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
add ebx, 5
cmp ebx, esi
jle 0x1400048b9
mov rax, qword [rdi]
movsxd rcx, ebx
mov edx, 0x5c
mov word [rax + rcx*2], dx
mov rax, qword [rdi]
inc ebx
movsxd rcx, ebx
mov word [rax + rcx*2], si
mov rdx, qword [rdi]
lea rcx, [0x1401340d0]
call fcn.1400275c0
cmp ebx, esi
jle 0x1400048d8
mov rcx, qword [rdi]
call fcn.1400f998c
cmp eax, esi
jne 0x140004914
mov rdx, qword [rdi]
xor r9d, r9d
xor ecx, ecx
lea r8d, [r9 + 0x24]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov rcx, qword [rdi]
lea rdx, str.TEMP_
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, qword [rdi]
lea rcx, [0x1401340d0]
call fcn.1400275c0
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140004f2c
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push rbx
sub rsp, 0x70
xor ebx, ebx
lea rdx, [rsp + 0x20]
lea rcx, str.LC_ALL
lea r8d, [rbx + 0x20]
mov word [rsp + 0x20], bx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
movzx r11d, word [rsp + 0x20]
cmp r11w, bx
jne 0x140004f78
lea r9d, [rbx + 0x20]
lea r8, [rsp + 0x20]
lea edx, [rbx + 0xb]
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov r11w, word [rsp + 0x20]
lea rax, [rsp + 0x20]
cmp r11w, bx
lea rdx, [0x140114b28]
lea rcx, [0x140133a70]
cmovne rdx, rax
call fcn.14006d920
mov rcx, qword [0x140133a70]
call fcn.140062d00
movzx ecx, word [0x14013e004]
cmp eax, 1
cmovg cx, ax
mov word [0x14013e004], cx
add rsp, 0x70
pop rbx
ret

Function at 0x1400050d4
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x1400050c8
lea rdx, str.ChangeWindowMessageFilter
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x1400050bf
mov edx, 1
mov ecx, 0x233
call rdi
mov edx, 1
lea ecx, [rdx + 0x49]
call rdi
mov edx, 1
lea ecx, [rdx + 0x48]
call rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
or eax, 0x8001
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff4
mov qword [0x140131330], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff5
mov qword [0x140131340], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp qword [0x1401342e8], 0
mov qword [0x140131338], rax
jne 0x14000513a
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov qword [0x1401342e8], rax
and qword [0x140133af0], 0
lea rax, [0x140133af0]
mov qword [0x140134120], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
xor ecx, ecx
mov dword [0x140133934], eax
call fcn.14001823c
add rsp, 0x28
jmp 0x140005068
Function at 0x14000516c
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
lea rcx, [rax + 0x10]
xor ebx, ebx
mov dword [rax + 0x10], 8
mov dword [rax + 0x14], ebx
call qword [sym.imp.USER32.dll_GetLastInputInfo]
mov edx, dword [0x1401339fc]
mov eax, dword [rsp + 0x3c]
sub eax, edx
cmp eax, ebx
cmovg edx, dword [rsp + 0x3c]
mov dword [0x1401339fc], edx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1401339fc], eax
mov al, byte [0x14013124f]
cmp al, bl
jle 0x140005205
lea rcx, [rsp + 0x38]
mov dword [rsp + 0x3c], ebx
call qword [sym.imp.USER32.dll_GetLastInputInfo]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, dword [rsp + 0x3c]
mov ecx, eax
sub ecx, r8d
cmp ecx, edi
jb 0x1400051ee
mov edx, dword [0x1401339fc]
sub eax, edx
cmp eax, edi
jae 0x140005210
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r11b, byte [0x14013124f]
cmp r11b, bl
jg 0x1400051bf
mov r8d, dword [rsp + 0x3c]
mov edx, dword [0x1401339fc]
mov ecx, r8d
sub ecx, edx
cmp ecx, ebx
mov cl, byte [0x14013124f]
cmovg edx, r8d
cmp cl, bl
setg bl
mov dword [0x1401339fc], edx
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140005264
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x98
lea rdx, [rsp + 0x20]
lea rcx, str.DEBUGMDG
mov r8d, 0x63
mov byte [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
movzx r11d, byte [0x14013396b]
cmp byte [rsp + 0x20], 0x31
mov eax, 1
cmove r11d, eax
mov byte [0x14013396b], r11b
add rsp, 0x98
ret

Function at 0x14000550c
Capabilities:
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x30
mov qword [rax - 0x10], rcx
mov rsi, rdx
xor r9d, r9d
xor edx, edx
or rcx, 0xffffffffffffffff
mov r8d, 0x8000004
mov dword [rax - 0x18], 0x64
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdi, rax
test rax, rax
je 0x14000559b
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 6]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x14000559b
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 0x64]
call fcn.1400052b0
mov dword [rbx], 0xffffffff
mov qword [rbx + 0x10], rsi
lea rcx, [rbx + 8]
mov qword [0x140131040], rcx
mov qword [0x140133a20], rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1400055dc
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov al, byte [0x14013124f]
mov ebx, 0x14
cmp al, 2
je 0x1400055f9
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [0x140133a20]
mov ecx, 0x1e
test rax, rax
cmovne ebx, ecx
jmp 0x140005624
mov rax, qword [0x140133a08]
test rax, rax
je 0x140005629
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
sub ebx, 1
jns 0x14000560d
mov rcx, qword [0x140133a08]
test rcx, rcx
je 0x140005648
xor edx, edx
mov qword [0x140133a08], 0
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov byte [0x14013124f], 0xff
add rsp, 0x20
pop rbx
ret
Function at 0x140005658
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
xor ecx, ecx
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor r9d, r9d
xor edx, edx
mov r8d, 0x8000004
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], 0x64
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov bl, 1
mov rdi, rax
test rax, rax
je 0x1400056b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400056cf
xor bl, bl
jmp 0x1400056cf
mov r8, rbp
xor edx, edx
mov ecx, 0x8000004
call qword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov rdi, rax
test rax, rax
je 0x140005720
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 6]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [0x140133a30], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r11, qword [0x140133a30]
test r11, r11
je 0x140005720
test bl, bl
je 0x14000571d
xor edx, edx
mov rcx, r11
lea r8d, [rdx + 0x64]
call fcn.1400fa680
mov r11, qword [0x140133a30]
mov qword [r11], rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140008324
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x130
lea rdx, str.PECMD:MSGSVR:HWND
xor ecx, ecx
call fcn.140005658
call fcn.140004f2c
mov byte [0x14013396a], 1
call fcn.14005214c
call fcn.14005b794
lea rcx, str.TaskbarButtonCreated
call qword [sym.imp.USER32.dll_RegisterWindowMessageW]
xor r9d, r9d
lea rdx, [rsp + 0x20]
lea r8d, [r9 + 0x24]
xor ecx, ecx
mov byte [rsp + 0x20], 0
mov dword [0x1401339f8], eax
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea rdx, str.System32Kernel32
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rcx, str.user32
mov rbx, rax
mov qword [0x140133f98], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, str.GDI32
mov qword [0x140133f90], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, [0x140115110]
mov rcx, rbx
mov qword [0x140133fa0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
movsx edx, byte [0x140131038]
lea rbx, [0x1401340d0]
lea r8, str.bX64
mov qword [0x140133970], rax
mov rcx, rbx
call fcn.140064be4
lea r8, str.ptrlen
mov edx, 8
mov rcx, rbx
call fcn.140064be4
mov edx, dword [0x1401339f8]
lea r8, str.WM_TASKBARBUTTONCREATED
mov rcx, rbx
call fcn.140064be4
add rsp, 0x130
pop rbx
ret
Function at 0x140008434
Capabilities:
Terminate process

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x38
mov qword [rsp + 0x70], rcx
movzx edi, word [rcx]
add rcx, 8
mov ebp, 0x20
mov qword [rsp + 0x70], rcx
lea r12d, [rbp - 0x17]
cmp r12w, word [rcx]
ja 0x140008467
cmp word [rcx], 0xd
jbe 0x140008475
cmp bp, word [rcx]
je 0x140008475
add rcx, 2
mov qword [rsp + 0x70], rcx
call fcn.140005264
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x88]
xor esi, esi
mov dword [0x1401339fc], eax
mov qword [rsp + 0x80], rsi
call fcn.14006d808
lea rcx, [rsp + 0x78]
call fcn.1400618c8
mov rdx, qword [rsp + 0x88]
lea r8, [rsp + 0x78]
lea rcx, [0x1401340d0]
xor r9d, r9d
mov byte [rsp + 0x20], 1
call fcn.14007700c
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x80]
call fcn.14006d920
mov r11, qword [rsp + 0x80]
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x70], r11
call fcn.1400592f8
lea rcx, [rsp + 0x88]
call fcn.1400592f8
mov rcx, qword [rsp + 0x70]
call fcn.14000523c
lea r8d, [rsi + 0xf]
lea rcx, str._InstallService
mov rdx, rax
mov rbx, rax
mov qword [rsp + 0x70], rax
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
cmp eax, esi
jne 0x140008578
movzx eax, word [rbx + 0x1e]
cmp r12w, ax
ja 0x14000853d
cmp ax, 0xd
jbe 0x140008547
cmp bp, ax
je 0x140008547
cmp ax, si
jne 0x140008578
mov rcx, qword [rsp + 0x70]
lea rdx, str._Service
mov r8d, 0x1e
mov bl, 0x49
call fcn.14001d310
mov rcx, qword [rsp + 0x70]
add rcx, 0x1e
call fcn.14000523c
mov rdx, rax
mov qword [rsp + 0x70], rax
jmp 0x14000859f
lea rdx, [rsp + 0x70]
lea rcx, [0x1401151a8]
mov r8d, 8
call fcn.140064324
cmp al, sil
je 0x140008628
mov rdx, qword [rsp + 0x70]
mov bl, 0x53
mov r13d, 0x22
cmp r13w, di
jne 0x1400085f0
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, qword [rsp + 0x70]
movsxd rcx, eax
lea rax, [rdx + rcx*2 - 2]
cmp rax, rdx
jbe 0x1400085f0
cmp r12w, word [rax]
ja 0x1400085d2
cmp word [rax], 0xd
jbe 0x1400085d7
cmp bp, word [rax]
jne 0x1400085dd
sub rax, 2
jmp 0x1400085c1
cmp rax, rdx
jbe 0x1400085f0
cmp r13w, word [rax]
jne 0x1400085f0
mov word [rax], si
mov rdx, qword [rsp + 0x70]
sub rdx, 2
movsx eax, bl
mov ecx, 0x7e
mov qword [rsp + 0x70], rdx
mov word [rdx], ax
mov rax, qword [rsp + 0x70]
sub rax, 2
mov qword [rsp + 0x70], rax
mov word [rax], cx
mov rcx, qword [rsp + 0x70]
call fcn.140016dc0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rdx, [rsp + 0x70]
lea rcx, str._RemoveService
mov r8d, 0xe
call fcn.140064324
cmp al, sil
je 0x140008657
mov rcx, qword [rsp + 0x70]
call fcn.140008a90
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rcx, [rsp + 0x80]
call fcn.1400592f8
xor eax, eax
add rsp, 0x38
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret