joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48e380
Capabilities:
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
push 0x56f7e1
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x660038]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x660038]
xor eax, esp
push eax
lea eax, [esp + 0x150]
mov dword fs:[0], eax
mov eax, dword [esp + 0x160]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x168]
mov ebp, dword [eax]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x164]
mov edi, ecx
test ax, ax
je 0x48e415
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
movzx eax, ax
mov edi, eax
sar ax, 8
and edi, 0xff
test al, 1
je 0x48e401
or ebp, 0x8000000
test al, 2
je 0x48e40b
or ebp, 0x4000000
test al, 4
je 0x48e415
or ebp, 0x10000000
push 0x100
lea ecx, [esp + 0x50]
push 0
push ecx
call sub.MSVCR90.dll_memset
mov ebx, dword [esp + 0x178]
add esp, 0xc
shr ebx, 0x19
and ebx, 0xffffff01
push ebx
push 1
xor ecx, ecx
mov eax, edi
lea esi, [esp + 0x40]
mov byte [esp + edi + 0x54], 0x80
call fcn.004a9b60
mov dword [esp + 0x158], 0
mov ecx, esi
call fcn.004a9ce0
mov dl, 0x81
test ebp, 0x8000000
je 0x48e475
or byte [esp + 0x5c], dl
push 1
call fcn.004a9d10
test ebp, 0x4000000
je 0x48e48c
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x61], dl
call fcn.004a9d00
test ebp, 0x10000000
je 0x48e4a3
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x62], dl
call fcn.004a9cf0
lea ecx, [esp + 0x18]
call fcn.004949f0
mov byte [esp + 0x158], 1
push 0
push 5
mov eax, 5
lea ecx, [esp + 0x20]
call fcn.00494be0
push eax
lea edx, [esp + 0x58]
push edx
push 0
push edi
call dword [sym.imp.USER32.dll_ToUnicode]
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.00495310
test edi, edi
jle 0x48e4ed
mov eax, dword [esp + 0x18]
movzx eax, word [eax]
jmp 0x48e4f4
mov eax, dword [esp + 0x164]
push ebx
movzx ecx, ax
push 1
xor eax, eax
lea esi, [esp + 0x2c]
call fcn.004a9b60
mov byte [esp + 0x158], 2
mov ecx, esi
call fcn.004a9ce0
mov ebp, dword [esp + 0x20]
mov edx, dword [ebp]
test edx, 0x8000000
je 0x48e52a
push 1
call fcn.004a9d10
test edx, 0x4000000
je 0x48e53d
push 1
lea ecx, [esp + 0x28]
call fcn.004a9d00
test edx, 0x10000000
je 0x48e550
push 1
lea ecx, [esp + 0x28]
call fcn.004a9cf0
mov ebx, dword [esp + 0x170]
test ebx, ebx
jle 0x48e596
mov esi, dword [esp + 0x1c]
push 1
lea ecx, [esp + 0x3c]
push ecx
mov eax, esi
call fcn.00457610
test edi, edi
jle 0x48e584
lea ecx, [esp + 0x24]
call fcn.004a9d20
test al, al
jne 0x48e584
push esi
call fcn.004579f0
push 0
lea eax, [esp + 0x3c]
mov ecx, esi
call fcn.00457c70
sub ebx, 1
jne 0x48e55b
mov edx, dword [esp + 0x174]
mov dword [ebp], edx
mov byte [esp + 0x158], 1
lea ecx, [esp + 0x24]
call fcn.004a9bd0
mov byte [esp + 0x158], 0
lea ecx, [esp + 0x18]
call fcn.00494b70
mov dword [esp + 0x158], 0xffffffff
mov ecx, dword [esp + 0x150]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.0054904e
add esp, 0x148
ret 0x18
Function at 0x48ec00
Capabilities:
Open clipboard

Disassembly:
push 0xffffffffffffffff
push 0x54c7b1
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push ebp
push esi
push edi
mov eax, dword [0x660038]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edx
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0xe1000017
call ebx
mov eax, dword [esi + 0x20]
mov ebp, dword [sym.imp.USER32.dll_OpenClipboard]
push eax
call ebp
test eax, eax
je 0x48ec64
mov al, 1
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe1000017
jne 0x48ec8a
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0xe1000017
call ebx
mov ecx, dword [esi + 0x20]
push ecx
call ebp
test eax, eax
jne 0x48ec4b
call dword [sym.imp.USER32.dll_GetOpenClipboardWindow]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call ebp
cmp eax, 0xe1000017
jne 0x48ed77
xor ebx, ebx
cmp esi, ebx
je 0x48ed77
lea edx, [esp + 0x18]
push edx
push esi
mov dword [esp + 0x20], ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 2
push esi
mov ebp, eax
call dword [sym.imp.USER32.dll_GetAncestor]
push 0x60c1d0
lea ecx, [esp + 0x18]
mov esi, eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov dword [esp + 0x8c], ebx
cmp esi, ebx
je 0x48ecf8
push esi
call sub.mfc90u.dll_CWnd::FromHandle
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call sub.mfc90u.dll_CWnd::GetWindowTextW
mov edx, dword [0x676f64]
push edx
push 0xe1000013
lea eax, [esp + 0x24]
push eax
call fcn.00497730
mov byte [esp + 0x8c], 1
lea ecx, [esp + 0x1c]
push ecx
call fcn.00497a80
mov byte [esp + 0x8c], bl
lea ecx, [esp + 0x1c]
call fcn.004978f0
mov edx, dword [edi]
mov eax, dword [esp + 0x14]
mov edx, dword [edx + 0x28]
push eax
mov ecx, edi
call edx
mov ecx, dword [esp + 0x18]
mov eax, dword [edi]
mov edx, dword [eax + 0x30]
push ecx
push str._1_d_
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x30]
push ebp
push str._1_d_
mov ecx, edi
call edx
mov dword [esp + 0x8c], 0xffffffff
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
jmp 0x48edf5
mov eax, dword [0x676f64]
push eax
call ebp
push eax
lea ecx, [esp + 0x58]
push ecx
call fcn.00497730
mov ebx, 2
mov dword [esp + 0x8c], ebx
mov edx, dword [0x676f64]
push edx
push 0xe1000012
lea eax, [esp + 0x24]
push eax
call fcn.00497730
mov byte [esp + 0x8c], 3
lea ecx, [esp + 0x1c]
push ecx
call fcn.00497a80
mov byte [esp + 0x8c], bl
lea ecx, [esp + 0x1c]
call fcn.004978f0
mov esi, dword [edi]
lea ecx, [esp + 0x50]
call fcn.00497ce0
mov edx, dword [esi + 0x28]
push eax
mov ecx, edi
call edx
mov dword [esp + 0x8c], 0xffffffff
lea ecx, [esp + 0x50]
call fcn.004978f0
xor al, al
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret
Function at 0x492290
Capabilities:
Write clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x54e920
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push edi
mov eax, dword [0x660038]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0048ec00
test al, al
jne 0x4922d9
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x74
ret
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0xe1000018
call ebx
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x49238e
mov eax, dword [0x676f64]
push eax
push 0xe1000015
lea ecx, [esp + 0x14]
push ecx
call fcn.00497730
mov dword [esp + 0x7c], 0
lea edx, [esp + 0xc]
push edx
call fcn.00497a80
mov dword [esp + 0x7c], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.004978f0
mov eax, dword [0x676f64]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.00497730
mov dword [esp + 0x7c], 1
mov ebx, dword [edi]
lea ecx, [esp + 0x40]
call fcn.00497ce0
mov edx, dword [ebx + 0x28]
push eax
mov ecx, edi
call edx
call dword [sym.imp.USER32.dll_CloseClipboard]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esp + 0x7c], 0xffffffff
lea ecx, [esp + 0x40]
call fcn.004978f0
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x74
ret
push 0xe1000018
call ebx
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x492428
mov eax, dword [0x676f64]
push eax
push 0xe1000014
lea ecx, [esp + 0x48]
push ecx
call fcn.00497730
mov dword [esp + 0x7c], 2
lea edx, [esp + 0x40]
push edx
call fcn.00497a80
mov dword [esp + 0x7c], 0xffffffff
lea ecx, [esp + 0x40]
call fcn.004978f0
mov eax, dword [0x676f64]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00497730
mov dword [esp + 0x7c], 3
mov ebx, dword [edi]
lea ecx, [esp + 0xc]
call fcn.00497ce0
mov edx, dword [ebx + 0x28]
push eax
mov ecx, edi
call edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esp + 0x7c], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.004978f0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x74
ret
Function at 0x4926d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54c707
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x660038]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
push eax
push 0x60ca60
push 0x1244
push 0x60cbc4
push 0
push 0x60cbcc
push ecx
push 0
push 1
mov ecx, esi
call sub.CommonUI66U.dll_public:_void___thiscall_VFileDialog::constructor_int__wchar_t_const___wchar_t_const___wchar_t_const___wchar_t_const___wchar_t_const___unsigned_long_int__wchar_t_const___class_CWnd__
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x24]
lea ecx, [esi + 0x102b4]
mov dword [esi], vtable.TransferFileListDialog.0
mov dword [esi + 0x102b0], edx
call dword [0x5734e4]
mov byte [esp + 0x14], 1
mov ecx, dword [esp + 0x2c]
mov al, byte [esp + 0x28]
mov dword [esi + 0x102c0], ecx
mov ecx, esi
mov byte [esi + 0x102bc], al
mov byte [esi + 0x102c4], 0
call sub.mfc90u.dll_CFileDialog::GetOFN
xor edx, edx
mov dword [eax + 0x48], 0x60b
lea edi, [esi + 0x330]
mov ecx, esi
mov word [edi], dx
call sub.mfc90u.dll_CFileDialog::GetOFN
mov ecx, esi
mov dword [eax + 0x1c], edi
call sub.mfc90u.dll_CFileDialog::GetOFN
mov ecx, esi
mov dword [eax + 0x20], 0x7fc0
call sub.mfc90u.dll_CFileDialog::GetOFN
mov ecx, dword [esp + 0x20]
mov dword [eax + 0x2c], ecx
mov ecx, esi
call sub.mfc90u.dll_CFileDialog::GetOFN
mov dword [eax], 0x4c
mov eax, dword [0x677d34]
add eax, 0xec0
call fcn.00403c30
mov dword [esi + 0x102b8], eax
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 0x18

Function at 0x4977b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54c63b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x660038]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
lea eax, [esi + 8]
xor ecx, ecx
mov dword [esi], vtable.VReportMessageParams.0
mov dword [esi + 4], 0xffffffff
call fcn.00497fa0
xor eax, eax
mov dword [esp + 0x14], eax
mov ecx, dword [0x676f64]
mov dword [esi + 0x20], ecx
mov ecx, esi
mov dword [esi + 0x1c], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
call fcn.00497990
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x4997d0
Capabilities:
Read file on windows

Disassembly:
mov edx, dword [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [eax + 4]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
sbb eax, eax
neg eax
ret 8
Function at 0x4997f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
mov ecx, dword [esp + 0x28]
xor eax, eax
push ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
lea edx, [esp + 4]
push edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
push esi
push eax
mov eax, dword [edx + 4]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne bl
test bl, bl
jne 0x49985b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
jne 0x49985b
mov al, 1
mov dword [esi], 0
pop ebx
add esp, 0x14
ret 0x14
mov al, bl
pop ebx
add esp, 0x14
ret 0x14

Function at 0x499900
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [eax + 4]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
neg eax
ret 8

Function at 0x499920
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
mov ecx, dword [esp + 0x28]
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
lea edx, [esp]
push edx
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, dword [eax + 4]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
neg eax
add esp, 0x14
ret 0x18

Function at 0x499980
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push edi
call edx
push 0
mov edi, eax
mov eax, dword [esi]
push 0
mov ebp, edx
mov edx, dword [eax + 0xc]
push 0
mov ecx, esi
call edx
test al, al
jne 0x4999b2
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov edx, dword [esi]
push 0
test eax, eax
mov eax, dword [edx + 0xc]
push ebp
push edi
mov ecx, esi
setne bl
call eax
test al, al
je 0x4999e3
test bl, bl
je 0x4999e3
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x499b90
Capabilities:
Read file via mapping

Disassembly:
push esi
push 3
mov esi, eax
mov eax, dword [esi]
mov edx, dword [eax + 4]
push closesocket
push ecx
mov ecx, esi
call edx
test al, al
jne 0x499baa
pop esi
ret
push ebx
push edi
mov ecx, esi
mov bl, 1
xor edi, edi
call fcn.00499b30
or eax, edx
je 0x499bea
mov eax, dword [esi + 4]
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
test edi, edi
je 0x499be3
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x18], eax
cmp dword [esi + 0x18], 0
setne bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test edi, edi
je 0x499bfd
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov al, bl
pop ebx
pop esi
ret
Function at 0x49edb0
Capabilities:
Get hostname

Disassembly:
push 0xffffffffffffffff
push 0x5563d7
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x660038]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0xc], ebx
test byte [0x67bf34], 1
jne 0x49ee12
or dword [0x67bf34], 1
mov dword [esp + 0x1c], 1
mov ecx, 0x67bf30
call fcn.004949f0
push 0x570e80
call fcn.0054927a
add esp, 4
mov byte [esp + 0x1c], bl
mov eax, 0x67bf30
call fcn.00495350
test al, al
jne 0x49ee2c
mov eax, 0x67bf30
call fcn.00494a10
jmp 0x49ee62
lea ecx, [esp + 0x10]
mov eax, 0x10
push ecx
mov ecx, 0x67bf30
mov dword [esp + 0x14], eax
call fcn.00494be0
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
or eax, 0xffffffff
mov ecx, 0x67bf30
call fcn.00495310
mov eax, 0x67bf30
call fcn.00494a10
mov dword [esp + 0x1c], ebx
mov dword [esp + 0xc], 1
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret

Function at 0x49f860
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x556389
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x660038]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, dword [esp + 0x30]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x10], 0
call fcn.0049f4f0
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x10]
push ecx
push edx
push esi
call fcn.0049f8d0
mov dword [esp + 0x28], 0
mov dword [esp + 0xc], 1
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret 8
Function at 0x4a9720
Capabilities:
Get hostname

Disassembly:
push 0xffffffffffffffff
push 0x554f49
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x660038]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
xor edi, edi
mov dword [esp + 0x1c], edi
mov ecx, esi
mov dword [esp + 0x10], edi
call fcn.004949f0
mov dword [esp + 0x1c], edi
lea eax, [esp + 0xc]
push eax
push edi
mov dword [esp + 0x14], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
push 3
mov dword [esp + 0x1c], 1
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x4a97a6
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00494be0
push eax
push 3
call edi
or eax, 0xffffffff
mov ecx, esi
call fcn.00495310
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret

Function at 0x4a97c0
Capabilities:
Get session user name

Disassembly:
push 0xffffffffffffffff
push 0x5560f9
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x660038]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x24], ebp
lea eax, [esp + 0x14]
mov dword [esp + 0x18], ebp
mov ebx, dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push eax
push ebp
mov dword [esp + 0x1c], ebp
call ebx
push 1
xor edi, edi
xor eax, eax
call fcn.00494ae0
mov dword [esp + 0x24], ebp
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
mov dword [esp + 0x1c], 1
call fcn.00494be0
push eax
call ebx
or eax, 0xffffffff
mov ecx, esi
call fcn.00495310
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4a9a30
Capabilities:
Get common file path

Disassembly:
sub esp, 0x23c
mov eax, dword [0x660038]
xor eax, esp
mov dword [esp + 0x234], eax
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
push eax
xor ebp, ebp
mov esi, ecx
push ebp
push esi
mov edi, edx
mov dword [esp + 0x1c], ebp
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x4a9a67
mov dword [esp + 0x10], ebp
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x38]
mov eax, edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], str.Select_a_folder_to_be_used_as_the_download_directory:
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 0x4a99f0
call fcn.00407eb0
mov dword [esp + 0x30], eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x38], 0xffffffff
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov ebx, eax
cmp ebx, ebp
je 0x4a9af5
lea ecx, [esp + 0x38]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x4a9ada
lea edx, [esp + 0x38]
push edx
mov eax, edi
call fcn.00494c30
mov esi, 1
jmp 0x4a9af7
push 0x30
push ebp
push str.Failed_to_retrieve_a_valid_path.
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
call fcn.00495360
mov esi, 1
jmp 0x4a9af7
xor esi, esi
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], ebp
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x4a9b40
mov ecx, dword [esp + 0x10]
cmp ecx, ebp
je 0x4a9b23
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x14]
call eax
mov dword [esp + 0x10], ebp
cmp ebx, ebp
je 0x4a9b34
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push ebx
push eax
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esp + 0x244]
cmp esi, ebp
pop edi
pop esi
pop ebp
setne al
pop ebx
xor ecx, esp
call fcn.0054904e
add esp, 0x23c
ret

Function at 0x4a9b60
Capabilities:
Log keystrokes via polling

Disassembly:
mov edx, dword [esp + 4]
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
mov dword [esi], vtable.VKeyInfoWin32.0
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
call edi
push 0x11
shr eax, 0xf
and al, 1
mov byte [esi + 0x10], al
call edi
push 0x10
shr eax, 0xf
and al, 1
mov byte [esi + 0x11], al
call edi
pop edi
shr eax, 0xf
and al, 1
mov byte [esi + 0x12], al
mov al, byte [esp + 8]
mov byte [esi + 0x13], al
mov eax, esi
ret 8
Function at 0x4aa590
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54e783
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x660038]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
lea eax, [esi + 4]
xor ebx, ebx
push eax
mov dword [esi], vtable.VUnknown_class_IPacket_.0
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [esp + 0x14], ebx
lea eax, [esi + 8]
mov dword [esi], vtable.VPacket.0
call fcn.004a5090
mov al, 1
mov byte [esp + 0x14], al
mov byte [esi + 0x1c], al
mov eax, 0xffffffff
mov byte [esi + 0x1d], bl
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esp + 0x14], eax
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x4adc40
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x54c0ac
mov eax, dword fs:[0]
push eax
sub esp, 0x1cc
mov eax, dword [0x660038]
xor eax, esp
mov dword [esp + 0x1c4], eax
push ebx
push esi
push edi
mov eax, dword [0x660038]
xor eax, esp
push eax
lea eax, [esp + 0x1dc]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x1ec]
lea eax, [esp + 0x44]
push eax
push 2
mov edi, ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov esi, eax
test esi, esi
je 0x4addbf
cmp esi, 0x276b
jne 0x4adce4
mov ecx, dword [0x676f64]
push ecx
push 0xe1040002
lea edx, [esp + 0x18]
push edx
call fcn.00497730
mov dword [esp + 0x1e4], 0
push eax
call fcn.00497a80
mov dword [esp + 0x1e4], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.004978f0
xor al, al
jmp 0x4ade3e
cmp esi, 0x276c
je 0x4add44
cmp esi, 0x2726
je 0x4add44
mov eax, dword [0x676f64]
push eax
push 0xe1040019
lea ecx, [esp + 0x18]
push ecx
call fcn.00497730
mov dword [esp + 0x1e4], 2
push eax
call fcn.00497a80
mov dword [esp + 0x1e4], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.004978f0
mov edx, dword [edi]
mov eax, dword [edx + 0x30]
push esi
push str._1_d_
mov ecx, edi
call eax
xor al, al
jmp 0x4ade3e
mov ecx, dword [0x676f64]
push ecx
push 0xe1040003
lea edx, [esp + 0x18]
push edx
call fcn.00497730
mov dword [esp + 0x1e4], 1
push eax
call fcn.00497a80
mov dword [esp + 0x1e4], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.004978f0
mov eax, dword [edi]
mov edx, dword [eax + 0x30]
push esi
push str._1_d_
mov ecx, edi
call edx
movzx ecx, byte [esp + 0x44]
mov eax, dword [edi]
mov edx, dword [eax + 0x30]
push ecx
push str._1_d_
mov ecx, edi
call edx
mov ecx, dword [esp + 0x44]
mov eax, dword [edi]
mov eax, dword [eax + 0x30]
shr ecx, 8
movzx edx, cl
push edx
push str._1_d_
mov ecx, edi
call eax
xor al, al
jmp 0x4ade3e
cmp word [esp + 0x44], 2
je 0x4ade39
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [0x676f64]
push ecx
push 0xe104001a
lea edx, [esp + 0x18]
push edx
call fcn.00497730
mov dword [esp + 0x1e4], 3
push eax
call fcn.00497a80
mov dword [esp + 0x1e4], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.004978f0
movzx ecx, byte [esp + 0x44]
mov eax, dword [edi]
mov edx, dword [eax + 0x30]
push ecx
push str._1_d_
mov ecx, edi
call edx
mov ecx, dword [esp + 0x44]
mov eax, dword [edi]
mov eax, dword [eax + 0x30]
shr ecx, 8
movzx edx, cl
push edx
push str._1_d_
mov ecx, edi
call eax
xor al, al
jmp 0x4ade3e
mov byte [ebx], 1
mov al, 1
mov ecx, dword [esp + 0x1dc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c4]
xor ecx, esp
call fcn.0054904e
add esp, 0x1d8
ret 4