joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46df12
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46df4a
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.0046bfc9
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046bfa1
jmp 0x46df56
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46f603
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 0x46f645
call fcn.004750bc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46f645
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46f63c
xor eax, eax
jmp 0x46f64d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046f653
pop edi
pop esi
pop ebx
ret 4

Function at 0x4755ec
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 0x47561a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x475638
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00475552
jmp 0x475638
mov eax, dword [esi + 0x14]
test eax, eax
je 0x475638
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00475552
test edi, edi
mov eax, edi
jne 0x475622
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402950
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x434f9c
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
mov eax, dword [esp + 0x30]
mov dword [esp + 0x1c], 0
push eax
push 0x95
call fcn.004220cc
lea ebx, [esi + 0x6c]
mov byte [esp + 0x1c], 1
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_2
lea edi, [esi + 0x70]
mov byte [esp + 0x1c], 2
mov ecx, edi
call sub.MFC42.DLL_CString::CString_2
lea ebp, [esi + 0x74]
mov byte [esp + 0x1c], 3
mov ecx, ebp
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x78]
mov byte [esp + 0x1c], 4
call sub.MFC42.DLL_CString::CString_2
push 0x446190
mov ecx, ebx
mov byte [esp + 0x20], 5
mov dword [esi], 0x43a440
mov dword [esi + 0x68], 0
call sub.MFC42.DLL_CString::operator_1
push 0x446190
mov ecx, edi
call sub.MFC42.DLL_CString::operator_1
push 0x446190
mov ecx, ebp
call sub.MFC42.DLL_CString::operator_1
push 0x446190
lea ecx, [esi + 0x78]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x2c]
push ecx
mov ecx, edi
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x2c]
mov dword [esi + 0x64], edx
mov dword [esi + 0x7c], eax
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10

Function at 0x402f80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43508b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x43a678
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x403010
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x20]
mov ecx, edx
push ebx
sub eax, ecx
mov ecx, dword [esi + 0x28]
mov ebx, edi
sub ecx, ebx
mov ebx, dword [esi + 0x1c]
cmp esi, ebp
je 0x402fd7
mov ebp, dword [esi + 4]
push 0xcc0020
push edx
push edi
push ebp
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x18]
pop ebx
test eax, eax
jne 0x403001
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x403016
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x403016
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], 0x43a664
mov ecx, edi
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, esi
mov dword [edi], 0x43a650
mov dword [esp + 0x1c], 0xffffffff
call fcn.00422258
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x40a6d8
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x435c98
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
lea edi, [esi + 4]
mov ecx, edi
call sub.MFC42.DLL_CString::CString_2
lea ebx, [esi + 8]
mov dword [esp + 0x1c], 0
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_2
lea ebp, [esi + 0xc]
mov byte [esp + 0x1c], 1
mov ecx, ebp
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x10]
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x14]
mov byte [esp + 0x1c], 3
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x18]
mov byte [esp + 0x1c], 4
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x20]
mov byte [esp + 0x1c], 5
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x24]
mov byte [esp + 0x1c], 6
call sub.MFC42.DLL_CString::CString_2
push 0x446190
mov ecx, edi
mov byte [esp + 0x20], 7
mov dword [esi], 0x43aec4
call sub.MFC42.DLL_CString::operator_1
push 0x446190
mov ecx, ebp
call sub.MFC42.DLL_CString::operator_1
push 0x446190
mov ecx, ebx
call sub.MFC42.DLL_CString::operator_1
push 0x446190
lea ecx, [esi + 0x20]
call sub.MFC42.DLL_CString::operator_1
push 0x446190
lea ecx, [esi + 0x14]
call sub.MFC42.DLL_CString::operator_1
push 0x446190
lea ecx, [esi + 0x10]
call sub.MFC42.DLL_CString::operator_1
xor edi, edi
push 0x446190
lea ecx, [esi + 0x18]
mov dword [esi + 0x28], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x2c], edi
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x34], edi
mov dword [esi + 0x30], edi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40afbc
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x435e40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call sub.MFC42.DLL_CFrameWnd::CFrameWnd
xor edi, edi
lea ecx, [esi + 0xcc]
mov dword [esp + 0x11c], edi
call sub.MFC42.DLL_CStatusBar::CStatusBar
lea ecx, [esi + 0x14c]
mov byte [esp + 0x11c], 1
call fcn.00422c90
lea ecx, [esi + 0x214]
mov byte [esp + 0x11c], 2
call fcn.00422c90
lea ecx, [esi + 0x2dc]
mov byte [esp + 0x11c], 3
call fcn.00422c90
lea ecx, [esi + 0x3a4]
mov byte [esp + 0x11c], 4
call fcn.00422c90
lea ecx, [esi + 0x490]
mov byte [esp + 0x11c], 5
call sub.MFC42.DLL_CString::CString_2
mov dword [esi], 0x43b0dc
mov dword [esi + 0x46c], edi
mov dword [esi + 0x494], edi
mov eax, dword [0x446284]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
lea ecx, [esp + 0x14]
push 0x104
push ecx
push 0x445360
push str.ViewOtherProcessing
push str.View
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_atoi]
lea edx, [esp + 0x10]
push edx
call ebx
add esp, 4
mov dword [0x4461ac], eax
mov eax, dword [0x446284]
lea ecx, [esp + 0x10]
push eax
push 0x104
push ecx
push 0x445360
push str.ViewOtherFinished
push str.View
call edi
lea edx, [esp + 0x10]
push edx
call ebx
mov ecx, dword [esp + 0x118]
add esp, 4
mov dword [0x4461a8], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x114
ret
Function at 0x40fd80
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4367d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
lea eax, [esp + 0xc]
push 1
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
mov esi, 0x44559c
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40fde1
test cl, cl
je 0x40fddd
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40fde1
add eax, 2
add esi, 2
test cl, cl
jne 0x40fdb9
xor eax, eax
jmp 0x40fde6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea ecx, [esp + 0xc]
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x40fe06
push 0x44559c
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::operator_2
push 0x5c
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::ReverseFind
push 0x5c
lea ecx, [esp + 0x24]
mov ebx, eax
call sub.MFC42.DLL_CString::Find
mov esi, eax
mov eax, dword [esp + 0x20]
cmp byte [esi + eax - 1], 0x3a
jne 0x40fe3a
inc esi
lea ecx, [esp + 0x20]
push esi
push 0x5c
call sub.MFC42.DLL_CString::Find_1
mov esi, eax
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_2
cmp esi, 0xffffffff
mov byte [esp + 0x18], 1
je 0x40febc
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll__mkdir]
push edi
mov edi, dword [sym.imp.MSVCRT.dll__access]
cmp esi, ebx
jg 0x40feba
inc esi
lea ecx, [esp + 0x14]
push esi
push ecx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x10]
push 0
push edx
call edi
add esp, 8
cmp eax, 0xffffffff
jne 0x40fea7
mov eax, dword [esp + 0x10]
push eax
call ebp
add esp, 4
push esi
push 0x5c
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::Find_1
mov esi, eax
cmp esi, 0xffffffff
jne 0x40fe5b
pop edi
pop ebp
lea ecx, [esp + 8]
mov byte [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x413f74
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
push eax
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CWnd::SubclassDlgItem
test eax, eax
jne 0x413f8c
pop esi
ret 0xc
push ebx
push ebp
push edi
mov ecx, esi
call fcn.00414040
push 0
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
mov ecx, 6
xor eax, eax
lea edi, [esi + 0x40]
add esi, 0x5a
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 6
xor eax, eax
mov edi, esi
mov ebp, dword [sym.imp.MSVCRT.dll_rand]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 8
xor ebx, ebx
mov edi, 0x1a
call ebp
cdq
idiv edi
xor eax, eax
xor ecx, ecx
cmp byte [esi + eax], 0
jne 0x413fe7
cmp ecx, edx
je 0x413fef
inc ecx
inc eax
cmp eax, 0x1a
jl 0x413fdc
jmp 0x413ff7
mov dl, bl
add dl, 0x41
mov byte [esi + eax], dl
inc ebx
dec edi
test edi, edi
jg 0x413fd3
mov edx, dword [0x447094]
mov eax, dword [0x447098]
inc edx
pop edi
pop ebp
mov dword [0x447094], edx
test eax, eax
pop ebx
jne 0x414031
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x413b30
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x447098], eax
xor ecx, ecx
pop esi
test eax, eax
setne cl
mov eax, ecx
ret 0xc
Function at 0x418580
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x8c
lea eax, [esp]
push esi
push eax
push 1
push 0
push str.Control_PanelDesktop
push bind
mov esi, 3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4185f4
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.WheelScrollLines
push ecx
mov dword [esp + 0x20], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4185e9
push 0xa
lea edx, [esp + 0x14]
push eax
push edx
call dword [sym.imp.MSVCRT.dll_strtoul]
add esp, 0xc
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x8c
ret

Function at 0x423180
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 0x4231a9
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 0x4231e9
cmp byte [edi], 0
jne 0x423205
mov ecx, esi
call fcn.004234b0
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 0x423220
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 0x423240
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 0x44559c
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 0x423400
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 bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x42349c
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 0x423620
Capabilities:
Get session user name

Disassembly:
sub esp, 0x20c
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x298]
test eax, eax
jle 0x42363a
mov dword [esp + 0x218], eax
push ebx
mov ebx, dword [esp + 0x218]
push esi
push edi
push ebx
call sub.WS2_32.dll_inet_addr
mov esi, eax
xor edi, edi
cmp esi, 0xffffffff
jne 0x423664
push str.0.0.0.1
call sub.WS2_32.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.WS2_32.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 0x4236ac
mov byte [esp + 0x24], al
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
test edi, edi
lea edx, [esp + eax + 0x24]
je 0x4236e7
mov edi, ebx
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, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [edx + ecx + 1]
mov eax, dword [ebp]
lea ecx, [esp + 0x1c]
sub edx, ecx
push 0
push edx
lea edx, [esp + 0x24]
push edx
mov ecx, ebp
call dword [eax + 0x20]
pop edi
pop esi
test eax, eax
pop ebx
jne 0x42370e
pop ebp
add esp, 0x20c
ret 8
push 0
lea eax, [esp + 0xc]
push 8
push eax
mov ecx, ebp
call fcn.00424f80
test eax, eax
jne 0x42372c
pop ebp
add esp, 0x20c
ret 8
mov cl, byte [esp + 9]
xor eax, eax
cmp cl, 0x5a
pop ebp
sete al
add esp, 0x20c
ret 8

Function at 0x423a60
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 0x423b70
Capabilities:
Connect socket
Resolve dns

Disassembly:
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 1
mov esi, ecx
push 2
call sub.WS2_32.dll_socket
mov edi, eax
cmp edi, 0xffffffff
je 0x423bfb
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.WS2_32.dll_htonl
lea ecx, [esp + 0xc]
push 0x10
push ecx
push edi
mov dword [esp + 0x1c], eax
mov word [esp + 0x1a], bx
call sub.WS2_32.dll_bind
cmp eax, 0xffffffff
je 0x423bea
mov edx, dword [esi + 0x84]
push edx
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x423c15
mov eax, dword [esi + 0x84]
push eax
call sub.WS2_32.dll_gethostbyname
cmp eax, ebx
jne 0x423c0a
call sub.WS2_32.dll_WSAGetLastError
mov dword [esi + 0x8c], eax
push edi
call sub.WS2_32.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.WS2_32.dll_htons
lea edx, [esp + 0xc]
push 0x10
push edx
push edi
mov word [esp + 0x1a], ax
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x423c4a
cmp dword [esi + 0x1c], ebx
je 0x423bea
mov dword [esi + 0x8c], 0x27d9
jmp 0x423bf5
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 0x424000
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x68]
test eax, eax
je 0x42402e
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 0x425fc0
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 0x42602b
cmp esi, 1
jne 0x426010
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 0x426020
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 0x42604b
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 0x426460
Capabilities:
Access peb ldr_data
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x437a90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
xor ebx, ebx
push ebx
push str.Path
lea ecx, [esp + 0x18]
push 0x446190
push ecx
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileStringA
mov edx, dword [esp + 0x10]
push 0x446190
push edx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x4264c5
push 0x44559c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
push esi
push eax
lea ecx, [esp + 0x14]
push str._s_s.exe
push ecx
mov byte [esp + 0x34], 1
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x1c]
add esp, 0x10
push ebx
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
jne 0x426529
mov eax, dword [esp + 0x10]
push esi
push eax
lea ecx, [esp + 0x14]
push str._s_s_Res.dll
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x1c]
add esp, 0x10
push ebx
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
je 0x426544
lea eax, [edi + 2]
push eax
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x426576
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov ecx, dword [esp + 0xc]
push esi
push edi
push ebx
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
lea edx, [esp + 0x18]
lea eax, [esp + 0x14]
push edx
push eax
push 0x44559c
push esi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
xor edi, edi
mov edx, dword [eax + 8]
mov dword [ecx], edx
mov edx, dword [esp + 0x34]
mov eax, dword [eax + 0xc]
mov dword [edx], eax
mov di, ax
shr eax, 0x10
push edi
push eax
mov edx, dword [esp + 0x40]
xor eax, eax
mov ax, word [ecx]
mov ecx, dword [ecx]
shr ecx, 0x10
push eax
push ecx
push str._d._02d._d._d
push edx
call sub.MFC42.DLL_CString::Format
push esi
call sub.MFC42.DLL_operatordelete
add esp, 0x1c
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret