joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400bef22
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
sub rsp, 0x40
mov rsi, rcx
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x3c]
and dword [rax], 0
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r9
mov rcx, rdx
mov rdx, r8
xor r8d, r8d
mov r9, rax
call sub.advapi32.dll_RegQueryValueExW
mov rcx, rsi
mov edx, eax
call fcn.1400bef8d
nop
add rsp, 0x40
pop rsi
ret

Function at 0x1400befc5
Capabilities:
Get hostname

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, 5
call sub.kernel32.dll_GetComputerNameExW
mov rcx, rsi
mov edx, eax
add rsp, 0x20
pop rsi
jmp 0x1400b9730

Function at 0x1400c0d91
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x1400c0daa
dec ecx
add rsp, 0x28
jmp sub.kernel32.dll_TlsGetValue
mov rcx, rax
call fcn.140086940
mov ecx, eax
jmp 0x1400c0da1

Function at 0x1400c5672
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x1400c5679
test al, 1
je 0x1400c5698
test al, 2
jne 0x1400c56ad
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x140115668]
mov edx, 0x23
jmp 0x1400c56c0
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x1401156a8]
mov edx, 0x25
call fcn.1400112d0
ud2

Function at 0x1400c6169
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
call fcn.1400c4b0a
mov rcx, qword [rax]
movzx eax, bl
lea r9, [rsp + 0x2c]
mov dword [r9], eax
mov dword [rsp + 0x20], 4
mov edx, 6
mov r8d, 1
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1400c61a4
xor eax, eax
jmp 0x1400c61b1
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbx
ret
Function at 0x1400c640c
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rbp, r9
mov rbx, r8
mov r14, rdx
mov qword [rsp + 0x28], rcx
mov rax, qword [rsp + 0xc0]
lea rdi, [rsp + 0x3a]
lea r15, [rdx + 0x18]
xor ecx, ecx
cmp qword [rdx + 0x18], 0xffffffffffffffff
cmove r15, rcx
mov r12d, 0x7fffffff
cmp rax, r12
cmovb r12, rax
lea r13, [rsp + 0x52]
lea rsi, [rsp + 0x30]
mov qword [rsp + 0x40], r15
mov rdx, qword [r14 + 0x10]
mov rcx, rsi
mov r8, rbx
call fcn.1400c6161
mov al, byte [rsp + 0x39]
cmp al, 3
je 0x1400c657b
mov rcx, qword [rsp + 0x30]
cmp al, 2
je 0x1400c6589
mov dl, byte [rsp + 0x38]
movzx r8d, word [rdi + 4]
mov word [r13 + 4], r8w
mov r8d, dword [rdi]
mov dword [r13], r8d
mov qword [rsp + 0x48], rcx
mov byte [rsp + 0x50], dl
mov byte [rsp + 0x51], al
mov rcx, r15
lea rdx, str._home_floppa_.cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.35.1_src_io_poll_evented.rs
call fcn.1400c4b28
mov rcx, qword [r15]
mov rdx, rbp
mov r8d, r12d
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
jne 0x1400c659b
call sub.ws2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rcx, rsi
call fcn.14001df34
cmp al, 0xd
jne 0x1400c654b
mov rax, qword [r15 + 8]
test rax, rax
je 0x1400c654b
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lock inc qword [rdx]
jle 0x1400c65cd
mov r15, r14
mov r14, rbx
add rcx, 0x10
mov r8, qword [rax + 0x10]
mov r9b, byte [rax + 0x18]
call fcn.14003ad26
mov rbx, rax
xor ecx, ecx
call fcn.140039192
test rbx, rbx
je 0x1400c6540
mov ecx, 1
mov rdx, rsi
call fcn.14003ae4b
mov rsi, rbx
mov rbx, r14
mov r14, r15
mov r15, qword [rsp + 0x40]
mov rcx, rsi
call fcn.1400c00cc
cmp al, 0xd
jne 0x1400c65ac
mov qword [rsp + 0x30], rsi
mov rcx, r14
lea rdx, [rsp + 0x48]
call fcn.1400c5f2d
lea rsi, [rsp + 0x30]
mov rcx, rsi
call fcn.1400c0060
jmp 0x1400c6462
mov rax, qword [rsp + 0x28]
mov qword [rax], 2
jmp 0x1400c65bc
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rcx
jmp 0x1400c65bc
cdqe
mov rcx, qword [rsp + 0x28]
and qword [rcx], 0
mov qword [rcx + 8], rax
jmp 0x1400c65bc
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rsi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2

Function at 0x1400d25b0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400d3350
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400d3350
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x1400d2620
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14014d2b4]
mov rbx, rcx
test esi, esi
jle 0x1400d2750
mov rax, qword [0x14014d2b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400d266b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400d26f5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400d2650
mov rcx, rbx
call fcn.1400d3070
mov rdi, rax
test rax, rax
je 0x1400d2772
mov rax, qword [0x14014d2b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400d31b0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14014d2b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400d2757
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400d26ee
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400d2700
add dword [0x14014d2b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14014d2b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400d26ee
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400d25b0
nop dword [rax]
xor esi, esi
jmp 0x1400d2678
mov rax, qword [0x14014d2b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400d25b0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400d25b0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400d2ce0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14014d320]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14014d300]
test rbx, rbx
je 0x1400d2d3c
mov rbp, qword [sym.imp.kernel32.dll_TlsGetValue]
mov rdi, qword [sym.imp.kernel32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400d2d33
test rsi, rsi
je 0x1400d2d33
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400d2d18
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400d3070
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14013bb30]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400d3090
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400d3098
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400d3090
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400d30ed
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400d30e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400d3090
add rax, 0x28
cmp rax, r9
jne 0x1400d30d0
xor eax, eax
ret

Function at 0x1400d30f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14013bb30]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400d310f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400d3118
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400d310f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400d31b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14013bb30]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400d31cf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400d31d8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1400051b0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x540
mov rax, qword [0x1400283c8]
xor rax, rsp
mov qword [rsp + 0x530], rax
movsxd rbx, ecx
mov rbp, rdx
mov byte [rsp + 0x20], 0
cmp ebx, 2
jne 0x140005295
mov rcx, qword [rdx + 8]
call qword [sym.imp.dmcfg.dll_init_para_str_is_help]
cmp eax, 1
jne 0x14000521a
call qword [sym.imp.dmutl.dll_utl_tool_print_version]
cmp dword [0x140040ef4], 0
jne 0x14000520d
call fcn.140001330
jmp 0x140005212
call fcn.140001670
xor ecx, ecx
call fcn.14000d4bc
int3
mov rcx, qword [rbp + 8]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x420]
call qword [sym.imp.dmcfg.dll_init_para_str_get_control_path]
test eax, eax
jns 0x14000524c
lea rdx, [rsp + 0x20]
mov ecx, 1
call fcn.140001030
xor ecx, ecx
call fcn.14000d4bc
int3
jne 0x140005295
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x420]
lea rcx, [0x14002d640]
call qword [sym.imp.dmcfg.dll_init_ctl_cfg_parse]
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x20]
mov ebx, eax
xor eax, eax
repne scasb al, byte [rdi]
not rcx
dec rcx
test ecx, ecx
je 0x14000528e
lea rdx, [rsp + 0x20]
lea ecx, [rax + 1]
call fcn.140001030
mov eax, ebx
jmp 0x140005360
mov edi, 1
mov qword [rsp + 0x550], rsi
mov rsi, rbx
cmp rdi, rbx
jge 0x1400052c8
nop word [rax + rax]
mov rcx, qword [rbp + rdi*8]
call fcn.140001d40
mov ebx, eax
test eax, eax
js 0x14000531d
inc rdi
cmp rdi, rsi
jl 0x1400052b0
lea rdx, [rsp + 0x20]
lea rcx, [0x14002d640]
call qword [sym.imp.dmcfg.dll_init_ctl_cfg_validate]
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x20]
mov ebx, eax
xor eax, eax
repne scasb al, byte [rdi]
not rcx
dec rcx
test ecx, ecx
je 0x140005300
lea rdx, [rsp + 0x20]
lea ecx, [rax + 1]
call fcn.140001030
test ebx, ebx
jns 0x140005336
lea rdx, str.init.c
mov r8d, 0xc44
mov ecx, ebx
call qword [sym.imp.dmelog.dll_elog_try_report_dmerr]
mov eax, ebx
jmp 0x140005358
lea rdx, str.init.c
mov r8d, 0xc36
mov ecx, eax
call qword [sym.imp.dmelog.dll_elog_try_report_dmerr]
mov eax, ebx
jmp 0x140005358
call fcn.140004f80
mov edi, eax
test eax, eax
jns 0x140005358
lea rdx, str.init.c
mov r8d, 0xc48
mov ecx, eax
call qword [sym.imp.dmelog.dll_elog_try_report_dmerr]
mov eax, edi
mov rsi, qword [rsp + 0x550]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.14000c670
lea r11, [rsp + 0x540]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400059b0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov ecx, 0x20
mov rbx, rdx
call qword [sym.imp.dmos.dll_os_malloc]
mov rdi, rax
mov qword [rax + 8], rbx
mov rbx, qword [0x140040f08]
mov qword [rax], rsi
test rbx, rbx
je 0x140005a0f
nop word [rax + rax]
mov rdx, qword [rbx]
mov rcx, rsi
call fcn.14000c848
test eax, eax
je 0x140005a56
mov rbx, qword [rbx + 0x18]
test rbx, rbx
jne 0x1400059f0
mov rbx, qword [0x140040f08]
mov rax, qword [0x140040f10]
inc dword [0x140040f00]
mov qword [rdi + 0x18], 0
mov qword [rdi + 0x10], rax
test rax, rax
je 0x140005a31
mov qword [rax + 0x18], rdi
mov rsi, qword [rsp + 0x38]
test rbx, rbx
mov qword [0x140040f10], rdi
cmove rbx, rdi
mov qword [0x140040f08], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea rdx, str.File__s_has_already_exist__n
mov r8, rsi
mov ecx, 1
call fcn.140001030
or ecx, 0xffffffff
call fcn.14000d4bc
int3

Function at 0x14000a8b0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x20
xor r12d, r12d
cmp r12w, word [0x14002e2e8]
movzx ebp, r12w
jg 0x14000aa1b
lea r14, [0x14002e2f0]
nop word [rax + rax]
movsx rbx, bp
imul rbx, rbx, 0x12c0
add rbx, r14
cmp byte [rbx + 0xfaa], 0
je 0x14000aa0b
lea rdx, [0x140022d60]
lea rcx, [rbx + 0xfaa]
call fcn.14000d8c4
mov rdi, rax
test rax, rax
jne 0x14000a941
lea r8, [rbx + 0xfaa]
lea rdx, str.invalid_ini_file___s_._n
lea ecx, [rax + 1]
call fcn.140001030
jmp 0x14000aa0b
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 2]
call fcn.14000e1e0
test eax, eax
jne 0x14000aa46
mov rcx, rdi
call fcn.14000e0d4
test eax, eax
je 0x14000aa3d
cmp eax, 0x20000
ja 0x14000aa3d
mov ecx, eax
mov r13d, eax
call qword [sym.imp.dmos.dll_os_malloc]
mov r8d, r13d
xor edx, edx
mov rcx, rax
mov rsi, rax
call fcn.140010710
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.14000e1e0
mov r9, rdi
mov r8d, r13d
mov edx, 1
mov rcx, rsi
call fcn.14000dbb0
lea rcx, [rbx + 0x8a]
lea rdx, [0x14002287c]
call fcn.14000d8c4
mov rbx, rax
test rax, rax
je 0x14000a9e5
mov r9, rax
mov r8d, r13d
mov edx, 1
mov rcx, rsi
call fcn.14000de8c
mov rcx, rbx
call fcn.14000e2d8
jmp 0x14000a9fa
lea rdx, str.fail_to_open_dm.ini_file._n
mov ecx, 1
call fcn.140001030
or r12d, 0xffffffff
mov rcx, rsi
call qword [sym.imp.dmos.dll_os_free]
mov rcx, rdi
call fcn.14000e2d8
inc bp
cmp bp, word [0x14002e2e8]
jle 0x14000a8f0
mov eax, r12d
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
lea rdx, str.ini_file___s__size_invalid__please_check_again._n
jmp 0x14000aa4d
lea rdx, str.open_ini_file___s__failed._n
lea r8, [rbx + 0xfaa]
mov ecx, 1
call fcn.140001030
mov rcx, rdi
call fcn.14000e2d8
or eax, 0xffffffff
jmp 0x14000aa1e

Function at 0x14000d4b0
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14000d320
Function at 0x14000e5d3
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400283c8]
jne 0x14000c68a
rol rcx, 0x10
test cx, 0xffff
jne 0x14000c686
repz ret
ror rcx, 0x10
jmp 0x14000e52c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140029fc0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14002a0b8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14000e5b1
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140029fc0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14000e5d3
mov rax, qword [rsp + 0x88]
mov qword [0x14002a0b8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14002a058], rax
mov rax, qword [0x14002a0b8]
mov qword [0x140029f30], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14002a040], rax
mov dword [0x140029f20], 0xc0000409
mov dword [0x140029f24], 1
mov rax, qword [0x1400283c8]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400283d0]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140029fb8], eax
mov ecx, 1
call fcn.1400152d8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14001acb8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140029fb8], 0
jne 0x14000e65a
mov ecx, 1
call fcn.1400152d8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140017300
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1400283c8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.14000f23c
xor ebx, ebx
cmp qword [0x14002af60], rbx
mov rdi, rax
jne 0x140017413
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x1400174ea
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400174ea
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14002af60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14002af68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x14002af70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x14002af80], rax
test rax, rax
je 0x14001740a
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x14002af78], rax
jmp 0x14001741a
mov rax, qword [0x14002af78]
jmp 0x140017421
mov rax, qword [0x14002af78]
mov r11, qword [0x14002af80]
cmp rax, rdi
je 0x140017488
cmp r11, rdi
je 0x140017488
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x14002af80]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140017488
test rax, rax
je 0x140017488
call rsi
test rax, rax
je 0x140017482
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140017482
test byte [rsp + 0x40], 1
jne 0x140017488
bts ebp, 0x15
jmp 0x1400174c8
mov rcx, qword [0x14002af68]
cmp rcx, rdi
je 0x1400174c8
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400174c8
call rax
mov rbx, rax
test rax, rax
je 0x1400174c8
mov rcx, qword [0x14002af70]
cmp rcx, rdi
je 0x1400174c8
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400174c8
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14002af60]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400174ea
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x1400174ec
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000c670
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x0040bc50]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x0040bc60]
mov dword [rax], 1
mov rax, qword [0x0040bc70]
mov dword [rax], 1
mov rax, qword [0x0040bc40]
mov dword [rax], 1
mov rax, qword [0x0040bb20]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x0040bc30]
mov dword [0x0040e008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x0040bbf0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x0040bad0]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058
Function at 0x401892
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov eax, ecx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov byte [rbp + 0x10], al
mov byte [rbp - 1], 0
cmp byte [rbp - 1], 3
ja 0x401938
mov byte [rbp - 2], 0
cmp byte [rbp - 2], 3
ja 0x40192f
movzx eax, byte [rbp - 1]
movzx edx, byte [rbp - 2]
mov rcx, qword [rbp + 0x18]
movsxd rdx, edx
cdqe
shl rax, 2
add rax, rcx
add rax, rdx
movzx r8d, byte [rax]
movzx eax, byte [rbp + 0x10]
lea edx, [rax*4]
movzx eax, byte [rbp - 1]
add eax, edx
lea edx, [rax*4]
movzx eax, byte [rbp - 2]
add eax, edx
cdqe
mov rdx, qword [rbp + 0x20]
add rax, rdx
movzx ecx, byte [rax]
movzx eax, byte [rbp - 1]
movzx edx, byte [rbp - 2]
xor r8d, ecx
mov rcx, qword [rbp + 0x18]
movsxd rdx, edx
cdqe
shl rax, 2
add rax, rcx
add rax, rdx
mov byte [rax], r8b
add byte [rbp - 2], 1
jmp 0x4018b9
add byte [rbp - 1], 1
jmp 0x4018ab
nop
add rsp, 0x10
pop rbp
ret

Function at 0x40193f
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov byte [rbp - 1], 0
cmp byte [rbp - 1], 3
ja 0x4019b8
mov byte [rbp - 2], 0
cmp byte [rbp - 2], 3
ja 0x4019b2
movzx eax, byte [rbp - 2]
movzx edx, byte [rbp - 1]
mov rcx, qword [rbp + 0x10]
movsxd rdx, edx
cdqe
shl rax, 2
add rax, rcx
add rax, rdx
movzx eax, byte [rax]
movzx eax, al
movzx r8d, byte [rbp - 2]
movzx ecx, byte [rbp - 1]
cdqe
lea rdx, str.cw
movzx edx, byte [rax + rdx]
mov r9, qword [rbp + 0x10]
movsxd rcx, ecx
movsxd rax, r8d
shl rax, 2
add rax, r9
add rax, rcx
mov byte [rax], dl
add byte [rbp - 2], 1
jmp 0x401959
add byte [rbp - 1], 1
jmp 0x40194f
nop
add rsp, 0x10
pop rbp
ret

Function at 0x402454
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov byte [rbp - 1], 0
cmp byte [rbp - 1], 3
ja 0x4024cd
mov byte [rbp - 2], 0
cmp byte [rbp - 2], 3
ja 0x4024c7
movzx eax, byte [rbp - 2]
movzx edx, byte [rbp - 1]
mov rcx, qword [rbp + 0x10]
movsxd rdx, edx
cdqe
shl rax, 2
add rax, rcx
add rax, rdx
movzx eax, byte [rax]
movzx eax, al
movzx r8d, byte [rbp - 2]
movzx ecx, byte [rbp - 1]
cdqe
lea rdx, [0x0040b120]
movzx edx, byte [rax + rdx]
mov r9, qword [rbp + 0x10]
movsxd rcx, ecx
movsxd rax, r8d
shl rax, 2
add rax, r9
add rax, rcx
mov byte [rax], dl
add byte [rbp - 2], 1
jmp 0x40246e
add byte [rbp - 1], 1
jmp 0x402464
nop
add rsp, 0x10
pop rbp
ret

Function at 0x4026fe
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov byte [rbp - 1], 0
cmp byte [rbp - 1], 0xf
ja 0x40274d
movzx eax, byte [rbp - 1]
mov rdx, qword [rbp + 0x10]
add rax, rdx
movzx r8d, byte [rax]
movzx eax, byte [rbp - 1]
mov rdx, qword [rbp + 0x18]
add rax, rdx
movzx ecx, byte [rax]
movzx eax, byte [rbp - 1]
mov rdx, qword [rbp + 0x10]
add rax, rdx
mov edx, r8d
xor edx, ecx
mov byte [rax], dl
add byte [rbp - 1], 1
jmp 0x402712
nop
add rsp, 0x10
pop rbp
ret