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

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x18000fdaa
mov qword [r8], 0
lea rdx, [0x18004c8fc]
call fcn.18000fc60
mov rbx, rax
test rax, rax
jne 0x18000fdca
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 0x18000fea3
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 0x18000fea3
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x18000fea3
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 0x18000fea3
cmp rdi, 0xffffffffffffffff
je 0x18000fea3
mov rax, qword [0x180055a60]
test rax, rax
je 0x18000fe40
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 0x18000fea3
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 0x18000fe90
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x180055a60]
test rax, rax
je 0x18000fe85
dec dword [rax + 0x3b4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x18000feac
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x18000fe9e
mov qword [r14], rdi
mov rax, rsi
jmp 0x18000feae
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 0x180016400
Capabilities:
Hash data with crc32

Disassembly:
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x180016450
lea r11, [0x1800487f0]
nop dword [rax]
cmp r9b, 0x23
jne 0x180016433
cmp byte [r8], r9b
jne 0x180016433
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 0x180016420
mov rcx, qword [0x180055a60]
not eax
movsxd rdx, dword [rcx + 0x1bf0]
mov r9, qword [rcx + 0x1bf8]
mov r10, rdx
shl r10, 4
add r10, r9
test rdx, rdx
je 0x1800164b1
nop word [rax + rax]
mov r8, rdx
shr r8, 1
mov rcx, r8
add rcx, rcx
cmp dword [r9 + rcx*8], eax
jae 0x1800164a9
lea r9, [r9 + rcx*8]
mov rcx, 0xffffffffffffffff
sub rcx, r8
add r9, 0x10
add rdx, rcx
jmp 0x1800164ac
mov rdx, r8
test rdx, rdx
jne 0x180016480
cmp r9, r10
je 0x1800164c0
cmp dword [r9], eax
jne 0x1800164c0
mov rax, qword [r9 + 8]
ret
xor eax, eax
ret
Function at 0x180020700
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 + 0x30c8], 0
lea rbx, [rcx + 0x30d0]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x1800207a7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x18002075a
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.180022750
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.180010380
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x30c8]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x30d8]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x180055a2a]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x1800207af
mov rcx, rbx
call fcn.180010380
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1800337f0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x180055040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rcx, qword [0x180055cc8]
lea rdx, [rsp + 0x28]
mov rdi, qword [0x180055a60]
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 [0x180055cd0]
cvtsi2ss xmm0, qword [0x180055cd8]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x18], xmm1
mov qword [0x180055cd0], 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 [0x180055a60]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x143], 0
mov byte [rdi + 0x142], al
cmp byte [rbx + 0x39b], 0
je 0x18003392f
cvttss2si eax, dword [rbx + 0x128]
mov rcx, qword [0x180055cc8]
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 0x18003392f
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 0x1800339ae
mov rdx, qword [0x180055cc8]
cmp rax, rdx
je 0x180033967
mov rcx, rax
call qword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x1800339ae
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x1800339ae
mov rcx, qword [0x180055cc8]
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x1800339ae
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 0x1800339be
mov eax, 0xffffffff
jmp 0x1800339cb
mov rax, qword [0x180055a60]
mov eax, dword [rax + 0x1f48]
cmp dword [0x180055328], eax
je 0x1800339de
mov dword [0x180055328], eax
call fcn.1800333a0
call fcn.180033520
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800462c0
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x18003fd00
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x28
test dword [rcx + 0x10], 0x100000
mov r10, rdx
je 0x18003fd8b
movzx r9d, byte [rdx]
lea r8, [rdx + 1]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x18003fd60
lea r10, [0x1800487f0]
nop dword [rax]
cmp r9b, 0x23
jne 0x18003fd43
cmp byte [r8], r9b
jne 0x18003fd43
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 [r10 + rdx*4]
test r9b, r9b
jne 0x18003fd30
mov rcx, qword [0x180055a60]
not eax
cmp dword [rcx + 0x1c5c], eax
jne 0x18003fd77
mov dword [rcx + 0x1c60], eax
cmp dword [rcx + 0x1c98], eax
jne 0x18003fddd
mov byte [rcx + 0x1c9c], 1
add rsp, 0x28
ret
mov qword [rsp + 0x20], rbx
xor edx, edx
mov rbx, qword [0x180055a60]
mov rcx, r10
mov r8, qword [rbx + 0x1c10]
movsxd rax, dword [r8 + 0xc8]
mov r8, qword [r8 + 0xd0]
mov r8d, dword [r8 + rax*4 - 4]
call fcn.18000fbb0
cmp dword [rbx + 0x1c5c], eax
jne 0x18003fdc9
mov dword [rbx + 0x1c60], eax
cmp dword [rbx + 0x1c98], eax
jne 0x18003fdd8
mov byte [rbx + 0x1c9c], 1
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
Function at 0x1402152cc
Capabilities:
Execute anti-debugging instructions

Disassembly:
movabs rbp, 0x111b8d540
jmp 0x140214ae3
movabs r14, 0x140201118
jmp 0x140214b6d
lea rsp, [rsp + 2]
jmp 0x140214ca6
jmp 0x140214c35
lea r8, [r8*8]
xchg rdx, r13
mov r12b, r15b
rdtsc
jmp 0x1402149d4
bswap r8d
mov edi, dword [rsp]
jmp 0x140214ad7
lea rbp, [rbx*8]
mov rdi, rbp
mov al, 0x25
pushfq
jmp 0x140214a2f
mov r13w, sp
xchg r13d, ebp
not r11b
rdtsc
inc r10b
jmp 0x1402149e9
jg 0x1402149be
lea rbp, [rbx*8]
mov rdi, rbp
jmp 0x140214a49
lea rbx, [rbx + r13]
bswap ebp
jmp 0x140214a4e
rol r11b, 0
rdtsc
neg r8
jge 0x140214a19
fistp qword [rax + rbp + 0x1d]
cwde
invalid
jl 0x140214a64
sbb eax, 0x98690e98
jge 0x140214a39
or al, 0xff
cmp dword [rax + rsi*4 + 0x25], esp
mov al, 0x25
pushfq
jmp 0x140214a2f
mov rdi, r11
xchg r13, r12
mov bpl, cl
xchg r13w, ax
bswap r13
jmp 0x140214aac
lea rbx, [rbx + r13]
bswap ebp
jmp 0x140214a4e
mov bx, 0x42aa
jmp 0x140214af9
shl rdi, 2
stc
jbe 0x140214a96
mov bx, 0x42aa
push rdx
pushfq
jmp 0x140213d8e
dec r11b
lea rdx, [rax + r9]
jmp 0x14021496a
mov ebx, dword [rsp]
jmp 0x140214ba8
push rdx
pushfq
jmp 0x140213d8e
setle bl
mov rax, rsi
shr bp, 5
jmp 0x140213dd1
mov al, r11b
lea r10, [rsp + r9]
call fcn.140214b16
mov edi, dword [rdi + riz + reloc.IPHLPAPI.DLL_GetInterfaceInfo]
rol eax, 0x19
jp 0x140214b24
setle bl
jmp 0x140214b83
lea r12, [rbx + riz - 0x2cfc]
mov r13d, eax
call fcn.140214b8f
cmpsb byte [rsi], byte [rdi]
rcl dword [rax - 0x2d]
in eax, 0x48
mov eax, esi
mov rax, rsi
shr bp, 5
jmp 0x140213dd1
add rdi, rbp
jg 0x140214b3d
mov al, r11b
lea r10, [rsp + r9]
jmp 0x140214b44
mov r14b, dil
mov r10, qword [rsp]
bswap r12
call fcn.140214a7e
lea rsp, [rsp + 0x18]
not r11b
mov r14, r12
bsr ax, sp
jg 0x140214906
mov r14b, dil
mov r10, qword [rsp]
bswap r12
jmp 0x140214980
pop word [rsp + 1]
mov dword [rsp], r13d
lea rsp, [rsp + 3]
call fcn.1402152a2
xchg dword [rdx + rax*4], ecx
in eax, 0x14
rcr byte [rcx], cl
js 0x140215343
mov dl, 0x66
push qword [rsp + 5]
jns 0x1402148fc
lea rsp, [rsp + 2]
jmp 0x140214ca6
scasb al, byte [rdi]
or dword [rsi + reloc.IPHLPAPI.DLL_GetInterfaceInfo], eax
mov bh, 0x9e
jmp 0x16caa9b59

Function at 0x140215e29
Capabilities:
Execute anti-debugging instructions

Disassembly:
pushfq
lea rsp, [rsp + 4]
xchg qword [rsp + 0x28], rdi
call fcn.140215cfd
Function at 0x140350541
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
call fcn.140350006
mov rax, qword [rax + riz]
mov rax, qword [rax + riz + 0x10]
push rax
jmp 0x140350001
mov rax, qword gs:[0x60]
mov rax, qword [rax + riz + 0x18]
mov rax, qword [rax + riz + 0x30]
jmp 0x14035042f
lea rsp, [rsp + 1]
lea rsp, [rsp + 0x18]
jmp 0x140350460
Function at 0x141017108
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14101728f
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 0x141017139
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14101711f
add dl, dl
jne 0x141017146
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410171a6
xor eax, eax
add dl, dl
jne 0x141017155
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14101725d
add dl, dl
jne 0x141017166
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141017173
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141017180
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14101718d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14101719a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14101712e
mov eax, 1
add dl, dl
jne 0x1410171b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410171c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410171ab
sub eax, ebx
mov ebx, 1
jne 0x1410171fc
mov ecx, 1
add dl, dl
jne 0x1410171de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1410171eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410171d3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14101712e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141017218
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141017225
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14101720d
cmp eax, 0x7d00
jae 0x14101724b
cmp eax, 0x500
jb 0x141017246
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14101712e
cmp eax, 0x7f
ja 0x14101724e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14101712e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141017282
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 0x14101712e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001030
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0xa8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0x88], rcx
mov rax, qword [section..rdata]
mov qword [rsp + 0x91], rax
mov eax, dword [0x14000f008]
mov dword [rsp + 0x99], eax
mov ax, word [0x14000f00c]
mov word [rsp + 0x9d], ax
mov al, byte [0x14000f00e]
mov byte [rsp + 0x9f], al
mov dword [rsp + 0x84], 0
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x78]
add eax, dword [rcx + 0x3c]
mov eax, eax
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
add rax, 0x18
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x68]
add eax, dword [rcx + 0x70]
mov eax, eax
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x60]
add eax, dword [rcx + 0x1c]
mov eax, eax
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x60]
add eax, dword [rcx + 0x24]
mov eax, eax
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x60]
add eax, dword [rcx + 0x20]
mov eax, eax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x91]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x60]
cmp eax, dword [rcx + 0x18]
jae 0x14000122c
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
mov edx, dword [rsp + 0x34]
add eax, dword [rcx + rdx*4]
mov eax, eax
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
xor eax, eax
cmp byte [rcx], 0
mov byte [rsp + 0x33], al
je 0x14000119a
mov rax, qword [rsp + 0x40]
movsx eax, byte [rax]
mov rcx, qword [rsp + 0x38]
movsx ecx, byte [rcx]
cmp eax, ecx
sete al
mov byte [rsp + 0x33], al
mov al, byte [rsp + 0x33]
test al, 1
jne 0x1400011ab
jmp 0x1400011cc
mov rax, qword [rsp + 0x40]
add rax, 1
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
add rax, 1
mov qword [rsp + 0x38], rax
jmp 0x14000116d
mov rax, qword [rsp + 0x40]
movsx eax, byte [rax]
mov rcx, qword [rsp + 0x38]
movsx ecx, byte [rcx]
cmp eax, ecx
jne 0x14000120f
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
mov r8d, dword [rsp + 0x34]
movzx edx, word [rdx + r8*2]
add eax, dword [rcx + rdx*4]
mov dword [rsp + 0x84], eax
jmp 0x14000122c
lea rax, [rsp + 0x91]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x34]
add eax, 1
mov dword [rsp + 0x34], eax
jmp 0x140001140
mov eax, dword [rsp + 0x84]
mov dword [rsp + 0x2c], eax
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400013b0
mov eax, dword [rsp + 0x2c]
add rsp, 0xa8
ret

Function at 0x140001c4c
Capabilities:
Parse pe header

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

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

Function at 0x1400038f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140003918
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140003918
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400010b0
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140049040]
xor rax, rsp
mov qword [rsp + 0x38], rax
movzx eax, byte [rcx + 9]
mov rbx, rcx
test al, al
jne 0x140001111
mov eax, 1
mov dword [rsp + 0x28], 8
xchg byte [rcx + 9], al
lea rax, [rcx + 0x10]
mov r9d, 0xb
mov rcx, qword [rcx]
lea rdx, str.InitialBootCount
mov qword [rsp + 0x30], rax
xor r8d, r8d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor eax, eax
xchg byte [rbx + 9], al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14003b0a0
add rsp, 0x40
pop rbx
ret
Function at 0x1400054d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rdi
cmp dword [0x14006f8f4], 0
lea rdi, [0x14006f8f0]
mov r11d, r8d
mov r9d, edx
mov r10, rcx
jne 0x1400055a8
mov qword [rsp + 0x10], rbx
xor edx, edx
mov rbx, rdi
nop dword [rax]
mov r8d, edx
lea rbx, [rbx + 4]
and r8d, 1
mov eax, edx
shr eax, 1
neg r8d
and r8d, 0xedb88320
inc edx
xor r8d, eax
mov eax, r8d
shr r8d, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, r8d
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [rbx - 4], eax
cmp edx, 0x100
jb 0x140005500
mov rbx, qword [rsp + 0x10]
not r11d
mov eax, r11d
test r9d, r9d
jle 0x1400055de
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r10]
lea r10, [r10 + 1]
movzx edx, al
xor rdx, rcx
shr eax, 8
xor eax, dword [rdi + rdx*4]
sub r9d, 1
jne 0x1400055c0
not eax
pop rdi
ret
movzx r9d, byte [r10]
lea r8, [r10 + 1]
test r9b, r9b
je 0x14000561f
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x140005603
cmp byte [r8], r9b
jne 0x140005603
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 [rdi + rdx*4]
test r9b, r9b
jne 0x1400055f0
not eax
pop rdi
ret
Function at 0x140005820
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
test r8, r8
je 0x140005839
mov qword [r8], 0
lea rdx, [0x14003da48]
call fcn.140005630
mov rbx, rax
test rax, rax
jne 0x140005858
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbp
xor edx, edx
mov r8d, 2
mov qword [rsp + 0x38], rsi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000591a
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x14000591a
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000591a
mov rax, qword [0x14006f7b0]
mov rbp, rsi
test rax, rax
je 0x1400058b7
inc dword [rax + 0x3c8]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x14000591a
mov r9, rbx
mov r8, rbp
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, rbp
je 0x140005907
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14006f7b0]
test rax, rax
je 0x1400058fc
dec dword [rax + 0x3c8]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140005923
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rdi, rdi
je 0x140005915
mov qword [rdi], rbp
mov rax, rsi
jmp 0x140005925
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140015dc0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push r15
sub rsp, 0x20
mov rdi, qword [0x14006f7b0]
xor esi, esi
mov r15, rcx
mov dword [rdi + 0x2d9c], esi
test rcx, rcx
je 0x140015eda
mov qword [rsp + 0x40], rbx
lea rbx, [rdi + 0x2da0]
mov dword [rdi + 0x2d9c], esi
mov ecx, dword [rbx + 4]
mov qword [rsp + 0x48], rbp
test ecx, ecx
jns 0x140015e1a
mov eax, ecx
cdq
sub eax, edx
mov edx, esi
sar eax, 1
add eax, ecx
mov rcx, rbx
test eax, eax
cmovg edx, eax
call fcn.140016ed0
mov dword [rbx], esi
cmp dword [rbx + 4], esi
jne 0x140015e2e
mov edx, 8
mov rcx, rbx
call fcn.140016ed0
movsxd rcx, dword [rbx]
mov ebp, esi
mov rax, qword [rbx + 8]
mov byte [rcx + rax], sil
inc dword [rbx]
cmp dword [rdi + 0x2db0], esi
jle 0x140015e7a
mov qword [rsp + 0x50], r14
mov r14, rsi
nop dword [rax]
mov r9, qword [rdi + 0x2db8]
mov r8, rbx
add r9, r14
mov rcx, rdi
mov rdx, r9
call qword [r9 + 0x20]
inc ebp
add r14, 0x30
cmp ebp, dword [rdi + 0x2db0]
jl 0x140015e50
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
cmp qword [rbx + 8], rsi
je 0x140015e89
mov esi, dword [rbx]
dec esi
mov rax, qword [rdi + 0x2da8]
lea rdx, [0x14003da4c]
test rax, rax
movsxd rsi, esi
lea rdi, [0x14006f7a3]
mov rcx, r15
cmovne rdi, rax
call fcn.140005630
mov rbx, rax
test rax, rax
je 0x140015ed5
mov r9, rax
mov r8, rsi
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret