joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002930
Capabilities:
Parse pe header

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

Function at 0x140bd80b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140bd8237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140bd80e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140bd80c7
add dl, dl
jne 0x140bd80ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140bd814e
xor eax, eax
add dl, dl
jne 0x140bd80fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140bd8205
add dl, dl
jne 0x140bd810e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bd811b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bd8128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bd8135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140bd8142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140bd80d6
mov eax, 1
add dl, dl
jne 0x140bd815e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bd816b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140bd8153
sub eax, ebx
mov ebx, 1
jne 0x140bd81a4
mov ecx, 1
add dl, dl
jne 0x140bd8186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140bd8193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140bd817b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140bd80d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140bd81c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140bd81cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140bd81b5
cmp eax, 0x7d00
jae 0x140bd81f3
cmp eax, 0x500
jb 0x140bd81ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140bd80d6
cmp eax, 0x7f
ja 0x140bd81f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140bd80d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140bd822a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140bd80d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000b5b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov edx, dword [rcx + 0x10]
mov rbx, rcx
mov edi, edx
and edi, 7
je 0x14000b644
cmp edx, edi
jge 0x14000b635
mov r8d, dword [rcx + 0x14]
mov eax, 1
mov ecx, edx
mov r10d, edx
shl eax, cl
mov r9d, edx
cmp r8d, eax
jae 0x14000b62b
mov r11, qword [rbx + 8]
mov rax, qword [rbx]
cmp rax, r11
jb 0x14000b5f3
xor cl, cl
jmp 0x14000b5fc
movzx ecx, byte [rax]
inc rax
mov qword [rbx], rax
movzx eax, cl
lea edx, [r10 + 8]
mov ecx, r10d
mov dword [rbx + 0x10], edx
shl eax, cl
or r8d, eax
mov dword [rbx + 0x14], r8d
cmp edx, 0x18
jg 0x14000b635
mov ecx, edx
mov eax, 1
shl eax, cl
mov r10d, edx
mov r9d, edx
cmp r8d, eax
jb 0x14000b5e7
mov rax, qword [rbx + 8]
mov edx, r9d
mov qword [rbx], rax
mov eax, dword [rbx + 0x14]
mov ecx, edi
shr eax, cl
sub edx, edi
mov dword [rbx + 0x14], eax
mov dword [rbx + 0x10], edx
xor r8d, r8d
mov eax, edx
test edx, edx
jle 0x14000b67e
mov ecx, dword [rbx + 0x14]
lea rdx, [rsp + 0x30]
movzx r9d, cl
nop dword [rax]
shr ecx, 8
inc r8d
mov byte [rdx], r9b
lea rdx, [rdx + 1]
sub eax, 8
mov dword [rbx + 0x14], ecx
movzx r9d, cl
test eax, eax
jg 0x14000b660
mov dword [rbx + 0x10], eax
test eax, eax
jns 0x14000b6ab
mov rax, qword gs:[0x58]
mov edx, 0x28
mov rcx, qword [rax]
lea rax, str.zlib_corrupt
mov qword [rdx + rcx], rax
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movsxd rcx, r8d
cmp rcx, 4
jge 0x14000b6df
mov r8, qword [rbx + 8]
mov rax, qword [rbx]
nop dword [rax + rax]
cmp rax, r8
jb 0x14000b6c9
xor dl, dl
jmp 0x14000b6d2
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x14000b6c0
movzx eax, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl r8d, 8
add r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov eax, r8d
xor eax, 0xffff
cmp ecx, eax
jne 0x14000b682
mov rcx, qword [rbx]
mov edi, r8d
add rcx, rdi
cmp rcx, qword [rbx + 8]
jbe 0x14000b748
mov rax, qword gs:[0x58]
mov edx, 0x28
mov rcx, qword [rax]
lea rax, str.read_past_buffer
mov qword [rdx + rcx], rax
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rdx, qword [rbx + 0x18]
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 0x28]
jbe 0x14000b766
mov rcx, rbx
call fcn.14000aa20
test eax, eax
je 0x14000b69e
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, qword [rbx + 0x18]
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx], rdi
mov eax, 1
add qword [rbx + 0x18], rdi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140014fb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x140054040]
xor rax, rsp
mov qword [rbp + 0x80], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea r8, [0x140047024]
mov edx, 0x65
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
je 0x140015146
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140015146
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140015146
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x140015146
xor esi, esi
movsxd rcx, eax
add rcx, rbx
mov dword [rsp + 0x48], esi
mov qword [rbp + 0x78], rcx
lea r8, [rsp + 0x4c]
mov qword [rbp + 0x68], rcx
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x60]
mov dword [rsp + 0x4c], esi
mov qword [rbp - 0x50], rsi
mov dword [rbp - 0x30], esi
mov dword [rbp + 0x58], esi
mov qword [rbp + 0x70], rbx
mov qword [rbp + 0x60], rbx
call fcn.140003c10
mov rbx, rax
test rax, rax
je 0x140015146
lea ecx, [rsi + 0x10]
call fcn.140043fc0
mov rdi, rax
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x50]
mov qword [rax + 8], rsi
mov ecx, dword [rsp + 0x48]
mov dword [rax], ecx
mov ecx, dword [rsp + 0x4c]
mov dword [rax + 4], ecx
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x4c]
mov dword [rsp + 0x54], ecx
mov rcx, qword [0x140054bf8]
mov dword [rsp + 0x50], eax
lea eax, [rax*4]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x64], 1
mov qword [rsp + 0x74], rsi
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x5c], 1
mov dword [rsp + 0x60], 0x1c
mov dword [rsp + 0x6c], esi
mov dword [rsp + 0x70], 8
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x44], esi
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rdx, qword [rsp + 0x30]
test rdx, rdx
jne 0x140015170
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor al, al
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.140043fa0
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov eax, dword [rsp + 0x58]
lea r9, [rdi + 8]
mov rcx, qword [0x140054bf8]
lea r8, [rbp - 0x80]
mov qword [rbp - 0x70], rsi
mov dword [rbp - 0x80], 0x1c
mov qword [rbp - 0x7c], 4
mov dword [rbp - 0x74], eax
mov rax, qword [rcx]
call qword [rax + 0x38]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rbx
mov qword [0x140054bf0], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140015148
Function at 0x14001d9e0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14001da3d
lea rbx, [0x140047980]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x14001da24
cmp r10, 2
jb 0x14001da24
cmp byte [r9], r8b
jne 0x14001da24
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x14001da00
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14001da7f
lea rbx, [0x140047980]
cmp r8b, 0x23
jne 0x14001da63
cmp byte [r9], r8b
jne 0x14001da63
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x14001da50
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x14001dbc0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x14001dbda
mov qword [r8], 0
lea rdx, [0x14004697c]
call fcn.14001da90
mov rbx, rax
test rax, rax
jne 0x14001dbfa
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x14001dcd1
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14001dcd1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14001dcd1
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14001dcd1
cmp rdi, 0xffffffffffffffff
je 0x14001dcd1
mov rax, qword [0x140054bc8]
test rax, rax
je 0x14001dc6e
inc dword [rax + 0x3b4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x14001dcd1
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x14001dcbe
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140054bc8]
test rax, rax
je 0x14001dcb3
dec dword [rax + 0x3b4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14001dcda
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x14001dccc
mov qword [r14], rdi
mov rax, rsi
jmp 0x14001dcdc
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14001f360
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x78
mov rax, qword [0x140054bc8]
test rax, rax
je 0x14001f386
inc dword [rax + 0x3b4]
mov ecx, 0x3f80
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp + 0x40], rax
lea rcx, [rbp + 0x38]
mov qword [rbp + 0x48], rcx
mov qword [rbp + 0x50], rax
xor r14d, r14d
test rax, rax
je 0x14001f3b8
xor edx, edx
mov rcx, rax
call fcn.14001c5d0
mov rbx, rax
jmp 0x14001f3bb
mov rbx, r14
cmp qword [0x140054bc8], 0
jne 0x14001f3cc
mov qword [0x140054bc8], rbx
mov dword [rbp - 0x4c], r14d
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x18], r14
lea rax, str.Window
mov qword [rbp - 0x58], rax
mov esi, 0xffffffff
mov edx, esi
lea r8, [0x14004bb2d]
mov r9b, 0x57
lea r15, [0x140047980]
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x14001f412
cmp byte [r8], r9b
jne 0x14001f412
cmp byte [r8 + 1], r9b
cmove edx, esi
movzx ecx, dl
movzx eax, r9b
xor rcx, rax
shr edx, 8
xor edx, dword [r15 + rcx*4]
movzx r9d, byte [r8]
inc r8
test r9b, r9b
jne 0x14001f400
not edx
mov dword [rbp - 0x50], edx
lea rax, [0x14002d400]
mov qword [rbp - 0x48], rax
lea rax, [0x14002d490]
mov qword [rbp - 0x38], rax
lea rax, [0x14002d560]
mov qword [rbp - 0x30], rax
lea rax, [0x14002d640]
mov qword [rbp - 0x28], rax
lea rax, [0x14002d790]
mov qword [rbp - 0x20], rax
lea rdx, [rbp - 0x58]
lea rcx, [rbx + 0x30f8]
call fcn.14002dd10
mov dword [rbp - 0x4c], r14d
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x18], r14
lea rax, str.Table
mov qword [rbp - 0x58], rax
mov eax, esi
lea r8, [0x14004bcf5]
mov r9b, 0x54
nop
cmp r9b, 0x23
jne 0x14001f4b2
cmp byte [r8], r9b
jne 0x14001f4b2
cmp byte [r8 + 1], r9b
cmove eax, esi
movzx edx, al
movzx ecx, r9b
xor rdx, rcx
shr eax, 8
xor eax, dword [r15 + rdx*4]
movzx r9d, byte [r8]
inc r8
test r9b, r9b
jne 0x14001f4a0
not eax
mov dword [rbp - 0x50], eax
lea rax, [0x14003fc00]
mov qword [rbp - 0x48], rax
lea rax, [0x14003fcd0]
mov qword [rbp - 0x38], rax
lea rax, [0x14003fdd0]
mov qword [rbp - 0x30], rax
lea rax, [0x14003fc90]
mov qword [rbp - 0x28], rax
lea rax, [0x140040060]
mov qword [rbp - 0x20], rax
lea rdx, [rbp - 0x58]
lea rcx, [rbx + 0x30f8]
call fcn.14002dd10
mov byte [rbx], 1
mov rax, rbx
add rsp, 0x78
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140028830
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140054040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x140054bc8]
mov edi, edx
cmp byte [rbx + 0x2005], 0
jne 0x140028890
cmp byte [rbx + 0x2006], 0
jne 0x140028890
mov r9d, dword [rbx + 0x30a8]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.14001d960
test dil, 1
je 0x1400289ae
jmp 0x140028918
movss xmm1, dword [rbx + 0x1614]
lea r8, str.Tooltip__02d
mov r9d, dword [rbx + 0x30a8]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x14004c468]
mulss xmm1, dword [0x14004c458]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0x128]
addss xmm1, dword [rbx + 0x12c]
mov qword [rbx + 0x1ba0], rax
mov dword [rbx + 0x1b8c], 1
movss dword [rbx + 0x1b98], xmm0
movss dword [rbx + 0x1b9c], xmm1
movss xmm0, dword [rbx + 0x1670]
mulss xmm0, dword [0x14004c3f0]
or dword [rbx + 0x1b88], 0x41
movss dword [rbx + 0x1be8], xmm0
call fcn.14001d960
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x140028968
lea r11, [0x140047980]
cmp r9b, 0x23
jne 0x14002894b
cmp byte [r8], r9b
jne 0x14002894b
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140028938
not ecx
call fcn.140022bf0
test rax, rax
je 0x1400289ae
cmp byte [rax + 0x8e], 0
je 0x1400289ae
mov byte [rax + 0x95], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xac], 1
lea rcx, [rsp + 0x20]
inc dword [rbx + 0x30a8]
mov edx, 0x10
mov r9d, dword [rbx + 0x30a8]
call fcn.14001d960
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.140025310
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140043fa0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14002cb40
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
sub rsp, 0x40
mov rbx, qword [0x140054bc8]
cmp byte [rbx + 0x3138], 0
je 0x14002cc2c
cmp qword [rbx + 0x3140], 0
mov qword [rax - 0x18], rsi
lea rsi, [rax + 0x10]
mov qword [rax - 0x20], rdi
lea rdi, [rbx + 0x3148]
je 0x14002cc14
mov r9d, dword [rdi + 4]
mov qword [rax - 0x10], rbp
xor ebp, ebp
test r9d, r9d
jns 0x14002cbbb
mov eax, r9d
mov rcx, rdi
cdq
sub eax, edx
mov edx, ebp
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.14002e830
mov rcx, qword [rsp + 0x50]
mov rdx, rcx
mov dword [rdi], ebp
mov rcx, rdi
mov r8, rsi
call fcn.14001df90
mov eax, dword [rdi]
mov edx, 1
mov r9, qword [rbx + 0x3140]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rbx + 0x3150]
cmove ecx, ebp
test rax, rax
movsxd r8, ecx
lea rcx, [0x140054bbc]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
ret
mov rdx, rcx
mov r8, rsi
mov rcx, rdi
call fcn.14001df90
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
ret
Function at 0x14003f3d0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140054040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rcx, qword [0x140054c98]
lea rdx, [rsp + 0x28]
mov rdi, qword [0x140054bc8]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x40]
sub eax, dword [rsp + 0x28]
mov qword [rsp + 0x40], 0
movd xmm1, eax
mov eax, dword [rsp + 0x34]
sub eax, dword [rsp + 0x2c]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rdi + 0x10], xmm1
movss dword [rdi + 0x14], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rsp + 0x40]
xorps xmm1, xmm1
mov rax, rcx
xorps xmm0, xmm0
sub rax, qword [0x140054ca0]
cvtsi2ss xmm0, qword [0x140054ca8]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x18], xmm1
mov qword [0x140054ca0], rcx
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x10
and al, 1
mov byte [rdi + 0x140], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x12
and al, 1
mov byte [rdi + 0x141], al
call qword [sym.imp.USER32.dll_GetKeyState]
mov rbx, qword [0x140054bc8]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x143], 0
mov byte [rdi + 0x142], al
cmp byte [rbx + 0x39b], 0
je 0x14003f50f
cvttss2si eax, dword [rbx + 0x128]
mov rcx, qword [0x140054c98]
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x38], eax
cvttss2si eax, dword [rbx + 0x12c]
mov dword [rsp + 0x3c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x14003f50f
mov edx, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov dword [rbx + 0x128], 0xff7fffff
mov dword [rbx + 0x12c], 0xff7fffff
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
je 0x14003f58e
mov rdx, qword [0x140054c98]
cmp rax, rdx
je 0x14003f547
mov rcx, rax
call qword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x14003f58e
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x14003f58e
mov rcx, qword [0x140054c98]
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x14003f58e
movd xmm0, dword [rsp + 0x20]
movd xmm1, dword [rsp + 0x24]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [rbx + 0x128], xmm0
movss dword [rbx + 0x12c], xmm1
cmp byte [rdi + 0xc8], 0
je 0x14003f59e
mov eax, 0xffffffff
jmp 0x14003f5ab
mov rax, qword [0x140054bc8]
mov eax, dword [rax + 0x2000]
cmp dword [0x140054334], eax
je 0x14003f5be
mov dword [0x140054334], eax
call fcn.14003efa0
call fcn.14003f120
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140043fa0
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x14004344c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140043486
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14004348b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400434d4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400466c0]
cmp byte [rcx + rax], 0
je 0x1400434d4
dec r8
sub rdx, 1
jne 0x1400434ba
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140044b7c
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140095e50
mov rax, rcx
neg rcx
test rax, 7
je 0x140095e6d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x140095ec8
test al, 7
jne 0x140095e60
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x140095e81
mov rdx, qword [rax - 8]
test dl, dl
je 0x140095ef2
test dh, dh
je 0x140095eec
shr rdx, 0x10
test dl, dl
je 0x140095ee6
test dh, dh
je 0x140095ee0
shr rdx, 0x10
test dl, dl
je 0x140095eda
test dh, dh
je 0x140095ed4
shr edx, 0x10
test dl, dl
je 0x140095ece
test dh, dh
jne 0x140095e81
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1400027c5
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140021950
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1400212d0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14002198f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140129020]
jmp 0x140021999
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret