joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424b9f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d72b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
push 1
push 0
mov ecx, dword [ebp - 0x24]
add ecx, 0xc
call fcn.0040cdc0
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
mov edx, dword [ebp - 0x24]
cmp dword [edx], 0
je 0x424c0d
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x18]
jmp 0x424c7b
mov dword [ebp - 0x10], 1
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push 0
lea ecx, [ebp + 8]
call fcn.0040cdc0
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x24]
mov dword [edx], eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x24]
cmp dword [ecx], 0
jne 0x424c62
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x1c]
jmp 0x424c7b
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4257a2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d828
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
mov dword [ebp - 0x124], ecx
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 1
lea ecx, [ebp + 0xc]
call fcn.00402c80
cmp eax, 0xfe
jle 0x425813
mov dword [ebp - 0x118], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x118]
jmp 0x42591b
lea ecx, [ebp + 0xc]
call fcn.0040cdc0
push eax
lea eax, [ebp - 0x110]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
lea ecx, [ebp - 0x114]
push ecx
push 0x20006
push 0
mov ecx, dword [ebp - 0x124]
add ecx, 0xc
call fcn.0040cdc0
push eax
mov edx, dword [ebp - 0x124]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x42588c
mov dword [ebp - 0x11c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x11c]
jmp 0x42591b
lea ecx, [ebp - 0x110]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
add eax, 1
push eax
lea edx, [ebp - 0x110]
push edx
push 1
push 0
lea ecx, [ebp + 8]
call fcn.0040cdc0
push eax
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4258cb
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x124]
cmp dword [ecx + 8], 0
jne 0x4258e4
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x120], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x425c59
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov dword [ebp - 0x214], 0
lea eax, [ebp - 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
jne 0x425ca6
push 0x104
push str.C:Temp
lea ecx, [ebp - 0x104]
push ecx
call fcn.00426120
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
push 0
push 0x44aea0
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
je 0x425cf3
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [ebp - 0x214]
or edx, 1
mov dword [ebp - 0x214], edx
mov eax, dword [ebp + 8]
jmp 0x425d11
push 0x44f370
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebp - 0x214]
or al, 1
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x425d15
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d893
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
mov dword [ebp - 0x118], 0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x114]
push eax
push 0
push 0x44aea4
lea ecx, [ebp + 0xc]
call fcn.0040cdc0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x425d99
lea ecx, [ebp - 0x114]
push ecx
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [ebp - 0x118]
or edx, 1
mov dword [ebp - 0x118], edx
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
jmp 0x425dc3
push 0x44f374
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebp - 0x118]
or al, 1
mov dword [ebp - 0x118], eax
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x425e57
Capabilities:
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
push 0x104
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
je 0x425e91
cmp dword [ebp - 0x210], 0x104
jb 0x425e98
xor al, al
jmp 0x425f85
push 0x104
lea edx, [ebp - 0x104]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [ebp - 0x214], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x214], 0
je 0x425ed5
cmp dword [ebp - 0x214], 0x104
jb 0x425edc
xor al, al
jmp 0x425f85
call fcn.00418e19
and eax, 0xff
test eax, eax
je 0x425f0e
push 5
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov dword [ebp - 0x218], eax
xor eax, eax
cmp dword [ebp - 0x218], 0
setne al
jmp 0x425f85
push 0x104
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x425f83
cmp dword [ebp - 0x21c], 0x104
jae 0x425f83
push 0x44aea8
lea ecx, [ebp - 0x320]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
test eax, eax
je 0x425f7f
lea edx, [ebp - 0x320]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x44aeb8
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov dword [ebp - 0x324], eax
xor eax, eax
cmp dword [ebp - 0x324], 0
setne al
jmp 0x425f85
xor al, al
jmp 0x425f85
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x425f89
Capabilities:
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push 0x104
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
je 0x425fc3
cmp dword [ebp - 0x108], 0x104
jb 0x425fca
xor al, al
jmp 0x426073
call fcn.00418e19
and eax, 0xff
test eax, eax
je 0x425ffc
push 5
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov dword [ebp - 0x10c], eax
xor eax, eax
cmp dword [ebp - 0x10c], 0
setne al
jmp 0x426073
push 0x104
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
je 0x426071
cmp dword [ebp - 0x110], 0x104
jae 0x426071
push str.WinInit.ini
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
test eax, eax
je 0x42606d
lea eax, [ebp - 0x214]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push str.rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov dword [ebp - 0x218], eax
xor eax, eax
cmp dword [ebp - 0x218], 0
setne al
jmp 0x426073
xor al, al
jmp 0x426073
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x4260f6
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCRT.dll_rename]
add esp, 8
test eax, eax
jne 0x426112
mov al, 1
jmp 0x426114
xor al, al
pop ebp
ret

Function at 0x4284b7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
mov ecx, dword [ebp - 8]
add ecx, 0x10
call fcn.004169a0
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4284f3
xor eax, eax
jmp 0x428532
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 8]
add ecx, 0x18
call fcn.004169a0
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x428523
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x428532
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x428536
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
mov ecx, dword [ebp - 8]
add ecx, 0x10
call fcn.004169a0
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x428572
xor eax, eax
jmp 0x4285c2
mov ecx, dword [ebp - 8]
add ecx, 0x18
call fcn.004169a0
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x42859a
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4285c2
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
add ecx, 0x10
call fcn.004169a0
push eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_SHDeleteEmptyKeyA]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4332e0
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 0x43330f
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 0x43332f
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.00433210
pop edi
pop esi
pop ebx
ret 8
Function at 0x4365c0
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x44f490]
sub esp, 0x104
test eax, eax
jne 0x4367a1
mov eax, dword [0x44f494]
test eax, eax
jne 0x4367d8
mov eax, dword [0x44c85c]
test eax, eax
je 0x4365fe
push 0x44f478
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x44c85c], 0
push 0x44f478
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x44f490]
test eax, eax
jne 0x436796
mov al, byte [0x44ff64]
test al, al
je 0x436639
push 0x44ff64
lea eax, [esp + 4]
push str._sGLJPG.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x43664c
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 [0x44f490], eax
jne 0x43667e
push 0x44f478
mov dword [0x44f494], 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 [0x44f498], eax
mov eax, dword [0x44f490]
push str.LoadJpgImageDataFromMem
push eax
call esi
mov ecx, dword [0x44f490]
push str.LoadJpgFile
push ecx
mov dword [0x44f49c], eax
call esi
mov edx, dword [0x44f490]
push str.LoadJpgFromMem
push edx
mov dword [0x44f4a0], eax
call esi
mov dword [0x44f4a4], eax
mov eax, dword [0x44f490]
push str.WriteBitmapToJpeg
push eax
call esi
mov ecx, dword [0x44f490]
push str.WriteDibToJpeg
push ecx
mov dword [0x44f4a8], eax
call esi
mov edx, dword [0x44f490]
push str.WriteDibToJpegMEM
push edx
mov dword [0x44f4ac], eax
call esi
mov dword [0x44f4b0], eax
mov eax, dword [0x44f490]
push str.GetPointerFromHandleLock
push eax
call esi
mov ecx, dword [0x44f490]
push str.UnLockDataHandle
push ecx
mov dword [0x44f4b4], eax
call esi
mov edx, dword [0x44f490]
push str.FreeDataHandle
push edx
mov dword [0x44f4b8], eax
call esi
mov ecx, dword [0x44f498]
mov dword [0x44f4bc], eax
test ecx, ecx
pop esi
je 0x4367ad
mov ecx, dword [0x44f49c]
test ecx, ecx
je 0x4367ad
mov ecx, dword [0x44f4a0]
test ecx, ecx
je 0x4367ad
mov ecx, dword [0x44f4a4]
test ecx, ecx
je 0x4367ad
mov ecx, dword [0x44f4a8]
test ecx, ecx
je 0x4367ad
mov ecx, dword [0x44f4ac]
test ecx, ecx
je 0x4367ad
test eax, eax
je 0x4367ad
mov eax, dword [0x44f4b0]
test eax, eax
je 0x4367ad
mov eax, dword [0x44f4b4]
test eax, eax
je 0x4367ad
mov eax, dword [0x44f4b8]
test eax, eax
je 0x4367ad
push 0x44f478
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
add esp, 0x104
ret
mov eax, dword [0x44f490]
mov dword [0x44f494], 1
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x44f478
mov dword [0x44f490], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add esp, 0x104
ret
Function at 0x436830
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x44f4ec]
sub esp, 0x104
test eax, eax
jne 0x436984
mov eax, dword [0x44f4f0]
test eax, eax
jne 0x4369bc
mov eax, dword [0x44c940]
test eax, eax
je 0x43686e
push 0x44f4c0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x44c940], 0
push 0x44f4c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x44f4ec]
test eax, eax
jne 0x436979
mov al, byte [0x44ff64]
test al, al
je 0x4368a9
push 0x44ff64
lea eax, [esp + 4]
push str._sGLPNG.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x4368bc
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 [0x44f4ec], eax
jne 0x4368ee
push 0x44f4c0
mov dword [0x44f4f0], 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 [0x44f4d8], eax
mov eax, dword [0x44f4ec]
push str.LoadPNGFromMem
push eax
call esi
mov ecx, dword [0x44f4ec]
push str.WriteBmpToPNGMem
push ecx
mov dword [0x44f4dc], eax
call esi
mov edx, dword [0x44f4ec]
push str.WriteBmpToPNGFile
push edx
mov dword [0x44f4e0], eax
call esi
mov dword [0x44f4e4], eax
mov eax, dword [0x44f4ec]
push str.WriteImageDataToPNGMem
push eax
call esi
mov ecx, dword [0x44f4d8]
mov dword [0x44f4e8], eax
test ecx, ecx
pop esi
je 0x436990
mov ecx, dword [0x44f4dc]
test ecx, ecx
je 0x436990
mov ecx, dword [0x44f4e0]
test ecx, ecx
je 0x436990
mov ecx, dword [0x44f4e4]
test ecx, ecx
je 0x436990
test eax, eax
je 0x436990
push 0x44f4c0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
add esp, 0x104
ret
mov ecx, dword [0x44f4ec]
mov dword [0x44f4f0], 1
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x44f4c0
mov dword [0x44f4ec], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add esp, 0x104
ret
Function at 0x436a30
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43dea8
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 0x440588
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 8]
test al, al
jne 0x436a88
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 fcn.00431d30
mov eax, dword [esp + 0x64]
cmp dword [eax - 8], 2
jge 0x436adf
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 0x436b39
mov edx, dword [esp + 0x64]
push edx
call fcn.00436160
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 0x436b63
cmp al, 0x2c
je 0x436b63
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x436b57
cmp byte [esi], 0x2c
jne 0x436b91
inc esi
push esi
call ebx
mov ebp, eax
mov al, byte [esi]
add esp, 4
test al, al
je 0x436b83
cmp al, 0x2c
je 0x436b83
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x436b77
cmp byte [esi], 0x2c
jne 0x436b91
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 0x436bd0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43dec8
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 0x440588
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp]
test al, al
je 0x436c7e
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 fcn.00431d30
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 0x436c5b
cmp al, 0x2c
je 0x436c5b
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x436c4f
cmp byte [esi], 0x2c
jne 0x436c6a
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
Function at 0x4016b0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x48
mov eax, dword [0x43b3c0]
xor eax, esp
mov dword [esp + 0x44], eax
push ebp
mov ebp, dword [esp + 0x50]
push esi
push edi
push 0x40
lea eax, [esp + 0x14]
push 0
push eax
mov edi, ecx
mov esi, edx
mov dword [esp + 0x18], 0
call fcn.0041a300
add esp, 0xc
cmp dword [edi + 0xc], 0
jne 0x4016ef
mov edi, 0x435d2a
jmp 0x4016f2
mov edi, dword [edi + 8]
push edi
push 0x40
lea ecx, [esp + 0x18]
push ecx
push ebp
push ebx
push str.ProxyCenter
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x10]
push edx
call fcn.00407fa0
mov ecx, dword [esp + 0x50]
pop edi
mov eax, esi
pop esi
pop ebp
xor ecx, esp
call fcn.004174dc
add esp, 0x48
ret 4
Function at 0x401850
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ebp + 0x28]
push ecx
push edx
lea eax, [ebp + 0x18]
push eax
push str.CFakeProxyListenThread:_Listen__s:_d___d__n
call fcn.00404f40
add esp, 0x10
xor esi, esi
cmp dword [ebp + 0x44], esi
jne 0x4018da
push 0x30
call fcn.00417676
add esp, 4
cmp eax, esi
je 0x4018a3
mov ecx, dword [ebp + 0x2c]
movzx edx, word [ebp + 0x28]
push ecx
push edx
lea ecx, [ebp + 0x18]
push ecx
mov edi, eax
call fcn.0040c1f0
jmp 0x4018a5
xor eax, eax
mov dword [ebp + 0x44], eax
cmp dword [eax + 4], esi
jne 0x4018da
lea ecx, [eax + 8]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
call edx
mov ecx, dword [ebp + 0x44]
cmp ecx, esi
je 0x4018c6
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov eax, dword [ebp + 8]
push 0xbb8
push eax
mov dword [ebp + 0x44], esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x401878
mov ecx, dword [ebp + 0x44]
call fcn.0040c280
mov edi, eax
mov eax, dword [edi + 0x1bc]
mov dword [esp + 0x14], edi
cmp eax, 0xffffffff
jne 0x401927
mov eax, dword [ebp + 0x44]
mov edx, dword [eax + 8]
lea ecx, [eax + 8]
mov eax, dword [edx + 0x20]
call eax
mov ecx, dword [ebp + 0x44]
cmp ecx, esi
je 0x401910
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [ebp + 8]
push 0xbb8
push ecx
mov dword [ebp + 0x44], esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x401878
push eax
push str.CFakeProxyListenThread:_Accept_Socket__d__from_Application_n
call fcn.00404f40
add esp, 8
cmp dword [ebp + 0x48], esi
jne 0x401955
push 4
call fcn.00417676
add esp, 4
cmp eax, esi
je 0x401950
mov dword [eax], vtable.CTCPClient.0
jmp 0x401952
xor eax, eax
mov dword [ebp + 0x48], eax
cmp dword [ebp + 0x40], esi
je 0x4019e2
movzx edx, word [ebp + 0x40]
push edx
lea ecx, [ebp + 0x30]
call fcn.0040c0a0
mov ebx, eax
cmp ebx, esi
je 0x401878
push 0x20
call fcn.00417676
mov esi, eax
add esp, 4
test esi, esi
je 0x401878
mov ecx, dword [esp + 0x14]
xor eax, eax
push eax
push eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi], vtable.CSocketPairThread.0
lea edi, [esi + 0x10]
mov dword [ebx + 0x214], 1
push eax
push eax
mov dword [0x43d770], eax
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], ebx
mov byte [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push edi
push 0
push esi
push 0x40c350
push 0
push 0
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
jmp 0x401878
cmp dword [edi + 0x1e0], 1
je 0x4019fc
mov edx, dword [edi + 0x1b8]
mov eax, dword [edx + 0x20]
lea ecx, [edi + 0x1b8]
call eax
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
jmp 0x401878