joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140056d40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x50
mov rax, qword [rcx + 8]
mov ebp, r8d
mov ecx, 0x3e80000
mov rbx, qword [rax + 0x2f0]
mov rax, qword [rdx + 0x80]
movzx edx, word [rdx + 0x68]
movzx edi, word [rax + 0x18]
mov eax, 0x40000
shl edi, 0x10
cmp edi, eax
cmovl edi, eax
shl edx, 0x10
call fcn.1400459d0
mov dword [rsp + 0x24], eax
mov ecx, eax
cmp eax, 0x28f
jge 0x140056d96
xor eax, eax
add rsp, 0x50
pop rdi
pop rbp
pop rbx
ret
mov eax, dword [rbx + 0x24]
mov qword [rsp + 0x80], rsi
mov esi, dword [rbx + 0x28]
mov qword [rsp + 0x48], r12
mov r12d, dword [rbx + 0x3c]
mov qword [rsp + 0x40], r13
mov r13d, dword [rbx + 0x38]
mov dword [rsp + 0x88], eax
mov eax, dword [rbx + 0x2c]
mov qword [rsp + 0x38], r14
mov r14d, dword [rbx + 0x40]
mov dword [rsp + 0x70], eax
mov eax, dword [rbx + 0x34]
mov qword [rsp + 0x30], r15
mov r15d, dword [rbx + 0x30]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x20], r12d
test ebp, ebp
jg 0x140056ded
mov ebp, 0x4b0000
jmp 0x140056dfb
shl ebp, 0x10
mov edx, ecx
mov ecx, ebp
call fcn.140047fb0
mov ebp, eax
bsr ecx, ebp
bsr eax, edi
shl r12d, 0x10
add eax, ecx
cmp eax, 0x2e
jl 0x140056e11
mov eax, r12d
jmp 0x140056e1a
mov edx, edi
mov ecx, ebp
call fcn.140047fb0
mov r9d, dword [rsp + 0x88]
mov ecx, r9d
shl ecx, 0x10
cmp eax, ecx
jge 0x140056e36
shl esi, 0x10
mov ecx, esi
jmp 0x140056f25
mov r8d, dword [rsp + 0x70]
mov edx, r8d
shl edx, 0x10
mov dword [rsp + 0x88], edx
cmp eax, edx
jge 0x140056e94
mov ebx, r8d
mov edx, edi
sub ebx, r9d
call fcn.1400459d0
mov ecx, ebp
sub ecx, eax
test ebx, ebx
je 0x140056e84
sub r15d, esi
mov r8d, ebx
mov edx, r15d
call fcn.140047e80
shl esi, 0x10
mov edx, edi
mov ecx, esi
mov ebx, eax
call fcn.1400459d0
add ebx, eax
jmp 0x140056f2e
mov esi, dword [rsp + 0x78]
mov ebx, esi
mov r8d, dword [rsp + 0x70]
shl ebx, 0x10
jmp 0x140056ea1
mov esi, dword [rsp + 0x78]
mov ebx, esi
shl ebx, 0x10
cmp eax, ebx
jge 0x140056ee0
mov ecx, dword [rsp + 0x88]
mov r12d, esi
mov edx, edi
sub r12d, r8d
call fcn.1400459d0
mov ecx, ebp
sub ecx, eax
test r12d, r12d
je 0x140056ee5
sub r13d, r15d
mov r8d, r12d
mov edx, r13d
call fcn.140047e80
shl r15d, 0x10
mov edx, edi
mov ecx, r15d
mov ebx, eax
call fcn.1400459d0
add ebx, eax
jmp 0x140056f2e
cmp eax, r12d
jge 0x140056f1e
mov r15d, dword [rsp + 0x20]
mov edx, edi
mov ecx, ebx
call fcn.1400459d0
sub ebp, eax
sub r15d, esi
je 0x140056f1e
sub r14d, r13d
mov r8d, r15d
mov edx, r14d
mov ecx, ebp
call fcn.140047e80
shl r13d, 0x10
mov edx, edi
mov ecx, r13d
mov ebx, eax
call fcn.1400459d0
add ebx, eax
jmp 0x140056f2e
shl r14d, 0x10
mov ecx, r14d
mov edx, edi
call fcn.1400459d0
mov ebx, eax
mov edx, dword [rsp + 0x24]
mov ecx, ebx
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rbp
pop rbx
jmp fcn.1400459d0
Function at 0x1400a2fe0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
sub rsp, 0x250
mov rax, qword [0x1400e9018]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov eax, dword [rcx + 0x58]
lea rbx, [rsp + 0x30]
mov dword [rsp + 0x40], eax
mov ebp, r9d
mov eax, dword [rcx + 0x5c]
mov rsi, rcx
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x290]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], r8d
mov dword [rsp + 0x30], r9d
mov qword [rsp + 0x278], rdi
nop dword [rax]
mov r10d, dword [rbx + 0x14]
mov eax, r10d
mov r14d, dword [rbx + 4]
cmp r10d, r14d
mov r9d, dword [rbx + 0xc]
cmovg eax, r14d
cmp r9d, eax
jl 0x1400a317c
cmp r10d, r14d
mov eax, r14d
cmovg eax, r10d
cmp r9d, eax
jg 0x1400a317c
cmp r10d, r14d
jne 0x1400a3080
sub rbx, 0x10
jmp 0x1400a31c4
mov edx, dword [rsi + 0x88]
xor r9d, r9d
cmp r10d, r14d
setge r9b
inc r9d
cmp edx, r9d
je 0x1400a30f2
mov eax, dword [rsi + 4]
mov ecx, eax
mov r8d, dword [rsi + 8]
neg ecx
cmp r10d, r14d
jge 0x1400a30b4
dec eax
add eax, r10d
and eax, ecx
sub eax, r10d
jmp 0x1400a30bc
and ecx, r10d
mov eax, r10d
sub eax, ecx
cmp eax, r8d
setge r11b
test edx, edx
je 0x1400a30db
movzx edx, r11b
mov rcx, rsi
call fcn.1400a4190
test al, al
jne 0x1400a31d5
movzx r8d, r11b
mov edx, r9d
mov rcx, rsi
call fcn.1400a4800
test al, al
jne 0x1400a31d5
mov edx, dword [rsi + 0x64]
lea r9, [0x1400a4b60]
mov ecx, dword [rsi + 0x60]
mov r8, rbx
cmp r10d, r14d
jge 0x1400a311e
mov dword [rsp + 0x28], edx
mov edx, 2
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call fcn.1400a2e60
jmp 0x1400a3172
mov eax, dword [rbx + 4]
neg ecx
movzx edi, byte [rsi + 0x6a]
neg eax
mov dword [rbx + 4], eax
neg edx
mov eax, dword [rbx + 0xc]
neg eax
mov dword [rsp + 0x28], ecx
mov dword [rbx + 0xc], eax
mov rcx, rsi
mov eax, dword [rbx + 0x14]
neg eax
mov dword [rsp + 0x20], edx
mov edx, 2
mov dword [rbx + 0x14], eax
call fcn.1400a2e60
test dil, dil
je 0x1400a316a
cmp byte [rsi + 0x6a], 0
jne 0x1400a316a
mov rdx, qword [rsi + 0x70]
mov ecx, dword [rdx + 0x20]
neg ecx
mov dword [rdx + 0x20], ecx
mov ecx, dword [rbx + 4]
neg ecx
mov dword [rbx + 4], ecx
test al, al
jne 0x1400a31d5
sub rbx, 0x10
jmp 0x1400a31c4
mov eax, dword [rbx + 8]
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x20], ecx
add ecx, eax
mov dword [rbx + 0x24], r10d
lea edx, [rax + rbp]
mov eax, ecx
sar eax, 1
mov dword [rbx + 0x18], eax
lea eax, [rcx + rdx]
sar eax, 2
lea ecx, [r10 + r9]
mov dword [rbx + 0x10], eax
mov eax, ecx
sar edx, 1
sar eax, 1
mov dword [rbx + 8], edx
lea edx, [r14 + r9]
mov dword [rbx + 0x1c], eax
lea eax, [rcx + rdx]
sar eax, 2
sar edx, 1
mov dword [rbx + 0x14], eax
mov dword [rbx + 0xc], edx
add rbx, 0x10
lea rax, [rsp + 0x30]
cmp rbx, rax
jb 0x1400a31d9
mov ebp, dword [rbx]
jmp 0x1400a3040
mov al, 1
jmp 0x1400a31e2
mov dword [rsi + 0x58], ebp
xor al, al
mov dword [rsi + 0x5c], r14d
mov rdi, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400af480
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop r14
pop rsi
pop rbp
ret
Function at 0x1400a9530
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push rbx
push rbp
sub rsp, 0x48
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x1400a954c
lea eax, [rcx + 0x28]
add rsp, 0x48
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r14
mov edx, 0x80000000
xor r14d, r14d
mov rcx, rbp
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400a95a0
mov r14, qword [rsp + 0x40]
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0x68]
add rsp, 0x48
pop rbp
pop rbx
ret
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400a96c5
mov rax, qword [rsp + 0x70]
cmp rax, 0x7fffffff
jg 0x1400a96c5
test rax, rax
je 0x1400a96c5
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
test rax, rax
je 0x1400a96c5
mov ecx, dword [rsp + 0x70]
xor r9d, r9d
mov dword [rbx + 8], ecx
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], r14d
mov qword [rsp + 0x20], r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r14
je 0x1400a963a
lea rax, [0x1400a9720]
jmp 0x1400a9693
mov rcx, qword [rbx + 0x30]
xor edx, edx
movsxd r8, dword [rbx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x1400a96c5
mov edi, r14d
nop dword [rax + rax]
mov r8d, dword [rbx + 8]
lea r9, [rsp + 0x60]
mov edx, edi
sub r8d, edi
add rdx, qword [rbx]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400a96b3
add edi, dword [rsp + 0x60]
cmp edi, dword [rbx + 8]
jne 0x1400a9660
lea rax, [0x1400a96f0]
mov rcx, rsi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov qword [rbx + 0x10], rax
xor eax, eax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], r14
jmp 0x1400a96da
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov r8, qword [rbx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x51
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop rbp
pop rbx
ret
Function at 0x1400aacb0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x1400aacbb
xor eax, eax
ret
lea r11, [0x1400ccf20]
not ecx
cmp r8d, 8
jb 0x1400aad91
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x1400aace0
test r8d, r8d
je 0x1400aadbd
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x1400aada0
not ecx
mov eax, ecx
ret
Function at 0x1400af6a0
Capabilities:
Parse pe header

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

Disassembly:
call fcn.1407b31df
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 0x1407b3089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407b306f
add dl, dl
jne 0x1407b3096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407b30f6
xor eax, eax
add dl, dl
jne 0x1407b30a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407b31ad
add dl, dl
jne 0x1407b30b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407b30c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407b30d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407b30dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407b30ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1407b307e
mov eax, 1
add dl, dl
jne 0x1407b3106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407b3113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407b30fb
sub eax, ebx
mov ebx, 1
jne 0x1407b314c
mov ecx, 1
add dl, dl
jne 0x1407b312e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407b313b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407b3123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407b307e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1407b3168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407b3175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407b315d
cmp eax, 0x7d00
jae 0x1407b319b
cmp eax, 0x500
jb 0x1407b3196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407b307e
cmp eax, 0x7f
ja 0x1407b319e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407b307e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407b31d2
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 0x1407b307e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14004ed18
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
mov ecx, eax
mov dl, byte [rsp + 0x99]
and dl, 0x1f
mov byte [rsp + 0x99], dl
mov eax, dword [rsp + 0x78]
and eax, 0x18ebda34
mov r8, qword [rsp + 0x48]
mov r9, qword [r8]
mov dword [rsp + 0x9c], eax
mov r10, qword [rsp + 0x70]
cmp r9, r10
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x50], r9
jne 0x14004ee60
mov rax, qword [rsp + 0x60]
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rax, qword [rsp + 0xa0]
add rax, 0x488f00be
mov qword [rsp + 0xa0], rax
mov ecx, dword [rsp + 0x78]
xor ecx, 0xffffffff
mov dword [rsp + 0x9c], ecx
mov dx, word [rsp + 0x7e]
or dx, 0xa1a3
mov rax, qword [rsp + 0x48]
mov r8w, word [rax + 0x48]
shr r8w, 1
mov word [rsp + 0x96], dx
mov r9, qword [rsp + 0xa0]
xor r9, qword [rsp + 0xa0]
movzx ecx, r8w
mov qword [rsp + 0xa0], r9
mov qword [rsp + 0xa0], 0x216a8f0d
cmp r8w, 0
mov dword [rsp + 0x44], ecx
je 0x14004ec3d
jmp 0x14004ee3d
mov eax, dword [rsp + 0x40]
mov cx, 0xfd5d
mov dl, byte [rsp + 0x99]
mov r8d, eax
mov r9d, r8d
mov r10b, 0xb7
mov dword [rsp + 0x3c], eax
mov al, dl
mul r10b
mov r11w, word [rsp + 0x9a]
mov byte [rsp + 0x99], al
mov al, byte [rsp + 0x99]
sub cx, r11w
mov byte [rsp + 0x99], al
mov al, byte [rsp + 0x99]
mov rsi, qword [rsp + 0x30]
mov r11w, word [rsi + r9*2]
mov di, r11w
add di, cx
mov cx, r11w
add cx, 0x20
cmp di, 0x1a
cmovb r11w, cx
mov byte [rsp + 0x99], al
mov rbx, qword [rsp + 0x80]
cmp word [rbx + r9*2], r11w
sete al
cmp r11w, 0
setne dl
mov r10b, byte [rsp + 0x99]
mov byte [rsp + 0x2f], al
mov al, r10b
mul byte [rsp + 0x99]
mov r10b, byte [rsp + 0x2f]
and r10b, dl
mov r8d, dword [rsp + 0x3c]
add r8d, 1
mov byte [rsp + 0x99], al
mov al, byte [rsp + 0x99]
xor al, byte [rsp + 0x99]
mov ebp, dword [rsp + 0x44]
cmp r8d, ebp
setb dl
mov byte [rsp + 0x99], al
and r10b, dl
test r10b, 1
mov dword [rsp + 0x40], r8d
jne 0x14004ed14
mov al, byte [rsp + 0x2f]
test al, 1
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x60], rcx
jne 0x14004ec82
jmp 0x14004ec3d
mov rax, qword [rsp + 0x48]
add rax, 0xfffffffffffffff0
mov ecx, dword [rsp + 0x78]
add ecx, 0x83f0685
mov dword [rsp + 0x9c], ecx
mov qword [rsp + 0x60], rax
jmp 0x14004ec82
xor eax, eax
mov rcx, qword [rsp + 0xa0]
or rcx, qword [rsp + 0xa0]
mov qword [rsp + 0xa0], rcx
mov dword [rsp + 0x40], eax
jmp 0x14004ed14
mov rax, qword [rsp + 0x50]
mov cl, byte [rsp + 0x99]
add cl, byte [rsp + 0x99]
mov rdx, qword [rax + 0x50]
mov byte [rsp + 0x99], cl
mov r8, qword [rax + 0x20]
mov dword [rsp + 0x9c], 0x432b77a
mov r9, qword [rsp + 0x88]
cmp r8, r9
sete cl
mov r10b, byte [rsp + 0x5f]
and r10b, cl
mov r11d, dword [rsp + 0x78]
or r11d, 0x41520c6a
mov dword [rsp + 0x9c], r11d
test r10b, 1
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x20], r8
jne 0x14004ee19
jmp 0x14004ec93
Function at 0x140003a30
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003a64
cmp word [rcx], 0x5a4d
jne 0x140003a64
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003a64
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003a64
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003970
test eax, eax
jne 0x140003a80
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.1400039e0
test rax, rax
je 0x140003a75
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.140004229
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140004130
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.1400040d0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140004594
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x1405360f8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x1405360f4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x1400045e2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400045da
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400046c9
inc ebx
add rax, 0x28
jmp 0x1400045ba
mov rcx, r12
call fcn.140004dc1
mov rbp, rax
test rax, rax
jne 0x140004601
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140004530
movsxd rbx, ebx
mov rax, qword [0x1405360f8]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.140004e6f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1405360f8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140004663
mov rax, qword [0x1405360f8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140004530
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400046c3
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400046c3
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1405360f8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400046c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140004530
inc dword [0x1405360f4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140004af0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x140536160]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140536140]
test rbx, rbx
je 0x140004b3c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140004b36
test eax, eax
jne 0x140004b36
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140004b0e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140004cf0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140004d13
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140004d13
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140004d14
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140004d4e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140004d45
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140004d50
inc r8d
add rax, 0x28
jmp 0x140004d2c
xor eax, eax
ret

Function at 0x140004dc1
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1405322b0]
mov r8, rcx
mov rcx, r9
call fcn.140004cf0
test eax, eax
je 0x140004ded
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140004d14
xor eax, eax
add rsp, 0x28
ret
Function at 0x140002c40
Capabilities:
Enumerate processes

Disassembly:
push rbx
sub rsp, 0x270
mov rax, qword [0x14003d080]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x234
call fcn.14002a750
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140002cc8
nop word [rax + rax]
lea rdx, [0x140036620]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov rcx, rbx
test eax, eax
je 0x140002cec
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140002ca0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14000b8b0
add rsp, 0x270
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
jmp 0x140002cd3
Function at 0x1400042f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbp, qword [rcx + 0x20]
lea rbx, [rcx + 8]
mov rdi, qword [rbx + 0x10]
mov rsi, rcx
mov rcx, rbx
cmp rbp, 0xf
jbe 0x14000431f
mov rcx, qword [rbx]
cmp rdi, 4
jne 0x140004344
mov r8, rdi
lea rdx, str.play
call fcn.14002ab90
test eax, eax
jne 0x140004344
call fcn.140002c40
mov al, 1
jmp 0x140004464
cmp rbp, 0xf
jbe 0x14000434d
mov rbx, qword [rbx]
cmp rdi, 0xb
jne 0x14000436d
mov r8, rdi
lea rdx, str.force_close
mov rcx, rbx
call fcn.14002ab90
test eax, eax
je 0x140004479
lea r8, [rsi + 8]
mov rcx, r8
cmp rbp, 0xf
jbe 0x14000437d
mov rcx, qword [r8]
xor edx, edx
lea rbx, [rsi + 0xb0]
movabs r9, 0xcbf29ce484222325
test rdi, rdi
je 0x1400043ba
movabs r11, 0x100000001b3
nop
movzx eax, byte [rcx + rdx]
inc rdx
xor r9, rax
imul r9, r11
cmp rdx, rdi
jb 0x1400043a0
lea rbx, [rsi + 0xb0]
lea rdx, [rsp + 0x20]
lea rcx, [rsi + 0xb0]
call fcn.140009e10
cmp qword [rax + 8], 0
je 0x140004462
lea r8, [rsi + 8]
mov rcx, rbx
lea rdx, [rsp + 0x20]
call fcn.140007f40
mov rcx, qword [rax]
call qword [rcx + 0x30]
mov rdi, qword [rsi + 0x40]
lea rcx, [rsi + 0x28]
mov r8, qword [rsi + 0x38]
cmp rdi, 0xf
jbe 0x140004403
mov rcx, qword [rsi + 0x28]
test r8, r8
jne 0x14000445e
lea rdx, [0x140036585]
call fcn.14002ab90
test eax, eax
jne 0x14000445e
cmp rdi, 8
jb 0x140004449
lea rax, [rsi + 0x28]
cmp rdi, 0xf
jbe 0x14000442c
mov rax, qword [rsi + 0x28]
mov qword [rsi + 0x38], 8
movabs rcx, 0x2173736563637553
mov qword [rax], rcx
mov byte [rax + 8], 0
mov al, 1
jmp 0x140004464
lea r9, str.Success_
mov edx, 8
lea rcx, [rsi + 0x28]
call fcn.140008e00
mov al, 1
jmp 0x140004464
xor al, al
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, rsi
call fcn.140004490
int3