joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006c804
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400ae780]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14006c85b
cmp word [rdx], r13w
jne 0x14006c85b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14006c860
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14006c985
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14006c9a6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14006c899
mov rdx, r9
mov word [rbx], cx
jmp 0x14006c8c0
cmp r9, r8
jae 0x14006c8d0
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14006c87a
jmp 0x14006c985
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14006c97a
cmp dword [rsp + 0x80], esi
je 0x14006c97a
lea r8, [0x1400ae780]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14006c952
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14006c922
mov word [rbx], r13w
jmp 0x14006c982
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14006c92f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14006c982
cmp word [rsp + 0x70], r13w
jne 0x14006c95f
cmp rbx, r14
je 0x14006c91c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14006c088
cmp word [rsp + 0x70], r13w
je 0x14006c985
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400ae780]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14006c97f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14006c985
Function at 0x140072fd8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140072fee
mov al, 1
jmp 0x14007304e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140072fff
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14007304c
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400767c4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14007304c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14007304c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14007304c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14007304e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140075ab0
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 0x140075ae0
xor eax, eax
jmp 0x140075ba3
mov rbp, rbx
cmp word [rax], si
je 0x140075b05
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140075aec
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140075ae8
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.1400731b0
movsxd r14, eax
test eax, eax
jne 0x140075b43
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140075ad9
mov rcx, r14
call fcn.14006dcc0
mov rdi, rax
test rax, rax
jne 0x140075b5c
xor ecx, ecx
call fcn.14006d83c
jmp 0x140075b38
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.1400731b0
test eax, eax
jne 0x140075b8d
mov rcx, rdi
call fcn.14006d83c
jmp 0x140075b97
xor ecx, ecx
call fcn.14006d83c
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 0x140078d18
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14006c4a4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140078db9
cmp ebx, dword [rsp + 0x30]
je 0x140078db2
test esi, esi
je 0x140078db2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140078d8d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140078d9a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140078d77
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140078d9e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140078dbb
mov eax, 1
jmp 0x140078dbb
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14007cdbc
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.14005b154
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14007ce46
cmp byte [rbp - 0x21], r15b
je 0x14007ce41
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14007ce7c
call fcn.1400718c0
test eax, eax
jne 0x14007ce68
cmp byte [rbp - 0x21], r15b
je 0x14007ce60
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14007ce7c
cmp byte [rbp - 0x21], r15b
je 0x14007ce79
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.14006734c
test eax, eax
jne 0x14007cf1c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14005b154
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14007cebb
cmp byte [rbp - 0x21], r15b
je 0x14007cef0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14007cef0
call fcn.1400718c0
test eax, eax
jne 0x14007cedc
cmp byte [rbp - 0x21], r15b
je 0x14007ced5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14007cef0
cmp byte [rbp - 0x21], r15b
je 0x14007ceed
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.14006734c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14007cf1c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14007cf1f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14007cf2d
mov rcx, rdi
call fcn.14006d83c
cmp byte [rbp + 0x3f], r15b
je 0x14007cf3c
mov rcx, qword [rbp + 0x27]
call fcn.14006d83c
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 0x14007df7c
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.14006c088
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14006c088
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14007e0cc
cmp rax, 0xffffffffffffffff
je 0x14007e0cc
xor edi, edi
test rbp, rbp
jle 0x14007e077
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14006d470
mov rbx, rax
test rax, rax
jne 0x14007e004
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14007e06d
mov edx, 0x8000
mov ecx, r14d
call fcn.14006a26c
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.140072bd8
cmp eax, 0xffffffff
je 0x14007e04d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14007e014
mov edx, r15d
mov ecx, r14d
call fcn.14006a26c
jmp 0x14007e06d
cmp byte [rsi + 0x38], dil
je 0x14007e064
cmp dword [rsi + 0x34], 5
jne 0x14007e064
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14007e06d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14006d83c
jmp 0x14007e0e0
jns 0x14007e0e0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14006c088
cmp rax, 0xffffffffffffffff
jne 0x14007e098
cmp byte [rsi + 0x30], dil
je 0x14007e0e0
mov edi, dword [rsi + 0x2c]
jmp 0x14007e0e0
mov ecx, r14d
call fcn.1400767c4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14007e0e0
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 0x14007e0e0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14007e0d9
mov eax, dword [rsi + 0x2c]
jmp 0x14007e0de
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14006c088
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 0x14007ec50
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14007ec78
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14007ec78
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002ee0
Capabilities:
Create http request

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x80
mov rbx, r9
mov rdi, r8
mov r14, rdx
mov r15, rcx
xor r12d, r12d
mov qword [rsp + 0xc8], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
test r9, r9
jne 0x140002f40
lea r9d, [rbx + 0x10]
lea r8, [0x1400eb388]
lea rdx, str.Callback_pointer_is_null
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x140003068
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
mov qword [rsp + 0x70], rax
cmp rax, 0xffffffffffffffff
je 0x140003080
mov ecx, 0x2488
call fcn.14002a9c8
test rax, rax
je 0x140002fa2
mov r8, qword [rsp + 0xd0]
mov rdx, rbx
mov rcx, rax
call fcn.140002e20
mov rbx, rax
jmp 0x140002fa5
mov rbx, r12
mov qword [rsp + 0xc8], rbx
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x28], rsi
lea rcx, [rbx + 0x30]
mov r8, rdi
mov edx, 0x104
call fcn.140071094
mov dword [rsp + 0x20], 0x10000000
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.UniKey_Downloader
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rsp + 0x48], rax
mov qword [rbx + 0x18], rax
test rax, rax
je 0x14000309d
lea rdx, [0x140002eb0]
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
cmp rax, 0xffffffffffffffff
je 0x1400030ba
lea rcx, [rbx + 0x2278]
lea r8, str.InternetOpenUrl
mov edx, 0x100
call fcn.140071094
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x14000305b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1400030d7
jmp 0x140003065
mov rax, rbx
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
lea rax, str.Failed_to_create_file
mov qword [rsp + 0x50], rax
lea rdx, [0x1401bb448]
lea rcx, [rsp + 0x50]
call fcn.1400611e4
lea rax, str.InternetOpen_returned_NULL
mov qword [rsp + 0x58], rax
lea rdx, [0x1401bb448]
lea rcx, [rsp + 0x58]
call fcn.1400611e4
lea rax, str.Failed_to_setup_callback
mov qword [rsp + 0x60], rax
lea rdx, [0x1401bb448]
lea rcx, [rsp + 0x60]
call fcn.1400611e4
lea rax, str.Failed_to_connect
mov qword [rsp + 0x68], rax
lea rdx, [0x1401bb448]
lea rcx, [rsp + 0x68]
call fcn.1400611e4
int3
Function at 0x140003110
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [rdx + 0x18]
mov rbx, rdx
test rcx, rcx
je 0x14000312a
xor edx, edx
call qword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14000313b
xor edx, edx
call qword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14000314a
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140003159
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rbx + 0x28]
cmp rcx, 0xffffffffffffffff
je 0x140003169
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rbx + 0x238], 1
jne 0x1400031a6
mov rcx, qword [rbx + 0x2480]
test rcx, rcx
jne 0x140003182
xor eax, eax
jmp 0x14000318f
imul rax, qword [rbx + 0x2478], 0x64
xor edx, edx
div rcx
mov r9, qword [rbx + 8]
lea rcx, str.Success
mov r8d, eax
mov edx, 1
call qword [rbx]
jmp 0x1400031b0
lea rcx, [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, 0x2488
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14002aa04
Function at 0x14000c3a0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x1401cb558]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, rcx
mov dword [rsp + 0x30], 0x114
lea rcx, [rsp + 0x30]
mov rdi, r8
mov rsi, rdx
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x34], 6
jb 0x14000c40b
mov ecx, 0x28
call fcn.14002a9c8
mov qword [rsp + 0x20], rax
test rax, rax
je 0x14000c42f
mov r8, rdi
mov rdx, rsi
mov rcx, rax
call fcn.14000b8d0
jmp 0x14000c431
mov ecx, 0x98
call fcn.14002a9c8
mov qword [rsp + 0x20], rax
test rax, rax
je 0x14000c42f
mov r8, rdi
mov rdx, rsi
mov rcx, rax
call fcn.14000b860
jmp 0x14000c431
xor eax, eax
mov qword [rbx + 8], rax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14002a970
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14000d0b0
Capabilities:
Get file attributes
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x1401cb558]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rdx
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov r8d, 0x104
lea rcx, str.APPDATA
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor ecx, ecx
mov r8d, 0x80070057
test eax, eax
cmovne r8d, ecx
je 0x14000d152
lea r8, str.MicrosoftWindowsStart_MenuProgramsUnikeyNT.lnk
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.140095c40
mov ecx, eax
neg ecx
sbb edx, edx
and edx, 0x80070057
test eax, eax
jne 0x14000d14e
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xfffffff
jb 0x14000d147
mov r8, rdi
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14000cb10
jmp 0x14000d155
mov eax, 1
jmp 0x14000d155
mov eax, edx
jmp 0x14000d155
mov eax, r8d
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14002a970
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop rdi
ret

Function at 0x140010d60
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x1401cb558]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
je 0x140010dd8
lea rdx, [rsp + 0x20]
mov ecx, 0x103
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x140010dd8
mov edx, 0x2f
mov rcx, rbx
call fcn.1400626b8
test rax, rax
je 0x140010dd8
cmp word [rax + 2], 0
je 0x140010dd8
lea r9, [rax + 2]
mov rcx, rdi
lea r8, [rsp + 0x20]
lea rdx, [0x140183120]
call fcn.1400080e0
mov al, 1
jmp 0x140010dda
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14002a970
mov rbx, qword [rsp + 0x260]
add rsp, 0x240
pop rdi
ret
Function at 0x140010fe0
Capabilities:
Extract resource via kernel32 functions
Import public key

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
lea r8, str.CERTIFICATE
xor ecx, ecx
mov edx, 0xc7
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x1400110ba
mov rdx, rax
mov qword [rsp + 0x40], rbp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rbx
xor ecx, ecx
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400110b5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1400110b5
mov r9d, 1
mov qword [rsp + 0x48], rsi
xor r8d, r8d
mov dword [rsp + 0x20], 0
xor edx, edx
lea rcx, [rdi + 0xa88]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1400110b0
mov r8d, ebp
mov rdx, rbx
mov ecx, 1
call qword [sym.imp.CRYPT32.dll_CertCreateCertificateContext]
mov rbx, rax
test rax, rax
je 0x1400110b0
mov r8, qword [rax + 0x18]
lea r9, [rdi + 0xa90]
mov rcx, qword [rdi + 0xa88]
add r8, 0x60
mov edx, 1
call qword [sym.imp.CRYPT32.dll_CryptImportPublicKeyInfo]
mov rcx, rbx
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400110d0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x1401cb558]
xor rax, rsp
mov qword [rsp + 0x240], rax
cmp dword [rcx + 0x10], 0
mov rbx, rcx
je 0x1400110fb
mov al, 1
jmp 0x140011183
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x268], rdi
mov ecx, 0x103
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x140011179
lea r9, [rbx + 0x418]
xor r8d, r8d
lea rdx, str.UkUpdate
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x140011179
lea rdx, [rbx + 0x18]
mov dword [rbx + 0xa48], 0
lea rcx, [rbx + 0xa50]
mov qword [rsp + 0x20], rbx
lea r9, [0x140010830]
lea r8, [rbx + 0x418]
call fcn.140002ee0
test rax, rax
je 0x140011179
mov dword [rbx + 0x10], 1
mov al, 1
jmp 0x14001117b
xor al, al
mov rdi, qword [rsp + 0x268]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14002a970
add rsp, 0x250
pop rbx
ret
Function at 0x140012070
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x170
mov rax, qword [0x1401cb558]
xor rax, rsp
mov qword [rsp + 0x160], rax
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
xor edi, edi
lea rax, [rsp + 0x30]
cmp dword [rsp + 0x50], 2
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov ecx, edi
mov qword [rsp + 0x20], rax
setne cl
xor r8d, r8d
add rcx, 0xffffffff80000001
lea r9d, [rdi + 3]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400120d7
xor eax, eax
jmp 0x14001211e
mov rcx, qword [rsp + 0x30]
lea rdx, [0x1401837f0]
mov qword [rsp + 0x28], rdi
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x180], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x180]
sete dil
mov eax, edi
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14002a970
add rsp, 0x170
pop rdi
ret

Function at 0x14001acb0
Capabilities:
Hash data using fnv

Disassembly:
movzx r8d, byte [rdx]
movabs r9, 0x100000001b3
movzx eax, byte [rdx + 1]
xor r8, rcx
movzx ecx, byte [rdx + 2]
imul r8, r9
xor rax, r8
imul rax, r9
xor rax, rcx
movzx ecx, byte [rdx + 3]
imul rax, r9
xor rax, rcx
imul rax, r9
ret
mov rdx, rcx
movabs rcx, 0xcbf29ce484222325
jmp 0x14001abe0

Function at 0x14001e930
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
lea rcx, [0x1401dc940]
call qword [sym.imp.USER32.dll_GetKeyboardState]
movzx eax, byte [0x1401dc951]
shr al, 7
mov byte [0x1401dc0e6], al
movzx eax, byte [0x1401dc952]
shr al, 7
mov byte [0x1401dc0e7], al
movzx eax, byte [0x1401dc950]
shr al, 7
mov byte [0x1401dc128], al
movzx eax, byte [0x1401dc9e0]
shr al, 7
mov byte [0x1401dc129], al
movzx eax, byte [0x1401dc9e1]
shr al, 7
test byte [0x1401dc99b], 0x80
mov byte [0x1401dc12a], al
jne 0x14001e9b5
test byte [0x1401dc99c], 0x80
mov byte [0x1401dc12b], 0
je 0x14001e9bc
mov byte [0x1401dc12b], 1
add rsp, 0x28
ret
Function at 0x14002b9e8
Capabilities:
Parse pe header

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

Function at 0x140095288
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400952bf
call fcn.140095ab4
mov dword [rax], 0x16
call fcn.1400958d8
xor eax, eax
jmp 0x14009534d
mov rdx, r9
mov rcx, r8
call fcn.1400950d8
mov rbx, rax
test rax, rax
je 0x14009534a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140094ed8]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140095337
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140095a28
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14009531e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14009532d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400c08bc
jmp 0x14009534a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140095347
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1400b4200
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400b3f88