joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003f6d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r15, qword [r8]
xor r9d, r9d
mov r10d, 0x1c
cmp word [r15], 2
mov r11d, 8
mov r13, rdx
cmove r10d, r11d
mov rdx, rcx
mov r8d, 0x811c9dc5
test r10, r10
jle 0x14003f737
nop word [rax + rax]
movzx eax, byte [r9 + r15]
imul r8, r8, 0x1000193
inc r9
xor r8, rax
cmp r9, r10
jl 0x14003f720
mov rcx, qword [rcx + 0x40]
mov rbp, rcx
and rbp, r8
cmp qword [rdx + 0x48], rbp
ja 0x14003f754
shr rcx, 1
or rax, 0xffffffffffffffff
sub rax, rcx
add rbp, rax
mov r14, qword [rdx + 0x20]
mov rsi, qword [rdx + 8]
add rbp, rbp
mov r12, qword [r14 + rbp*8]
mov qword [rsp + 0x70], rdi
mov rbx, r12
nop dword [rax + rax]
cmp r12, rsi
jne 0x14003f77a
mov rax, rsi
jmp 0x14003f782
mov rax, qword [r14 + rbp*8 + 8]
mov rax, qword [rax]
cmp rbx, rax
je 0x14003f80f
mov rcx, qword [rbx + 0x10]
mov r8d, 0x1c
mov rdx, r15
cmp word [rcx], 2
cmove r8, r11
call fcn.140048f50
test eax, eax
je 0x14003f7b4
mov rbx, qword [rbx]
mov r11d, 8
jmp 0x14003f770
mov rdi, rbx
mov r13d, 8
nop dword [rax]
cmp r12, rsi
jne 0x14003f7ca
mov rax, rsi
jmp 0x14003f7d2
mov rax, qword [r14 + rbp*8 + 8]
mov rax, qword [rax]
cmp rbx, rax
je 0x14003f7fb
cmp word [r15], 2
mov rdx, qword [rbx + 0x10]
mov r8d, 0x1c
cmove r8, r13
mov rcx, r15
call fcn.140048f50
test eax, eax
jne 0x14003f7fb
mov rbx, qword [rbx]
jmp 0x14003f7c0
mov r13, qword [rsp + 0x68]
cmp rdi, rbx
je 0x14003f80f
mov qword [r13], rdi
mov qword [r13 + 8], rbx
jmp 0x14003f820
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 8]
mov qword [r13], rax
mov qword [r13 + 8], rax
mov rax, r13
mov rdi, qword [rsp + 0x70]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbp
pop rbx
ret
Function at 0x14003f840
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], r8
push rdi
sub rsp, 0x20
mov r11, qword [r8 + 0x10]
xor r10d, r10d
mov rdi, rcx
cmp word [r11], 2
mov ecx, 0x1c
mov eax, 8
cmove ecx, eax
mov rsi, rdx
mov r9d, 0x811c9dc5
test rcx, rcx
jle 0x14003f897
nop
movzx eax, byte [r10 + r11]
imul r9, r9, 0x1000193
inc r10
xor r9, rax
cmp r10, rcx
jl 0x14003f880
mov rcx, qword [rdi + 0x40]
mov rdx, rcx
and rdx, r9
cmp qword [rdi + 0x48], rdx
ja 0x14003f8b4
shr rcx, 1
or rax, 0xffffffffffffffff
sub rax, rcx
add rdx, rax
mov rcx, qword [rdi + 0x20]
add rdx, rdx
cmp qword [rcx + rdx*8 + 8], r8
jne 0x14003f8ea
cmp qword [rcx + rdx*8], r8
jne 0x14003f8df
mov rax, qword [rdi + 8]
mov qword [rcx + rdx*8], rax
mov rcx, qword [rdi + 0x20]
mov rax, qword [rdi + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x14003f8f7
mov rax, qword [r8 + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x14003f8f7
cmp qword [rcx + rdx*8], r8
jne 0x14003f8fc
mov rax, qword [r8]
mov qword [rcx + rdx*8], rax
mov r8, qword [rsp + 0x40]
mov rbx, qword [r8]
cmp r8, qword [rdi + 8]
je 0x14003f923
mov rax, qword [r8 + 8]
mov rcx, r8
mov qword [rax], rbx
mov rdx, qword [r8]
mov rax, qword [r8 + 8]
mov qword [rdx + 8], rax
call fcn.140044950
dec qword [rdi + 0x10]
mov qword [rsi], rbx
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14003fb40
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r15, qword [r8]
mov rbp, rdx
mov rdi, r9
xor r9d, r9d
cmp word [r15], 2
mov r10d, 0x1c
mov r11d, 8
mov edx, r10d
mov r12, rcx
cmove edx, r11d
mov r8d, 0x811c9dc5
test rdx, rdx
jle 0x14003fba7
nop dword [rax + rax]
movzx eax, byte [r9 + r15]
imul r8, r8, 0x1000193
inc r9
xor r8, rax
cmp r9, rdx
jl 0x14003fb90
mov rcx, qword [rcx + 0x40]
mov rsi, rcx
and rsi, r8
cmp qword [r12 + 0x48], rsi
ja 0x14003fbc5
shr rcx, 1
or rax, 0xffffffffffffffff
sub rax, rcx
add rsi, rax
mov rax, qword [r12 + 0x20]
mov rbx, qword [r12 + 8]
add rsi, rsi
mov r14, qword [rax + rsi*8]
cmp rbx, r14
je 0x14003fc21
mov rbx, qword [rax + rsi*8 + 8]
mov rbx, qword [rbx]
cmp rbx, r14
je 0x14003fc21
cmp word [r15], 2
mov rax, r10
cmove rax, r11
mov qword [rsp + 0x70], rax
nop dword [rax]
mov rbx, qword [rbx + 8]
mov r8, rax
mov rcx, r15
mov rdx, qword [rbx + 0x10]
call fcn.140048f50
test eax, eax
je 0x14003fc77
mov rax, qword [rsp + 0x70]
cmp rbx, r14
jne 0x14003fc00
mov rax, qword [rdi]
cmp rbx, rax
je 0x14003fc54
lea r8, [r12 + 8]
lea rcx, [r12 + 8]
mov r9, rdi
mov rdx, rbx
mov qword [rsp + 0x28], 1
mov qword [rsp + 0x20], rax
call fcn.140042470
mov rdi, qword [rsp + 0x88]
mov rdx, qword [r12 + 0x20]
mov rax, qword [rdx + rsi*8]
cmp rax, qword [r12 + 8]
jne 0x14003fcd2
mov qword [rdx + rsi*8], rdi
mov rax, qword [r12 + 0x20]
mov qword [rax + rsi*8 + 8], rdi
jmp 0x14003fd02
mov rcx, qword [rbx + 0x10]
mov eax, 8
mov r8d, 0x1c
cmp word [rcx], 2
mov rdx, r15
cmove r8d, eax
call fcn.140048f50
test eax, eax
je 0x14003fc9f
mov rbx, qword [rbx]
jmp 0x14003fc21
cmp rdi, qword [r12 + 8]
je 0x14003fcc8
mov rcx, qword [rdi + 8]
mov rax, qword [rdi]
mov qword [rcx], rax
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
mov qword [rcx + 8], rax
mov rcx, rdi
call fcn.140044950
dec qword [r12 + 0x10]
mov qword [rbp], rbx
mov byte [rbp + 8], 0
jmp 0x14003fd1a
cmp rax, rbx
jne 0x14003fcdd
mov qword [rdx + rsi*8], rdi
jmp 0x14003fd02
mov rax, qword [rdx + rsi*8 + 8]
mov rcx, qword [rax]
mov qword [rdx + rsi*8 + 8], rcx
cmp rcx, rdi
je 0x14003fd02
mov rdx, qword [r12 + 0x20]
mov rax, qword [rdx + rsi*8 + 8]
mov rcx, qword [rax + 8]
mov qword [rdx + rsi*8 + 8], rcx
mov rcx, r12
call fcn.14003f9d0
mov r11, qword [rsp + 0x88]
mov byte [rbp + 8], 1
mov qword [rbp], r11
mov rax, rbp
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400418c0
Capabilities:
Create thread

Disassembly:
push rbp
push rdi
push r12
sub rsp, 0x30
xor r12d, r12d
mov rbp, rcx
mov edi, r12d
cmp dword [rcx + 0x18], r12d
jbe 0x1400419f3
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
nop word [rax + rax]
lea r8, [0x140041690]
mov r9, rbp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r12d
call fcn.140046268
mov rsi, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400419d6
mov rax, qword [rbp + 0x178]
lea rcx, [rsp + 0x50]
cmp rcx, rax
jae 0x140041982
mov rcx, qword [rbp + 0x170]
lea rdx, [rsp + 0x50]
cmp rcx, rdx
ja 0x140041982
lea rsi, [rsp + 0x50]
sub rsi, rcx
sar rsi, 3
cmp rax, qword [rbp + 0x180]
jne 0x140041966
lea rcx, [rbp + 0x170]
mov edx, 1
call fcn.140024d10
mov rdx, qword [rbp + 0x178]
test rdx, rdx
je 0x1400419ab
mov rax, qword [rbp + 0x170]
mov rcx, qword [rax + rsi*8]
mov qword [rdx], rcx
jmp 0x1400419ab
cmp rax, qword [rbp + 0x180]
jne 0x14004199c
lea rcx, [rbp + 0x170]
mov edx, 1
call fcn.140024d10
mov rcx, qword [rbp + 0x178]
test rcx, rcx
je 0x1400419ab
mov qword [rcx], rsi
add qword [rbp + 0x178], 8
inc edi
cmp edi, dword [rbp + 0x18]
jb 0x1400418f0
mov eax, 1
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x16c], 8
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, r12d
jmp 0x1400419c3
mov eax, 1
add rsp, 0x30
pop r12
pop rdi
pop rbp
ret

Function at 0x14004e490
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14004e300
Function at 0x1400518a7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140097800]
jne 0x1400475da
rol rcx, 0x10
test cx, 0xffff
jne 0x1400475d6
repz ret
ror rcx, 0x10
jmp 0x140051800
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14009b9f0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14009bae8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140051885
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14009b9f0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1400518a7
mov rax, qword [rsp + 0x88]
mov qword [0x14009bae8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14009ba88], rax
mov rax, qword [0x14009bae8]
mov qword [0x14009b960], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14009ba70], rax
mov dword [0x14009b950], 0xc0000409
mov dword [0x14009b954], 1
mov rax, qword [0x140097800]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140097808]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14009b9e8], eax
mov ecx, 1
call fcn.1400607b8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400800e0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14009b9e8], 0
jne 0x14005192e
mov ecx, 1
call fcn.1400607b8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140061bf0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x140097800]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.14004e4f0
xor ebx, ebx
cmp qword [0x14009c1e0], rbx
mov rdi, rax
jne 0x140061d03
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140061dda
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140061dda
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14009c1e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14009c1e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x14009c1f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x14009c200], rax
test rax, rax
je 0x140061cfa
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x14009c1f8], rax
jmp 0x140061d0a
mov rax, qword [0x14009c1f8]
jmp 0x140061d11
mov rax, qword [0x14009c1f8]
mov r11, qword [0x14009c200]
cmp rax, rdi
je 0x140061d78
cmp r11, rdi
je 0x140061d78
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x14009c200]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140061d78
test rax, rax
je 0x140061d78
call rsi
test rax, rax
je 0x140061d72
lea rcx, [rsp + 0x30]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140061d72
test byte [rsp + 0x40], 1
jne 0x140061d78
bts ebp, 0x15
jmp 0x140061db8
mov rcx, qword [0x14009c1e8]
cmp rcx, rdi
je 0x140061db8
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140061db8
call rax
mov rbx, rax
test rax, rax
je 0x140061db8
mov rcx, qword [0x14009c1f0]
cmp rcx, rdi
je 0x140061db8
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140061db8
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14009c1e0]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140061dda
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140061ddc
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400475c0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140003fc0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rbx, rcx
mov qword [rbp + 0x1f], rcx
xorps xmm0, xmm0
movups xmmword [rbp + 0x2f], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x3f], xmm1
mov r8d, 0x2c
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
lea rcx, [rbp + 0x2f]
call fcn.140008580
nop
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xf], xmm1
mov r8d, 3
lea rdx, [0x14000c940]
lea rcx, [rbp - 1]
call fcn.140008580
mov dword [rbp + 0x27], 0
mov dword [rbp + 0x2b], 4
lea rdx, [rbp + 0x2f]
cmp qword [rbp + 0x47], 7
cmova rdx, qword [rbp + 0x2f]
lea rax, [rbp + 0x1f]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400040ab
lea rdx, [rbp - 1]
cmp qword [rbp + 0x17], 7
cmova rdx, qword [rbp - 1]
lea rax, [rbp + 0x2b]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x27]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rbp + 0x1f]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp + 0x1f]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbp + 0x17]
cmp rdx, 7
jbe 0x1400040ee
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400040e9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400040e9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009f6c
mov edx, dword [rbp + 0x27]
mov rcx, rbx
call fcn.140007940
nop
mov rdx, qword [rbp + 0x47]
cmp rdx, 7
jbe 0x14000413d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x2f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004138
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004138
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009f6c
mov rax, rbx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140009e40
mov rbx, qword [rsp + 0xa8]
add rsp, 0x90
pop rbp
ret
Function at 0x140009918
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140009952
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140009957
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400099a0
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14000c400]
cmp byte [rcx + rax], 0
je 0x1400099a0
dec r8
sub rdx, 1
jne 0x140009986
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14000a90c
Capabilities:
Parse pe header

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

Function at 0x18350c718
Capabilities:
Encode data using xor

Disassembly:
jmp 0x18350c722
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x18350c74b
pop rbp
sub rbp, 0x33
sub rbp, 0x350c718
cmp edx, 1
je 0x18350c78e
ldmxcsr dword [rsp]
add rsp, 8
popfq
pop r15
pop r14
pop r13
pop r12
pop r11
pop r10
pop r9
pop r8
pop rdi
pop rsi
pop rbp
pop rbx
pop rdx
pop rcx
pop rax
xor rax, rax
ret
sub rsp, 0x20
jmp 0x18350c79e
mov rax, 0x350c718
add rax, rbp
add rax, 0xb8
mov rcx, 0x60b
mov rdx, 0x3e43c9b
xor byte [rax], dl
inc rax
dec rcx
jne 0x18350c7bd
jmp 0x18350c7d4
rcl dword [rdx], cl
jb 0x18350c7e8
adc ah, byte [rdi - 0x2c646465]
sbb bl, byte [rdx - 0x6d]
invalid
pop rsp
pop rbx
sahf
wait
wait
wait
rcr dword [rcx + rbx*2 - 0x4d], cl
wait
wait
wait
shr dword [rcx + rdi*2 - 0x2d], cl
invalid
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140077440]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140077450]
mov dword [rax], 1
mov rax, qword [0x140077460]
mov dword [rax], 1
mov rax, qword [0x1400773c0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140077430]
mov dword [0x14007a00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140077500]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400774e0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400773a0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x1400014a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
movsxd rax, dword [rcx + 0x3c]
mov r13d, dword [rcx + rax + 0x88]
add r13, rcx
mov rsi, rcx
mov rbp, rdx
mov edi, dword [r13 + 0x18]
mov eax, dword [r13 + 0x20]
test edi, edi
je 0x140001520
xor ebx, ebx
lea r12, [rcx + rax]
jmp 0x1400014e1
add rbx, 1
cmp rbx, rdi
je 0x140001520
mov edx, dword [r12 + rbx*4]
mov rcx, rbp
add rdx, rsi
call sym.strcmp
test eax, eax
jne 0x1400014d8
mov eax, dword [r13 + 0x24]
lea rdx, [rsi + rbx*2]
movzx edx, word [rdx + rax]
mov eax, dword [r13 + 0x1c]
lea rdx, [rsi + rdx*4]
mov eax, dword [rdx + rax]
add rax, rsi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x140001970
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14007a0c4]
mov rbx, rcx
test esi, esi
jle 0x140001aa0
mov rax, qword [0x14007a0c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400019bb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001a45
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400019a0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001ac2
mov rax, qword [0x14007a0c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14007a0c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001aa7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001a3e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001a50
add dword [0x14007a0c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14007a0c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001a3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1400019c8
mov rax, qword [0x14007a0c8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002050
Capabilities:
Get thread local storage value

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

Function at 0x1400022c0
Capabilities:
Parse pe header

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