joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412f20
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x20], rdx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x70], r8
mov rcx, qword [rbp + 0x70]
call fcn.0040e1c0
nop
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx ecx, ax
mov edx, 3
lea r8, [rbp + 0x48]
mov r9d, 4
call sub.kernel32.dll_GetLocaleInfoW
lea rcx, [rbp + 0x38]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.0040fba0
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x38]
call fcn.0040ff00
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.00412d40
test al, al
jne 0x412fee
mov word [rbp + 0x4c], 0
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.0040fba0
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x30]
call fcn.0040ff00
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.00412d40
test al, al
jne 0x412fee
mov rcx, qword [rbp + 0x20]
call fcn.0040e030
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040e110
lea rcx, [rbp + 0x70]
call fcn.0040e030
mov rax, qword [rbp + 0x20]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x413060
Capabilities:
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x88], rdx
mov qword [rbp + 0x90], r8
mov rcx, qword [rbp + 0x88]
call fcn.0040e1c0
mov rcx, qword [rbp + 0x90]
call fcn.0040e1c0
nop
mov rcx, qword [rbp + 0x28]
call fcn.0040e030
cmp qword [rbp + 0x90], 0
je 0x413226
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
call fcn.0040e6e0
xor rax, rax
cmp qword [rbp + 0x90], 0
je 0x413111
mov rax, qword [rbp + 0x90]
mov eax, dword [rax - 4]
cmp eax, 1
jl 0x41314b
mov rcx, qword [rbp + 0x90]
movsxd rdx, eax
cmp word [rcx + rdx*2 - 2], 0x2e
jne 0x413144
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
mov r8d, 1
mov r9d, eax
call fcn.00410110
jmp 0x41314b
sub eax, 1
test eax, eax
jne 0x413116
nop
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
call fcn.00412c30
cmp qword [rbp + 0x68], 0
je 0x413189
mov rcx, rbp
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x68]
call fcn.00412de0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
call fcn.0040e660
jmp 0x413225
call sub.kernel32.dll_GetUserDefaultUILanguage
lea rcx, [rbp + 0x48]
mov edx, eax
call fcn.00412380
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x48]
call fcn.00412de0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x50]
call fcn.0040e660
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x4131fe
cmp byte [0x0057be60], 0
jne 0x4131fe
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.00412380
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x38]
call fcn.00412de0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040e660
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x413225
mov rcx, rbp
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x60]
call fcn.00412f20
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
call fcn.0040e660
nop
lea rcx, [rbp + 0x30]
mov edx, 8
call fcn.0040e110
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.0040e110
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x413da0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x413dc0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
call sub.kernel32.dll_GetVersion
mov ecx, eax
and ecx, 0xff
and eax, 0xff00
shr eax, 8
cmp ecx, 5
jne 0x413de4
cmp eax, 1
jae 0x413de9
cmp ecx, 5
jbe 0x413df5
mov dword [0x005779a8], 0x7f
jmp 0x413dff
mov dword [0x005779a8], 0x409
add rsp, 0x28
ret
Function at 0x4155b0
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.004155a0
mov ebx, eax
test ebx, ebx
je 0x4155fb
cmp dword [0x00558ccc], 0xffffffff
jne 0x4155d4
mov ecx, 0xe2
call fcn.0040dec0
mov ecx, ebx
call fcn.00415580
test rax, rax
jne 0x4155ed
mov ecx, 0xe2
call fcn.0040dec0
jmp 0x4155fb
mov ecx, dword [0x00558ccc]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

Function at 0x415650
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
lea rax, [0x1b0]
test rax, rax
je 0x415690
cmp dword [0x00558ccc], 0xffffffff
je 0x415690
mov ecx, dword [0x00558ccc]
call sub.kernel32.dll_TlsGetValue
test rax, rax
je 0x415690
mov rcx, rax
call sub.kernel32.dll_LocalFree
mov ecx, dword [0x00558ccc]
xor rdx, rdx
call sub.kernel32.dll_TlsSetValue
add rsp, 0x28
ret

Function at 0x4156d0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x0057bf3c], 0
je 0x41570b
mov ecx, dword [0x00558ccc]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x41571f
call fcn.004155b0
mov ecx, dword [0x00558ccc]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x41571f
mov rax, qword [0x0057bf78]
jmp 0x41571f
mov rax, qword gs:[0x58]
movsxd rcx, dword [0x00558ccc]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

Function at 0x430f10
Capabilities:
Get geographical location

Disassembly:
push rbp
push rbx
sub rsp, 0x38
mov rbp, rsp
mov ebx, r8d
lea r8, [rbp + 0x2c]
mov r9d, 2
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x430f37
movzx rax, word [rbp + 0x2c]
jmp 0x430f39
mov eax, ebx
lea rsp, [rbp + 0x38]
pop rbx
pop rbp
ret
Function at 0x432710
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x8e0
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
lea r8, [rbp + 0x60]
mov r9d, 0x400
call fcn.004324b0
mov ebx, eax
mov rax, qword [0x005761d8]
cmp byte [rax], 0
je 0x432848
mov rcx, qword [0x00575eb8]
call fcn.0040a030
call fcn.00408840
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov esi, eax
lea rcx, [rbp + 0x58]
mov rdx, qword [0x004326d0]
mov r8d, 1
movsxd r9, esi
call fcn.00411670
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
mov rdx, qword [rbp + 0x58]
mov r8d, esi
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
lea rdx, [0x004328e8]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
jmp 0x43288e
mov rcx, qword [0x0057bf40]
call fcn.00411990
mov rcx, rax
mov rax, qword [0x00575e40]
mov edx, dword [rax + 8]
lea r8, [rbp + 0x860]
mov r9d, 0x40
call sub.user32.dll_LoadStringW_1
xor rcx, rcx
lea rdx, [rbp + 0x60]
lea r8, [rbp + 0x860]
mov r9d, 0x2010
call sub.user32.dll_MessageBoxW
nop
lea rcx, [rbp + 0x58]
mov rdx, qword [0x004326d0]
call fcn.00411850
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret

Function at 0x4345f0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x148
mov dword [rsp + 0x2c], 0x114
lea rcx, [rsp + 0x2c]
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x4346b5
cmp dword [rsp + 0x30], 6
ja 0x434626
cmp dword [rsp + 0x30], 6
jne 0x43465a
cmp dword [rsp + 0x34], 1
jbe 0x43465a
mov dword [rsp + 0x20], 0xffffffff
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x24]
lea r8, [rsp + 0x20]
call fcn.00434480
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], 0
mov eax, dword [rsp + 0x3c]
mov dword [0x005592d8], eax
mov eax, dword [rsp + 0x30]
mov dword [0x005592dc], eax
mov eax, dword [rsp + 0x34]
mov dword [0x005592e0], eax
cmp dword [0x005592d8], 1
jne 0x434693
mov eax, dword [rsp + 0x38]
and eax, 0xffff
mov dword [0x005592e4], eax
jmp 0x43469d
mov eax, dword [rsp + 0x38]
mov dword [0x005592e4], eax
lea rcx, [0x005592e8]
lea rdx, [rsp + 0x40]
mov r8d, 0x80
call fcn.0040fba0
add rsp, 0x148
ret
Function at 0x435290
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x240
mov rbp, rsp
mov rbx, rcx
mov rcx, rbx
call fcn.0040e850
mov r13d, eax
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call fcn.00413d80
mov esi, eax
cmp esi, 0x104
jbe 0x4352ed
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.00408530
mov rdi, rax
jmp 0x4352f1
lea rdi, [rbp + 0x38]
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], esi
call fcn.00413d80
mov rcx, rdi
call sub.user32.dll_CharUpperW
xor rbx, rbx
xor rax, rax
mov ecx, esi
sub ecx, 1
cmp eax, ecx
jg 0x435344
add ecx, 1
mov edx, ebx
shl edx, 5
shr ebx, 0x1b
or edx, ebx
mov ebx, edx
movsxd rdx, eax
movzx edx, word [rdi + rdx*2]
xor ebx, edx
add eax, 1
cmp eax, ecx
jne 0x435328
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x435356
mov rcx, rdi
call fcn.00408560
mov eax, ebx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x4c2c70
Capabilities:
Encode data using xor

