joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140085cf4
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 0x140085d24
xor eax, eax
jmp 0x140085de7
mov rbp, rbx
cmp word [rax], si
je 0x140085d49
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140085d30
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140085d2c
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.1400801f4
movsxd r14, eax
test eax, eax
jne 0x140085d87
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140085d1d
mov rcx, r14
call fcn.14007ee38
mov rdi, rax
test rax, rax
jne 0x140085da0
xor ecx, ecx
call fcn.14007e04c
jmp 0x140085d7c
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.1400801f4
test eax, eax
jne 0x140085dd1
mov rcx, rdi
call fcn.14007e04c
jmp 0x140085ddb
xor ecx, ecx
call fcn.14007e04c
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 0x140088b14
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.14007dc74
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 0x140088bb5
cmp ebx, dword [rsp + 0x30]
je 0x140088bae
test esi, esi
je 0x140088bae
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140088b89
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140088b96
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140088b73
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140088b9a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140088bb7
mov eax, 1
jmp 0x140088bb7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14008ca74
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.140082734
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140082734
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14008cbc4
cmp rax, 0xffffffffffffffff
je 0x14008cbc4
xor edi, edi
test rbp, rbp
jle 0x14008cb6f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14007dfd4
mov rbx, rax
test rax, rax
jne 0x14008cafc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14008cb65
mov edx, 0x8000
mov ecx, r14d
call fcn.14007ba64
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.1400811ec
cmp eax, 0xffffffff
je 0x14008cb45
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14008cb0c
mov edx, r15d
mov ecx, r14d
call fcn.14007ba64
jmp 0x14008cb65
cmp byte [rsi + 0x38], dil
je 0x14008cb5c
cmp dword [rsi + 0x34], 5
jne 0x14008cb5c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14008cb65
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14007e04c
jmp 0x14008cbd8
jns 0x14008cbd8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140082734
cmp rax, 0xffffffffffffffff
jne 0x14008cb90
cmp byte [rsi + 0x30], dil
je 0x14008cbd8
mov edi, dword [rsi + 0x2c]
jmp 0x14008cbd8
mov ecx, r14d
call fcn.1400865c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14008cbd8
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 0x14008cbd8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14008cbd1
mov eax, dword [rsi + 0x2c]
jmp 0x14008cbd6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140082734
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 0x14008d520
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14008d548
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14008d548
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001000
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov rax, qword [0x140008010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rcx, qword [0x140008e68]
lea rdx, [rsp + 0x20]
call fcn.140004930
test eax, eax
jne 0x14000103f
movzx eax, word [rsp + 0x26]
mov ecx, 0xf000
and ax, cx
mov ecx, 0x4000
cmp ax, cx
je 0x14000106f
call qword [sym.imp.MSVCR120.dll___iob_func]
mov r9, qword [0x140008e68]
mov r8, qword [0x140008e70]
lea rcx, [rax + 0x60]
lea rdx, str._s:_archive_location___s__does_not_exist_n
call fcn.140002d10
mov ecx, 2
call qword [sym.imp.MSVCR120.dll_exit]
int3
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140005360
add rsp, 0x68
ret
Function at 0x140002bf0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x478
mov rax, qword [0x140008010]
xor rax, rsp
mov qword [rsp + 0x450], rax
test rcx, rcx
jne 0x140002c35
call qword [sym.imp.MSVCR120.dll__errno]
mov dword [rax], 0x16
or eax, 0xffffffff
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140005360
add rsp, 0x478
ret
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x470], rbx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x450]
mov qword [rsp + 0x460], rdi
mov dword [rsp + 0x40], 0
mov byte [rsp + 0x44], 0
mov qword [rsp + 0x30], rax
call fcn.140002e00
mov rdi, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movzx ebx, byte [rsp + 0x44]
sub rdi, rcx
test bl, bl
jne 0x140002cd3
test rdi, rdi
je 0x140002cd3
mov r9, qword [rsp + 0x38]
mov qword [rsp + 0x468], rsi
mov esi, 1
mov edx, esi
mov r8, rdi
call qword [sym.imp.MSVCR120.dll_fwrite]
mov ecx, dword [rsp + 0x40]
movzx ebx, bl
add ecx, eax
cmp rax, rdi
cmovne ebx, esi
mov rsi, qword [rsp + 0x468]
jmp 0x140002cd7
mov ecx, dword [rsp + 0x40]
mov rdi, qword [rsp + 0x460]
or eax, 0xffffffff
test bl, bl
mov rbx, qword [rsp + 0x470]
cmovne ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140005360
add rsp, 0x478
ret

Function at 0x140002d90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 8]
mov rdi, qword [rbx]
sub rdi, rcx
cmp byte [rbx + 0x24], 0
jne 0x140002de2
test rdi, rdi
je 0x140002de2
mov r9, qword [rbx + 0x18]
mov r8, rdi
mov edx, 1
call qword [sym.imp.MSVCR120.dll_fwrite]
add dword [rbx + 0x20], eax
cmp rax, rdi
mov rax, qword [rbx + 8]
mov qword [rbx], rax
je 0x140002de5
mov byte [rbx + 0x24], 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov qword [rbx], rcx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140003700
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x20
cmp dword [rsp + 0x50], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x40], r14
mov r14, rcx
mov edi, r8d
je 0x140003745
movsxd rax, r9d
mov rbp, rcx
test r9d, r9d
je 0x140003741
nop dword [rax]
dec rax
cmp byte [rbp], 0
je 0x140003741
inc rbp
test rax, rax
jne 0x140003730
sub ebp, ecx
jmp 0x140003759
or rbp, 0xffffffffffffffff
nop dword [rax]
inc rbp
cmp byte [rcx + rbp], 0
jne 0x140003750
sub edi, ebp
mov eax, 0
cmovs edi, eax
test edx, edx
je 0x140003769
neg edi
mov rbx, qword [rsp + 0x58]
mov qword [rsp + 0x38], rsi
test edi, edi
jle 0x1400037d8
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x1400037c9
mov rsi, qword [rbx]
cmp rsi, rax
jb 0x1400037c9
mov r9, qword [rbx + 0x18]
test r9, r9
jne 0x140003796
inc dword [rbx + 0x20]
jmp 0x1400037d2
mov rcx, qword [rbx + 8]
sub rsi, rcx
cmp byte [rbx + 0x24], 0
jne 0x1400037c2
test rsi, rsi
je 0x1400037c2
mov r8, rsi
mov edx, 1
call qword [sym.imp.MSVCR120.dll_fwrite]
add dword [rbx + 0x20], eax
cmp rax, rsi
je 0x1400037c2
mov byte [rbx + 0x24], 1
mov rax, qword [rbx + 8]
mov qword [rbx], rax
mov rax, qword [rbx]
mov byte [rax], 0x20
inc qword [rbx]
dec edi
test edi, edi
jg 0x140003777
mov r8, rbx
mov edx, ebp
mov rcx, r14
call fcn.140003fb0
mov r14, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x30]
test edi, edi
jns 0x140003860
neg edi
movsxd rsi, edi
nop dword [rax + rax]
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x140003852
mov rdi, qword [rbx]
cmp rdi, rax
jb 0x140003852
mov r9, qword [rbx + 0x18]
test r9, r9
jne 0x14000381f
inc dword [rbx + 0x20]
jmp 0x14000385b
mov rcx, qword [rbx + 8]
sub rdi, rcx
cmp byte [rbx + 0x24], 0
jne 0x14000384b
test rdi, rdi
je 0x14000384b
mov r8, rdi
mov edx, 1
call qword [sym.imp.MSVCR120.dll_fwrite]
add dword [rbx + 0x20], eax
cmp rax, rdi
je 0x14000384b
mov byte [rbx + 0x24], 1
mov rax, qword [rbx + 8]
mov qword [rbx], rax
mov rax, qword [rbx]
mov byte [rax], 0x20
inc qword [rbx]
dec rsi
jne 0x140003800
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400038f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x80
mov rax, qword [0x140008010]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, qword [rsp + 0xd0]
xor ebp, ebp
movsx eax, dl
add eax, 0xffffffa8
mov r10, rcx
lea r11, str.0123456789abcdef
mov dword [rsp + 0x24], ebp
mov esi, ebp
cmp eax, 0x20
ja case.0x140003955.89
lea rdx, [0x140000000]
cdqe
movzx eax, byte [rdx + rax + 0x3b48]
mov ecx, dword [rdx + rax*4 + 0x3b30]
add rcx, rdx
jmp rcx
mov ecx, 0xa
test r10, r10
jns 0x14000396e
mov dword [rsp + 0x24], 0x2d
neg r10
jmp 0x140003997
test r8d, r8d
je 0x140003997
mov dword [rsp + 0x24], 0x2b
jmp 0x140003997
mov ecx, 8
jmp 0x140003997
mov ecx, 0xa
jmp 0x140003997
lea r11, str.0123456789ABCDEF
mov ecx, 0x10
mov qword [rsp + 0x90], rdi
mov edi, dword [rsp + 0xc0]
test r10, r10
jne 0x1400039b8
cmp dword [rsp + 0xc8], esi
je 0x1400039b8
test edi, edi
je 0x1400039df
lea r8, [rsp + 0x30]
nop dword [rax]
xor edx, edx
mov rax, r10
inc esi
div rcx
lea r8, [r8 + 1]
mov r10, rax
movzx eax, byte [rdx + r11]
mov byte [r8 - 1], al
test r10, r10
jne 0x1400039c0
mov eax, dword [rsp + 0xb0]
sub edi, esi
cmovs edi, ebp
sub eax, edi
sub eax, esi
cmovs eax, ebp
mov dword [rsp + 0x20], eax
test r9d, r9d
je 0x140003a01
neg eax
mov dword [rsp + 0x20], eax
mov ecx, dword [rsp + 0xb8]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x24]
mov r9, rbx
call fcn.140004130
test edi, edi
jle 0x140003a50
nop
mov rax, qword [rbx + 0x10]
dec edi
test rax, rax
je 0x140003a43
cmp qword [rbx], rax
jb 0x140003a43
cmp qword [rbx + 0x18], rbp
jne 0x140003a3b
inc dword [rbx + 0x20]
jmp 0x140003a4c
mov rcx, rbx
call fcn.140002d90
mov rax, qword [rbx]
mov byte [rax], 0x30
inc qword [rbx]
test edi, edi
jg 0x140003a20
movsxd rdi, esi
test esi, esi
jle 0x140003a97
nop word [rax + rax]
mov rax, qword [rbx + 0x10]
movsx esi, byte [rsp + rdi + 0x2f]
dec rdi
test rax, rax
je 0x140003a89
cmp qword [rbx], rax
jb 0x140003a89
cmp qword [rbx + 0x18], rbp
jne 0x140003a81
inc dword [rbx + 0x20]
jmp 0x140003a92
mov rcx, rbx
call fcn.140002d90
mov rax, qword [rbx]
mov byte [rax], sil
inc qword [rbx]
test rdi, rdi
jg 0x140003a60
mov eax, dword [rsp + 0x20]
test eax, eax
jns 0x140003b04
neg eax
movsxd rsi, eax
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x140003af6
mov rdi, qword [rbx]
cmp rdi, rax
jb 0x140003af6
mov r9, qword [rbx + 0x18]
test r9, r9
jne 0x140003ac3
inc dword [rbx + 0x20]
jmp 0x140003aff
mov rcx, qword [rbx + 8]
sub rdi, rcx
cmp byte [rbx + 0x24], bpl
jne 0x140003aef
test rdi, rdi
je 0x140003aef
mov r8, rdi
mov edx, 1
call qword [sym.imp.MSVCR120.dll_fwrite]
add dword [rbx + 0x20], eax
cmp rax, rdi
je 0x140003aef
mov byte [rbx + 0x24], 1
mov rax, qword [rbx + 8]
mov qword [rbx], rax
mov rax, qword [rbx]
mov byte [rax], 0x20
inc qword [rbx]
dec rsi
jne 0x140003aa4
mov rdi, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140005360
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rsi
ret
Function at 0x140003b70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
xor eax, eax
lea edi, [r8 - 1]
mov qword [rsp + 0x30], rbp
test edi, edi
mov rbx, r9
mov ebp, ecx
cmovs edi, eax
test edx, edx
je 0x140003b95
neg edi
mov qword [rsp + 0x38], rsi
test edi, edi
jle 0x140003c01
nop
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x140003bf2
mov rsi, qword [rbx]
cmp rsi, rax
jb 0x140003bf2
mov r9, qword [rbx + 0x18]
test r9, r9
jne 0x140003bbf
inc dword [rbx + 0x20]
jmp 0x140003bfb
mov rcx, qword [rbx + 8]
sub rsi, rcx
cmp byte [rbx + 0x24], 0
jne 0x140003beb
test rsi, rsi
je 0x140003beb
mov r8, rsi
mov edx, 1
call qword [sym.imp.MSVCR120.dll_fwrite]
add dword [rbx + 0x20], eax
cmp rax, rsi
je 0x140003beb
mov byte [rbx + 0x24], 1
mov rax, qword [rbx + 8]
mov qword [rbx], rax
mov rax, qword [rbx]
mov byte [rax], 0x20
inc qword [rbx]
dec edi
test edi, edi
jg 0x140003ba0
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x140003c23
cmp qword [rbx], rax
jb 0x140003c23
cmp qword [rbx + 0x18], 0
jne 0x140003c1b
inc dword [rbx + 0x20]
jmp 0x140003c2c
mov rcx, rbx
call fcn.140002d90
mov rax, qword [rbx]
mov byte [rax], bpl
inc qword [rbx]
mov rbp, qword [rsp + 0x30]
test edi, edi
jns 0x140003ca0
neg edi
movsxd rsi, edi
nop word [rax + rax]
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x140003c92
mov rdi, qword [rbx]
cmp rdi, rax
jb 0x140003c92
mov r9, qword [rbx + 0x18]
test r9, r9
jne 0x140003c5f
inc dword [rbx + 0x20]
jmp 0x140003c9b
mov rcx, qword [rbx + 8]
sub rdi, rcx
cmp byte [rbx + 0x24], 0
jne 0x140003c8b
test rdi, rdi
je 0x140003c8b
mov r8, rdi
mov edx, 1
call qword [sym.imp.MSVCR120.dll_fwrite]
add dword [rbx + 0x20], eax
cmp rax, rdi
je 0x140003c8b
mov byte [rbx + 0x24], 1
mov rax, qword [rbx + 8]
mov qword [rbx], rax
mov rax, qword [rbx]
mov byte [rax], 0x20
inc qword [rbx]
dec rsi
jne 0x140003c40
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140003fb0
Capabilities:
Write file on windows

Disassembly:
test edx, edx
jle 0x140004079
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push r14
sub rsp, 0x20
mov qword [rsp + 0x30], rsi
mov rbx, r8
mov ebp, edx
mov qword [rsp + 0x38], rdi
mov r14, rcx
nop word [rax + rax]
cmp qword [rbx + 0x10], 0
je 0x140003fee
mov eax, dword [rbx + 0x10]
sub eax, dword [rbx]
jmp 0x140003ff0
mov eax, ebp
test eax, eax
jg 0x140004035
mov r9, qword [rbx + 0x18]
test r9, r9
je 0x14000405c
mov rcx, qword [rbx + 8]
mov rdi, qword [rbx]
sub rdi, rcx
cmp byte [rbx + 0x24], 0
jne 0x14000402c
test rdi, rdi
je 0x14000402c
mov r8, rdi
mov edx, 1
call qword [sym.imp.MSVCR120.dll_fwrite]
add dword [rbx + 0x20], eax
cmp rax, rdi
je 0x14000402c
mov byte [rbx + 0x24], 1
mov rax, qword [rbx + 8]
mov qword [rbx], rax
jmp 0x140004056
mov rcx, qword [rbx]
cmp eax, ebp
mov esi, ebp
cmovl esi, eax
mov rdx, r14
movsxd rdi, esi
mov r8, rdi
call qword [sym.imp.MSVCR120.dll_memmove]
add qword [rbx], rdi
add r14, rdi
sub ebp, esi
test ebp, ebp
jg 0x140003fe0
jmp 0x14000405f
add dword [rbx + 0x20], ebp
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140004130
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
cmp dword [r8], 0
mov rbx, r9
mov rdi, r8
mov r14, rdx
mov esi, ecx
jle 0x1400041a8
test ecx, ecx
je 0x1400041a8
mov ecx, dword [rdx]
test ecx, ecx
je 0x140004171
mov rdx, rbx
call fcn.140004080
dec dword [rdi]
mov dword [r14], 0
cmp dword [rdi], 0
jle 0x1400041a8
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x140004198
cmp qword [rbx], rax
jb 0x140004198
cmp qword [rbx + 0x18], 0
jne 0x140004190
inc dword [rbx + 0x20]
jmp 0x1400041a1
mov rcx, rbx
call fcn.140002d90
mov rax, qword [rbx]
mov byte [rax], sil
inc qword [rbx]
dec dword [rdi]
cmp dword [rdi], 0
jg 0x140004176
xor eax, eax
cmp dword [r14], eax
setne al
cmp dword [rdi], eax
jle 0x14000421d
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x140004206
mov rsi, qword [rbx]
cmp rsi, rax
jb 0x140004206
mov r9, qword [rbx + 0x18]
test r9, r9
jne 0x1400041d3
inc dword [rbx + 0x20]
jmp 0x14000420f
mov rcx, qword [rbx + 8]
sub rsi, rcx
cmp byte [rbx + 0x24], 0
jne 0x1400041ff
test rsi, rsi
je 0x1400041ff
mov r8, rsi
mov edx, 1
call qword [sym.imp.MSVCR120.dll_fwrite]
add dword [rbx + 0x20], eax
cmp rax, rsi
je 0x1400041ff
mov byte [rbx + 0x24], 1
mov rax, qword [rbx + 8]
mov qword [rbx], rax
mov rax, qword [rbx]
mov byte [rax], 0x20
inc qword [rbx]
dec dword [rdi]
xor eax, eax
cmp dword [r14], eax
setne al
cmp dword [rdi], eax
jg 0x1400041b4
mov esi, dword [r14]
test esi, esi
je 0x14000425f
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x140004246
cmp qword [rbx], rax
jb 0x140004246
cmp qword [rbx + 0x18], 0
jne 0x14000423e
inc dword [rbx + 0x20]
jmp 0x14000424f
mov rcx, rbx
call fcn.140002d90
mov rax, qword [rbx]
mov byte [rax], sil
inc qword [rbx]
mov eax, dword [rdi]
test eax, eax
jle 0x140004259
dec eax
jmp 0x14000425d
jns 0x14000425f
inc eax
mov dword [rdi], eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x1400049f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140004a18
call qword [sym.imp.MSVCR120.dll__errno]
mov dword [rax], 2
xor eax, eax
add rsp, 0x20
pop rbx
ret
test al, 0x10
jne 0x140004a30
call qword [sym.imp.MSVCR120.dll__errno]
mov dword [rax], 0x14
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov ecx, 0x120
mov qword [rsp + 0x30], rdi
call qword [sym.imp.MSVCR120.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x140004a61
call qword [sym.imp.MSVCR120.dll__errno]
mov rdi, qword [rsp + 0x30]
mov dword [rax], 0xc
xor eax, eax
add rsp, 0x20
pop rbx
ret
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [rbx + rcx], 0
jne 0x140004a65
add rcx, 4
call qword [sym.imp.MSVCR120.dll_malloc]
mov rcx, rax
mov qword [rdi], rax
test rax, rax
jne 0x140004aa5
call qword [sym.imp.MSVCR120.dll__errno]
mov rcx, rdi
mov dword [rax], 0xc
call qword [sym.imp.MSVCR120.dll_free]
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rdx, rax
nop dword [rax + rax]
movzx eax, byte [rbx]
lea rdx, [rdx + 1]
lea rbx, [rbx + 1]
mov byte [rdx - 1], al
test al, al
jne 0x140004ab0
or rax, 0xffffffffffffffff
nop word [rax + rax]
cmp byte [rcx + rax + 1], 0
lea rax, [rax + 1]
jne 0x140004ad0
cmp byte [rax + rcx - 1], 0x2f
je 0x140004b1a
or rax, 0xffffffffffffffff
nop word [rax + rax]
cmp byte [rcx + rax + 1], 0
lea rax, [rax + 1]
jne 0x140004af0
cmp byte [rax + rcx - 1], 0x5c
je 0x140004b1a
lea rdx, [rcx - 1]
cmp byte [rdx + 1], 0
lea rdx, [rdx + 1]
jne 0x140004b06
movzx eax, word [0x140006b30]
mov word [rdx], ax
dec rcx
nop dword [rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140004b20
movzx eax, word [0x140006b34]
mov qword [rdi + 0x118], 0xffffffffffffffff
mov word [rcx], ax
xor eax, eax
mov dword [rdi + 8], eax
mov word [rdi + 0xc], ax
mov rax, rdi
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
Function at 0x140004b60
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push rbx
sub rsp, 0x170
mov rax, qword [0x140008010]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rbx, rcx
mov rcx, qword [rcx + 0x118]
lea rdx, [rsp + 0x20]
cmp rcx, 0xffffffffffffffff
jne 0x140004bd2
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rbx + 0x118], rax
cmp rax, 0xffffffffffffffff
jne 0x140004be7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140004bc1
call qword [sym.imp.MSVCR120.dll__errno]
mov dword [rax], 0
xor eax, eax
jmp 0x140004c25
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140005170
xor eax, eax
jmp 0x140004c25
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140004be7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jmp 0x140004baf
lea rdx, [rsp + 0x4c]
mov rax, rbx
lea rcx, [rsp + 0x4c]
sub rax, rdx
lea rdx, [rax + 0x10]
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx + rcx - 1], al
test al, al
jne 0x140004c00
or rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax + 0x10], 0
jne 0x140004c13
mov word [rbx + 0xe], ax
lea rax, [rbx + 8]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140005360
add rsp, 0x170
pop rbx
ret

Function at 0x14001000d
Capabilities:
Resolve function by hash

Disassembly:
movabs eax, dword fs:[0xc78c08500000030]
mov eax, dword [rax + 0xc]
mov esi, dword [rax + 0x1c]
lodsd eax, dword [rsi]
mov ebx, dword [rax + 8]
jmp 0x14001002c
pop rsi
add esi, 3
push rbx
mov edx, 0xec0e4e8e
call rsi
push rax
mov edx, 0x7c0dfcaa
call rsi
push rax
push rdi
mov edx, 0x4ee4a045
call rsi
xor edx, edx
push rdx
push 0x6d756369
push 0x6c656167
push rsp
push rdx
push rdx
call rax
push rax
mov edx, 0x75da1966
call rsi
call rax
xchg edi, eax
mov edx, 0xffd97fb
call rsi
call rax
cmp edi, 0xb7
jne 0x14001007b
mov esp, ebp
invalid
call fcn.14001009c
sti
xchg edi, eax
std
pcmpeqd mm5, qword [rbp - 0x50]
jb 0x140010088
jb 0x140010088
mov bl, 0x16
movabs eax, dword [0xd368a7c7d2d83d6a]
invalid
Function at 0x14001128f
Capabilities:
Terminate process

Disassembly:
jmp 0x140016e40
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140011339
Capabilities:
Parse pe header

Disassembly:
jmp 0x140018190
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400181b0
xor al, al
jmp 0x140018231
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400181c3
xor al, al
jmp 0x140018231
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400181ed
xor al, al
jmp 0x140018231
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140018201
xor al, al
jmp 0x140018231
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140018213
xor al, al
jmp 0x140018231
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001822f
xor al, al
jmp 0x140018231
mov al, 1
add rsp, 0x38
ret