joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d6a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4224c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov eax, dword [esp + 0x24]
push 0x42d470
and eax, 0xffff
mov dword [esp + 0x20], 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x40d703
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40d735
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esp + 8]
mov esi, eax
call sub.MFC42.DLL_CFile::CFile
mov ecx, dword [esp + 0x2c]
push 0
push 0x1001
push ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x40d785
push esi
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CFile::Write
lea ecx, [esp + 8]
call sub.MFC42.DLL_CFile::Close
lea ecx, [esp + 8]
mov byte [esp + 0x20], 0
call fcn.00420414
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop edi
mov al, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 8

Function at 0x40deb0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4225c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], esp
push eax
call fcn.004156d0
add esp, 4
lea ecx, [ebp - 0x14]
push str.updateupdate.exe
lea edx, [ebp - 0x1c]
push ecx
push edx
mov dword [ebp - 4], 0
call sub.MFC42.DLL_operator_2
lea eax, [ebp - 0x14]
push 0x42d4ec
lea ecx, [ebp - 0x18]
push eax
push ecx
mov byte [ebp - 4], 1
call sub.MFC42.DLL_operator_2
push 1
push ecx
mov bl, 3
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0x42d4e0
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString_2
lea edx, [ebp - 0x20]
mov byte [ebp - 4], 4
push edx
call fcn.004156d0
add esp, 4
push ecx
mov byte [ebp - 4], 5
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.LogsLancher.txt
push eax
push ecx
call sub.MFC42.DLL_operator_2
mov byte [ebp - 4], 6
call fcn.00414ee0
add esp, 0xc
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40eac0
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edi
xor edi, edi
call fcn.0041e5d0
mov eax, dword [eax + 0x30]
push eax
push 1
push edi
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov esi, eax
test esi, esi
je 0x40eaf5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40eaee
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

Function at 0x40ebe0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4227e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
mov esi, ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CFileFind::CFileFind
lea eax, [esp + 4]
mov dword [esp + 0x30], 0
push eax
call fcn.004156d0
lea edx, [esi + 0xf8]
mov ecx, esp
mov dword [esp + 0xc], esp
push edx
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::CString_3
push 0x94
mov ecx, esi
call fcn.0040d6a0
lea ecx, [esp + 4]
mov byte [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.004204e0
mov ecx, dword [esp + 0x28]
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x412be0
Capabilities:
Access peb ldr_data
Create process on windows
Create process suspended

Disassembly:
push 0xffffffffffffffff
push 0x4230d1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x48]
rep stosd dword es:[edi], eax
mov eax, 0xc
xor ebx, ebx
lea ecx, [esp + 0xc]
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], 1
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call sub.MFC42.DLL_CString::CString_4
mov esi, dword [esp + 0x9c]
lea ecx, [esp + 0xc]
push esi
mov dword [esp + 0x98], ebx
call sub.MFC42.DLL_CString::operator
push 1
push ecx
lea ecx, [esp + 0x14]
mov eax, esp
mov dword [esp + 0x20], esp
push ecx
push 0x42d92c
push eax
call sub.MFC42.DLL_operator_1
lea edx, [esp + 0x18]
mov byte [esp + 0x9c], 1
push edx
call fcn.004156d0
mov ecx, esp
mov dword [esp + 0x28], esp
push str.LogsLancher.txt
push eax
push ecx
mov byte [esp + 0xac], 2
call sub.MFC42.DLL_operator_2
mov byte [esp + 0xa0], 3
call fcn.00414ee0
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x94], bl
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x38]
lea eax, [esp + 0x48]
push edx
push eax
push ebx
push ebx
push 8
lea ecx, [esp + 0x34]
push ebx
lea edx, [esp + 0x44]
push ecx
push edx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
lea eax, [esp + 0xc]
push esi
push 0x42d914
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0xc]
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call sub.MFC42.DLL_CString::CString_3
lea eax, [esp + 0x18]
mov byte [esp + 0x9c], 4
push eax
call fcn.004156d0
mov ecx, esp
mov dword [esp + 0x24], esp
push str.LogsLancher.txt
push eax
push ecx
mov byte [esp + 0xac], 5
call sub.MFC42.DLL_operator_2
mov byte [esp + 0xa0], 6
call fcn.00414ee0
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x94], bl
call sub.MFC42.DLL_CString::CString
cmp esi, ebx
je 0x412dab
mov edx, dword [esp + 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x38]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 0x38]
push eax
call esi
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x94], 0xffffffff
mov dword [ecx], edx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
mov al, 1
jmp 0x412dc1
lea ecx, [esp + 0xc]
mov dword [esp + 0x94], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x8c
ret 8
Function at 0x4139d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4231a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov eax, dword [esp + 0x44]
mov dword [esp], 0x42da10
test eax, eax
mov dword [esp + 4], 0x42da0c
mov dword [esp + 8], 0x42da08
mov dword [esp + 0xc], 0x42da04
mov dword [esp + 0x10], 0x42da00
mov dword [esp + 0x14], 0x42d9fc
mov dword [esp + 0x18], 0x42d9f8
mov dword [esp + 0x1c], 0x42d9f4
mov dword [esp + 0x20], 0x42d9f0
mov dword [esp + 0x24], 0x42d9ec
mov dword [esp + 0x28], 0x42d9e8
mov dword [esp + 0x2c], 0x42d9e4
mov dword [esp + 0x30], 0x42e820
jne 0x413a5d
mov eax, 0x42e820
push ebx
push esi
push edi
push eax
lea ecx, [esp + 0x54]
call sub.MFC42.DLL_CString::CString_2
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
xor esi, esi
lea edi, [esp + 0xc]
mov eax, dword [edi]
push eax
mov eax, dword [esp + 0x54]
push eax
call ebx
add esp, 8
test eax, eax
je 0x413ab6
inc esi
add edi, 4
cmp esi, 0xd
jb 0x413a76
lea ecx, [esp + 0x50]
mov dword [esp + 0x48], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret
lea ecx, [esp + 0x50]
inc esi
mov dword [esp + 0x48], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x40]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret

Function at 0x413bd0
Capabilities:
Create directory

Disassembly:
sub esp, 0x100
push ebx
mov ebx, dword [esp + 0x108]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_strncpy]
push esi
push edi
mov edi, ebx
push 0x5c
push edi
call fcn.00413fe0
mov esi, eax
add esp, 8
test esi, esi
je 0x413c66
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, esi
sub eax, ebx
cmp eax, 0xff
jbe 0x413c4f
mov eax, 0xff
push eax
lea eax, [esp + 0x14]
push ebx
push eax
call ebp
lea ecx, [esp + 0x1c]
push 0
push ecx
call dword [sym.imp.MSVCRT.dll__access]
add esp, 0x14
cmp eax, 0xffffffff
jne 0x413c4a
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.MSVCRT.dll__mkdir]
add esp, 4
test eax, eax
jne 0x413c59
lea edi, [esi + 1]
jmp 0x413be9
cmp eax, 1
jge 0x413c1a
lea edi, [esi + 1]
jmp 0x413be9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x100
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
Function at 0x4141b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423248
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp esi, ebx
mov dword [ebp - 0x10], esp
jne 0x4141ed
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFile::CFile
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_AFX_EXCEPTION_LINK::AFX_EXCEPTION_LINK
push ebx
push 0x9001
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CFile::Open
mov edi, eax
cmp edi, ebx
je 0x414252
mov eax, dword [ebp + 0xc]
cmp eax, ebx
jle 0x414252
push eax
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFile::SetLength
jmp 0x414252
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_AfxTryCleanup
cmp edi, ebx
jne 0x414290
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00413ae0
mov ecx, dword [eax]
mov byte [ebp - 4], 4
push ecx
push esi
push str.Create_file___s__failed.__s
push 2
call fcn.004135f0
add esp, 0x18
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x4142a4
cmp eax, 0xffffffff
je 0x4142a4
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFile::Close
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.00420414
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4142d0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, 1
test esi, esi
je 0x414306
cmp esi, 0xffffffff
je 0x414306
mov eax, dword [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x414301
xor edi, edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, edi
pop edi
pop esi
ret
pop edi
mov eax, 1
pop esi
ret
Function at 0x4154a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x423507
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov dword [esp + 0xc], 0
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 1
call sub.MFC42.DLL_CStdioFile::CStdioFile
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 2
call sub.MFC42.DLL_CString::CString_4
push 0x42e820
lea ecx, [esp + 8]
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x38]
push 0
push 0x4000
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 4
call sub.MFC42.DLL_CStdioFile::Open
test eax, eax
je 0x415589
lea ecx, [esp + 8]
xor esi, esi
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
je 0x41555c
test esi, esi
je 0x415537
push 0x42c1f8
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::operator_2
lea edx, [esp + 8]
lea ecx, [esp + 4]
push edx
mov esi, 1
call fcn.004203a2
lea eax, [esp + 8]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
jne 0x415525
mov ecx, dword [esp + 4]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x415580
mov edx, dword [esp + 8]
mov eax, dword [edx - 8]
test eax, eax
jle 0x415580
lea eax, [esp + 8]
lea ecx, [esp + 4]
push eax
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CStdioFile::Close
mov esi, dword [esp + 0x34]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0xc], 1
lea ecx, [esp + 4]
mov byte [esp + 0x2c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 1
call fcn.004204d4
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x4155f0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x423538
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push edi
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString_4
push 0
push 0x42c28c
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::Find_2
inc eax
lea ecx, [esp + 0x1c]
push eax
push 0x42c28c
call sub.MFC42.DLL_CString::Find_2
test eax, eax
mov edi, 1
jle 0x41569f
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll__mkdir]
push esi
lea esi, [eax + 1]
lea eax, [esp + 0x10]
push esi
push eax
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
push ecx
call ebp
add esp, 4
lea ecx, [esp + 0x24]
inc edi
push esi
push 0x42c28c
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jg 0x415650
pop esi
pop ebp
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x415750
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x423588
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x20]
push 0x42da14
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x4157a8
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push esi
call edi
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push esi
mov ebx, eax
call edi
lea ebp, [ebx + 1]
push ebp
call dword [sym.imp.MSVCRT.dll_malloc]
mov edx, dword [esp + 0x44]
mov ecx, ebp
mov edi, eax
xor eax, eax
shr ecx, 2
mov dword [edx], edi
push esi
rep stosd dword es:[edi], eax
mov ecx, ebp
push 1
and ecx, 3
push ebx
rep stosb byte es:[edi], al
mov ecx, dword [edx]
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x34
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov eax, ebx
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret

Function at 0x415830
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4235c5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
mov ecx, dword [esp + 0x120]
lea eax, [esp + 4]
push esi
push eax
push ecx
push 0
mov dword [esp + 0x18], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [esp + 8]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x10]
lea edx, [esp + 4]
push ecx
push 0x42db40
push edx
mov dword [esp + 0x124], 1
call sub.MFC42.DLL_CString::Format
mov esi, dword [esp + 0x12c]
add esp, 0xc
lea eax, [esp + 4]
mov ecx, esi
push eax
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0xc], 1
lea ecx, [esp + 4]
mov byte [esp + 0x118], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x110]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x118
ret
Function at 0x4159c0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4235f1
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x88
push ebx
push ebp
push esi
push edi
push 0x42da14
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
xor edi, edi
add esp, 8
cmp ebp, edi
jne 0x415a3c
mov esi, dword [esp + 0xb0]
cmp esi, edi
je 0x415a35
lea ecx, [esp + 0x10]
push ecx
call fcn.004168c0
add esp, 4
push eax
mov ecx, esi
mov dword [esp + 0xa4], edi
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov dword [esp + 0xa0], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
jmp 0x415ba4
mov eax, dword [esp + 0xb4]
cmp eax, edi
je 0x415a4f
mov edx, dword [eax]
mov dword [esp + 0x10], edx
jmp 0x415a53
mov dword [esp + 0x10], edi
xor eax, eax
mov esi, dword [esp + 0xac]
mov dword [esp + 0x21], eax
mov ecx, esi
mov dword [esp + 0x25], eax
mov byte [esp + 0x20], 0
mov dword [esp + 0x29], eax
mov dword [esp + 0x2d], eax
mov word [esp + 0x31], ax
mov byte [esp + 0x33], al
call sub.MFC42.DLL_CString::Empty
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push edi
push ebp
call ebx
push ebp
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push ebp
mov edi, eax
call ebx
add esp, 0x1c
mov ebx, 1
test edi, edi
je 0x415b59
push edi
mov ecx, esi
call sub.MFC42.DLL_CString::GetBuffer
push ebp
push ebx
push edi
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov ecx, esi
push edi
call sub.MFC42.DLL_CString::ReleaseBuffer
push ecx
mov ecx, dword [esi]
mov eax, esp
mov dword [esp + 0x20], esp
mov dword [eax], ecx
lea ecx, [esp + 0x18]
push ecx
call fcn.004160b0
add esp, 8
mov eax, dword [esp + 0x14]
mov dword [esp + 0xa0], ebx
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x415b09
push 5
push str.UTF_8
push eax
call dword [sym.imp.MSVCRT.dll__mbsnbicmp]
add esp, 0xc
test eax, eax
jne 0x415b45
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push esi
call fcn.00415bc0
lea edx, [esp + 0x20]
push edx
call fcn.00415f80
add esp, 0xc
push eax
mov ecx, esi
mov byte [esp + 0xa4], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x18]
mov byte [esp + 0xa0], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0xa0], 0xffffffff
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x20]
push edi
push eax
lea ecx, [esp + 0x3c]
push str._s_d_bytes
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [esp + 0xc0]
add esp, 0x10
test ecx, ecx
je 0x415b87
lea edx, [esp + 0x34]
push edx
call sub.MFC42.DLL_CString::operator
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0xb8]
add esp, 4
test eax, eax
je 0x415ba2
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov al, bl
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x94
ret
Function at 0x416290
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4236e9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call sub.MFC42.DLL_CString::CString_4
xor edi, edi
lea ecx, [esi + 4]
mov dword [esp + 0x14], edi
call sub.MFC42.DLL_CString::CString_4
mov dword [esi + 0x2c], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x30], edi
mov eax, dword [esp + 0x1c]
mov ecx, esi
push eax
mov byte [esp + 0x18], 3
call fcn.004158f0
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x28], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x418720
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx], 0x67452301
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x41bac0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x41bacb
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x41bbce
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x426784]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x426784]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x426784]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x426784]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x426784]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x426784]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x426784]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x426784]
xor eax, edx
inc ecx
dec edi
jne 0x41bae6
pop edi
test esi, esi
je 0x41bbf0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x426784]
xor eax, edx
inc ecx
dec esi
jne 0x41bbd2
pop esi
pop ebx
not eax
ret

Function at 0x41bc00
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov edx, dword [ecx]
and esi, 0xff
mov eax, edx
and eax, 0xff
xor eax, esi
shr edx, 8
mov eax, dword [eax*4 + 0x426784]
xor eax, edx
mov edx, dword [ecx + 4]
mov dword [ecx], eax
and eax, 0xff
add eax, edx
mov edx, dword [ecx + 8]
imul eax, eax, 0x8088405
inc eax
mov esi, edx
mov dword [ecx + 4], eax
and esi, 0xff
shr eax, 0x18
xor eax, esi
pop esi
shr edx, 8
mov eax, dword [eax*4 + 0x426784]
xor eax, edx
mov dword [ecx + 8], eax
ret
Function at 0x41c620
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
mov cl, byte [ebx]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x41c661
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41c656
mov byte [ebx + 8], 1
mov eax, dword [esp + 0xc]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
push esi
push edi
lea esi, [edx + eax]
cmp esi, ecx
jbe 0x41c674
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x14]
mov edi, dword [esp + 0x14]
mov ecx, eax
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x1c]
pop edi
add ecx, eax
pop esi
div ebp
mov dword [ebx + 0x1c], ecx
pop ebp
pop ebx
ret