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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3515
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x53fbb0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xdc], ecx
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0xdc]
cmp dword [eax + 0x668], 0
je 0x45604e
mov ecx, dword [ebp - 0xdc]
mov ecx, dword [ecx + 0x668]
call dword [0x51575c]
movzx edx, al
test edx, edx
jne 0x45604e
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xdc]
cmp dword [eax + 0x66c], 0
je 0x456131
lea ecx, [ebp - 0xd8]
push ecx
mov edx, dword [ebp - 0xdc]
mov eax, dword [edx + 0x66c]
mov ecx, dword [ebp - 0xdc]
mov ecx, dword [ecx + 0x66c]
mov edx, dword [eax]
mov eax, dword [edx + 0x28]
call eax
mov dword [ebp - 0xe0], eax
mov ecx, dword [ebp - 0xe0]
mov dword [ebp - 0xe4], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xe4]
call dword [0x51578c]
push eax
lea ecx, [ebp - 0x34]
call fcn.004016c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd8]
call dword [0x515788]
lea ecx, [ebp - 0x34]
call fcn.00401780
push eax
call fcn.00490d5e
add esp, 4
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 3
jg 0x4560e8
mov dword [ebp - 0x10], 0
jmp 0x456122
push 3
push 0
lea edx, [ebp - 0x54]
push edx
lea ecx, [ebp - 0x34]
call fcn.004140d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x54]
call fcn.00401780
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x456116
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x54]
call fcn.00401740
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401740
mov eax, dword [ebp - 0xdc]
cmp dword [eax + 0x664], 0
je 0x456190
cmp dword [ebp - 0x10], 0
je 0x45616c
push 1
mov ecx, dword [ebp - 0xdc]
mov edx, dword [ecx + 0x664]
mov eax, dword [ebp - 0xdc]
mov ecx, dword [eax + 0x664]
mov edx, dword [edx]
mov eax, dword [edx + 0xd8]
call eax
jmp 0x456190
push 0
mov ecx, dword [ebp - 0xdc]
mov edx, dword [ecx + 0x664]
mov eax, dword [ebp - 0xdc]
mov ecx, dword [eax + 0x664]
mov edx, dword [edx]
mov eax, dword [edx + 0xd8]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0049115e
mov esp, ebp
pop ebp
ret
Function at 0x4561b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3561
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x53fbb0]
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 + 0x66c], 0
jne 0x4561f5
jmp 0x4563f7
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0xf0]
push ecx
mov edx, dword [ebp - 0xf4]
mov eax, dword [edx + 0x66c]
mov ecx, dword [ebp - 0xf4]
mov ecx, dword [ecx + 0x66c]
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 [0x51578c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.004016c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xf0]
call dword [0x515788]
lea ecx, [ebp - 0x4c]
call fcn.00401780
push eax
call fcn.00490d5e
add esp, 4
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 3
jg 0x456283
mov dword [ebp - 0x10], 0
jmp 0x4562bd
push 3
push 0
lea edx, [ebp - 0x6c]
push edx
lea ecx, [ebp - 0x4c]
call fcn.004140d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x6c]
call fcn.00401780
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4562b1
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x6c]
call fcn.00401740
cmp dword [ebp - 0x10], 0
jne 0x45630a
mov eax, dword [ebp - 0xf4]
cmp dword [eax + 0x664], 0
je 0x4562f6
push 0
mov ecx, dword [ebp - 0xf4]
mov edx, dword [ecx + 0x664]
mov eax, dword [ebp - 0xf4]
mov ecx, dword [eax + 0x664]
mov edx, dword [edx]
mov eax, dword [edx + 0xd8]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00401740
jmp 0x4563f7
mov ecx, dword [ebp - 0xf4]
cmp dword [ecx + 0x668], 0
je 0x45639e
mov edx, dword [ebp - 0xf4]
mov ecx, dword [edx + 0x668]
call dword [0x51575c]
movzx eax, al
test eax, eax
je 0x45636b
mov ecx, dword [ebp - 0xf4]
cmp dword [ecx + 0x664], 0
je 0x456369
push 1
mov edx, dword [ebp - 0xf4]
mov eax, dword [edx + 0x664]
mov ecx, dword [ebp - 0xf4]
mov ecx, dword [ecx + 0x664]
mov edx, dword [eax]
mov eax, dword [edx + 0xd8]
call eax
jmp 0x45639e
mov ecx, dword [ebp - 0xf4]
cmp dword [ecx + 0x664], 0
je 0x45639e
push 0
mov edx, dword [ebp - 0xf4]
mov eax, dword [edx + 0x664]
mov ecx, dword [ebp - 0xf4]
mov ecx, dword [ecx + 0x664]
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.004196d0
add esp, 8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.00403bb0
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.00403c40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00401740
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049115e
mov esp, ebp
pop ebp
ret
Function at 0x4568b0
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 0x4568c9
mov eax, 1
jmp 0x4569d2
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4ff9e8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4569cd
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push 0
push 0x4ffa3c
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 0x456924
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x4569d2
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0045785b
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4569c3
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 0x45698f
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.00490d06
add esp, 4
mov eax, 1
jmp 0x4569d2
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00497532
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.00490d06
add esp, 4
xor eax, eax
jmp 0x4569d2
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 0x4576b5
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x543f3c], 0
push esi
jne 0x457628
call fcn.0045754e
test eax, eax
je 0x45766b
mov eax, dword [0x543f3c]
cmp eax, 1
jne 0x457649
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x45766b
pop esi
ret
push eax
call dword [0x543f44]
test eax, eax
jne 0x4576b3
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 0x45766f
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x543f3c]
call dword [0x543f44]
mov edi, eax
test edi, edi
je 0x457694
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4576b0
mov edi, esi
add esi, 0xff0
push edi
push dword [0x543f3c]
call dword [0x543f40]
add edi, 0x10
cmp edi, esi
jb 0x45769c
mov eax, edi
pop edi
pop esi
ret
jmp 0x457615
Function at 0x463a1f
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 0x463a35
push 8
pop edi
push 2
call esi
test ax, ax
jge 0x463a41
or edi, 1
push 1
call esi
test ax, ax
jge 0x463a4d
or edi, 2
push 0x10
call esi
test ax, ax
jge 0x463a59
or edi, 4
push 0x12
call esi
test ax, ax
jge 0x463a65
or edi, 0x20
mov eax, edi
pop edi
pop esi
ret

Function at 0x463be3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x53fbb0]
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.00491200
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.0049115e
leave
ret

Function at 0x46618c
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 0x4661b1
cmp ebx, dword [esi + 0x54]
je 0x4661b1
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0x54]
cmp ebx, eax
je 0x466273
push edi
test eax, eax
je 0x466204
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 0x466272
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
cmp eax, esi
jne 0x466272
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc8]
test al, al
je 0x466272
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xd4]
test al, al
je 0x466272
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 0x466470
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 0x4664bf
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 0x466520
mov ecx, edi
inc ebx
call sym.Install.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
cmp ebx, eax
jl 0x46648e
mov eax, dword [ebp + 8]
sub eax, 0x100
je 0x466579
sub eax, 4
je 0x466524
dec eax
dec eax
jne 0x466570
push dword [ebp + 0xc]
mov word [ebp + 8], ax
lea edi, [ebp + 0xa]
stosw word es:[edi], ax
call fcn.00498cea
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 0x466570
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 0x466572
cmp dword [esi + 0x54], 0
je 0x466570
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.00463a1f
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 0x466570
cmp dword [esi + 0x54], 0
je 0x4665c8
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x4665c8
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xd4]
test al, al
je 0x4665c8
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
push str.RichEditUI
call dword [eax + 0xc]
push eax
call fcn.00491ef3
pop ecx
pop ecx
test eax, eax
je 0x4665c8
mov ecx, dword [esi + 0x54]
call sym.Install.exe_public:_bool___thiscall_DuiLib::CRichEditUI::IsWantTab_void_
test al, al
jne 0x466570
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 0x466520
Function at 0x47822a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x53fbb0]
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 0x47829b
cmp dword [esi + 0x10], ebx
je 0x47829b
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
inc edi
lea eax, [edi + edi]
call fcn.00499fb0
mov dword [ebp - 8], esp
cmp esp, ebx
je 0x47829b
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.00462f9a
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.0049115e
leave
ret 0x10

Function at 0x47c8de
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 0x47c946
cmp dword [ebp + 8], 0x100
jne 0x47c935
cmp word [ebp + 0xc], 0xd
jne 0x47c935
cmp byte [esi + 0x4da], bl
je 0x47c91c
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x47c935
cmp byte [esi + 0x4db], bl
jne 0x47c935
mov ecx, dword [esi + 0x40]
cmp ecx, ebx
je 0x47c931
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 0x47c949
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 0x485449
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x485454
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 0x48550f
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 + 0x507720]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x507720]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x507720]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x507720]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x507720]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x507720]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x507720]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x507720]
inc edx
sub edi, 8
dec esi
jne 0x485474
pop ebx
test edi, edi
je 0x485528
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x507720]
inc edx
dec edi
jne 0x485513
pop edi
not eax
pop esi
ret

Function at 0x4859bf
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 0x4859f3
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 0x4859ee
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x485a1b
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x485a04
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x10]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.00496960
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 0x4867b8
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x53fbb0]
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 0x486862
movzx ecx, word [esi]
test cx, cx
je 0x486862
mov eax, esi
mov edx, esi
movzx ecx, cx
cmp cx, 0x2f
je 0x4867f6
cmp cx, 0x5c
jne 0x4867f8
mov eax, edx
inc edx
inc edx
movzx ecx, word [edx]
test cx, cx
jne 0x4867ea
cmp eax, esi
je 0x486836
push edi
sub eax, esi
mov edi, eax
sar edi, 1
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004975c0
xor eax, eax
mov word [ebp + edi*2 - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.004867b8
add esp, 0x14
pop edi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.00490d3f
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00490d11
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.0049115e
leave
ret
Function at 0x487d93
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x487e0e
cmp dword [esi + 4], 0xffffffff
jne 0x487e0e
push edi
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x5156c0
push edi
call fcn.00490d11
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop edi
jne 0x487de0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x487de0
mov eax, 0x2000000
jmp 0x487e13
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004857d5
add esp, 0x10
test eax, eax
jne 0x487dfe
mov eax, dword [ebp + 0x10]
jmp 0x487e13
push eax
call fcn.0048798f
mov dword [esi], eax
mov eax, dword [0x544640]
pop ecx
jmp 0x487e13
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x48aca9
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 0x48acce
cmp eax, edi
jge 0x48acc6
mov eax, esi
call fcn.0048a65d
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
xor ecx, ecx
cmp dword [esi + 8], ecx
jle 0x48acf0
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 0x48acd5
cmp ecx, 4
jge 0x48ad0f
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x48acfd
xor eax, eax
jmp 0x48ad05
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 0x48acf3
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 0x48ad41
mov eax, str.zlib_corrupt
call fcn.0048827a
jmp 0x48ad7c
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x48ad51
mov eax, str.read_past_buffer
jmp 0x48ad3a
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x48ad66
mov ecx, edi
call fcn.0048a688
test eax, eax
je 0x48ad7c
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.00496960
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 0x48f090
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f52a8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x53fbb0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x14]
call fcn.004e6c10
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004e6be0
push eax
mov eax, dword [ebp + 8]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x48f0f8
mov byte [ebp - 0x15], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004e6bf0
mov al, byte [ebp - 0x15]
jmp 0x48f12e
push 0
push 0
push 0
lea ecx, [ebp - 0x14]
call fcn.004e6bd0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov dword [ebp - 0x10], eax
xor ecx, ecx
cmp dword [ebp - 0x10], 0
sete cl
mov byte [ebp - 0x16], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004e6bf0
mov al, byte [ebp - 0x16]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x48f1c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f52a8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x53fbb0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x14]
call fcn.004e6c10
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004e6be0
push eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x48f227
mov byte [ebp - 0x15], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004e6bf0
mov al, byte [ebp - 0x15]
jmp 0x48f269
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x14]
call fcn.004e6bd0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
xor eax, eax
cmp dword [ebp - 0x10], 0
sete al
mov byte [ebp - 0x16], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004e6bf0
mov al, byte [ebp - 0x16]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret