joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140261630
Capabilities:
Hash data using sha256
Hash data using sha384
Hash data using sha512

Disassembly:
cmp ecx, 0x100
ja 0x140261685
je 0x140261653
cmp ecx, 0x20
je 0x140261653
cmp ecx, 0x30
je 0x1402616dd
cmp ecx, 0x40
je 0x14026169e
mov eax, 1
ret
xor eax, eax
mov qword [rdx], rax
cmp ecx, 0x100
movups xmm0, xmmword [0x1403093d0]
mov eax, 0x20
cmove ecx, eax
xor eax, eax
movups xmmword [rdx + 8], xmm0
movups xmm1, xmmword [0x1403093e0]
mov dword [rdx + 0xd0], ecx
movups xmmword [rdx + 0x18], xmm1
ret
cmp ecx, 0x180
je 0x1402616da
cmp ecx, 0x200
je 0x14026169b
mov eax, 1
ret
shr ecx, 3
xor eax, eax
mov qword [rdx + 8], rax
mov qword [rdx], rax
movaps xmm0, xmmword [0x140309670]
movups xmmword [rdx + 0x10], xmm0
movaps xmm1, xmmword [0x140309680]
movups xmmword [rdx + 0x20], xmm1
movaps xmm0, xmmword [0x140309690]
movups xmmword [rdx + 0x30], xmm0
movaps xmm1, xmmword [0x1403096a0]
movups xmmword [rdx + 0x40], xmm1
mov dword [rdx + 0xd0], ecx
ret
shr ecx, 3
xor eax, eax
mov qword [rdx + 8], rax
mov qword [rdx], rax
movaps xmm0, xmmword [0x1403093f0]
movups xmmword [rdx + 0x10], xmm0
movaps xmm1, xmmword [0x140309400]
movups xmmword [rdx + 0x20], xmm1
movaps xmm0, xmmword [0x140309410]
movups xmmword [rdx + 0x30], xmm0
movaps xmm1, xmmword [0x140309420]
movups xmmword [rdx + 0x40], xmm1
mov dword [rdx + 0xd0], ecx
ret
Function at 0x140261720
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [rdx + 0xd0]
cmp eax, 0x20
je 0x140261748
cmp eax, 0x30
je 0x14026173d
cmp eax, 0x40
jne 0x14026174d
mov r8d, eax
jmp 0x140262900
mov r8d, gethostbyname
jmp 0x140262900
jmp fcn.140261310
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov r9d, dword [rdx]
mov ebp, r8d
and r9d, 0x7f
mov rdi, rdx
mov rsi, rcx
lea r10d, [r9 + 7]
shr r10d, 3
test r10d, r10d
je 0x14026298e
mov r11d, r10d
mov ebx, 0xff00ff00
add r11, 0xa
lea r11, [rdx + r11*8]
mov eax, dword [r11 - 8]
lea r11, [r11 - 8]
mov r8d, dword [r11]
mov rdx, qword [r11]
rol eax, 8
and eax, 0xff00ff
ror r8d, 8
and r8, 0xffffffffff00ff00
shr rdx, 0x20
or r8, rax
mov eax, edx
ror eax, 8
and rax, rbx
shl r8, 0x20
or r8, rax
mov eax, edx
rol eax, 8
and eax, 0xff00ff
or r8, rax
mov qword [r11], r8
sub r10d, 1
jne 0x140262941
mov ecx, r9d
lea r8, [0x140000000]
and ecx, 7
mov eax, r9d
shr rax, 3
xor ebx, ebx
lea rdx, [rdi + rax*8]
mov rax, qword [r8 + rcx*8 + 0x39e250]
and rax, qword [rdx + 0x50]
or rax, qword [r8 + rcx*8 + 0x39e290]
mov qword [rdx + 0x50], rax
cmp r9d, 0x6f
jbe 0x1402629e0
cmp r9d, 0x78
jae 0x1402629d3
mov qword [rdi + 0xc8], rbx
mov rcx, rdi
call fcn.1402618f0
mov r9d, ebx
jmp 0x1402629ed
shr r9d, 3
inc r9d
cmp r9d, 0xe
jae 0x140262a0c
mov eax, r9d
mov r8d, select
add rax, 0xa
sub r8d, r9d
shl r8, 3
xor edx, edx
lea rcx, [rdi + rax*8]
call sub.VCRUNTIME140.dll_memset
mov rdx, qword [rdi]
mov rcx, qword [rdi + 8]
mov rax, rdx
shr rax, 0x3d
shl rcx, 3
or rcx, rax
lea rax, [rdx*8]
mov qword [rdi + 0xc0], rcx
mov rcx, rdi
mov qword [rdi + 0xc8], rax
call fcn.1402618f0
test ebp, ebp
je 0x140262a79
mov rdx, rbx
nop word [rax + rax]
mov rax, rdx
lea rsi, [rsi + 1]
shr rax, 3
mov ecx, ebx
not ecx
inc ebx
and ecx, 7
inc rdx
shl ecx, 3
mov rax, qword [rdi + rax*8 + 0x10]
shr rax, cl
mov byte [rsi - 1], al
cmp ebx, ebp
jb 0x140262a50
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1402666ac
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140035190]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400351a0]
mov dword [rax], 1
mov rax, qword [0x1400351b0]
mov dword [rax], 1
mov rax, qword [0x140035180]
mov dword [rax], 1
mov rax, qword [0x140035000]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x140035170]
mov dword [0x14003a020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010c0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140035130]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140035110]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140034fb0]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067
Function at 0x140001837
Capabilities:
Hide graphical window

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xf0
mov qword [rbp - 0x60], 0
mov qword [rbp - 0x58], 0
mov qword [rbp - 0x50], 0
mov qword [rbp - 0x48], 0
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
lea rax, [sym.SplashWndProc]
mov qword [rbp - 0x58], rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x30], 6
lea rax, str.SplashScreenClass
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x60]
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_RegisterClassA]
call rax
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_GetSystemMetrics]
call rax
mov dword [rbp - 4], eax
mov ecx, 1
mov rax, qword [sym.imp.USER32.dll_GetSystemMetrics]
call rax
mov dword [rbp - 8], eax
mov eax, dword [rbp - 4]
sub eax, 0x12c
mov edx, eax
shr edx, 0x1f
add eax, edx
sar eax, 1
mov dword [rbp - 0xc], eax
mov eax, dword [rbp - 8]
sub eax, 0xc8
mov edx, eax
shr edx, 0x1f
add eax, edx
sar eax, 1
mov dword [rbp - 0x10], eax
mov rax, qword [rbp - 0x48]
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0xc8
mov dword [rsp + 0x30], 0x12c
mov eax, dword [rbp - 0x10]
mov dword [rsp + 0x28], eax
mov eax, dword [rbp - 0xc]
mov dword [rsp + 0x20], eax
mov r9d, 0x90000000
lea r8, str.Splash_Screen
lea rdx, str.SplashScreenClass
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_CreateWindowExA]
call rax
mov qword [0x14003a080], rax
mov rax, qword [0x14003a080]
mov edx, 5
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
mov rax, qword [0x14003a080]
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_UpdateWindow]
call rax
jmp 0x1400019d2
lea rax, [rbp - 0x90]
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_TranslateMessage]
call rax
lea rax, [rbp - 0x90]
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_DispatchMessageA]
call rax
lea rax, [rbp - 0x90]
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_GetMessageA]
call rax
test eax, eax
jne 0x1400019ac
nop
nop
add rsp, 0xf0
pop rbp
ret
Function at 0x140001a05
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
lea r8, [0x14003305a]
mov edx, 0x66
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_FindResourceA]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140001a62
mov r9d, 0x10
lea r8, str.Error
lea rdx, str.Resource_not_found
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
mov eax, 0
jmp 0x140001b9f
mov rax, qword [rbp - 8]
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_LoadResource]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x140001aae
mov r9d, 0x10
lea r8, str.Error
lea rdx, str.Resource_cannot_be_loaded
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
mov eax, 0
jmp 0x140001b9f
mov rax, qword [rbp - 8]
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_SizeofResource]
call rax
mov dword [rbp - 0x14], eax
cmp dword [rbp - 0x14], 0
jne 0x140001af8
mov r9d, 0x10
lea r8, str.Error
lea rdx, str.Resource_size_is_zero
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
mov eax, 0
jmp 0x140001b9f
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LockResource]
call rax
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
jne 0x140001b3c
mov r9d, 0x10
lea r8, str.Error
lea rdx, str.Resource_cannot_be_locked
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
mov eax, 0
jmp 0x140001b9f
mov eax, dword [rbp - 0x14]
mov rcx, rax
call sym.malloc
mov qword [rbp - 0x28], rax
cmp qword [rbp - 0x28], 0
jne 0x140001b7b
mov r9d, 0x10
lea r8, str.Error
lea rdx, str.Cannot_allocate_memory
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
mov eax, 0
jmp 0x140001b9f
mov ecx, dword [rbp - 0x14]
mov rdx, qword [rbp - 0x20]
mov rax, qword [rbp - 0x28]
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov edx, dword [rbp - 0x14]
mov rax, qword [rbp + 0x10]
mov qword [rax], rdx
mov rax, qword [rbp - 0x28]
add rsp, 0x50
pop rbp
ret
Function at 0x140001ba5
Capabilities:
Create directory

Disassembly:
push rbp
sub rsp, 0x610
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x5a0], rcx
mov qword [rbp + 0x5a8], rdx
mov qword [rbp + 0x5b0], r8
lea rax, [rbp + 0x510]
mov r8d, 0x70
mov edx, 0
mov rcx, rax
call sym.memset
mov rdx, qword [rbp + 0x5a8]
lea rax, [rbp + 0x510]
mov r9d, 0
mov r8, rdx
mov rdx, qword [rbp + 0x5a0]
mov rcx, rax
call sym.mz_zip_reader_init_mem
test eax, eax
jne 0x140001c3a
mov r9d, 0x10
lea r8, str.Error
lea rdx, str.Cannot_open_ZIP_from_memory
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
mov eax, 0xffffffff
jmp 0x140001e33
mov rax, qword [rbp + 0x5b0]
mov rcx, rax
call sym.mkdir
test eax, eax
je 0x140001c98
mov rax, qword [sym.imp.msvcrt.dll__errno]
call rax
mov eax, dword [rax]
cmp eax, 0x11
je 0x140001c98
mov r9d, 0x10
lea r8, str.Error
lea rdx, str.Cannot_create_output_directory
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
lea rax, [rbp + 0x510]
mov rcx, rax
call sym.mz_zip_reader_end
mov eax, 0xffffffff
jmp 0x140001e33
lea rax, [rbp + 0x510]
mov rcx, rax
call sym.mz_zip_reader_get_num_files
mov dword [rbp + 0x588], eax
mov dword [rbp + 0x58c], 0
jmp 0x140001e0d
mov edx, dword [rbp + 0x58c]
lea rcx, [rbp + 0xb0]
lea rax, [rbp + 0x510]
mov r8, rcx
mov rcx, rax
call sym.mz_zip_reader_file_stat
test eax, eax
jne 0x140001d1a
mov r9d, 0x10
lea r8, str.Error
lea rdx, str.Cannot_get_file_stat
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
lea rax, [rbp + 0x510]
mov rcx, rax
call sym.mz_zip_reader_end
mov eax, 0xffffffff
jmp 0x140001e33
mov edx, dword [rbp + 0x58c]
lea rax, [rbp + 0x510]
mov rcx, rax
call sym.mz_zip_reader_is_file_a_directory
test eax, eax
je 0x140001d76
mov rcx, qword [rbp + 0x5b0]
lea rax, [rbp - 0x50]
lea rdx, [rbp + 0xb0]
add rdx, 0x50
mov qword [rsp + 0x20], rdx
mov r9, rcx
lea r8, str._s__s
mov edx, 0x100
mov rcx, rax
call sym.snprintf
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.mkdir
jmp 0x140001e06
mov rcx, qword [rbp + 0x5b0]
lea rax, [rbp - 0x50]
lea rdx, [rbp + 0xb0]
add rdx, 0x50
mov qword [rsp + 0x20], rdx
mov r9, rcx
lea r8, str._s__s
mov edx, 0x100
mov rcx, rax
call sym.snprintf
mov edx, dword [rbp + 0x58c]
lea rcx, [rbp - 0x50]
lea rax, [rbp + 0x510]
mov r9d, 0
mov r8, rcx
mov rcx, rax
call sym.mz_zip_reader_extract_to_file
test eax, eax
jne 0x140001e06
mov r9d, 0x10
lea r8, str.Error
lea rdx, str.Cannot_extract_file
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
lea rax, [rbp + 0x510]
mov rcx, rax
call sym.mz_zip_reader_end
mov eax, 0xffffffff
jmp 0x140001e33
add dword [rbp + 0x58c], 1
mov eax, dword [rbp + 0x58c]
cmp eax, dword [rbp + 0x588]
jl 0x140001cbc
lea rax, [rbp + 0x510]
mov rcx, rax
call sym.mz_zip_reader_end
mov eax, 0
add rsp, 0x610
pop rbp
ret
Function at 0x140002179
Capabilities:
Hash data with crc32

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov eax, dword [rbp + 0x10]
not eax
mov dword [rbp - 4], eax
mov rax, qword [rbp + 0x18]
mov qword [rbp - 0x10], rax
jmp 0x14000227b
mov eax, dword [rbp - 4]
shr eax, 8
mov ecx, eax
mov rax, qword [rbp - 0x10]
movzx eax, byte [rax]
movzx eax, al
xor eax, dword [rbp - 4]
movzx eax, al
mov eax, eax
lea rdx, [rax*4]
lea rax, [0x140034160]
mov eax, dword [rdx + rax]
xor eax, ecx
mov dword [rbp - 4], eax
mov eax, dword [rbp - 4]
shr eax, 8
mov ecx, eax
mov rax, qword [rbp - 0x10]
add rax, 1
movzx eax, byte [rax]
movzx eax, al
xor eax, dword [rbp - 4]
movzx eax, al
mov eax, eax
lea rdx, [rax*4]
lea rax, [0x140034160]
mov eax, dword [rdx + rax]
xor eax, ecx
mov dword [rbp - 4], eax
mov eax, dword [rbp - 4]
shr eax, 8
mov ecx, eax
mov rax, qword [rbp - 0x10]
add rax, 2
movzx eax, byte [rax]
movzx eax, al
xor eax, dword [rbp - 4]
movzx eax, al
mov eax, eax
lea rdx, [rax*4]
lea rax, [0x140034160]
mov eax, dword [rdx + rax]
xor eax, ecx
mov dword [rbp - 4], eax
mov eax, dword [rbp - 4]
shr eax, 8
mov ecx, eax
mov rax, qword [rbp - 0x10]
add rax, 3
movzx eax, byte [rax]
movzx eax, al
xor eax, dword [rbp - 4]
movzx eax, al
mov eax, eax
lea rdx, [rax*4]
lea rax, [0x140034160]
mov eax, dword [rdx + rax]
xor eax, ecx
mov dword [rbp - 4], eax
add qword [rbp - 0x10], 4
sub qword [rbp + 0x20], 4
cmp qword [rbp + 0x20], 3
ja 0x1400021a1
jmp 0x1400022c3
mov eax, dword [rbp - 4]
shr eax, 8
mov ecx, eax
mov rax, qword [rbp - 0x10]
movzx eax, byte [rax]
movzx eax, al
xor eax, dword [rbp - 4]
movzx eax, al
mov eax, eax
lea rdx, [rax*4]
lea rax, [0x140034160]
mov eax, dword [rdx + rax]
xor eax, ecx
mov dword [rbp - 4], eax
add qword [rbp - 0x10], 1
sub qword [rbp + 0x20], 1
cmp qword [rbp + 0x20], 0
jne 0x140002288
mov eax, dword [rbp - 4]
not eax
add rsp, 0x10
pop rbp
ret

Function at 0x14000f7b2
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x68]
mov rax, qword [rax + 0x70]
mov rcx, rax
mov rax, qword [dbg._ftelli64]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x68]
mov rax, qword [rax + 0x78]
add qword [rbp + 0x18], rax
mov rax, qword [rbp + 0x18]
test rax, rax
js 0x14000f837
mov rax, qword [rbp + 0x18]
cmp qword [rbp - 0x10], rax
je 0x14000f83e
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x68]
mov rax, qword [rax + 0x70]
mov r8d, 0
mov rcx, rax
mov rax, qword [dbg._fseeki64]
call rax
test eax, eax
je 0x14000f83e
mov eax, 0
jmp 0x14000f865
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x68]
mov rcx, qword [rax + 0x70]
mov rdx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fread
add rsp, 0x30
pop rbp
ret
Function at 0x140013914
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov rdx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
add rsp, 0x20
pop rbp
ret

Function at 0x140015c40
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x68]
mov rax, qword [rax + 0x70]
mov rcx, rax
mov rax, qword [dbg._ftelli64]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x68]
mov rax, qword [rax + 0x78]
add qword [rbp + 0x18], rax
mov rax, qword [rbp + 0x18]
test rax, rax
js 0x140015cc5
mov rax, qword [rbp + 0x18]
cmp qword [rbp - 0x10], rax
je 0x140015cec
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x68]
mov rax, qword [rax + 0x70]
mov r8d, 0
mov rcx, rax
mov rax, qword [dbg._fseeki64]
call rax
test eax, eax
je 0x140015cec
mov rax, qword [rbp - 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x1c], 0x16
cmp qword [rbp - 0x18], 0
je 0x140015ce5
mov rax, qword [rbp - 0x18]
mov edx, dword [rbp - 0x1c]
mov dword [rax + 0x1c], edx
mov eax, 0
jmp 0x140015d13
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x68]
mov rcx, qword [rax + 0x70]
mov rdx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
add rsp, 0x40
pop rbp
ret

Function at 0x14001b29d
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [dbg._ftelli64]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [rbp + 0x18]
test rax, rax
js 0x14001b302
mov rax, qword [rbp + 0x18]
cmp qword [rbp - 0x10], rax
je 0x14001b309
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 8]
mov r8d, 0
mov rcx, rax
mov rax, qword [dbg._fseeki64]
call rax
test eax, eax
je 0x14001b309
mov eax, 0
jmp 0x14001b328
mov rcx, qword [rbp - 8]
mov rdx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fread
add rsp, 0x30
pop rbp
ret
Function at 0x140020d40
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]

Function at 0x140020db0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x14003a114]
mov r12, rcx
test ebx, ebx
jle 0x140020ee0
mov rax, qword [0x14003a118]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x140020dfc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140020e83
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x140020de0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x140020f02
mov rax, qword [0x14003a118]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14003a118]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140020ee7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140020e7c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140020e90
add dword [0x14003a114], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x14003a118]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140020e7c
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 ebx, ebx
jmp 0x140020e07
mov rax, qword [0x14003a118]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400213c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14003a180]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14003a160]
test rbx, rbx
je 0x140021414
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14002140b
test r12, r12
je 0x14002140b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400213f0
lea rcx, [0x14003a180]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140021630
Capabilities:
Parse pe header

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

Function at 0x140021660
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
mov r8, rdx
lea rdx, [rax + rcx]
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x1400216ac
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov ecx, dword [rax + 0xc]
mov rdx, rcx
cmp rcx, r8
ja 0x1400216a3
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x1400216ae
add rax, 0x28
cmp rax, r9
jne 0x140021690
xor eax, eax
ret

Function at 0x1400216b0
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x140021740
mov rdx, qword [0x140035000]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x14002172e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14002172e
cmp word [rax + 0x18], 0x20b
jne 0x14002172e
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x140021740
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x140021719
add r12, 0x28
cmp r12, rsi
je 0x140021740
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x140021710
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

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

Disassembly:
mov rdx, qword [0x140035000]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140021770
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140021778
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140021770
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x1400217c5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400217bc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140021770
add rax, 0x28
cmp rax, r9
jne 0x1400217a8
xor eax, eax
ret

Function at 0x1400217d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140035000]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400217f0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400217f8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400217f0
movzx r8d, word [rax + 6]
mov eax, r8d
ret