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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
movzx eax, byte [esi]
mov byte [edi], al
lea ecx, [edi + 0x78]
movzx eax, byte [esi + 1]
mov byte [edi + 1], al
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [edi + 0x18], eax
mov eax, dword [esi + 0x1c]
mov dword [edi + 0x1c], eax
mov eax, dword [esi + 0x20]
mov dword [edi + 0x20], eax
mov eax, dword [esi + 0x24]
mov dword [edi + 0x24], eax
mov eax, dword [esi + 0x28]
mov dword [edi + 0x28], eax
mov eax, dword [esi + 0x2c]
mov dword [edi + 0x2c], eax
mov eax, dword [esi + 0x30]
mov dword [edi + 0x30], eax
mov eax, dword [esi + 0x34]
mov dword [edi + 0x34], eax
mov eax, dword [esi + 0x38]
mov dword [edi + 0x38], eax
mov eax, dword [esi + 0x3c]
mov dword [edi + 0x3c], eax
mov eax, dword [esi + 0x40]
mov dword [edi + 0x40], eax
mov eax, dword [esi + 0x44]
mov dword [edi + 0x44], eax
mov eax, dword [esi + 0x48]
mov dword [edi + 0x48], eax
movsd xmm0, qword [esi + 0x50]
movsd qword [edi + 0x50], xmm0
mov eax, dword [esi + 0x58]
mov dword [edi + 0x58], eax
mov eax, dword [esi + 0x5c]
mov dword [edi + 0x5c], eax
mov eax, dword [esi + 0x60]
mov dword [edi + 0x60], eax
mov eax, dword [esi + 0x64]
mov dword [edi + 0x64], eax
lea eax, [esi + 0x78]
movdqu xmm0, xmmword [esi + 0x68]
push eax
movdqu xmmword [edi + 0x68], xmm0
call fcn.004d9f20
mov eax, dword [esi + 0xfc]
mov dword [edi + 0xfc], eax
mov eax, edi
movdqu xmm0, xmmword [esi + 0x100]
movdqu xmmword [edi + 0x100], xmm0
movdqu xmm0, xmmword [esi + 0x110]
movdqu xmmword [edi + 0x110], xmm0
movdqu xmm0, xmmword [esi + 0x120]
movdqu xmmword [edi + 0x120], xmm0
pop edi
pop esi
pop ebp
ret 4
Function at 0x4d5f90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.WnPicViewer.exe_public_virtual:_void___thiscall_UiLib::CListUI::DoEvent_struct_UiLib::tagTEventUI__
Function at 0x4dd520
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x6e4770]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
mov dword [ebp - 0x214], 0
call fcn.0052f1e0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call sym.WnPicViewer.exe_public:_void___thiscall_UiLib::CDuiString::constructor_wchar_t_const___int_
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0052dfa4
mov esp, ebp
pop ebp
ret
Function at 0x4e0c10
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, ecx
push esi
push edi
xor esi, esi
lea ecx, [ebx + 0x644]
call sym.WnPicViewer.exe_public:_struct_HWND______thiscall_UiLib::CWindowWnd::operator_struct_HWND____void_const
mov edi, dword [ebp + 8]
test eax, eax
jle 0x4e0c6b
nop
push esi
lea ecx, [ebx + 0x644]
mov byte [ebp + 0xb], 0
call sym.WnPicViewer.exe_public:_void____thiscall_UiLib::CStdPtrArray::operator___int_const
lea ecx, [ebp + 0xb]
push ecx
push dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, eax
push dword [ebp + 0xc]
push edi
call dword [edx]
cmp byte [ebp + 0xb], 0
jne 0x4e0dba
lea ecx, [ebx + 0x644]
inc esi
call sym.WnPicViewer.exe_public:_struct_HWND______thiscall_UiLib::CWindowWnd::operator_struct_HWND____void_const
cmp esi, eax
jl 0x4e0c30
sub edi, 0x100
je 0x4e0d43
sub edi, 4
je 0x4e0cd7
sub edi, 2
jne 0x4e0d38
push dword [ebp + 0xc]
xor eax, eax
mov dword [ebp + 8], eax
call fcn.00534bf0
mov ecx, dword [ebx + 0x53c]
lea edx, [ebp + 8]
add esp, 4
mov word [ebp + 8], ax
mov eax, dword [ecx]
push reloc.WS2_32.dll_ioctlsocket
push edx
push sym.WnPicViewer.exe_private:_static_class_UiLib::CControlUI____stdcall_UiLib::CPaintManagerUI::__FindControlFromShortcut_class_UiLib::CControlUI___void__
call dword [eax + 0x128]
mov esi, eax
test esi, esi
je 0x4e0d38
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xf4]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebx + 0x540], 0
je 0x4e0d38
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
movq qword [ebp - 0xc], xmm0
mov word [ebp - 0xc], ax
mov eax, dword [ebx + 0x550]
movdqu xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x554]
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 6
mov dword [ebp - 0x10], eax
call fcn.004fd4e0
mov word [ebp - 0xa], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x540]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x134]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x4e0d38
mov ecx, dword [ebx + 0x540]
test ecx, ecx
je 0x4e0da1
mov eax, dword [ecx]
mov eax, dword [eax + 0xc4]
call eax
test al, al
je 0x4e0da1
mov ecx, dword [ebx + 0x540]
mov eax, dword [ecx]
mov eax, dword [eax + 0xd0]
call eax
test al, al
je 0x4e0da1
mov ecx, dword [ebx + 0x540]
push str.RichEditUI
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.0053006e
add esp, 8
test eax, eax
je 0x4e0da1
mov ecx, dword [ebx + 0x540]
call sym.WnPicViewer.exe_public:_bool___thiscall_UiLib::CRichEditUI::IsWantTab_void_
test al, al
jne 0x4e0d38
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov ecx, ebx
setns al
movzx eax, al
push eax
call sym.WnPicViewer.exe_public:_bool___thiscall_UiLib::CPaintManagerUI::SetNextTabControl_bool_
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4e2650
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
mov edi, ecx
cmp byte [edi + 0x5a4], 0
jne 0x4e277d
push esi
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [edi]
mov esi, dword [ebp + 8]
cmp eax, ecx
je 0x4e2685
cmp esi, dword [edi + 0x540]
je 0x4e2685
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [edi + 0x540]
cmp esi, eax
je 0x4e277c
test eax, eax
je 0x4e26f2
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movdqu xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 0x20], 0x14
movq qword [ebp - 0xc], xmm0
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x540]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x134]
push 0
push 0
push 0
push str.killfocus
push dword [edi + 0x540]
mov ecx, edi
call sym.WnPicViewer.exe_public:_void___thiscall_UiLib::CPaintManagerUI::SendNotify_class_UiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
mov dword [edi + 0x540], 0
test esi, esi
je 0x4e277c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
cmp eax, edi
jne 0x4e277c
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xc4]
call eax
test al, al
je 0x4e277c
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xd0]
call eax
test al, al
je 0x4e277c
xorps xmm0, xmm0
mov dword [edi + 0x540], esi
movdqu xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 4], 0
movq qword [ebp - 0xc], xmm0
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x540]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x134]
push 0
push 0
push 0
push str.setfocus
push dword [edi + 0x540]
mov ecx, edi
call sym.WnPicViewer.exe_public:_void___thiscall_UiLib::CPaintManagerUI::SendNotify_class_UiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
pop esi
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x4f6700
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x633dd5
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6e4770]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
xorps xmm0, xmm0
mov word [edi], 0x101
lea ecx, [edi + 0x78]
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 5
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 5
mov dword [edi + 0x1c], 1
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0x10
mov dword [edi + 0x2c], 0x19
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 2
mov dword [edi + 0x38], 0x3c
mov dword [edi + 0x3c], 0x16
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
movsd qword [edi + 0x50], xmm0
mov dword [edi + 0x58], 2
mov dword [edi + 0x5c], 2
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0xff000000
call sym.WnPicViewer.exe_public:_void___thiscall_UiLib::CDuiString::constructor_void_
push 0
lea ecx, [edi + 0x100]
mov dword [ebp - 4], 0
push 4
mov dword [edi + 0xfc], 0
call sym.WnPicViewer.exe_public:_void___thiscall_UiLib::CStdValArray::constructor_int__int_
push 0
lea ecx, [edi + 0x110]
mov byte [ebp - 4], 1
push 4
call sym.WnPicViewer.exe_public:_void___thiscall_UiLib::CStdValArray::constructor_int__int_
push 0
lea ecx, [edi + 0x120]
mov byte [ebp - 4], 2
push 0x84
call sym.WnPicViewer.exe_public:_void___thiscall_UiLib::CStdValArray::constructor_int__int_
push str.Legend
lea ecx, [edi + 0x78]
mov byte [ebp - 4], 3
call fcn.004d9fc0
mov ecx, edi
mov dword [edi + 0x68], 5
mov dword [edi + 0x6c], 5
mov dword [edi + 0x70], 5
mov dword [edi + 0x74], 5
call sym.WnPicViewer.exe_public_virtual:_class_UiLib::CContainerUI____thiscall_UiLib::CListUI::GetList_void_const
push eax
mov ecx, edi
call sym.WnPicViewer.exe_public:_int___thiscall_UiLib::CChartXYAxis::GetMaxTick_void_
push eax
mov ecx, edi
call sym.WnPicViewer.exe_public:_int___thiscall_UiLib::CChartXYAxis::GetMinTick_void_
push eax
mov ecx, edi
call sym.WnPicViewer.exe_public:_void___thiscall_UiLib::CChartXYAxis::SetTickLimis_int__int__unsigned_int_
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4fba30
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63417e
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x6e4770]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x10]
mov dword [edi], 0
push eax
push 0
lea ecx, [edi + 4]
mov dword [ebp - 0x10], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.005001f0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
lea eax, [ebp - 0x10]
mov dword [edi + 0x20], 0
push eax
push 0
lea ecx, [edi + 0x24]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.005001f0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
lea ecx, [edi + 0x40]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x58], esi
mov dword [edi + 0x60], edx
mov byte [edi + 0x64], 0
mov dword [edi + 0x68], eax
test byte [esi + 8], 8
mov byte [ebp - 4], 2
je 0x4fbb58
test dl, 0x10
jne 0x4fbb58
mov eax, 1
jmp 0x4fbb5a
xor eax, eax
mov byte [edi + 0x6c], al
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x70], eax
push dword [esi + 0x18]
call fcn.00502960
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4fd4e0
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
call edi
test ax, ax
mov ecx, 8
push 2
cmovs esi, ecx
call edi
test ax, ax
jns 0x4fd505
or esi, 1
push 1
call edi
test ax, ax
jns 0x4fd511
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x4fd51d
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x4fd529
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret

Function at 0x4fd930
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x6e4770]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x4fd99e
cmp dword [esi + 0x10], 0
je 0x4fd99e
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.00534a80
mov ebx, esp
test ebx, ebx
je 0x4fd99e
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x3f4
call fcn.004d9fc0
mov ecx, dword [esi + 0x10]
push 0
push 0
push 0
mov eax, dword [ecx]
push 0x6481bc
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call sym.WnPicViewer.exe_public:_void___thiscall_UiLib::CPaintManagerUI::SendNotify_class_UiLib::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.0052dfa4
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5021f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x502221
lea esp, [esp]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x502210
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x511b70
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x718], 0
je 0x511be0
cmp dword [ebp + 8], 0x100
jne 0x511bd0
cmp word [ebp + 0xc], 0xd
jne 0x511bd0
cmp byte [esi + 0x71e], 0
je 0x511bae
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x511bd0
cmp byte [esi + 0x71f], 0
jne 0x511bd0
mov ecx, dword [esi + 0x170]
test ecx, ecx
je 0x511bc9
push 0
push 0
push 0
push str.return
push esi
call sym.WnPicViewer.exe_public:_void___thiscall_UiLib::CPaintManagerUI::SendNotify_class_UiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
xor eax, eax
pop esi
pop ebp
ret 0x10
mov eax, dword [esi + 0x718]
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
mov eax, 1
pop esi
pop ebp
ret 0x10
Function at 0x512570
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x633f8b
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x6e4770]
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 edi, ecx
mov eax, dword [ebp + 8]
mov dword [edi + 0x10], eax
mov dword [eax + 0x7d8], 0
cmp dword [edi + 4], 0
jne 0x51261f
lea eax, [ebp - 0xa4]
push eax
call fcn.00512040
mov ecx, dword [edi + 0x10]
movdqu xmm0, xmmword [ebp - 0xa4]
push 0
push 0
sub esp, 0x10
mov eax, esp
push 0
movdqu xmmword [eax], xmm0
mov eax, dword [ecx]
push 0x40000000
push 0
call dword [eax + 0x1c]
mov ecx, eax
call sym.WnPicViewer.exe_public:_wchar_t_const____thiscall_UiLib::CDuiString::operator_wchar_t_const__void_const
push eax
mov ecx, edi
call sym.WnPicViewer.exe_public:_struct_HWND______thiscall_UiLib::CWindowWnd::Create_struct_HWND_____wchar_t_const___unsigned_long_int__unsigned_long_int__struct_tagRECT__bool__struct_HMENU____
mov esi, dword [edi + 0x10]
mov ecx, esi
call sym.WnPicViewer.exe_public:_int___thiscall_UiLib::CLabelUI::GetFont_void_const
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call sym.WnPicViewer.exe_public:_struct_UiLib::tagTFontInfo____thiscall_UiLib::CPaintManagerUI::GetFontInfo_int_
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, eax
mov dword [ebp - 4], 0
call sym.WnPicViewer.exe_public:_bool___thiscall_UiLib::CDuiString::IsEmpty_void_const
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
mov bl, al
call sym.WnPicViewer.exe_public:_void___thiscall_UiLib::CDuiString::destructor_void_
test bl, bl
je 0x512663
mov eax, dword [edi + 0x10]
add eax, 0x7c8
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [edi + 0x10]
add eax, 0x7c8
push eax
push 0
push 0x1002
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
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
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052dfa4
mov esp, ebp
pop ebp
ret 4
Function at 0x51e8b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x6e4770]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test ebx, ebx
je 0x51e9aa
movzx eax, word [ebx]
test ax, ax
je 0x51e9aa
push edi
mov edi, ebx
mov ecx, ebx
cmp ax, 0x2f
je 0x51e8f0
cmp ax, 0x5c
jne 0x51e8f2
mov edi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x51e8e4
cmp edi, ebx
je 0x51e93f
sub edi, ebx
lea eax, [ebp - 0x20c]
sar edi, 1
push edi
push ebx
push eax
call fcn.00532d4d
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x51e9ba
xor eax, eax
mov word [ebp + edi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.0051e8b0
add esp, 8
lea ecx, [ebp - 0x414]
sub ecx, esi
jmp 0x51e950
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x51e950
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x51e962
lea edi, [ebp - 0x414]
sub ebx, esi
add edi, 0xfffffffe
jmp 0x51e980
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x51e980
mov ecx, ebx
lea eax, [ebp - 0x414]
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 [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0052dfa4
mov esp, ebp
pop ebp
ret
call fcn.0052ed39
int3

Function at 0x51f0a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x51f139
cmp dword [esi + 4], 0xffffffff
jne 0x51f139
push edi
lea edi, [esi + 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 0x51f0d0
cmp dword [ebp + 0x10], 1
mov eax, dword [0x642134]
mov dword [edi], eax
mov edi, dword [ebp + 8]
jne 0x51f103
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x51f103
pop edi
mov eax, 0x2000000
pop esi
pop ebp
ret 0xc
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00521a70
add esp, 0x10
test eax, eax
jne 0x51f123
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret 0xc
push eax
call fcn.00522330
add esp, 4
mov dword [esi], eax
mov eax, dword [0x707c24]
pop edi
pop esi
pop ebp
ret 0xc
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x521bb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, ebx
imul esi, dword [ebp + 0x10]
cmp byte [edi], 0
je 0x521bee
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x521be2
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
pop edi
pop esi
div ebx
pop ebx
pop ebp
ret
mov edx, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x521bff
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.0052e410
add dword [edi + 0x18], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop edi
pop esi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x521dee
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x521ec3
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6537e0]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6537e0]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6537e0]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6537e0]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6537e0]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6537e0]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6537e0]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6537e0]
dec edi
jne 0x521e06
pop edi
test esi, esi
je 0x521ee2
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6537e0]
dec esi
jne 0x521ec7
not eax
pop esi
pop ebp
ret
Function at 0x527bb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 8]
mov edi, eax
and edi, 7
je 0x527bd7
cmp eax, edi
jge 0x527bcf
push esi
call fcn.00525af0
add esp, 4
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov ecx, dword [esi + 8]
xor edx, edx
test ecx, ecx
jle 0x527c00
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub ecx, 8
mov byte [ebp + edx + 8], al
inc edx
shr edi, 8
mov dword [esi + 0xc], edi
test ecx, ecx
jg 0x527be3
mov dword [esi + 8], ecx
cmp edx, 4
jge 0x527c1f
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x527c0d
xor eax, eax
jmp 0x527c15
mov cl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, cl
mov byte [ebp + edx + 8], al
inc edx
cmp edx, 4
jl 0x527c03
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x527c54
pop edi
pop esi
mov dword [ebp + 8], str.zlib_corrupt
pop ebp
jmp fcn.00525980
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x527c6c
pop edi
pop esi
mov dword [ebp + 8], str.read_past_buffer
pop ebp
jmp fcn.00525980
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x527c88
push edi
push esi
call fcn.00525990
add esp, 8
test eax, eax
jne 0x527c88
pop edi
pop esi
pop ebp
ret
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.0052e410
add dword [esi], edi
add esp, 0xc
add dword [esi + 0x10], edi
mov eax, 1
pop edi
pop esi
pop ebp
ret