joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2c19c3740
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rax, [0x2c1a431f0]
movabs r15, 0x7fffffffffffffff
movabs rbp, 0x8000000000000000
mov r14, rcx
mov r13, rdx
lea rcx, [rsp + 0x20]
mov edx, 0xfa0
mov qword [rsp + 0x38], rax
lea rdi, [rsp + 0x30]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
call fcn.2c19cdd20
mov rax, qword [rsp + 0x20]
mov rsi, qword [0x2c1aae1c0]
mov qword [rsp + 0x40], rax
mov rbx, rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x48], rax
test rbx, rbx
jle 0x2c19c38a0
nop dword [rax]
mov rax, qword [rsp + 0x48]
mov r9, r13
mov r8d, 0xfa0
mov edx, 1
lea rcx, [rax + 8]
call sub.msvcrt.dll_fread
mov r12, rax
cmp rax, 0xfa0
je 0x2c19c3838
mov rcx, r13
call fcn.2c19c3420
cmp byte [rsi], 0
je 0x2c19c38d0
lea r13, [rsp + 0x40]
mov rcx, r13
call fcn.2c19c6e80
movdqa xmm0, xmmword [rsp + 0x30]
mov rax, r14
movups xmmword [r14], xmm0
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [rsi], 0
jne 0x2c19c3808
mov rdx, qword [rsp + 0x40]
mov rcx, rdi
call fcn.2c19c7e00
mov rbx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
test rbx, rbx
jle 0x2c19c38a0
mov r8, rbx
add r8, 1
jo 0x2c19c38b5
test r8, r8
js 0x2c19c38c0
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
add rdx, 8
lea rcx, [rcx + rax + 8]
call fcn.2c1a40558
add rbx, qword [rsp + 0x30]
jo 0x2c19c38b5
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsp + 0x40]
test rbx, rbx
jg 0x2c19c37d0
nop dword [rax]
lea rdx, [rbx - 1]
xor ecx, ecx
lea r13, [rsp + 0x40]
call fcn.2c19cc850
jmp 0x2c19c380d
call fcn.2c19c7040
jmp 0x2c19c388b
mov r8, r15
xor edx, edx
mov rcx, rbp
call fcn.2c19c7710
jmp 0x2c19c388b
test r12, r12
js 0x2c19c3940
lea r13, [rsp + 0x40]
mov rdx, r12
mov rcx, r13
call fcn.2c19c8060
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.2c19c7e00
mov rbx, qword [rsp + 0x40]
test rbx, rbx
jle 0x2c19c380d
mov r8, rbx
mov rax, qword [rsp + 0x48]
add r8, 1
jo 0x2c19c395e
test r8, r8
js 0x2c19c3968
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
lea rcx, [rcx + rdx + 8]
lea rdx, [rax + 8]
call fcn.2c1a40558
add rbx, qword [rsp + 0x30]
jo 0x2c19c395e
mov qword [rsp + 0x30], rbx
jmp 0x2c19c380d
movabs r8, 0x7fffffffffffffff
xor edx, edx
lea r13, [rsp + 0x40]
mov rcx, r12
call fcn.2c19c7710
jmp 0x2c19c380d
call fcn.2c19c7040
jmp 0x2c19c380d
movabs r8, 0x7fffffffffffffff
xor edx, edx
movabs rcx, 0x8000000000000000
call fcn.2c19c7710
jmp 0x2c19c380d
Function at 0x2c19c3990
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x50
mov qword [rsp + 0x30], 0
mov r13, rcx
mov r14, rdx
mov r12, r8
mov qword [rsp + 0x38], 0
test r8, r8
js 0x2c19c3a80
lea rsi, [rsp + 0x20]
mov rdx, r8
mov rcx, rsi
call fcn.2c19cdd20
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov rdx, rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
test rdx, rdx
jle 0x2c19c3ac0
mov rax, qword [rsp + 0x38]
mov r9, r14
mov r8, r12
mov edx, 1
lea rcx, [rax + 8]
call sub.msvcrt.dll_fread
mov r15, rax
cmp r12, rax
je 0x2c19c3a1c
mov rcx, r14
call fcn.2c19c3420
mov rdi, qword [0x2c1aae1c0]
cmp byte [rdi], 0
jne 0x2c19c3a60
mov rcx, r14
call sub.msvcrt.dll_fgetc
mov rdx, r14
mov ecx, eax
mov ebx, eax
call sub.msvcrt.dll_ungetc
cmp byte [rdi], 0
jne 0x2c19c3a60
test ebx, ebx
jns 0x2c19c3ad0
cmp r12, r15
jle 0x2c19c3a60
test r15, r15
js 0x2c19c3aa0
lea rcx, [rsp + 0x30]
mov rdx, r15
call fcn.2c19c8060
movdqa xmm0, xmmword [rsp + 0x30]
mov rax, r13
movups xmmword [r13], xmm0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, r12
call fcn.2c19c7710
jmp 0x2c19c3a60
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, r15
call fcn.2c19c7710
jmp 0x2c19c3a60
sub rdx, 1
xor ecx, ecx
call fcn.2c19cc850
jmp 0x2c19c3a60
mov qword [rsp + 0x40], 0
mov rdx, r14
mov rcx, rsi
mov qword [rsp + 0x48], 0
call fcn.2c19c3740
movdqu xmm1, xmmword [rsp + 0x20]
cmp byte [rdi], 0
movaps xmmword [rsp + 0x40], xmm1
jne 0x2c19c3b4d
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.2c19c7e00
mov rbx, qword [rsp + 0x40]
test rbx, rbx
jle 0x2c19c3b4d
mov r8, rbx
mov rdx, qword [rsp + 0x48]
add r8, 1
jo 0x2c19c3b5c
test r8, r8
js 0x2c19c3b68
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
add rdx, 8
lea rcx, [rcx + rax + 8]
call fcn.2c1a40558
add rbx, qword [rsp + 0x30]
jo 0x2c19c3b5c
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x40]
call fcn.2c19c6e80
jmp 0x2c19c3a60
call fcn.2c19c7040
jmp 0x2c19c3b4d
movabs r8, 0x7fffffffffffffff
xor edx, edx
movabs rcx, 0x8000000000000000
call fcn.2c19c7710
jmp 0x2c19c3b4d

Function at 0x2c19c3f10
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 0x2c19c3f31
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 fcn.2c1a405a8
Function at 0x2c19ccd20
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x40
mov rax, qword [0x2c1abbbd8]
mov r12, rcx
mov rbx, rdx
test rax, rax
je 0x2c19ccdc0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
test rcx, rcx
je 0x2c19ccdb0
call sub.msvcrt.dll_strlen
lea r13, [rsp + 0x20]
mov rdx, r12
mov r8, rax
mov rcx, r13
call fcn.2c19ccbb0
mov rdx, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
mov rax, qword [0x2c1abbbd8]
mov qword [rsp + 0x20], rdx
mov rcx, r13
mov qword [rsp + 0x28], r12
call rax
test r12, r12
je 0x2c19ccd9b
test byte [r12 + 7], 0x40
je 0x2c19ccdf8
cmp byte [0x2c1abbbb0], 0
jne 0x2c19cce10
add rsp, 0x40
pop rbx
pop r12
pop r13
ret
xor edx, edx
xor r12d, r12d
lea r13, [rsp + 0x20]
jmp 0x2c19ccd7f
mov ecx, 2
call qword [fcn.2c1a40f00]
mov rcx, r12
mov r8, rbx
mov edx, 1
mov r13, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, r13
add rsp, 0x40
pop rbx
pop r12
pop r13
jmp fcn.2c1a405a8
mov rdx, r12
lea rcx, [0x2c1ab90c0]
call fcn.2c19c6190
jmp 0x2c19ccd9b
mov r12, qword [0x2c1abbbe0]
mov byte [0x2c1abbbb0], 0
mov rbx, qword [r12 + 0x38]
test rbx, rbx
je 0x2c19cce36
mov rax, qword [rbx - 0x10]
add rax, 0x10
jo 0x2c19cce8f
mov qword [rbx - 0x10], rax
mov qword [0x2c1abbbe0], rbx
mov rax, qword [r12 - 0x10]
lea rdx, [r12 - 0x10]
test rax, 0xfffffffffffffff0
je 0x2c19cce70
sub rax, 0x10
jo 0x2c19cce96
mov r8, qword [r12]
xor ecx, ecx
mov qword [r12 - 0x10], rax
add rsp, 0x40
pop rbx
pop r12
pop r13
jmp fcn.2c19caef0
mov r8, qword [r12]
mov ecx, 1
call fcn.2c19caef0
mov rcx, r12
add rsp, 0x40
pop rbx
pop r12
pop r13
jmp fcn.2c19c73d0
call fcn.2c19c7040
jmp 0x2c19cce36
add rsp, 0x40
pop rbx
pop r12
pop r13
jmp fcn.2c19c7040

Function at 0x2c19d2c90
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword [rcx]
mov rdx, qword [rcx + 8]
test rax, rax
jle 0x2c19d2cf0
lea r8, [rax + rdx + 8]
lea rcx, [rdx + 8]
xor eax, eax
nop word [rax + rax]
movzx edx, byte [rcx]
add rcx, 1
add rdx, rax
mov rax, rdx
shl rax, 0xa
add rax, rdx
mov rdx, rax
shr rdx, 6
xor rax, rdx
cmp r8, rcx
jne 0x2c19d2cb0
lea rax, [rax + rax*8]
mov rdx, rax
shr rdx, 0xb
xor rdx, rax
mov rax, rdx
shl rax, 0xf
add rax, rdx
ret
xor eax, eax
ret
Function at 0x2c19e0080
Capabilities:
Hash data using murmur3

Disassembly:
push rsi
push rbx
sub rsp, 0x28
lea r9, [rdx + 3]
test rdx, rdx
mov r11, rcx
mov r8, rdx
cmovns r9, rdx
and r9, 0xfffffffffffffffc
jle 0x2c19e0219
test rdx, rdx
jle 0x2c19e00f1
mov rax, qword [0x2c1aae1c0]
mov edx, dword [rcx]
cmp byte [rax], 0
jne 0x2c19e01f0
xor r10d, r10d
mov ecx, 4
imul eax, edx, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, r10d
rol eax, 0xd
lea r10d, [rax + rax*4 - 0x19ab949c]
cmp r9, rcx
jle 0x2c19e0108
cmp r8, rcx
jle 0x2c19e00f3
mov edx, dword [r11 + rcx]
add rcx, 4
jmp 0x2c19e00c0
xor ecx, ecx
lea rdx, [r8 - 1]
call fcn.2c19cc850
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rax, r8
and eax, 3
je 0x2c19e0241
sub rax, 1
mov r9, rcx
xor edx, edx
add r9, rax
js 0x2c19e0252
cmp r9, rax
jb 0x2c19e0252
test rdx, rdx
jne 0x2c19e020d
cmp r8, r9
jle 0x2c19e01fa
test r9, r9
js 0x2c19e01fa
movzx edx, byte [r11 + r9]
test rax, rax
je 0x2c19e01a9
sub rax, 1
mov rbx, rcx
xor esi, esi
add rbx, rax
js 0x2c19e025c
cmp rbx, rax
jb 0x2c19e025c
mov r9, rbx
test rsi, rsi
jne 0x2c19e020d
cmp r8, rbx
jle 0x2c19e01fa
test rbx, rbx
js 0x2c19e01fa
movzx r9d, byte [r11 + rbx]
shl edx, 8
or edx, r9d
test rax, rax
je 0x2c19e01a9
test rcx, rcx
js 0x2c19e01f7
cmp rcx, r8
jge 0x2c19e01f7
movzx eax, byte [r11 + rcx]
shl edx, 8
or edx, eax
imul eax, edx, 0xcc9e2d51
mov rdx, qword [0x2c1aae1c0]
rol eax, 0xf
imul eax, eax, 0x1b873593
cmp byte [rdx], 0
jne 0x2c19e01f0
xor eax, r10d
xor eax, r8d
mov edx, eax
shr edx, 0x10
xor eax, edx
imul eax, eax, 0x85ebca6b
mov edx, eax
shr edx, 0xd
xor edx, eax
imul edx, edx, 0xc2b2ae35
mov eax, edx
shr eax, 0x10
xor eax, edx
jmp 0x2c19e00fe
xor eax, eax
jmp 0x2c19e00fe
mov r9, rcx
lea rdx, [r8 - 1]
mov rcx, r9
call fcn.2c19cc850
xor eax, eax
jmp 0x2c19e00fe
call fcn.2c19c7040
xor eax, eax
jmp 0x2c19e00fe
sar rdx, 0x3f
shr rdx, 0x3e
lea rax, [r8 + rdx]
and eax, 3
sub rax, rdx
test rax, rax
jle 0x2c19e0248
sub rax, 1
xor ecx, ecx
xor r10d, r10d
mov r9, rax
jmp 0x2c19e0138
xor eax, eax
jmp 0x2c19e01c4
xor r10d, r10d
xor edx, edx
jmp 0x2c19e01a9
mov edx, 1
jmp 0x2c19e012f
mov esi, 1
jmp 0x2c19e016f

