joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a2b20
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get startup folder

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x690
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x140239158]
xor rax, rsp
mov qword [rsp + 0x680], rax
mov rbx, rcx
mov qword [rsp + 0x40], rcx
xor esi, esi
mov dword [rsp + 0x30], esi
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], 7
mov word [rcx], si
mov dword [rsp + 0x30], 1
xor edx, edx
mov r8d, CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup
lea rcx, [r11 - 0x428]
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x270]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 0x28]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rdi, [rsi - 1]
test eax, eax
js 0x1400a2bcd
lea rax, [rsp + 0x270]
mov r8, rdi
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400a2bc0
jmp 0x1400a2c1b
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400a2bda
mov rax, qword [rbx]
mov qword [rbx + 0x10], rsi
mov word [rax], si
lea r9, str.USERPROFILE
mov r8d, 0x204
lea rdx, [rsp + 0x270]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wgetenv_s]
nop
test eax, eax
jne 0x1400a2c79
lea rax, [rsp + 0x270]
mov r8, rdi
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x1400a2c10
lea rdx, [rsp + 0x270]
mov rcx, rbx
call fcn.140076cb0
mov r8d, recv
lea rdx, str..nitro_test
mov rcx, rbx
call fcn.14009ba70
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400a2c4d
mov rcx, qword [rbx]
cmp si, word [rcx]
je 0x1400a2d17
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400a2c65
test al, 0x10
jne 0x1400a2c79
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400a2c72
mov rax, qword [rbx]
mov qword [rbx + 0x10], rsi
mov word [rax], si
cmp qword [rbx + 0x10], 0
jne 0x1400a2c88
mov rcx, rbx
call fcn.140099f30
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x60]
xor ecx, ecx
call fcn.14007ca00
mov r8d, 1
lea rdx, [0x1401a5294]
mov rcx, rbx
call fcn.14009ba70
lea rax, [rsp + 0x60]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x1400a2cc0
mov r8, rdi
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.14009ba70
mov r8d, 9
lea rdx, [0x1401a5298]
mov rcx, rbx
call fcn.14009ba70
mov rax, rbx
mov rcx, qword [rsp + 0x680]
xor rcx, rsp
call fcn.1400aab20
lea r11, [rsp + 0x690]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
lea rdx, str.DirectoryExists:_empty_path
lea rcx, [rsp + 0x48]
call fcn.140096730
lea rdx, [0x140233d78]
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1400a73e0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x1d0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140239158]
xor rax, rsp
mov qword [rsp + 0x1c8], rax
mov rdi, rcx
mov qword [rsp + 0x40], 0
lea rsi, vtable.fmt::v6::basic_memory_buffer_char__250__class_std::allocator_char__.0
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], 0xfa
mov rcx, qword [rcx + 0x10]
mov rax, qword [rcx]
lea r8, [rsp + 0x30]
call qword [rax + 8]
mov rcx, qword [rdi + 0x70]
mov rbx, qword [rsp + 0x40]
add rcx, rbx
mov qword [rdi + 0x70], rcx
cmp rcx, qword [rdi + 0x60]
jbe 0x1400a746f
mov rcx, rdi
call fcn.1400a66a0
mov rbx, qword [rsp + 0x40]
mov qword [rdi + 0x70], rbx
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, rbx
jne 0x1400a74fa
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
cmp rcx, rax
je 0x1400a74d5
mov rdx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a74cf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400a74cf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400aa758
nop
mov rcx, qword [rsp + 0x1c8]
xor rcx, rsp
call fcn.1400aab20
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
nop
mov ebx, dword [rax]
lea rdx, [rdi + 0x88]
lea rcx, [rsp + 0x188]
call fcn.14009d8f0
nop
mov r8, rax
lea rdx, str.Failed_writing_to_file
lea rcx, [rsp + 0x1a8]
call fcn.140078cc0
nop
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x150]
call fcn.1400968b0
lea rdx, [0x140233f38]
lea rcx, [rsp + 0x150]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x1400ab990
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
sete al
add rsp, 0x28
ret

Function at 0x1400ab9f0
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
mov r10, rdx
mov rbx, rcx
mov rax, 0xffffffffffffffff
inc rax
cmp word [r8 + rax*2], 0
jne 0x1400aba03
lea ecx, [rax + rax]
test eax, eax
mov edx, 2
mov r9d, 1
cmovne edx, ecx
mov rcx, qword [rbx]
mov dword [rsp + 0x28], edx
mov rdx, r10
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1400aba4e
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov al, 1
add rsp, 0x30
pop rbx
ret
xor al, al
add rsp, 0x30
pop rbx
ret
Function at 0x1400aba60
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
push rbx
sub rsp, 0x30
mov rbx, rcx
mov dword [rsp + 0x28], 4
mov rcx, qword [rcx]
lea rax, [rsp + 0x50]
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1400abaa6
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov al, 1
add rsp, 0x30
pop rbx
ret
xor al, al
add rsp, 0x30
pop rbx
ret

Function at 0x1400b60e0
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.1400aaeb0
sub rsp, rax
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x28
ret
Function at 0x1400c9110
Capabilities:
Get thread local storage value

Disassembly:
mov eax, 0x28
call fcn.1400aaeb0
sub rsp, rax
lea rcx, [0x1402439b8]
add rsp, 0x28
jmp fcn.1400b5f40

Function at 0x1400df150
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x38
call fcn.1400aaeb0
sub rsp, rax
mov r10, rdx
mov dword [rsp + 0x40], reloc.WS2_32.dll_recv
add rdx, 0xf
lea rax, [r8 + 0xf]
mov r11, rcx
cmp r10, rax
ja 0x1400df180
xor r9d, r9d
cmp rdx, r8
jae 0x1400df199
movdqu xmm1, xmmword [r10]
movdqu xmm0, xmmword [r8]
pxor xmm1, xmm0
movdqu xmmword [r10], xmm1
mov r9d, reloc.WS2_32.dll_recv
cmp r9, 0x10
jae 0x1400df1c1
sub r8, r10
lea rax, [r9 + r10]
mov edx, reloc.WS2_32.dll_recv
sub rdx, r9
nop
movzx ecx, byte [r8 + rax]
xor byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x1400df1b0
mov rcx, qword [r11 + 8]
lea r8, [rsp + 0x40]
mov r9, r10
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov rdx, r10
call fcn.1400af5c0
test eax, eax
je 0x1400df1f2
cmp dword [rsp + 0x40], 0x10
jne 0x1400df1f2
mov eax, 1
add rsp, 0x38
ret
xor eax, eax
add rsp, 0x38
ret

Function at 0x1400df3a0
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x1400df428
test r8, r8
je 0x1400df428
mov rax, qword [rcx + 0x18]
cmp r8, rax
mov r9, rax
cmovb r9, r8
test r9, r9
je 0x1400df3e6
add rcx, 0x20
mov r11, rdx
sub r11, r10
nop
movzx eax, byte [r11 + rcx - 0x20]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub r9, 1
jne 0x1400df3d0
mov rax, qword [r10 + 0x18]
cmp r8, rax
jbe 0x1400df428
sub r8, rax
mov eax, reloc.WS2_32.dll_recv
cmp r8, rax
cmova r8, rax
xor ecx, ecx
test r8, r8
je 0x1400df428
nop dword [rax]
nop word [rax + rax]
mov rax, qword [r10 + 0x18]
add rax, rcx
movzx eax, byte [rax + rdx]
xor byte [r10 + rcx + 0x40], al
inc rcx
cmp rcx, r8
jb 0x1400df410
ret

Function at 0x1400eac00
Capabilities:
Query environment variable

Disassembly:
push rbx
mov eax, 0x20
call fcn.1400aaeb0
sub rsp, rax
mov rbx, rcx
call fcn.14009aea0
test eax, eax
je 0x1400eac23
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]

Function at 0x14012cd30
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x38
call fcn.1400aaeb0
sub rsp, rax
cmp dword [rsp + 0x68], 0
je 0x14012cd59
lea rax, [0x14012b3a0]
mov qword [rsp + 0x68], rax
add rsp, 0x38
jmp fcn.1400bea80
lea rax, [0x14012a560]
mov qword [rsp + 0x68], rax
add rsp, 0x38
jmp fcn.1400be7d0
Function at 0x140133cf9
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x140133eea
push rbx
mov eax, 0xd0
call fcn.1400aaeb0
sub rsp, rax
mov rax, qword [0x140239158]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xe8], rbp
mov rbx, rdx
mov qword [rsp + 0xf0], rsi
lea rbp, [r8 - 1]
mov qword [rsp + 0xf8], rdi
mov qword [rsp + 0xc8], r14
lea r14, [rcx + 0xc]
shr rbp, 3
mov qword [rsp + 0xc0], r15
inc rbp
lea r15, [rcx + 0x14]
nop word [rax + rax]
movzx eax, byte [rbx + 1]
mov rcx, r14
movzx edi, byte [rbx]
movzx esi, byte [rbx + 4]
lea rbx, [rbx + 8]
shl eax, 8
or edi, eax
movzx eax, byte [rbx - 6]
shl eax, 0x10
or edi, eax
movzx eax, byte [rbx - 5]
shl eax, 0x18
or edi, eax
movzx eax, byte [rbx - 3]
shl eax, 8
or esi, eax
mov dword [rsp + 0x20], edi
movzx eax, byte [rbx - 2]
shl eax, 0x10
or esi, eax
mov dword [rsp + 0x28], edi
movzx eax, byte [rbx - 1]
and byte [r14], 0xdf
and byte [r15], 0xbf
or byte [r14], 0x40
or byte [r15], 0x20
shl eax, 0x18
or esi, eax
mov dword [rsp + 0x24], esi
mov dword [rsp + 0x2c], esi
call fcn.140120820
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.1401201c0
mov r8d, 1
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x28]
call fcn.14011cf00
mov rcx, r15
call fcn.140120820
lea rdx, [rsp + 0x30]
mov rcx, r15
call fcn.1401201c0
mov r8d, 1
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.14011cf00
mov r8d, dword [rsp + 0x20]
mov edx, dword [rsp + 0x24]
xor r8d, edi
xor edi, dword [rsp + 0x28]
xor edx, esi
xor esi, dword [rsp + 0x2c]
mov eax, edi
mov byte [r14], dil
shr eax, 8
mov byte [r14 + 1], al
mov eax, edi
shr eax, 0x10
mov byte [r14 + 2], al
mov eax, edx
shr eax, 8
shr edi, 0x18
mov byte [r14 + 3], dil
mov byte [r14 + 4], dl
mov byte [r14 + 5], al
mov eax, edx
shr eax, 0x10
mov byte [r14 + 6], al
mov eax, r8d
shr eax, 8
shr edx, 0x18
mov byte [r14 + 7], dl
mov byte [r15], r8b
mov byte [r15 + 1], al
mov eax, r8d
shr eax, 0x10
mov byte [r15 + 2], al
shr r8d, 0x18
mov byte [r15 + 3], r8b
mov byte [r15 + 4], sil
mov eax, esi
shr eax, 8
mov byte [r15 + 5], al
mov eax, esi
shr eax, 0x10
shr esi, 0x18
mov byte [r15 + 6], al
mov byte [r15 + 7], sil
sub rbp, 1
jne 0x140133d60
mov r15, qword [rsp + 0xc0]
mov r14, qword [rsp + 0xc8]
mov rdi, qword [rsp + 0xf8]
mov rsi, qword [rsp + 0xf0]
mov rbp, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400aab20
add rsp, 0xd0
pop rbx
ret
Function at 0x1401959d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov r12, r9
movzx r15d, r8b
mov r14, rdx
mov r10, rcx
mov r13, qword [rcx]
mov rsi, r13
mov rbx, qword [r13 + 8]
mov dil, 1
cmp byte [rbx + 0x19], 0
jne 0x140195a5e
mov rsi, rbx
test r15b, r15b
je 0x140195a33
lea rcx, [rbx + 0x20]
mov rdx, r12
call fcn.140185f20
mov edi, eax
shr edi, 0x1f
xor dil, 1
jmp 0x140195a45
lea rdx, [rbx + 0x20]
mov rcx, r12
call fcn.140185f20
shr eax, 0x1f
movzx edi, al
test dil, dil
je 0x140195a4f
mov rbx, qword [rbx]
jmp 0x140195a53
mov rbx, qword [rbx + 0x10]
cmp byte [rbx + 0x19], 0
je 0x140195a14
mov r10, qword [rsp + 0x70]
mov rbx, rsi
mov rcx, rsi
test dil, dil
je 0x140195b20
cmp rsi, qword [r13]
jne 0x140195aaa
movzx eax, byte [rsp + 0x90]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], r12
mov r9, rsi
mov r8b, 1
lea rdx, [rsp + 0x70]
mov rcx, r10
call fcn.140195740
mov rax, qword [rax]
mov qword [r14], rax
mov byte [r14 + 8], 1
mov rax, r14
jmp 0x140195b75
cmp byte [rsi + 0x19], 0
je 0x140195ab6
mov rbx, qword [rsi + 0x10]
jmp 0x140195b1d
mov rax, qword [rsi]
cmp byte [rax + 0x19], 0
je 0x140195aff
mov rax, qword [rsi + 8]
cmp byte [rax + 0x19], 0
jne 0x140195af1
mov rdx, rsi
nop dword [rax]
mov r8, rax
mov r9, rax
mov rcx, rdx
cmp rdx, qword [rax]
jne 0x140195af1
mov rbx, rax
mov rax, qword [rax + 8]
mov rdx, rbx
mov rcx, rbx
cmp byte [rax + 0x19], 0
je 0x140195ad0
cmp byte [rbx + 0x19], 0
jne 0x140195b20
mov rbx, rax
mov rcx, rax
jmp 0x140195b20
mov rbx, rax
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], 0
jne 0x140195b1d
nop dword [rax]
mov rbx, rax
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], 0
je 0x140195b10
mov rcx, rbx
add rcx, 0x20
mov rdx, r12
call fcn.140185f20
shr eax, 0x1f
test al, al
je 0x140195b6a
movzx eax, byte [rsp + 0x90]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], r12
mov r9, rsi
movzx r8d, dil
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
call fcn.140195740
mov rax, qword [rax]
mov qword [r14], rax
mov byte [r14 + 8], 1
mov rax, r14
jmp 0x140195b75
mov qword [r14], rbx
mov byte [r14 + 8], 0
mov rax, r14
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x629362e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x62bef5e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x62936468
mov rax, qword [0x62bef5e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6293632c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x629363b5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x62936310
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6293649d
mov rax, qword [0x62bef5e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x62bef5e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x62936480
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x629363ae
sub eax, 0x40
and eax, 0xffffffbf
jne 0x62936410
add dword [0x62bef5e4], 1
cmp edi, 8
jae 0x629363e3
test dil, 4
jne 0x62936454
test edi, edi
je 0x629363d8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6293646f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x629363d8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x629363fc
jmp 0x629363d8
add rsi, qword [0x62bef5e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x629363ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x629363d8
xor esi, esi
jmp 0x62936337
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x629363d8
mov rax, qword [0x62bef5e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x62936bf0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x62bef8c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x62bef8a0]
test rbx, rbx
je 0x62936c44
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x62936c3b
test rsi, rsi
je 0x62936c3b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x62936c20
lea rcx, [0x62bef8c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x62936e80
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x62936e90
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x62936ea0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x62936ee1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x62936ed8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x62936ee3
add rax, 0x28
cmp rax, r9
jne 0x62936ec4
xor eax, eax
ret

Function at 0x62936f80
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x62bec030]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x62936fed
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x62936fed
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x62936fed
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x62936fe4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x62936fef
add rax, 0x28
cmp rax, r9
jne 0x62936fd0
xor eax, eax
add rsp, 0x28
ret

Function at 0x629370f0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x62bec030]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x62937110
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x62937108
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6293716d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x62937164
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x62937174
add rax, 0x28
cmp rax, r9
jne 0x62937150
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x62937190
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x62bec030]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x629371fe
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x629371fe
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x629371fe
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x629371fe
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x629371f5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x62937205
add rcx, 0x28
cmp rcx, rax
jne 0x629371e0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x62937218
jmp 0x629371fe
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x62937226
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x629371fe
test r9d, r9d
jg 0x62937210
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x629377e0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], 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 [rsp + 0x28]
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
nop
nop
nop
nop
nop
nop
Function at 0x14000147f
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140007a40]
mov dword [rax], 1
mov rax, qword [0x140007a50]
mov dword [rax], 1
mov rax, qword [0x140007a60]
mov dword [rax], 1
mov rax, qword [0x140007a00]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014d0
mov eax, 0
jmp 0x14000157d
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 0x1400014fc
mov eax, 0
jmp 0x14000157d
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001522
cmp eax, 0x20b
je 0x140001549
jmp 0x140001578
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001535
mov eax, 0
jmp 0x14000157d
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000157d
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001564
mov eax, 0
jmp 0x14000157d
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000157d
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001b10
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rsi, rcx
mov rbx, rdx
test rdx, rdx
je 0x140001b2f
mov rcx, rdx
call sub.ucrtbase.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.ucrtbase.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp 0x140004ef0

Function at 0x140002b88
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov qword [rsp + 0x28], rdx
mov rsi, rcx
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov r8, qword [rsp + 0x28]
mov rcx, rsi
mov edx, 1
mov rbx, rax
mov r9, rax
call sub.ucrtbase.dll_fwrite
mov rcx, rbx
add rsp, 0x38
pop rbx
pop rsi
jmp 0x140004ef0
jmp qword [sym.imp.ucrtbase.dll_fflush]

Function at 0x140002bc7
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp qword [0x14000c0e8], 0
jne 0x140002bdd
add rsp, 0x40
pop rbx
jmp fcn.140002b88
lea rbx, [rsp + 0x30]
mov rdx, rcx
mov rcx, rbx
call fcn.140002b01
movaps xmm0, xmmword [rsp + 0x30]
lea rcx, [rsp + 0x20]
movaps xmmword [rsp + 0x20], xmm0
call qword [0x14000c0e8]
mov rcx, rbx
call fcn.140001b73
cmp byte [0x14000c0c0], 0
je 0x140002c36
mov rax, qword [0x14000c0f0]
lea rcx, [0x14000c0f0]
mov byte [0x14000c0c0], 0
mov rdx, qword [rax + 0x38]
add rsp, 0x40
pop rbx
jmp fcn.140001e52
add rsp, 0x40
pop rbx
ret