joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002300
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400043d0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002320
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002328
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002320
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002370
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002367
test rcx, rcx
je 0x140002320
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002358
xor eax, eax
ret

Function at 0x140002380
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043d0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000239f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400023a8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
mov rdx, qword [0x1400043d0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400023e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400023e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400023e0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400023e0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002434
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002440
add rdx, 0x28
cmp r9, rdx
jne 0x140002420
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x1400043d0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002472
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002480
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002472
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002472
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002472
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400024d5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400024e8
add rdx, 0x28
cmp rdx, r10
jne 0x1400024c0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400024f7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002507
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400024de
test ecx, ecx
jg 0x1400024f0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140003840
Capabilities:
Parse pe header

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

Disassembly:
test rcx, rcx
je 0x10000c4b8
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rdi, rcx
cmp qword [rcx + 0x40], 0
je 0x10000c4a8
lea rdx, [0x1000cdcf8]
lea rcx, [rax + 0x10]
call sub.MFC42u.dll_CControlBar::CControlBar
nop
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov r12d, 3
mov dword [rsp + 0x20], r12d
xor r9d, r9d
mov r8d, r12d
mov edx, 0x80000000
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x100034dd2
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
setne bl
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x100034dd2
cmp dword [rsp + 0x74], 0
jne 0x100034dd2
mov edx, r12d
mov rcx, rdi
call fcn.100002984
test eax, eax
je 0x10000c454
mov r9, qword [rdi + 0x648]
mov r8, r12
mov edx, 0x40f
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov r9d, 1
mov r8d, dword [rsp + 0x70]
mov edx, 0xc3cf
lea rcx, [rsp + 0x80]
call fcn.10000c980
nop
mov r11, qword [rax]
mov edx, r12d
mov rcx, rdi
call fcn.100002984
mov r9d, eax
mov r8, r11
mov rcx, rdi
call sub.MFC42u.dll_CRecordset::SetParamNull
nop
lea rcx, [rsp + 0x80]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
jmp 0x10000c49e
lea rcx, [rsp + 0x78]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r12
pop rdi
pop rsi
ret
mov edx, r12d
mov rcx, rdi
call fcn.100002984
test eax, eax
je 0x10003c7c9
mov r9d, 1
lea r8, [0x1000a69fc]
mov rcx, rdi
call sub.MFC42u.dll_CRecordset::SetParamNull
xor r9d, r9d
mov r8, r12
mov edx, 0x40f
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x10000c49e
xor r9d, r9d
lea r8, [0x1000a69fc]
mov rcx, rdi
call sub.MFC42u.dll_CRecordset::SetParamNull
nop
jmp 0x10000c49e

Function at 0x10000cb80
Capabilities:
Clear file content

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
mov esi, r8d
mov rbx, rdx
mov rdi, rcx
cmp dword [rcx + 0x1d4], 0
je 0x10000cbb5
mov rcx, qword [rdx + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rax, qword [rbx]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [rax + 0x40]
nop
mov r8d, esi
mov rdx, rbx
mov rcx, rdi
call sub.MFC42u.dll_CDataBoundProperty::SetClientSite
mov ecx, dword [rdi + 0x1dc]
test ecx, ecx
je 0x10000cbef
xor r9d, r9d
mov r8, qword [rsp + 0x40]
lea edx, [r9 + 5]
call qword [sym.imp.SHELL32.dll_SHChangeNotify]
nop
lea rcx, [rsp + 0x40]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x10001b680
Capabilities:
Get geographical location

Disassembly:
push rbx
sub rsp, 0x250
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x1000cc510]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov ebx, 0xac
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0xe0]
call sub.msvcrt.dll_memset
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x190]
call sub.msvcrt.dll_memset
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll_memset
mov ebx, 0x56
mov r9d, ebx
lea r8, [rsp + 0xe0]
mov edx, 0x1001
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10001b7bf
mov r9d, ebx
lea r8, [rsp + 0x190]
mov edx, 0x1002
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10001b7bf
mov r9d, ebx
lea r8, [rsp + 0x30]
mov edx, 0x1004
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100043df5
lea rcx, [rsp + 0x20]
call fcn.100001194
nop
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x20]
call sub.MFC42u.dll_AfxDeleteObject
lea rdx, [0x1000ac4d4]
lea rcx, [rsp + 0x20]
call sub.MFC42u.dll_Ordinal_1287
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0x20]
call sub.MFC42u.dll_Ordinal_1287
lea rdx, [0x1000ac470]
lea rcx, [rsp + 0x20]
call sub.MFC42u.dll_Ordinal_1287
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call sub.MFC42u.dll_Ordinal_1287
mov rdx, qword [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__wsetlocale]
nop
lea rcx, [rsp + 0x20]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1000010a0
add rsp, 0x250
pop rbx
ret
mov r9d, ebx
lea r8, [rsp + 0x30]
lea edx, [rbx - 0x4b]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x10001b747
jmp 0x10001b7bf

Function at 0x100027b40
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100027b87
cmp rcx, 0xffffffffffffffff
je 0x100027b87
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x100027b85
cmp dword [rcx + 0x3c], edx
jl 0x100027b85
cmp dword [rcx + 0x3c], 0x10000000
jae 0x100027b85
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 0x100027b87
mov rax, rdx
add rsp, 0x18
ret
Function at 0x100029784
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov ecx, 0x10
mov rsi, r8
mov rdi, rdx
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x10004d001
mov byte [rbx + 0x98], 0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp byte [rbx + 0x98], 0
jne 0x10004d091
mov rax, qword [rsi]
mov rcx, rax
sub eax, dword [rdi]
shr rcx, 0x20
sub ecx, dword [rdi + 4]
movd xmm1, eax
movd xmm0, ecx
cvtdq2pd xmm1, xmm1
cvtdq2pd xmm0, xmm0
call sub.msvcrt.dll_atan2
mov r9d, 0xb60b60b7
mov eax, r9d
mulsd xmm0, qword [0x1000aed50]
mulsd xmm0, qword [0x1000aed48]
addsd xmm0, qword [0x1000aed40]
cvttsd2si r8d, xmm0
imul r8d
mov eax, r9d
add edx, r8d
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul edx, edx, 0xb4
sub r8d, edx
add r8d, 0x16
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x2d
mov dword [rbx + 0x9c], edx
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
call fcn.10007cd70
mov byte [rbx + 0x98], 1
jmp 0x1000297bc
Function at 0x100029d04
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x490
mov rax, qword [0x1000cc510]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rax, qword [rsp + 0x508]
mov rbp, qword [rsp + 0x4f8]
mov r15, qword [rsp + 0x4f0]
mov r14, qword [rsp + 0x500]
mov rsi, rdx
mov r12, rcx
lea rdx, [rsp + 0x270]
mov ecx, 0x104
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], rax
mov r13, r9
mov rdi, r8
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
xor r8d, r8d
cmp eax, r8d
je 0x100046132
lea r8, [rsp + 0x270]
lea rdx, [rsp + 0x60]
mov rcx, r12
call fcn.100029f08
xor r8d, r8d
mov ebx, eax
jmp 0x100029d9e
cmp dword [0x1000cdd28], r8d
jne 0x100029dc4
lea rcx, [rsp + 0x60]
mov r9, r15
mov r8, r13
mov rdx, rdi
mov qword [rsp + 0x20], rbp
call fcn.100029fcc
xor r8d, r8d
mov ebx, eax
cmp ebx, r8d
je 0x100029ebb
mov ebx, 1
cmp rsi, r8
je 0x10003c417
cmp word [rsi], r8w
je 0x10003c417
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor r8d, r8d
mov ebp, ebx
cmp eax, 0xffffffff
je 0x10003c417
cmp ebp, r8d
je 0x10003c4ad
lea rdx, [rsp + 0x60]
mov r8, r13
mov rcx, rsi
call fcn.10002ab8c
xor r8d, r8d
cmp eax, r8d
je 0x10003c4ad
mov rdi, qword [rsp + 0x40]
cmp ebx, r8d
je 0x100046179
lea rcx, [rsp + 0x60]
mov r9d, ebp
mov r8, rsi
mov rdx, r12
call fcn.10002a124
mov ebx, eax
test eax, eax
je 0x100046179
movdqu xmm0, xmmword [0x1000a9d70]
mov r9, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x64
lea rdx, [rsp + 0x50]
movdqu xmmword [rsp + 0x50], xmm0
mov r8, r15
mov rcx, r12
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r14
call fcn.10000e7a4
mov rcx, r13
mov rdx, rax
call fcn.10000eb20
lea rcx, [0x1000cdcf8]
mov rdx, r12
movdqu xmm0, xmmword [rsp + 0x50]
mov dword [r13 + 0x18], 4
movdqu xmmword [r13 + 0x1c], xmm0
call sub.MFC42u.dll_AfxDeleteObject
jmp 0x100029ebb
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1000010a0
mov rbx, qword [rsp + 0x4e0]
add rsp, 0x490
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ebp, r8d
jmp 0x100029dfc
mov rcx, qword [rdi]
lea rax, [0x1000a7510]
cmp rcx, qword [rax]
je 0x10004613a
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, r8d
je 0x100046150
mov rdi, qword [rsp + 0x40]
lea rcx, [rsp + 0x60]
mov r8d, 0x64
mov rdx, rdi
call fcn.10003c500
xor r8d, r8d
mov ebx, eax
jmp 0x100029e26
mov ebx, r8d
jmp 0x100029d9e
mov rcx, qword [rdi + 8]
cmp rcx, qword [rax + 8]
jne 0x10003c4c0
mov eax, r8d
jmp 0x10003c4c5
mov rdx, qword [r14]
cmp rdx, r8
je 0x10003c4ce
lea rcx, [rsp + 0x60]
call fcn.1000712e0
xor r8d, r8d
mov ebx, eax
cmp eax, r8d
jne 0x10003c4ce
jmp 0x100029e21
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
jmp 0x100029ebb
Function at 0x10002a124
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Move file

Disassembly:
mov rax, rsp
push r13
push r14
push r15
sub rsp, 0x90
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
mov r15d, r9d
mov r13, r8
mov rsi, rdx
mov r14, rcx
test r9d, r9d
je 0x10003c41f
mov rdx, r8
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x10003c41f
lea r12d, [rax + 1]
mov edi, r12d
jmp 0x10002a17b
and dword [rsp + 0x68], 0
mov byte [rsp + 0x6c], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x58], 0
test edi, edi
je 0x10002a23c
mov byte [rsp + 0x6c], 0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x68], eax
cmp eax, 0xffffffff
je 0x10002a201
lea rcx, [rsp + 0x70]
call sub.MFC42u.dll_CGopherConnection::CGopherConnection
xor r9d, r9d
lea r8d, [r9 + 0x20]
mov rdx, r13
lea rcx, [rsp + 0x70]
call sub.MFC42u.dll_CPtrArray::RemoveAt
test eax, eax
je 0x10002a1f7
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetFileTime]
movzx ecx, byte [rsp + 0x6c]
test eax, eax
cmovne ecx, r12d
mov byte [rsp + 0x6c], cl
lea rcx, [rsp + 0x70]
call sub.MFC42u.dll_operator__
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
xor r9d, r9d
lea r8d, [r9 + 4]
mov edx, r12d
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
jne 0x1000467c3
test r15d, r15d
je 0x10002a24c
mov rdx, r14
mov rcx, r13
call fcn.10002aaa8
test edi, edi
je 0x10003c42a
mov r8d, 3
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, eax
test eax, eax
je 0x10002a2ac
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.10002a5d0
cmp qword [rsp + 0x50], 0
je 0x10002a2ac
and qword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x28], rcx
and qword [rsp + 0x20], 0
xor r9d, r9d
lea r8d, [r9 + 4]
mov edx, r12d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
jmp 0x10002a2ac
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x10002a2bd
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
jmp 0x10002a2bf
mov eax, edi
lea r11, [rsp + 0x90]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov r12, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop r13
ret
xor edi, edi
lea r12d, [rdi + 1]
jmp 0x10002a17b
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
jmp 0x10002a2ac
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1000467d3
call qword [sym.imp.KERNEL32.dll_LocalFree]
and qword [rsp + 0x58], 0
jmp 0x10002a23c
Function at 0x10002a5d0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rsi
mov rdi, rdx
mov r13, rcx
cmp byte [rcx + 0xc], 0
je 0x10002a6ab
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp eax, 0xffffffff
je 0x10002a6ab
mov ebx, dword [r13 + 8]
xor r15d, r15d
test bl, 0x10
jne 0x10003d5e6
mov r14d, 1
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x10003d601
mov r12d, ebx
xor r12d, esi
bt r12d, 0xe
jb 0x10003d620
lea rcx, [rsp + 0x50]
call sub.MFC42u.dll_CGopherConnection::CGopherConnection
nop
xor r9d, r9d
lea r8d, [r9 + 0x12]
mov rdx, rdi
lea rcx, [rsp + 0x50]
call sub.MFC42u.dll_CPtrArray::RemoveAt
xor edi, edi
cmp eax, edi
je 0x10002a6a0
cmp r15d, edi
jne 0x10002a695
xor r9d, r9d
xor r8d, r8d
mov rdx, r13
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_SetFileTime]
cmp eax, edi
je 0x10003d645
bt r12d, 0xb
jb 0x10003d664
lea rcx, [rsp + 0x50]
call sub.MFC42u.dll_operator__
nop
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
test al, 0x10
jne 0x10002a625
lea r14d, [r15 + 1]
mov r15d, r14d
and ebx, 0xffffffef
bts ebx, 7
jmp 0x10002a62b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call sub.MFC42u.dll_AfxVerifyLicFile
nop
jmp 0x10002a63e
bt ebx, 0xe
jae 0x10003d634
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_EncryptFileW]
jmp 0x10002a64f
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DecryptFileW]
nop
jmp 0x10002a64f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
cmp eax, edi
cmovle ecx, eax
call sub.MFC42u.dll_AfxVerifyLicFile
nop
jmp 0x10002a695
shr ebx, 0xb
and bx, r14w
mov word [rsp + 0xa0], bx
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
mov r9d, 2
lea r8, [rsp + 0xa0]
mov edx, 0x9c040
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop
jmp 0x10002a6a0
Function at 0x1000362ec
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov rcx, qword [0x1000cc598]
call fcn.1000034b0
xor ebp, ebp
mov dword [0x1000cc79c], ebp
mov dword [0x1000cc798], ebp
cmp qword [0x1000d05a8], rbp
jne 0x100040239
mov rdi, qword [0x1000cc528]
call qword [sym.imp.USER32.dll_GetCapture]
mov rcx, rax
call sub.MFC42u.dll_COleControl::GetBorderStyle
cmp rax, rsi
je 0x100040264
cmp dword [rdi + 0x24], ebp
jne 0x100040264
cmp dword [rdi + 0x18], ebp
jne 0x100040250
mov rax, qword [0x1000cc528]
cmp dword [rax + 0x44], 0x259
je 0x100040250
cmp dword [rax + 0x44], 0x25a
je 0x100040250
cmp dword [rax + 0x44], 0x25b
je 0x100040250
mov rax, qword [rdi]
mov edx, 5
mov rcx, rdi
call qword [rax + 0xd0]
cmp al, bpl
jne 0x100040250
mov ecx, 1
call qword [sym.imp.USER32.dll_GetKeyState]
cmp ax, bp
jge 0x1000402c2
mov dword [0x1000cc4c8], 1
call fcn.10000176c
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rsi
call fcn.100059130
mov dword [0x1000cc4c8], 1
jmp 0x1000363c0
mov rax, qword [rdi]
mov rdx, rsi
mov rcx, rdi
call qword [rax + 0x80]
jmp 0x10003639d
mov dword [rsp + 0x38], ebp
mov dword [rsp + 0x3c], ebp
mov r9, qword [rsp + 0x38]
xor r8d, r8d
mov edx, 0x400
mov rcx, rsi
call fcn.100004ee8
mov edx, 0x7f16
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
mov rcx, qword [0x1000cc528]
mov rax, qword [rcx]
call qword [rax + 0x108]
cmp eax, ebp
je 0x1000402b3
mov rcx, rsi
call fcn.100059c54
mov dword [0x1000cc4c8], 1
jmp 0x10003639d
mov ecx, 2
call qword [sym.imp.USER32.dll_GetKeyState]
cmp ax, bp
jl 0x1000363b1
jmp 0x1000363bb

Function at 0x100036a14
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ecx, 0x10
mov rbx, r8
mov rdi, rdx
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x10004d27e
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov r8d, dword [rdi]
mov eax, dword [rdi + 4]
sub eax, dword [rbx + 4]
cdq
mov ecx, eax
mov eax, r8d
sub eax, dword [rbx]
xor ecx, edx
sub ecx, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, ecx
cmovl ecx, eax
cmp dword [rbx], r8d
jge 0x10004d2aa
sub r8d, ecx
mov dword [rbx], r8d
jmp 0x10004d2b0
lea eax, [rcx + r8]
mov dword [rbx], eax
mov eax, dword [rdi + 4]
cmp dword [rbx + 4], eax
jge 0x10004d2bc
sub eax, ecx
jmp 0x10004d2be
add eax, ecx
mov dword [rbx + 4], eax
jmp 0x100036a3d
Function at 0x10005411c
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x20
xor ebx, ebx
mov rsi, rdx
lea r8, [rax + 0x10]
lea edi, [rbx + 2]
lea edx, [rbx + 0xe]
mov ecx, 0x400
mov r9d, edi
mov ebp, ebx
mov dword [rax + 0x10], 0x2e
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov r11, qword [rsi]
cmp dword [r11 - 8], ebx
je 0x1000541da
movzx edx, word [rsp + 0x48]
mov rcx, rsi
call sub.MFC42u.dll_CRichEditView::FindTextSimple
lea edx, [rbx + 1]
mov rcx, rsi
mov r12d, eax
call sub.MFC42u.dll_CDatabase::GetConnectInfo
mov rcx, rax
mov rsi, rax
call qword [sym.imp.msvcrt.dll__wtoi]
mov ebp, eax
imul ebp, ebp, 0x3e8
cmp r12d, ebx
jl 0x1000541da
lea ecx, [r12 + 1]
movsxd rdx, ecx
lea rsi, [rsi + rdx*2]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, edi
jle 0x1000541af
mov word [rsi + 4], bx
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__wtoi]
mov rcx, rsi
lea ebx, [rax + rax*4]
add ebx, ebx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, edi
jge 0x1000541da
sub edi, eax
mov ecx, edi
sub rcx, 1
lea eax, [rbx + rbx*4]
lea ebx, [rax + rax]
jne 0x1000541ce
lea eax, [rbx + rbp]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret

Function at 0x1000541f8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
add r8d, 5
mov rdi, rdx
mov eax, 0x10624dd3
mov r9d, 2
mov ecx, 0x400
mov dword [rsp + 0x50], 0x2e
mul r8d
mov ebx, edx
shr ebx, 6
mov eax, ebx
imul eax, eax, 0x3e8
sub r8d, eax
mov eax, 0xcccccccd
mul r8d
lea r8, [rsp + 0x50]
mov esi, edx
lea edx, [r9 + 0xc]
shr esi, 3
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edx, 0x18
mov rcx, rdi
call sub.MFC42u.dll_CConnectionPoint::XConnPt::GetConnectionInterface
mov r9d, ebx
mov edx, 0x18
test esi, esi
je 0x10005428d
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x28], esi
lea r8, str._u_s_02u
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.1000016a0
jmp 0x10005429c
lea r8, [0x1000adc5c]
mov rcx, rax
call fcn.1000016a0
or edx, 0xffffffff
mov rcx, rdi
call sub.MFC42u.dll_CCmdUI::SetCheck
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret