joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002f40
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 0x140002f9d
lea rbx, [0x140048010]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140002f84
cmp r10, 2
jb 0x140002f84
cmp byte [r9], r8b
jne 0x140002f84
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 0x140002f60
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x140002fdf
lea rbx, [0x140048010]
cmp r8b, 0x23
jne 0x140002fc3
cmp byte [r9], r8b
jne 0x140002fc3
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 0x140002fb0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140003120
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x14000313a
mov qword [r8], 0
lea rdx, [0x140047c94]
call fcn.140002ff0
mov rbx, rax
test rax, rax
jne 0x14000315a
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 0x140003231
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 0x140003231
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140003231
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 0x140003231
cmp rdi, 0xffffffffffffffff
je 0x140003231
mov rax, qword [0x1400557c0]
test rax, rax
je 0x1400031ce
inc dword [rax + 0xec]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140003231
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 0x14000321e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1400557c0]
test rax, rax
je 0x140003213
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000323a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x14000322c
mov qword [r14], rdi
mov rax, rsi
jmp 0x14000323c
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 0x140005ec0
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xd0]
mov rax, qword [rcx + 0xd8]
movsxd r9, edx
mov ebx, dword [rax + r8*4 - 4]
lea r8, [0x140048010]
not ebx
movzx eax, r9b
movzx ecx, bl
xor rcx, rax
shr ebx, 8
mov eax, r9d
shr eax, 8
movzx edx, al
mov eax, r9d
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r9d
shr rdx, 0x18
xor rdx, rcx
mov rcx, qword [0x1400557c0]
xor ebx, dword [r8 + rdx*4]
not ebx
cmp dword [rcx + 0x3edc], ebx
jne 0x140005f56
mov r8, r9
mov edx, 4
mov ecx, ebx
call fcn.140018430
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x140011c60
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140055010]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x1400557c0]
mov edi, ecx
cmp byte [rbx + 0x424d], 0
jne 0x140011cc1
cmp byte [rbx + 0x424e], 0
jne 0x140011cc1
movsx r9d, word [rbx + 0x5332]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140002e00
test dil, 1
je 0x140011de8
jmp 0x140011d4a
movss xmm1, dword [rbx + 0x38b0]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x5332]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x14004d22c]
mulss xmm1, dword [0x14004d220]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0xd94]
addss xmm1, dword [rbx + 0xd98]
mov qword [rbx + 0x3fc8], rax
mov dword [rbx + 0x3fb4], 1
movss dword [rbx + 0x3fc0], xmm0
movss dword [rbx + 0x3fc4], xmm1
movss xmm0, dword [rbx + 0x390c]
mulss xmm0, dword [0x14004d134]
or dword [rbx + 0x3fb0], 0x41
movss dword [rbx + 0x4010], xmm0
call fcn.140002e00
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x140011da0
lea r11, [0x140048010]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x140011d83
cmp byte [r8], r9b
jne 0x140011d83
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 0x140011d70
not ecx
call fcn.14000ae40
test rax, rax
je 0x140011de8
cmp byte [rax + 0x96], 0
je 0x140011de8
mov byte [rax + 0x9d], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xb8], 1
lea rcx, [rsp + 0x20]
inc word [rbx + 0x5332]
mov edx, 0x10
movsx r9d, word [rbx + 0x5332]
call fcn.140002e00
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.14000d580
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400444e0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140016fa0
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 0x140017047
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x140016ffa
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.140019060
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.1400037b0
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, [0x1400557b8]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14001704f
mov rcx, rbx
call fcn.1400037b0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400175c0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x1400557c0]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x140017623
mov qword [rsp], rbx
lea rbx, [0x140048010]
nop dword [rax]
cmp r9b, 0x23
jne 0x140017603
cmp byte [r8], r9b
jne 0x140017603
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 0x1400175f0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5390]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x140017657
mov r10, qword [r10 + 0x5398]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x14001765e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x140017644
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 0x140039410
Capabilities:
Hash data with crc32

Disassembly:
push rdi
sub rsp, 0x20
test dword [rcx + 0x10], 0x100000
mov rdi, rdx
je 0x14003949c
movzx r9d, byte [rdx]
lea r8, [rdx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x140039470
lea r11, [0x140048010]
nop
cmp r9b, 0x23
jne 0x140039453
cmp byte [r8], r9b
jne 0x140039453
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 0x140039440
mov rcx, qword [0x1400557c0]
not eax
cmp dword [rcx + 0x3ef4], eax
jne 0x140039487
mov dword [rcx + 0x3ef8], eax
cmp dword [rcx + 0x3f20], eax
jne 0x1400394f6
mov byte [rcx + 0x3f24], 1
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbx
xor edx, edx
mov rbx, qword [0x1400557c0]
mov qword [rsp + 0x38], rsi
mov rax, qword [rbx + 0x3ea8]
movsxd rcx, dword [rax + 0xd0]
mov rax, qword [rax + 0xd8]
mov r8d, dword [rax + rcx*4 - 4]
mov rcx, rdi
call fcn.140002f40
cmp dword [rbx + 0x3edc], eax
mov esi, eax
mov rbx, qword [rsp + 0x30]
jne 0x1400394ef
mov r8, rdi
mov edx, 0xb
mov ecx, eax
call fcn.140018430
mov eax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14003ee30
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x140055010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov r8d, dword [0x1400557e0]
xor edx, edx
mov ecx, 0x1fffff
xor edi, edi
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x14003eed2
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x14003eec9
mov eax, dword [rsp + 0x20]
test eax, eax
je 0x14003eec9
mov edx, eax
mov qword [rsp + 0x40], rbx
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x14003eec4
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x14003eebb
mov rdi, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, qword [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400444e0
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140044f50
Capabilities:
Parse pe header

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

Disassembly:
call fcn.141b441df
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 0x141b44089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141b4406f
add dl, dl
jne 0x141b44096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141b440f6
xor eax, eax
add dl, dl
jne 0x141b440a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141b441ad
add dl, dl
jne 0x141b440b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b440c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b440d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b440dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141b440ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141b4407e
mov eax, 1
add dl, dl
jne 0x141b44106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b44113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141b440fb
sub eax, ebx
mov ebx, 1
jne 0x141b4414c
mov ecx, 1
add dl, dl
jne 0x141b4412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141b4413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141b44123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141b4407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141b44168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141b44175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141b4415d
cmp eax, 0x7d00
jae 0x141b4419b
cmp eax, 0x500
jb 0x141b44196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141b4407e
cmp eax, 0x7f
ja 0x141b4419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141b4407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141b441d2
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 0x141b4407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140614058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406141df
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 0x140614089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14061406f
add dl, dl
jne 0x140614096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406140f6
xor eax, eax
add dl, dl
jne 0x1406140a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406141ad
add dl, dl
jne 0x1406140b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406140c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406140d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406140dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406140ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14061407e
mov eax, 1
add dl, dl
jne 0x140614106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140614113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406140fb
sub eax, ebx
mov ebx, 1
jne 0x14061414c
mov ecx, 1
add dl, dl
jne 0x14061412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14061413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140614123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14061407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140614168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140614175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14061415d
cmp eax, 0x7d00
jae 0x14061419b
cmp eax, 0x500
jb 0x140614196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14061407e
cmp eax, 0x7f
ja 0x14061419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14061407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406141d2
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 0x14061407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14180fa70
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14180fa7d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14180fa8d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14180fa75
lea eax, [rcx + 1]
jmp 0x14180fa9b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14180faae
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14180fa94
sub eax, 3
jb 0x14180face
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14180fb1d
sar eax, 1
movsxd rbp, eax
jb 0x14180fb04
jmp 0x14180fadc
add ebx, ebx
jne 0x14180fada
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14180fb04
inc ecx
add ebx, ebx
jne 0x14180faea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14180fb04
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14180fafd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14180faec
add ecx, 2
jmp 0x14180fb09
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14180fa32
jmp 0x14180fa7d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x36600
mov dl, 0x12
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14180fb69
cmp rsi, rcx
jae 0x14180fb71
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14180fb50
cmp al, 0x8f
ja 0x14180fb50
cmp byte [rsi - 2], 0xf
je 0x14180fb56
sub al, 0xe8
cmp al, 1
ja 0x14180fb3a
cmp rsi, rcx
jae 0x14180fb71
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14180fb40
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14180fb71
lodsb al, byte [rsi]
jmp 0x14180fb50
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x180d000]
mov eax, dword [rdi]
or eax, eax
je 0x14180fbda
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x181763c]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14180fb7e
jns 0x14180fbb3
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14180fbbd
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14180fbd4
mov qword [rbx], rax
add rbx, 8
jmp 0x14180fb9e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14180fc14
cmp al, 0xef
ja 0x14180fc06
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14180fbe6
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14180fbf5
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x267]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14180fc68
sub rsp, 0xffffffffffffff80
jmp 0x140029c10
Function at 0x140420800
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
push rbp
push rax
push rcx
push rdx
lea rcx, section.UPX1
mov rdx, rcx
mov rsi, 0x10
mov al, byte [rdx]
xor al, 0x3c
mov byte [rdx], al
inc rdx
mov al, byte [rdx]
xor al, 0xe8
mov byte [rdx], al
inc rdx
dec rsi
jne 0x140420818
mov rsi, rcx
lea rdx, [rcx - 0x37d000]
mov rdi, rdx
pop rdx
pop rcx
pop rax
lea rax, [rdi + 0x401874]
push qword [rax]
mov dword [rax], 0x6e74baa6
push rax
push rdi
xor ebx, ebx
xor ecx, ecx
or rbp, 0xffffffffffffffff
jmp loc.140422000
Function at 0x2fc4c93a0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4c9da2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4ee108]
test eax, eax
je 0x2fc4c9e3a
lea rax, [0x2fc4ee0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4ee110]
mov qword [rbp - 8], rax
jmp 0x2fc4c9e1e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4c9e12
cmp qword [rbp - 0x10], 0
je 0x2fc4c9e12
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4c9dd8
lea rax, [0x2fc4ee0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4c9e3b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4c9f40
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4c9f68
mov eax, 0
jmp 0x2fc4c9fb6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4c9f91
mov eax, 0
jmp 0x2fc4c9fb6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4c9fb1
mov eax, 0
jmp 0x2fc4c9fb6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4c9fbc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4ca03a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4ca031
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4ca031
mov rax, qword [rbp - 8]
jmp 0x2fc4ca04f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4ca004
mov eax, 0
add rsp, 0x20
pop rbp
ret