joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b5e4c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400b5e62
mov al, 1
jmp 0x1400b5ec2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400b5e73
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400b5ec0
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400bbb7c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400b5ec0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400b5ec0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400b5ec0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400b5ec2
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400b62bc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400d9860]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400b6313
cmp word [rdx], r13w
jne 0x1400b6313
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400b6318
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400b643d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400b645e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400b6351
mov rdx, r9
mov word [rbx], cx
jmp 0x1400b6378
cmp r9, r8
jae 0x1400b6388
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400b6332
jmp 0x1400b643d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400b6432
cmp dword [rsp + 0x80], esi
je 0x1400b6432
lea r8, [0x1400d9860]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400b640a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400b63da
mov word [rbx], r13w
jmp 0x1400b643a
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400b63e7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400b643a
cmp word [rsp + 0x70], r13w
jne 0x1400b6417
cmp rbx, r14
je 0x1400b63d4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400b6f24
cmp word [rsp + 0x70], r13w
je 0x1400b643d
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400d9860]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400b6437
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400b643d
Function at 0x1400b72e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1400a2340
sub rsp, rax
mov rax, qword [0x1400d7840]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400b3e30
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400b732f
mov rax, rbp
jmp 0x1400b7437
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xd9860]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400b6f1c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xd9860]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400b7433
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400b7433
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400b6f1c
test rax, rax
js 0x1400b7433
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400b7433
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400b7425
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400b7425
cmp byte [rcx], 0xd
jne 0x1400b740b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400b741a
cmp byte [rcx + 1], 0xa
jne 0x1400b741a
inc rcx
jmp 0x1400b741a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xd7cb0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400b73ed
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400b7437
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400a23a0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400bab54
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400bab84
xor eax, eax
jmp 0x1400bac47
mov rbp, rbx
cmp word [rax], si
je 0x1400baba9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400bab90
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400bab8c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400baa74
movsxd r14, eax
test eax, eax
jne 0x1400babe7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400bab7d
mov rcx, r14
call fcn.1400b8244
mov rdi, rax
test rax, rax
jne 0x1400bac00
xor ecx, ecx
call fcn.1400b371c
jmp 0x1400babdc
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400baa74
test eax, eax
jne 0x1400bac31
mov rcx, rdi
call fcn.1400b371c
jmp 0x1400bac3b
xor ecx, ecx
call fcn.1400b371c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400be260
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400b3ad0
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400be301
cmp ebx, dword [rsp + 0x30]
je 0x1400be2fa
test esi, esi
je 0x1400be2fa
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400be2d5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400be2e2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400be2bf
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400be2e6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400be303
mov eax, 1
jmp 0x1400be303
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400c285c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400b2094
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400c28e6
cmp byte [rbp - 0x21], r15b
je 0x1400c28e1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400c291c
call fcn.1400b45e0
test eax, eax
jne 0x1400c2908
cmp byte [rbp - 0x21], r15b
je 0x1400c2900
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400c291c
cmp byte [rbp - 0x21], r15b
je 0x1400c2919
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400b2994
test eax, eax
jne 0x1400c29bc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400b2094
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400c295b
cmp byte [rbp - 0x21], r15b
je 0x1400c2990
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400c2990
call fcn.1400b45e0
test eax, eax
jne 0x1400c297c
cmp byte [rbp - 0x21], r15b
je 0x1400c2975
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400c2990
cmp byte [rbp - 0x21], r15b
je 0x1400c298d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400b2994
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400c29bc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400c29bf
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400c29cd
mov rcx, rdi
call fcn.1400b371c
cmp byte [rbp + 0x3f], r15b
je 0x1400c29dc
mov rcx, qword [rbp + 0x27]
call fcn.1400b371c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400c4874
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400b6f24
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400b6f24
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400c49c4
cmp rax, 0xffffffffffffffff
je 0x1400c49c4
xor edi, edi
test rbp, rbp
jle 0x1400c496f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400b42a0
mov rbx, rax
test rax, rax
jne 0x1400c48fc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400c4965
mov edx, 0x8000
mov ecx, r14d
call fcn.1400af704
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400b5a4c
cmp eax, 0xffffffff
je 0x1400c4945
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400c490c
mov edx, r15d
mov ecx, r14d
call fcn.1400af704
jmp 0x1400c4965
cmp byte [rsi + 0x38], dil
je 0x1400c495c
cmp dword [rsi + 0x34], 5
jne 0x1400c495c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400c4965
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400b371c
jmp 0x1400c49d8
jns 0x1400c49d8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400b6f24
cmp rax, 0xffffffffffffffff
jne 0x1400c4990
cmp byte [rsi + 0x30], dil
je 0x1400c49d8
mov edi, dword [rsi + 0x2c]
jmp 0x1400c49d8
mov ecx, r14d
call fcn.1400bbb7c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400c49d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400c49d8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400c49d1
mov eax, dword [rsi + 0x2c]
jmp 0x1400c49d6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400b6f24
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14164b058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14164b1df
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 0x14164b089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14164b06f
add dl, dl
jne 0x14164b096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14164b0f6
xor eax, eax
add dl, dl
jne 0x14164b0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14164b1ad
add dl, dl
jne 0x14164b0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14164b0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14164b0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14164b0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14164b0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14164b07e
mov eax, 1
add dl, dl
jne 0x14164b106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14164b113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14164b0fb
sub eax, ebx
mov ebx, 1
jne 0x14164b14c
mov ecx, 1
add dl, dl
jne 0x14164b12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14164b13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14164b123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14164b07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14164b168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14164b175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14164b15d
cmp eax, 0x7d00
jae 0x14164b19b
cmp eax, 0x500
jb 0x14164b196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14164b07e
cmp eax, 0x7f
ja 0x14164b19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14164b07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14164b1d2
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 0x14164b07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001820
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400026d0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400026d0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x140001fb0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140007100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x140002004
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140001ffb
test r12, r12
je 0x140001ffb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001fe0
lea rcx, [0x140007100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002340
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140004800]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x1400023b9
mov rcx, r10
call fcn.140002210
test eax, eax
je 0x1400023b9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x1400023b6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x1400023ad
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x1400023b9
add r8, 0x28
cmp r8, r9
jne 0x140002398
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x140002790
Capabilities:
Create thread
Link many functions at runtime

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rsi, str.Kernel32.dll
movabs rax, 0x213a23111a470703
mov rbp, rcx
lea rdi, [rsp + 0x50]
mov ecx, 0xd
mov rbx, rdx
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x5d]
mov ecx, 0xf
lea rsi, [0x140004033]
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x7d]
mov ecx, 0x13
lea rsi, [0x140004042]
rep movsb byte [rdi], byte [rsi]
lea rsi, [rsp + 0x5d]
mov qword [rsp + 0x6c], rax
movabs rdx, 0x16701a362a1a0826
mov rcx, rsi
mov qword [rsp + 0x74], rdx
lea r15, [rsp + 0x7d]
lea r14, [rsp + 0x6c]
mov byte [rsp + 0x7c], 0
call sub.msvcrt.dll_strlen
mov r8, rbx
mov rcx, rsi
mov rdx, rax
call fcn.140002750
mov rcx, r15
call sub.msvcrt.dll_strlen
mov r8, rbx
mov rcx, r15
mov rdx, rax
call fcn.140002750
mov rcx, r14
call sub.msvcrt.dll_strlen
mov r8, rbx
mov rcx, r14
mov rdx, rax
call fcn.140002750
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r13, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetCurrentProcess
mov r12, rax
mov rcx, rax
call r13
mov rdx, rsi
mov rcx, r12
call r13
mov rdx, r15
mov rcx, r12
mov qword [rsp + 0x38], rax
call r13
mov rdx, r14
mov rcx, r12
mov r15, rax
call r13
lea rdx, str.WaitForSingleObject
mov rcx, r12
mov rsi, rax
call r13
mov rcx, rbp
mov dword [rsp + 0x48], 4
call sub.msvcrt.dll_strlen
lea edi, [rax + 1]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r10, qword [rsp + 0x38]
mov r8, rdi
xor edx, edx
mov r13, rax
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov rcx, rax
call r10
mov r9, rdi
mov r8, rbp
mov rcx, r13
mov qword [rsp + 0x20], 0
mov r12, rax
mov rdx, rax
call r15
mov r8, rbx
mov edx, edi
mov rcx, r12
call fcn.140002750
lea rax, [rsp + 0x48]
mov r8, rdi
mov rdx, r12
mov rcx, r13
mov qword [rsp + 0x20], rax
mov r9d, 0x20
call rsi
lea rax, [rsp + 0x4c]
xor r9d, r9d
mov r8, r12
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140001000
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
call qword [sym.imp.USER32.dll_GetShellWindow]
lea rcx, str.C:WindowsSystem32user32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor edi, edi
mov rbx, rax
movsxd rcx, dword [rax + 0x3c]
mov esi, dword [rcx + rax + 0x88]
cmp dword [rsi + rax + 0x18], edi
jbe 0x14000109a
mov r14d, dword [rsi + rax + 0x20]
lea rax, [r14 + rdi*4]
mov edx, dword [rax + rbx]
lea rcx, str.MessageBoxA
add rdx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x14000106b
inc edi
cmp edi, dword [rsi + rbx + 0x18]
jb 0x140001047
jmp 0x14000109a
mov ecx, dword [rsi + rbx + 0x24]
add rcx, rbx
movzx edx, word [rcx + rdi*2]
mov ecx, dword [rsi + rbx + 0x1c]
add rcx, rbx
mov eax, dword [rcx + rdx*4]
add rax, rbx
je 0x14000109a
xor r9d, r9d
lea r8, str...
lea rdx, str.Meow_meow_
xor ecx, ecx
call rax
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret

Function at 0x1400019ac
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140016950], eax
call fcn.14000b730
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140016950], 0
jne case.default.0x14000ba02
mov ecx, 1
call fcn.14000b730
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
mov ah, 0x99
invalid
Function at 0x10000129c
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1000036f8]
lea rdx, [0x100003700]
call qword [sym.imp.API_MS_WIN_Service_Core_L1_1_0.dll_SetServiceStatus]
test eax, eax
jne 0x1000012e6
mov dword [0x100003704], 1
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
cmp qword [0x1000036f8], 0
mov dword [0x10000370c], eax
je 0x1000012dd
call fcn.10000129c
xor ecx, ecx
call qword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_ExitProcess]
inc dword [0x100003714]
add rsp, 0x28
ret

Function at 0x1000014b0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r12
push r13
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor r12d, r12d
xor eax, eax
lock cmpxchg qword [0x100003740], rdi
je 0x1000014fe
cmp rax, rdi
jne 0x1000014f1
mov edi, 1
mov r12d, edi
jmp 0x100001503
mov ecx, 0x3e8
call qword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_Sleep]
jmp 0x1000014d5
mov edi, 1
mov eax, dword [0x100003738]
cmp eax, edi
jne 0x100001519
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x100001576
mov eax, dword [0x100003738]
test eax, eax
jne 0x100001570
mov dword [0x100003738], edi
lea r13, [0x1000011a0]
lea rsi, [0x100001188]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
cmp rsi, r13
jae 0x100001562
test eax, eax
jne 0x100001562
mov rcx, qword [rsi]
test rcx, rcx
je 0x100001557
call rcx
mov dword [rsp + 0x20], eax
add rsi, 8
mov qword [rsp + 0x28], rsi
jmp 0x100001540
test eax, eax
je 0x100001576
mov eax, 0xff
jmp 0x100001648
mov dword [0x100003164], edi
mov eax, dword [0x100003738]
cmp eax, edi
jne 0x10000159d
lea rdx, [0x100001180]
lea rcx, [0x100001170]
call sub.msvcrt.dll__initterm
mov dword [0x100003738], 2
test r12d, r12d
jne 0x1000015ab
xor eax, eax
xchg qword [0x100003740], rax
cmp qword [0x100003748], 0
je 0x1000015d4
lea rcx, [0x100003748]
call fcn.10000189c
test eax, eax
je 0x1000015d4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100003748]
mov r8, qword [0x100003148]
mov rdx, qword [0x100003150]
mov ecx, dword [0x100003140]
call fcn.100001440
mov dword [0x100003160], eax
cmp dword [0x100003144], 0
jne 0x100001604
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x100003164], 0
jne 0x100001619
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x100003160]
jmp 0x100001648
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
add rsp, 0x30
pop r13
ret
sub rsp, 0x28
call fcn.100115000
add rsp, 0x28
jmp 0x1000014b0

Function at 0x100001908
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100001955
cmp rcx, 0xffffffffffffffff
je 0x100001955
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10000194d
cmp dword [rcx + 0x3c], edx
jl 0x10000194d
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10000194d
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x100001955
mov rax, rdx
add rsp, 0x18
ret