joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f6220
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x52e486
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
mov eax, dword [0x5eb8d4]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], eax
mov dword [esp + 0x15c], 0
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x164]
lea ecx, [esp + 0xc]
push esi
mov byte [esp + 0x160], 1
call fcn.0051b620
push str..
lea ecx, [esp + 0x10]
call fcn.0051b873
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x4f62c3
lea ecx, [esp + 0xc]
mov byte [esp + 0x15c], 0
call fcn.0051b497
lea ecx, [esp + 8]
mov dword [esp + 0x15c], 0xffffffff
call fcn.0051b497
xor eax, eax
jmp 0x4f6408
push ebp
mov ebp, dword [esp + 0x16c]
push edi
mov edi, dword [esp + 0x174]
lea edx, [esp + 0x48]
push 0x5e99cc
push edx
call fcn.0050a574
add esp, 8
test eax, eax
je 0x4f63b9
lea eax, [esp + 0x48]
push 0x5e99c8
push eax
call fcn.0050a574
add esp, 8
test eax, eax
je 0x4f63b9
test ebp, ebp
jne 0x4f6325
lea ecx, [esp + 0x48]
push str.desktop.ini
push ecx
call fcn.0050a623
add esp, 8
test eax, eax
je 0x4f63b9
push esi
lea ecx, [esp + 0x14]
call fcn.0051b620
push 0x5c
lea ecx, [esp + 0x14]
call fcn.0051b89a
lea edx, [esp + 0x48]
lea ecx, [esp + 0x10]
push edx
call fcn.0051b873
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x4f6365
mov ecx, dword [esp + 0x10]
and al, 0xfe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test byte [esp + 0x1c], 0x10
je 0x4f6387
mov edx, dword [esp + 0x10]
push edi
push ebp
push edx
mov ecx, ebx
call fcn.004f6220
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x4f63b9
test edi, edi
je 0x4f63ae
lea ecx, [esp + 0x48]
push str.index.dat
push ecx
call fcn.0050a623
add esp, 8
test eax, eax
jne 0x4f63ae
lea edx, [esp + 0x48]
mov ecx, ebx
push edx
push esi
call fcn.004f6430
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4f62d3
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], 0
call fcn.0051b497
lea ecx, [esp + 0x10]
mov dword [esp + 0x164], 0xffffffff
call fcn.0051b497
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x154]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x158
ret 0xc
Function at 0x4f6430
Capabilities:
Get file size
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x52e49b
push eax
mov eax, 0x2718
mov dword fs:[0], esp
call fcn.0050ae30
mov eax, dword [0x5eb8d4]
push edi
mov dword [esp + 4], eax
mov ecx, 0x9c4
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 0x2724], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x272c]
push ecx
lea ecx, [esp + 8]
call fcn.0051b620
push 0x5c
lea ecx, [esp + 8]
call fcn.0051b89a
mov edx, dword [esp + 0x2730]
lea ecx, [esp + 4]
push edx
call fcn.0051b873
mov eax, dword [esp + 4]
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4f64d6
lea ecx, [esp + 4]
mov dword [esp + 0x2724], eax
call fcn.0051b497
xor eax, eax
jmp 0x4f6553
push ebx
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
mov esi, eax
push 0x40
push edi
sub esi, 0x40
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
jbe 0x4f6531
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, 0x2710
push 0
jbe 0x4f6523
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push 0x2710
push edx
push edi
call ebx
sub esi, 0x2710
jne 0x4f64fd
jmp 0x4f6531
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push esi
push ecx
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x272c], 0xffffffff
call fcn.0051b497
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x271c]
pop edi
mov dword fs:[0], ecx
add esp, 0x2724
ret 8

Function at 0x4f7950
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x4f79f3
test eax, eax
jbe 0x4f79f3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x4f79f3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x4f799e
xor esi, esi
jmp 0x4f79a4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x4f79cf
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0047d7e0
add esi, eax
push esi
mov ebx, esi
call fcn.0047d7e0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x4f79b0
pop ebp
test edi, edi
pop edi
jne 0x4f79f3
test ebx, ebx
je 0x4f79f3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0050af50
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x4f7b35
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4f7c4d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4f7c4d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0051cf4b
mov esi, eax
test esi, esi
je 0x4f7c4d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4f7c4d
mov ecx, esi
call fcn.004f7aa0
cmp edi, eax
jge 0x4f7c4d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4f7bd3
mov dword [esp + 0x34], 1
jmp 0x4f7c2e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4f7c4d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004f7020
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x51d8ee
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x51d926
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0051b93e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0051b916
jmp 0x51d932
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x51efe4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x51f026
call fcn.005257c2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x51f026
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x51f01d
xor eax, eax
jmp 0x51f02e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0051f034
pop edi
pop esi
pop ebx
ret 4
Function at 0x525cf2
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x525d20
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x525d3e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00525c58
jmp 0x525d3e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x525d3e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00525c58
test edi, edi
mov eax, edi
jne 0x525d28
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Create process on windows
Create thread
Get common file path
Inject dll
Inject thread
Resume thread
Suspend thread

Disassembly:
sub esp, 0x158
push ebx
push ebp
push esi
push edi
push 0x4080bc
push str.RunGame.log
call fcn.00401228
mov esi, eax
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x2c]
add esp, 8
rep stosd dword es:[edi], eax
lea eax, [esp + 0x64]
mov dword [esp + 0x20], 0x44
push eax
push 0x104
mov dword [esp + 0x54], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x64]
push ecx
push esi
call fcn.004011d6
add esp, 8
lea edx, [esp + 0x64]
push str.PlazaUpdate.exe
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0
push 0
push 0x10
push 0
push 0
lea edx, [esp + 0x80]
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4010aa
call ebp
push eax
push str._nCreateErr:_d
push esi
call fcn.004011d6
add esp, 0xc
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 4
push 0x1000
mov ecx, dword [esp + 0x18]
push 0x20
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
mov edi, str.DownLoad.dll
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x10]
push 0
not ecx
push ecx
push str.DownLoad.dll
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test ebx, ebx
jne 0x401104
call ebp
push eax
push str._nMemAlloc:_d
push esi
call fcn.004011d6
add esp, 0xc
push str.LoadLibraryA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x401132
call ebp
push eax
push str._nPro:_d
push esi
call fcn.004011d6
add esp, 0xc
mov eax, dword [esp + 0x10]
push 0
push 0
push ebx
push edi
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
push eax
push str._nThreadHandle:_d
push esi
call fcn.004011d6
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call fcn.00401180
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x158
ret 0x10
Function at 0x402c80
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x34c
push ebx
push esi
push edi
xor eax, eax
mov ecx, 0x88
lea edi, [esp + 0x138]
mov dword [esp + 0x134], 0
push eax
rep stosd dword es:[edi], eax
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, dword [esp + 0x360]
mov esi, eax
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x10]
cmp esi, 0xffffffff
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], 0x128
mov byte [ebx], al
je 0x402d63
lea eax, [esp + 0xc]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x402d5c
mov edi, dword [esp + 0x35c]
mov al, byte [0x433e74]
test al, al
jne 0x402d5c
mov edx, dword [esp + 0x14]
cmp edx, edi
je 0x402d1c
lea ecx, [esp + 0xc]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x402ceb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
add esp, 0x34c
ret
mov ecx, 0x89
xor eax, eax
lea edi, [esp + 0x134]
push edx
rep stosd dword es:[edi], eax
push 8
mov dword [esp + 0x13c], 0x224
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea edx, [esp + 0x134]
push edx
push eax
call sub.KERNEL32.dll_Module32First
lea eax, [esp + 0x254]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
add esp, 0x34c
ret
Function at 0x4034e0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 0x1c]
sub esp, 0x554
test eax, eax
push ebx
push ebp
push esi
push edi
jne 0x4034ff
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x554
ret
mov ebp, dword [esp + 0x578]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov ax, word [esp + 0x57c]
mov edi, ebp
mov word [esp + 0x50], ax
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x20], 0x44
mov dword [esp + 0x4c], 1
je 0x403542
mov esi, ebp
mov edi, dword [esp + 0x574]
mov ebx, dword [esp + 0x570]
push edi
push ebx
lea ecx, [esp + 0x16c]
push 0x431678
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea edx, [esp + 0x10]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x164]
push edx
push eax
push esi
push 0
push 0x230
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4036b4
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esp + 0x18]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x64]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x64]
push ecx
push edx
call fcn.00402c80
lea edi, [esp + 0x6c]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x4035f1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x554
ret
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.MSVCRT.dll__strlwr]
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
lea ecx, [esp + 0x68]
push 0x4313c8
push ecx
call esi
add esp, 0xc
test eax, eax
jne 0x403646
lea edx, [esp + 0x64]
push str..bat
push edx
call esi
add esp, 8
test eax, eax
jne 0x403646
lea eax, [esp + 0x64]
push str..cmd
push eax
call esi
add esp, 8
test eax, eax
jne 0x403646
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x554
ret
cmp byte [esp + 0x65], 0x3a
jne 0x403652
mov byte [esp + 0x64], 0x63
lea ecx, [esp + 0x64]
push str.debug
push ecx
call esi
add esp, 8
test eax, eax
jne 0x403686
lea edx, [esp + 0x64]
push str.player.exe
push edx
call esi
add esp, 8
test eax, eax
jne 0x403686
lea eax, [esp + 0x64]
push 0x1b
push eax
push str._s_c
jmp 0x403692
lea ecx, [esp + 0x64]
push 0x1b
push ecx
push 0x431394
push 0x433bec
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [esp + 0x28]
add esp, 0x10
mov dword [0x433e7c], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x554
ret
mov edx, dword [esp + 0x57c]
mov eax, dword [esp + 0x56c]
mov ecx, dword [esp + 0x568]
push edx
push ebp
push edi
push ebx
push eax
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edx, 0x20
pop edi
cmp edx, eax
pop esi
sbb eax, eax
pop ebp
inc eax
pop ebx
add esp, 0x554
ret
Function at 0x406620
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428488
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ebx
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ebx
push ecx
mov byte [eax], bl
mov byte [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
cmp edi, ebx
jne 0x40668c
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
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
mov edx, dword [edi + 0xc]
cmp dword [edx + ebx*4], 0
je 0x406783
push 0x433b08
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_2
xor esi, esi
movsx eax, word [edi + 0xa]
cmp esi, eax
jge 0x4066fb
mov ecx, dword [edi + 0xc]
xor eax, eax
mov edx, dword [ecx + ebx*4]
lea ecx, [ebp - 0x24]
mov al, byte [edx + esi]
push eax
push 0x431bf0
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x14]
lea ecx, [ebp + 8]
push edx
push eax
push ecx
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
inc esi
jmp 0x4066a8
mov edx, dword [ebp - 0x14]
mov eax, dword [edx - 8]
cmp eax, 4
jle 0x406777
dec eax
push 0x3a
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::SetAt
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
push eax
push 0x431bec
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x1c]
push edx
push eax
push ecx
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [esi + eax]
push 0x431080
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edx, dword [ebp - 0x14]
add esp, 0xc
add esi, dword [edx - 8]
mov dword [ebp - 0x18], esi
inc ebx
jmp 0x40668c
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406af0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4284f0
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x18], 1
call sub.MFC42.DLL_AfxGetModuleState
mov esi, dword [eax + 8]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
and ecx, 0xffff
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x406b69
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebx
je 0x406b69
mov edx, dword [esp + 0x28]
push 0x431848
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x406b9c
lea ecx, [esp + 0x24]
mov byte [esp + 0x18], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push esi
push ebp
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
lea ecx, [esp + 0x24]
mov byte [esp + 0x18], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret

Function at 0x406d80
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xc]
push pe_nt_image_headers32
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, dword [esp + 0x110]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov eax, esi
pop edi
pop esi
add esp, 0x104
ret
Function at 0x408940
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
push ebx
push ebp
lea eax, [esp + 0xc]
push esi
xor ebx, ebx
push eax
push 0xf003f
push ebx
mov ebp, ecx
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsConnections
push reloc.WS2_32.dll_accept
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4089dc
lea ecx, [ebp + 0xf0e]
lea esi, [ebp + 0xa04]
push edi
mov dword [esp + 0x10], ecx
add ebp, 0x2318
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4089cc
mov edx, dword [ebp]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push edx
push eax
push 3
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x10]
inc ebx
add ebp, 4
add edx, 0x201
add esi, 0x81
cmp ebx, 0xa
mov dword [esp + 0x10], edx
jl 0x408988
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, dword [esp + 0x18]
pop edi
mov eax, dword [ebp + 0x9d8]
mov ecx, dword [ebp + 0x9d4]
lea esi, [ebp + 0x9d4]
cmp eax, ecx
je 0x408a45
mov eax, dword [ebp + 0x9dc]
test eax, eax
jne 0x408a45
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
push ecx
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408a45
mov edx, dword [esp + 0xc]
push 4
push esi
push 4
push eax
push str.SyncMode5
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x40b670
Capabilities:
Create thread

Disassembly:
push esi
push edi
push 0x28
call sub.MFC42.DLL_operatornew
mov esi, eax
mov ecx, 0xa
xor eax, eax
mov edi, esi
add esp, 4
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esi], eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [esi + 4], eax
mov eax, dword [esp + 0xc]
push eax
lea ecx, [esi + 8]
push 0x431080
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
push esi
push 0
push 0x40b320
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0x18
pop edi
pop esi
ret 4

Function at 0x40e3b0
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x428c98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
mov ecx, edi
mov dword [esp + 0x14], edi
call fcn.0040dc10
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x20], 0
test eax, eax
je 0x40e400
mov al, byte [esp + 0xb]
lea ecx, [esp + 0xb]
push 0x42cf78
push ecx
mov byte [esp + 0x13], al
call sub.MSVCRT.dll__CxxThrowException
lea edx, [esp + 0xc]
push edx
push 4
push esi
push 0x40e0f0
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [esp + 0x24]
add esp, 0x18
test eax, eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
jne 0x40e441
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x10]
push 0x42ce68
push edx
mov dword [esp + 0x18], eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [esi + 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x40e469
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x10]
push 0x42ce68
push edx
mov dword [esp + 0x18], eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x40e491
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x10]
push 0x42ce68
push ecx
mov dword [esp + 0x18], eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, edi
mov dword [esi + 0x1c], 1
call fcn.0040dc20
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x40ea40
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp]
push eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40ea78
cmp dword [esp + 0x10], 4
setne al
pop ecx
ret
mov eax, 2
pop ecx
ret

Function at 0x40ea80
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret