joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c1840
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x20
push esi
push edi
mov edi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [edi]
mov esi, dword [esp + 0x2c]
cmp eax, ecx
je 0x4c1866
cmp esi, dword [edi + 0x148]
je 0x4c1866
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [edi + 0x148]
cmp esi, eax
je 0x4c196b
test eax, eax
je 0x4c18da
xorps xmm0, xmm0
mov dword [esp + 0x24], 0
movlpd qword [esp + 0x14], xmm0
movlpd qword [esp + 0x1c], xmm0
mov dword [esp + 8], 0x14
mov dword [esp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x148]
lea edx, [esp + 8]
mov dword [esp + 0x10], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x108]
push 0
push 0
push 0
push str.killfocus
push dword [edi + 0x148]
mov ecx, edi
call sym.ClientofCSP.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
mov dword [edi + 0x148], 0
test esi, esi
je 0x4c196b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
cmp eax, edi
jne 0x4c196b
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xc8]
call eax
test al, al
je 0x4c196b
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xd4]
call eax
test al, al
je 0x4c196b
xorps xmm0, xmm0
mov dword [edi + 0x148], esi
movlpd qword [esp + 0x14], xmm0
movlpd qword [esp + 0x1c], xmm0
mov dword [esp + 0x24], 0
mov dword [esp + 8], 0x15
mov dword [esp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x148]
lea edx, [esp + 8]
mov dword [esp + 0x10], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x108]
push 0
push 0
push 0
push str.setfocus
push dword [edi + 0x148]
mov ecx, edi
call sym.ClientofCSP.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
pop edi
pop esi
add esp, 0x20
ret 4
Function at 0x4c1db0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov ecx, dword [sym.ClientofCSP.exe_struct_HINSTANCE____DuiLib::CPaintManagerUI::m_hResourceInstance]
test ecx, ecx
movzx eax, word [esp + 4]
cmove ecx, dword [sym.ClientofCSP.exe_struct_HINSTANCE____DuiLib::CPaintManagerUI::m_hInstance]
push esi
push 0x727134
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4c1e29
mov ecx, dword [sym.ClientofCSP.exe_struct_HINSTANCE____DuiLib::CPaintManagerUI::m_hResourceInstance]
test ecx, ecx
push edi
cmove ecx, dword [sym.ClientofCSP.exe_struct_HINSTANCE____DuiLib::CPaintManagerUI::m_hInstance]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push esi
test edi, edi
je 0x4c1e22
mov eax, dword [sym.ClientofCSP.exe_struct_HINSTANCE____DuiLib::CPaintManagerUI::m_hResourceInstance]
test eax, eax
cmove eax, dword [sym.ClientofCSP.exe_struct_HINSTANCE____DuiLib::CPaintManagerUI::m_hInstance]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x4c1e28
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call sym.ClientofCSP.exe_public:_static_void___cdecl_DuiLib::CPaintManagerUI::SetResourceZip_void___unsigned_int_
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
ret

Function at 0x4c3740
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4c3783
cmp byte [esp + 8], 0
je 0x4c3777
cmp byte [esp + 0xc], 0
mov ecx, 1
mov eax, 4
cmovne eax, ecx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret 8
xor eax, eax
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret 8
Function at 0x4e1f70
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x7f9c40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x4e1fe0
cmp dword [esi + 0x10], 0
je 0x4e1fe0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.006dfa20
mov ebx, esp
test ebx, ebx
je 0x4e1fe0
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1b8
call fcn.004b7c40
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x1c]
push 0
push 0
push 0
push str.textchanged
push dword [esi + 0x10]
mov ecx, eax
call sym.ClientofCSP.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006def69
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4e9de0
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x109c], 0
je 0x4e9e4a
cmp dword [esp + 8], 0x100
jne 0x4e9e3b
cmp word [esp + 0xc], 0xd
jne 0x4e9e3b
cmp byte [esi + 0x10a2], 0
je 0x4e9e1d
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4e9e3b
cmp byte [esi + 0x10a3], 0
jne 0x4e9e3b
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x4e9e35
push 0
push 0
push 0
push str.return
push esi
call sym.ClientofCSP.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
xor eax, eax
pop esi
ret 0x10
mov eax, dword [esi + 0x109c]
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
jmp dword [eax + 0xc]
mov eax, 1
pop esi
ret 0x10
Function at 0x4ea7b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x717c70
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x7f9c40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [edi + 0x10], eax
mov dword [eax + 0x14dc], 0
cmp dword [edi + 4], 0
jne 0x4ea86b
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
push eax
lea ecx, [ebp - 0x20]
call sym.ClientofCSP.exe_public:_void___thiscall_DuiLib::CDuiRect::constructor_struct_tagRECT_const__
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
mov ecx, eax
call sym.ClientofCSP.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
movups xmm0, xmmword [ebp - 0x20]
push 0
sub esp, 0x10
mov ecx, esp
push 0
push 0x40000000
push 0
movups xmmword [ecx], xmm0
push eax
mov ecx, edi
call sym.ClientofCSP.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::Create_struct_HWND_____wchar_t_const___unsigned_long_int__unsigned_long_int__struct_tagRECT__struct_HMENU____
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
mov ecx, dword [edi + 0x10]
mov esi, eax
call sym.ClientofCSP.exe_public:_int___thiscall_DuiLib::CLabelUI::GetFont_void_const
push eax
mov ecx, esi
call sym.ClientofCSP.exe_public:_struct_DuiLib::tagTFontInfo____thiscall_DuiLib::CPaintManagerUI::GetFontInfo_int_
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call esi
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0xa4]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
mov ecx, eax
mov dword [ebp - 4], 0
call sym.ClientofCSP.exe_public:_bool___thiscall_DuiLib::CDuiString::IsEmpty_void_const
lea ecx, [ebp - 0xa4]
mov byte [ebp - 0xa5], al
call sym.ClientofCSP.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
cmp byte [ebp - 0xa5], 0
je 0x4ea8b3
mov eax, dword [edi + 0x10]
add eax, 0x14cc
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [edi + 0x10]
add eax, 0x14cc
push eax
push 0
push 0x1002
push dword [edi + 4]
call esi
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x18], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006def69
mov esp, ebp
pop ebp
ret 4
Function at 0x4efd50
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x7f9c40]
xor eax, esp
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, ecx
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x14], edi
mov dword [edi + 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x24], ecx
mov ecx, dword [ebp + 8]
mov dword [edi + 0x28], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x10], esi
mov dword [edi + 0x364], ecx
mov dword [edi + 0x368], 0
mov dword [edi + 0x36c], eax
test ecx, ecx
jne 0x4efdce
call sym.ClientofCSP.exe_public:_static_class_DuiLib::ObserverImpl____cdecl_DuiLib::CMenuWnd::GetGlobalContextMenuObserver_void_
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4efdce
call sym.ClientofCSP.exe_public:_static_class_DuiLib::ObserverImpl____cdecl_DuiLib::CMenuWnd::GetGlobalContextMenuObserver_void_
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x14]
call sym.ClientofCSP.exe_public:_static_class_DuiLib::ObserverImpl____cdecl_DuiLib::CMenuWnd::GetGlobalContextMenuObserver_void_
mov edx, edi
lea ecx, [edi + 0x10]
neg edx
mov esi, dword [eax]
sbb edx, edx
and edx, ecx
mov ecx, eax
push edx
call dword [esi]
lea ecx, [esp + 0x2c]
call sym.ClientofCSP.exe_public:_void___thiscall_DuiLib::CDuiRect::constructor_void_
mov ecx, dword [edi + 0x364]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x18], xmm0
test ecx, ecx
jne 0x4efe06
mov eax, dword [esp + 0x10]
jmp 0x4efe0d
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
mov ecx, eax
call sym.ClientofCSP.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
movups xmm0, xmmword [esp + 0x18]
push 0
sub esp, 0x10
mov ecx, esp
push 0x88
push bind
push 0
movups xmmword [ecx], xmm0
push eax
mov ecx, edi
call sym.ClientofCSP.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::Create_struct_HWND_____wchar_t_const___unsigned_long_int__unsigned_long_int__struct_tagRECT__struct_HMENU____
mov esi, dword [edi + 4]
mov edi, dword [sym.imp.USER32.dll_GetParent]
push esi
call edi
test eax, eax
je 0x4efe53
push esi
call edi
mov esi, eax
push esi
call edi
test eax, eax
jne 0x4efe47
mov eax, dword [esp + 0x14]
push 5
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 1
push 0x86
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
xor ecx, esp
call fcn.006def69
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4f6d30
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
push edi
push 0
push 0x80
push 3
push 0
push 1
push bind
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4f6daf
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [esp + 0x14]
mov dword [ebx], eax
test eax, eax
je 0x4f6daf
push esi
push eax
mov dword [esp + 0x10], 0
call fcn.006df164
add esp, 4
mov esi, eax
lea eax, [esp + 0xc]
push 0
push eax
push dword [ebx]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
cmp eax, dword [ebx]
je 0x4f6da8
push esi
call fcn.004f6d20
add esp, 4
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ecx
ret
pop edi
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x4f6dc0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x718400
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x7f9c40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
call sym.ClientofCSP.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourcePath_void_
push eax
lea ecx, [ebp - 0x94]
call sym.ClientofCSP.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_class_DuiLib::CDuiString_const__
push esi
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0
call sym.ClientofCSP.exe_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__
push 0
push 0x80
push 3
push 0
push 1
push bind
lea ecx, [ebp - 0x94]
call sym.ClientofCSP.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4f6e94
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebx], eax
test eax, eax
je 0x4f6e94
push eax
mov dword [ebp - 0x98], 0
call fcn.006df164
add esp, 4
mov esi, eax
lea eax, [ebp - 0x98]
push 0
push eax
push dword [ebx]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x98]
cmp eax, dword [ebx]
je 0x4f6e96
push esi
call fcn.004f6d20
add esp, 4
xor esi, esi
lea ecx, [ebp - 0x94]
call sym.ClientofCSP.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006def69
mov esp, ebp
pop ebp
ret
Function at 0x4f6ec0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push edi
push dword [esp + 0x14]
push dword [esp + 0x14]
call sym.ClientofCSP.exe_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetResourceDll_void_
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4f6ef7
push edi
call sym.ClientofCSP.exe_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetResourceDll_void_
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push edi
test ebx, ebx
jne 0x4f6efd
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop ebp
xor eax, eax
pop ebx
ret
call sym.ClientofCSP.exe_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetResourceDll_void_
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, dword [esp + 0x18]
mov dword [ebp], eax
test eax, eax
je 0x4f6ef7
push esi
push eax
call fcn.006df164
add esp, 4
mov esi, eax
push dword [ebp]
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push esi
call fcn.006e0e90
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
ret

Function at 0x4f7190
Capabilities:
Create directory

Disassembly:
sub esp, 0x414
mov eax, dword [0x7f9c40]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
mov ebx, dword [esp + 0x420]
push esi
mov esi, dword [esp + 0x420]
test ebx, ebx
je 0x4f728b
movzx eax, word [ebx]
test ax, ax
je 0x4f728b
push edi
mov edi, ebx
mov ecx, ebx
mov edx, eax
nop
cmp dx, 0x2f
je 0x4f71dc
cmp word [ecx], 0x5c
jne 0x4f71de
mov edi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x4f71d0
cmp edi, ebx
je 0x4f7226
sub edi, ebx
lea eax, [esp + 0xc]
sar edi, 1
push edi
push ebx
push eax
call fcn.006f4de4
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x4f72a2
xor eax, eax
mov word [esp + edi + 0xc], ax
lea eax, [esp + 0xc]
push eax
push esi
call fcn.004f7190
add esp, 8
lea ecx, [esp + 0x214]
sub ecx, esi
nop
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x4f7230
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4f7242
lea edi, [esp + 0x214]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4f7260
mov ecx, ebx
lea eax, [esp + 0x214]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
mov ecx, dword [esp + 0x418]
pop esi
pop ebx
xor ecx, esp
call fcn.006def69
add esp, 0x414
ret
call fcn.006df575
int3
Function at 0x4f7940
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
mov ebp, ecx
cmp dword [ebp], 0
jne 0x4f7ade
cmp dword [ebp + 4], 0xffffffff
jne 0x4f7ade
push edi
lea edi, [ebp + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4f7970
mov eax, dword [0x7229c4]
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [edi], eax
push esi
cmp ebx, 1
jne 0x4f79aa
mov edi, dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, ebx
je 0x4f79c5
mov eax, 0x2000000
pop esi
pop ebx
pop edi
pop ebp
pop ecx
ret 0xc
cmp ebx, 2
je 0x4f79c1
cmp ebx, 3
je 0x4f79c1
pop esi
pop ebx
pop edi
mov eax, 0x10000
pop ebp
pop ecx
ret 0xc
mov edi, dword [esp + 0x18]
mov dword [esp + 0x10], 0
mov byte [esp + 0x20], 0
cmp ebx, 1
je 0x4f7a0b
cmp ebx, 2
jne 0x4f7a53
push 0
push 0x80
push 3
push 0
push 1
push bind
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x4f7a44
pop esi
pop ebx
pop edi
mov eax, 0x200
pop ebp
pop ecx
ret 0xc
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call esi
mov edi, eax
call esi
push 2
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
push edi
mov edi, dword [esp + 0x2c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x4f7a40
pop esi
pop ebx
pop edi
mov eax, 0x100
pop ebp
pop ecx
ret 0xc
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
sete byte [esp + 0x20]
push 0x1c
call fcn.006debec
add esp, 4
mov esi, eax
cmp ebx, 1
je 0x4f7a88
cmp ebx, 2
je 0x4f7a88
mov eax, dword [esp + 0x1c]
mov word [esi], 0x100
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 0
mov dword [esi + 0xc], 0
jmp 0x4f7abb
mov cl, byte [esp + 0x20]
mov byte [esi], 1
mov byte [esi + 1], cl
mov eax, dword [esp + 0x10]
mov dword [esi + 4], eax
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
test cl, cl
je 0x4f7abb
push 1
push 0
push 0
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0xc], eax
xor eax, eax
test esi, esi
je 0x4f79a2
push esi
call fcn.004fb010
add esp, 4
mov dword [ebp], eax
mov eax, dword [0x7ff268]
pop esi
pop ebx
pop edi
pop ebp
pop ecx
ret 0xc
mov eax, 0x1000000
pop ebp
pop ecx
ret 0xc
Function at 0x4fa980
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
mov ebx, ebp
imul ebx, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
cmp byte [edi], 0
je 0x4fa9c0
push 0
lea eax, [esp + 0x18]
push eax
push ebx
push dword [esp + 0x1c]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4fa9b4
mov byte [edi + 8], 1
mov eax, dword [esp + 0x14]
xor edx, edx
pop edi
div ebp
pop ebp
pop ebx
ret
mov edx, dword [edi + 0x18]
mov ecx, dword [edi + 0x10]
push esi
mov esi, dword [edi + 0x14]
lea eax, [edx + ebx]
sub esi, edx
cmp eax, dword [edi + 0x14]
cmovbe esi, ebx
add ecx, edx
push esi
push ecx
push dword [esp + 0x1c]
call fcn.006e0e90
add dword [edi + 0x18], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebp
pop esi
pop edi
pop ebp
pop ebx
ret

Function at 0x4faa90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x4faa9b
xor eax, eax
ret
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
not eax
cmp esi, 8
jb 0x4fab5c
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x72b180]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x72b180]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x72b180]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x72b180]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x72b180]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x72b180]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x72b180]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x72b180]
sub edi, 1
jne 0x4faab5
pop edi
test esi, esi
je 0x4fab7a
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x72b180]
sub esi, 1
jne 0x4fab60
not eax
pop esi
ret
Function at 0x503600
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov eax, dword [esi + 8]
mov edi, eax
and edi, 7
je 0x50362d
cmp eax, edi
jge 0x50361d
push esi
call fcn.004ff020
add esp, 4
mov eax, dword [esi + 0xc]
mov ecx, edi
shr eax, cl
sub dword [esi + 8], edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 8]
xor ecx, ecx
mov edx, eax
test eax, eax
jle 0x50365d
mov eax, dword [esi + 0xc]
push ebx
mov bl, al
nop dword [eax + eax]
mov byte [esp + ecx + 0x10], bl
sub edx, 8
shr eax, 8
inc ecx
mov dword [esi + 0xc], eax
mov bl, al
test edx, edx
jg 0x503640
mov dword [esi + 8], edx
pop ebx
cmp ecx, 4
jge 0x503679
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x50366a
xor dl, dl
jmp 0x50366f
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [esp + ecx + 0xc], dl
inc ecx
cmp ecx, 4
jl 0x503660
movzx edi, byte [esp + 0xd]
movzx eax, byte [esp + 0xc]
movzx ecx, byte [esp + 0xf]
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [esp + 0xe]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x5036b1
mov dword [0x7ff270], str.zlib_corrupt
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x5036c9
pop edi
mov dword [0x7ff270], 0x72ba40
xor eax, eax
pop esi
ret
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x5036e3
push edi
push ecx
push esi
call fcn.00506860
add esp, 0xc
test eax, eax
je 0x5036ac
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.006e0e90
add dword [esi], edi
add esp, 0xc
add dword [esi + 0x10], edi
mov eax, 1
pop edi
pop esi
ret

Function at 0x509c60
Capabilities:
Get common file path

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0
push 0
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x509c99
push esi
push dword [esp + 0xc]
push dword [esp + 8]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [esp + 4]
mov esi, eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
pop esi
pop ecx
ret
xor eax, eax
pop ecx
ret
Function at 0x50a1b0
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x230]
sub esp, 0x230
push 0xffffffffffffffff
push 0x7184bd
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x7f9c40]
xor eax, ebp
mov dword [ebp + 0x22c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
push 0
push 2
mov dword [ebp - 4], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x50a228
push 0x72c080
push 0x800cb8
call fcn.004abb30
add esp, 8
jmp 0x50a25f
lea eax, [ebp]
mov dword [ebp], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x50a258
mov edi, dword [ebp + 0x238]
mov eax, dword [ebp + 0x18]
cmp eax, dword [edi]
je 0x50a283
lea eax, [ebp]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x50a243
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x22c]
xor ecx, ebp
call fcn.006def69
lea esp, [ebp + 0x230]
pop ebp
ret
mov eax, dword [ebp + 8]
jmp 0x50a261