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

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ebp, dword [esp + 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
call ebx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push 0
push 2
push ecx
push edx
call fcn.004f3160
push 0
push 0x3e8
push edx
push eax
call fcn.00446110
mov dword [esp + 0x18], eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x20], edx
call esi
push 0
call edi
lea ecx, [esp + 0x20]
push ecx
call esi
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
sub ecx, eax
mov eax, dword [esp + 0x24]
sbb eax, edx
mov edx, dword [esp + 0x1c]
cmp eax, edx
jl 0x488b16
jg 0x488b45
cmp ecx, dword [esp + 0x18]
jb 0x488b16
lea edx, [esp + 0x10]
push 1
push edx
push 0x64
call fcn.004828f0
mov ecx, eax
call fcn.004835d0
test dword [esp + 0x10], ebp
je 0x488b75
call dword [sym.imp.WINMM.dll_timeGetTime]
sub eax, dword [esp + 0x14]
cmp eax, 0x7d0
jb 0x488adf
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x48a1d0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
mov dword [esp + 0x14], ecx
push edi
xor ebp, ebp
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x40]
mov dword [esp + 0x3c], ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [esp + 0x44]
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x10], esi
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x48]
cmp esi, eax
mov dword [esp + 0x1c], eax
jae 0x48a356
jmp 0x48a228
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push 0x1c
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x48a356
cmp dword [esp + 0x30], 0x1000
jne 0x48a33b
test byte [esp + 0x34], 1
jne 0x48a33b
mov edx, dword [esp + 0x2c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x48a356
mov ecx, dword [esp + 0x2c]
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push eax
push 0x40
push ecx
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [esp + 0x2c]
mov edi, ebx
mov edx, ecx
lea eax, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
mov eax, dword [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esp + 0x68]
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x64]
push ebp
push esi
push ecx
push edi
push ebx
call fcn.0048a750
mov ebp, eax
add esp, 0x14
cmp ebp, 0xffffffff
je 0x48a32b
mov edx, dword [esp + 0x10]
lea eax, [edx + ebp]
cmp eax, edi
je 0x48a30c
mov ecx, dword [esp + 0x18]
push 5
push esi
push eax
call fcn.00489f70
add ebp, esi
cmp ebp, 0xffffffff
je 0x48a32b
mov eax, dword [esp + 0x2c]
push ebp
push esi
push eax
push edi
push ebx
call fcn.0048a750
mov ebp, eax
add esp, 0x14
cmp ebp, 0xffffffff
jne 0x48a2f4
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
lea eax, [edx + ecx]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
mov dword [esp + 0x10], eax
jb 0x48a224
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 8
Function at 0x48ab90
Capabilities:
Copy file
Get common file path

Disassembly:
sub esp, 0x24c
push ebx
push ebp
push esi
xor ebx, ebx
push edi
lea ecx, [esp + 0x18]
push ebx
xor eax, eax
push ecx
lea edx, [esp + 0x1c]
push 4
mov dword [esp + 0x30], eax
push edx
push ebx
mov dword [esp + 0x3c], eax
push ebx
push 0x80022054
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x48], eax
mov dword [esp + 0x30], ebx
call fcn.004828f0
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x48abe4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24c
ret
push str.win32k.sys
call fcn.0048af40
add esp, 4
cmp eax, ebx
mov dword [esp + 0x1c], eax
jne 0x48ac06
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24c
ret
mov ebp, dword [esp + 0x14]
lea ecx, [esp + 0x5c]
push 0x200
push ecx
sub ebp, eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x48ac2b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24c
ret
mov edi, str._system32win32k.sys
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x5c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.dummy.dat
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push 0x5da458
rep movsb byte es:[edi], byte [esi]
push eax
call sub.MFC42.DLL_operator_1
mov ecx, dword [eax]
push ebx
lea edx, [esp + 0x60]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
push str.dummy.dat
lea eax, [esp + 0x14]
push 0x5da458
push eax
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea ecx, [esp + 0x10]
mov ebx, eax
call sub.MFC42.DLL_CString::CString
test ebx, ebx
jne 0x48acbe
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24c
ret
mov ecx, dword [esp + 0x260]
lea edx, [ebx + ecx*4 - 0x4000]
mov ecx, dword [ebx + 0x3c]
add ecx, ebx
mov eax, dword [edx + ebp]
mov edx, dword [ecx + 0x34]
mov ecx, dword [esp + 0x1c]
sub eax, edx
xor edi, edi
lea ebp, [eax + ecx]
lea esi, [eax + ebx]
lea edx, [esi + edi]
push edx
call fcn.00489140
add edi, eax
add esp, 4
cmp edi, 5
jl 0x48ace5
mov eax, dword [esp + 0x264]
test eax, eax
jne 0x48ad0a
mov eax, dword [esp + 0x260]
mov ecx, edi
mov dword [esp + 0x58], edi
mov edx, ecx
lea edi, [esp + 0x38]
shr ecx, 2
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [esp + 0x18]
push 0
push eax
lea ecx, [esp + 0x28]
push 0x10
push ecx
lea edx, [esp + 0x40]
push 0x2c
push edx
push 0x80022050
call fcn.004828f0
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x24c
ret
Function at 0x48afa0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 4], eax
lea edi, [ecx + ecx + 2]
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x48afd9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push ebx
push esi
call dword [sym.imp.MSVCRT.dll_mbstowcs]
push esi
call dword [sym.imp.MSVCRT.dll__wcslwr]
add esp, 0x10
mov dword [ebp - 8], eax
mov dword [ebp + 8], 0
mov eax, dword fs:[0x30]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
cmp ecx, 1
mov eax, dword [eax + 0xc]
lea edx, [eax + 0xc]
mov dword [ebp + 8], edx
jne 0x48b01a
mov ebx, dword [edx]
mov dword [ebp + 8], edx
jmp 0x48b040
cmp ecx, 2
jne 0x48b02b
add eax, 0x14
mov edx, eax
mov dword [ebp + 8], eax
mov ebx, dword [edx]
jmp 0x48b040
cmp ecx, 3
jne 0x48b036
add eax, 0x1c
mov dword [ebp + 8], eax
mov edx, dword [ebp + 8]
mov ebx, dword [edx]
jmp 0x48b040
mov ecx, dword [ebp + 0xc]
mov esi, ebx
lea eax, [ecx*8]
sub esi, eax
mov ecx, 0x12
add esi, 8
lea edi, [ebp - 0x50]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x250]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_wcscpy]
lea edx, [ebp - 0x250]
push edx
call dword [sym.imp.MSVCRT.dll__wcslwr]
mov ecx, dword [ebp - 8]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 0x14
test eax, eax
je 0x48b09e
mov edx, dword [ebx + 4]
mov eax, dword [ebx]
mov dword [ebp - 4], 1
mov dword [edx], eax
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [ecx + 4], edx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x50]
cmp eax, 1
je 0x48b0bb
cmp eax, 2
jne 0x48b0b3
mov ebx, dword [ebp - 0x48]
jmp 0x48b0bb
cmp eax, 3
jne 0x48b0bb
mov ebx, dword [ebp - 0x40]
cmp ebx, dword [ebp + 8]
jne 0x48b03d
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x48bae0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
mov ecx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x1c]
lea ebx, [esi + 0xa]
push eax
push 0x40
push ebx
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x48bb35
mov ecx, esi
mov esi, dword [esp + 0x18]
mov edx, ecx
push edi
mov edi, ebp
lea eax, [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x48bb40
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x7d4
push esi
mov esi, ecx
push edi
xor edx, edx
mov ecx, 0x1f3
xor eax, eax
lea edi, [esp + 0x10]
mov dword [esp + 0xc], edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x7e0]
mov dword [esp + 8], edx
push eax
push edx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push 0x7d0
push edx
push eax
call sub.PSAPI.DLL_EnumProcessModules
mov eax, dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048b860
pop edi
pop esi
add esp, 0x7d4
ret 4

Function at 0x48bc70
Capabilities:
Allocate or change rwx memory
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55a978
push 0x44632a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x44], edi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x38], esi
cmp esi, 0xffffffff
je 0x48bdb3
push ebx
push ebx
push ebx
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x48bdb3
push ebx
push ebx
push ebx
push 4
mov ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
mov dword [ebp - 0x20], ebx
test ebx, ebx
je 0x48bdb3
mov dword [ebp - 0x2c], ebx
cmp word [ebx], 0x5a4d
jne 0x48bdb3
mov esi, dword [ebx + 0x3c]
add esi, ebx
mov dword [ebp - 0x34], esi
cmp dword [esi], 0x4550
jne 0x48bdb0
xor eax, eax
mov ax, word [esi + 6]
mov dword [ebp - 0x24], eax
push 0x40
push 0x1000
mov edx, dword [esi + 0x50]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [edi + 0xc], eax
mov ecx, dword [esi + 0x50]
mov dword [edi + 0x10], ecx
test eax, eax
je 0x48bdb0
lea edx, [esi + 0xf8]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x3c], edx
mov ecx, dword [edx + 0xc]
mov esi, ebx
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x40], 0
mov ecx, dword [ebp - 0x40]
cmp ecx, dword [ebp - 0x24]
jae 0x48bda9
mov ecx, dword [edx + 0x10]
mov esi, dword [edx + 0x14]
add esi, ebx
mov edi, dword [edx + 0xc]
mov eax, dword [ebp - 0x44]
add edi, dword [eax + 0xc]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add edx, 0x28
mov dword [ebp - 0x3c], edx
inc dword [ebp - 0x40]
jmp 0x48bd77
mov dword [ebp - 0x1c], 1
mov esi, dword [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.0048bddb
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x48ed70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x502f90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ecx
lea ecx, [esp + 0x3c]
mov eax, esp
mov dword [esp + 4], esp
lea edx, [esp + 0x2c]
push ecx
push edx
push eax
mov dword [esp + 0x2c], 5
call sub.MFC42.DLL_operator
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0xc], esp
push eax
mov byte [esp + 0x28], 6
call sub.MFC42.DLL_CString::CString_4
mov byte [esp + 0x24], 5
call fcn.0048f2c0
mov ecx, eax
call fcn.0048fcd0
push ecx
lea edx, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 8], esp
push edx
call sub.MFC42.DLL_CString::CString_4
push ecx
lea eax, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 8], esp
push eax
mov byte [esp + 0x28], 8
call sub.MFC42.DLL_CString::CString_4
push ecx
lea edx, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
mov byte [esp + 0x2c], 9
call sub.MFC42.DLL_CString::CString_4
push ecx
lea eax, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
mov byte [esp + 0x30], 0xa
call sub.MFC42.DLL_CString::CString_4
push ecx
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
mov byte [esp + 0x34], 0xb
call sub.MFC42.DLL_CString::CString_4
mov byte [esp + 0x30], 5
call fcn.0048f040
add esp, 0x14
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x1c], 1
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x48fd40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 8]
push esi
push eax
push 0x2003f
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x48fd7d
xor eax, eax
pop esi
add esp, 0xc
ret 4
push 0x104
call sub.MFC42.DLL_operatornew
add esp, 4
lea ecx, [esp + 4]
mov esi, eax
mov eax, dword [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push esi
push edx
push 0
push 0x5961b4
push eax
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push esi
je 0x48fdc7
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
pop esi
add esp, 0xc
ret 4
mov ecx, dword [esp + 0x18]
call sub.MFC42.DLL_CString::operator_2
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 1
pop esi
add esp, 0xc
ret 4

Function at 0x491520
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push edi
push 0x14
call sub.MFC42.DLL_operatornew
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x491548
mov dword [eax], 0x55af5c
mov dword [eax + 4], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 8], ebx
mov edi, eax
jmp 0x49154a
xor edi, edi
push edi
push 0x4915b0
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
je 0x49159f
cmp dword [edi + 8], ebx
jle 0x491592
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov eax, dword [edi + 4]
lea ecx, [esp + 0x14]
push ecx
mov esi, dword [eax + ebx*4]
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [esp + 0x14], ebp
jne 0x491586
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 8]
inc ebx
cmp ebx, eax
jl 0x491565
pop esi
xor ebx, ebx
pop ebp
cmp edi, ebx
je 0x49159f
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 4]
pop edi
pop ebx
ret 4
Function at 0x4918b0
Capabilities:
Encrypt data using blowfish

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x40
push ebx
push ebp
mov ebp, ecx
mov ebx, dword [esp + 0x50]
mov ecx, dword [eax]
cmp ebx, 1
mov dword [ebp], ecx
mov edx, dword [eax + 4]
mov dword [ebp + 4], edx
mov ecx, dword [eax]
mov dword [ebp + 8], ecx
mov edx, dword [eax + 4]
mov dword [ebp + 0xc], edx
jae 0x4918f1
lea eax, [esp + 0x54]
push 0x588430
push eax
mov dword [esp + 0x5c], str.Incorrect_key_length
call sub.MSVCRT.dll__CxxThrowException
cmp ebx, 0x38
jbe 0x4918fb
mov ebx, 0x38
mov ecx, ebx
push esi
mov esi, dword [esp + 0x50]
mov edx, ecx
push edi
lea edi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp + 0x10]
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x12
mov esi, 0x55af70
mov edi, edx
mov dword [esp + 0x58], 0x12
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp + 0x58]
mov ecx, 0x400
mov esi, 0x55afb8
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x18]
mov esi, edx
xor edx, edx
mov dword [esp + 0x5c], 4
mov edi, edx
xor edx, edx
mov dl, byte [ecx]
shl edi, 8
or edx, edi
inc ecx
inc eax
cmp eax, ebx
jne 0x491966
xor eax, eax
lea ecx, [esp + 0x18]
mov edi, dword [esp + 0x5c]
dec edi
mov dword [esp + 0x5c], edi
jne 0x49194f
mov edi, dword [esi]
add esi, 4
xor edi, edx
mov edx, dword [esp + 0x58]
mov dword [esi - 4], edi
dec edx
mov dword [esp + 0x58], edx
jne 0x491945
xor edi, edi
lea esi, [ebp + 0x10]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
call fcn.00491a10
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esi], ecx
add esi, 4
inc edi
mov dword [esi], edx
inc edi
add esi, 4
cmp edi, 0x12
jb 0x491993
lea eax, [ebp + 0x58]
mov dword [esp + 0x5c], 4
mov ebx, eax
xor edi, edi
mov esi, ebx
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
call fcn.00491a10
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esi], ecx
add esi, 4
inc edi
mov dword [esi], edx
inc edi
add esi, 4
cmp edi, 0x100
jl 0x4919c9
mov eax, dword [esp + 0x5c]
add ebx, 0x400
dec eax
mov dword [esp + 0x5c], eax
jne 0x4919c5
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 0xc
Function at 0x492b00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x50352f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x1c]
push ebp
push esi
push edi
lea esi, [eax + 7]
mov edi, ecx
shr esi, 3
shl esi, 3
push esi
mov dword [esp + 0x10], 0
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
add esp, 4
mov ebp, eax
push ecx
push esi
push ebp
push edx
mov ecx, edi
call fcn.00492640
call sub.MFC42.DLL_AfxGetEmptyString
mov eax, dword [eax]
push ebp
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], eax
call sub.MFC42.DLL_CString::operator_2
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebp
and ecx, 3
mov dword [esp + 0x1c], 1
rep stosb byte es:[edi], al
call sub.MFC42.DLL_operatordelete
mov esi, dword [esp + 0x24]
add esp, 4
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call sub.MFC42.DLL_CString::CString_4
mov dword [esp + 0xc], 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10

Function at 0x492bd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x503567
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
mov eax, dword [eax - 8]
lea edi, [eax + 0xa]
push edi
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x30]
add esp, 4
mov esi, eax
lea edx, [esp + 0x28]
push ecx
push edi
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call sub.MFC42.DLL_CString::CString_4
mov ecx, ebp
call fcn.00492a40
call sub.MFC42.DLL_AfxGetEmptyString
mov eax, dword [eax]
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], eax
call sub.MFC42.DLL_CString::operator_2
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
mov byte [esp + 0x20], 2
rep stosb byte es:[edi], al
call sub.MFC42.DLL_operatordelete
mov esi, dword [esp + 0x28]
add esp, 4
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call sub.MFC42.DLL_CString::CString_4
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x14
ret 0xc

Function at 0x495fe0
Capabilities:
Encode data using xor

Disassembly:
push edi
push 0x5936d4
push 0x5fea58
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x49602b
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fputc]
push esi
xor esi, esi
xor eax, eax
push edi
mov al, byte [esi + 0x55d0c8]
xor eax, 0x7d
push eax
call ebx
add esp, 8
inc esi
cmp esi, 0x9f10
jb 0x496004
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop esi
pop ebx
pop edi
ret