joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180037040
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 0x18003709d
lea rbx, [0x1800942f0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180037084
cmp r10, 2
jb 0x180037084
cmp byte [r9], r8b
jne 0x180037084
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 0x180037060
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1800370df
lea rbx, [0x1800942f0]
cmp r8b, 0x23
jne 0x1800370c3
cmp byte [r9], r8b
jne 0x1800370c3
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 0x1800370b0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x180037220
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x18003723a
mov qword [r8], 0
lea rdx, [0x180093f14]
call fcn.1800370f0
mov rbx, rax
test rax, rax
jne 0x18003725a
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 0x180037333
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180037333
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180037333
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 0x180037333
cmp rdi, 0xffffffffffffffff
je 0x180037333
mov rax, qword [0x1800ee728]
test rax, rax
je 0x1800372d0
inc dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x180037333
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 0x180037320
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1800ee728]
test rax, rax
je 0x180037315
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x18003733c
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x18003732e
mov qword [r14], rdi
mov rax, rsi
jmp 0x18003733e
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 0x180039620
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0xd8]
lea r8, [0x1800942f0]
movsxd rcx, dword [rcx + 0xd0]
mov r11d, edx
shr r11d, 0x18
mov r9d, edx
shr r9d, 8
mov r10d, edx
shr r10d, 0x10
mov ebx, dword [rax + rcx*4 - 4]
not ebx
movzx eax, dl
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r9b
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r10b
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, r11
shr ebx, 8
xor ebx, dword [r8 + rcx*4]
mov rcx, qword [0x1800ee728]
not ebx
cmp dword [rcx + 0x3ec4], ebx
jne 0x1800396b5
movsxd r8, edx
mov ecx, ebx
mov edx, 4
call fcn.18004ada0
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x18003e320
Capabilities:
Hash data with crc32

Disassembly:
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x18003e370
lea r11, [0x1800942f0]
nop dword [rax]
cmp r9b, 0x23
jne 0x18003e353
cmp byte [r8], r9b
jne 0x18003e353
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x18003e340
mov rcx, qword [0x1800ee728]
not eax
movsxd rdx, dword [rcx + 0x3e70]
mov r9, qword [rcx + 0x3e78]
mov r10, rdx
shl r10, 4
add r10, r9
test rdx, rdx
je 0x18003e3d1
nop word [rax + rax]
mov r8, rdx
shr r8, 1
mov rcx, r8
add rcx, rcx
cmp dword [r9 + rcx*8], eax
jae 0x18003e3c9
lea r9, [r9 + rcx*8]
mov rcx, 0xffffffffffffffff
sub rcx, r8
add r9, 0x10
add rdx, rcx
jmp 0x18003e3cc
mov rdx, r8
test rdx, rdx
jne 0x18003e3a0
cmp r9, r10
je 0x18003e3e0
cmp dword [r9], eax
jne 0x18003e3e0
mov rax, qword [r9 + 8]
ret
xor eax, eax
ret

Function at 0x1800498b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x53e0], 0
lea rbx, [rcx + 0x53e8]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x180049957
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x18004990a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.18004be60
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.180037680
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x53e0]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x53f0]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x1800ee674]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x18004995f
mov rcx, rbx
call fcn.180037680
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x180049de0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x1800ee728]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x180049e43
mov qword [rsp], rbx
lea rbx, [0x1800942f0]
nop dword [rax]
cmp r9b, 0x23
jne 0x180049e23
cmp byte [r8], r9b
jne 0x180049e23
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x180049e10
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5390]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x180049e77
mov r10, qword [r10 + 0x5398]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x180049e7e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x180049e64
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x1800661e0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.180066430
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x1800662fa
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180066244
mov rax, qword [0x1800a8008]
cmp qword [rsp + 0x20], rax
ja 0x180066244
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180066206
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x180066275
jmp 0x1800662fa
cmp dword [rsp + 0x50], 0x10000
jne 0x1800662dd
cmp qword [rsp + 0x48], 0x10000
jb 0x1800662dd
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800662bb
mov rax, qword [rsp + 0x28]
jmp 0x1800662fc
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1800662cb
xor eax, eax
jmp 0x1800662fc
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1800662f5
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180066430
mov qword [rsp + 0x20], rax
jmp 0x180066206
xor eax, eax
add rsp, 0x68
ret

Function at 0x180066310
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.180066470
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180066426
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x18006636b
mov rax, qword [0x1800a8008]
cmp qword [rsp + 0x20], rax
ja 0x18006636b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18006632d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x18006639c
jmp 0x180066426
cmp dword [rsp + 0x50], 0x10000
jne 0x180066404
cmp qword [rsp + 0x48], 0x10000
jb 0x180066404
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800663e2
mov rax, qword [rsp + 0x28]
jmp 0x180066428
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1800663f2
xor eax, eax
jmp 0x180066428
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180066421
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180066470
mov qword [rsp + 0x20], rax
jmp 0x18006632d
xor eax, eax
add rsp, 0x68
ret
Function at 0x1800664c0
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180066a50
mov qword [rsp + 0x28], 0
cmp qword [0x1800ecfd8], 0
jne 0x180066508
cmp qword [0x1800ecfd0], 0
je 0x180066508
mov rax, qword [0x1800ecfd0]
mov qword [0x1800ecfd8], rax
cmp qword [0x1800ecfd8], 0
je 0x1800665ae
mov rax, qword [0x1800ecfd8]
cmp qword [rax + 0x10], 0
je 0x1800665ae
mov rax, qword [0x1800ecfd8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1800665ae
mov rax, qword [0x1800ecfd8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1800665ae
mov rax, qword [0x1800ecfd8]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x180066574
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x18006657b
xor eax, eax
jmp 0x180066729
mov rax, qword [0x1800ecfd8]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x180066729
mov rax, qword [0x1800ecfd0]
mov qword [0x1800ecfd8], rax
jmp 0x1800665d0
mov rax, qword [0x1800ecfd8]
mov rax, qword [rax + 8]
mov qword [0x1800ecfd8], rax
cmp qword [0x1800ecfd8], 0
je 0x18006661d
cmp qword [0x1800ecfd8], 0
je 0x18006661b
mov rax, qword [0x1800ecfd8]
cmp qword [rax + 0x10], 0
je 0x18006661b
mov rax, qword [0x1800ecfd8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18006661b
mov rax, qword [0x1800ecfd8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18006661b
jmp 0x18006654c
jmp 0x1800665be
mov rcx, qword [rsp + 0x60]
call fcn.1800686a0
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180066730
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180066727
mov rax, qword [rsp + 0x48]
mov qword [0x1800ecfd8], rax
mov rax, qword [0x1800ecfd8]
mov dword [rax], 0x52727464
mov rax, qword [0x1800ecfd8]
mov qword [rax + 0x10], 0
mov rax, qword [0x1800ecfd8]
mov rcx, qword [0x1800ecfd0]
mov qword [rax + 8], rcx
mov rax, qword [0x1800ecfd8]
mov qword [0x1800ecfd0], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x1800ecfd8]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x1800666d8
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180066712
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x1800666ce
mov rax, qword [0x1800ecfd8]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18006654c
xor eax, eax
add rsp, 0x58
ret
Function at 0x180067440
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180067487
xor al, al
jmp 0x180067529
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x1800674b1
xor al, al
jmp 0x180067529
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jb 0x180067521
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 0x8c]
add rax, rcx
cmp qword [rsp + 0x88], rax
jae 0x180067521
mov al, 1
jmp 0x180067529
jmp 0x180067527
xor al, al
add rsp, 0x78
ret

Function at 0x180067830
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1800ecfd0]
mov qword [rsp + 0x28], rax
jmp 0x180067850
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18006787f
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x18006787d
call sub.KERNEL32.dll_GetLastError
jmp 0x180067881
jmp 0x180067842
xor eax, eax
add rsp, 0x38
ret
Function at 0x180067f40
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1800ecfe8], eax
je 0x180067f5b
mov eax, 0x10dd
jmp 0x180068080
mov rax, qword [0x1800ed000]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180068005
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x180067fd0
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x180067fd0
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.180066b90
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x38]
call fcn.18006a364
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x180067f67
mov qword [0x1800ed000], 0
call fcn.1800675f0
mov rax, qword [0x1800ecff8]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x180068069
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x48]
call fcn.18006a364
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x180068021
mov qword [0x1800ecff8], 0
mov dword [0x1800ecfe8], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x1800685b0
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x1800ecfec], 0
je 0x1800685cd
mov eax, dword [0x1800ecfec]
jmp 0x180068693
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x1800685e0
xor eax, eax
jmp 0x180068693
mov ecx, 0x10
call fcn.180069fb0
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x18006864e
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x180068633
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.18006a364
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x1800ecfec], eax
mov qword [0x1800ecff0], 0
mov eax, dword [rsp + 0x20]
jmp 0x180068693
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x180068668
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x180068609
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x1800ecff8]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x1800ecff8], rax
xor eax, eax
add rsp, 0x48
ret

Function at 0x180069b50
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 0x180069b8a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x180069b8f
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 0x180069bd8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x18006f9d0]
cmp byte [rcx + rax], 0
je 0x180069bd8
dec r8
sub rdx, 1
jne 0x180069bbe
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x180004340
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, 0xffffffff
test edx, edx
je 0x18000437e
mov r9d, edx
lea r10, [0x18016d260]
nop dword [rax]
nop word [rax + rax]
movzx r8d, word [rcx]
lea rcx, [rcx + 2]
mov edx, eax
shr eax, 8
xor r8, rdx
movzx edx, r8b
xor eax, dword [r10 + rdx*4]
sub r9, 1
jne 0x180004360
not eax
ret
Function at 0x180009f00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test rcx, rcx
je 0x180009f60
mov r8, qword [rcx]
test r8, r8
je 0x180009f60
mov r8, qword [r8 + 0x10]
mov eax, 0xffffffff
mov rcx, 0xffffffffffffffff
nop dword [rax]
inc rcx
cmp byte [r8 + rcx], 0
jne 0x180009f20
test ecx, ecx
je 0x180009f5d
mov r9d, ecx
lea r10, [0x18016d260]
nop dword [rax + rax]
movsx edx, byte [r8]
lea r8, [r8 + 1]
mov ecx, eax
shr eax, 8
xor rdx, rcx
movzx ecx, dl
xor eax, dword [r10 + rcx*4]
sub r9, 1
jne 0x180009f40
not eax
ret
xor eax, eax
ret

Function at 0x18000a7c0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x18
test rcx, rcx
jne 0x18000a7cd
xor eax, eax
jmp 0x18000a846
mov r9, qword [rcx]
test r9, r9
jne 0x18000a7d9
xor eax, eax
jmp 0x18000a846
mov r9, qword [r9 + 0x10]
test r9, r9
jne 0x18000a7e6
xor eax, eax
jmp 0x18000a846
mov r10, r9
mov qword [rsp + 8], r9
xor edx, edx
mov r8d, 0xffffffff
lea r11, [0x18016d260]
mov dword [rsp], edx
mov ecx, r8d
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp byte [r9 + rax], 0
jne 0x18000a810
cmp edx, eax
jae 0x18000a83c
movsx eax, byte [r10]
xor rax, rcx
movzx ecx, al
shr r8d, 8
xor r8d, dword [r11 + rcx*4]
inc r10
mov qword [rsp + 8], r10
inc edx
jmp 0x18000a7fd
not r8d
mov eax, r8d
jmp 0x18000a846
add rsp, 0x18
ret

Function at 0x18000ad50
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [0x1801a036d], 0
mov rbx, rcx
je 0x18000adc1
mov ecx, dword [0x1801a0448]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x18000adc1
cmp dword [0x1801a0388], 1
jne 0x18000adc1
lea rcx, [rbx + 0xb0]
cmp rcx, 0x40000
jbe 0x18000adc1
lea rax, [rcx + 8]
movabs rdx, 0x7fffffff0000
cmp rax, rdx
jae 0x18000adc1
mov rcx, qword [rcx]
add rcx, 0x214
cmp rcx, 0x40000
jbe 0x18000adc1
lea rax, [rcx + 4]
cmp rax, rdx
jae 0x18000adc1
mov dword [rcx], 0x3c23d70a
add rsp, 0x20
pop rbx
ret
Function at 0x1800161e0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub rsp, 0x28
cmp byte [0x1801a029c], 0
jne 0x180016240
lea rcx, [rsp + 0x30]
mov byte [0x1801a029c], 1
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x38], 0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xorps xmm0, xmm0
xorps xmm1, xmm1
cvtsi2ss xmm0, qword [rsp + 0x38]
cvtsi2ss xmm1, qword [rsp + 0x30]
movss dword [0x1801a04a0], xmm0
movss dword [0x1801a02ec], xmm1
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [rsp + 0x30]
subss xmm0, dword [0x1801a02ec]
divss xmm0, dword [0x1801a04a0]
add rsp, 0x28
ret

Function at 0x1800179d0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x70
call fcn.18000bbf0
mov rcx, rax
call fcn.18000bb00
mov rbx, rax
test rax, rax
je 0x180017be8
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.18000aba0
cmp dword [rsp + 0x20], 0
je 0x180017be8
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x180017be8
cmp eax, 0xfffffffe
jne 0x180017aac
mov rcx, rbx
call fcn.18000add0
cmp byte [0x1801a0358], 0
je 0x180017be8
add rbx, 0xb0
cmp rbx, 0x40000
jbe 0x180017be8
lea rax, [rbx + 8]
movabs rcx, 0x7fffffff0000
cmp rax, rcx
jae 0x180017be8
mov rdx, qword [rbx]
mov r8, rdx
lea r9, [rdx + 0x3a8]
cmp r9, 0x40000
jbe 0x180017a7f
lea rax, [r9 + 1]
cmp rax, rcx
jae 0x180017a7f
mov byte [r9], 1
lea rdx, [r8 + 0x3ac]
cmp rdx, 0x40000
jbe 0x180017be8
lea rax, [rdx + 4]
cmp rax, rcx
jae 0x180017be8
mov dword [rdx], 0x3f800000
add rsp, 0x70
pop rbx
ret
cmp eax, 3
jne 0x180017b14
mov rcx, rbx
call fcn.18000add0
cmp byte [0x1801a035d], 0
je 0x180017b07
lea rdx, [rbx + 0xb0]
cmp rdx, 0x40000
jbe 0x180017b07
lea rax, [rdx + 8]
movabs rcx, 0x7fffffff0000
cmp rax, rcx
jae 0x180017b07
mov rdx, qword [rdx]
add rdx, 0x214
cmp rdx, 0x40000
jbe 0x180017b07
lea rax, [rdx + 4]
cmp rax, rcx
jae 0x180017b07
mov dword [rdx], 0x3c23d70a
mov rcx, rbx
add rsp, 0x70
pop rbx
jmp fcn.18000ad50
cmp eax, 2
jne 0x180017b6d
mov rcx, rbx
call fcn.18000add0
mov rcx, rbx
call fcn.18000ad50
cmp byte [0x1801a0353], 0
je 0x180017be8
add rbx, 0xb0
cmp rbx, 0x40000
jbe 0x180017be8
lea rax, [rbx + 8]
movabs rcx, 0x7fffffff0000
cmp rax, rcx
jae 0x180017be8
mov rdx, qword [rbx]
add rdx, 0x2a8
jmp 0x180017bd3
cmp eax, 0xffffffff
jne 0x180017be8
mov rcx, rbx
call fcn.18000add0
cmp byte [0x1801a0365], 0
je 0x180017be8
add rbx, 0xb0
cmp rbx, 0x40000
jbe 0x180017be8
lea rax, [rbx + 8]
movabs rcx, 0x7fffffff0000
cmp rax, rcx
jae 0x180017be8
mov rdx, qword [rbx]
mov r8, rdx
lea r9, [rdx + 0x3a8]
cmp r9, 0x40000
jbe 0x180017bcc
lea rax, [r9 + 4]
cmp rax, rcx
jae 0x180017bcc
mov dword [r9], 0x3f800000
lea rdx, [r8 + 0x3b8]
cmp rdx, 0x40000
jbe 0x180017be8
lea rax, [rdx + 1]
cmp rax, rcx
jae 0x180017be8
mov byte [rdx], 1
add rsp, 0x70
pop rbx
ret
Function at 0x18001bbc0
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, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x18001bc38
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x18001bc38
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x18001bc25
nop
cmp rbx, rcx
jae 0x18001bc38
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x18001bc10
cmp rbx, rcx
jae 0x18001bc38
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
jmp 0x18001bc3a
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret