joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002c7d0
Capabilities:
Access peb ldr_data

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x90
mov esi, ecx
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x18]
add rax, 0x10
mov qword [rsp + 0x60], rax
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
movzx eax, word [rax + 0x120]
mov word [rsp + 0x2e], ax
mov dword [rsp + 0x28], 0x536f83
mov edi, 0x4b3d8c3
mov ebx, 0x274d55c6
mov ebp, 0x9a8b0ce
mov r14d, 0x15c9c1ce
cmp dword [rsp + 0x28], 0x147ec401
jae 0x14002c898
cmp dword [rsp + 0x28], 0x98ed1ce
jae 0x14002c8b9
cmp dword [rsp + 0x28], 0x5eb22ab
jae 0x14002c8e6
cmp dword [rsp + 0x28], 0x56d2652
jae 0x14002c952
cmp dword [rsp + 0x28], 0x1aef4e9
jae 0x14002c9a5
movzx eax, word [rsp + 0x2e]
cmp eax, 0x1db2
mov eax, 0x58bc151
cmovb eax, edi
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 0
jmp 0x14002c82f
cmp dword [rsp + 0x28], 0x1b2c29f0
jae 0x14002c9da
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x88], rax
jmp 0x14002c8d4
cmp dword [rsp + 0x28], 0xc93fc76
jae 0x14002c920
mov rax, qword [rsp + 0x30]
add rax, 0x58
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x28], 0x274d55c6
mov qword [rsp + 0x38], rax
jmp 0x14002c82f
cmp dword [rsp + 0x28], 0x7e6f33c
jae 0x14002c980
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x70], rax
mov eax, 0x8d96f66
cmove eax, ebx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x38], 0
jmp 0x14002c82f
mov rax, qword [rsp + 0x30]
movzx ecx, word [rax + 0x58]
mov edx, ecx
mov rcx, qword [rax + 0x60]
call fcn.14002d0f8
cmp eax, esi
mov eax, 0x74d449b
cmove eax, r14d
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x58], rax
jmp 0x14002c82f
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x68], rax
cmp esi, 1
sete byte [rsp + 0x2d]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x28], 0x74d449b
mov qword [rsp + 0x58], rax
jmp 0x14002c82f
mov rax, qword [rsp + 0x68]
add rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
cmp byte [rsp + 0x2d], 0
mov eax, 0x12a8fbfa
cmovne eax, ebp
mov dword [rsp + 0x28], eax
jmp 0x14002c82f
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x18]
add rax, 0x20
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x28], 0x58bc151
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 0xfffffffffffffff0
jmp 0x14002c82f
mov rax, qword [rsp + 0x38]
add rsp, 0x90
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x14002cf92
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rsi, rcx
lea rax, [rcx + 0x10]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], 0x4c1256
mov ebx, 0x37d0aa2d
movabs r14, 0x5a16a7cfcfe63370
movabs r15, 0xd98b9cd31f450c50
cmp dword [rsp + 0x2c], 0x214aee59
ja 0x14002cf4d
mov rcx, rsi
call fcn.14002cb6f
mov edi, eax
call fcn.14002ccc8
mov r10d, eax
xor ecx, ecx
mov eax, 0x40000000
xchg rbx, r12
cpuid
xchg rbx, r12
mov r9d, ecx
mov r8d, edx
mov r11d, eax
xor ecx, ecx
mov eax, 1
xchg rbx, rbp
cpuid
xchg rbx, rbp
xor ecx, ecx
xchg rbx, r13
cpuid
xchg rbx, r13
mov ebp, r10d
add ebp, edi
xor eax, r11d
xor r13d, r12d
or r13d, eax
xor ecx, r9d
or ecx, r13d
xor edx, r8d
or edx, ecx
setne al
xor r11d, r11d
mov r11b, al
mov eax, 0x4201337
xor ecx, ecx
xchg rbx, rdi
cpuid
xchg rbx, rdi
mov r8d, ecx
mov r9d, edx
mov r10d, eax
xor ecx, ecx
mov eax, 0x40000000
xchg rbx, r12
cpuid
xchg rbx, r12
xor eax, r10d
xor r12d, edi
or r12d, eax
xor ecx, r8d
or ecx, r12d
xor edx, r9d
or edx, ecx
setne al
xor ecx, ecx
mov cl, al
add ecx, ebp
add ecx, r11d
cmp ecx, 2
mov eax, 0x7b98cc3e
cmovae eax, ebx
mov dword [rsp + 0x2c], eax
jmp 0x14002ce7f
cmp dword [rsp + 0x2c], 0x7379077a
jae 0x14002cf81
mov rax, qword [rsi]
xor rax, r14
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx]
xor rcx, r15
mov rdx, 0xffffffffffffffff
xor r8d, r8d
call rax
mov dword [rsp + 0x2c], 0x4c1256
jmp 0x14002ce7f
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ecx, 0xc8604c16
call fcn.14002c7d0
mov rcx, rax
mov edx, 0x88a430e3
call fcn.14002c9f5
mov rcx, qword gs:[0x30]
mov rcx, qword [rcx + 0x60]
mov rcx, qword [rcx + 0x30]
mov r8d, 0x150
mov edx, 8
call rax
mov qword [rsp + 0x28], rax
mov ecx, 0xc8604c16
call fcn.14002c7d0
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x28]
lea rdx, [rcx + 0x18]
mov qword [rsp + 0x38], rdx
mov qword [rcx + 0x18], rax
mov dword [rsp + 0x24], 0xfaa09a1
mov esi, 0x70161c88
movabs rdi, 0xecdff23cf919874c
movabs rbx, 0x220058200267081
movabs r14, 0x13200dc306e678b3
movabs r15, 0x5836a24dcfc043f1
movabs r12, 0xd98b9cd31f450c50
movabs r13, 0x5a16a7cfcfe63370
cmp dword [rsp + 0x24], 0x5cf95d2f
ja 0x14002d063
cmp qword [rsp + 0x30], 0
mov eax, 0x6060b16c
cmove eax, esi
mov dword [rsp + 0x24], eax
jmp 0x14002d045
cmp dword [rsp + 0x24], 0x60c8fbc2
jae 0x14002d0df
mov rcx, qword [rsp + 0x30]
mov edx, 0x46eb4953
call fcn.14002c9f5
mov rcx, rax
and rax, rdi
or rax, rbx
and rcx, r14
xor rcx, r15
xor rcx, rax
mov rax, qword [rsp + 0x28]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
mov edx, 0x609d2bf8
call fcn.14002c9f5
xor rax, r12
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
mov edx, 0x11f12777
call fcn.14002c9f5
xor rax, r13
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
mov dword [rsp + 0x24], 0x70161c88
jmp 0x14002d045
mov rcx, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp 0x14002ce42
Function at 0x140001eb0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x13b0
call fcn.140007500
sub rsp, rax
mov edi, ecx
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__time64]
mov rcx, rax
call qword [sym.imp.msvcrt.dll_srand]
xor ebx, ebx
call qword [sym.imp.msvcrt.dll_rand]
inc rbx
cmp rbx, 0x3e8
jl 0x140001ed8
call fcn.1400067bc
mov edx, eax
mov dword [rsp + 0x24], eax
mov ecx, 1
mov dword [rsp + 0x13a4], 0xffffffff
nop word [rax + rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rsp + rcx*4 + 0x24], edx
inc rcx
cmp rcx, 0x270
jb 0x140001f10
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x270
call fcn.140005b20
mov ecx, eax
imul rax, rcx, 0x1f5
cmp eax, 6
ja 0x140001f68
nop
lea rcx, [rsp + 0x20]
call fcn.140005b20
mov ecx, eax
imul rax, rcx, 0x1f5
cmp eax, 7
jb 0x140001f50
shr rax, 0x20
lea ecx, [rdi + 0x1388]
add ecx, eax
cmp ecx, 0x7f148
jne 0x140001ec5
mov rbx, qword [rsp + 0x13c0]
mov eax, ecx
add rsp, 0x13b0
pop rdi
ret
Function at 0x140002c70
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140002ca1
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x140002d1b
mov rdi, r14
mov rcx, rbx
call fcn.140003d20
test rax, rax
jle 0x140002cf3
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call sub.msvcrt.dll_memcpy
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140002d0b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140002d13
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140002cb5
sub r14, rdi
jmp 0x140002e01
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140002d32
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002d34
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002d66
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140002dfe
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140002da1
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x140002dde
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_fread]
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x140002dfe
cmp rbp, rax
ja 0x140002db0
test rbp, rbp
je 0x140002dfe
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_fread]
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140005b20
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x140005b81
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140005b40
mov ecx, dword [r9]
jmp 0x140005c6b
cmp ecx, 0x4e0
jb 0x140005c6b
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140005ba0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140005bf0
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x140007980
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov rbp, r9
mov r14, r8
mov rbx, rdx
mov rsi, rcx
call fcn.140008700
mov rdi, qword [rsp + 0x70]
mov qword [rax + 0x138], rbx
mov rbx, qword [rdi + 8]
call fcn.140008700
mov qword [rax + 0x128], rbx
mov rax, qword [rsi]
mov rbx, qword [rax + 0x38]
call fcn.140008700
mov ecx, dword [0x140015300]
mov r9, rdi
mov byte [rsp + 0x38], 1
mov r8, rbp
mov edx, 0x10
mov qword [rax + 0x130], rbx
xor ebx, ebx
mov rax, qword gs:[0x58]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov rcx, qword [rax + rcx*8]
mov eax, dword [rsp + 0x80]
mov dword [rdx + rcx], eax
mov rdx, r14
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsi]
mov qword [rsp + 0x20], rax
call fcn.140009b90
call fcn.140008700
mov rcx, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov qword [rax + 0x138], rbx
lea eax, [rbx + 1]
mov rbx, qword [rsp + 0x50]
mov dword [rcx], 1
add rsp, 0x40
pop r14
ret
Function at 0x14000b240
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x4f0]
sub rsp, 0x5f0
mov rax, qword [0x140014080]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14000b27c
mov ecx, 5
int 0x29
mov ecx, 2
call fcn.140007828
xorps xmm0, xmm0
lea rcx, [rbp + 0x10]
xor eax, eax
xor edx, edx
mov r8d, 0x4d0
mov qword [rbp], rax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rcx, [rbp + 0x10]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rbp + 0x108]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x14000b338
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], 0
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov rax, qword [rbp + 0x4f8]
mov qword [rbp + 0x108], rax
lea rax, [rbp + 0x4f8]
add rax, 8
mov dword [rsp + 0x70], 0xc0000417
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x4f8]
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x74], 1
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x14000b39e
test ebx, ebx
jne 0x14000b39e
lea ecx, [rax + 2]
call fcn.140007828
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp + 0x4e0]
xor rcx, rsp
call fcn.140007290
mov rbx, qword [rsp + 0x600]
add rsp, 0x5f0
pop rbp
ret
Function at 0x14000b4b0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x530
mov rax, qword [0x140014080]
xor rax, rsp
mov qword [rsp + 0x520], rax
xor ebx, ebx
mov rdi, rdx
mov esi, ecx
test rdx, rdx
je 0x14000b51c
lea edx, [rbx + 0x2d]
mov rcx, rdi
call sub.msvcrt.dll_strchr
test rax, rax
je 0x14000b51c
mov ecx, ebx
lea r8, [rsp + 0x120]
mov rdx, rdi
nop dword [rax]
movsx eax, byte [rdx]
test al, al
je 0x14000b56f
mov word [r8], ax
inc ecx
add r8, 2
inc rdx
cmp ecx, 0x100
jne 0x14000b500
mov rcx, qword [0x140015238]
test rcx, rcx
jne 0x14000b552
call fcn.14000c450
mov rcx, rax
lea rdx, str.setlocale
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov rcx, 0xffffffffffffffff
cmovne rcx, rax
mov qword [0x140015238], rcx
cmp rcx, 0xffffffffffffffff
cmovne rbx, rcx
test rbx, rbx
je 0x14000b653
mov rdx, rdi
mov ecx, esi
call rbx
jmp 0x14000b655
movsxd rax, ecx
add rax, rax
cmp rax, 0x200
jae 0x14000b67a
mov edx, 0x2d
mov word [rsp + rax + 0x120], bx
lea rcx, [rsp + 0x120]
call sub.msvcrt.dll_wcsrchr
test rax, rax
je 0x14000b51c
mov r9d, 0xff
lea r8, [rsp + 0x320]
mov edx, 0x1001
lea rcx, [rsp + 0x120]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
je 0x14000b51c
lea ecx, [rax - 1]
mov r9d, 0x100
movsxd rdx, ecx
lea r8, [rsp + 0x320]
sub r9d, eax
mov ecx, 0x5f
cdqe
mov word [rsp + rdx*2 + 0x320], cx
mov edx, 0x1002
lea rcx, [rsp + 0x120]
lea r8, [r8 + rax*2]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
je 0x14000b51c
lea rcx, [rsp + 0x320]
mov eax, ebx
lea rdx, [rsp + 0x20]
movzx r8d, word [rcx]
test r8w, r8w
je 0x14000b643
mov byte [rdx], r8b
inc eax
inc rdx
add rcx, 2
cmp eax, 0x100
jne 0x14000b621
jmp 0x14000b51c
cdqe
lea rdi, [rsp + 0x20]
mov byte [rsp + rax + 0x20], bl
jmp 0x14000b51c
xor eax, eax
mov rcx, qword [rsp + 0x520]
xor rcx, rsp
call fcn.140007290
lea r11, [rsp + 0x530]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140007bc0
int3

Function at 0x14000bbd0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov ebx, ecx
mov dword [rsp + 0x60], 0
xor ecx, ecx
mov dword [rsp + 0x68], 2
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000bc32
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000bc32
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
jne 0x14000bc32
mov eax, 0x20b
cmp word [rdx + 0x18], ax
jne 0x14000bc32
cmp dword [rdx + 0x84], 0xe
jbe 0x14000bc32
cmp dword [rdx + 0xf8], 0
je 0x14000bc32
mov ecx, ebx
call fcn.14000ba90
lea rax, [rsp + 0x68]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [0x140015268]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.14000b910
cmp dword [rsp + 0x60], 0
jne 0x14000bc75
mov ecx, ebx
call fcn.14000ba40
int3
add rsp, 0x40
pop rbx
ret
Function at 0x14000bcc0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
xor eax, eax
mov ebx, ecx
xor ecx, ecx
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x68], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000bd1c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000bd1c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000bd1c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000bd1c
cmp dword [rcx + 0x84], 0xe
jbe 0x14000bd1c
cmp dword [rcx + 0xf8], 0
je 0x14000bd1c
mov ecx, ebx
call fcn.14000ba90
lea rax, [rsp + 0x68]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [0x140015268]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.14000b910
cmp dword [rsp + 0x60], 0
jne 0x14000bd5f
mov ecx, ebx
call fcn.14000ba40
int3
add rsp, 0x40
pop rbx
ret

Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002290
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002290
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

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

Disassembly:
mov rax, qword [0x140013008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x140013008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x140013008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140013008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret
Function at 0x140005a20
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, 0xffff
movzx edi, dx
mov rbx, rcx
cmp si, dx
jne 0x140005a51
xor eax, eax
jmp 0x140005b9b
mov rax, qword [rcx + 0x40]
mov r8, qword [rax]
test r8, r8
je 0x140005a8e
mov r9, qword [rcx + 0x58]
movsxd r10, dword [r9]
lea rdx, [r8 + r10*2]
cmp r8, rdx
jae 0x140005a8e
lea ecx, [r10 - 1]
movzx eax, di
mov dword [r9], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 2]
mov qword [rdx], rcx
mov word [r8], di
jmp 0x140005b9b
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xb0], rbp
je 0x140005b90
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140005ad5
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub rdx, rcx
mov rax, qword [rbx + 0x38]
sar rdx, 1
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140005ae3
movzx ecx, di
jmp 0x140005b37
lea rax, [rsp + 0x40]
mov word [rsp + 0x50], di
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x52]
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_wchar_t__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140005b50
sub eax, 1
je 0x140005b50
cmp eax, 2
jne 0x140005b90
movzx ecx, word [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
cmp ax, si
cmove di, si
movzx eax, di
jmp 0x140005b93
mov rbp, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rbp, rax
je 0x140005b7e
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbp
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbp, rax
jne 0x140005b90
lea rax, [rsp + 0x50]
mov byte [rbx + 0x72], 1
cmp qword [rsp + 0x48], rax
cmovne si, di
movzx eax, si
mov rbp, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140008520
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret