joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140038fb0
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0x108]
lea r11, [0x14007efe0]
mov rax, qword [rcx + 0x110]
mov r9, rcx
movsxd r10, edx
mov ebx, dword [rax + r8*4 - 4]
not ebx
movzx eax, r10b
movzx r8d, bl
shr ebx, 8
xor r8, rax
mov eax, r10d
shr eax, 8
movzx edx, al
mov eax, r10d
xor ebx, dword [r11 + r8*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r11 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
xor ebx, dword [r11 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r10d
shr rdx, 0x18
xor rdx, rcx
mov rcx, qword [r9]
xor ebx, dword [r11 + rdx*4]
not ebx
cmp dword [rcx + 0x40f8], ebx
jne 0x140039046
mov r8, r10
mov edx, 4
mov ecx, ebx
call fcn.140044c60
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x140039050
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x18
mov rax, qword [rcx + 0x110]
lea r9, [0x14007efe0]
movss xmm2, dword [rcx + 0x128]
movss xmm3, dword [rcx + 0x12c]
movsxd rcx, dword [rcx + 0x108]
movss xmm0, dword [rdx]
movss xmm1, dword [rdx + 4]
subss xmm0, xmm2
subss xmm1, xmm3
mov r8d, dword [rax + rcx*4 - 4]
not r8d
movzx ecx, r8b
shr r8d, 8
movss dword [rsp], xmm0
movzx eax, byte [rsp]
xor rcx, rax
movss xmm0, dword [rdx + 8]
movzx eax, byte [rsp + 1]
subss xmm0, xmm2
movss dword [rsp + 4], xmm1
movss xmm1, dword [rdx + 0xc]
xor r8d, dword [r9 + rcx*4]
subss xmm1, xmm3
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 2]
movss dword [rsp + 8], xmm0
movss dword [rsp + 0xc], xmm1
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 3]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 4]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 5]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 6]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 7]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 8]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 9]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xa]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xb]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xc]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xd]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xe]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
xor r8d, dword [r9 + rcx*4]
movzx ecx, byte [rsp + 0xf]
movzx edx, r8b
shr r8d, 8
xor rdx, rcx
xor r8d, dword [r9 + rdx*4]
not r8d
mov eax, r8d
add rsp, 0x18
ret
Function at 0x14003d540
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140094040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x140097f80]
mov edi, ecx
cmp byte [rbx + 0x4df5], 0
jne 0x14003d5a1
cmp byte [rbx + 0x4df6], 0
jne 0x14003d5a1
movsx r9d, word [rbx + 0x51f0]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.14002a100
test dil, 2
je 0x14003d6df
jmp 0x14003d63b
movss xmm0, dword [rbx + 0x3a08]
mov eax, dword [rbx + 0x4ac0]
movaps xmm1, xmm0
mulss xmm1, dword [0x140085b30]
mulss xmm0, dword [0x140085b24]
addss xmm1, dword [rbx + 0xe0]
addss xmm0, dword [rbx + 0xe4]
test al, 1
jne 0x14003d5fc
xor ecx, ecx
movss dword [rbx + 0x4ad0], xmm1
mov qword [rbx + 0x4ad8], rcx
or eax, 1
movss dword [rbx + 0x4ad4], xmm0
mov dword [rbx + 0x4ac4], 1
movss xmm0, dword [rbx + 0x3a64]
lea r8, str.Tooltip__02d
mulss xmm0, dword [0x140085a6c]
lea rcx, [rsp + 0x20]
movsx r9d, word [rbx + 0x51f0]
or eax, 0x40
mov edx, 0x10
mov dword [rbx + 0x4ac0], eax
movss dword [rbx + 0x4b20], xmm0
call fcn.14002a100
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x14003d690
lea r11, [0x14007efe0]
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x14003d673
cmp byte [r8], r9b
jne 0x14003d673
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x14003d660
not ecx
call fcn.140032aa0
test rax, rax
je 0x14003d6df
cmp byte [rax + 0xca], 0
je 0x14003d6df
mov byte [rax + 0xcf], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xd2], 1
lea rcx, [rsp + 0x20]
mov byte [rax + 0xec], 1
mov edx, 0x10
inc word [rbx + 0x51f0]
movsx r9d, word [rbx + 0x51f0]
call fcn.14002a100
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x2030347
call fcn.140035a90
mov al, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140077250
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400434b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5358], 0
lea rbx, [rcx + 0x5360]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140043557
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14004350a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.140045f50
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.14002aee0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5358]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5368]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x140097f71]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14004355f
mov rcx, rbx
call fcn.14002aee0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140043880
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [0x140097f80]
xor ebp, ebp
cmp byte [rbx + 0x52a0], bpl
jne 0x14004395f
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140043958
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
call fcn.14002a580
mov rsi, rax
test rax, rax
je 0x140043958
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x1400438e4
mov rcx, rax
call fcn.140043ab0
mov r8, qword [0x140097f80]
test r8, r8
je 0x14004394f
movsx rdx, word [r8 + 0x5438]
lea rcx, [r8 + 0x543c]
mov r9d, dword [r8 + 0x3fe8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140043944
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x5438], cx
movsx rax, cx
lea rcx, [r8 + 0x543c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], ebp
inc word [rcx + 6]
inc dword [r8 + 0x5434]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx + 0x52a0], 1
movss xmm0, dword [rbx + 0x52a4]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x1400439ee
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x52a4], xmm0
jb 0x1400439ee
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x1400439e1
mov rax, qword [0x140097f80]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x52a4], ebp
call fcn.140043d10
lea rdx, [0x140084b24]
mov rcx, rdi
mov rsi, rax
call fcn.14002a3d0
mov rdi, rax
test rax, rax
je 0x1400439e8
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x1400439e8
mov byte [rbx + 0xb4], 1
mov dword [rbx + 0x52a4], ebp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140043a10
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x140097f80]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x140043a73
mov qword [rsp], rbx
lea rbx, [0x14007efe0]
nop dword [rax]
cmp r9b, 0x23
jne 0x140043a53
cmp byte [r8], r9b
jne 0x140043a53
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x140043a40
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x52b8]
not eax
mov r8, qword [r10 + 0x52c0]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x140043a9f
cmp dword [r8 + 8], eax
je 0x140043aa6
add r8, 0x48
cmp r8, rcx
jne 0x140043a90
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x140059b60
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x70
mov rax, qword [0x140094040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [0x140097f80]
mov rbp, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140059d7f
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140059d7f
mov qword [rsp + 0x80], rbx
mov ecx, 0x50
mov qword [rsp + 0x88], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, qword [0x140097f80]
xor ebx, ebx
mov rdi, rax
test r8, r8
je 0x140059c34
movsx rdx, word [r8 + 0x5438]
lea rax, [r8 + 0x543c]
mov r9d, dword [r8 + 0x3fe8]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x140059c29
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x5438], cx
movsx rax, cx
lea rax, [rax*8 + 0x543c]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x5430]
test rdi, rdi
je 0x140059c51
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x40], xmm0
jmp 0x140059c54
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, [0x140085308]
mov qword [rsi + 0x88], rax
mov qword [rsi + 0x98], rdi
mov qword [rdi], rbp
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x60]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
test r8, r8
je 0x140059c97
mov rsi, qword [r8 + 0x98]
jmp 0x140059c9a
mov rsi, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rsi + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x140059cc5
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x140097f80]
mov rcx, qword [rax + 0x4bd0]
mov rax, qword [rdi]
mov rdx, qword [rcx]
mov qword [rdx + 0x30], rax
mov qword [rdx + 0x28], rax
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x30], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x48], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x50], rax
mov byte [rdi + 0x31], 1
mov rcx, qword [rsp + rbx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x140059d3f
inc rbx
cmp rbx, 5
jl 0x140059d21
jmp 0x140059d6b
lea rdx, str.XInputGetCapabilities
mov qword [rdi + 0x38], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rsi
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x48], rax
mov rdi, qword [rsp + 0x88]
mov al, 1
mov rbx, qword [rsp + 0x80]
jmp 0x140059d81
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140077250
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret
Function at 0x140072880
Capabilities:
Hash data with crc32

Disassembly:
push rdi
sub rsp, 0x20
test dword [rcx + 0x10], 0x100000
mov rdi, rdx
je 0x14007290c
movzx r9d, byte [rdx]
lea r8, [rdx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x1400728e0
lea r11, [0x14007efe0]
nop
cmp r9b, 0x23
jne 0x1400728c3
cmp byte [r8], r9b
jne 0x1400728c3
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x1400728b0
mov rcx, qword [0x140097f80]
not eax
cmp dword [rcx + 0x4114], eax
jne 0x1400728f7
mov dword [rcx + 0x4118], eax
cmp dword [rcx + 0x4144], eax
jne 0x140072969
mov byte [rcx + 0x4148], 1
add rsp, 0x20
pop rdi
ret
mov rax, qword [0x140097f80]
xor edx, edx
mov qword [rsp + 0x30], rbx
mov rcx, rdi
mov qword [rsp + 0x38], rsi
mov rbx, qword [rax + 0x40a0]
movsxd rax, dword [rbx + 0x108]
mov r8, qword [rbx + 0x110]
mov r8d, dword [r8 + rax*4 - 4]
call fcn.14002a320
mov rcx, qword [rbx]
mov esi, eax
mov rbx, qword [rsp + 0x30]
cmp dword [rcx + 0x40f8], eax
jne 0x140072962
mov r8, rdi
mov edx, 0xc
mov ecx, eax
call fcn.140044c60
mov eax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140076c64
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 0x140076c9e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140076ca3
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 0x140076cec
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14007ba10]
cmp byte [rcx + rax], 0
je 0x140076cec
dec r8
sub rdx, 1
jne 0x140076cd2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140077df4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140077e3e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140077e3e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140077e3e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140077e3e
cmp dword [rcx + 0x84], 0xe
jbe 0x140077e3e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140077e40
xor al, al
add rsp, 0x28
ret
Function at 0x18000149c
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov byte [rsp + 0x48], 0x31
mov byte [rsp + 0x49], 0x2e
mov byte [rsp + 0x4a], 0x67
mov byte [rsp + 0x4b], 0x69
mov byte [rsp + 0x4c], 0x66
mov byte [rsp + 0x4d], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0xffffffffffffffff
jne 0x180001509
xor eax, eax
jmp 0x180001598
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0xffffffff
jne 0x180001530
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x180001598
mov eax, dword [rsp + 0x40]
mov edx, eax
mov rcx, qword [rsp + 0x70]
call fcn.1800030c0
mov dword [rsp + 0x44], 0
xor edx, edx
mov rcx, qword [rsp + 0x70]
call fcn.1800026fc
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180001588
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x180001598
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x68
ret

Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0xf0
mov rax, qword [0x140017010]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x108]
cmp qword [rcx + rax], 0
jne 0x14000110a
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [rsp + 0x70], 0x68
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, str.notepad
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x1000
movabs rdx, 0x480000000000
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x20], 0
mov r9d, 0x15b
lea r8, [0x1400179f0]
movabs rdx, 0x480000000000
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
jmp 0x14000110e
xor eax, eax
jmp 0x140001110
xor eax, eax
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1400013b0
add rsp, 0xf0
pop rdi
ret

Function at 0x140003c84
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140003ab0
Function at 0x140009d60
Capabilities:
Encrypt data using curve25519
Generate random numbers via winapi

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x120
mov rsi, rcx
lea rcx, [rsp + 0x50]
mov r9d, 1
mov rdi, rdx
mov dword [rsp + 0x20], 0xf0000000
xor edx, edx
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x140009db4
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x30]
mov edx, 0x20
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x50]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea rbx, [rsp + 0x50]
mov rcx, rbx
call fcn.14000c330
lea rdx, [rsp + 0x30]
mov r8d, 0x20
mov rcx, rbx
call fcn.14000d090
test al, al
je 0x140009de5
lea rcx, [rsp + 0x50]
mov rdx, rdi
call fcn.14000d270
and byte [rdi], 0xf8
lea rbx, [rsp + 0x50]
mov rdx, rdi
movzx eax, byte [rdi + 0x1f]
mov rcx, rbx
and al, 0x3f
or al, 0x40
mov byte [rdi + 0x1f], al
call fcn.1400090e0
mov rcx, rsi
mov rdx, rbx
call fcn.140009060
nop
add rsp, 0x120
pop rbx
pop rdi
pop rsi
ret
Function at 0x14000e060
Capabilities:
Parse pe header

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

Function at 0x1400144bc
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14001452b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001452b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001452b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001452b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001452b
cmp dword [rcx + 0x84], 0xe
jbe 0x14001452b
cmp dword [rcx + 0xf8], 0
je 0x14001452b
mov ecx, ebx
call fcn.1400145d0
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400143c4
nop
cmp dword [rbp + 0x20], 0
jne 0x14001458c
call fcn.14001a4e8
cmp eax, 1
jne 0x14001457c
xor dl, dl
jmp 0x140014586
call fcn.14001a4b4
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x140014597
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400145a0
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1400144bc

Function at 0x1400146a4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400144bc

Function at 0x140015c0c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140015c22
mov al, 1
jmp 0x140015c8e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140015c33
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140015c8c
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001a7c4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140015c8c
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140015c8c
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140015c8c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140015c8e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140019f5c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140019f8c
xor eax, eax
jmp 0x14001a04f
mov rbp, rbx
cmp word [rax], si
je 0x140019fb1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140019f98
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140019f94
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140019e7c
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x140019ff2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140019f85
call fcn.140016990
mov rdi, rax
test rax, rax
jne 0x14001a008
xor ecx, ecx
call fcn.140015f50
jmp 0x140019fe7
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140019e7c
test eax, eax
jne 0x14001a039
mov rcx, rdi
call fcn.140015f50
jmp 0x14001a043
xor ecx, ecx
call fcn.140015f50
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret