joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000282e
Capabilities:
Query environment variable

Disassembly:
jmp 0x14004bccc
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 r14d, r14d
mov rbx, rax
test rax, rax
je 0x14004bd9e
mov rsi, rax
cmp word [rax], r14w
je 0x14004bd1f
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r14w
jne 0x14004bd07
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], r14w
jne 0x14004bd03
mov qword [rsp + 0x38], r14
sub rsi, rbx
mov qword [rsp + 0x30], r14
add rsi, 2
sar rsi, 1
mov r8, rbx
mov r9d, esi
mov dword [rsp + 0x28], r14d
xor edx, edx
mov qword [rsp + 0x20], r14
xor ecx, ecx
call fcn.14000312f
movsxd rbp, eax
test eax, eax
je 0x14004bd9e
mov rcx, rbp
call fcn.140001023
mov rdi, rax
test rax, rax
je 0x14004bd91
mov qword [rsp + 0x38], r14
mov r9d, esi
mov qword [rsp + 0x30], r14
mov r8, rbx
mov dword [rsp + 0x28], ebp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.14000312f
test eax, eax
je 0x14004bd91
mov rsi, rdi
mov rdi, r14
jmp 0x14004bd94
mov rsi, r14
mov rcx, rdi
call fcn.140001159
jmp 0x14004bda1
mov rsi, r14
test rbx, rbx
je 0x14004bdaf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140002838
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140018e08
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x140073db8]
xor ecx, ecx
lea r8, [0x140073db0]
lea rdx, str.FlsAlloc
call fcn.140018988
test rax, rax
je 0x140018e41
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x140094020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x1400028a6
Capabilities:
Get geographical location

Disassembly:
jmp 0x140054220
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, r9d
mov rdi, r8
mov esi, edx
lea r9, [0x140077e38]
mov rbp, rcx
lea r8, [0x140077e30]
lea rdx, str.GetLocaleInfoEx
mov ecx, 0xb
call fcn.14005362c
mov rcx, rbp
test rax, rax
je 0x140054276
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [0x140094020]
jmp 0x14005428d
xor edx, edx
call fcn.1400021e4
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400028b0
Capabilities:
Terminate process

Disassembly:
jmp 0x14000b75c
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 0x1400029f5
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001f854
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x14001f5a8
Function at 0x140002e64
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x1400470b4
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1400470ce
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.1400038f5
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x140003314
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140054034
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x140077d70]
mov ecx, 5
lea r8, [0x140077d68]
lea rdx, str.FlsGetValue
call fcn.14005362c
mov ecx, ebx
test rax, rax
je 0x14005406e
add rsp, 0x20
pop rbx
jmp qword [0x140094020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1400036ed
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x14005408c
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x140077d80]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 6
lea r8, [0x140077d78]
call fcn.14005362c
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x1400540cc
call qword [0x140094020]
jmp 0x1400540d2
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400039c7
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140018f10
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x140073e18]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x140073e10]
call fcn.140018988
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x140018f50
call qword [0x140094020]
jmp 0x140018f56
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140003a4e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x140007cd0
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x20]
lea rcx, [0x140093035]
call fcn.140003c1a
mov dword [rbp + 4], 0
mov eax, dword [rbp + 0x1a8]
dec eax
mov dword [rbp + 0x24], eax
jmp 0x140007d1c
mov eax, dword [rbp + 4]
inc eax
mov dword [rbp + 4], eax
mov eax, dword [rbp + 0x24]
dec eax
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x24]
cmp dword [rbp + 4], eax
jge 0x140007d68
movsxd rax, dword [rbp + 4]
mov rcx, qword [rbp + 0x1a0]
movzx eax, byte [rcx + rax]
mov byte [rbp + 0x44], al
movsxd rax, dword [rbp + 0x24]
movsxd rcx, dword [rbp + 4]
mov rdx, qword [rbp + 0x1a0]
mov r8, qword [rbp + 0x1a0]
movzx eax, byte [r8 + rax]
mov byte [rdx + rcx], al
movsxd rax, dword [rbp + 0x24]
mov rcx, qword [rbp + 0x1a0]
movzx edx, byte [rbp + 0x44]
mov byte [rcx + rax], dl
jmp 0x140007d0c
mov rcx, qword [rbp + 0x1b0]
call fcn.140002428
mov dword [rbp + 0x64], eax
mov dword [rbp + 0x84], 0
jmp 0x140007d91
mov eax, dword [rbp + 0x84]
inc eax
mov dword [rbp + 0x84], eax
mov eax, dword [rbp + 0x1a8]
cmp dword [rbp + 0x84], eax
jae 0x140007ded
mov eax, dword [rbp + 0x84]
add eax, 5
cdq
idiv dword [rbp + 0x64]
mov eax, edx
mov dword [rbp + 0xa4], eax
movsxd rax, dword [rbp + 0x84]
mov rcx, qword [rbp + 0x1a0]
movzx eax, byte [rcx + rax]
movsxd rcx, dword [rbp + 0xa4]
mov rdx, qword [rbp + 0x1b0]
movsx ecx, byte [rdx + rcx]
xor eax, ecx
movsxd rcx, dword [rbp + 0x84]
mov rdx, qword [rbp + 0x1a0]
mov byte [rdx + rcx], al
jmp 0x140007d83
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x140003a53
Capabilities:
Set environment variable

Disassembly:
jmp 0x14005a424
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000212b
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14005a4ae
cmp byte [rbp - 0x21], r15b
je 0x14005a4a9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r8d, ebx
jmp 0x14005a4e4
call fcn.140003e27
test eax, eax
jne 0x14005a4d0
cmp byte [rbp - 0x21], r15b
je 0x14005a4c8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r8d, 1
jmp 0x14005a4e4
cmp byte [rbp - 0x21], r15b
je 0x14005a4e1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r8d, r15d
lea rdx, [rbp + 0x17]
mov rcx, rsi
call fcn.140001f37
test eax, eax
jne 0x14005a57c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000212b
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14005a51f
cmp byte [rbp - 0x21], r15b
je 0x14005a554
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14005a554
call fcn.140003e27
test eax, eax
jne 0x14005a540
cmp byte [rbp - 0x21], r15b
je 0x14005a539
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14005a554
cmp byte [rbp - 0x21], r15b
je 0x14005a551
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r8d, ebx
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140001f37
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14005a57c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14005a57f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14005a58d
mov rcx, rdi
call fcn.140001159
cmp byte [rbp + 0x3f], r15b
je 0x14005a59c
mov rcx, qword [rbp + 0x27]
call fcn.140001159
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140003b34
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001f844
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14001f5a8
Function at 0x140003ba2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x140007e40
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x268
lea rbp, [rsp + 0x20]
lea rcx, [0x140093035]
call fcn.140003c1a
mov rcx, qword [rbp + 0x268]
call fcn.140002428
xor edx, edx
mov ecx, 2
div rcx
mov dword [rbp + 4], eax
mov rcx, qword [rbp + 0x270]
call fcn.140002428
mov dword [rbp + 0x24], eax
mov dword [rbp + 0xc4], 0
jmp 0x140007eab
mov eax, dword [rbp + 0xc4]
inc eax
mov dword [rbp + 0xc4], eax
mov eax, dword [rbp + 4]
cmp dword [rbp + 0xc4], eax
jge 0x140007f75
mov eax, dword [rbp + 0xc4]
add eax, eax
cdqe
mov rcx, qword [rbp + 0x268]
movzx eax, byte [rcx + rax]
mov byte [rbp + 0x44], al
mov eax, dword [rbp + 0xc4]
lea eax, [rax + rax + 1]
cdqe
mov rcx, qword [rbp + 0x268]
movzx eax, byte [rcx + rax]
mov byte [rbp + 0x64], al
movsx eax, byte [rbp + 0x44]
mov ecx, eax
call fcn.1400030e9
sub eax, 0x30
mov byte [rbp + 0x84], al
movsx eax, byte [rbp + 0x84]
cmp eax, 9
jle 0x140007f1c
movsx eax, byte [rbp + 0x84]
sub eax, 7
mov byte [rbp + 0x84], al
movsx eax, byte [rbp + 0x64]
mov ecx, eax
call fcn.1400030e9
sub eax, 0x30
mov byte [rbp + 0xa4], al
movsx eax, byte [rbp + 0xa4]
cmp eax, 9
jle 0x140007f4c
movsx eax, byte [rbp + 0xa4]
sub eax, 7
mov byte [rbp + 0xa4], al
movsx eax, byte [rbp + 0x84]
imul eax, eax, 0x10
movsx ecx, byte [rbp + 0xa4]
add eax, ecx
movsxd rcx, dword [rbp + 0xc4]
mov rdx, qword [rbp + 0x260]
mov byte [rdx + rcx], al
jmp 0x140007e9d
mov dword [rbp + 0xe4], 0
mov eax, dword [rbp + 4]
dec eax
mov dword [rbp + 0x104], eax
jmp 0x140007fa8
mov eax, dword [rbp + 0xe4]
inc eax
mov dword [rbp + 0xe4], eax
mov eax, dword [rbp + 0x104]
dec eax
mov dword [rbp + 0x104], eax
mov eax, dword [rbp + 0x104]
cmp dword [rbp + 0xe4], eax
jge 0x14000800c
movsxd rax, dword [rbp + 0xe4]
mov rcx, qword [rbp + 0x260]
movzx eax, byte [rcx + rax]
mov byte [rbp + 0x124], al
movsxd rax, dword [rbp + 0x104]
movsxd rcx, dword [rbp + 0xe4]
mov rdx, qword [rbp + 0x260]
mov r8, qword [rbp + 0x260]
movzx eax, byte [r8 + rax]
mov byte [rdx + rcx], al
movsxd rax, dword [rbp + 0x104]
mov rcx, qword [rbp + 0x260]
movzx edx, byte [rbp + 0x124]
mov byte [rcx + rax], dl
jmp 0x140007f8c
mov dword [rbp + 0x144], 0
jmp 0x140008026
mov eax, dword [rbp + 0x144]
inc eax
mov dword [rbp + 0x144], eax
mov eax, dword [rbp + 4]
cmp dword [rbp + 0x144], eax
jge 0x14000807f
mov eax, dword [rbp + 0x144]
add eax, 5
cdq
idiv dword [rbp + 0x24]
mov eax, edx
mov dword [rbp + 0x164], eax
movsxd rax, dword [rbp + 0x144]
mov rcx, qword [rbp + 0x260]
movsx eax, byte [rcx + rax]
movsxd rcx, dword [rbp + 0x164]
mov rdx, qword [rbp + 0x270]
movsx ecx, byte [rdx + rcx]
xor eax, ecx
movsxd rcx, dword [rbp + 0x144]
mov rdx, qword [rbp + 0x260]
mov byte [rdx + rcx], al
jmp 0x140008018
lea rsp, [rbp + 0x248]
pop rdi
pop rbp
ret
Function at 0x140007330
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
jmp 0x140007330
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x218
lea rbp, [rsp + 0x30]
lea rcx, [0x140093035]
call fcn.140003c1a
mov rcx, qword [rbp + 0x200]
call fcn.140002428
inc rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, eax
mov r8, qword [rbp + 0x200]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rbp + 4], eax
mov rcx, qword [rbp + 0x200]
call fcn.140002428
inc rax
mov qword [rbp + 0x1d8], rax
mov eax, 2
mov rcx, qword [rbp + 0x1d8]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400023a1
mov qword [rbp + 0x1c8], rax
mov rax, qword [rbp + 0x1c8]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x200]
call fcn.140002428
inc rax
mov ecx, dword [rbp + 4]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rbp + 0x28]
mov qword [rsp + 0x20], rcx
mov r9d, eax
mov r8, qword [rbp + 0x200]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov qword [rbp + 0x48], 0
mov rax, qword gs:[0x60]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
add rax, 0x20
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x88]
mov rax, qword [rax]
mov qword [rbp + 0xa8], rax
mov qword [rbp + 0xc8], 0
mov rax, qword [rbp + 0x88]
cmp qword [rbp + 0xa8], rax
je 0x1400074b1
mov rax, qword [rbp + 0xa8]
sub rax, 0x10
mov qword [rbp + 0xe8], rax
mov rdx, qword [rbp + 0x28]
mov rax, qword [rbp + 0xe8]
mov rcx, qword [rax + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14000749e
mov rax, qword [rbp + 0xe8]
mov rax, qword [rax + 0x30]
mov qword [rbp + 0xc8], rax
jmp 0x1400074b1
mov rax, qword [rbp + 0xa8]
mov rax, qword [rax]
mov qword [rbp + 0xa8], rax
jmp 0x14000744f
mov rax, qword [rbp + 0xc8]
lea rsp, [rbp + 0x1e8]
pop rdi
pop rbp
ret
Function at 0x140007cd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x140007cd0
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x20]
lea rcx, [0x140093035]
call fcn.140003c1a
mov dword [rbp + 4], 0
mov eax, dword [rbp + 0x1a8]
dec eax
mov dword [rbp + 0x24], eax
jmp 0x140007d1c
mov eax, dword [rbp + 4]
inc eax
mov dword [rbp + 4], eax
mov eax, dword [rbp + 0x24]
dec eax
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x24]
cmp dword [rbp + 4], eax
jge 0x140007d68
movsxd rax, dword [rbp + 4]
mov rcx, qword [rbp + 0x1a0]
movzx eax, byte [rcx + rax]
mov byte [rbp + 0x44], al
movsxd rax, dword [rbp + 0x24]
movsxd rcx, dword [rbp + 4]
mov rdx, qword [rbp + 0x1a0]
mov r8, qword [rbp + 0x1a0]
movzx eax, byte [r8 + rax]
mov byte [rdx + rcx], al
movsxd rax, dword [rbp + 0x24]
mov rcx, qword [rbp + 0x1a0]
movzx edx, byte [rbp + 0x44]
mov byte [rcx + rax], dl
jmp 0x140007d0c
mov rcx, qword [rbp + 0x1b0]
call fcn.140002428
mov dword [rbp + 0x64], eax
mov dword [rbp + 0x84], 0
jmp 0x140007d91
mov eax, dword [rbp + 0x84]
inc eax
mov dword [rbp + 0x84], eax
mov eax, dword [rbp + 0x1a8]
cmp dword [rbp + 0x84], eax
jae 0x140007ded
mov eax, dword [rbp + 0x84]
add eax, 5
cdq
idiv dword [rbp + 0x64]
mov eax, edx
mov dword [rbp + 0xa4], eax
movsxd rax, dword [rbp + 0x84]
mov rcx, qword [rbp + 0x1a0]
movzx eax, byte [rcx + rax]
movsxd rcx, dword [rbp + 0xa4]
mov rdx, qword [rbp + 0x1b0]
movsx ecx, byte [rdx + rcx]
xor eax, ecx
movsxd rcx, dword [rbp + 0x84]
mov rdx, qword [rbp + 0x1a0]
mov byte [rdx + rcx], al
jmp 0x140007d83
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x140007e40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x140007e40
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x268
lea rbp, [rsp + 0x20]
lea rcx, [0x140093035]
call fcn.140003c1a
mov rcx, qword [rbp + 0x268]
call fcn.140002428
xor edx, edx
mov ecx, 2
div rcx
mov dword [rbp + 4], eax
mov rcx, qword [rbp + 0x270]
call fcn.140002428
mov dword [rbp + 0x24], eax
mov dword [rbp + 0xc4], 0
jmp 0x140007eab
mov eax, dword [rbp + 0xc4]
inc eax
mov dword [rbp + 0xc4], eax
mov eax, dword [rbp + 4]
cmp dword [rbp + 0xc4], eax
jge 0x140007f75
mov eax, dword [rbp + 0xc4]
add eax, eax
cdqe
mov rcx, qword [rbp + 0x268]
movzx eax, byte [rcx + rax]
mov byte [rbp + 0x44], al
mov eax, dword [rbp + 0xc4]
lea eax, [rax + rax + 1]
cdqe
mov rcx, qword [rbp + 0x268]
movzx eax, byte [rcx + rax]
mov byte [rbp + 0x64], al
movsx eax, byte [rbp + 0x44]
mov ecx, eax
call fcn.1400030e9
sub eax, 0x30
mov byte [rbp + 0x84], al
movsx eax, byte [rbp + 0x84]
cmp eax, 9
jle 0x140007f1c
movsx eax, byte [rbp + 0x84]
sub eax, 7
mov byte [rbp + 0x84], al
movsx eax, byte [rbp + 0x64]
mov ecx, eax
call fcn.1400030e9
sub eax, 0x30
mov byte [rbp + 0xa4], al
movsx eax, byte [rbp + 0xa4]
cmp eax, 9
jle 0x140007f4c
movsx eax, byte [rbp + 0xa4]
sub eax, 7
mov byte [rbp + 0xa4], al
movsx eax, byte [rbp + 0x84]
imul eax, eax, 0x10
movsx ecx, byte [rbp + 0xa4]
add eax, ecx
movsxd rcx, dword [rbp + 0xc4]
mov rdx, qword [rbp + 0x260]
mov byte [rdx + rcx], al
jmp 0x140007e9d
mov dword [rbp + 0xe4], 0
mov eax, dword [rbp + 4]
dec eax
mov dword [rbp + 0x104], eax
jmp 0x140007fa8
mov eax, dword [rbp + 0xe4]
inc eax
mov dword [rbp + 0xe4], eax
mov eax, dword [rbp + 0x104]
dec eax
mov dword [rbp + 0x104], eax
mov eax, dword [rbp + 0x104]
cmp dword [rbp + 0xe4], eax
jge 0x14000800c
movsxd rax, dword [rbp + 0xe4]
mov rcx, qword [rbp + 0x260]
movzx eax, byte [rcx + rax]
mov byte [rbp + 0x124], al
movsxd rax, dword [rbp + 0x104]
movsxd rcx, dword [rbp + 0xe4]
mov rdx, qword [rbp + 0x260]
mov r8, qword [rbp + 0x260]
movzx eax, byte [r8 + rax]
mov byte [rdx + rcx], al
movsxd rax, dword [rbp + 0x104]
mov rcx, qword [rbp + 0x260]
movzx edx, byte [rbp + 0x124]
mov byte [rcx + rax], dl
jmp 0x140007f8c
mov dword [rbp + 0x144], 0
jmp 0x140008026
mov eax, dword [rbp + 0x144]
inc eax
mov dword [rbp + 0x144], eax
mov eax, dword [rbp + 4]
cmp dword [rbp + 0x144], eax
jge 0x14000807f
mov eax, dword [rbp + 0x144]
add eax, 5
cdq
idiv dword [rbp + 0x24]
mov eax, edx
mov dword [rbp + 0x164], eax
movsxd rax, dword [rbp + 0x144]
mov rcx, qword [rbp + 0x260]
movsx eax, byte [rcx + rax]
movsxd rcx, dword [rbp + 0x164]
mov rdx, qword [rbp + 0x270]
movsx ecx, byte [rdx + rcx]
xor eax, ecx
movsxd rcx, dword [rbp + 0x144]
mov rdx, qword [rbp + 0x260]
mov byte [rdx + rcx], al
jmp 0x140008018
lea rsp, [rbp + 0x248]
pop rdi
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140005480]
mov dword [rax], 1
mov rax, qword [0x140005490]
mov dword [rax], 1
mov rax, qword [0x1400054a0]
mov dword [rax], 1
mov rax, qword [0x140005440]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
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 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x14000175f
Capabilities:
Log keystrokes via application hook

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
call sym.__main
mov r9d, 0
mov r8d, 0
lea rax, [sym.KeyboardProc]
mov rdx, rax
mov ecx, 0xd
mov rax, qword [sym.imp.USER32.dll_SetWindowsHookExA]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400017d1
lea rax, str.Failed_to_install_hook_
mov rcx, rax
call sym.puts
mov eax, 1
jmp 0x14000180b
lea rax, [rbp - 0x40]
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_TranslateMessage]
call rax
lea rax, [rbp - 0x40]
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_DispatchMessageA]
call rax
lea rax, [rbp - 0x40]
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_GetMessageA]
call rax
test eax, eax
jne 0x1400017b1
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
call rax
mov eax, 0
add rsp, 0x60
pop rbp
ret

Function at 0x140001b80
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop