joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4570d0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x10c
xor eax, eax
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0x41
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x120]
test edi, edi
je 0x4570f9
cmp byte [edi], 0
jne 0x457115
mov ecx, ebp
call fcn.00457430
lea ecx, [esp + 0x18]
push 0x103
push ecx
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 0x457130
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 4
push ebx
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
test esi, esi
jne 0x45714c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 4
push esi
push ebx
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
xor eax, eax
lea edx, [esp + 0x14]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push edx
push eax
push 0x4d6160
push esi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x10]
push esi
mov ecx, dword [eax + 8]
shr ecx, 0x10
mov word [ebp + 0x104], cx
mov dx, word [eax + 8]
mov word [ebp + 0x106], dx
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
mov word [ebp + 0x108], cx
mov dx, word [eax + 0xc]
mov word [ebp + 0x10a], dx
call sub.MFC42.DLL_operatordelete
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 4

Function at 0x4572f0
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 ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 8]
lea eax, [esp + 0x14]
mov dword [esp + 8], 0
push edx
push 1
push 0
push eax
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x457387
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 0x457d60
Capabilities:
Query service status

Disassembly:
push 0xffffffffffffffff
push 0x4b708b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb4
push ebp
lea eax, [esp + 0x24]
push edi
push eax
mov dword [esp + 0x2c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ecx, [esp + 8]
xor ebp, ebp
call sub.MFC42.DLL_CString::CString_5
mov eax, dword [esp + 0x38]
mov dword [esp + 0xc4], ebp
cmp eax, 2
jne 0x457e3d
push 1
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
cmp edi, ebp
je 0x457e97
push ebx
push esi
push 0x4d97b8
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
push 0x4d95a0
lea ecx, [esp + 0x14]
call fcn.004550cc
push 0x4d97b4
lea ecx, [esp + 0x14]
call fcn.004550cc
push 0x4d97b0
lea ecx, [esp + 0x14]
call fcn.004550cc
mov ecx, dword [esp + 0x10]
push 4
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
cmp esi, ebp
je 0x457e36
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x457e33
cmp dword [esp + 0x18], 4
jne 0x457e33
mov ebp, 1
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
jmp 0x457e97
push str..S
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator_1
push 0x4d95a0
lea ecx, [esp + 0xc]
call fcn.004550cc
push 0x4d97b4
lea ecx, [esp + 0xc]
call fcn.004550cc
push 0x4d97b0
lea ecx, [esp + 0xc]
call fcn.004550cc
mov eax, dword [esp + 8]
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x457e90
mov ebp, 1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 8]
mov dword [esp + 0xc4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xbc]
mov eax, ebp
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0xc0
ret
Function at 0x458980
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b7348
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 0x4db920
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 8]
test al, al
jne 0x4589d8
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_5
lea ecx, [esp + 8]
xor ebp, ebp
push ecx
lea ecx, [esp + 0x68]
mov dword [esp + 0x54], ebp
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x64]
cmp dword [eax - 8], 2
jge 0x458a2f
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 0x458a89
mov edx, dword [esp + 0x64]
push edx
call fcn.00455ed0
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 0x458ab3
cmp al, 0x2c
je 0x458ab3
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x458aa7
cmp byte [esi], 0x2c
jne 0x458ae1
inc esi
push esi
call ebx
mov ebp, eax
mov al, byte [esi]
add esp, 4
test al, al
je 0x458ad3
cmp al, 0x2c
je 0x458ad3
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x458ac7
cmp byte [esi], 0x2c
jne 0x458ae1
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 0x458b20
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b7368
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 0x4db920
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp]
test al, al
je 0x458bce
push ebx
push esi
push edi
lea ecx, [esp + 0x68]
call sub.MFC42.DLL_CString::CString_5
lea ecx, [esp + 0xc]
mov dword [esp + 0x54], 0
push ecx
lea ecx, [esp + 0x6c]
call sub.MFC42.DLL_CString::operator_1
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 0x458bab
cmp al, 0x2c
je 0x458bab
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x458b9f
cmp byte [esi], 0x2c
jne 0x458bba
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 0x458fa0
Capabilities:
Get session user name
Set socket configuration

Disassembly:
sub esp, 0x20c
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
mov ebx, ecx
push ebp
call sub.WSOCK32.dll_inet_addr
mov esi, eax
xor edi, edi
cmp esi, 0xffffffff
jne 0x458fd3
push str.0.0.0.1
call sub.WSOCK32.dll_inet_addr
mov esi, eax
mov edi, 1
mov eax, dword [esp + 0x224]
mov byte [esp + 0x1c], 4
push eax
mov byte [esp + 0x21], 1
call sub.WSOCK32.dll_htons
lea ecx, [esp + 0x10]
lea edx, [esp + 0x24]
push ecx
push edx
mov word [esp + 0x26], ax
mov dword [esp + 0x28], esi
mov dword [esp + 0x18], 0x100
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x45901b
mov byte [esp + 0x24], al
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
test edi, edi
lea edx, [esp + eax + 0x24]
je 0x459056
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [edx + ecx + 1]
mov eax, dword [ebx]
lea ecx, [esp + 0x1c]
sub edx, ecx
push 0
push edx
lea edx, [esp + 0x24]
push edx
mov ecx, ebx
call dword [eax + 0x20]
test eax, eax
jne 0x45907c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret 8
push 0
lea eax, [esp + 0x18]
push 8
push eax
mov ecx, ebx
call fcn.0045a820
test eax, eax
jne 0x45909d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret 8
mov cl, byte [esp + 0x15]
xor eax, eax
pop edi
cmp cl, 0x5a
pop esi
pop ebp
sete al
pop ebx
add esp, 0x20c
ret 8
Function at 0x4590c0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x218
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0
mov eax, dword [esi]
lea ecx, [esp + 0x14]
push 4
push ecx
mov ecx, esi
mov byte [esp + 0x1c], 5
mov byte [esp + 0x1d], 2
mov byte [esp + 0x1e], 0
mov byte [esp + 0x1f], 2
call dword [eax + 0x20]
test eax, eax
jne 0x459101
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 8
push 0
lea edx, [esp + 0x1a]
push 2
push edx
mov ecx, esi
call fcn.0045a820
test eax, eax
jne 0x459122
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 8
mov ax, word [esp + 0x16]
test ah, ah
je 0x45913f
cmp ah, 2
je 0x45913f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x218
ret 8
cmp al, 2
jne 0x4591fb
lea edx, [esi + 0x1ac]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebp, [esi + 0x1ec]
mov ebx, ecx
mov edi, ebp
or ecx, 0xffffffff
push ebx
repne scasb al, byte es:[edi]
mov edi, dword [sym.imp.MSVCRT.dll_memmove]
lea eax, [esp + 0x2e]
not ecx
dec ecx
push edx
push eax
mov dword [esp + 0x24], ecx
mov byte [esp + 0x34], 1
mov byte [esp + 0x35], bl
call edi
mov eax, dword [esp + 0x24]
lea ecx, [esp + ebx + 0x37]
push eax
push ebp
push ecx
mov byte [esp + ebx + 0x42], al
call edi
mov eax, dword [esp + 0x30]
mov edx, dword [esi]
add esp, 0x18
lea ecx, [eax + ebx + 3]
lea eax, [esp + 0x28]
push 0
push ecx
push eax
mov ecx, esi
call dword [edx + 0x20]
test eax, eax
jne 0x4591c3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 8
push 0
lea ecx, [esp + 0x18]
push 2
push ecx
mov ecx, esi
call fcn.0045a820
test eax, eax
jne 0x4591e4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 8
mov al, byte [esp + 0x15]
test al, al
je 0x4591fb
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x218
ret 8
mov ebp, dword [esp + 0x22c]
mov byte [esp + 0x28], 5
push ebp
mov byte [esp + 0x2d], 1
mov byte [esp + 0x2e], 0
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
je 0x45922b
mov byte [esp + 0x2b], 1
mov dword [esp + 0x2c], eax
lea edi, [esp + 0x30]
jmp 0x459256
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2d]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x2b], 3
mov ebx, ecx
push ebx
push ebp
push edx
mov byte [esp + 0x38], bl
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
lea edi, [esp + ebx + 0x2d]
mov eax, dword [esp + 0x230]
push eax
call sub.WSOCK32.dll_htons
mov word [edi], ax
mov edx, dword [esi]
lea eax, [esp + 0x28]
push 0
sub edi, eax
lea ecx, [esp + 0x2c]
add edi, 2
push edi
push ecx
mov ecx, esi
call dword [edx + 0x20]
test eax, eax
jne 0x45928f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 8
push 0
lea edx, [esp + 0x20]
push 0xa
push edx
mov ecx, esi
call fcn.0045a820
test eax, eax
jne 0x4592b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 8
mov cl, byte [esp + 0x1d]
xor eax, eax
pop edi
pop esi
test cl, cl
pop ebp
pop ebx
sete al
add esp, 0x218
ret 8
Function at 0x4593c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 8]
push ecx
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x4594d0
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 1
mov esi, ecx
push 2
call sub.WSOCK32.dll_socket
mov edi, eax
cmp edi, 0xffffffff
je 0x45955b
xor eax, eax
push ebx
mov dword [esp + 0x10], eax
mov word [esp + 0x10], 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
call sub.WSOCK32.dll_htonl
lea ecx, [esp + 0xc]
push 0x10
push ecx
push edi
mov dword [esp + 0x1c], eax
mov word [esp + 0x1a], bx
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
je 0x45954a
mov edx, dword [esi + 0x84]
push edx
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x459575
mov eax, dword [esi + 0x84]
push eax
call sub.WSOCK32.dll_gethostbyname
cmp eax, ebx
jne 0x45956a
call sub.WSOCK32.dll_WSAGetLastError
mov dword [esi + 0x8c], eax
push edi
call sub.WSOCK32.dll_closesocket
mov dword [esi + 0x80], ebx
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [esp + 0x10], eax
mov cx, word [esi + 0x88]
push ecx
call sub.WSOCK32.dll_htons
lea edx, [esp + 0xc]
push 0x10
push edx
push edi
mov word [esp + 0x1a], ax
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x4595aa
cmp dword [esi + 0x1c], ebx
je 0x45954a
mov dword [esi + 0x8c], 0x27d9
jmp 0x459555
mov dword [esi + 0x6c], edi
mov dword [esi + 0x80], 2
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret

Function at 0x459910
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x68]
test eax, eax
je 0x45993e
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x68], 0
mov dword [esi + 0x80], 0
pop esi
ret
Function at 0x45b7d0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareGlobalLinkGameShareSettingsMPID
push bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, dword [esp + 0x14]
test eax, eax
jne 0x45b83b
cmp esi, 1
jne 0x45b820
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x45b830
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 4]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.switch_window
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x45b85b
push 0
push esi
push 0x1212
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, 1
pop esi
pop ecx
ret 0xc
Function at 0x45bf60
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 0x45bf8f
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 0x45bfaf
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.0045be90
pop edi
pop esi
pop ebx
ret 8
Function at 0x466cf0
Capabilities:
Extract resource via kernel32 functions
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x10], 0
test edi, edi
jne 0x466dbc
mov eax, dword [esp + 0x1c]
push edi
push 0x80
push 3
push edi
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x466d33
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push 0
push 0
push esi
call ebp
mov ebx, eax
push ebx
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
test edi, edi
jne 0x466d59
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push esi
call ebp
lea ecx, [esp + 0x10]
push 0
push ecx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x466d85
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
push esi
cmp eax, ebx
je 0x466d9c
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
call fcn.00466a10
push edi
mov esi, eax
call sub.MFC42.DLL_operatordelete
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push edx
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov esi, eax
test esi, esi
jne 0x466dde
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x466dfa
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x466e0b
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push ebx
push eax
call fcn.00466a10
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x46aef0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b81d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_5
lea eax, [esp + 0x34]
lea ecx, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x30], 0
call dword [sym.imp.USER32.dll_CopyRect]
push 0xffffffffffffffff
lea edx, [esp + 0x14]
push 0xffffffffffffffff
push edx
call dword [sym.imp.USER32.dll_InflateRect]
mov esi, dword [esp + 0x30]
mov eax, dword [edi + 0xa0]
push eax
mov ecx, edi
mov ebx, dword [esi]
call fcn.00479670
push eax
mov ecx, esi
call dword [ebx + 0x30]
mov ecx, dword [edi + 0x84]
lea edx, [esp + 0xc]
push ecx
push 0x4d6364
push edx
mov ebx, eax
call sub.MFC42.DLL_CString::Format_1
mov ecx, dword [esp + 0x50]
mov eax, dword [esi]
add esp, 0xc
push ecx
mov ecx, esi
call dword [eax + 0x38]
push 1
mov ecx, esi
call sub.MFC42.DLL_CDC::SetBkMode
mov eax, dword [esp + 0xc]
mov edx, dword [esi]
lea edi, [esp + 0x10]
push 0x25
mov ecx, dword [eax - 8]
push edi
push ecx
push eax
mov ecx, esi
call dword [edx + 0x70]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x30]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x18

Function at 0x46e720
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b82d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [esp + 0x2c]
push esi
mov esi, ecx
push eax
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString_4
mov ecx, dword [esp + 0x34]
push 0
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::GetBuffer
lea edx, [esp + 4]
mov ecx, esi
push edx
mov dword [esp + 0xc], eax
call fcn.004595e0
push eax
mov ecx, esi
call fcn.0046f000
lea ecx, [esp + 0x30]
mov esi, eax
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 8
Function at 0x46f6c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b832c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.00454c8e
mov dword [esi], 0x4bdbd0
xor ebx, ebx
lea ecx, [esi + 0x14c]
mov dword [esp + 0x1c], ebx
call fcn.00480b80
lea ecx, [esi + 0x1ac]
mov byte [esp + 0x1c], 1
call fcn.00479140
push 0x46f8a0
push 0x46f830
push 2
lea eax, [esi + 0x620]
push 0x10
push eax
mov byte [esp + 0x30], 2
call fcn.00455668
push ebx
mov ecx, esi
mov byte [esp + 0x20], 3
mov dword [esi], 0x4c3480
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x44], ebx
call fcn.0046f9d0
mov ebp, 1
push ebx
push ebx
mov ecx, esi
mov dword [esi + 0x40], ebp
mov dword [esi + 0x4f4], ebp
mov dword [esi + 0x68], ebp
mov byte [esi + 0x64], bl
call fcn.00471410
lea edi, [esi + 0xac]
mov ecx, 0xf
xor eax, eax
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x4fc], 0x1f
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x4f8], ebx
push ebx
rep stosd dword es:[edi], eax
push ebx
mov ecx, esi
call fcn.004714f0
push ebx
mov ecx, esi
mov dword [esi + 0x1cc], ebx
mov dword [esi + 0x500], ebx
mov dword [esi + 0x48], ebx
call fcn.00471610
mov eax, 3
lea edx, [esi + 0x640]
xor ecx, ecx
mov dword [esi + 0x1a8], ebx
mov dword [esi + 0xe8], ebx
mov dword [esi + 0xec], ebx
mov dword [esi + 0x12c], ebp
mov dword [esi + 0x130], eax
mov dword [esi + 0x134], eax
mov dword [edx], ecx
xor eax, eax
lea edi, [esi + 0x650]
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov ecx, 0x88
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x140], ebx
mov dword [esi + 0x144], ebx
mov dword [esi + 0x4ec], ebp
mov dword [esi + 0x4f0], ebx
mov dword [esi + 0x148], ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x473510
Capabilities:
Encode data using add xor sub operations

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
mov ecx, ebx
call sub.MFC42.DLL_CString::Empty
mov eax, dword [esi + 0x243c]
test eax, eax
je 0x473579
mov ecx, dword [esi + 0x2434]
test ecx, ecx
jl 0x473579
cdq
xor eax, edx
push edi
sub eax, edx
xor edi, edi
test eax, eax
jle 0x47356e
mov eax, dword [esi + 0xa2c]
mov ecx, dword [esi + 0x2434]
add eax, edi
mov dl, byte [eax + ecx]
mov eax, dword [ebx]
push edx
mov ecx, dword [eax - 8]
push ecx
mov ecx, ebx
call sub.MFC42.DLL_CString::Insert_1
mov eax, dword [esi + 0x243c]
inc edi
cdq
xor eax, edx
sub eax, edx
cmp edi, eax
jl 0x47353f
mov edx, dword [ebx]
pop edi
pop esi
pop ebx
mov eax, dword [edx - 8]
ret 4
pop esi
xor eax, eax
pop ebx
ret 4