joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47e9c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5128eb
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x568cb8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xf4], ecx
mov eax, dword [ebp - 0xf4]
cmp dword [eax + 0x678], 0
jne 0x47ea05
jmp 0x47ec07
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0xf0]
push ecx
mov edx, dword [ebp - 0xf4]
mov eax, dword [edx + 0x678]
mov ecx, dword [ebp - 0xf4]
mov ecx, dword [ecx + 0x678]
mov edx, dword [eax]
mov eax, dword [edx + 0x28]
call eax
mov dword [ebp - 0xf8], eax
mov ecx, dword [ebp - 0xf8]
mov dword [ebp - 0xfc], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xfc]
call dword [0x53c340]
push eax
lea ecx, [ebp - 0x4c]
call fcn.004012e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xf0]
call dword [0x53c330]
lea ecx, [ebp - 0x4c]
call fcn.00401340
push eax
call fcn.004b7f07
add esp, 4
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 3
jg 0x47ea93
mov dword [ebp - 0x10], 0
jmp 0x47eacd
push 3
push 0
lea edx, [ebp - 0x6c]
push edx
lea ecx, [ebp - 0x4c]
call fcn.0040d7a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x6c]
call fcn.00401340
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x47eac1
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x6c]
call fcn.00401320
cmp dword [ebp - 0x10], 0
jne 0x47eb1a
mov eax, dword [ebp - 0xf4]
cmp dword [eax + 0x668], 0
je 0x47eb06
push 0
mov ecx, dword [ebp - 0xf4]
mov edx, dword [ecx + 0x668]
mov eax, dword [ebp - 0xf4]
mov ecx, dword [eax + 0x668]
mov edx, dword [edx]
mov eax, dword [edx + 0xd8]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00401320
jmp 0x47ec07
mov ecx, dword [ebp - 0xf4]
cmp dword [ecx + 0x66c], 0
je 0x47ebae
mov edx, dword [ebp - 0xf4]
mov ecx, dword [edx + 0x66c]
call dword [0x53c310]
movzx eax, al
test eax, eax
je 0x47eb7b
mov ecx, dword [ebp - 0xf4]
cmp dword [ecx + 0x668], 0
je 0x47eb79
push 1
mov edx, dword [ebp - 0xf4]
mov eax, dword [edx + 0x668]
mov ecx, dword [ebp - 0xf4]
mov ecx, dword [ecx + 0x668]
mov edx, dword [eax]
mov eax, dword [edx + 0xd8]
call eax
jmp 0x47ebae
mov ecx, dword [ebp - 0xf4]
cmp dword [ecx + 0x668], 0
je 0x47ebae
push 0
mov edx, dword [ebp - 0xf4]
mov eax, dword [edx + 0x668]
mov ecx, dword [ebp - 0xf4]
mov ecx, dword [ecx + 0x668]
mov edx, dword [eax]
mov eax, dword [edx + 0xd8]
call eax
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x30]
push edx
call fcn.004391d0
add esp, 8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.00402a90
push eax
push 0x7ef
mov ecx, dword [ebp - 0xf4]
add ecx, 0x4f8
mov eax, dword [ebp - 0xf4]
mov edx, dword [eax + 0x4f8]
mov eax, dword [edx]
call eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.00402b40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00401320
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b8307
mov esp, ebp
pop ebp
ret
Function at 0x47fc40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
cmp dword [ebp + 8], 0
jne 0x47fc59
mov eax, 1
jmp 0x47fd62
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x47fd5d
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push 0
push 0x51ffcc
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x47fcb4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x47fd62
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0048097b
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x47fd53
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0
push 0
push str.ProgramW6432Dir
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x47fd1f
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.004b7eaf
add esp, 4
mov eax, 1
jmp 0x47fd62
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004be924
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004b7eaf
add esp, 4
xor eax, eax
jmp 0x47fd62
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x4807b6
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x56d904], 0
push esi
jne 0x480729
call fcn.0048064f
test eax, eax
je 0x48076c
mov eax, dword [0x56d904]
cmp eax, 1
jne 0x48074a
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x48076c
pop esi
ret
push eax
call dword [0x56d90c]
test eax, eax
jne 0x4807b4
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x480770
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x56d904]
call dword [0x56d90c]
mov edi, eax
test edi, edi
je 0x480795
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4807b1
mov edi, esi
add esi, 0xff0
push edi
push dword [0x56d904]
call dword [0x56d908]
add edi, 0x10
cmp edi, esi
jb 0x48079d
mov eax, edi
pop edi
pop esi
ret
jmp 0x480716
Function at 0x48cb7f
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
xor edi, edi
call esi
test ax, ax
jge 0x48cb95
push 8
pop edi
push 2
call esi
test ax, ax
jge 0x48cba1
or edi, 1
push 1
call esi
test ax, ax
jge 0x48cbad
or edi, 2
push 0x10
call esi
test ax, ax
jge 0x48cbb9
or edi, 4
push 0x12
call esi
test ax, ax
jge 0x48cbc5
or edi, 0x20
mov eax, edi
pop edi
pop esi
ret

Function at 0x48cd12
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x568cb8]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x214], 0
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
call fcn.004b83b0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push eax
mov ecx, esi
call sym.Install.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.004b8307
leave
ret

Function at 0x48f2bc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esi]
mov ebx, dword [ebp + 8]
cmp eax, ecx
je 0x48f2e1
cmp ebx, dword [esi + 0x54]
je 0x48f2e1
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0x54]
cmp ebx, eax
je 0x48f3a3
push edi
test eax, eax
je 0x48f334
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], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor edi, edi
push edi
push edi
push edi
push str.killfocus
push dword [esi + 0x54]
mov ecx, esi
call sym.Install.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
mov dword [esi + 0x54], edi
test ebx, ebx
je 0x48f3a2
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
cmp eax, esi
jne 0x48f3a2
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc8]
test al, al
je 0x48f3a2
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xd4]
test al, al
je 0x48f3a2
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [esi + 0x54], ebx
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor eax, eax
push eax
push eax
push eax
push str.setfocus
push dword [esi + 0x54]
mov ecx, esi
call sym.Install.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x48f5a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xd0]
mov ecx, edi
xor ebx, ebx
call sym.Install.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
test eax, eax
jle 0x48f5ef
push ebx
mov ecx, edi
mov byte [ebp - 1], 0
call sym.Install.exe_public:_void____thiscall_DuiLib::CStdPtrArray::operator___int_const
mov edx, dword [eax]
lea ecx, [ebp - 1]
push ecx
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [edx]
cmp byte [ebp - 1], 0
jne 0x48f650
mov ecx, edi
inc ebx
call sym.Install.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
cmp ebx, eax
jl 0x48f5be
mov eax, dword [ebp + 8]
sub eax, 0x100
je 0x48f6a9
sub eax, 4
je 0x48f654
dec eax
dec eax
jne 0x48f6a0
push dword [ebp + 0xc]
mov word [ebp + 8], ax
lea edi, [ebp + 0xa]
stosw word es:[edi], ax
call fcn.004c1612
pop ecx
mov ecx, dword [esi + 0x50]
push reloc.WS2_32.dll_ioctlsocket
lea edx, [ebp + 8]
push edx
mov word [ebp + 8], ax
mov eax, dword [ecx]
push sym.Install.exe_private:_static_class_DuiLib::CControlUI____stdcall_DuiLib::CPaintManagerUI::__FindControlFromShortcut_class_DuiLib::CControlUI___void__
call dword [eax + 0xfc]
mov esi, eax
test esi, esi
je 0x48f6a0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xf0]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov al, 1
jmp 0x48f6a2
cmp dword [esi + 0x54], 0
je 0x48f6a0
xor eax, eax
push 7
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x10], ax
mov eax, dword [esi + 0x64]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x68]
mov dword [ebp - 0x24], 6
mov dword [ebp - 0x14], eax
call fcn.0048cb7f
mov word [ebp - 0xe], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x48f6a0
cmp dword [esi + 0x54], 0
je 0x48f6f8
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x48f6f8
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xd4]
test al, al
je 0x48f6f8
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
push str.RichEditUI
call dword [eax + 0xc]
push eax
call fcn.004b90da
pop ecx
pop ecx
test eax, eax
je 0x48f6f8
mov ecx, dword [esi + 0x54]
call sym.Install.exe_public:_bool___thiscall_DuiLib::CRichEditUI::IsWantTab_void_
test al, al
jne 0x48f6a0
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setge al
movzx eax, al
push eax
mov ecx, esi
call sym.Install.exe_public:_bool___thiscall_DuiLib::CPaintManagerUI::SetNextTabControl_bool_
jmp 0x48f650
Function at 0x4a1361
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x568cb8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp byte [esi + 0x18], bl
je 0x4a13d2
cmp dword [esi + 0x10], ebx
je 0x4a13d2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
inc edi
lea eax, [edi + edi]
call fcn.004c14d0
mov dword [ebp - 8], esp
cmp esp, ebx
je 0x4a13d2
push edi
push dword [ebp - 8]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push dword [ebp - 8]
add ecx, 0x1b8
call fcn.0048c0fa
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
push ebx
push ebx
push ebx
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call sym.Install.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
xor eax, eax
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b8307
leave
ret 0x10

Function at 0x4a59ff
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x4d4], ebx
je 0x4a5a67
cmp dword [ebp + 8], 0x100
jne 0x4a5a56
cmp word [ebp + 0xc], 0xd
jne 0x4a5a56
cmp byte [esi + 0x4da], bl
je 0x4a5a3d
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x4a5a56
cmp byte [esi + 0x4db], bl
jne 0x4a5a56
mov ecx, dword [esi + 0x40]
cmp ecx, ebx
je 0x4a5a52
push ebx
push ebx
push ebx
push str.return
push esi
call sym.Install.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
xor eax, eax
jmp 0x4a5a6a
mov eax, dword [esi + 0x4d4]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop esi
pop ebx
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x4ae579
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x4ae584
xor eax, eax
ret
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x14]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x4ae63f
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x527ce0]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x527ce0]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x527ce0]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x527ce0]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x527ce0]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x527ce0]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x527ce0]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x527ce0]
inc edx
sub edi, 8
dec esi
jne 0x4ae5a4
pop ebx
test edi, edi
je 0x4ae658
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x527ce0]
inc edx
dec edi
jne 0x4ae643
pop edi
not eax
pop esi
ret

Function at 0x4aeaef
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x4aeb23
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4aeb1e
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x4aeb4b
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x4aeb34
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x10]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.004bd210
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x4af8e8
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x568cb8]
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 0x4af992
movzx ecx, word [esi]
test cx, cx
je 0x4af992
mov eax, esi
mov edx, esi
movzx ecx, cx
cmp cx, 0x2f
je 0x4af926
cmp cx, 0x5c
jne 0x4af928
mov eax, edx
inc edx
inc edx
movzx ecx, word [edx]
test cx, cx
jne 0x4af91a
cmp eax, esi
je 0x4af966
push edi
sub eax, esi
mov edi, eax
sar edi, 1
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004beffc
xor eax, eax
mov word [ebp + edi*2 - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.004af8e8
add esp, 0x14
pop edi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.004b7ee8
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.004b7eba
add esp, 0x10
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004b8307
leave
ret
Function at 0x4b0ec3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4b0f3e
cmp dword [esi + 4], 0xffffffff
jne 0x4b0f3e
push edi
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x53bab0
push edi
call fcn.004b7eba
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop edi
jne 0x4b0f10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x4b0f10
mov eax, 0x2000000
jmp 0x4b0f43
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004ae905
add esp, 0x10
test eax, eax
jne 0x4b0f2e
mov eax, dword [ebp + 0x10]
jmp 0x4b0f43
push eax
call fcn.004b0abf
mov dword [esi], eax
mov eax, dword [0x56e008]
pop ecx
jmp 0x4b0f43
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x4b3dd9
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 8]
push edi
mov edi, eax
and edi, 7
je 0x4b3dfe
cmp eax, edi
jge 0x4b3df6
mov eax, esi
call fcn.004b378d
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
xor ecx, ecx
cmp dword [esi + 8], ecx
jle 0x4b3e20
mov al, byte [esi + 0xc]
shr dword [esi + 0xc], 8
add dword [esi + 8], 0xfffffff8
mov byte [ebp + ecx - 4], al
inc ecx
cmp dword [esi + 8], 0
jg 0x4b3e05
cmp ecx, 4
jge 0x4b3e3f
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x4b3e2d
xor eax, eax
jmp 0x4b3e35
mov dl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, dl
mov byte [ebp + ecx - 4], al
inc ecx
cmp ecx, 4
jl 0x4b3e23
movzx edi, byte [ebp - 3]
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 2]
shl edi, 8
add edi, eax
movzx eax, byte [ebp - 1]
shl eax, 8
add eax, ecx
mov ecx, edi
xor ecx, 0xffff
cmp eax, ecx
je 0x4b3e71
mov eax, str.zlib_corrupt
call fcn.004b13aa
jmp 0x4b3eac
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x4b3e81
mov eax, str.read_past_buffer
jmp 0x4b3e6a
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x4b3e96
mov ecx, edi
call fcn.004b37b8
test eax, eax
je 0x4b3eac
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.004bd210
add dword [esi], edi
add dword [esi + 0x10], edi
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret

Function at 0x4b8307
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x568cb8]
jne 0x4b8311
repz ret
jmp fcn.004c40fc

Function at 0x4bd603
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4bd634
call fcn.004be116
mov dword [eax], esi
call fcn.004be103
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004bb116
add esp, 0x14
push 0x16
pop eax
jmp 0x4bd689
test dword [ebp + 0xc], 0xfffffff9
jne 0x4bd610
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4bd661
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004be129
pop ecx
call fcn.004be103
mov eax, dword [eax]
jmp 0x4bd689
test al, 0x10
jne 0x4bd687
test al, 1
je 0x4bd687
test byte [ebp + 0xc], 2
je 0x4bd687
call fcn.004be116
mov dword [eax], 5
call fcn.004be103
mov dword [eax], 0xd
jmp 0x4bd658
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4d47b2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004c3a37
and dword [ebp - 4], 0
cmp dword [0x56ed14], 0
mov ebx, eax
jne 0x4d4863
push 0x52aab8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4d4914
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4d4914
push eax
call fcn.004c39c5
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x56ed14], eax
call esi
push eax
call fcn.004c39c5
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x56ed18], eax
call esi
push eax
call fcn.004c39c5
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x56ed1c], eax
call esi
push eax
call fcn.004c39c5
pop ecx
mov dword [0x56ed24], eax
test eax, eax
je 0x4d4863
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004c39c5
pop ecx
mov dword [0x56ed20], eax
mov eax, dword [0x56ed20]
cmp eax, ebx
je 0x4d48bb
cmp dword [0x56ed24], ebx
je 0x4d48bb
push eax
call fcn.004c3a40
push dword [0x56ed24]
mov esi, eax
call fcn.004c3a40
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4d48bb
test edi, edi
je 0x4d48bb
call esi
test eax, eax
je 0x4d48b2
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4d48b2
test byte [ebp - 0xc], 1
jne 0x4d48bb
or dword [ebp + 0x10], 0x200000
jmp 0x4d48f4
mov eax, dword [0x56ed18]
cmp eax, ebx
je 0x4d48f4
push eax
call fcn.004c3a40
pop ecx
test eax, eax
je 0x4d48f4
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4d48f4
mov eax, dword [0x56ed1c]
cmp eax, ebx
je 0x4d48f4
push eax
call fcn.004c3a40
pop ecx
test eax, eax
je 0x4d48f4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x56ed14]
call fcn.004c3a40
pop ecx
test eax, eax
je 0x4d4914
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4d4916
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4d93e0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x568cb8]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4d9432
mov eax, dword [esp]
cmp al, 2
jne 0x4d942c
shr eax, 8
cmp al, 2
jne 0x4d942c
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004b8307
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.004b8307
add esp, 0x194
ret
Function at 0x4dae40
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x4dae62
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4dae56
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x4dae92
cmp dword [esi + 8], 0
jne 0x4dae85
mov ecx, dword [eax + 8]
push 0x53b6d8
push ecx
call fcn.004be210
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x4dae85
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.004be4fb
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4daeb4
mov eax, dword [esi + 8]
test eax, eax
je 0x4daeae
push eax
call fcn.004b947d
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret