joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400294b0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0xb0
mov rax, qword [0x140045380]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov esi, ecx
mov r9d, 0x78
and ecx, 0x3ff
mov rbp, r8
mov ebx, edx
lea edx, [r9 - 0x77]
lea r8, [rsp + 0x20]
bts ecx, 0xa
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x140029599
movzx ecx, byte [rsp + 0x20]
xor edx, edx
mov qword [rsp + 0xc8], rdi
test cl, cl
lea r8, [rsp + 0x20]
mov edi, edx
je 0x14002954a
nop
lea eax, [rcx - 0x61]
add r8, 1
cmp al, 5
ja 0x140029530
add cl, 0xd9
jmp 0x14002953a
lea eax, [rcx - 0x41]
cmp al, 5
ja 0x14002953a
add cl, 0xf9
movsx eax, cl
mov cl, byte [r8]
add edi, edi
test cl, cl
lea edi, [rax + rdi*8 - 0x30]
jne 0x140029520
cmp esi, edi
je 0x14002958c
test ebx, ebx
je 0x14002958c
mov rdi, qword [rbp]
movzx eax, byte [rdi]
lea rcx, [rdi + 1]
nop
cmp al, 0x41
jl 0x140029568
cmp al, 0x5a
jle 0x14002956e
sub al, 0x61
cmp al, 0x19
ja 0x140029579
mov al, byte [rcx]
add edx, 1
add rcx, 1
jmp 0x140029560
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
cmp edx, ecx
je 0x140029591
mov eax, 1
mov rdi, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140018080
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rsi
ret
Function at 0x14002a480
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140045380]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x14002a4c7
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140018080
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.1400193b0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140018080
add rsp, 0x38
ret
Function at 0x14002d300
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov edi, r8d
mov r13, rdx
mov r14, rcx
call fcn.1400205c0
xor ebx, ebx
cmp qword [0x1400483e8], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x14002d42c
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x14002d53f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002d53f
mov rcx, rax
call fcn.1400204f0
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1400483e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400204f0
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1400483f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400204f0
lea rcx, [rsp + 0x98]
mov qword [0x1400483f8], rax
call fcn.14001b2f0
test eax, eax
je 0x14002d3df
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140017860
cmp dword [rsp + 0x98], 2
jne 0x14002d42c
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400204f0
test rax, rax
mov qword [0x140048408], rax
je 0x14002d42c
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400204f0
mov qword [0x140048400], rax
mov rcx, qword [0x140048400]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x14002d4d8
cmp qword [0x140048408], rbp
je 0x14002d4d8
call fcn.1400206b0
mov rcx, qword [0x140048408]
mov rsi, rax
call fcn.1400206b0
test rsi, rsi
mov r12, rax
je 0x14002d4d8
test rax, rax
je 0x14002d4d8
call rsi
test rax, rax
je 0x14002d4a3
lea rcx, [rsp + 0x34]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14002d4a3
test byte [rsp + 0x40], 1
jne 0x14002d4d8
lea rcx, [rsp + 0x30]
call fcn.14001b340
test eax, eax
je 0x14002d4c5
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140017860
cmp dword [rsp + 0x30], 4
jb 0x14002d4d2
bts edi, 0x15
jmp 0x14002d516
bts edi, 0x12
jmp 0x14002d516
mov rcx, qword [0x1400483f0]
cmp rcx, rbp
je 0x14002d516
call fcn.1400206b0
test rax, rax
je 0x14002d516
call rax
test rax, rax
mov rbx, rax
je 0x14002d516
mov rcx, qword [0x1400483f8]
cmp rcx, rbp
je 0x14002d516
call fcn.1400206b0
test rax, rax
je 0x14002d516
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1400483e8]
call fcn.1400206b0
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x14002d53f
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14002d541
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002fb30
Capabilities:
Get geographical location

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x40
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x40], rbx
mov qword [rbp + 0x48], rsi
mov qword [rbp + 0x50], rdi
mov rax, qword [0x140045380]
xor rax, rbp
mov qword [rbp], rax
mov eax, dword [0x140048480]
mov r15, r9
mov r13d, r8d
test eax, eax
mov r14d, edx
mov rbx, rcx
jne 0x14002fbb1
lea edx, [rax + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x14002fb94
mov dword [0x140048480], 1
jmp 0x14002fbb6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x14002fbab
mov dword [0x140048480], 2
jmp 0x14002fbdb
mov eax, dword [0x140048480]
cmp eax, 1
jne 0x14002fbce
mov r9d, dword [rbp + 0x60]
mov r8, r15
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x14002fce2
cmp eax, 2
je 0x14002fbdb
test eax, eax
jne 0x14002fce0
mov esi, dword [rbp + 0x68]
xor edi, edi
test esi, esi
jne 0x14002fbea
mov rax, qword [rbx]
mov esi, dword [rax + 4]
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
movsxd r12, eax
je 0x14002fce0
jle 0x14002fce0
xor edx, edx
mov rax, 0xffffffffffffffe0
mov rcx, r12
div r12
cmp rax, 1
jb 0x14002fce0
add rcx, 0x10
cmp rcx, 0x400
ja 0x14002fc68
lea rax, [rcx + 0xf]
cmp rax, rcx
ja 0x14002fc46
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.140035ea0
sub rsp, rax
lea rbx, [rsp + 0x30]
test rbx, rbx
je 0x14002fce0
mov dword [rbx], 0xcccc
jmp 0x14002fc7b
call fcn.140018710
test rax, rax
mov rbx, rax
je 0x14002fc7f
mov dword [rax], 0xdddd
add rbx, 0x10
test rbx, rbx
je 0x14002fce0
mov r9d, r12d
mov r8, rbx
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x14002fcca
mov eax, dword [rbp + 0x60]
or r9d, 0xffffffff
mov r8, rbx
test eax, eax
lea edx, [r9 + 2]
mov ecx, esi
jne 0x14002fcb9
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
jmp 0x14002fcc2
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
cmp dword [rbx - 0x10], 0xdddd
lea rcx, [rbx - 0x10]
jne 0x14002fcdc
call fcn.140018020
mov eax, edi
jmp 0x14002fce2
xor eax, eax
mov rcx, qword [rbp]
xor rcx, rbp
call fcn.140018080
mov rbx, qword [rbp + 0x40]
mov rsi, qword [rbp + 0x48]
mov rdi, qword [rbp + 0x50]
lea rsp, [rbp + 0x10]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14002fe40
Capabilities:
Get geographical location

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x50
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x40], rbx
mov qword [rbp + 0x48], rsi
mov qword [rbp + 0x50], rdi
mov rax, qword [0x140045380]
xor rax, rbp
mov qword [rbp], rax
mov eax, dword [0x140048484]
mov r15, r9
mov r13d, r8d
test eax, eax
mov r14d, edx
mov rbx, rcx
jne 0x14002fef8
lea edx, [rax + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x14002fea4
mov dword [0x140048484], 1
jmp 0x14002ff06
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x14002fef2
mov dword [0x140048484], 2
mov r9d, dword [rbp + 0x60]
mov r8, r15
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov rcx, qword [rbp]
xor rcx, rbp
call fcn.140018080
mov rbx, qword [rbp + 0x40]
mov rsi, qword [rbp + 0x48]
mov rdi, qword [rbp + 0x50]
lea rsp, [rbp + 0x10]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov eax, dword [0x140048484]
cmp eax, 2
je 0x14002feb9
test eax, eax
je 0x14002feb9
cmp eax, 1
jne 0x14002ff2e
mov esi, dword [rbp + 0x68]
xor edi, edi
test esi, esi
jne 0x14002ff15
mov rax, qword [rbx]
mov esi, dword [rax + 4]
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
movsxd r12, eax
jne 0x14002ff32
xor eax, eax
jmp 0x14002fecc
jle 0x14002ff2e
xor edx, edx
mov rax, 0xffffffffffffffe0
div r12
cmp rax, 2
jb 0x14002ff2e
lea rcx, [r12 + r12 + 0x10]
cmp rcx, 0x400
ja 0x14002ff85
lea rax, [rcx + 0xf]
cmp rax, rcx
ja 0x14002ff67
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.140035ea0
sub rsp, rax
lea rbx, [rsp + 0x40]
test rbx, rbx
je 0x14002ff2e
mov dword [rbx], 0xcccc
jmp 0x14002ff98
call fcn.140018710
test rax, rax
mov rbx, rax
je 0x14002ff9c
mov dword [rax], 0xdddd
add rbx, 0x10
test rbx, rbx
je 0x14002ff2e
mov r9d, r12d
mov r8, rbx
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x14002ffef
mov eax, dword [rbp + 0x60]
or r9d, 0xffffffff
xor edx, edx
test eax, eax
mov qword [rsp + 0x38], rdi
mov r8, rbx
mov ecx, esi
mov qword [rsp + 0x30], rdi
jne 0x14002ffde
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
jmp 0x14002ffe7
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
cmp dword [rbx - 0x10], 0xdddd
lea rcx, [rbx - 0x10]
jne 0x140030001
call fcn.140018020
mov eax, edi
jmp 0x14002fecc
Function at 0x140031430
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r13
sub rsp, 0x20
mov rbp, rdx
xor edi, edi
xor edx, edx
lea r8d, [rdi + 1]
mov esi, ecx
call fcn.14002c7e0
cmp rax, 0xffffffffffffffff
mov r13, rax
je 0x1400315d4
lea r8d, [rdi + 2]
xor edx, edx
mov ecx, esi
call fcn.14002c7e0
cmp rax, 0xffffffffffffffff
je 0x1400315d4
mov qword [rsp + 0x40], rbx
mov rbx, rbp
mov qword [rsp + 0x50], r14
sub rbx, rax
test rbx, rbx
jle 0x140031553
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r14d, 0x1000
lea edx, [rdi + 8]
mov rcx, rax
mov r8, r14
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbp, rax
jne 0x1400314d9
call fcn.14001e390
mov dword [rax], 0xc
call fcn.14001e390
mov eax, dword [rax]
mov rbx, qword [rsp + 0x40]
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop rdi
pop rsi
ret
mov edx, 0x8000
mov ecx, esi
mov qword [rsp + 0x48], r12
call fcn.1400315f0
mov r12d, eax
nop
mov r8d, ebx
cmp rbx, r14
mov rdx, rbp
cmovge r8d, r14d
mov ecx, esi
call fcn.140024740
cmp eax, 0xffffffff
je 0x140031515
cdqe
sub rbx, rax
test rbx, rbx
jg 0x1400314f0
jmp 0x14003152e
call fcn.14001e3c0
cmp dword [rax], 5
jne 0x14003152a
call fcn.14001e390
mov dword [rax], 0xd
or rdi, 0xffffffffffffffff
mov edx, r12d
mov ecx, esi
call fcn.1400315f0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r12, qword [rsp + 0x48]
jmp 0x1400315ac
test rbx, rbx
jns 0x1400315b6
xor r8d, r8d
mov rdx, rbp
mov ecx, esi
call fcn.14002c7e0
cmp rax, 0xffffffffffffffff
je 0x1400314ba
mov ecx, esi
call fcn.14002cc00
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb rdi, rdi
neg rdi
sub rdi, 1
cmp rdi, 0xffffffffffffffff
jne 0x1400315b6
call fcn.14001e390
mov dword [rax], 0xd
call fcn.14001e3c0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
cmp rdi, 0xffffffffffffffff
je 0x1400314ba
xor r8d, r8d
mov rdx, r13
mov ecx, esi
call fcn.14002c7e0
cmp rax, 0xffffffffffffffff
je 0x1400314ba
xor eax, eax
jmp 0x1400314c1
call fcn.14001e390
mov rbp, qword [rsp + 0x58]
mov eax, dword [rax]
add rsp, 0x20
pop r13
pop rdi
pop rsi
ret
Function at 0x140034900
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x30
test rcx, rcx
mov ebx, edx
jne 0x140034946
call fcn.14001e3c0
mov dword [rax], 0
call fcn.14001e390
mov ebx, 0x16
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rax], ebx
mov qword [rsp + 0x20], 0
call fcn.140017900
neg ebx
sbb eax, eax
add rsp, 0x30
pop rbx
ret
test edx, 0xfffffff9
jne 0x14003490d
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140034977
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001e3f0
call fcn.14001e390
mov ebx, dword [rax]
neg ebx
sbb eax, eax
add rsp, 0x30
pop rbx
ret
test al, 0x10
jne 0x1400349ab
test al, 1
je 0x1400349ab
test bl, 2
je 0x1400349ab
call fcn.14001e3c0
mov dword [rax], 5
call fcn.14001e390
mov dword [rax], 0xd
call fcn.14001e390
mov ebx, dword [rax]
neg ebx
sbb eax, eax
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
neg ebx
sbb eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x140001000
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
lea r8, str.update_configurations.bat
mov dword [rsp + 0x28], eax
lea rdx, str.open
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rbx, rax
cmp rax, 0x20
jle 0x140001048
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Process_executed_successfully.
call fcn.1400010f0
jmp 0x140001067
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_execute_process._Error_code:
call fcn.1400010f0
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_long___int64_____ptr64]
lea rdx, [0x1400012c0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x140001bd8
Capabilities:
Parse pe header

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

Disassembly:
call fcn.1410601df
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 0x141060089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14106006f
add dl, dl
jne 0x141060096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410600f6
xor eax, eax
add dl, dl
jne 0x1410600a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410601ad
add dl, dl
jne 0x1410600b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410600c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410600d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410600dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1410600ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14106007e
mov eax, 1
add dl, dl
jne 0x141060106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141060113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410600fb
sub eax, ebx
mov ebx, 1
jne 0x14106014c
mov ecx, 1
add dl, dl
jne 0x14106012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14106013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141060123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14106007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141060168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141060175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14106015d
cmp eax, 0x7d00
jae 0x14106019b
cmp eax, 0x500
jb 0x141060196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14106007e
cmp eax, 0x7f
ja 0x14106019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14106007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1410601d2
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 0x14106007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002290
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002290
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

Function at 0x1400023b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x14000b008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x14000b008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x14000b008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000b008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret

Function at 0x140f85388
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f85392
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f853bb
pop rbp
sub rbp, 0x33
sub rbp, 0xf85388
sub rsp, 0x20
jmp 0x140f853da
mov rax, 0xf85388
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xfffffffff6c60dba
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f853f9
jmp 0x140f85410
xor edx, dword [rbx + 0x31]
xor eax, dword [rsi - 0xd454546]
cmp edi, dword [rbx - 0x4e]
mov ebx, 0xbbf2baba
push rbx
bnd jge 0x140f854a0
mov dl, 0xba
mov edx, 0x787df2ba
xchg edx, eax
mov edx, 0x4df2baba
pop rax
mov ebx, 0xb63b317b
mov edx, 0xbbf2baba
push rdx
invalid
mov edx, 0x3753baba
mov eax, 0x52e8baba
invalid
Function at 0x140027cb4
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.14001babc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001babc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027e04
cmp rax, 0xffffffffffffffff
je 0x140027e04
xor edi, edi
test rbp, rbp
jle 0x140027daf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001e0e0
mov rbx, rax
test rax, rax
jne 0x140027d3c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027da5
mov edx, 0x8000
mov ecx, r14d
call fcn.140015690
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.14001c7bc
cmp eax, 0xffffffff
je 0x140027d85
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027d4c
mov edx, r15d
mov ecx, r14d
call fcn.140015690
jmp 0x140027da5
cmp byte [rsi + 0x38], dil
je 0x140027d9c
cmp dword [rsi + 0x34], 5
jne 0x140027d9c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027da5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001a168
jmp 0x140027e18
jns 0x140027e18
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001babc
cmp rax, 0xffffffffffffffff
jne 0x140027dd0
cmp byte [rsi + 0x30], dil
je 0x140027e18
mov edi, dword [rsi + 0x2c]
jmp 0x140027e18
mov ecx, r14d
call fcn.140016c88
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027e18
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 0x140027e18
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027e11
mov eax, dword [rsi + 0x2c]
jmp 0x140027e16
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001babc
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 0x140001960
Capabilities:
Parse pe header

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