Function at 0x2c19e0270
Capabilities:
Hash data using murmur3

Disassembly:
sub rsp, 0x28
mov rdx, qword [rcx]
mov rcx, qword [rcx + 8]
test rdx, rdx
js 0x2c19e0290
add rcx, 8
add rsp, 0x28
jmp fcn.2c19e0080
call fcn.2c19ce9b0
xor eax, eax
add rsp, 0x28
ret

Function at 0x2c1a39de0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.2c1a40f00
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.2c1a40f00
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x2c1a3a752
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2c1abd7e8]
test eax, eax
je 0x2c1a3a7ea
lea rax, [0x2c1abd7c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2c1abd7f0]
mov qword [rbp - 8], rax
jmp 0x2c1a3a7ce
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2c1a3a7c2
cmp qword [rbp - 0x10], 0
je 0x2c1a3a7c2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2c1a3a788
lea rax, [0x2c1abd7c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2c1a3a7eb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2c1a3a8f0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2c1a3a918
mov eax, 0
jmp 0x2c1a3a966
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 0x2c1a3a941
mov eax, 0
jmp 0x2c1a3a966
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2c1a3a961
mov eax, 0
jmp 0x2c1a3a966
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x2c1a3a96c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2c1a3a9ea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2c1a3a9e1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2c1a3a9e1
mov rax, qword [rbp - 8]
jmp 0x2c1a3a9ff
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2c1a3a9b4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14072e058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14072e1df
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 0x14072e089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14072e06f
add dl, dl
jne 0x14072e096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14072e0f6
xor eax, eax
add dl, dl
jne 0x14072e0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14072e1ad
add dl, dl
jne 0x14072e0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14072e0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14072e0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14072e0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14072e0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14072e07e
mov eax, 1
add dl, dl
jne 0x14072e106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14072e113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14072e0fb
sub eax, ebx
mov ebx, 1
jne 0x14072e14c
mov ecx, 1
add dl, dl
jne 0x14072e12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14072e13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14072e123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14072e07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14072e168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14072e175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14072e15d
cmp eax, 0x7d00
jae 0x14072e19b
cmp eax, 0x500
jb 0x14072e196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14072e07e
cmp eax, 0x7f
ja 0x14072e19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14072e07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14072e1d2
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 0x14072e07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20

Function at 0x140001b2c
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140004420]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140004430]
mov dword [rax], 1
mov rax, qword [0x140004440]
mov dword [rax], 1
mov rax, qword [0x1400043a0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140004410]
mov dword [0x14000700c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400044e0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400044c0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140004370]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001740
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__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 [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x1400017b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140007094]
mov rbx, rcx
test esi, esi
jle 0x1400018e0
mov rax, qword [0x140007098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400017fb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001885
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400017e0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001902
mov rax, qword [0x140007098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140007098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400018e7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000187e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001890
add dword [0x140007094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140007098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000187e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001808
mov rax, qword [0x140007098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001e90
Capabilities:
Get thread local storage value

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

Function at 0x140002100
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002118
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002120
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002130
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 0x14000217d
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 0x140002174
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000217f
add rax, 0x28
cmp rax, r9
jne 0x140002160
xor eax, eax
ret

Function at 0x140002180
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x1400043a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002240
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002248
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002240
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000229d
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 0x140002294
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002240
add rax, 0x28
cmp rax, r9
jne 0x140002280
xor eax, eax
ret

Function at 0x1400022a0
Capabilities:
Parse pe header

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

Function at 0x1400022e0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400043a0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002300
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002308
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002300
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002350
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002347
test rcx, rcx
je 0x140002300
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002338
xor eax, eax
ret