joyce8/EMBER2024-capa huggingface dataset:
Function at 0x479436
Capabilities:
Check if file exists
Get common file path
Get startup folder

Disassembly:
push 0x83c
mov eax, 0x5c5a58
call fcn.004b8fda
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
xor ebx, ebx
push ebx
push eax
call fcn.005991a0
add esp, 0xc
lea eax, [ebp - 0x218]
push ebx
push 0x1a
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [ebp - 0x834], 7
mov dword [ebp - 0x838], ebx
mov word [ebp - 0x848], ax
cmp word [ebp - 0x218], ax
je 0x4794a1
lea eax, [ebp - 0x218]
push eax
call fcn.0059c41c
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x848]
call fcn.00420960
mov dword [ebp - 4], ebx
mov ebx, str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar_
push ebx
call fcn.0059c41c
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x848]
call fcn.00422d00
xor ebx, ebx
cmp word [esi], bx
jne 0x4794db
mov eax, ebx
jmp 0x4794e2
push esi
call fcn.0059c41c
pop ecx
push eax
push esi
lea ecx, [ebp - 0x848]
call fcn.00422d00
mov esi, str..lnk
push esi
call fcn.0059c41c
pop ecx
push eax
push esi
lea ecx, [ebp - 0x848]
call fcn.00422d00
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x848]
push eax
call esi
test eax, eax
je 0x4795f0
push 0x208
lea eax, [ebp - 0x830]
push ebx
push eax
call fcn.005991a0
push 0x208
lea eax, [ebp - 0x628]
push ebx
push eax
call fcn.005991a0
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
cmovae eax, dword [ebp - 0x848]
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.0059c3fa
add esp, 0x20
lea eax, [ebp - 0x628]
mov ecx, edi
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.00477698
push 0x208
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.005991a0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [ebp - 0x420]
push eax
call fcn.0059c41c
pop ecx
test eax, eax
jne 0x4795de
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.0059c3fa
pop ecx
pop ecx
lea eax, [ebp - 0x420]
push eax
call esi
test eax, eax
je 0x4795f0
xor esi, esi
inc esi
jmp 0x4795f2
mov esi, ebx
push ebx
push 1
lea ecx, [ebp - 0x848]
call fcn.004208a0
mov eax, esi
call fcn.004b8f84
ret 4
Function at 0x47960a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6554f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [0x6660f1]
test al, al
jne 0x4796a3
push ebx
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.005991a0
add esp, 0xc
lea eax, [ebp - 0x20c]
xor ebx, ebx
inc ebx
push ebx
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x47969a
lea eax, [ebp - 0x20c]
push eax
call fcn.0059c79f
lea eax, [ebp - 0x20c]
mov dword [esp], str.config_systemprofile
push eax
call fcn.00599449
pop ecx
pop ecx
test eax, eax
jne 0x479692
lea eax, [ebp - 0x20c]
push str.cocuments_and_settingslocalService
push eax
call fcn.00599449
pop ecx
pop ecx
test eax, eax
je 0x47969a
mov byte [0x6660f1], bl
jmp 0x4796a0
mov bl, byte [0x6660f1]
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b8f5e
mov esp, ebp
pop ebp
ret
Function at 0x47a39c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6554f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push edi
push 0x208
xor esi, esi
mov edi, ecx
push esi
push eax
call fcn.005991a0
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push 0x17
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x47a407
lea eax, [ebp - 0x20c]
push 0x626e18
push eax
call fcn.0059c389
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.004796b1
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b8f5e
mov esp, ebp
pop ebp
ret 4
Function at 0x47c365
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47c397
xor eax, eax
inc eax
cmp byte [ebp + 0xc], 0
push 4
pop edx
cmovne edx, eax
xor eax, eax
cmp byte [ebp + 8], al
cmovne eax, edx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8

Function at 0x4881ee
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x6554f4]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x214], 0
lea eax, [ebp - 0x210]
push esi
mov esi, dword [ebp + 8]
push 0x20a
push 0
push eax
call fcn.005991a0
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.setup_SmartCloudPYInput.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_wchar_t_const___int_
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004b8f5e
mov esp, ebp
pop ebp
ret

Function at 0x488a5c
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
push 8
pop ecx
test ax, ax
push 2
cmovs esi, ecx
call edi
test ax, ax
jns 0x488a7f
or esi, 1
push 1
call edi
test ax, ax
jns 0x488a8b
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x488a97
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x488aa3
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x489fcf
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [esi + 0xd0]
call sym.setup_SmartCloudPYInput.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
mov edi, dword [ebp + 8]
test eax, eax
jle 0x48a025
push ebx
lea ecx, [esi + 0xd0]
mov byte [ebp + 0xb], 0
call sym.setup_SmartCloudPYInput.exe_public:_void____thiscall_DuiLib::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 0x48a082
lea ecx, [esi + 0xd0]
inc ebx
call sym.setup_SmartCloudPYInput.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
cmp ebx, eax
jl 0x489fee
sub edi, 0x100
je 0x48a0dc
sub edi, 4
je 0x48a086
dec edi
sub edi, 1
jne 0x48a0d1
push dword [ebp + 0xc]
xor eax, eax
mov dword [ebp + 8], eax
call fcn.0059c2cd
pop ecx
mov ecx, dword [esi + 0x50]
lea edx, [ebp + 8]
push reloc.WS2_32.dll_ioctlsocket
mov word [ebp + 8], ax
push edx
mov eax, dword [ecx]
push sym.setup_SmartCloudPYInput.exe_private:_static_class_DuiLib::CControlUI____stdcall_DuiLib::CPaintManagerUI::__FindControlFromShortcut_class_DuiLib::CControlUI___void__
call dword [eax + 0x10c]
mov esi, eax
test esi, esi
je 0x48a0d1
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xfc]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov al, 1
jmp 0x48a0d3
cmp dword [esi + 0x54], 0
je 0x48a0d1
xor eax, eax
lea edi, [ebp - 0x1c]
push 7
pop ecx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov word [ebp - 0xc], ax
mov eax, dword [esi + 0x64]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x68]
mov dword [ebp - 0x20], 6
mov dword [ebp - 0x10], eax
call fcn.00488a5c
mov word [ebp - 0xa], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x118]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x48a0d1
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x48a129
mov eax, dword [ecx]
call dword [eax + 0xd4]
test al, al
je 0x48a129
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xe0]
test al, al
je 0x48a129
mov ecx, dword [esi + 0x54]
push str.RichEditUI
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.00599449
pop ecx
pop ecx
test eax, eax
je 0x48a129
mov ecx, dword [esi + 0x54]
call sym.setup_SmartCloudPYInput.exe_public:_bool___thiscall_DuiLib::CRichEditUI::IsWantTab_void_
test al, al
jne 0x48a0d1
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov ecx, esi
setns al
movzx eax, al
push eax
call sym.setup_SmartCloudPYInput.exe_public:_bool___thiscall_DuiLib::CPaintManagerUI::SetNextTabControl_bool_
jmp 0x48a082
Function at 0x48abac
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov ebx, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, dword [ebp + 8]
cmp eax, dword [ebx]
je 0x48abd4
cmp esi, dword [ebx + 0x54]
je 0x48ac96
push dword [ebx]
call dword [sym.imp.USER32.dll_SetFocus]
cmp esi, dword [ebx + 0x54]
je 0x48ac96
cmp dword [ebx + 0x54], 0
push edi
je 0x48ac27
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x14
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x54]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x118]
xor edi, edi
mov ecx, ebx
push edi
push edi
push edi
push str.killfocus
push dword [ebx + 0x54]
call sym.setup_SmartCloudPYInput.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
mov dword [ebx + 0x54], edi
test esi, esi
je 0x48ac95
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
cmp eax, ebx
jne 0x48ac95
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xd4]
test al, al
je 0x48ac95
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xe0]
test al, al
je 0x48ac95
push 7
pop ecx
xor eax, eax
mov dword [ebx + 0x54], esi
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x54]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x118]
xor eax, eax
mov ecx, ebx
push eax
push eax
push eax
push str.setfocus
push dword [ebx + 0x54]
call sym.setup_SmartCloudPYInput.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4a1c85
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x6554f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x4a1cf2
cmp dword [esi + 0x10], 0
je 0x4a1cf2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.004b9b50
mov ebx, esp
test ebx, ebx
je 0x4a1cf2
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1bc
call fcn.00486448
mov ecx, dword [esi + 0x10]
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ecx]
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call sym.setup_SmartCloudPYInput.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.004b8f5e
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4a8b78
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x4ec], edi
je 0x4a8be2
cmp dword [ebp + 8], 0x100
jne 0x4a8bd1
cmp word [ebp + 0xc], 0xd
jne 0x4a8bd1
cmp byte [esi + 0x4f2], 0
je 0x4a8bb8
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4a8bd1
cmp byte [esi + 0x4f3], 0
jne 0x4a8bd1
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x4a8bcd
push edi
push edi
push edi
push str.return
push esi
call sym.setup_SmartCloudPYInput.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
xor eax, eax
jmp 0x4a8be5
mov eax, dword [esi + 0x4ec]
pop edi
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 0x10

Function at 0x4a91f0
Capabilities:
Hide graphical window

Disassembly:
push 0x9c
mov eax, 0x5c7712
call fcn.004b8fda
mov edi, ecx
mov dword [ebp - 0x98], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [edi + 0x10], eax
mov dword [eax + 0x5d0], ebx
cmp dword [edi + 4], ebx
jne 0x4a9282
lea eax, [ebp - 0xa8]
push eax
call fcn.004a8eea
mov ecx, dword [edi + 0x10]
lea esi, [ebp - 0xa8]
push ebx
sub esp, 0x10
mov edi, esp
mov eax, dword [ecx]
push ebx
movsd dword es:[edi], dword [esi]
push 0x40000000
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1c]
mov ecx, eax
call sym.setup_SmartCloudPYInput.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
mov edi, dword [ebp - 0x98]
mov ecx, edi
push eax
call sym.setup_SmartCloudPYInput.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 + 0x10]
mov ecx, esi
call sym.setup_SmartCloudPYInput.exe_public:_int___thiscall_DuiLib::CLabelUI::GetFont_void_const
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call sym.setup_SmartCloudPYInput.exe_public:_struct_DuiLib::tagTFontInfo____thiscall_DuiLib::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], ebx
call sym.setup_SmartCloudPYInput.exe_public:_bool___thiscall_DuiLib::CDuiString::IsEmpty_void_const
lea ecx, [ebp - 0x94]
mov bl, al
call sym.setup_SmartCloudPYInput.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov esi, 0x5c0
test bl, bl
je 0x4a92bd
mov eax, dword [edi + 0x10]
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [edi + 0x10]
add eax, esi
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
call fcn.004b8f84
ret 4
Function at 0x4abeea
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x6554f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4abfa0
movzx eax, word [esi]
test ax, ax
je 0x4abfa0
push edi
mov edi, esi
mov ecx, esi
cmp ax, 0x2f
je 0x4abf2a
cmp ax, 0x5c
jne 0x4abf2c
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x4abf1e
cmp edi, esi
je 0x4abf73
sub edi, esi
lea eax, [ebp - 0x20c]
sar edi, 1
push edi
push esi
push eax
call fcn.005a8d71
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x4abfb0
xor eax, eax
mov word [ebp + edi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.004abeea
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.0059c3fa
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0059c389
add esp, 0x10
lea eax, [ebp - 0x414]
push 0
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.004b8f5e
mov esp, ebp
pop ebp
ret
call fcn.004b8c63
int3

Function at 0x4ac575
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x4ac5f1
cmp dword [edi + 4], 0xffffffff
jne 0x4ac5f1
push esi
lea esi, [edi + 0x138]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x626e18
push esi
call fcn.0059c389
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop esi
jne 0x4ac5c3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x4ac5c3
mov eax, 0x2000000
jmp 0x4ac5f6
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004aea90
add esp, 0x10
test eax, eax
jne 0x4ac5e1
mov eax, dword [ebp - 4]
jmp 0x4ac5f6
push eax
call fcn.004af198
mov dword [edi], eax
mov eax, dword [0x6666a8]
pop ecx
jmp 0x4ac5f6
mov eax, 0x1000000
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4aeb9d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
imul esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x4aebd1
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4aebcc
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x4aebf8
mov edx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x14]
jbe 0x4aebe1
mov esi, dword [edi + 0x14]
sub esi, edx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.005986a0
add esp, 0xc
mov eax, esi
add dword [edi + 0x18], esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4aed79
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x4aee38
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5d5d60]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5d5d60]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5d5d60]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5d5d60]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5d5d60]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5d5d60]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5d5d60]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5d5d60]
sub edi, 1
jne 0x4aed91
pop edi
test esi, esi
je 0x4aee54
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5d5d60]
inc edx
sub esi, 1
jne 0x4aee3c
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x4b408a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 8]
and edi, 7
je 0x4b40ae
cmp dword [esi + 8], edi
jge 0x4b40a6
push esi
call fcn.004b232b
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x4b40d7
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x4b40ba
mov dword [esi + 8], edx
cmp ecx, 4
jge 0x4b40f4
mov edx, dword [esi]
cmp edx, dword [esi + 4]
jb 0x4b40e2
xor eax, eax
jmp 0x4b40ea
mov al, byte [edx]
inc edx
mov dword [esi], edx
movzx eax, al
mov byte [ebp + ecx + 8], al
inc ecx
cmp ecx, 4
jl 0x4b40d9
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 0x4b4129
push str.zlib_corrupt
call fcn.004b21e6
add esp, 4
jmp 0x4b4166
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x4b4139
push str.read_past_buffer
jmp 0x4b411f
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x4b4150
push edi
push esi
call fcn.004b21f5
pop ecx
pop ecx
test eax, eax
je 0x4b4166
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.005986a0
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret

Function at 0x4ba640
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x6554f4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4ba690
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x4ba68a
shr eax, 8
cmp al, 2
jne 0x4ba68a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b8f5e
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
call fcn.004b8f5e
mov esp, ebp
pop ebp
ret
Function at 0x4bbb10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 3
jne 0x4bbb3c
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4bbb2d
pop edi
xor eax, eax
pop esi
pop ebp
ret
push dword [eax + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call ecx
jmp 0x4bbb70
cmp dword [esi + 8], 0
jne 0x4bbb60
push 0x62bfc0
push dword [eax + 8]
call fcn.0059e286
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x4bbb60
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push dword [esi + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.005a9e10
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4bbb92
mov eax, dword [esi + 8]
test eax, eax
je 0x4bbb8c
push eax
call fcn.005a68ec
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x4c06a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4c06be
cmp dword [esi + 0x48], 0
je 0x4c06be
push 2
push 3
push esi
call fcn.004d5c90
add esp, 0xc
push dword [ebp + 0xc]
call fcn.004cd540
add esp, 4
test esi, esi
je 0x4c06de
cmp dword [esi + 0x48], 0
je 0x4c06de
push 3
push esi
call fcn.004d5cd0
add esp, 8
pop esi
pop ebp
ret
Function at 0x4c15b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004d6b70