joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140033ee0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0x50
lea rbp, [rsp + 0x20]
mov qword [rbp], 0xfffffffffffffffe
mov qword [rbp + 0x58], rbx
mov qword [rbp + 0x60], rsi
mov rax, qword [0x140119a90]
xor rax, rbp
mov qword [rbp + 0x28], rax
mov r14, rcx
add rcx, 0x180
cmp qword [rcx + 0x18], 0x10
jb 0x140033f20
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
lea r8, str.IOM_VERSION
mov edx, 0x3e8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
je 0x140034065
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x140034065
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r9, rax
lea ecx, [rbx + 1]
mov edx, ecx
lea rax, [rcx + 0xf]
cmp rax, rdx
ja 0x140033f94
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.140061020
sub rsp, rax
lea rdi, [rsp + 0x20]
mov r8, rbx
mov rdx, r9
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + rdi], 0
mov qword [rbp + 0x20], 0xf
xor r8d, r8d
mov qword [rbp + 0x18], r8
mov byte [rbp + 8], r8b
cmp byte [rdi], r8b
je 0x140033fdd
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdi + r8], 0
jne 0x140033fd3
mov rdx, rdi
lea rcx, [rbp + 8]
call fcn.140008230
nop
lea rcx, [r14 + 0x160]
lea rax, [rbp + 8]
cmp rcx, rax
je 0x14003400b
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 8]
call fcn.140008100
nop
mov rax, qword [rbp + 0x20]
cmp rax, 0x10
jb 0x140034065
inc rax
mov rcx, qword [rbp + 8]
cmp rax, 0x1000
jb 0x140034060
test cl, 0x1f
je 0x140034030
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140034040
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x140034050
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x14003405d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.1400608a4
mov rcx, qword [rbp + 0x28]
xor rcx, rbp
call fcn.140060f20
mov rbx, qword [rbp + 0x58]
mov rsi, qword [rbp + 0x60]
lea rsp, [rbp + 0x30]
pop r14
pop rdi
pop rbp
ret
Function at 0x14003f070
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
movzx ebx, r8b
mov rdi, rdx
mov rsi, rcx
mov r11, qword [rcx]
mov r10, qword [r11 + 8]
mov r8b, 1
nop dword [rax]
cmp byte [r10 + 0x19], 0
jne 0x14003f110
mov r11, r10
test bl, bl
je 0x14003f0da
mov rax, qword [r10 + 0x20]
mov rcx, qword [r9]
cmp rax, rcx
jae 0x14003f0bf
mov r8b, 1
jmp 0x14003f0d4
jbe 0x14003f0c6
xor r8b, r8b
jmp 0x14003f0d4
movzx eax, word [r9 + 8]
cmp word [r10 + 0x28], ax
setl r8b
xor r8b, 1
jmp 0x14003f100
mov rax, qword [r9]
mov rcx, qword [r10 + 0x20]
cmp rax, rcx
jae 0x14003f0eb
mov r8b, 1
jmp 0x14003f100
jbe 0x14003f0f2
xor r8b, r8b
jmp 0x14003f100
movzx eax, word [r10 + 0x28]
cmp word [r9 + 8], ax
setl r8b
test r8b, r8b
je 0x14003f10a
mov r10, qword [r10]
jmp 0x14003f10e
mov r10, qword [r10 + 0x10]
jmp 0x14003f0a0
mov rax, r11
mov qword [rsp + 0x30], rax
test r8b, r8b
je 0x14003f1b6
mov rcx, qword [rsi]
cmp r11, qword [rcx]
jne 0x14003f15f
movzx eax, byte [rsp + 0x80]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], r9
mov r9, r11
mov r8b, 1
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14003ead0
mov rcx, qword [rax]
mov qword [rdi], rcx
mov byte [rdi + 8], 1
mov rax, rdi
jmp 0x14003f20e
cmp byte [r11 + 0x19], 0
je 0x14003f16c
mov rax, qword [r11 + 0x10]
jmp 0x14003f1b1
mov rcx, qword [r11]
cmp byte [rcx + 0x19], 0
jne 0x14003f190
mov rax, rcx
nop dword [rax + rax]
mov rcx, qword [rax + 0x10]
cmp byte [rcx + 0x19], 0
jne 0x14003f1b1
mov rax, rcx
jmp 0x14003f180
mov rcx, qword [rax + 8]
cmp byte [rcx + 0x19], 0
jne 0x14003f1a9
cmp rax, qword [rcx]
jne 0x14003f1a9
mov rax, rcx
mov qword [rsp + 0x30], rcx
jmp 0x14003f190
cmp byte [rax + 0x19], 0
cmove rax, rcx
mov qword [rsp + 0x30], rax
mov rcx, qword [rax + 0x20]
mov rdx, qword [r9]
cmp rcx, rdx
jb 0x14003f1e0
ja 0x14003f1d4
movzx ecx, word [r9 + 8]
cmp word [rax + 0x28], cx
setl cl
test cl, cl
jne 0x14003f1e0
mov qword [rdi], rax
mov byte [rdi + 8], 0
mov rax, rdi
jmp 0x14003f20e
movzx eax, byte [rsp + 0x80]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], r9
mov r9, r11
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14003ead0
mov rcx, qword [rax]
mov qword [rdi], rcx
mov byte [rdi + 8], 1
mov rax, rdi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140040560
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
movzx ebx, r8b
mov rsi, rdx
mov rdi, rcx
mov r11, qword [rcx]
mov r10, qword [r11 + 8]
mov r8b, 1
nop dword [rax]
cmp byte [r10 + 0x19], 0
jne 0x14004063f
mov r11, r10
test bl, bl
je 0x1400405ef
mov r8, qword [r9]
mov rax, qword [r10 + 0x20]
cmp rax, r8
jne 0x1400405b3
xor r8b, r8b
jmp 0x1400405e9
mov rax, qword [rax + 0x10]
mov r8, qword [r8 + 0x10]
cmp rax, r8
jne 0x1400405c5
xor r8b, r8b
jmp 0x1400405e9
sub r8, rax
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1400405e3
inc rax
test ecx, ecx
jne 0x1400405d0
test edx, edx
sets r8b
xor r8b, 1
jmp 0x140040629
mov r8, qword [r10 + 0x20]
mov rcx, qword [r9]
cmp rcx, r8
je 0x140040633
mov rcx, qword [rcx + 0x10]
mov r8, qword [r8 + 0x10]
cmp rcx, r8
je 0x140040633
sub r8, rcx
nop dword [rax + rax]
movzx edx, byte [rcx]
movzx eax, byte [rcx + r8]
sub edx, eax
jne 0x140040623
inc rcx
test eax, eax
jne 0x140040610
test edx, edx
sets r8b
test r8b, r8b
je 0x140040636
mov r10, qword [r10]
jmp 0x14004063a
xor r8b, r8b
mov r10, qword [r10 + 0x10]
jmp 0x140040590
movzx eax, byte [rsp + 0x70]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], r9
mov r9, r11
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.140040290
mov rcx, qword [rax]
mov qword [rsi], rcx
mov byte [rsi + 8], 1
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140045390
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov ecx, dword [0x140119760]
cmp ecx, 0xffffffff
jne 0x1400453b8
xor esi, esi
jmp 0x1400453c1
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov qword [rsp + 0x40], rsi
test rsi, rsi
je 0x1400454b3
nop
mov rbx, qword [rsi + 0x18]
cmp qword [rsi + 0x30], 0
jne 0x1400453e6
test rbx, rbx
je 0x14004548c
jmp 0x1400453f0
test rbx, rbx
je 0x140045444
nop dword [rax + rax]
mov rax, qword [rbx + 8]
mov qword [rsi + 0x18], rax
mov rcx, qword [rbx]
test rcx, rcx
je 0x140045427
mov rax, qword [rcx]
call qword [rax + 8]
mov rdi, qword [rbx]
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsi + 0x18]
test rbx, rbx
jne 0x1400453f0
cmp qword [rsi + 0x30], 0
je 0x1400453d0
nop dword [rax + rax]
mov rbx, qword [rsi + 0x28]
mov rbx, qword [rbx]
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x14004546f
mov rdx, qword [rbx + 0x38]
test rdx, rdx
je 0x14004546f
mov rax, qword [rcx]
call qword [rax + 8]
mov r8, rbx
lea rdx, [rsp + 0x48]
lea rcx, [rsi + 0x28]
call fcn.14002ea80
cmp qword [rsi + 0x30], 0
jne 0x140045450
jmp 0x1400453d0
lea rdx, [0x140044d20]
lea rcx, [0x140129090]
call fcn.140044b00
mov ecx, dword [0x140119760]
cmp ecx, 0xffffffff
je 0x1400454b3
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
test rsi, rsi
je 0x1400454e3
or eax, 0xffffffff
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x1400454e3
mov rax, qword [rsi]
xor edx, edx
mov rcx, rsi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140045500
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r9, qword [rcx]
lea r8, [0x140045590]
mov rdi, rcx
xor edx, edx
xor ecx, ecx
lea rax, [r9 + 0x20]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rsi, rax
test rax, rax
jne 0x140045545
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 0x40], rbx
mov rax, qword [rdi]
lock inc dword [rax + 8]
mov rbx, qword [rdi]
mov rcx, qword [rbx + 0x10]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140045568
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], rsi
mov rcx, qword [rdi]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rbx, qword [rsp + 0x40]
mov al, 1
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140061bc0
Capabilities:
Accept command line arguments

Disassembly:
push rdi
push r15
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x50], rax
mov rdi, rax
test rax, rax
jne 0x140061bf5
or rax, 0xffffffffffffffff
add rsp, 0x78
pop r15
pop rdi
ret
mov eax, dword [rsp + 0x40]
mov r15, 0xffffffffffffffff
inc eax
mov qword [rsp + 0x90], rbx
movsxd rcx, eax
mov eax, 8
mul rcx
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0x60], r14
cmovo rax, r15
mov rcx, rax
call fcn.140060ffc
mov r14, rax
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x40]
xor ebx, ebx
test eax, eax
jle 0x140061cf9
mov qword [rsp + 0x98], rbp
mov qword [rsp + 0x70], r12
mov r12, r14
mov qword [rsp + 0x68], r13
mov r13, rdi
sub r13, r14
mov r14d, ebx
nop dword [rax]
nop word [rax + rax]
mov rbp, qword [r12 + r13]
mov r9d, r15d
mov qword [rsp + 0x38], rbx
mov r8, rbp
mov qword [rsp + 0x30], rbx
xor edx, edx
mov dword [rsp + 0x28], ebx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
mov rcx, rdi
call fcn.140060ffc
mov qword [rsp + 0x38], rbx
mov r9d, r15d
mov qword [rsp + 0x30], rbx
mov r8, rbp
mov dword [rsp + 0x28], edi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [r12], rsi
lea r12, [r12 + 8]
mov eax, dword [rsp + 0x40]
inc r14d
cmp r14d, eax
jl 0x140061c70
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x98]
cdqe
mov rcx, rdi
mov qword [r14 + rax*8], rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rsp + 0x40]
mov rdx, r14
call fcn.14000a1d0
mov esi, eax
cmp dword [rsp + 0x40], ebx
jle 0x140061d39
mov rdi, r14
nop
mov rcx, qword [rdi]
test rcx, rcx
je 0x140061d39
call fcn.140061004
inc ebx
add rdi, 8
cmp ebx, dword [rsp + 0x40]
jl 0x140061d20
mov rcx, r14
call fcn.140061004
mov r14, qword [rsp + 0x60]
mov eax, esi
mov rsi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0x90]
add rsp, 0x78
pop r15
pop rdi
ret
Function at 0x14002934c
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.14001ca14
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001ca14
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002949c
cmp rax, 0xffffffffffffffff
je 0x14002949c
xor edi, edi
test rbp, rbp
jle 0x140029447
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f340
mov rbx, rax
test rax, rax
jne 0x1400293d4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002943d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a348
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.14001d6f0
cmp eax, 0xffffffff
je 0x14002941d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400293e4
mov edx, r15d
mov ecx, r14d
call fcn.14001a348
jmp 0x14002943d
cmp byte [rsi + 0x38], dil
je 0x140029434
cmp dword [rsi + 0x34], 5
jne 0x140029434
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002943d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b0dc
jmp 0x1400294b0
jns 0x1400294b0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001ca14
cmp rax, 0xffffffffffffffff
jne 0x140029468
cmp byte [rsi + 0x30], dil
je 0x1400294b0
mov edi, dword [rsi + 0x2c]
jmp 0x1400294b0
mov ecx, r14d
call fcn.140018804
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400294b0
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 0x1400294b0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400294a9
mov eax, dword [rsi + 0x2c]
jmp 0x1400294ae
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001ca14
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 0x1400d8312
Capabilities:
Authenticate hmac

Disassembly:
lea ecx, [rcx + rdi*2 - 0x5dae8693]
dec rdi
lea rbx, [rdi*2 - 0x3369d8c7]
movsx eax, dx
not ecx
add ax, bx
movsx r8d, di
xor eax, edi
bswap ecx
sar eax, 0x35
jp 0x1400e4b38
call fcn.1400dfbce
lea rbp, [rbp + rcx - 0x5a]
add rax, rsi
sar dx, cl
ror rax, cl
movzx edx, word [r9 + rcx - 0x62]
mov ebx, ecx
ja 0x1400bf534
mov edx, 0x928a7084
mov ecx, dword [r9]
sal dl, 1
movzx edi, dx
shl edx, 0xb2
lea r9, [r9 + rdi*8 - 0x3803c]
xchg dl, dil
xor ecx, r11d
jmp 0x1400ca883
lea r9, [r9 + rdi*2 - 0x4717e968]
mov qword [rsp + rcx*2 - 0x1e96c], rdi
call fcn.1400e04bd
pop r11
lea rbp, [rdi + rbp - 4]
jmp 0x1400e3d4d
mov dword [rbp + rdi], r8d
mov esi, dword [rdi + r9]
jmp 0x1400cfe6e
lea ecx, [rcx + rdx + 0x1c95db33]
call fcn.1400bae22
Function at 0x140013ec0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013cec

Function at 0x140fb4058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140fb41df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140fb4089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140fb406f
add dl, dl
jne 0x140fb4096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140fb40f6
xor eax, eax
add dl, dl
jne 0x140fb40a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140fb41ad
add dl, dl
jne 0x140fb40b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140fb40c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140fb40d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140fb40dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140fb40ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140fb407e
mov eax, 1
add dl, dl
jne 0x140fb4106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140fb4113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140fb40fb
sub eax, ebx
mov ebx, 1
jne 0x140fb414c
mov ecx, 1
add dl, dl
jne 0x140fb412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140fb413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140fb4123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140fb407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140fb4168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140fb4175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140fb415d
cmp eax, 0x7d00
jae 0x140fb419b
cmp eax, 0x500
jb 0x140fb4196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140fb407e
cmp eax, 0x7f
ja 0x140fb419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140fb407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140fb41d2
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 0x140fb407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140e0afd0]
mov dword [rax], 1
mov rax, qword [0x140e0afe0]
mov dword [rax], 1
mov rax, qword [0x140e0aff0]
mov dword [rax], 1
mov rax, qword [0x140e0afc0]
mov dword [rax], 1
mov rax, qword [0x140e0ae30]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000150a
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400020e9
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbp, qword [fcn.140016ec0]
xor ebx, ebx
mov rdi, rcx
mov rsi, rdx
lea r12, [rdx - 1]
cmp rbx, rsi
jl 0x140002149
mov ecx, 1
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x14001a19c]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbp
mov rcx, rax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp 0x1400167a0
test rbx, rbx
jns 0x140002159
mov rdx, r12
mov rcx, rbx
call fcn.140004e34
mov r13, qword [rdi + rbx*8]
mov ecx, 1
call rbp
xor r8d, r8d
mov rcx, rax
mov rdx, r13
call fcn.140001fce
add rbx, 1
jno 0x140002108
call fcn.140003b64
jmp 0x140002108

Function at 0x1400022a3
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r8d, r8d
mov r13, rcx
mov r12, rdx
test rdx, rdx
je 0x1400022c4
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, r12
mov r9, r13
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, r13
add rsp, 0x28
pop r12
pop r13
jmp 0x1400167a0
jmp qword [sym.imp.msvcrt.dll_fflush]
Function at 0x14000e68e
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1400180a0], 0
je 0x14000e6ae
mov r8d, 1
jmp 0x14000e7f0
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
xor ebx, ebx
mov r8, qword [rax + 0x10]
xor eax, eax
mov rdx, qword [r8 + 0x30]
test rdx, rdx
je 0x14000e711
movsxd rcx, dword [rdx + 0x3c]
mov ecx, dword [rdx + rcx + 0x88]
test ecx, ecx
je 0x14000e709
lea rax, [rcx + rdx]
mov ecx, dword [rax + 0xc]
add rcx, rdx
mov r9d, dword [rcx]
or r9d, 0x20202020
cmp r9d, 0x6c64746e
jne 0x14000e709
mov ecx, dword [rcx + 4]
or ecx, 0x20202020
cmp ecx, 0x6c642e6c
je 0x14000e71e
mov r8, qword [r8]
mov rbx, rdx
jmp 0x14000e6c3
xor r8d, r8d
test rax, rax
jne 0x14000e721
jmp 0x14000e7f0
mov rbx, rdx
mov ebp, dword [rax + 0x1c]
mov esi, dword [rax + 0x24]
xor r10d, r10d
lea r13, [0x1400180a4]
mov edx, dword [rax + 0x18]
mov eax, dword [rax + 0x20]
add rsi, rbx
add rbp, rbx
lea r11d, [rdx - 1]
add rax, rbx
lea rdi, [rax + r11*4]
add r11, r11
add r11, rsi
mov ecx, dword [rdi]
add rcx, rbx
cmp word [rcx], 0x775a
jne 0x14000e784
mov eax, r10d
inc r10d
lea r12, [r13 + rax*8]
call fcn.14000e666
mov dword [r12], eax
movzx eax, word [r11]
mov eax, dword [rbp + rax*4]
mov dword [r12 + 4], eax
cmp r10d, 0x1f4
je 0x14000e796
sub rdi, 4
lea rax, [r11 - 2]
cmp rsi, r11
je 0x14000e796
mov r11, rax
jmp 0x14000e74e
mov dword [0x1400180a0], r10d
lea r11, [0x1400180a4]
dec r10d
test r10d, r10d
je 0x14000e6a3
lea rax, [0x1400180a0]
xor edx, edx
lea ecx, [rdx + 1]
mov r8d, dword [rax + 8]
mov rdx, rcx
lea rcx, [r11 + rcx*8]
mov r9d, dword [rcx + 4]
cmp r8d, r9d
jbe 0x14000e7e2
mov ebx, dword [rax + 4]
mov esi, dword [rcx]
mov dword [rax + 8], r9d
mov dword [rax + 4], esi
mov dword [rcx], ebx
mov dword [rcx + 4], r8d
add rax, 8
cmp edx, r10d
jb 0x14000e7b9
dec r10d
jmp 0x14000e7a7
mov eax, r8d
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x14000eb8e
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0xedafca3f
call fcn.14000e800
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
nop
syscall
ret

Function at 0x14000ebd1
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x19991f17
call fcn.14000e800
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
nop
syscall
ret

Function at 0x14000ec14
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x8b19978d
call fcn.14000e800
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
nop
syscall
ret