joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14012bf60
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x14012bfa2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x14012bfe9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x14012c042
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x14012c000
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14012c083
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x140264f4b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x140264f4c]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14012c050
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x14012c154
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 0x14012c18e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14012c193
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 0x14012c1dc
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x14012c1dc
dec r8
sub rdx, 1
jne 0x14012c1c2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14012d94c
Capabilities:
Parse pe header

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

Function at 0x140f1a058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140f1a1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140f1a089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f1a06f
add dl, dl
jne 0x140f1a096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f1a0f6
xor eax, eax
add dl, dl
jne 0x140f1a0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f1a1ad
add dl, dl
jne 0x140f1a0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f1a0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f1a0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f1a0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140f1a0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140f1a07e
mov eax, 1
add dl, dl
jne 0x140f1a106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f1a113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f1a0fb
sub eax, ebx
mov ebx, 1
jne 0x140f1a14c
mov ecx, 1
add dl, dl
jne 0x140f1a12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140f1a13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f1a123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f1a07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140f1a168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140f1a175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f1a15d
cmp eax, 0x7d00
jae 0x140f1a19b
cmp eax, 0x500
jb 0x140f1a196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f1a07e
cmp eax, 0x7f
ja 0x140f1a19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f1a07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140f1a1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140f1a07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000be70
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [0x14005d1c0]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, rcx
mov qword [rcx], 0
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14000bf08
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [rsp + 0x20], 8
mov r9d, 1
xor r8d, r8d
lea rdx, str.Crypto_RNG
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14000bf08
mov dword [rsp + 0x20], 0x28
mov r9d, 1
xor r8d, r8d
lea rdx, str.Crypto_RNG
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14000bf2c
mov rax, rbx
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14001fe10
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa0
pop rdi
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.CryptAcquireContext
lea rcx, [rsp + 0x30]
call fcn.1400044c0
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.14000bfe0
lea rdx, [0x14005b640]
lea rcx, [rsp + 0x50]
call fcn.140021e28
int3

Function at 0x14000c3e0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x14005d1c0]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, r8
mov rdi, rdx
mov ecx, dword [0x140061878]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x1400601d8], ecx
jg 0x14000c4bf
mov eax, ebx
cmp rbx, rax
jne 0x14000c481
xor ecx, ecx
mov eax, ecx
test rbx, rbx
setne al
test ebx, ebx
setne cl
cmp eax, ecx
jne 0x14000c481
mov r8, rdi
mov edx, ebx
mov rcx, qword [0x1400601d0]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x14000c502
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14001fe10
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
mov ecx, 0x5b6
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.GenerateBlock_size
lea rcx, [rsp + 0x20]
call fcn.1400044c0
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.14000bfe0
lea rdx, [0x14005b640]
lea rcx, [rsp + 0x40]
call fcn.140021e28
nop
lea rcx, [0x1400601d8]
call fcn.14002048c
cmp dword [0x1400601d8], 0xffffffff
jne 0x14000c42c
lea rcx, [0x1400601d0]
call fcn.14000be70
lea rcx, [0x140040cc0]
call fcn.1400203cc
nop
lea rcx, [0x1400601d8]
call fcn.140020420
jmp 0x14000c42c
lea rdx, [0x140043ea0]
lea rcx, [rsp + 0x20]
call fcn.1400044c0
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.14000bfe0
lea rdx, [0x14005b640]
lea rcx, [rsp + 0x40]
call fcn.140021e28
int3
Function at 0x140018af0
Capabilities:
Encode data using xor

