joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140018140
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140114720]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140018160
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140018168
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140018160
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140018160
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 0x1400181b4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400181c0
add rdx, 0x28
cmp r9, rdx
jne 0x1400181a0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140114720]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x1400181f4
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
cmp dword [rcx], 0x4550
je 0x140018200
mov rax, r9
ret
cmp word [rcx + 0x18], 0x20b
jne 0x1400181f4
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x1400181f4
movzx edx, word [rcx + 0x14]
movzx r10d, word [rcx + 6]
lea rdx, [rcx + rdx + 0x18]
test r10w, r10w
je 0x1400181f4
lea ecx, [r10 - 1]
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x14001824c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x140018260
add rdx, 0x28
cmp rdx, r10
jne 0x140018238
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140018270
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x14001827e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140018255
test r8d, r8d
jg 0x140018268
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1400185b0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x1400185e0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400185f8
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x140023b00
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
lea rcx, str.msvcrt.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rsi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.rand_s
mov rcx, rax
call rsi
test rax, rax
je 0x140023b48
mov rcx, rbx
mov qword [sym.init_rand_s], rax
add rsp, 0x28
pop rbx
pop rsi
jmp rax
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.SystemFunction036
mov rcx, rax
call rsi
mov qword [0x14013cc80], rax
lea rax, [sym.mingw_rand_s]
jmp 0x140023b2e

Function at 0x1400267b0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sym.fread
mov edx, 0xffffffff
test rax, rax
jle 0x1400267dc
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x1400272b0
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x14010c060], 0
jne 0x1400273b6
mov byte [global_terminating], 1
call dbg.__cxa_current_exception_type
test rax, rax
je 0x14002738c
mov rbx, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [rbx], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add rbx, rax
mov rcx, rbx
call dbg.__cxa_demangle
mov ecx, 2
mov rsi, qword [sym.__acrt_iob_func]
mov rdi, rax
call rsi
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x14002737d
call rsi
mov rcx, rbx
mov rdx, rax
call sym.fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x14010d1b1]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x140027378
mov rcx, rdi
call sym.free
call dbg.__cxa_rethrow
call rsi
mov rcx, rdi
mov rdx, rax
call sym.fputs
jmp 0x140027347
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
call sym.abort
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
sub rdx, 1
mov rcx, rax
jne 0x14002744b
call dbg.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sym.fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call dbg.__cxa_end_catch
jmp 0x1400273b1
call dbg.__cxa_begin_catch
call dbg.__cxa_end_catch
jmp 0x1400273b1

Function at 0x1400b6d80
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sym.fileno
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sym.read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x1400b6dc8
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x1400b6d9a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1400cf7f0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x1400cf820
mov rcx, qword [rcx]
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp rax
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov ebx, 4
lea rsi, [rsp + 0x2c]
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sym.read
test eax, eax
jle 0x1400cf868
cdqe
add rsi, rax
sub rbx, rax
jne 0x1400cf838
mov eax, dword [rsp + 0x2c]
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 0xffffffff
jne 0x1400cf888
call rbp
mov r12, rbp
cmp dword [rax], 4
je 0x1400cf838
call r12
lea rdx, str.random_device_could_not_be_read
mov ecx, dword [rax]
call dbg.__throw_syserr
mov r12, qword [sym.imp.msvcrt.dll__errno]
jmp 0x1400cf877

Function at 0x140108640
Capabilities:
Query environment variable

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rax, qword [0x140113af0]
mov r8d, dword [rax]
test r8d, r8d
jne 0x1401087eb
pxor xmm0, xmm0
lea rcx, str.GLIBCXX_TUNABLES
mov qword [0x1401097d8], 0
movabs rsi, 0x2e78786362696c67
movups xmmword [0x1401097c8], xmm0
movabs rdi, 0x6c6f6f705f68652e
call sym.getenv
mov dword [rsp + 0x40], 0
mov rbx, rax
lea rax, str.obj_size
mov qword [rsp + 0x30], 8
mov qword [rsp + 0x38], rax
lea rax, str.obj_count
mov qword [rsp + 0x48], 9
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x100
test rbx, rbx
jne 0x1401086f5
jmp 0x1401087b5
mov rcx, rbx
mov edx, 0x3a
call sym.strchr
mov rbx, rax
test rax, rax
je 0x140108768
xor eax, eax
cmp byte [rbx], 0x3a
sete al
add rbx, rax
cmp qword [rbx], rsi
jne 0x1401086e0
cmp qword [rbx + 7], rdi
jne 0x1401086e0
cmp byte [rbx + 0xf], 0x2e
jne 0x1401086e0
movabs rax, 0x657a69735f6a626f
lea rbp, [rbx + 0x10]
cmp qword [rbx + 0x10], rax
jne 0x14010872f
cmp byte [rbx + 0x18], 0x3d
je 0x1401087fc
mov r8d, 9
mov rdx, rbp
lea rcx, str.obj_count
call sym.memcmp
test eax, eax
jne 0x14010875c
cmp byte [rbx + 0x19], 0x3d
mov eax, 9
lea r12, [rsp + 0x48]
je 0x140108806
mov rbx, rbp
jmp 0x1401086e0
mov eax, dword [rsp + 0x58]
mov edx, 0x1000
mov ecx, 6
cmp eax, edx
cmovle edx, eax
mov eax, dword [rsp + 0x40]
test eax, eax
cmove eax, ecx
movsxd rbx, eax
movsxd rax, edx
add rbx, 0x26
imul rbx, rax
shl rbx, 3
mov qword [0x1401097d8], rbx
jne 0x1401087c5
lea rcx, [sym.__tcf_0_4]
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sym.atexit
mov qword [0x1401097d8], 0x16000
mov ebx, 0x16000
mov rcx, rbx
call sym.malloc
mov qword [0x1401097d0], rax
test rax, rax
je 0x14010883f
xor edx, edx
mov qword [0x1401097c8], rax
mov qword [rax], rbx
mov qword [rax + 8], rdx
jmp 0x14010879f
lea rcx, [0x1401097a0]
call dbg.__gthr_win32_mutex_init_function
jmp 0x14010865d
mov eax, 8
lea r12, [rsp + 0x30]
lea rdx, [rsp + 0x28]
lea rcx, [rbp + rax + 1]
xor r8d, r8d
call sym.strtoul
mov rbx, qword [rsp + 0x28]
movzx edx, byte [rbx]
cmp dl, 0x3a
je 0x14010882d
test dl, dl
jne 0x1401086e0
test eax, eax
js 0x1401086e0
mov dword [r12 + 0x10], eax
jmp 0x1401086e0
xor ecx, ecx
mov qword [0x1401097d8], rcx
jmp 0x14010879f
Function at 0x140001970
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140001998
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1400019be
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400019c0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140001a19
test ecx, ecx
jle 0x1400019f9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140001a19
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140001a19
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140001a40
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140001a62
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140001a78
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140001a94
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140001a96
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140001ad2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140001b6e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140001b0d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140001b4e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140001b6e
cmp rbx, rax
ja 0x140001b20
test rbx, rbx
je 0x140001b6e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140001fd0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140001ffd
xor eax, eax
jmp 0x140002169
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002037
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002037
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140002169
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000215c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000207a
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
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400020a5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002161
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002114
sub eax, 1
je 0x140002114
cmp eax, 2
jne 0x14000215c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002161
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002142
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000215c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002161
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140002e80
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002600
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400026d3
cmp byte [rcx + 0x71], 0
je 0x1400026d3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400026cf
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002694
sub eax, 1
je 0x140002698
cmp eax, 2
jne 0x1400026cf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140002e80
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400026c6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400026cf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000267c
xor al, al
jmp 0x14000267c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140002e80
add rsp, 0x60
pop rbx
ret

Function at 0x14000381c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003866
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140003866
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003866
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003866
cmp dword [rcx + 0x84], 0xe
jbe 0x140003866
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003868
xor al, al
add rsp, 0x28
ret
Function at 0x1400112f8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x140018390
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x198
lea rbp, [rsp + 0x20]
lea rcx, [0x140033044]
call fcn.1400117ad
mov rax, qword [rbp + 0x190]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x190]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0
mov eax, dword [rax + rcx + 0x88]
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
mov rcx, qword [rbp + 0x190]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
mov eax, dword [rax + 0x18]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
mov qword [rbp + 0x158], rax
mov rax, qword [rbp + 0x48]
dec rax
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x158], 0
jbe 0x14001842a
mov dword [rbp + 0x160], 1
jmp 0x140018434
mov dword [rbp + 0x160], 0
cmp dword [rbp + 0x160], 0
je 0x1400184fd
mov rax, qword [rbp + 0x28]
mov eax, dword [rax + 0x20]
mov rcx, qword [rbp + 0x190]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x48]
mov eax, dword [rax + rcx*4]
mov rcx, qword [rbp + 0x190]
add rcx, rax
mov rax, rcx
mov rdx, qword [rbp + 0x198]
mov rcx, rax
call qword [sym.imp.ucrtbased.dll_Ordinal_1872]
test eax, eax
jne 0x1400184f8
mov rax, qword [rbp + 0x28]
mov eax, dword [rax + 0x24]
mov rcx, qword [rbp + 0x190]
add rcx, rax
mov rax, rcx
mov rcx, qword [rbp + 0x48]
movzx eax, word [rax + rcx*2]
mov rcx, qword [rbp + 0x28]
add eax, dword [rcx + 0x10]
mov dword [rbp + 0x84], eax
mov rdx, qword [rbp + 0x198]
mov rcx, qword [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_InitOnceInitialize]
mov qword [rbp + 0x158], rax
mov ecx, dword [rbp + 0x84]
mov edx, ecx
mov rcx, qword [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_InitOnceInitialize]
mov rcx, qword [rbp + 0x158]
cmp rcx, rax
jne 0x1400184f4
mov eax, dword [rbp + 0x84]
jmp 0x1400184ff
xor eax, eax
jmp 0x1400184ff
jmp 0x1400183fe
xor eax, eax
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret

Function at 0x14001158c
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001e330
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001e350
xor al, al
jmp 0x14001e3d1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001e363
xor al, al
jmp 0x14001e3d1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001e38d
xor al, al
jmp 0x14001e3d1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001e3a1
xor al, al
jmp 0x14001e3d1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001e3b3
xor al, al
jmp 0x14001e3d1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001e3cf
xor al, al
jmp 0x14001e3d1
mov al, 1
add rsp, 0x38
ret
Function at 0x140011762
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x140017620
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x20]
lea rcx, [0x140033029]
call fcn.1400117ad
mov rax, qword [rbp + 0x1a8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x1a8]
lea rax, [rcx + rax + 0x108]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x1a8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x1a8]
movzx eax, word [rcx + rax + 6]
dec eax
cdqe
imul rax, rax, 0x28
mov rcx, qword [rbp + 0x1a8]
movsxd rcx, dword [rcx + 0x3c]
mov rdx, qword [rbp + 0x1a8]
movzx ecx, word [rdx + rcx + 6]
dec ecx
movsxd rcx, ecx
imul rcx, rcx, 0x28
mov rdx, qword [rbp + 8]
mov eax, dword [rdx + rax + 0x14]
mov rdx, qword [rbp + 8]
add eax, dword [rdx + rcx + 0x10]
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x24]
mov ecx, eax
call fcn.140011334
mov qword [rbp + 0x168], rax
mov rax, qword [rbp + 0x168]
mov qword [rbp + 0x48], rax
mov eax, dword [rbp + 0x24]
mov r8d, eax
xor edx, edx
mov rcx, qword [rbp + 0x48]
call fcn.1400115f0
mov rax, qword [rbp + 0x1a8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x1a8]
mov eax, dword [rcx + rax + 0x54]
mov r8d, eax
mov rdx, qword [rbp + 0x1a8]
mov rcx, qword [rbp + 0x48]
call fcn.1400113c0
mov qword [rbp + 0x68], 0
jmp 0x14001771f
mov rax, qword [rbp + 0x68]
inc rax
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x1a8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x1a8]
movzx eax, word [rcx + rax + 6]
cmp qword [rbp + 0x68], rax
jae 0x14001779c
imul rax, qword [rbp + 0x68], 0x28
mov rcx, qword [rbp + 8]
mov eax, dword [rcx + rax + 0x10]
imul rcx, qword [rbp + 0x68], 0x28
mov rdx, qword [rbp + 8]
mov ecx, dword [rdx + rcx + 0xc]
mov rdx, qword [rbp + 0x1a8]
add rdx, rcx
mov rcx, rdx
imul rdx, qword [rbp + 0x68], 0x28
mov r8, qword [rbp + 8]
mov edx, dword [r8 + rdx + 0x14]
mov r8, qword [rbp + 0x48]
add r8, rdx
mov rdx, r8
mov qword [rbp + 0x178], rdx
mov r8d, eax
mov rdx, rcx
mov rax, qword [rbp + 0x178]
mov rcx, rax
call fcn.1400113c0
jmp 0x140017714
lea rdx, [0x1400266e0]
mov rcx, qword [rbp + 0x1a0]
call qword [sym.imp.ucrtbased.dll_Ordinal_2029]
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
je 0x1400177ea
mov eax, dword [rbp + 0x24]
mov r9, qword [rbp + 0x88]
mov r8d, eax
mov edx, 1
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ucrtbased.dll_Ordinal_2282]
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.ucrtbased.dll_Ordinal_2233]
mov rax, qword [rbp + 0x48]
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x1400020a0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x1400020c1
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1400020ee
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400020f0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140002149
test ecx, ecx
jle 0x140002129
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140002149
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002149
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al