joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46f830
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b94d8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
call fcn.0046a130
test eax, eax
je 0x46f938
lea ecx, [esp + 0xc]
call fcn.004405a0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.0046a130
mov ecx, eax
call fcn.004677f0
test eax, eax
je 0x46f91f
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebp, eax
je 0x46f91f
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x46f91f
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
neg esi
push edi
push ebx
sbb esi, esi
and esi, edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.004407a0
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x46f901
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x46f91f
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0x4f25d8]
push ebx
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0x4c2190
call fcn.004407a0
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x46f980
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.0046a130
test eax, eax
je 0x46fa6f
mov ecx, edi
call fcn.0046a130
mov ecx, eax
call fcn.004676a0
test eax, eax
jne 0x46fa6f
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x46fa6f
mov eax, dword [0x4f25d8]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x46f9e2
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 1
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [esp + 0x1c]
shr ecx, 4
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 1
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.0046a130
mov ecx, eax
call fcn.004678d0
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x46fa6f
cmp ebx, eax
jne 0x46fa6f
cmp dword [esp + 0x10], eax
jne 0x46fa55
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
push eax
mov ecx, edi
call dword [edx + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x472610
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b9768
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x472649
inc eax
mov dword [esi + 0x10], eax
jmp 0x47275c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x47265d
mov eax, 0xffffffc7
jmp 0x47275e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x47266e
cmp dword [esi + 8], eax
jne 0x47265d
cmp dword [esi + 8], eax
jne 0x472687
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x472687
mov eax, 0xffffffc7
jmp 0x47275e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x47269b
push eax
mov ecx, ebx
call fcn.00471e40
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.004405a0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x4726cc
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.004405c0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.004715b0
test eax, eax
mov dword [esp + 0x38], eax
je 0x4726ff
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4c2190
call fcn.004407a0
mov eax, dword [esp + 0x38]
jmp 0x47275e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00472470
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x472743
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00472490
mov esi, eax
test esi, esi
jne 0x472773
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00472470
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x472715
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4c2190
call fcn.004407a0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4c2190
call fcn.004407a0
mov eax, esi
jmp 0x47275e

Function at 0x475880
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x4758e0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x4758e0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x4758e0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x4758e0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x475920
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x47b840
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b9d98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004b0879
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0047b1e0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004b07a7
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004acf8e
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004acf8e
push 1
push 0
push 0
mov ecx, esi
call fcn.004acf36
push 1
push 0
push 1
mov ecx, esi
call fcn.004acf36
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004b08eb
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x47b9c0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b9db8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004b0879
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0047b1e0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004b07a7
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x47ba84
cmp dword [esp + 0x40], 1
jne 0x47ba82
cmp ecx, eax
jge 0x47ba84
mov eax, ecx
cmp eax, 0xc8
jge 0x47ba90
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0047b840
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004b08eb
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x47c200
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b9e23
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004ab3af
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004b0b21
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004b20bc
test eax, eax
je 0x47c31c
mov ecx, dword [esp + 0x3c]
call fcn.004b0b4e
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x47c2e0
push edi
mov ecx, esi
call fcn.004ae10e
mov ecx, esi
call fcn.0047c480
cmp dword [esp + 0x38], 1
jne 0x47c315
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004ae278
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x47ed30
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x47ed63
push esi
call fcn.00481e40
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x47ed5c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x47ede9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x47edd2
mov eax, dword [esi + 8]
test eax, eax
je 0x47ed87
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x47edce
cmp eax, 2
je 0x47edd2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x47ed7a
cmp eax, 3
je 0x47edad
cmp eax, 1
jne 0x47ed7a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x47ed7a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x47ed7a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0047ee10
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x47edf8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0047ee10
add esp, 4
pop esi
ret
Function at 0x48e120
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x48e16a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x48e199
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x48e1db
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x4ac1a4
Capabilities:
Get graphical window text

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

Function at 0x4ad892
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 0x4ad8d4
call fcn.004b35be
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4ad8d4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4ad8cb
xor eax, eax
jmp 0x4ad8dc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004ad8e2
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b3aee
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 0x4b3b1c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b3b3a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b3a54
jmp 0x4b3b3a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b3b3a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b3a54
test edi, edi
mov eax, edi
jne 0x4b3b24
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x405930
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x410a98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x64], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x64], 1
call sub.MFC42.DLL_CString::CString
mov ebp, dword [esp + 0x70]
mov byte [esp + 0x64], 2
test ebp, ebp
je 0x405b1c
mov ebx, dword [esp + 0x6c]
test ebx, ebx
jl 0x405b1c
mov ax, word [0x416838]
mov ecx, 0xf
mov word [esp + 0x1c], ax
xor eax, eax
lea edi, [esp + 0x1e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x95
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
mov dword [ebp], ebx
push ecx
push ebx
mov ecx, esi
call fcn.00405ed0
test ebx, ebx
jne 0x4059dc
push str.LOBBY
lea ecx, [esp + 0x14]
call fcn.0040f84a
jmp 0x4059ef
push ebx
lea edx, [esp + 0x14]
push 0x4160ec
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
lea ecx, [esp + 0x20]
push 0x40
push ecx
push 0x417dd0
push str.dlVersion
push edx
call edi
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x70]
push eax
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x70]
mov byte [esp + 0x64], 3
push ecx
mov ecx, esi
call fcn.00405820
lea ecx, [esp + 0x70]
mov dword [ebp + 0x230], eax
mov byte [esp + 0x64], 2
call fcn.0040f790
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x20]
push 0x40
push eax
push 0x417dd0
push str.name
push ecx
call edi
mov ecx, dword [esi + 0x858]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x1c]
push edx
push eax
push ecx
lea edx, [esp + 0x24]
push str._sGameLobby_s_s.exe
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x14
test ebx, ebx
je 0x405a98
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x405ae8
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x20]
push 0x40
push edx
push 0x417dd0
push str.Version
push eax
call edi
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x74]
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x70]
mov ecx, esi
push edx
mov byte [esp + 0x68], 4
call fcn.00405820
lea ecx, [esp + 0x70]
mov dword [ebp + 0x22c], eax
mov byte [esp + 0x64], 2
call fcn.0040f790
lea ecx, [esp + 0x18]
mov byte [esp + 0x64], 1
call fcn.0040f790
lea ecx, [esp + 0x10]
mov byte [esp + 0x64], 0
call fcn.0040f790
lea ecx, [esp + 0x14]
mov dword [esp + 0x64], 0xffffffff
call fcn.0040f790
mov eax, 1
jmp 0x405b4b
lea ecx, [esp + 0x18]
mov byte [esp + 0x64], 1
call fcn.0040f790
lea ecx, [esp + 0x10]
mov byte [esp + 0x64], 0
call fcn.0040f790
lea ecx, [esp + 0x14]
mov dword [esp + 0x64], 0xffffffff
call fcn.0040f790
xor eax, eax
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 8
Function at 0x405ff0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x410b01
push eax
mov dword fs:[0], esp
sub esp, 0x218
push esi
mov esi, ecx
call fcn.00406b60
test eax, eax
je 0x406050
mov ecx, esi
call fcn.004063f0
test eax, eax
jne 0x406047
push 0x4168e4
push 1
call fcn.00409b00
add esp, 8
pop esi
mov ecx, dword [esp + 0x218]
mov dword fs:[0], ecx
add esp, 0x224
ret
push 0
mov ecx, esi
call fcn.00406b70
push ebx
push ebp
push edi
xor ebx, ebx
mov ecx, 0x83
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], bx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
stosw word es:[edi], ax
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x134]
mov dword [esp + 0x230], ebx
cmp eax, ebx
lea ecx, [esp + 0x14]
lea eax, [esi + 0x858]
je 0x4060a3
push str.Download_testSvr.ini
push eax
push ecx
call sub.MFC42.DLL_operator
mov byte [esp + 0x230], 1
jmp 0x4060b7
push str.DownloadDownSvrListNew.ini
push eax
push ecx
call sub.MFC42.DLL_operator
mov byte [esp + 0x230], 2
lea ecx, [esp + 0x10]
push eax
call fcn.0040f8b0
lea ecx, [esp + 0x14]
mov byte [esp + 0x230], 0
call fcn.0040f790
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push edx
push ebx
push str.ServerNum
push str.PUBLIC
call edi
mov ebp, eax
cmp ebp, ebx
jg 0x40614b
cmp dword [esi + 0x134], ebx
je 0x406109
push 0x4168c4
push 1
call fcn.00409b00
add esp, 8
jmp 0x40614b
mov ecx, esi
call fcn.004063f0
mov ebx, eax
test ebx, ebx
je 0x40612d
mov eax, dword [esp + 0x10]
push eax
push 0
push str.ServerNum
push str.PUBLIC
call edi
mov ebp, eax
jmp 0x40613c
push 0x4168e4
push 1
call fcn.00409b00
add esp, 8
xor ecx, ecx
test ebx, ebx
sete cl
push ecx
mov ecx, esi
call fcn.00406b70
push 0x416894
push 0
call fcn.00409b00
add esp, 8
mov ecx, esi
call fcn.00406d30
xor edi, edi
test ebp, ebp
jle 0x406191
or ebx, 0xffffffff
lea edx, [esp + 0x18]
push 0
push edx
mov ecx, esi
mov dword [esp + 0x24], ebx
mov word [esp + 0x22], di
call fcn.00404280
inc edi
dec ebx
cmp edi, ebp
mov dword [esi + 0x130], 1
jl 0x40616a
push 1
mov ecx, esi
call fcn.00406850
lea ecx, [esp + 0x10]
mov dword [esp + 0x230], 0xffffffff
call fcn.0040f790
mov ecx, dword [esp + 0x228]
pop edi
pop ebp
pop ebx
pop esi
mov dword fs:[0], ecx
add esp, 0x224
ret
Function at 0x4061d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x410b52
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x238
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
mov ecx, 0x83
xor eax, eax
lea edi, [esp + 0x32]
mov word [esp + 0x30], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
mov ecx, esi
push eax
push 0xffffffffffffffff
mov dword [esp + 0x250], 0
call fcn.00405ed0
mov cx, word [esi + 0x118]
lea edx, [esp + 0x30]
mov word [esp + 0x32], cx
push 0
push edx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.00404280
test eax, eax
je 0x406261
push 0x416940
push 0
call fcn.00409b00
add esp, 8
jmp 0x4063ab
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x248], 1
call fcn.0040c660
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push eax
mov byte [esp + 0x24c], 2
call fcn.0040c7d0
test eax, eax
jne 0x4062df
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
lea edx, [esp + 8]
push ecx
push 0x41691c
push edx
mov byte [esp + 0x254], 3
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x14]
push eax
push 0
call fcn.00409b00
add esp, 0x14
lea ecx, [esp + 8]
mov byte [esp + 0x248], 2
call fcn.0040f790
jmp 0x406389
push str.__items__games__item
lea ecx, [esp + 0x1c]
call fcn.0040caa0
mov edi, dword [sym.imp.MSVCRT.dll_atoi]
push ebx
lea ecx, [esp + 0xc]
push 0
push ecx
lea ecx, [esp + 0x24]
call fcn.0040cc20
mov edx, dword [eax]
mov eax, dword [esp + 0xc]
test edx, edx
setne bl
test eax, eax
mov byte [esp + 0x24c], 2
je 0x406321
mov edx, dword [eax]
push eax
call dword [edx + 8]
test bl, bl
je 0x406388
lea eax, [esp + 0x18]
push str.gameID
push eax
lea ecx, [esp + 0x24]
call fcn.0040cd20
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x250], 5
call fcn.0040f8b0
lea ecx, [esp + 0x18]
mov byte [esp + 0x24c], 2
call fcn.0040f790
mov ecx, dword [esp + 0x14]
push ecx
call edi
mov dx, word [esi + 0x118]
add esp, 4
mov dword [esp + 0x38], eax
lea eax, [esp + 0x34]
push 0
push eax
mov ecx, esi
mov word [esp + 0x3e], dx
call fcn.00404280
jmp 0x4062f4
pop ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x248], 1
call fcn.0040c740
lea ecx, [esp + 0x10]
mov byte [esp + 0x248], 0
call fcn.0040f790
mov eax, dword [esi + 0x9c]
test eax, eax
jle 0x4063be
push 3
mov ecx, esi
call fcn.00406850
lea ecx, [esp + 0xc]
mov dword [esp + 0x248], 0xffffffff
call fcn.0040f790
mov ecx, dword [esp + 0x240]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x244
ret