joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140056760
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14007b960]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x1400567a7
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14003dbe0
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.14003ef40
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14003dbe0
add rsp, 0x38
ret

Function at 0x1400586a0
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r13
sub rsp, 0x20
mov rbp, rdx
xor edi, edi
xor edx, edx
lea r8d, [rdi + 1]
mov esi, ecx
call fcn.140054500
cmp rax, 0xffffffffffffffff
mov r13, rax
je 0x140058844
lea r8d, [rdi + 2]
xor edx, edx
mov ecx, esi
call fcn.140054500
cmp rax, 0xffffffffffffffff
je 0x140058844
mov qword [rsp + 0x40], rbx
mov rbx, rbp
mov qword [rsp + 0x50], r14
sub rbx, rax
test rbx, rbx
jle 0x1400587c3
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r14d, 0x1000
lea edx, [rdi + 8]
mov rcx, rax
mov r8, r14
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbp, rax
jne 0x140058749
call fcn.140041fe0
mov dword [rax], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
call fcn.140041fe0
mov eax, dword [rax]
mov rbx, qword [rsp + 0x40]
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop rdi
pop rsi
ret
mov edx, 0x8000
mov ecx, esi
mov qword [rsp + 0x48], r12
call fcn.140058910
mov r12d, eax
nop
mov r8d, ebx
cmp rbx, r14
mov rdx, rbp
cmovge r8d, r14d
mov ecx, esi
call fcn.140048e80
cmp eax, 0xffffffff
je 0x140058785
cdqe
sub rbx, rax
test rbx, rbx
jg 0x140058760
jmp 0x14005879e
call fcn.140042010
cmp dword [rax], 5
jne 0x14005879a
call fcn.140041fe0
mov dword [rax], SafeArrayGetDim
or rdi, 0xffffffffffffffff
mov edx, r12d
mov ecx, esi
call fcn.140058910
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r12, qword [rsp + 0x48]
jmp 0x14005881c
test rbx, rbx
jns 0x140058826
xor r8d, r8d
mov rdx, rbp
mov ecx, esi
call fcn.140054500
cmp rax, 0xffffffffffffffff
je 0x14005872a
mov ecx, esi
call fcn.140055f50
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb rdi, rdi
neg rdi
sub rdi, 1
cmp rdi, 0xffffffffffffffff
jne 0x140058826
call fcn.140041fe0
mov dword [rax], SafeArrayGetDim
call fcn.140042010
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
cmp rdi, 0xffffffffffffffff
je 0x14005872a
xor r8d, r8d
mov rdx, r13
mov ecx, esi
call fcn.140054500
cmp rax, 0xffffffffffffffff
je 0x14005872a
xor eax, eax
jmp 0x140058731
call fcn.140041fe0
mov rbp, qword [rsp + 0x58]
mov eax, dword [rax]
add rsp, 0x20
pop r13
pop rdi
pop rsi
ret
Function at 0x14005ad4c
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x14007b960]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.1400421c0
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x140000000]
mov esi, __WSAFDIsSet
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.1400421c0
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 0x14005addf
cmp dword [rsp + 0x24], 5
jb 0x14005adf9
jmp 0x14005adf5
cmp dword [rsp + 0x30], esi
jne 0x14005adf9
cmp dword [rsp + 0x24], 4
ja 0x14005adf5
jne 0x14005adf9
cmp dword [rsp + 0x28], 0
jbe 0x14005adf9
mov byte [rbx + 0x18], sil
lea rax, [0x140066400]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.14005ac0c
movzx ecx, byte [0x140082290]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x140082290], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14003dbe0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14001fae0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x2d0
xor esi, esi
lea rcx, [rax + 0x20]
mov qword [rax + 0x20], rsi
call fcn.14001fa90
lea rdx, [rsp + 0x110]
mov qword [rsp + 0xa0], rax
mov rcx, rax
mov rdi, rax
call fcn.14001f9b4
lea rax, [rsp + 0x110]
mov qword [rsp + 0x88], rax
mov ebx, dword [rsp + 0x158]
add rbx, rdi
cmp dword [rbx], esi
je 0x14001fb7f
mov rdx, qword [rsp + 0x2f8]
mov ecx, esi
cmp word [rdx], si
je 0x14001fb52
inc ecx
cmp word [rdx + rcx*2], si
jne 0x14001fb4a
cmp cl, byte [rbx]
je 0x14001fb64
cmp cl, byte [rbx + 1]
je 0x14001fb64
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rcx, rdx
call fcn.14001fabc
cmp eax, dword [rbx + 4]
je 0x14001fb7f
cmp eax, dword [rbx + 8]
je 0x14001fb7f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov edx, dword [rsp + 0x1b8]
lea rcx, [rsp + 0x20]
add rdx, rdi
call rdx
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140034a88
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14003491b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003491b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003491b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003491b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003491b
cmp dword [rcx + 0x84], 0xe
jbe 0x14003491b
cmp dword [rcx + 0xf8], 0
je 0x14003491b
mov ecx, ebx
call fcn.1400349bc
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1400347ac
cmp dword [rbp + 0x20], 0
je 0x140034968
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140034970
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400348b4

Function at 0x140001bac
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movzx edi, cl
lea rsi, [0x140000000]
movzx ebx, dl
lea eax, [rdi - 0x13]
cmp eax, 0x92
ja case.0x140016d3e.45
cdqe
movzx eax, byte [rsi + rax + 0x16f10]
mov ecx, dword [rsi + rax*4 + 0x16ea4]
add rcx, rsi
jmp rcx
mov eax, 0x2a
jmp 0x140016e09
mov eax, 0x136
jmp 0x140016e09
mov eax, 0x1d
jmp 0x140016e09
mov eax, 0x11d
jmp 0x140016e09
mov eax, gethostname
jmp 0x140016e09
mov eax, 0x138
jmp 0x140016e09
mov eax, 0x15b
jmp 0x140016e09
mov eax, 0x15c
jmp 0x140016e09
mov eax, 0x45
jmp 0x140016e09
mov eax, 0x52
jmp 0x140016e09
mov eax, 0x4f
jmp 0x140016e09
mov eax, 0x50
jmp 0x140016e09
mov eax, 0x51
jmp 0x140016e09
mov eax, 0x4b
jmp 0x140016e09
mov eax, 0x4c
jmp 0x140016e09
mov eax, 0x4d
jmp 0x140016e09
mov eax, 0x47
jmp 0x140016e09
mov eax, 0x48
jmp 0x140016e09
mov eax, 0x49
jmp 0x140016e09
mov eax, 0x53
jmp 0x140016e09
mov eax, 0x145
jmp 0x140016e09
mov eax, 0x135
jmp 0x140016e09
mov eax, gethostname
jmp 0x140016e09
mov eax, 0x4a
jmp 0x140016e09
mov eax, 0x4e
jmp 0x140016e09
mov eax, 0x137
test bl, bl
jne 0x140016e5f
movzx eax, ax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor edx, edx
mov ecx, edi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov edx, eax
test ax, ax
je 0x140016e5f
add edi, 0xfffffffd
cmp edi, 0xb4
ja case.0x140016e51.5
movsxd rax, edi
movzx eax, byte [rsi + rax + 0x16fb0]
mov ecx, dword [rsi + rax*4 + 0x16fa4]
add rcx, rsi
jmp rcx
mov ecx, 0x100
or dx, cx
test bl, bl
je 0x140016e8f
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movzx eax, dx
test bl, bl
je 0x140016e92
mov ecx, 0x100
or eax, ecx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movzx eax, dx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140017070
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x20
movzx ebx, cx
mov r8d, ebx
mov eax, ebx
cmp ebx, 0x11c
ja 0x140017157
cmp ebx, 0x11c
je 0x14001714f
sub eax, 0x1d
cmp eax, 0x36
ja case.0x14001717c.286
lea rdx, [0x140000000]
cdqe
movzx eax, byte [rdx + rax + 0x17250]
mov ecx, dword [rdx + rax*4 + 0x17204]
add rcx, rdx
jmp rcx
mov al, 0xa0
add rsp, 0x20
pop rbx
ret
mov al, 0xa2
add rsp, 0x20
pop rbx
ret
mov al, 0xa4
add rsp, 0x20
pop rbx
ret
mov al, 0x6a
add rsp, 0x20
pop rbx
ret
mov al, 0x6d
add rsp, 0x20
pop rbx
ret
mov al, 0x6b
add rsp, 0x20
pop rbx
ret
mov al, 0x2e
add rsp, 0x20
pop rbx
ret
mov al, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
add rsp, 0x20
pop rbx
ret
mov al, 0x2d
add rsp, 0x20
pop rbx
ret
mov al, 0x26
add rsp, 0x20
pop rbx
ret
mov al, 0x28
add rsp, 0x20
pop rbx
ret
mov al, 0x25
add rsp, 0x20
pop rbx
ret
mov al, 0x27
add rsp, 0x20
pop rbx
ret
mov al, 0x24
add rsp, 0x20
pop rbx
ret
mov al, reloc.OLEAUT32.dll_SafeArrayAllocDescriptor
add rsp, 0x20
pop rbx
ret
mov al, 0x21
add rsp, 0x20
pop rbx
ret
mov al, SafeArrayAllocDescriptor
add rsp, 0x20
pop rbx
ret
mov al, reloc.OLEAUT32.dll_SafeArrayGetLBound
add rsp, 0x20
pop rbx
ret
mov al, 0xd
add rsp, 0x20
pop rbx
ret
sub eax, 0x11d
cmp eax, 0x40
ja case.0x14001717c.286
lea rdx, [0x140000000]
cdqe
movzx eax, byte [rdx + rax + 0x172b0]
mov ecx, dword [rdx + rax*4 + 0x17288]
add rcx, rdx
jmp rcx
mov al, 0xa1
add rsp, 0x20
pop rbx
ret
mov al, 0xa3
add rsp, 0x20
pop rbx
ret
mov al, 0xa5
add rsp, 0x20
pop rbx
ret
mov al, 0x5b
add rsp, 0x20
pop rbx
ret
mov al, 0x5c
add rsp, 0x20
pop rbx
ret
mov al, 0x90
add rsp, 0x20
pop rbx
ret
mov al, 0x6f
add rsp, 0x20
pop rbx
ret
mov al, 0x5d
add rsp, 0x20
pop rbx
ret
mov al, 0x2c
add rsp, 0x20
pop rbx
ret
mov eax, 0x100
test ax, bx
je 0x1400171e9
movzx ecx, r8b
mov edx, 1
or ecx, 0xe000
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
test eax, eax
jne 0x1400171fd
movzx ecx, bl
mov edx, 1
add rsp, 0x20
pop rbx
jmp qword [sym.imp.USER32.dll_MapVirtualKeyW]
add rsp, 0x20
pop rbx
ret

Function at 0x140017300
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x140108130], ecx
lea rax, [0x140108134]
mov r8d, 1
mov edx, dword [rax - 4]
lea rax, [rax + 4]
shr edx, 0x1e
xor edx, dword [rax - 8]
imul ecx, edx, 0x6c078965
add ecx, r8d
inc r8d
mov dword [rax - 4], ecx
cmp r8d, 0x270
jl 0x140017313
mov dword [0x140102420], 1
mov dword [0x140105dc0], 1
ret
Function at 0x14001baf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, r8
mov qword [rsp + 0x30], 0
mov rsi, rdx
mov dword [rsp + 0x38], 0
mov rbp, rcx
mov byte [rsp + 0x3c], 0
mov r8d, 0xa
lea rdx, [0x1400e4ed8]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14001bb5b
lea r8d, [rax + 0xa]
xor ecx, ecx
lea rdx, str._AHK_WITH_ICON_
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x14001bbc5
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x38], eax
test eax, eax
je 0x14001bbc5
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14001bbc5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14001bbc5
mov r9d, 0xfde9
lea rdx, [rsp + 0x30]
mov r8d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov rcx, rsi
call fcn.140089340
mov rax, qword [rbp + 0xb80]
inc dword [0x140107140]
mov qword [0x140107148], rax
mov eax, 3
jmp 0x14001bbe4
xorps xmm3, xmm3
mov qword [rsp + 0x20], 0
mov r8, rdi
lea rcx, str.Could_not_extract_script_from_EXE.
xor edx, edx
call fcn.140091370
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140035ad0
Capabilities:
Check http status code

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x140100a58]
mov rbx, rcx
mov qword [0x140107950], rcx
cmp byte [rax + 0x139], 0
je 0x140035b37
movsxd rax, dword [0x140105dd8]
mov qword [rsp + 0x30], rdi
lea rdi, [0x140000000]
mov qword [rdi + rax*8 + 0x106420], rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
movsxd rdx, dword [0x140105dd8]
mov dword [rdi + rdx*4 + 0x105de0], eax
inc edx
mov rdi, qword [rsp + 0x30]
xor eax, eax
cmp edx, 0x190
cmovge edx, eax
mov dword [0x140105dd8], edx
xor r9d, r9d
or r8, 0xffffffffffffffff
xor edx, edx
mov rcx, rbx
call fcn.14006c300
cmp eax, 1
jne 0x140035b5a
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400333a0
add rsp, 0x20
pop rbx
ret
Function at 0x1400383e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
lea r8, str.Script_lines_most_recently_executed__oldest_first_.__Press__F5__to_refresh.__The_seconds_elapsed_between_a_line_and_the_one_after_it_is_in_parentheses_to_the_right__if_not_0_.__The_bottommost_lines_elapsed_time_is_the_number_of_seconds_since_it_executed._r_n_r_n
mov qword [rsp + 0x70], rcx
mov edx, 0xfffe
mov r14, rcx
call fcn.14008b9a0
mov r8d, dword [0x140105dd8]
lea r9, [0x140000000]
movsxd rdx, eax
mov ebp, 0x190
mov edi, r8d
lea rax, [r14 + rdx*2]
mov qword [rsp + 0x80], rax
xor r15b, r15b
mov r13, rax
test ebp, ebp
jle 0x14003855c
movsxd rbx, edi
mov esi, 2
mov r12d, ebp
nop dword [rax + rax]
cmp edi, 0x190
jl 0x140038465
sub edi, 0x190
sub rbx, 0x190
cmp qword [r9 + rbx*8 + 0x106420], 0
je 0x14003853f
movzx r14d, r15b
lea eax, [rsi - 1]
xor r15b, r15b
cmp eax, ebp
jge 0x140038591
test r14b, r14b
jne 0x14003853f
mov edx, dword [r9 + rbx*4 + 0x105de0]
lea rax, [rbx + 1]
xor ecx, ecx
cmp edi, 0x18f
cmovl rcx, rax
mov eax, dword [r9 + rcx*4 + 0x105de0]
sub eax, edx
cmp eax, 0x7fffffff
jbe 0x1400384f1
mov r15b, 1
cmp esi, ebp
jne 0x1400384d5
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [0x140000000]
sub eax, dword [rcx + rbx*4 + 0x105de0]
jmp 0x1400384f8
lea rax, [rbx + 2]
cmp rax, 0x190
jl 0x1400384e7
add rax, 0xfffffffffffffe70
mov eax, dword [r9 + rax*4 + 0x105de0]
sub eax, edx
lea rcx, [0x140000000]
mov rcx, qword [rcx + rbx*8 + 0x106420]
mov r9d, 0xfffe
mov r8, r13
mov byte [rsp + 0x28], r14b
sub r8, qword [rsp + 0x70]
mov rdx, r13
sar r8, 1
sub r9d, r8d
mov dword [rsp + 0x20], eax
mov r8d, 0xc8
cmp r9d, r8d
cmovl r8d, r9d
mov r9b, 1
call fcn.140038720
mov r13, rax
lea r9, [0x140000000]
inc esi
inc edi
inc rbx
sub r12, 1
jne 0x140038450
mov r8d, dword [0x140105dd8]
mov r14, qword [rsp + 0x70]
mov rax, r13
mov edx, 0xfffe
sub rax, r14
sar rax, 1
sub edx, eax
cmp edx, 0x18
jg 0x1400385aa
cmp ebp, 0x78
jl 0x1400385aa
mov rax, qword [rsp + 0x80]
sub ebp, 0x64
mov edi, r8d
sub edi, ebp
add edi, 0x190
jmp 0x140038432
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [0x140000000]
sub eax, dword [rcx + rbx*4 + 0x105de0]
jmp 0x1400384f8
lea r8, str._r_nPress__F5__to_refresh.
mov rcx, r13
call fcn.14008b9a0
mov rbx, qword [rsp + 0x78]
movsxd rcx, eax
lea rax, [rcx*2]
add rax, r13
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140050340
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10050
call fcn.1400bfa50
sub rsp, rax
mov rbp, rcx
mov rdi, r9
mov rcx, r9
mov rsi, r8
mov rbx, rdx
call fcn.140010bd0
mov rcx, rdi
test al, al
je 0x140050385
xor edx, edx
lea r8d, [rdx + 0x10]
call fcn.1400aee64
jmp 0x14005038a
call fcn.1400ae968
cmp eax, 1
je 0x1400503e6
mov rcx, rsi
call fcn.1400652c0
test al, al
je 0x1400503e6
mov rax, qword [0x140100a58]
lea rdx, [0x1400e25dc]
test byte [rax + 0x140], 1
jne 0x1400503cf
mov rcx, qword [0x140104d40]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
call fcn.14008f120
jmp 0x1400504e2
lea r9, [0x1400cef3c]
xor r8d, r8d
mov rcx, rbp
call fcn.140038dd0
jmp 0x1400504e2
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14005039b
or r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], 0
jne 0x140050424
cmp r8, 0x8000
lea rcx, [rsp + 0x50]
mov eax, 0x7fff
mov rdx, rbx
cmovae r8, rax
lea r8, [r8*2 + 2]
call fcn.1400a9a00
lea rcx, [rsp + 0x50]
call fcn.1400b32f4
mov r8d, 0xa
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x1400504c9
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400504c9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1400504c9
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, eax
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bl
jmp 0x1400504cb
xor bl, bl
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, 1
mov rcx, rbp
movzx edx, bl
call fcn.140038ea0
lea r11, [rsp + 0x10050]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140050500
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x130
mov rbx, rdx
mov byte [rsp + 0x20], 1
mov rdi, rcx
xor edx, edx
mov rcx, qword [0x1401070a0]
xor r9d, r9d
or r8, 0xffffffffffffffff
call fcn.14008f120
test rbx, rbx
je 0x1400505aa
cmp word [rbx], 0
je 0x1400505aa
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14005055a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140100a58]
mov dword [rcx + 0x40], eax
jmp 0x1400505b8
mov rax, qword [0x140100a58]
xor edx, edx
mov rcx, rdi
mov dword [rax + 0x40], 0
call fcn.140038ea0
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.14008cce0
mov rcx, qword [0x1401070a0]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
mov rdx, rax
call fcn.14008f120
mov rbx, qword [rsp + 0x140]
add rsp, 0x130
pop rdi
ret
mov rax, qword [0x140100a58]
mov dword [rax + 0x40], 0x57
mov dl, 1
mov rcx, rdi
call fcn.140038ea0
mov rbx, qword [rsp + 0x140]
add rsp, 0x130
pop rdi
ret

Function at 0x1400505e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rdi, rdx
xor esi, esi
or r10d, 0xffffffff
mov edx, esi
mov ebp, r9d
mov dword [rsp + 0x68], r10d
mov r14, r8
mov dword [rsp + 0x6c], edx
mov r15, rcx
cmp word [rdi], dx
je 0x1400506e7
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x70], r12
lea r12, [0x140000000]
movzx ebx, word [rdi]
test ebx, 0xffffff80
jne 0x14005064a
mov edx, 2
mov ecx, ebx
call fcn.1400ad944
mov edx, dword [rsp + 0x6c]
mov r10d, dword [rsp + 0x68]
test eax, eax
je 0x14005064a
and ebx, 0xffffffdf
movzx eax, bx
add eax, 0xffffffd5
cmp eax, 0x33
ja case.0x14005066b.51
cdqe
movzx eax, byte [r12 + rax + 0x50744]
mov ecx, dword [r12 + rax*4 + 0x50720]
add rcx, r12
jmp rcx
movzx esi, word [rdi]
jmp case.0x14005066b.51
mov ecx, 1
jmp 0x1400506a1
mov ecx, SafeArrayAllocDescriptor
jmp 0x1400506a1
mov ecx, 4
jmp 0x1400506a1
mov ecx, 2
jmp 0x1400506a1
mov ecx, 0x80
jmp 0x1400506a1
mov ecx, 0x1000
jmp 0x1400506a1
mov ecx, 0x100
cmp esi, 0x2b
je 0x1400506bd
cmp esi, 0x2d
je 0x1400506b4
cmp esi, 0x5e
jne case.0x14005066b.51
xor edx, ecx
jmp 0x1400506cb
not ecx
and r10d, ecx
and edx, ecx
jmp 0x1400506c6
mov eax, ecx
not eax
and r10d, eax
or edx, ecx
mov dword [rsp + 0x68], r10d
mov dword [rsp + 0x6c], edx
add rdi, 2
cmp word [rdi], 0
jne 0x140050623
mov r12, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x60]
movzx r9d, byte [rsp + 0x80]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov r8d, ebp
lea rax, [0x140050780]
mov rdx, r14
mov rcx, r15
mov qword [rsp + 0x20], rax
call fcn.1400507c0
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140051080
Capabilities:
Get file size

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0x290
mov r14, r8
mov byte [rsp + 0x20], 1
mov rdi, rdx
mov rbp, rcx
mov rcx, qword [0x1401070a0]
or r8, 0xffffffffffffffff
xor edx, edx
xor r9d, r9d
call fcn.14008f120
test rdi, rdi
je 0x140051230
cmp word [rdi], 0
je 0x140051230
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x2b0], rbx
mov edx, 0x80
mov dword [rsp + 0x28], 0
mov rcx, rdi
mov qword [rsp + 0x2c0], rsi
lea r8d, [r9 + 7]
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140051129
lea rdx, [rsp + 0x2b8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x140051193
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x140051173
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140100a58]
mov dl, 1
mov dword [rcx + 0x40], eax
mov rcx, rbp
call fcn.140038ea0
mov rbx, qword [rsp + 0x2b0]
mov rsi, qword [rsp + 0x2c0]
add rsp, 0x290
pop r14
pop rdi
pop rbp
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [rsp + 0x5c]
mov eax, dword [rsp + 0x60]
shl rcx, 0x20
or rcx, rax
mov qword [rsp + 0x2b8], rcx
movzx ebx, word [r14]
test ebx, 0xffffff80
jne 0x1400511b2
mov edx, 2
mov ecx, ebx
call fcn.1400ad944
test eax, eax
je 0x1400511b2
and ebx, 0xffffffdf
movzx eax, bx
cmp eax, 0x4b
je 0x1400511d8
cmp eax, 0x4d
jne 0x1400511f7
mov rax, qword [rsp + 0x2b8]
cqo
and edx, 0xfffff
add rax, rdx
sar rax, 0x14
jmp 0x1400511ef
mov rax, qword [rsp + 0x2b8]
cqo
and edx, 0x3ff
add rax, rdx
sar rax, 0xa
mov qword [rsp + 0x2b8], rax
mov rax, qword [0x140100a58]
xor edx, edx
mov rcx, rbp
mov dword [rax + 0x40], 0
call fcn.140038ea0
mov rdx, qword [rsp + 0x2b8]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rcx, qword [0x1401070a0]
call fcn.140001280
mov eax, 1
jmp 0x140051157
mov rax, qword [0x140100a58]
mov dl, 1
mov rcx, rbp
mov dword [rax + 0x40], 0x57
call fcn.140038ea0
add rsp, 0x290
pop r14
pop rdi
pop rbp
ret

Function at 0x140060010
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
movzx ebx, cl
test cl, cl
jne 0x140060025
xor al, al
add rsp, 0x20
pop rbx
ret
sub edx, 1
je 0x140060051
movzx ecx, bl
cmp edx, 1
je 0x140060043
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.USER32.dll_GetKeyState]
and al, 1
add rsp, 0x20
pop rbx
ret
cmp bl, 6
ja 0x140060060
mov ecx, 0x76
bt ecx, ebx
jb 0x140060067
lea eax, [rbx + 0x66]
cmp al, 5
ja 0x140060085
cmp qword [0x140104d90], 0
jne 0x1400600a7
movzx ecx, bl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
add rsp, 0x20
pop rbx
ret
cmp qword [0x140104d98], 0
je 0x140060071
xor edx, edx
xor r8d, r8d
movzx ecx, bl
call fcn.140015b80
test al, al
je 0x1400600a7
mov cl, 1
call fcn.140015910
movzx eax, bl
lea rcx, [0x140105b60]
movzx eax, byte [rax + rcx]
shr al, 7
add rsp, 0x20
pop rbx
ret