Disassembly:
mov al, 0xb5
mov r8, rcx
xor rdx, rdx
mov ecx, edx
and ecx, 0x3f
mov r9, r8
shr r9, cl
and r9b, 0xff
xor al, r9b
add edx, 1
cmp edx, 8
jne 0x4c2c78
nop
ret
Function at 0x548800
Capabilities:
Encode data using xor

Disassembly:
push rbx
add edx, 1
xor rax, rax
mov r10d, edx
sub r10d, 1
cmp eax, r10d
jg 0x548831
add r10d, 1
movsxd r11, eax
movsxd rbx, eax
movzx rbx, byte [rcx + rbx]
xor bl, r8b
mov byte [r9 + r11], bl
add eax, 1
cmp eax, r10d
jne 0x548817
nop
movsxd rdx, edx
mov byte [r9 + rdx], 0
pop rbx
ret
Function at 0x549600
Capabilities:
Set registry value

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x4c0
mov rbp, rsp
mov qword [rbp + 0x490], 0
mov qword [rbp + 0x88], 0
mov qword [rbp + 0x78], rbp
mov qword [rbp + 0x4e0], rcx
mov qword [rbp + 0x4e8], rdx
mov qword [rbp + 0x4f0], r8
mov qword [rbp + 0x4f8], r9
mov rcx, qword [rbp + 0x4e0]
call fcn.0040e1e0
mov rcx, qword [rbp + 0x4e8]
call fcn.0040e1e0
mov rcx, qword [rbp + 0x4f0]
call fcn.0040e1e0
mov rcx, qword [rbp + 0x4f8]
call fcn.0040e1e0
nop
mov byte [rbp + 0x4b7], 0
xor rcx, rcx
xor rdx, rdx
mov r8d, 0xf003f
call qword [0x00588f70]
mov qword [rbp + 0x4b8], rax
cmp qword [rbp + 0x4b8], 0
je 0x54985b
nop
lea rcx, [rbp + 0x88]
mov rdx, qword [rbp + 0x4f0]
lea r8, [0x0054993c]
call fcn.0040ee80
mov rcx, qword [rbp + 0x4e0]
call fcn.0040f240
mov rbx, rax
mov rcx, qword [rbp + 0x4e8]
call fcn.0040f240
mov rsi, rax
mov rcx, qword [rbp + 0x88]
call fcn.0040f240
mov rcx, qword [rbp + 0x4b8]
mov rdx, rbx
mov r8, rsi
mov r9d, 0xf01ff
mov dword [rsp + 0x20], 0x10
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
call qword [0x00588f78]
mov qword [rbp + 0x4a8], rax
mov qword [rbp + 0x4a0], 0
lea rcx, [rbp + 0x490]
lea rdx, [0x0054994c]
call fcn.0040e7f0
lea rcx, [rbp + 0x490]
mov rdx, qword [rbp + 0x4e0]
call fcn.0040ed80
lea rcx, [rbp + 0x90]
lea rdx, [0x0054996f]
call sub.kernel32.dll_lstrcpyA
mov rcx, qword [rbp + 0x490]
call fcn.0040f240
mov rcx, 0xffffffff80000002
mov rdx, rax
xor r8, r8
mov r9d, 0xf003f
lea rax, [rbp + 0x498]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x549821
mov rcx, qword [rbp + 0x4f8]
call fcn.0040f240
mov rbx, rax
mov rcx, qword [rbp + 0x4f8]
call fcn.0040f240
mov rcx, rax
call sub.kernel32.dll_lstrlenA
mov rcx, qword [rbp + 0x498]
lea rdx, [rbp + 0x90]
xor r8, r8
mov r9d, 1
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x28], eax
call sub.advapi32.dll_RegSetValueExA
mov rcx, qword [rbp + 0x498]
call sub.advapi32.dll_RegCloseKey_1
mov rcx, qword [rbp + 0x4a8]
xor rdx, rdx
lea r8, [rbp + 0x4a0]
call qword [0x00588f80]
mov rcx, qword [rbp + 0x4a8]
call qword [0x00588f88]
nop
mov rcx, qword [rbp + 0x4b8]
call qword [0x00588f88]
mov byte [rbp + 0x4b7], 1
nop
lea rcx, [rbp + 0x88]
call fcn.0040e080
lea rcx, [rbp + 0x490]
call fcn.0040e080
lea rcx, [rbp + 0x4e0]
mov edx, 4
call fcn.0040e140
movzx rax, byte [rbp + 0x4b7]
lea rsp, [rbp + 0x4c0]
pop rbx
pop rsi
pop rbp
ret
Function at 0x549b30
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
sub rsp, 0x560
mov rbp, rsp
mov qword [rbp + 0x38], rcx
mov qword [rbp + 0x558], 0
nop
lea rcx, [rbp + 0x558]
call fcn.0040e080
lea rcx, [rbp + 0x44]
lea rdx, [0x00549d98]
call sub.kernel32.dll_lstrcpyA
lea rcx, [rbp + 0x44]
lea rdx, [0x00549d9c]
call sub.kernel32.dll_lstrcatA
lea rcx, [rbp + 0x44]
lea rdx, [0x00549da0]
call sub.kernel32.dll_lstrcatA
lea rcx, [rbp + 0x44]
lea rdx, [0x00549da4]
call sub.kernel32.dll_lstrcatA
lea rcx, [rbp + 0x44]
lea rdx, [0x00549da8]
call sub.kernel32.dll_lstrcatA
lea rcx, [rbp + 0x44]
lea rdx, [0x00549dac]
call sub.kernel32.dll_lstrcatA
lea rcx, [rbp + 0x44]
lea rdx, [0x00549db0]
call sub.kernel32.dll_lstrcatA
lea rcx, [rbp + 0x44]
lea rdx, [0x00549db4]
call sub.kernel32.dll_lstrcatA
lea rcx, [rbp + 0x44]
lea rdx, [0x00549db8]
call sub.kernel32.dll_lstrcatA
lea rcx, [rbp + 0x44]
lea rdx, [0x00549dbc]
call sub.kernel32.dll_lstrcatA
lea rcx, [rbp + 0x44]
lea rdx, [0x00549dc0]
call sub.kernel32.dll_lstrcatA
lea rcx, [rbp + 0x44]
lea rdx, [0x00549dc4]
call sub.kernel32.dll_lstrcatA
lea rcx, [rbp + 0x44]
lea rdx, [0x00549dc8]
call sub.kernel32.dll_lstrcatA
lea rcx, [rbp + 0x44]
lea rdx, [0x00549dcc]
call sub.kernel32.dll_lstrcatA
mov rcx, 0xffffffff80000002
lea rdx, [rbp + 0x44]
xor r8, r8
mov r9d, 1
lea rax, [rbp + 0x448]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x549d46
mov dword [rbp + 0x444], 0x104
lea rcx, [rbp + 0x44]
lea rdx, [0x00549dcf]
call sub.kernel32.dll_lstrcpyA
lea rcx, [rbp + 0x44]
lea rdx, [0x00549dd3]
call sub.kernel32.dll_lstrcatA
lea rcx, [rbp + 0x44]
lea rdx, [0x00549dd7]
call sub.kernel32.dll_lstrcatA
lea rcx, [rbp + 0x44]
lea rdx, [0x00549ddb]
call sub.kernel32.dll_lstrcatA
lea rcx, [rbp + 0x44]
lea rdx, [0x00549ddf]
call sub.kernel32.dll_lstrcatA
mov rcx, qword [rbp + 0x448]
lea rdx, [rbp + 0x44]
xor r8, r8
xor r9, r9
lea rax, [rbp + 0x454]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x444]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x549d46
lea rcx, [rbp + 0x558]
lea rdx, [rbp + 0x454]
mov r8d, 0x104
xor r9, r9
call fcn.0040ecc0
mov rcx, qword [rbp + 0x558]
call fcn.0040f240
mov rcx, rax
call sub.kernel32.dll_lstrlenA
lea rcx, [rbp + 0x558]
mov edx, eax
xor r8, r8
call fcn.0040f4b0
lea rcx, [rbp + 0x558]
lea rdx, [0x00549df0]
call fcn.0040ed80
mov rcx, qword [rbp + 0x38]
mov rdx, qword [rbp + 0x558]
call fcn.0040e770
nop
lea rcx, [rbp + 0x558]
call fcn.0040e080
mov rax, qword [rbp + 0x38]
lea rsp, [rbp + 0x560]
pop rbp
ret
Function at 0x549e00
Capabilities:
Query environment variable

Disassembly:
push rbp
sub rsp, 0x150
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x148], 0
mov qword [rbp + 0x140], 0
nop
lea rcx, [rbp + 0x140]
lea rdx, [0x00549f28]
call fcn.0040e7f0
lea rcx, [rbp + 0x140]
lea rdx, [0x00549f3c]
call fcn.0040ed80
mov rcx, qword [rbp + 0x140]
call fcn.0040f240
mov rcx, rax
lea rdx, [rbp + 0x3c]
mov r8d, 0x104
call sub.kernel32.dll_ExpandEnvironmentStringsA
lea rcx, [rbp + 0x148]
lea rdx, [rbp + 0x3c]
mov r8d, 0x104
xor r9, r9
call fcn.0040ecc0
mov rcx, qword [rbp + 0x148]
call fcn.0040f240
mov rcx, rax
call sub.kernel32.dll_lstrlenA
lea rcx, [rbp + 0x148]
mov edx, eax
xor r8, r8
call fcn.0040f4b0
lea rcx, [rbp + 0x148]
lea rdx, [0x00549f50]
call fcn.0040ed80
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x148]
call fcn.0040e770
nop
lea rcx, [rbp + 0x140]
mov edx, 2
call fcn.0040e140
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x150]
pop rbp
ret

Function at 0x54a050
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
call fcn.0040f240
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x54a06e
test eax, 0x10
jne 0x54a073
xor rax, rax
jmp 0x54a075
mov al, 1
add rsp, 0x28
ret

Function at 0x54a190
Capabilities:
Write file on windows

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rbp, rsp
mov rbx, rcx
call fcn.00408bf0
or ecx, 0xffffffff
call fcn.00408c20
mov ecx, 0x3e8
cdq
idiv ecx
mov rax, rdx
mov r13d, eax
shl r13d, 0xa
add r13d, 0xe00000
mov ecx, 0x40
mov edx, r13d
add edx, edx
add edx, edx
movsxd rdx, edx
call sub.kernel32.dll_GlobalAlloc
mov rdi, rax
xor rsi, rsi
call fcn.00408bf0
or ecx, 0xffffffff
call fcn.00408c20
mov ecx, esi
add ecx, ecx
add ecx, ecx
movsxd rcx, ecx
mov dword [rdi + rcx], eax
add esi, 1
cmp esi, 0xfa001
jne 0x54a1e2
nop
mov rcx, rbx
mov edx, 0xc0000000
mov r8d, 3
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileA
mov rbx, rax
mov ecx, ebx
xor rdx, rdx
xor r8, r8
mov r9d, 2
call sub.kernel32.dll_SetFilePointer_1
mov ecx, ebx
mov rdx, rdi
mov r8d, r13d
add r8d, r8d
add r8d, r8d
lea r9, [rbp + 0x4c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
mov ecx, ebx
call sub.kernel32.dll_CloseHandle_1
mov ecx, edi
call sub.kernel32.dll_GlobalFree
lea rsp, [rbp + 0x50]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x54a290
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
sub rsp, 0x448
mov rbp, rsp
mov qword [rbp + 0x430], 0
mov qword [rbp + 0x460], rcx
mov rcx, qword [rbp + 0x460]
call fcn.0040e1e0
nop
lea rcx, [rbp + 0x430]
lea rdx, [0x0054a420]
call fcn.0040e7f0
lea rcx, [rbp + 0x430]
lea rdx, [0x0054a43c]
call fcn.0040ed80
lea rcx, [rbp + 0x430]
lea rdx, [0x0054a45c]
call fcn.0040ed80
lea rcx, [rbp + 0x430]
lea rdx, [0x0054a478]
call fcn.0040ed80
mov rcx, qword [0x00588ec0]
call fcn.0040f240
lea rcx, [rbp + 0x30]
mov rdx, rax
call sub.kernel32.dll_lstrcpyA
mov rcx, qword [rbp + 0x430]
call fcn.0040f240
mov rcx, 0xffffffff80000001
mov rdx, rax
xor r8, r8
mov r9d, 0xf003f
lea rax, [rbp + 0x438]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x54a3a6
mov rcx, qword [rbp + 0x460]
call fcn.0040f240
mov rbx, rax
mov rcx, qword [rbp + 0x460]
call fcn.0040f240
mov rcx, rax
call sub.kernel32.dll_lstrlenA
mov rcx, qword [rbp + 0x438]
lea rdx, [rbp + 0x30]
xor r8, r8
mov r9d, 1
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x28], eax
call sub.advapi32.dll_RegSetValueExA
mov rcx, qword [rbp + 0x438]
call sub.advapi32.dll_RegCloseKey_1
nop
lea rcx, [rbp + 0x430]
call fcn.0040e080
lea rcx, [rbp + 0x460]
call fcn.0040e080
lea rsp, [rbp + 0x448]
pop rbx
pop rbp
ret

Function at 0x54a480
Capabilities:
Get file size

Disassembly:
push rbp
push rbx
sub rsp, 0x58
mov rbp, rsp
mov qword [rbp + 0x70], rcx
mov rcx, qword [rbp + 0x70]
call fcn.0040e1e0
nop
xor rax, rax
mov dword [rbp + 0x4c], eax
mov rcx, qword [rbp + 0x70]
call fcn.0040f240
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileA
mov rbx, rax
cmp rbx, 0xffffffffffffffff
je 0x54a4f7
mov rcx, rbx
xor rdx, rdx
call sub.kernel32.dll_GetFileSize_1
mov dword [rbp + 0x4c], eax
mov rcx, rbx
call sub.kernel32.dll_CloseHandle_1
nop
lea rcx, [rbp + 0x70]
call fcn.0040e080
mov eax, dword [rbp + 0x4c]
lea rsp, [rbp + 0x58]
pop rbx
pop rbp
ret
Function at 0x140011672
Capabilities:
Terminate process

Disassembly:
jmp 0x140027550
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.DLL_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011811
Capabilities:
Parse pe header

Disassembly:
jmp 0x140026900
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140026920
xor al, al
jmp 0x1400269a1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140026933
xor al, al
jmp 0x1400269a1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14002695d
xor al, al
jmp 0x1400269a1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140026971
xor al, al
jmp 0x1400269a1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140026983
xor al, al
jmp 0x1400269a1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14002699f
xor al, al
jmp 0x1400269a1
mov al, 1
add rsp, 0x38
ret

Function at 0x14001187a
Capabilities:
Log keystrokes via application hook

Disassembly:
jmp 0x14001cf60
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1400410f8]
call fcn.140011bd6
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140011393]
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x140038810], rax
cmp qword [0x140038810], 0
jne 0x14001cfd0
lea rax, str.Failed_to_install_hook_
mov qword [rbp + 8], rax
lea rax, str.Error
mov qword [rbp + 0x28], rax
mov r9d, 0x10
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 8]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret