joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002b10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
xor r11d, r11d
movsxd rax, dword [rdx + 0x3c]
mov ebx, dword [rax + rdx + 0x88]
add rbx, rdx
mov rdi, rcx
mov r10, rdx
mov esi, dword [rbx + 0x20]
mov ebp, dword [rbx + 0x18]
add rsi, rdx
cmp ebp, r11d
jbe 0x140002b7c
mov ecx, dword [rsi + r11*4]
mov edx, 0xd
add rcx, r10
call fcn.140002c70
mov r8d, eax
lea rax, [r11 + 1]
cmp r8d, edi
jne 0x140002b77
mov edx, dword [rbx + 0x24]
add r11, r11
mov eax, dword [rbx + 0x1c]
add r11, r10
movzx edx, word [r11 + rdx]
lea rdx, [r10 + rdx*4]
mov eax, dword [rdx + rax]
add rax, r10
jmp 0x140002b7e
mov r11, rax
jmp 0x140002b38
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x140002b90
Capabilities:
Parse pe header

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
cmp word [rax], 0x5a4d
jne 0x140002bbe
movsxd rdx, dword [rax + 0x3c]
lea rcx, [rdx - 0x40]
cmp rcx, 0x3bf
ja 0x140002bbe
cmp dword [rax + rdx], 0x4550
je 0x140002bc3
dec rax
jmp 0x140002b9d
ret

Function at 0x140002c00
Capabilities:
Check for software breakpoints

Disassembly:
cmp byte [rcx - 1], 0xcc
je 0x140002c5e
test r8d, r8d
jne 0x140002c0f
sub rcx, 0x20
mov r9b, byte [rcx]
cmp r9b, 0xe9
je 0x140002c22
mov r8b, byte [rcx + 3]
cmp r8b, 0xe9
jne 0x140002c29
inc edx
xor r8d, r8d
jmp fcn.140002c00
xor eax, eax
cmp r9b, 0x4c
jne 0x140002c60
cmp byte [rcx + 1], 0x8b
jne 0x140002c60
cmp byte [rcx + 2], 0xd1
jne 0x140002c5e
cmp r8b, 0xb8
jne 0x140002c5e
cmp byte [rcx + 6], 0
jne 0x140002c60
movzx eax, byte [rcx + 5]
shl eax, 8
mov r8d, eax
movzx eax, byte [rcx + 4]
or eax, r8d
add eax, edx
jmp 0x140002c60
xor eax, eax
ret
Function at 0x180008ac7
Capabilities:
Create thread

Disassembly:
push rsi
sub rsp, 0x60
mov rsi, r8
mov r8, qword [rsp + 0x90]
lea rax, [rsp + 0x38]
mov qword [rax], rcx
mov dword [rax + 8], edx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], r9
mov qword [rax + 0x20], r8
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x1800088af]
xor ecx, ecx
xor edx, edx
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
test rax, rax
setne cl
lea rdx, [0x180027c20]
mov r8d, 0x1404b79b
xor r8d, dword [0x180027c30]
inc r8d
movsxd r8, r8d
add r8, qword [rdx + rcx*8]
jmp r8
Function at 0x180011cd6
Capabilities:
Get hostname

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1e8
mov qword [rsp + 0x60], rcx
lea rcx, [0x18002caf2]
lea rdx, [0x18002caf5]
lea r9, [rsp + 0x2d]
mov r8d, 3
call fcn.18000e149
mov r14, rax
lea rcx, [0x18002caf8]
lea rdx, [0x18002cafc]
lea r9, [rsp + 0x71]
mov r8d, 4
call fcn.18000e149
mov qword [rsp + 0x58], rax
lea rcx, [0x18002cb00]
lea rdx, [0x18002cb04]
lea r9, [rsp + 0x6d]
mov r8d, 4
call fcn.18000e149
mov qword [rsp + 0x50], rax
lea rcx, [0x18002cb08]
lea rdx, [0x18002cb0a]
lea r9, [rsp + 0x25]
mov r8d, 2
call fcn.18000e149
mov qword [rsp + 0x48], rax
lea rcx, [0x18002cb0c]
lea rdx, [0x18002cb18]
lea r9, [rsp + 0x84]
mov r8d, 0xc
call fcn.18000e149
mov qword [rsp + 0x40], rax
lea rcx, [0x18002cb24]
lea rdx, [0x18002cb2c]
lea r9, [rsp + 0x7c]
mov r8d, 8
call fcn.18000e149
mov rbp, rax
lea rcx, [0x18002cb34]
lea rdx, [0x18002cb37]
lea r9, [rsp + 0x2a]
mov r8d, 3
call fcn.18000e149
mov rsi, rax
lea rcx, [0x18002cb3a]
lea rdx, [0x18002cb41]
lea r9, [rsp + 0x75]
mov r8d, 7
call fcn.18000e149
mov rdi, rax
lea rcx, [0x18002cb48]
lea rdx, [0x18002cb4b]
lea r9, [rsp + 0x27]
mov r8d, 3
call fcn.18000e149
mov rbx, rax
lea rcx, [0x18002cb4e]
lea rdx, [0x18002cb50]
lea r9, [rsp + 0x23]
mov r8d, 2
call fcn.18000e149
mov qword [rsp + 0x30], rax
lea rcx, [0x18002cb52]
lea rdx, [0x18002cb54]
lea r9, [rsp + 0x21]
mov r8d, 2
call fcn.18000e149
mov qword [rsp + 0x38], rax
lea r15, [rsp + 0xa0]
mov rcx, r15
mov edx, 0x40
call qword [sym.imp.WS2_32.dll_gethostname]
mov byte [r15 + 0x3f], 0
lea r8, [rsp + 0x68]
mov dword [r8], 0x104
lea r12, [rsp + 0xe0]
mov ecx, 2
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetComputerNameExA]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r9d, eax
lea r13, [rsp + 0x90]
mov rcx, r13
mov r8, r14
call fcn.180011fca
mov ecx, 3
call fcn.180003093
mov r14, rax
mov rcx, rax
mov rdx, qword [rsp + 0x60]
call fcn.180001c5a
mov rcx, r14
mov rdx, qword [rsp + 0x58]
call fcn.180001c5a
mov rcx, r14
mov rdx, qword [rsp + 0x50]
call fcn.180001c5a
mov rcx, r14
mov rdx, qword [rsp + 0x48]
call fcn.180001c5a
mov rcx, r14
mov rdx, qword [rsp + 0x40]
call fcn.180001c5a
mov rcx, r14
mov rdx, rbp
call fcn.180001c5a
mov rcx, r14
mov rdx, r13
call fcn.180001c5a
mov rcx, r14
mov rdx, rsi
call fcn.180001c5a
mov rcx, r14
mov rdx, rdi
call fcn.180001c5a
mov rcx, r14
mov rdx, rbx
call fcn.180001c5a
mov rcx, r14
mov rdx, r15
call fcn.180001c5a
xor eax, eax
cmp byte [r12], 0
setne al
lea rcx, [0x18002d868]
mov edx, 0xc33e2cae
xor edx, dword [0x18002d878]
inc edx
movsxd rdx, edx
add rdx, qword [rcx + rax*8]
jmp rdx

Function at 0x18001323c
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1b8
lea rdx, [rsp + 0x20]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor ecx, ecx
cmp eax, 0x2753
setl cl
lea rdx, [0x18002e370]
mov r8d, 0xe4231965
xor r8d, dword [0x18002e380]
inc r8d
movsxd r8, r8d
add r8, qword [rdx + rcx*8]
jmp r8
Function at 0x1800133b6
Capabilities:
Create tcp socket

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x30
mov ebp, r8d
mov edi, edx
mov rbx, rcx
mov ecx, 2
mov edx, 1
mov r8d, 6
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
xor eax, eax
cmp esi, 0xffffffff
sete al
lea rcx, [0x18002e430]
mov edx, 0xdeededf3
xor edx, dword [0x18002e440]
inc edx
movsxd rdx, edx
add rdx, qword [rcx + rax*8]
jmp rdx

Function at 0x180018296
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov r14, rdx
mov edi, ecx
mov dword [rsp + 0x34], 1
mov ecx, 2
mov edx, 2
mov r8d, 0x11
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
movsxd rbx, esi
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov rcx, rbx
mov edx, 0xffff
mov r8d, 0x20
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x3c], eax
mov word [rsp + 0x38], 2
mov ecx, edi
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x3a], ax
lea rdx, [rsp + 0x38]
mov rcx, rbx
mov r8d, 0x10
call qword [sym.imp.WS2_32.dll_bind]
mov eax, esi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x180018b00
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.180018f60
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.180018f60
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

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

Disassembly:
mov rax, qword [0x180020640]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x1800193dc
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x1800193dc
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x1800193dc
movzx edx, word [rax + 6]
test edx, edx
je 0x1800193dc
sub rcx, qword [0x180020640]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x1800193c8
add rax, 0x28
dec edx
je 0x1800193dc
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x1800193c0
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x1800193c0
jmp 0x1800193de
xor eax, eax
ret

Function at 0x1800193e0
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x180020640]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x180019415
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x180019415
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x180019415
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x180019490
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x180020640]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1800194bc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1800194bc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1800194be
xor eax, eax
ret
Function at 0x140004884
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.140012b50
mov r15, qword [0x140020514]
cmp r15, 1
jne 0x140004953
push qword [0x140020604]
pop rcx
call fcn.14000dd04
mov r15, rax
and r15, r15
jle 0x1400048e9
mov rcx, qword [0x140020604]
call fcn.14000dd0c
mov rcx, qword [0x140020604]
call fcn.14000dd20
or rax, rax
je 0x1400048e9
mov rbp, qword [0x14002060c]
push qword [rbp + 0x10]
pop rcx
call fcn.14000e1bc
jmp 0x1400048c6
push qword [0x1400205f4]
pop rcx
call fcn.14000dd04
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x140004953
push 5
push 0
push 1
push qword [0x1400205f4]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140009060
mov rcx, qword [0x1400205f4]
call fcn.14000dd0c
mov rcx, qword [0x1400205f4]
call fcn.14000dd20
or rax, rax
je 0x140004953
mov rbp, qword [0x1400205fc]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x140004930
mov rax, 1
jmp 0x14000495f
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140006b38
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001f190]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x140007204
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021210]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020640]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020640]
call fcn.1400123b8
lea rcx, [0x140021210]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add al, 0xff
or eax, 0xeff0306
invalid
add eax, 0x6060eff
dec dword [rsi]
invalid
add al, 0xff
invalid
add al, 1
add edi, edi
add eax, dword [rcx]
add edi, edi
add al, 2
add bh, bh
add eax, 0x4ff0303
add al, byte [rdx]
add bh, bh
sbb ebx, dword [rax]
sbb bh, bh
sbb edx, dword [rsi]
add bh, bh
sbb ebx, dword [rax]
sbb bh, bh
sbb edx, dword [rsi]
adc eax, 0x5ff
dec dword [rbx + rax]
add edi, edi
or byte [rbx + rax], al
inc dword [rsp + rax]
add edi, edi
add al, byte [rbx]
add bh, bh
add al, byte [rdx]
add bh, bh
add al, byte [rdx]
add bh, bh
add al, byte [rdx]
add bh, bh
add al, byte [rdx]
add bh, bh
add dword [rax], eax
add bh, bh
adc dword [0x1703cf61e], ecx
invalid
or eax, dword [rax]
add bh, bh
or eax, dword [rdx]
add edi, edi
or dword [rdx + rax], eax
inc dword [rcx + rax]
add bh, bh
sbb eax, 0x3dff0f12
sub ebp, dword [rcx]
inc dword [rdi]
add byte [rax], al
invalid
Function at 0x47df98
Capabilities:
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x58
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
xor ebp, ebp
cmp dword [rdx + 8], ebp
jne 0x47dfc2
lea eax, [rbp - 1]
jmp 0x47e0a9
cmp ebx, 0xffffffff
cmove ebx, ebp
lea rcx, [rsp + 0x38]
call fcn.0040229c
nop
mov edx, 0x110
cmp dword [rsp + 0x44], edx
jae 0x47dfe8
lea rcx, [rsp + 0x38]
call fcn.00401fb0
mov r8d, 0x10e
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, qword [rsp + 0x38]
mov word [rcx + 0x21c], bp
mov edx, ebp
cmp word [rcx], bp
je 0x47e01a
inc edx
add rcx, 2
cmp word [rcx], bp
jne 0x47e00f
mov dword [rsp + 0x40], edx
cmp eax, ebp
je 0x47e029
cmp eax, 0x10e
jb 0x47e036
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.004024c8
mov dword [rsp + 0x20], 1
lea r9, [rsp + 0x88]
xor r8d, r8d
mov edx, ebx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.SHELL32.dll_ExtractIconExW]
cmp eax, 1
jne 0x47e09a
mov r8, qword [rsp + 0x88]
cmp r8, rbp
je 0x47e09a
lea edx, [rax - 2]
mov rcx, qword [rsi + 0x48]
call qword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.USER32.dll_DestroyIcon]
mov ebx, dword [rsi + 0x40]
lea ecx, [rbx + 1]
mov dword [rsi + 0x40], ecx
mov rcx, qword [rsp + 0x38]
call sub.msvcrt.dll_free
mov eax, ebx
jmp 0x47e0a9
mov rcx, qword [rsp + 0x38]
call sub.msvcrt.dll_free
mov eax, 0xffffffff
add rsp, 0x58
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x47e73c
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rsi, rcx
mov ecx, reloc.COMCTL32.dll_InitCommonControls
mov rbx, rdx
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x12
mov di, ax
shr edi, 0xf
and dil, 1
call qword [sym.imp.USER32.dll_GetKeyState]
mov r11w, ax
shr r11d, 0xf
test r11b, 1
jne 0x47e7f6
movzx ecx, word [rbx + 0x18]
xor edx, edx
cmp dil, dl
je 0x47e7c6
cmp cx, 0x41
je 0x47e7cc
movzx eax, cx
cmp eax, 0x20
je 0x47e7ae
cmp eax, 0x6a
jle 0x47e7f6
cmp eax, 0x6d
jle 0x47e7ae
cmp eax, 0x6f
je 0x47e7ae
cmp eax, 0xbb
je 0x47e7ae
cmp eax, 0xbd
jne 0x47e7f6
cmp dil, dl
jne 0x47e7f6
cmp cx, 0x20
mov rcx, rsi
setne dl
call fcn.0047e674
mov al, 1
jmp 0x47e7f8
cmp cx, 0x6a
jne 0x47e789
mov ecx, 2
lea r9, [rsp + 0x20]
mov edx, 0x102b
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x2c], ecx
mov rcx, qword [rsi + 0x50]
mov r8, 0xffffffffffffffff
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x47e7c2
xor al, al
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret

Function at 0x485510
Capabilities:
Check os version

Disassembly:
sub rsp, 0x148
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x485547
cmp dword [rsp + 0x24], 6
jne 0x485547
cmp dword [rsp + 0x28], 0
je 0x485570
lea rcx, [0x00487b68]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.SetDefaultDllDirectories
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x485570
mov ecx, 0xc00
call rax
add rsp, 0x148
ret
Function at 0x4858b0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x40]
mov r9, r8
mov rbx, rcx
mov r8, rdx
mov qword [rsp + 0x28], rax
xor ecx, ecx
xor edx, edx
mov dword [rsp + 0x20], 0
call qword [sym.imp.msvcrt.dll__beginthreadex]
test rax, rax
mov qword [rbx], rax
je 0x4858eb
xor eax, eax
add rsp, 0x30
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 1
test eax, eax
cmovne ecx, eax
mov eax, ecx
add rsp, 0x30
pop rbx
ret

Function at 0x4859c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x198
mov rax, qword [0x004bb100]
mov qword [rsp + 0x150], rax
mov rax, qword [0x004bbdb0]
mov qword [r11 - 0x10], rbp
mov qword [r11 - 0x18], rsi
test rax, rax
mov qword [r11 - 0x20], rdi
mov qword [r11 - 0x28], r12
mov qword [r11 - 0x30], r13
mov rdi, r9
mov esi, r8d
mov r12, rdx
mov rbp, rcx
mov r13d, 1
jne 0x485ad6
cmp dword [0x004bbda8], eax
jne 0x485ad6
lea rax, [rsp + 0x38]
mov qword [r11 - 8], rbx
lea rdx, str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x20], rax
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x485aa9
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea rdx, [0x0048856a]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x30], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
test eax, eax
cmove ebx, r13d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x485aa9
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x004bbdb0], rax
jmp 0x485ab0
mov rax, qword [0x004bbdb0]
test rax, rax
mov rbx, qword [rsp + 0x190]
jne 0x485ad6
lea rcx, str.hhctrl.ocx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov qword [0x004bbdb0], rax
je 0x485afe
mov r10, qword [0x004bbda0]
test r10, r10
jne 0x485b09
lea edx, [r10 + 0xf]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov r10, rax
mov qword [0x004bbda0], rax
jne 0x485b09
mov dword [0x004bbda8], r13d
xor eax, eax
jmp 0x485b18
mov r9, rdi
mov r8d, esi
mov rdx, r12
mov rcx, rbp
call r10
mov r13, qword [rsp + 0x168]
mov r12, qword [rsp + 0x170]
mov rdi, qword [rsp + 0x178]
mov rsi, qword [rsp + 0x180]
mov rbp, qword [rsp + 0x188]
mov rcx, qword [rsp + 0x150]
call fcn.00486880
add rsp, 0x198
ret
Function at 0x4863c0
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
sub rsp, 0xc8
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
nop
cmp word [0x00400000], 0x5a4d
je 0x4863fd
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
lea rdi, [0x00400000]
jmp 0x48648b
movsxd rax, dword [0x0040003c]
lea rdi, [0x00400000]
add rax, rdi
cmp dword [rax], 0x4550
je 0x486421
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x48648b
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x486468
cmp ecx, 0x20b
je 0x486440
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x48648b
cmp dword [rax + 0x84], 0xe
ja 0x486454
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x48648b
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
jmp 0x48648b
cmp dword [rax + 0x74], 0xe
ja 0x486479
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x48648b
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
mov ecx, 2
call qword [sym.imp.msvcrt.dll___set_app_type]
mov qword [0x004bc360], 0xffffffffffffffff
mov qword [0x004bc368], 0xffffffffffffffff
mov rcx, qword [sym.imp.msvcrt.dll__fmode]
mov eax, dword [0x004bbde4]
mov dword [rcx], eax
mov rcx, qword [sym.imp.msvcrt.dll__commode]
mov eax, dword [0x004bbde0]
mov dword [rcx], eax
call fcn.00486670
cmp dword [0x004bb0f0], 0
jne 0x4864e5
lea rcx, [fcn.00486670]
call qword [sym.imp.msvcrt.dll___setusermatherr]
lea rdx, [0x004879e8]
lea rcx, [0x004879e0]
call sub.msvcrt.dll__initterm
mov r11d, dword [0x004bbddc]
mov dword [rsp + 0xd8], r11d
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x004bbdd8]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x3c]
call qword [sym.imp.msvcrt.dll___getmainargs]
lea rdx, [0x004879d8]
lea rcx, [0x00487930]
call fcn.00564000
mov r11, qword [sym.imp.msvcrt.dll__acmdln]
mov r8, qword [r11]
mov qword [rsp + 0x30], r8
cmp byte [r8], 0x22
jne 0x486586
nop
nop
inc r8
mov qword [rsp + 0x30], r8
movzx eax, byte [r8]
test al, al
je 0x486576
cmp al, 0x22
je 0x486576
jmp 0x486560
cmp byte [r8], 0x22
jne 0x486596
inc r8
mov qword [rsp + 0x30], r8
jmp 0x486596
cmp byte [r8], 0x20
jbe 0x486596
inc r8
mov qword [rsp + 0x30], r8
jmp 0x486586
movzx eax, byte [r8]
test al, al
je 0x4865ac
cmp al, 0x20
ja 0x4865ac
inc r8
mov qword [rsp + 0x30], r8
jmp 0x486596
test byte [rsp + 0x8c], 1
je 0x4865c1
movzx r9d, word [rsp + 0x90]
jmp 0x4865c7
mov r9d, 0xa
xor edx, edx
mov rcx, rdi
call fcn.0044a454
mov edi, eax
mov dword [rsp + 0x38], eax
test ebx, ebx
jne 0x4865e3
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
call qword [sym.imp.msvcrt.dll__cexit]
jmp 0x486607
mov eax, edi
jmp 0x486610
mov rbx, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xe8]
add rsp, 0xc8
ret
Function at 0x14058e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14058e1df
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 0x14058e089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14058e06f
add dl, dl
jne 0x14058e096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14058e0f6
xor eax, eax
add dl, dl
jne 0x14058e0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14058e1ad
add dl, dl
jne 0x14058e0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14058e0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14058e0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14058e0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14058e0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14058e07e
mov eax, 1
add dl, dl
jne 0x14058e106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14058e113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14058e0fb
sub eax, ebx
mov ebx, 1
jne 0x14058e14c
mov ecx, 1
add dl, dl
jne 0x14058e12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14058e13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14058e123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14058e07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14058e168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14058e175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14058e15d
cmp eax, 0x7d00
jae 0x14058e19b
cmp eax, 0x500
jb 0x14058e196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14058e07e
cmp eax, 0x7f
ja 0x14058e19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14058e07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14058e1d2
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 0x14058e07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20