Disassembly:
mov r9, r8
xor r11d, r11d
mov r10, rdx
mov r8d, r11d
cmp r9, 8
jb 0x140018b27
mov rdx, r9
shr rdx, 3
imul rax, rdx, 0xfffffffffffffff8
add r9, rax
mov rax, qword [rcx]
add rcx, 8
xor rax, qword [r10]
add r10, 8
or r8, rax
sub rdx, 1
jne 0x140018b10
mov rdx, r8
shr rdx, 0x20
or edx, r8d
mov r8d, edx
mov eax, edx
shr r8d, 8
or r8d, edx
shr eax, 0x10
and r8d, 0xff00
or r8d, eax
movzx eax, dl
shr r8d, 8
or r8d, eax
test r9, r9
je 0x140018c18
sub rcx, r10
cmp r9, 8
jb 0x140018bf9
mov rax, r9
lea rdx, [r10 + 4]
and rax, 0xfffffffffffffff8
xorps xmm4, xmm4
xorps xmm3, xmm3
nop dword [rax + rax]
movd xmm2, dword [rcx + rdx - 4]
xorps xmm0, xmm0
movd xmm1, dword [rdx - 4]
lea rdx, [rdx + 8]
punpcklbw xmm2, xmm0
add r11, 8
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
movd xmm1, dword [rdx - 8]
punpcklbw xmm1, xmm0
orps xmm4, xmm2
movd xmm2, dword [rcx + rdx - 8]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
orps xmm3, xmm2
cmp r11, rax
jb 0x140018b80
orps xmm3, xmm4
movdqa xmm0, xmm3
psrldq xmm0, 8
orps xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
orps xmm3, xmm0
movd eax, xmm3
or r8d, eax
cmp r11, r9
jae 0x140018c18
add r10, r11
sub r9, r11
nop
movzx edx, byte [rcx + r10]
movzx eax, byte [r10]
lea r10, [r10 + 1]
xor edx, eax
or r8d, edx
sub r9, 1
jne 0x140018c00
test r8d, r8d
sete al
ret
Function at 0x140018c20
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
test r9, r9
je 0x140018db6
cmp r9, 4
jb 0x140018c5a
mov r10, r9
shr r10, 2
imul rax, r10, 0xfffffffffffffffc
add r9, rax
mov eax, dword [rdx]
add rdx, 4
xor eax, dword [r8]
add r8, 4
mov dword [rcx], eax
add rcx, 4
sub r10, 1
jne 0x140018c41
xor r11d, r11d
test r9, r9
je 0x140018db6
cmp r9, 8
jb 0x140018d8d
lea r10, [rcx - 1]
lea rax, [r8 - 1]
add r10, r9
add rax, r9
cmp rcx, rax
ja 0x140018c8c
cmp r10, r8
jae 0x140018d8d
lea rax, [rdx - 1]
add rax, r9
cmp rcx, rax
ja 0x140018ca1
cmp r10, rdx
jae 0x140018d8d
mov qword [rsp + 0x10], rbx
mov qword [rsp], rdi
cmp r9, 0x40
jb 0x140018d47
mov r10, r9
mov qword [rsp + 0x18], rsi
and r10d, 0x3f
mov rbx, r9
sub rbx, r10
mov rdi, rdx
lea rax, [r8 + 0x10]
sub rdi, r8
mov rsi, rcx
sub rsi, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rdi + rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rax - 0x10]
movdqu xmm2, xmmword [rdi + rax]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rsi + rax - 0x50], xmm1
xorps xmm2, xmm0
movdqu xmm0, xmmword [rdi + rax - 0x30]
movdqu xmm1, xmmword [rax - 0x30]
movdqu xmmword [rsi + rax - 0x40], xmm2
xorps xmm1, xmm0
movdqu xmm0, xmmword [rdi + rax - 0x20]
movdqu xmm2, xmmword [rax - 0x20]
movdqu xmmword [rsi + rax - 0x30], xmm1
xorps xmm2, xmm0
movdqu xmmword [rsi + rax - 0x20], xmm2
cmp r11, rbx
jb 0x140018ce0
mov rsi, qword [rsp + 0x18]
cmp r10, 8
jb 0x140018d7f
mov r10, r9
and r10, 0xfffffffffffffff8
mov rbx, rdx
lea rax, [r11 + r8]
sub rbx, r8
mov rdi, rcx
sub rdi, r8
nop
movq xmm1, qword [rax + rbx]
add r11, 8
movq xmm0, qword [rax]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rdi + rax - 8], xmm1
cmp r11, r10
jb 0x140018d60
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
cmp r11, r9
jae 0x140018db6
sub rdx, r8
lea r10, [r11 + r8]
sub rcx, r8
sub r9, r11
nop word [rax + rax]
movzx eax, byte [r10 + rdx]
xor al, byte [r10]
mov byte [rcx + r10], al
lea r10, [r10 + 1]
sub r9, 1
jne 0x140018da0
add rsp, 8
ret
Function at 0x140018dc0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
test r8, r8
je 0x140018f22
cmp r8, 4
jb 0x140018e02
mov r9, r8
shr r9, 2
imul rax, r9, 0xfffffffffffffffc
add r8, rax
nop dword [rax]
nop word [rax + rax]
mov eax, dword [rdx]
add rdx, 4
xor dword [rcx], eax
add rcx, 4
sub r9, 1
jne 0x140018df0
xor r10d, r10d
test r8, r8
je 0x140018f22
cmp r8, 8
jb 0x140018f04
lea r9, [rcx - 1]
lea rax, [rdx - 1]
add r9, r8
add rax, r8
cmp rcx, rax
ja 0x140018e34
cmp r9, rdx
jae 0x140018f04
cmp r8, 0x40
jb 0x140018ec3
mov r9, r8
mov qword [rsp], rbx
and r9d, 0x3f
mov r11, r8
sub r11, r9
mov rbx, rdx
lea rax, [rcx + 0x10]
sub rbx, rcx
nop dword [rax]
movdqu xmm0, xmmword [rax - 0x10]
add r10, 0x40
movdqu xmm1, xmmword [rax + rbx - 0x10]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax + rbx - 0x40]
movdqu xmmword [rax - 0x50], xmm1
movdqu xmm2, xmmword [rax - 0x40]
movdqu xmm1, xmmword [rax + rbx - 0x30]
xorps xmm2, xmm0
movdqu xmmword [rax - 0x40], xmm2
movdqu xmm0, xmmword [rax - 0x30]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm1, xmmword [rax + rbx - 0x20]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x20], xmm1
cmp r10, r11
jb 0x140018e60
mov rbx, qword [rsp]
cmp r9, 8
jb 0x140018eff
mov r9, r8
and r9, 0xfffffffffffffff8
mov r11, rdx
lea rax, [r10 + rcx]
sub r11, rcx
nop dword [rax]
nop dword [rax + rax]
movq xmm0, qword [rax]
add r10, 8
movq xmm1, qword [r11 + rax]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rax - 8], xmm1
cmp r10, r9
jb 0x140018ee0
cmp r10, r8
jae 0x140018f22
sub rdx, rcx
lea r9, [r10 + rcx]
sub r8, r10
nop
movzx eax, byte [rdx + r9]
xor byte [r9], al
lea r9, [r9 + 1]
sub r8, 1
jne 0x140018f10
add rsp, 8
ret
Function at 0x140020c98
Capabilities:
Parse pe header

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

Function at 0x140033d60
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 0x140033dcf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140033dcf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140033dcf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140033dcf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140033dcf
cmp dword [rcx + 0x84], 0xe
jbe 0x140033dcf
cmp dword [rcx + 0xf8], 0
je 0x140033dcf
mov ecx, ebx
call fcn.140033e74
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.140033c68
nop
cmp dword [rbp + 0x20], 0
jne 0x140033e30
call fcn.140039fec
cmp eax, 1
jne 0x140033e20
xor dl, dl
jmp 0x140033e2a
call fcn.140039fb8
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x140033e3b
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140033e44
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140033d60

Function at 0x140033f48
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140033d60
Function at 0x140039ac0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140039b47
mov rsi, rbx
cmp word [rax], bp
je 0x140039b06
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140039af0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140039aec
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140035130
mov rdi, rax
test rax, rax
je 0x140039b34
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14003f0f0
mov rbp, rdi
xor ecx, ecx
call fcn.1400350d0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14003ed30
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14003ed58
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14003ed58
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001082
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1405ddea0
xor r8d, r8d
mov r9d, edx
mov r10, rcx
test edx, edx
jle 0x1405ddeed
lea r11, str.19_507ese2V
nop dword [rax]
nop dword [rax + rax]
mov eax, 0xaaaaaaab
lea r10, [r10 + 1]
mul r8d
mov eax, r8d
inc r8d
shr edx, 3
lea ecx, [rdx + rdx*2]
shl ecx, 2
sub eax, ecx
cdqe
movzx eax, byte [rax + r11]
xor byte [r10 - 1], al
cmp r8d, r9d
jl 0x1405ddec0
mov eax, r9d
ret

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

Disassembly:
jmp 0x1405decdc
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x1405ded69
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x1405ded69
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1405ded69
sub r8, rdx
movzx edx, word [rcx + 0x14]
add rdx, 0x18
add rdx, rcx
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x1405ded50
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x1405ded4a
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x1405ded52
add rdx, 0x28
jmp 0x1405ded2f
xor edx, edx
test rdx, rdx
jne 0x1405ded5b
xor al, al
jmp 0x1405ded6f
cmp dword [rdx + 0x24], 0
jge 0x1405ded65
xor al, al
jmp 0x1405ded6f
mov al, 1
jmp 0x1405ded6f
xor al, al
jmp 0x1405ded6f
add rsp, 0x18
ret

Function at 0x14000111d
Capabilities:
Terminate process

Disassembly:
jmp 0x1405de4e0
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x14000114f
Capabilities:
Terminate process

Disassembly:
jmp 0x1405de4c8
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov ecx, 1
call fcn.1400011f4
test al, al
je 0x1405de393
xor sil, sil
mov byte [rsp + 0x20], sil
call fcn.1400011cc
mov bl, al
mov ecx, dword [0x1405e5838]
cmp ecx, 1
je 0x1405de39e
test ecx, ecx
jne 0x1405de2c9
mov dword [0x1405e5838], 1
lea rdx, [0x1405e3660]
lea rcx, [0x1405e3330]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
test eax, eax
je 0x1405de2aa
mov eax, 0xff
jmp 0x1405de383
lea rdx, [0x1405e3220]
lea rcx, [section..rdata]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [0x1405e5838], 2
jmp 0x1405de2d1
mov sil, 1
mov byte [rsp + 0x20], sil
mov cl, bl
call fcn.1400011b8
call fcn.140001172
mov rbx, rax
cmp qword [rax], 0
je 0x1405de304
mov rcx, rax
call fcn.1400010c3
test al, al
je 0x1405de304
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [rbx]
call qword [0x1405e8020]
call fcn.140001195
mov rbx, rax
cmp qword [rax], 0
je 0x1405de326
mov rcx, rax
call fcn.1400010c3
test al, al
je 0x1405de326
mov rcx, qword [rbx]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_initial_narrow_environment
mov rdi, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argv
mov rbx, qword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argc
mov r8, rdi
mov rdx, rbx
mov ecx, dword [rax]
call fcn.14000114a
mov ebx, eax
call fcn.140001154
test al, al
je 0x1405de3a8
test sil, sil
jne 0x1405de35d
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
xor edx, edx
mov cl, 1
call fcn.1400010b9
mov eax, ebx
jmp 0x1405de383
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, 7
call fcn.1400011c2
nop
mov ecx, 7
call fcn.1400011c2
mov ecx, ebx
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
mov ecx, ebx
call sub.api_ms_win_crt_runtime_l1_1_0.dll__exit
nop
int3
sub rsp, 0x28
call fcn.140001163
add rsp, 0x28
jmp 0x1405de23c

Function at 0x140001154
Capabilities:
Parse pe header

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

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

Disassembly:
jmp 0x1400131d0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x140011294
Capabilities:
Hide graphical window
Log keystrokes via application hook

Disassembly:
jmp 0x140011b10
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x1e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x128], rax
lea rcx, [0x1400230a2]
call fcn.1400113a2
nop
lea rdx, [0x14001ad28]
lea rcx, str.keylog.txt
call qword [sym.imp.ucrtbased.dll_fopen]
mov qword [0x14001d1b0], rax
cmp qword [0x14001d1b0], 0
jne 0x140011b7d
mov eax, 1
jmp 0x140011c10
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
nop
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14001114f]
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140011bc7
mov rcx, qword [0x14001d1b0]
call qword [sym.imp.ucrtbased.dll_fclose]
nop
mov eax, 1
jmp 0x140011c10
mov ecx, 0x2710
call fcn.14001140b
nop
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x28]
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x140011c00
lea rcx, [rbp + 0x28]
call qword [sym.imp.USER32.dll_TranslateMessage]
nop
lea rcx, [rbp + 0x28]
call qword [sym.imp.USER32.dll_DispatchMessageW]
nop
jmp 0x140011bd2
mov rcx, qword [0x14001d1b0]
call qword [sym.imp.ucrtbased.dll_fclose]
nop
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001ac80]
call fcn.140011334
mov rax, rdi
mov rcx, qword [rbp + 0x128]
xor rcx, rbp
call fcn.1400111cc
lea rsp, [rbp + 0x138]
pop rdi
pop rbp
ret

Function at 0x14001129e
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014520
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014540
xor al, al
jmp 0x1400145c1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014553
xor al, al
jmp 0x1400145c1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001457d
xor al, al
jmp 0x1400145c1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014591
xor al, al
jmp 0x1400145c1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400145a3
xor al, al
jmp 0x1400145c1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400145bf
xor al, al
jmp 0x1400145c1
mov al, 1
add rsp, 0x38
ret