joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004bebc
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], 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.140034328
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14004bf46
cmp byte [rbp - 0x21], r15b
je 0x14004bf41
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14004bf7c
call fcn.14003ced0
test eax, eax
jne 0x14004bf68
cmp byte [rbp - 0x21], r15b
je 0x14004bf60
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14004bf7c
cmp byte [rbp - 0x21], r15b
je 0x14004bf79
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14003495c
test eax, eax
jne 0x14004c01c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140034328
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14004bfbb
cmp byte [rbp - 0x21], r15b
je 0x14004bff0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14004bff0
call fcn.14003ced0
test eax, eax
jne 0x14004bfdc
cmp byte [rbp - 0x21], r15b
je 0x14004bfd5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14004bff0
cmp byte [rbp - 0x21], r15b
je 0x14004bfed
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14003495c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14004c01c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14004c01f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14004c02d
mov rcx, rdi
call fcn.14003c54c
cmp byte [rbp + 0x3f], r15b
je 0x14004c03c
mov rcx, qword [rbp + 0x27]
call fcn.14003c54c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14004d480
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.14003ebb0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14003ebb0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14004d5d0
cmp rax, 0xffffffffffffffff
je 0x14004d5d0
xor edi, edi
test rbp, rbp
jle 0x14004d57b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14003cb38
mov rbx, rax
test rax, rax
jne 0x14004d508
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14004d571
mov edx, 0x8000
mov ecx, r14d
call fcn.140035c74
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.14003c244
cmp eax, 0xffffffff
je 0x14004d551
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14004d518
mov edx, r15d
mov ecx, r14d
call fcn.140035c74
jmp 0x14004d571
cmp byte [rsi + 0x38], dil
je 0x14004d568
cmp dword [rsi + 0x34], 5
jne 0x14004d568
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14004d571
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14003c54c
jmp 0x14004d5e4
jns 0x14004d5e4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14003ebb0
cmp rax, 0xffffffffffffffff
jne 0x14004d59c
cmp byte [rsi + 0x30], dil
je 0x14004d5e4
mov edi, dword [rsi + 0x2c]
jmp 0x14004d5e4
mov ecx, r14d
call fcn.140045084
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14004d5e4
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 0x14004d5e4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14004d5dd
mov eax, dword [rsi + 0x2c]
jmp 0x14004d5e2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14003ebb0
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 0x14004dbb0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14004dbd8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14004dbd8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140291220]
mov dword [rax], 1
mov rax, qword [0x140291230]
mov dword [rax], 1
mov rax, qword [0x140291240]
mov dword [rax], 1
mov rax, qword [0x1402911a0]
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 0x1401fe340
Capabilities:
Query environment variable

Disassembly:
push r14
mov eax, 0x10080
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.140269820
sub rsp, rax
xor eax, eax
xor edx, edx
xor esi, esi
mov r14d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x80], ax
mov r12, rcx
lea rbp, [rsp + 0x30]
lea r13, [rsp + 0x2e]
mov word [rsp + 0x30], dx
test dil, dil
je 0x1401fe3e9
nop dword [rax]
mov rax, r14
lea rbx, [rbp + rsi*2]
sub rax, rsi
cmp word [rbp + rsi*2], 0
je 0x1401fe3ae
nop dword [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x1401fe3a0
test rax, rax
je 0x14027a72e
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r13
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [r12 + rsi]
test dil, dil
jne 0x1401fe388
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, rbp
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x1401fe418
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10080
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x1401fe430
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
xor eax, eax
xor esi, esi
mov r13d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x30], ax
mov rbp, rcx
mov r14, rdx
lea r15, [rsp + 0x30]
lea r12, [rsp + 0x2e]
test dil, dil
je 0x1401fe4d1
nop word [rax + rax]
mov rax, r13
lea rbx, [r15 + rsi*2]
sub rax, rsi
cmp word [r15 + rsi*2], 0
je 0x1401fe496
nop word [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x1401fe488
test rax, rax
je 0x14027a734
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r12
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [rbp + rsi]
test dil, dil
jne 0x1401fe470
mov rdx, r14
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140226f60
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rsi, str.NUITKA_ONEFILE_BINARY
mov ebx, ecx
mov rcx, rsi
call fcn.1401fe340
test rax, rax
je 0x1402270a0
mov rdx, 0xffffffffffffffff
mov rcx, rax
lea r14, [rsp + 0x40]
mov r15d, 0x4e
call qword [sym.imp.python311.dll_PyUnicode_FromWideChar]
mov rdi, r14
lea r12, [rsi + 0x28]
lea rbp, [rsp + 0x3e]
mov r13, rax
xor eax, eax
mov word [rsp + 0x40], ax
nop
mov rax, r12
mov rbx, rdi
sub rax, rsi
cmp word [rdi], 0
je 0x140226fde
nop
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x140226fd0
test rax, rax
je 0x14027a7ce
mov rcx, rbx
add rsi, 1
add rdi, 2
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, rbp
mov byte [rsp + 0x3e], r15b
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x3f], 0
call sub.msvcrt.dll_mbstowcs
movzx r15d, byte [rsi]
test r15b, r15b
jne 0x140226fc0
mov rcx, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python311.dll__PyRuntime]
mov rcx, qword [0x1402b50b8]
mov rsi, qword [rax + 0x1f8]
mov rax, qword [0x140291370]
mov rbx, qword [rax + 0x1c0]
test rcx, rcx
je 0x1402270f8
mov rdx, rbx
call fcn.1401e43f0
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.14021b570
sub qword [rbx], 1
jne 0x140227086
mov rdx, qword [rbx + 8]
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [rdx + 0x30]
mov rax, qword [rsp + 0x28]
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x1402b4980]
lea rsi, [0x1402b4980]
test bl, bl
je 0x1402270c0
mov rax, qword [0x1402b4988]
lea rsi, [0x1402b4988]
test rax, rax
jne 0x140227086
cmp byte [0x1402b4ba2], 0
jne 0x1402270d6
movzx ecx, bl
call fcn.1401e6400
mov rdx, 0xffffffffffffffff
lea rcx, [0x1402b49a0]
call qword [sym.imp.python311.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x140227122
add qword [rax], 1
jmp 0x140227086
mov rcx, qword [0x1402b5030]
mov rdi, qword [rax + 0x1b0]
test rcx, rcx
je 0x14022712d
mov rdx, rdi
call fcn.1401e43f0
mov qword [0x1402b50b8], rax
mov rcx, rax
jmp 0x140227053
call qword [sym.imp.python311.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x140289673]
call qword [sym.imp.python311.dll_PyImport_ImportModule]
mov qword [0x1402b5030], rax
mov rcx, rax
test rax, rax
je 0x14027a7ce
jmp 0x14022710b
Function at 0x14025ebc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1402b4969], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x14025ec48
lea rdx, [0x14028d0f2]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x14025ecb0
mov rbx, qword [0x1402b4820]
jmp 0x14025ec05
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x14025ec00
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, rbp
mov rdx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.14024dd70
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x1402b4820], rax
mov ebx, dword [rax]
mov qword [0x1402b4820], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1402b4820], rdx
call fcn.14025dcf0
cmp eax, ebx
jne 0x14025ed18
mov byte [0x1402b4969], 1
jmp 0x14025ebdc
cmp byte [0x1402b4968], 0
jne 0x14025ebf3
mov rbx, qword [sym.imp.python311.dll_PyDict_New]
call rbx
mov qword [0x1402b52c8], rax
call rbx
mov qword [0x1402b52c0], rax
call rbx
mov qword [0x1402b52b8], rax
call rbx
mov qword [0x1402b52b0], rax
call rbx
mov qword [0x1402b52a8], rax
call rbx
mov qword [0x1402b52a0], rax
call rbx
mov qword [0x1402b5298], rax
call rbx
mov byte [0x1402b4968], 1
mov qword [0x1402b5290], rax
jmp 0x14025ebf3
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x140268500
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 fcn.140279c90
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140279c90
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x1402691d2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1402b5788]
test eax, eax
je 0x14026926a
lea rax, [0x1402b5760]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1402b5790]
mov qword [rbp - 8], rax
jmp 0x14026924e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140269242
cmp qword [rbp - 0x10], 0
je 0x140269242
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140269208
lea rax, [0x1402b5760]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14026926b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140269370
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140269398
mov eax, 0
jmp 0x1402693e6
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 0x1402693c1
mov eax, 0
jmp 0x1402693e6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1402693e1
mov eax, 0
jmp 0x1402693e6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1402693ec
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14026946a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140269461
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140269461
mov rax, qword [rbp - 8]
jmp 0x14026947f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140269434
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140003970
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x14000c5e0], rbx
je 0x1400039bc
cmp rax, rbx
jne 0x1400039af
mov ebx, 1
mov esi, ebx
jmp 0x1400039c1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140003994
mov ebx, 1
mov eax, dword [0x14000c5e8]
cmp eax, ebx
jne 0x1400039d7
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x140003a3c
mov eax, dword [0x14000c5e8]
test eax, eax
jne 0x140003a36
mov dword [0x14000c5e8], ebx
lea r15, [0x140005320]
lea rdi, [0x140005308]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140003a28
test eax, eax
jne 0x140003a2c
cmp qword [rdi], 0
je 0x140003a1d
mov rax, qword [rdi]
mov rcx, qword [0x1400052e8]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x1400039fe
test eax, eax
je 0x140003a3c
mov eax, 0xff
jmp 0x140003b18
mov dword [0x14000c024], ebx
mov eax, dword [0x14000c5e8]
cmp eax, ebx
jne 0x140003a63
lea rdx, [0x140005300]
lea rcx, [0x1400052f0]
call sub.msvcrt.dll__initterm
mov dword [0x14000c5e8], 2
test esi, esi
jne 0x140003a70
xor eax, eax
xchg qword [0x14000c5e0], rax
cmp qword [0x14000c5f0], 0
je 0x140003aa4
lea rcx, [0x14000c5f0]
call fcn.140003d40
test eax, eax
je 0x140003aa4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14000c5f0]
mov r9, qword [0x1400052e8]
call r9
mov r8, qword [0x14000c038]
mov rdx, qword [0x14000c030]
mov ecx, dword [0x14000c028]
call fcn.1400018c0
mov dword [0x14000c020], eax
cmp dword [0x14000c040], 0
jne 0x140003ad4
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000c024], 0
jne 0x140003ae9
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000c020]
jmp 0x140003b18
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.14012b000
add rsp, 0x28
jmp 0x140003970

Function at 0x140003c2c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140003c78
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140003c70
cmp dword [rcx + 0x3c], edx
jl 0x140003c70
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140003c70
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140003c78
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140004d90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x60
xor r12d, r12d
lea r15, [0x140128a68]
mov esi, r12d
lea r14, [0x140127820]
cmp byte [r15], r12b
je 0x140004e64
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], reloc.WSOCK32.dll_gethostbyname
mov ecx, esi
mov dword [rsp + 0x24], 0x80
call qword [sym.imp.WINMM.dll_joyGetPosEx]
test eax, eax
jne 0x140004e64
mov eax, dword [rsp + 0x40]
mov ebp, eax
xor ebp, dword [r14]
mov dword [r14], eax
and ebp, eax
je 0x140004e64
movzx edx, word [0x140128a9c]
mov ebx, r12d
cmp r12w, dx
jae 0x140004e64
mov rdi, r12
nop
mov rax, qword [0x140128a88]
mov rax, qword [rdi + rax]
cmp byte [rax + 0x12], 4
jne 0x140004e57
movzx ecx, byte [rax + 0x10]
cmp ecx, esi
jne 0x140004e57
movzx ecx, word [rax + 8]
sub ecx, 0xc
movzx eax, cl
bt ebp, eax
jae 0x140004e57
mov rcx, qword [0x140127a60]
xor r9d, r9d
movsxd r8, ebx
mov edx, 0x312
call qword [sym.imp.USER32.dll_PostMessageW]
movzx edx, word [0x140128a9c]
inc ebx
movzx eax, dx
add rdi, 8
cmp ebx, eax
jl 0x140004e10
inc esi
inc r15
add r14, 4
cmp esi, 0x10
jl 0x140004dc2
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x140007560
Capabilities:
Write clipboard data

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x2c], 0
mov rbx, rcx
jne 0x14000758c
call fcn.140007880
test eax, eax
jne 0x14000758c
lea rdx, str.Cant_open_clipboard_for_writing.
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x1400076b0
mov qword [rsp + 0x38], rdi
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x1400075da
cmp dword [rbx + 0x2c], eax
je 0x1400075c1
xor edi, edi
cmp qword [rbx + 0x10], rdi
je 0x1400075b5
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rbx + 0x10], rdi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [rbx + 0x2c], edi
mov qword [rbx], rdi
lea rdx, [0x1400efee8]
mov rcx, rbx
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
jmp 0x1400076b0
mov rdx, qword [rbx + 8]
xor edi, edi
test rdx, rdx
je 0x140007628
mov rax, qword [rbx + 0x18]
mov qword [rsp + 0x30], rsi
xor sil, sil
test rax, rax
je 0x140007611
cmp word [rax], di
mov rcx, rdx
sete sil
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, qword [rbx + 8]
mov qword [rbx + 0x18], rdi
mov dword [rbx + 0x28], edi
test sil, sil
mov rsi, qword [rsp + 0x30]
je 0x14000765c
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [rbx + 8], rax
cmp dword [rbx + 0x2c], edi
je 0x14000764c
cmp qword [rbx + 0x10], rdi
je 0x140007640
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rbx + 0x10], rdi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [rbx + 0x2c], edi
mov qword [rbx], rdi
mov rdi, qword [rsp + 0x38]
mov eax, 1
add rsp, 0x20
pop rbx
ret
mov ecx, ntohs
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
je 0x140007672
mov qword [rbx + 8], rdi
jmp 0x140007628
cmp dword [rbx + 0x2c], edi
je 0x140007696
cmp qword [rbx + 0x10], rdi
je 0x14000768a
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rbx + 0x10], rdi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [rbx + 0x2c], edi
mov qword [rbx], rdi
lea rdx, [0x1400eff08]
mov rcx, rbx
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
jmp 0x1400076b0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov rbx, rcx
cmp dword [rcx + 0x2c], esi
je 0x1400076eb
cmp qword [rcx + 0x10], rsi
je 0x1400076df
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rbx + 0x10], rsi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [rbx + 0x2c], esi
mov qword [rbx], rsi
cmp qword [rbx + 0x18], rsi
je 0x140007702
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rbx + 0x18], rsi
mov dword [rbx + 0x28], esi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140007715
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [rbx + 8], rax
cmp word [rdi], si
je 0x14000773f
lea r8, [0x1400ef7d4]
mov rdx, rdi
lea rcx, [0x14012afc0]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14005fdd0
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret