joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4772e8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call fcn.00476e5f
mov eax, dword [ebp + 8]
mov cl, byte [eax]
mov byte [ebp - 8], cl
mov edx, dword [ebp + 8]
mov al, byte [edx + 1]
mov byte [ebp - 0xc], al
mov ecx, dword [ebp + 8]
add ecx, 2
mov dword [ebp - 4], ecx
mov word [ebp - 0x10], 0
jmp 0x47732f
mov dx, word [ebp - 0x10]
add dx, 1
mov word [ebp - 0x10], dx
movsx eax, word [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
jge 0x477409
mov ecx, dword [ebp - 8]
and ecx, 0xff
add ecx, 1
and ecx, 0x800000ff
jns 0x477358
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [ebp - 8], cl
mov edx, dword [ebp - 8]
and edx, 0xff
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cl, byte [eax + edx]
mov edx, dword [ebp - 0xc]
and edx, 0xff
add ecx, edx
and ecx, 0x800000ff
jns 0x477387
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [ebp - 0xc], cl
mov eax, dword [ebp - 0xc]
and eax, 0xff
mov ecx, dword [ebp - 4]
add ecx, eax
push ecx
mov edx, dword [ebp - 8]
and edx, 0xff
mov eax, dword [ebp - 4]
add eax, edx
push eax
call fcn.004771ef
mov ecx, dword [ebp - 8]
and ecx, 0xff
mov edx, dword [ebp - 4]
xor eax, eax
mov al, byte [edx + ecx]
mov ecx, dword [ebp - 0xc]
and ecx, 0xff
mov edx, dword [ebp - 4]
xor ebx, ebx
mov bl, byte [edx + ecx]
add eax, ebx
and eax, 0x800000ff
jns 0x4773de
dec eax
or eax, 0xffffff00
inc eax
mov byte [ebp - 0x14], al
movsx eax, word [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
and ecx, 0xff
mov edx, dword [ebp + 0x14]
mov esi, dword [ebp - 4]
mov al, byte [edx + eax]
xor al, byte [esi + ecx]
movsx ecx, word [ebp - 0x10]
mov edx, dword [ebp + 0x14]
mov byte [edx + ecx], al
jmp 0x477323
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 8]
mov byte [eax], cl
mov edx, dword [ebp + 8]
mov al, byte [ebp - 0xc]
mov byte [edx + 1], al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404ba1
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, 0x43079c
push edi
mov eax, esi
test eax, eax
je 0x404c2c
mov edi, 0x42ff9c
mov eax, edi
test eax, eax
je 0x404c2c
push esi
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jbe 0x404c2c
push edi
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jbe 0x404c2c
xor ebx, ebx
cmp byte [0x43079c], bl
je 0x404c2c
push 0x10
lea eax, [ebp - 0x10]
push ebx
push eax
call sub.MSVCRT.dll_memset
push 0x44
lea eax, [ebp - 0x54]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
push eax
lea eax, [ebp - 0x54]
push eax
push edi
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp byte [esi], bl
je 0x404c1f
inc esi
jmp 0x404c18
inc esi
cmp byte [edi], bl
je 0x404c27
inc edi
jmp 0x404c20
inc edi
cmp byte [esi], bl
jne 0x404be0
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40777b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
cmp edi, ebx
jne 0x407790
xor eax, eax
jmp 0x4077d2
mov ecx, esi
call fcn.00407823
test eax, eax
je 0x40778c
mov ecx, esi
mov byte [esi + 0x38], bl
call fcn.00407842
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
lea eax, [ebp + 8]
push eax
push ebx
push esi
push 0x4079f2
push ebx
push ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [esi], eax
mov eax, ecx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x407860
Capabilities:
Resume thread

Disassembly:
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
ret
Function at 0x40bcba
Capabilities:
Get common file path

Disassembly:
mov eax, 0x421d8f
call fcn.00417d40
sub esp, 0x110
and dword [ebp - 0x18], 0
push ebx
push str.OutputName
push ecx
lea eax, [ecx + 4]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.0040aeb3
lea eax, [ebp - 0x10]
push eax
call fcn.004099aa
add esp, 0xc
push 1
lea ecx, [ebp - 0x10]
pop ebx
push 0x42d150
push str..exe
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::Replace
lea eax, [ebp - 0x11c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x11c]
lea ecx, [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::CString_1
push str.GLSetup2.exe__Uninstall:
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00417cda
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.00417bfc
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword fs:[0], ecx
pop ebx
leave
ret 4

Function at 0x411b98
Capabilities:
Set registry value

Disassembly:
mov eax, 0x422ba4
call fcn.00417d40
sub esp, 0x108
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], 1
cmp dword [eax - 8], 0xfe
jle 0x411bc8
xor esi, esi
jmp 0x411c3b
push eax
lea eax, [ebp - 0x114]
push eax
call sub.MSVCRT.dll_strcpy
mov eax, dword [esi + 0xc]
pop ecx
pop ecx
lea ecx, [ebp - 0x10]
push ecx
push 0x20006
push ebx
push eax
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x411bc4
lea eax, [ebp - 0x114]
push edi
mov edi, dword [ebp + 8]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
inc eax
push eax
lea eax, [ebp - 0x114]
push eax
push 1
push ebx
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop edi
je 0x411c21
mov dword [ebp - 0x14], ebx
cmp dword [esi + 8], ebx
jne 0x411c2f
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x14]
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x411cbb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 0x108]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x411cf6
push esi
lea eax, [ebp - 0x108]
push str.C:Temp
push eax
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0
lea eax, [ebp - 0x108]
push 0x42dfe8
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
pop esi
je 0x411d1f
lea eax, [ebp - 0x20c]
push eax
jmp 0x411d24
push 0x4319b8
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebp + 8]
leave
ret

Function at 0x411da7
Capabilities:
Copy file

Disassembly:
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
neg eax
sbb eax, eax
neg eax
ret

Function at 0x412964
Capabilities:
Check if file exists
Delete file

Disassembly:
mov eax, 0x422d88
call fcn.00417d40
push ecx
lea eax, [ebp - 0x10]
push esi
mov esi, ecx
push eax
call fcn.004128b8
push dword [ebp - 0x10]
and dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push dword [ebp - 0x10]
test eax, eax
jne 0x4129a5
push 0x42e0bc
add esi, 8
push esi
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 2
pop esi
jmp 0x4129cc
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0x10]
test eax, eax
jne 0x4129b9
push 0x42e0a4
jmp 0x412994
add esi, 8
push 0x42e090
push esi
call sub.MFC42.DLL_CString::Format
add esp, 0xc
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x4134b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
mov ecx, dword [esi + 0x10]
mov dword [ebp - 4], edi
cmp ecx, edi
je 0x4134cb
call fcn.00409aea
jmp 0x4134cd
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push 0x20019
push edi
push eax
push dword [esi + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4134e9
xor eax, eax
jmp 0x413519
mov ecx, dword [esi + 0x18]
cmp ecx, edi
je 0x4134f7
call fcn.00409aea
jmp 0x4134f9
xor eax, eax
push edi
push edi
push edi
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41350e
push 1
pop edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x41351d
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, ecx
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x413536
call fcn.00409aea
jmp 0x413538
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push 0x20006
push 0
push eax
push dword [esi + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x413578
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x41355f
call fcn.00409aea
jmp 0x413561
xor eax, eax
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
test eax, eax
je 0x41357c
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x41359f
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x413590
call fcn.00409aea
jmp 0x413592
xor eax, eax
push eax
push dword [esi + 0xc]
call dword [sym.imp.SHLWAPI.dll_SHDeleteEmptyKeyA]
push 1
pop eax
pop esi
leave
ret

Function at 0x414832
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x24]
mov ecx, dword [esi + 0x64]
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x6c]
sub eax, ecx
sub eax, edx
mov dword [ebp + 8], eax
jne 0x41485c
test ecx, ecx
jne 0x414866
test edx, edx
jne 0x414866
mov eax, edi
jmp 0x4148d2
cmp eax, 0xffffffff
jne 0x414866
push 0xfffffffffffffffe
pop eax
jmp 0x4148d2
mov edx, dword [esi + 0x24]
lea edx, [edi + edx - 0x106]
cmp ecx, edx
jb 0x4148d2
mov eax, dword [esi + 0x30]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x3c]
sub dword [esi + 0x68], edi
sub dword [esi + 0x64], edi
add esp, 0xc
sub dword [esi + 0x54], edi
lea eax, [eax + ecx*2]
dec eax
dec eax
movzx edx, word [eax]
mov ebx, edx
sub ebx, edi
cmp edx, edi
sbb edx, edx
not edx
and edx, ebx
dec ecx
mov word [eax], dx
jne 0x414897
mov eax, dword [esi + 0x38]
mov edx, edi
lea eax, [eax + edi*2]
dec eax
dec eax
movzx ecx, word [eax]
mov ebx, ecx
sub ebx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, ebx
dec edx
mov word [eax], cx
jne 0x4148b6
mov eax, dword [ebp + 8]
add eax, edi
mov ecx, dword [esi]
cmp dword [ecx + 4], 0
je 0x41492d
push eax
mov eax, dword [esi + 0x6c]
add eax, dword [esi + 0x64]
add eax, dword [esi + 0x30]
push eax
push ecx
call fcn.00414932
add dword [esi + 0x6c], eax
mov ebx, dword [esi + 0x6c]
add esp, 0xc
cmp ebx, 3
jb 0x414919
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x30]
lea edx, [eax + ecx]
mov ecx, dword [esi + 0x50]
movzx eax, byte [edx]
mov dword [esi + 0x40], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x4c]
mov dword [esi + 0x40], eax
cmp ebx, 0x106
jae 0x41492d
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x41483e
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4190f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
test ebx, ebx
mov edi, ecx
jne 0x41911f
mov eax, dword [esp + 0x10]
push eax
push 2
push eax
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
mov ecx, edi
call sub.MFC42.DLL_CGdiObject::Attach
pop edi
pop esi
pop ebx
ret 8
call sub.MFC42.DLL_AfxGetModuleState
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x41913f
pop edi
pop esi
pop ebx
ret 8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov ecx, edi
call fcn.00419020
pop edi
pop esi
pop ebx
ret 8
Function at 0x41c3b0
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x431bf8]
sub esp, 0x104
test eax, eax
jne 0x41c591
mov eax, dword [0x431bfc]
test eax, eax
jne 0x41c5c8
mov eax, dword [0x42f898]
test eax, eax
je 0x41c3ee
push 0x431be0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x42f898], 0
push 0x431be0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x431bf8]
test eax, eax
jne 0x41c586
mov al, byte [0x4326cc]
test al, al
je 0x41c429
push 0x4326cc
lea eax, [esp + 4]
push str._sGLJPG.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x41c43c
lea ecx, [esp]
push str.GLJPG.dll
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x431bf8], eax
jne 0x41c46e
push 0x431be0
mov dword [0x431bfc], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add esp, 0x104
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.LoadJpgFileImageData
push eax
call esi
mov dword [0x431c00], eax
mov eax, dword [0x431bf8]
push str.LoadJpgImageDataFromMem
push eax
call esi
mov ecx, dword [0x431bf8]
push str.LoadJpgFile
push ecx
mov dword [0x431c04], eax
call esi
mov edx, dword [0x431bf8]
push str.LoadJpgFromMem
push edx
mov dword [0x431c08], eax
call esi
mov dword [0x431c0c], eax
mov eax, dword [0x431bf8]
push str.WriteBitmapToJpeg
push eax
call esi
mov ecx, dword [0x431bf8]
push str.WriteDibToJpeg
push ecx
mov dword [0x431c10], eax
call esi
mov edx, dword [0x431bf8]
push str.WriteDibToJpegMEM
push edx
mov dword [0x431c14], eax
call esi
mov dword [0x431c18], eax
mov eax, dword [0x431bf8]
push str.GetPointerFromHandleLock
push eax
call esi
mov ecx, dword [0x431bf8]
push str.UnLockDataHandle
push ecx
mov dword [0x431c1c], eax
call esi
mov edx, dword [0x431bf8]
push str.FreeDataHandle
push edx
mov dword [0x431c20], eax
call esi
mov ecx, dword [0x431c00]
mov dword [0x431c24], eax
test ecx, ecx
pop esi
je 0x41c59d
mov ecx, dword [0x431c04]
test ecx, ecx
je 0x41c59d
mov ecx, dword [0x431c08]
test ecx, ecx
je 0x41c59d
mov ecx, dword [0x431c0c]
test ecx, ecx
je 0x41c59d
mov ecx, dword [0x431c10]
test ecx, ecx
je 0x41c59d
mov ecx, dword [0x431c14]
test ecx, ecx
je 0x41c59d
test eax, eax
je 0x41c59d
mov eax, dword [0x431c18]
test eax, eax
je 0x41c59d
mov eax, dword [0x431c1c]
test eax, eax
je 0x41c59d
mov eax, dword [0x431c20]
test eax, eax
je 0x41c59d
push 0x431be0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
add esp, 0x104
ret
mov eax, dword [0x431bf8]
mov dword [0x431bfc], 1
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x431be0
mov dword [0x431bf8], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add esp, 0x104
ret
Function at 0x41c620
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x431c54]
sub esp, 0x104
test eax, eax
jne 0x41c774
mov eax, dword [0x431c58]
test eax, eax
jne 0x41c7ac
mov eax, dword [0x42f97c]
test eax, eax
je 0x41c65e
push 0x431c28
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x42f97c], 0
push 0x431c28
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x431c54]
test eax, eax
jne 0x41c769
mov al, byte [0x4326cc]
test al, al
je 0x41c699
push 0x4326cc
lea eax, [esp + 4]
push str._sGLPNG.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x41c6ac
lea ecx, [esp]
push str.GLPNG.dll
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x431c54], eax
jne 0x41c6de
push 0x431c28
mov dword [0x431c58], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add esp, 0x104
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.LoadPNGFile
push eax
call esi
mov dword [0x431c40], eax
mov eax, dword [0x431c54]
push str.LoadPNGFromMem
push eax
call esi
mov ecx, dword [0x431c54]
push str.WriteBmpToPNGMem
push ecx
mov dword [0x431c44], eax
call esi
mov edx, dword [0x431c54]
push str.WriteBmpToPNGFile
push edx
mov dword [0x431c48], eax
call esi
mov dword [0x431c4c], eax
mov eax, dword [0x431c54]
push str.WriteImageDataToPNGMem
push eax
call esi
mov ecx, dword [0x431c40]
mov dword [0x431c50], eax
test ecx, ecx
pop esi
je 0x41c780
mov ecx, dword [0x431c44]
test ecx, ecx
je 0x41c780
mov ecx, dword [0x431c48]
test ecx, ecx
je 0x41c780
mov ecx, dword [0x431c4c]
test ecx, ecx
je 0x41c780
test eax, eax
je 0x41c780
push 0x431c28
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
add esp, 0x104
ret
mov ecx, dword [0x431c54]
mov dword [0x431c58], 1
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x431c28
mov dword [0x431c54], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add esp, 0x104
ret
Function at 0x41c910
Capabilities:
Get file version info

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x104]
test eax, eax
je 0x41c939
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 0x104], 0
lea ebp, [esi + 0x108]
xor eax, eax
mov ecx, ebp
lea edi, [esi + 0x110]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov ecx, 0x10
rep stosd dword es:[edi], eax
mov ecx, 0x41
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x120]
test edi, edi
je 0x41c979
cmp byte [edi], 0
jne 0x41c995
mov ecx, esi
call fcn.0041cc40
lea edx, [esp + 0x18]
push 0x103
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [esp + 0x18]
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jne 0x41c9b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 4
push ebx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esi + 0x104], eax
test eax, eax
jne 0x41c9d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 4
push eax
push ebx
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
mov edx, dword [esi + 0x104]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x42d144
push edx
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 8]
shr ecx, 0x10
mov word [ebp], cx
mov dx, word [eax + 8]
mov word [esi + 0x10a], dx
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
mov word [esi + 0x10c], cx
mov ax, word [eax + 0xc]
mov word [esi + 0x10e], ax
and eax, 0xffff
xor edx, edx
push eax
mov dx, cx
xor eax, eax
mov ax, word [esi + 0x10a]
xor ecx, ecx
mov cx, word [ebp]
push edx
push eax
push ecx
push str._d._d._d._d
lea eax, [esi + 0x110]
push 0x3f
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
push 0x103
push edi
push esi
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
add esp, 0x28
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 4

Function at 0x41cb90
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x118]
lea ecx, [esp + 0x14]
push eax
push str.SoftwareGloballinkGame_s
push 0xff
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea edx, [esp + 8]
lea eax, [esp + 0x14]
mov dword [esp + 8], 0
push edx
push 1
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x41cc2c
mov edx, dword [esp + 0x11c]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push edx
push eax
push esi
push str.path
push ecx
mov dword [esp + 0x24], 0x103
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 8]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
test esi, esi
sete al
pop esi
add esp, 0x10c
ret 8
Function at 0x41cc60
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x423058
push eax
mov eax, dword [esp + 0x1c]
mov dword fs:[0], esp
mov edx, dword [esp + 0x14]
sub esp, 0x40
lea ecx, [esp]
push ebp
push esi
push eax
mov eax, dword [esp + 0x5c]
push 0x40
push ecx
push 0x4319b8
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 8]
test al, al
jne 0x41ccb8
mov eax, dword [esp + 0x60]
pop esi
pop ebp
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret
lea ecx, [esp + 0x64]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 8]
xor ebp, ebp
push ecx
lea ecx, [esp + 0x68]
mov dword [esp + 0x54], ebp
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x64]
cmp dword [eax - 8], 2
jge 0x41cd0f
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
lea ecx, [esp + 0x64]
mov esi, eax
mov dword [esp + 0x50], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret
push 0x2c
push eax
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
jne 0x41cd69
mov edx, dword [esp + 0x64]
push edx
call fcn.0041bf50
mov esi, eax
mov ecx, eax
and esi, 0xff
and eax, 0xff00
shl esi, 0x10
sar ecx, 0x10
add esi, ecx
add esp, 4
lea ecx, [esp + 0x64]
add esi, eax
mov dword [esp + 0x50], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret
mov esi, dword [esp + 0x64]
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_atoi]
push edi
push esi
call ebx
mov dword [esp + 0x68], eax
mov al, byte [esi]
add esp, 4
xor edi, edi
test al, al
je 0x41cd93
cmp al, 0x2c
je 0x41cd93
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x41cd87
cmp byte [esi], 0x2c
jne 0x41cdc1
inc esi
push esi
call ebx
mov ebp, eax
mov al, byte [esi]
add esp, 4
test al, al
je 0x41cdb3
cmp al, 0x2c
je 0x41cdb3
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x41cda7
cmp byte [esi], 0x2c
jne 0x41cdc1
inc esi
push esi
call ebx
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x6c]
shl edi, 8
add edi, ebp
mov dword [esp + 0x58], 0xffffffff
shl edi, 8
add edi, eax
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x50]
mov eax, edi
pop edi
pop ebx
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x4c
ret
Function at 0x41ce00
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x423078
push eax
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0x40
lea ecx, [esp]
push eax
mov eax, dword [esp + 0x54]
push 0x40
push ecx
push 0x4319b8
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp]
test al, al
je 0x41ceae
push ebx
push esi
push edi
lea ecx, [esp + 0x68]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0xc]
mov dword [esp + 0x54], 0
push ecx
lea ecx, [esp + 0x6c]
call sub.MFC42.DLL_CString::operator
mov esi, dword [esp + 0x68]
mov edi, dword [sym.imp.MSVCRT.dll_atoi]
push esi
call edi
mov ebx, dword [esp + 0x68]
add esp, 4
mov dword [ebx], eax
mov al, byte [esi]
test al, al
je 0x41ce8b
cmp al, 0x2c
je 0x41ce8b
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x41ce7f
cmp byte [esi], 0x2c
jne 0x41ce9a
inc esi
push esi
call edi
add esp, 4
mov dword [ebx + 4], eax
lea ecx, [esp + 0x68]
mov dword [esp + 0x54], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret