joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140096900
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rbx, rcx
lea rax, [rbp + 0x28]
mov ecx, 2
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
mov qword [rbp - 8], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140096970
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
movsxd rsi, dword [0x1400d11f4]
mov rbx, rcx
test esi, esi
jle 0x140096aa0
mov rax, qword [0x1400d11f8]
xor r9d, r9d
add rax, 0x18
nop dword [rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400969bb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140096a43
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400969a0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140096ac2
mov rax, qword [0x1400d11f8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400d11f8]
lea rdx, [rbp - 0x30]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140096aa7
mov eax, dword [rbp - 0xc]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140096a3c
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140096a50
add dword [0x1400d11f4], 1
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 2
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400d11f8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140096a3c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop word [rax + rax]
xor esi, esi
jmp 0x1400969c8
mov rax, qword [0x1400d11f8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140097050
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
lea r13, [0x1400d1260]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400d1240]
test rbx, rbx
je 0x1400970b5
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, dword [rbx]
call r12
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400970ac
test eax, eax
jne 0x1400970ac
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140097090
mov rcx, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400972f0
Capabilities:
Parse pe header

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

Function at 0x140097320
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14009736d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140097364
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14009736f
add rax, 0x28
cmp rax, r9
jne 0x140097350
xor eax, eax
ret

Function at 0x140097370
Capabilities:
Parse pe header

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140097408
mov rdx, qword [0x1400bef70]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400973f6
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400973f6
cmp word [rax + 0x18], 0x20b
jne 0x1400973f6
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140097408
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400973e1
add rbx, 0x28
cmp rbx, rdi
je 0x140097408
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400973d8
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret

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

Disassembly:
mov rdx, qword [0x1400bef70]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140097440
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140097448
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140097440
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14009749d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140097494
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140097440
add rax, 0x28
cmp rax, r9
jne 0x140097480
xor eax, eax
ret
Function at 0x1400974a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400bef70]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400974bf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400974c8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400974bf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400974e0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400bef70]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140097500
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140097508
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140097500
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140097550
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140097547
test rcx, rcx
je 0x140097500
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140097538
xor eax, eax
ret

Function at 0x140097560
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400bef70]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14009757f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140097588
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
mov rdx, qword [0x1400bef70]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400975c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400975c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400975c0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400975c0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140097614
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140097620
add rdx, 0x28
cmp rdx, r9
jne 0x140097600
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x1400bef70]
xor r8d, r8d
cmp word [r11], 0x5a4d
mov r10d, ecx
jne 0x140097654
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
cmp dword [rcx], 0x4550
je 0x140097660
mov rax, r8
ret
cmp word [rcx + 0x18], 0x20b
jne 0x140097654
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x140097654
movzx edx, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rdx, [rcx + rdx + 0x18]
test r9w, r9w
je 0x140097654
lea ecx, [r9 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rdx + 0xc]
mov rcx, r8
cmp rax, r8
jb 0x1400976ac
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x1400976c0
add rdx, 0x28
cmp r9, rdx
jne 0x140097698
xor r8d, r8d
mov rax, r8
ret
add rax, r11
jmp 0x1400976d0
sub r10d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x1400976de
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400976b5
test r10d, r10d
jg 0x1400976c8
mov r8d, dword [rax + 0xc]
add r8, r11
mov rax, r8
ret
Function at 0x140005e00
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub r8, rdx
movabs rax, 0xcbf29ce484222325
sar r8, 1
mov r9d, 0
add r8, r8
je 0x140005e44
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140005e30
ret
Function at 0x14000a9e0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
mov ebp, 0xfffd
nop word [rax + rax]
movzx ecx, word [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp ax, 9
ja 0x14000aac3
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14000aac3
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x14000aae1
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx + 0x10]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx]
cmp rcx, rax
je 0x14000aab3
cmp word [rcx], 0x5c
jne 0x14000aaac
lea rdx, [rcx + 2]
cmp rdx, rax
je 0x14000aaac
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14000aa97
movzx eax, word [rdx]
sub ax, 0x28
cmp ax, 1
jbe 0x14000aaa9
test r8b, 0x10
jne 0x14000aaac
movzx eax, word [rdx]
sub ax, 0x7b
test bp, ax
jne 0x14000aaac
mov rcx, rdx
lea rax, [rcx + 2]
mov qword [rbx], rax
mov rcx, rbx
call fcn.140006cd0
test edi, edi
jne 0x14000aa10
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140006cc0
int3
Function at 0x140011d30
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x140011d52
xor eax, eax
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rdi
je 0x140011de6
mov rdi, rbp
mov qword [rsp + 0x50], r15
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140011db3
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x140011db3
cmp rdi, rcx
mov r15, rdi
cmovge r15, rcx
mov rcx, r14
mov r8, r15
call fcn.140057c40
mov rax, qword [rsi]
sub rdi, r15
sub dword [rax], r15d
mov rcx, qword [rbx + 0x38]
movsxd rax, r15d
add qword [rcx], rax
jmp 0x140011dd1
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140011dd9
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov r15d, 1
add r14, r15
test rdi, rdi
jg 0x140011d73
mov r15, qword [rsp + 0x50]
sub rbp, rdi
jmp 0x140011ecf
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140011dfd
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140011dff
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140011e31
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.140057c40
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140011ecc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140011e6c
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x140011ead
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.140041328
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x140011ecc
cmp rsi, rax
ja 0x140011e80
test rsi, rsi
je 0x140011ecc
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140041328
sub rsi, rax
sub rbp, rsi
mov rsi, qword [rsp + 0x40]
mov rax, rbp
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
Function at 0x1400156f0
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x140081040]
xor rax, rsp
mov qword [rbp + 0x27], rax
cmp qword [rdx + 0x18], 7
mov r14, rcx
mov r15, rdx
jbe 0x140015726
mov r15, qword [rdx]
mov rsi, qword [rdx + 0x10]
xorps xmm1, xmm1
xor ebx, ebx
mov dword [rbp + 7], 0x67452301
add rsi, rsi
mov eax, ebx
mov dword [rbp + 0xb], 0xefcdab89
xorps xmm0, xmm0
mov dword [rbp + 0xf], 0x98badcfe
mov r8d, ebx
mov dword [rbp + 0x13], 0x10325476
mov edi, ebx
mov qword [rbp + 0x17], rbx
mov dword [rbp + 0x1f], eax
mov byte [rbp + 0x23], bl
movups xmmword [rcx], xmm0
movups xmmword [rbp - 0x79], xmm1
movups xmmword [rbp - 0x69], xmm1
movups xmmword [rbp - 0x59], xmm1
movups xmmword [rbp - 0x49], xmm1
movups xmmword [rbp - 0x39], xmm1
movups xmmword [rbp - 0x29], xmm1
movups xmmword [rbp - 0x19], xmm1
movups xmmword [rbp - 9], xmm1
cmp rsi, 0x40
jb 0x1400157b1
nop dword [rax + rax]
movsxd rdx, edi
lea rcx, [rbp - 0x79]
add rdx, r15
call fcn.140014c40
add edi, 0x40
lea ecx, [rdi + 0x40]
cmp rcx, rsi
jbe 0x140015790
mov eax, dword [rbp + 0x1f]
mov r8, qword [rbp + 0x17]
movsxd rcx, edi
cmp rcx, rsi
je 0x1400157da
lea rdx, [rcx + r15]
mov r8, rsi
sub r8, rcx
lea rcx, [rbp - 0x79]
add rcx, rax
call fcn.140057c40
mov ebx, dword [rbp + 0x1f]
sub esi, edi
mov r8, qword [rbp + 0x17]
add ebx, esi
cmp byte [rbp + 0x23], 0
mov dword [rbp + 0x1f], ebx
jne 0x140015889
mov eax, 0x38
mov ecx, ebx
sub eax, ebx
add r8, rcx
test eax, eax
mov qword [rbp + 0x17], r8
lea edi, [rax + 0x40]
cmovg edi, eax
test edi, edi
jle 0x140015832
mov byte [rbp + rcx - 0x79], 0x80
cmp edi, 1
jle 0x140015826
mov ecx, dword [rbp + 0x1f]
lea eax, [rdi - 1]
movsxd r8, eax
inc ecx
lea rax, [rbp - 0x79]
xor edx, edx
add rcx, rax
call fcn.1400583d0
mov ebx, dword [rbp + 0x1f]
mov r8, qword [rbp + 0x17]
add ebx, edi
mov dword [rbp + 0x1f], ebx
lea ecx, [r8*8]
mov eax, ebx
mov rdx, r8
shr r8d, 0x1d
shr rdx, 0x20
mov dword [rbp + rax - 0x79], ecx
mov eax, dword [rbp + 0x1f]
add eax, 4
mov dword [rbp + 0x1f], eax
mov ecx, eax
lea eax, [rdx*8]
or r8d, eax
lea rdx, [rbp - 0x79]
mov dword [rbp + rcx - 0x79], r8d
lea rcx, [rbp - 0x79]
add dword [rbp + 0x1f], 4
call fcn.140014c40
cmp dword [rbp + 0x1f], 0x40
jbe 0x140015889
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x79]
call fcn.140014c40
mov ecx, dword [rbp + 7]
mov rax, r14
mov dword [r14], ecx
mov ecx, dword [rbp + 0xb]
mov dword [r14 + 4], ecx
mov ecx, dword [rbp + 0xf]
mov dword [r14 + 8], ecx
mov ecx, dword [rbp + 0x13]
mov dword [r14 + 0xc], ecx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140032ce0
mov rbx, qword [rsp + 0x110]
add rsp, 0xd0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140032c2c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140032c66
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140032c6b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140032cb4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14005dcc0]
cmp byte [rcx + rax], 0
je 0x140032cb4
dec r8
sub rdx, 1
jne 0x140032c9a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140033c68
Capabilities:
Parse pe header

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

Function at 0x14004225c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400422cb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400422cb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400422cb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400422cb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400422cb
cmp dword [rcx + 0x84], 0xe
jbe 0x1400422cb
cmp dword [rcx + 0xf8], 0
je 0x1400422cb
mov ecx, ebx
call fcn.14004237c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140042158
nop
cmp dword [rbp + 0x20], 0
je 0x140042319
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140042324
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14004225c

Function at 0x140042460
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14004225c
Function at 0x140044a88
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140044abf
call fcn.14003e27c
mov dword [rax], 0x16
call fcn.14003e110
xor eax, eax
jmp 0x140044b4d
mov rdx, r9
mov rcx, r8
call fcn.140044a24
mov rbx, rax
test rax, rax
je 0x140044b4a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140044950]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140044b37
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003e1f0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140044b1e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140044b2d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400456dc
jmp 0x140044b4a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140044b47
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140049504
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14004951a
mov al, 1
jmp 0x14004957a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14004952b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140049578
mov ecx, dword [rcx + 0x18]
nop
call fcn.14004db44
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140049578
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140049578
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140049578
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14004957a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14004adb0
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.1400336e0
sub rsp, rax
mov rax, qword [0x140081040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14004689c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14004adff
mov rax, rbp
jmp 0x14004af07
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 + 0x835d0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14004bcfc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x835d0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14004af03
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 0x14004af03
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14004bcfc
test rax, rax
js 0x14004af03
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14004af03
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14004aef5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14004aef5
cmp byte [rcx], 0xd
jne 0x14004aedb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14004aeea
cmp byte [rcx + 1], 0xa
jne 0x14004aeea
inc rcx
jmp 0x14004aeea
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x81600]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14004aebd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14004af07
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140032ce0
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 0x14004b09c
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, [0x1400835d0]
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 0x14004b0f3
cmp word [rdx], r13w
jne 0x14004b0f3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14004b0f8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14004b21d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14004b23e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14004b131
mov rdx, r9
mov word [rbx], cx
jmp 0x14004b158
cmp r9, r8
jae 0x14004b168
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 0x14004b112
jmp 0x14004b21d
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 0x14004b212
cmp dword [rsp + 0x80], esi
je 0x14004b212
lea r8, [0x1400835d0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14004b1ea
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14004b1ba
mov word [rbx], r13w
jmp 0x14004b21a
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 0x14004b1c7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14004b21a
cmp word [rsp + 0x70], r13w
jne 0x14004b1f7
cmp rbx, r14
je 0x14004b1b4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14004bd04
cmp word [rsp + 0x70], r13w
je 0x14004b21d
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, [0x1400835d0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14004b217
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14004b21d