joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800110b0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x180011175
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x180011175
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x18001118e
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx + 0x10]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx]
cmp rcx, rax
je 0x180011165
cmp byte [rcx], 0x5c
jne 0x18001115e
lea rdx, [rcx + 1]
cmp rdx, rax
je 0x18001115e
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x18001114c
movzx eax, byte [rdx]
sub al, 0x28
cmp al, 1
jbe 0x18001115b
test r8b, 0x10
jne 0x18001115e
movzx eax, byte [rdx]
sub al, 0x7b
test al, 0xfd
jne 0x18001115e
mov rcx, rdx
lea rax, [rcx + 1]
mov qword [rbx], rax
mov rcx, rbx
call fcn.18000c900
test edi, edi
jne 0x1800110d0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.18000c8f0
int3

Function at 0x180013600
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.180013820
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x180013707
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180013664
mov rax, qword [0x180022008]
cmp qword [rsp + 0x20], rax
ja 0x180013664
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180013626
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x180013693
jmp 0x180013707
cmp dword [rsp + 0x50], 0x10000
jne 0x1800136ea
cmp qword [rsp + 0x48], 0x10000
jb 0x1800136ea
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800136d8
mov rax, qword [rsp + 0x28]
jmp 0x180013709
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180013702
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180013820
mov qword [rsp + 0x20], rax
jmp 0x180013626
xor eax, eax
add rsp, 0x68
ret
Function at 0x180013710
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.180013860
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180013813
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x18001376b
mov rax, qword [0x180022008]
cmp qword [rsp + 0x20], rax
ja 0x18001376b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18001372d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18001379a
jmp 0x180013813
cmp dword [rsp + 0x50], 0x10000
jne 0x1800137f1
cmp qword [rsp + 0x48], 0x10000
jb 0x1800137f1
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800137df
mov rax, qword [rsp + 0x28]
jmp 0x180013815
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18001380e
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180013860
mov qword [rsp + 0x20], rax
jmp 0x18001372d
xor eax, eax
add rsp, 0x68
ret
Function at 0x1800138b0
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180013e40
mov qword [rsp + 0x28], 0
cmp qword [0x180022798], 0
jne 0x1800138f8
cmp qword [0x180022790], 0
je 0x1800138f8
mov rax, qword [0x180022790]
mov qword [0x180022798], rax
cmp qword [0x180022798], 0
je 0x18001399e
mov rax, qword [0x180022798]
cmp qword [rax + 0x10], 0
je 0x18001399e
mov rax, qword [0x180022798]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18001399e
mov rax, qword [0x180022798]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18001399e
mov rax, qword [0x180022798]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x180013964
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x18001396b
xor eax, eax
jmp 0x180013b19
mov rax, qword [0x180022798]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x180013b19
mov rax, qword [0x180022790]
mov qword [0x180022798], rax
jmp 0x1800139c0
mov rax, qword [0x180022798]
mov rax, qword [rax + 8]
mov qword [0x180022798], rax
cmp qword [0x180022798], 0
je 0x180013a0d
cmp qword [0x180022798], 0
je 0x180013a0b
mov rax, qword [0x180022798]
cmp qword [rax + 0x10], 0
je 0x180013a0b
mov rax, qword [0x180022798]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x180013a0b
mov rax, qword [0x180022798]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x180013a0b
jmp 0x18001393c
jmp 0x1800139ae
mov rcx, qword [rsp + 0x60]
call fcn.180015a70
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180013b20
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180013b17
mov rax, qword [rsp + 0x48]
mov qword [0x180022798], rax
mov rax, qword [0x180022798]
mov dword [rax], 0x52727464
mov rax, qword [0x180022798]
mov qword [rax + 0x10], 0
mov rax, qword [0x180022798]
mov rcx, qword [0x180022790]
mov qword [rax + 8], rcx
mov rax, qword [0x180022798]
mov qword [0x180022790], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x180022798]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180013ac8
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180013b02
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x180013abe
mov rax, qword [0x180022798]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18001393c
xor eax, eax
add rsp, 0x58
ret
Function at 0x180016e6c
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 0x180016ea6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x180016eab
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 0x180016ef4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x18001a760]
cmp byte [rcx + rax], 0
je 0x180016ef4
dec r8
sub rdx, 1
jne 0x180016eda
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400080d0]
mov dword [rax], 1
mov rax, qword [0x1400080e0]
mov dword [rax], 1
mov rax, qword [0x1400080f0]
mov dword [rax], 1
mov rax, qword [0x1400080c0]
mov dword [rax], 1
mov rax, qword [0x140007f90]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
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 0x14000150a
mov eax, 0
jmp 0x14000158b
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 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400026cc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov eax, ecx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov byte [rbp + 0x10], al
mov byte [rbp - 1], 0
jmp 0x140002765
mov byte [rbp - 2], 0
jmp 0x14000275b
movzx eax, byte [rbp - 1]
movzx edx, byte [rbp - 2]
mov rcx, qword [rbp + 0x18]
movsxd rdx, edx
cdqe
shl rax, 2
add rax, rcx
add rax, rdx
movzx r8d, byte [rax]
movzx eax, byte [rbp + 0x10]
lea edx, [rax*4]
movzx eax, byte [rbp - 1]
add eax, edx
lea edx, [rax*4]
movzx eax, byte [rbp - 2]
add eax, edx
movsxd rdx, eax
mov rax, qword [rbp + 0x20]
add rax, rdx
movzx edx, byte [rax]
movzx eax, byte [rbp - 1]
movzx ecx, byte [rbp - 2]
xor edx, r8d
mov r8, qword [rbp + 0x18]
movsxd rcx, ecx
cdqe
shl rax, 2
add rax, r8
add rax, rcx
mov byte [rax], dl
add byte [rbp - 2], 1
cmp byte [rbp - 2], 3
jbe 0x1400026ed
add byte [rbp - 1], 1
cmp byte [rbp - 1], 3
jbe 0x1400026e7
nop
nop
add rsp, 0x10
pop rbp
ret

Function at 0x140002777
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov byte [rbp - 1], 0
jmp 0x1400027ea
mov byte [rbp - 2], 0
jmp 0x1400027e0
movzx eax, byte [rbp - 2]
movzx edx, byte [rbp - 1]
mov rcx, qword [rbp + 0x10]
movsxd rdx, edx
cdqe
shl rax, 2
add rax, rcx
add rax, rdx
movzx eax, byte [rax]
movzx eax, al
movzx ecx, byte [rbp - 2]
movzx r8d, byte [rbp - 1]
cdqe
lea rdx, str.cw
movzx edx, byte [rax + rdx]
mov r9, qword [rbp + 0x10]
movsxd r8, r8d
movsxd rax, ecx
shl rax, 2
add rax, r9
add rax, r8
mov byte [rax], dl
add byte [rbp - 2], 1
cmp byte [rbp - 2], 3
jbe 0x14000278f
add byte [rbp - 1], 1
cmp byte [rbp - 1], 3
jbe 0x140002789
nop
nop
add rsp, 0x10
pop rbp
ret

Function at 0x1400032a3
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov byte [rbp - 1], 0
jmp 0x140003316
mov byte [rbp - 2], 0
jmp 0x14000330c
movzx eax, byte [rbp - 2]
movzx edx, byte [rbp - 1]
mov rcx, qword [rbp + 0x10]
movsxd rdx, edx
cdqe
shl rax, 2
add rax, rcx
add rax, rdx
movzx eax, byte [rax]
movzx eax, al
movzx ecx, byte [rbp - 2]
movzx r8d, byte [rbp - 1]
cdqe
lea rdx, [0x140007b40]
movzx edx, byte [rax + rdx]
mov r9, qword [rbp + 0x10]
movsxd r8, r8d
movsxd rax, ecx
shl rax, 2
add rax, r9
add rax, r8
mov byte [rax], dl
add byte [rbp - 2], 1
cmp byte [rbp - 2], 3
jbe 0x1400032bb
add byte [rbp - 1], 1
cmp byte [rbp - 1], 3
jbe 0x1400032b5
nop
nop
add rsp, 0x10
pop rbp
ret

Function at 0x14000354e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov byte [rbp - 1], 0
jmp 0x140003594
movzx edx, byte [rbp - 1]
mov rax, qword [rbp + 0x10]
add rax, rdx
movzx ecx, byte [rax]
movzx edx, byte [rbp - 1]
mov rax, qword [rbp + 0x18]
add rax, rdx
movzx edx, byte [rax]
movzx r8d, byte [rbp - 1]
mov rax, qword [rbp + 0x10]
add rax, r8
xor edx, ecx
mov byte [rax], dl
add byte [rbp - 1], 1
cmp byte [rbp - 1], 0xf
jbe 0x140003564
nop
nop
add rsp, 0x10
pop rbp
ret
Function at 0x14006c034
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rbx, rcx
xor r15d, r15d
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x30], r15
mov qword [rbp + 0x228], r15
mov rsi, r9
mov r14, r8
mov rdi, rdx
call fcn.140009640
lea rcx, [rsp + 0x38]
call fcn.140009640
lea rcx, [rsp + 0x78]
call fcn.140009640
lea rdx, [0x1400dc1f0]
lea rcx, [rsp + 0x58]
call fcn.140007cf4
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.1400071f8
lea rdx, [0x1400dc218]
lea rcx, [rsp + 0x58]
call fcn.1400071f8
lea rcx, [rsp + 0x38]
call fcn.14000a854
test rdi, rdi
je 0x14006c0f1
cmp word [rdi], 0x5c
je 0x14006c0f1
cmp word [rdi + 2], 0x5c
je 0x14006c0f1
lea rdx, [0x1400dc228]
lea rcx, [rsp + 0x38]
call fcn.140007cf4
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.1400071f8
test rsi, rsi
je 0x14006c153
xor edx, edx
lea rcx, [rbp - 0x68]
lea r8d, [rdx + 0x30]
call fcn.140026240
lea rdx, [rsp + 0x38]
mov dword [rbp - 0x64], r15d
lea rcx, [rsp + 0x78]
call fcn.14000e0a8
lea rdx, str.IPC_
lea rcx, [rsp + 0x78]
call fcn.1400071f8
mov rax, qword [rsp + 0x78]
lea rcx, [rbp - 0x68]
mov rdx, qword [rbp + 0x230]
xor r9d, r9d
mov r8, rsi
mov qword [rbp - 0x50], rax
call qword [sym.imp.MPR.dll_WNetAddConnection2W]
mov ebx, eax
test eax, eax
js 0x14006c214
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x30]
mov rdx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov ebx, eax
test eax, eax
jne 0x14006c214
mov rdx, qword [rsp + 0x58]
lea rax, [rbp + 0x228]
mov rcx, qword [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x14006c209
mov rcx, qword [rbp + 0x228]
lea rax, [rbp + 0x218]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rbp - 0x30]
mov dword [rbp + 0x218], 0x1fe
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x14006c1fc
mov eax, dword [rbp + 0x218]
lea rcx, [rbp - 0x30]
shr eax, 1
mov rdx, r14
mov dword [rbp + 0x218], eax
mov word [rbp + rax*2 - 0x30], r15w
call qword [sym.imp.ole32.dll_CLSIDFromString]
mov ebx, eax
mov rcx, qword [rbp + 0x228]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x78]
call fcn.14000a07c
lea rcx, [rsp + 0x38]
call fcn.14000a07c
lea rcx, [rsp + 0x58]
call fcn.14000a07c
mov eax, ebx
mov rbx, qword [rsp + 0x310]
add rsp, 0x2e0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400011c0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x290
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor ebp, ebp
mov qword [rsp + 0x38], rcx
cmp qword [r8 + 0x18], 0xf
mov rbx, r9
mov rax, r8
mov rdi, rcx
jbe 0x1400011f7
mov rax, qword [r8]
lea rcx, [rsp + 0x38]
mov r9d, 0xf003f
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140001271
cmp qword [rbx + 0x18], 0xf
mov dword [rsp + 0x40], 0x200
mov dword [rsp + 0x44], 1
jbe 0x140001238
mov rbx, qword [rbx]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x44]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x14000128b
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], 0xf
mov byte [rdi], bpl
jmp 0x1400013c3
xorps xmm0, xmm0
mov qword [rsp + 0x288], rsi
movups xmmword [rsp + 0x48], xmm0
lea rax, [rsp + 0x70]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], bpl
jne 0x1400012a7
movabs rsi, 0x7fffffffffffffff
cmp rbx, rsi
ja 0x1400013e1
mov qword [rsp + 0x280], r14
cmp rbx, 0xf
ja 0x1400012fb
mov r8, rbx
mov qword [rsp + 0x58], rbx
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x60], 0xf
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rbx + 0x48], bpl
jmp 0x140001397
mov rax, rbx
or rax, 0xf
cmp rax, rsi
jbe 0x140001330
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140003770
test rax, rax
je 0x14000135b
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x140001374
mov ecx, 0x16
mov rsi, rax
cmp rax, rcx
cmovb rsi, rcx
lea rcx, [rsi + 1]
cmp rcx, 0x1000
jb 0x140001362
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400013e7
jmp 0x140001315
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x140001371
call fcn.140003770
mov r14, rax
jmp 0x140001374
mov r14, rbp
mov r8, rbx
mov qword [rsp + 0x48], r14
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x58], rbx
mov rcx, r14
mov qword [rsp + 0x60], rsi
call sub.VCRUNTIME140.dll_memcpy
mov byte [r14 + rbx], bpl
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movups xmm0, xmmword [rsp + 0x48]
mov r14, qword [rsp + 0x280]
movups xmm1, xmmword [rsp + 0x58]
mov rsi, qword [rsp + 0x288]
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm1
mov rax, rdi
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140003750
add rsp, 0x290
pop rdi
pop rbp
pop rbx
ret
call fcn.1400011a0
int3
call fcn.140001100
int3
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14001b030]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14001b040]
mov dword [rax], 1
mov rax, qword [0x14001b050]
mov dword [rax], 1
mov rax, qword [0x14001b020]
mov dword [rax], 1
mov rax, qword [0x14001aec0]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x14001b010]
mov dword [0x14001e020], 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 [0x14001afd0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14001afb0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14001ae50]
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 0x1400018d0
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 0x1400021f0
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 0x14000223c
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 0x140002233
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x14000223e
add rax, 0x28
cmp rax, r9
jne 0x140002220
xor eax, eax
ret

Function at 0x140002240
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x1400022d0
mov rdx, qword [0x14001aec0]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x1400022be
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400022be
cmp word [rax + 0x18], 0x20b
jne 0x1400022be
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x1400022d0
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x1400022a9
add r12, 0x28
cmp r12, rsi
je 0x1400022d0
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x1400022a0
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 0x1400022e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14001aec0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002300
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002308
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002300
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140002355
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 0x14000234c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002300
add rax, 0x28
cmp rax, r9
jne 0x140002338
xor eax, eax
ret

Function at 0x140002360
Capabilities:
Parse pe header

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

Function at 0x1400023a0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14001aec0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400023c0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400023c8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400023c0
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002408
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400023ff
test rcx, rcx
je 0x1400023c0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400023f0
xor eax, eax
ret