joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4eb600
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x14
xor eax, eax
lea edx, [esp]
push ebx
push ebp
mov ebx, ecx
push esi
push edi
or ecx, 0xffffffff
lea edi, [ebx + 0x15ee0]
push 0
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.0050aca0
mov edx, dword [ebx + 0x34]
lea eax, [esp + 0x10]
add edx, 0x24
mov ecx, esi
push edx
push str.Country
push eax
call fcn.0050d8f0
mov ecx, dword [ebx + 0x11c]
push 0
push ecx
lea edx, [esp + 0x18]
push str.TechLevel
push edx
mov ecx, esi
call fcn.0050c9e0
mov ecx, dword [ebx + 0x124]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
push 0
shr eax, 0x1f
add edx, eax
lea ecx, [esp + 0x14]
push edx
push str.Credits
push ecx
mov ecx, esi
call fcn.0050c9e0
mov edx, dword [ebx + 0x118]
push 0
push edx
lea eax, [esp + 0x18]
push 0x7c58cc
push eax
mov ecx, esi
call fcn.0050c9e0
mov ecx, dword [ebx + 0x128]
lea edx, [esp + 0x10]
push ecx
push str.Edge
push edx
mov ecx, esi
call fcn.0046aa10
mov al, byte [ebx + 0x135]
lea ecx, [esp + 0x10]
push eax
push str.PlayerControl
push ecx
mov ecx, esi
call fcn.0050e680
mov edx, dword [ebx + 0x15f40]
push edx
lea eax, [esp + 0x14]
push 0x7bc370
push eax
mov ecx, esi
call fcn.00469c00
mov eax, dword [0xa1a5b8]
xor ebp, ebp
test eax, eax
jle 0x4eb73c
mov edi, dword [ebx + 0x120]
mov edx, dword [0xa1a5ac]
mov dword [esp + 0x28], eax
mov ecx, dword [edx]
mov eax, 1
mov ecx, dword [ecx + 0x30]
shl eax, cl
test eax, edi
je 0x4eb72e
or ebp, eax
mov eax, dword [esp + 0x28]
add edx, 4
dec eax
mov dword [esp + 0x28], eax
jne 0x4eb71c
push ebp
lea ecx, [esp + 0x14]
push str.Allies
push ecx
mov ecx, esi
call fcn.0046a3c0
mov cl, byte [ebx + 0x15ef5]
lea eax, [ebx + 0x15ef5]
test cl, cl
je 0x4eb770
push eax
lea edx, [esp + 0x14]
push str.UIName
push edx
mov ecx, esi
call fcn.0050d8f0
lea eax, [esp + 0x10]
lea ecx, [ebx + 0x55f0]
push eax
push esi
call fcn.0042c5d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
Function at 0x4fe5b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x90
push ebp
push esi
mov ebp, ecx
push edi
mov edi, str.SOFTWAREWestwoodWOLAPI_
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp + 4], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x14], 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4fe653
mov dword [esp + 0xc], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
push str.Options
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4fe648
cmp dword [esp + 0x18], 4
jne 0x4fe648
mov ecx, dword [esp + 0xc]
mov byte [ebp + 4], 1
mov dword [ebp], ecx
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp + 4]
pop edi
pop esi
pop ebp
add esp, 0x90
ret
Function at 0x5108f0
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
push 0x71a
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x51098e
mov eax, dword [0x83a6f0]
cmp eax, 0x320
jg 0x510918
xor ecx, ecx
jmp 0x510924
add eax, 0xfffffce0
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
mov eax, dword [0x83a6f4]
cmp eax, 0x258
jg 0x510934
xor eax, eax
jmp 0x51093e
add eax, 0xfffffda8
cdq
sub eax, edx
sar eax, 1
push 0xd
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
push ecx
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 1
push 0x4e3
push esi
call edi
cmp dword [0x83a6f0], 0x280
jne 0x51097f
push str.Ra2ts_s
push 0
push 0x4e4
push esi
call edi
pop edi
pop esi
ret
push str.Ra2ts_l
push 0
push 0x4e4
push esi
call edi
pop edi
pop esi
ret
Function at 0x511af0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x1ac
push ebx
push esi
lea eax, [esp + 0x74]
push edi
xor ebx, ebx
push eax
push str.BATTLE.INI
mov byte [esp + 0x17], bl
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
je 0x511c21
push ebp
test dword [esp + 0x7c], 0x116
jne 0x511bf9
lea edi, [esp + 0x1ac]
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x1ac]
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x511b4e
lea ebp, [esp + 0xa8]
push ebp
lea ecx, [esp + 0x1c]
call fcn.00468b70
push 0x50
call fcn.0076d5a7
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x511b95
lea edi, [esi + 4]
mov ecx, edi
call fcn.00490c60
mov dword [edi], vtable.List_struct_INIClass::INISection__.0
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov byte [esi + 0x2c], bl
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov byte [esi + 0x38], bl
mov dword [esi], vtable.CCINIClass.0
jmp 0x511b97
xor esi, esi
push ebx
lea ecx, [esp + 0x1c]
push ebx
push ecx
mov ecx, esi
call fcn.004692d0
push 0x7c6ba0
push ebp
call fcn.0076d4b0
add esp, 8
test eax, eax
jne 0x511bbc
mov byte [esp + 0x13], 1
mov ecx, esi
call fcn.00465320
cmp esi, ebx
je 0x511bcf
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
lea ecx, [esp + 0x6c]
mov dword [esp + 0x18], vtable.CCFileClass.0
mov dword [esp + 0x78], ebx
call fcn.00438290
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], vtable.CDFileClass.0
call fcn.0042f250
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x7c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x511b1f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, byte [esp + 0x13]
pop ebp
cmp al, bl
jne 0x511cad
push 0x7c6ba0
lea ecx, [esp + 0x18]
call fcn.00468b70
push 0x50
call fcn.0076d5a7
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x511c87
lea edi, [esi + 4]
mov ecx, edi
call fcn.00490c60
lea ecx, [esp + 0x14]
mov dword [edi], vtable.List_struct_INIClass::INISection__.0
push ebx
push ebx
push ecx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov byte [esi + 0x2c], bl
mov dword [esi + 0x30], ebx
mov ecx, esi
mov dword [esi + 0x34], ebx
mov byte [esi + 0x38], bl
mov dword [esi], vtable.CCINIClass.0
call fcn.004692d0
mov ecx, esi
call fcn.00465320
mov edx, dword [esi]
mov ecx, esi
push 1
call dword [edx]
lea ecx, [esp + 0x68]
mov dword [esp + 0x14], vtable.CCFileClass.0
mov dword [esp + 0x74], ebx
call fcn.00438290
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], vtable.CDFileClass.0
call fcn.0042f250
pop edi
pop esi
pop ebx
add esp, 0x1ac
ret
Function at 0x514f40
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x140
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push ebp
push esi
push edi
push eax
push str.ECACHE.MIX
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x515016
test dword [esp + 0x10], 0x116
jne 0x514fff
push 0x28
call fcn.0076d5a7
add esp, 4
test eax, eax
je 0x514fff
lea ecx, [esp + 0x3c]
push 0x821330
push ecx
mov ecx, eax
call fcn.00591fa0
mov esi, eax
test esi, esi
je 0x514fff
mov eax, dword [0x81f778]
mov ecx, dword [0x81f780]
cmp ecx, eax
jl 0x514fde
mov cl, byte [0x81f77d]
test cl, cl
jne 0x514fbd
test eax, eax
jne 0x514ff6
mov ecx, dword [0x81f784]
test ecx, ecx
jle 0x514ff6
mov edx, dword [0x81f770]
add ecx, eax
push 0
push ecx
mov ecx, 0x81f770
call dword [edx + 8]
test al, al
je 0x514ff6
mov ecx, dword [0x81f780]
mov eax, ecx
inc ecx
mov dword [0x81f780], ecx
mov ecx, dword [0x81f774]
mov dword [ecx + eax*4], esi
push 0
mov ecx, esi
call fcn.005924c0
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
jne 0x514f6d
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x10]
push eax
push str.ELOCAL.MIX
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x5150c9
test dword [esp + 0x10], 0x116
jne 0x5150b2
push 0x28
call fcn.0076d5a7
add esp, 4
test eax, eax
je 0x5150b2
lea ecx, [esp + 0x3c]
push 0x821330
push ecx
mov ecx, eax
call fcn.00591fa0
mov esi, eax
test esi, esi
je 0x5150b2
mov eax, dword [0x81f778]
mov ecx, dword [0x81f780]
cmp ecx, eax
jl 0x51509a
mov cl, byte [0x81f77d]
test cl, cl
jne 0x515079
test eax, eax
jne 0x5150b2
mov ecx, dword [0x81f784]
test ecx, ecx
jle 0x5150b2
mov edx, dword [0x81f770]
add ecx, eax
push 0
push ecx
mov ecx, 0x81f770
call dword [edx + 8]
test al, al
je 0x5150b2
mov ecx, dword [0x81f780]
mov eax, ecx
inc ecx
mov dword [0x81f780], ecx
mov ecx, dword [0x81f774]
mov dword [ecx + eax*4], esi
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
jne 0x51502d
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x140
ret
Function at 0x521950
Capabilities:
Create thread

Disassembly:
sub esp, 0x404
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ebx, edx
mov esi, ecx
push 0xa39ea0
mov dword [esp + 0x14], ebx
call edi
push 0xa39e88
call edi
xor ebp, ebp
mov dword [0xa39edc], 1
cmp esi, ebp
jle 0x521ad2
cmp ebx, 0x2800
jge 0x52199a
mov dword [esp + 0x10], 0x2800
lea ebx, [esi*4]
push ebx
call fcn.0076d5a7
mov edi, eax
add esp, 4
cmp edi, ebp
mov dword [0xa39ed4], edi
je 0x521ad2
mov ecx, ebx
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [0xa39ed8], ebp
mov dword [0xa39dfc], esi
mov dword [0xa39e00], ebp
mov dword [0xa39e08], ebp
mov dword [0xa39e18], ebp
mov dword [0xa39e10], 0x64
mov dword [0xa39e14], ebp
mov dword [0xa39e04], ebp
mov ecx, 0xa39e20
call fcn.00403820
mov eax, dword [0xa39e10]
mov ecx, dword [0xa39e14]
push ecx
push eax
mov ecx, 0xa39e20
call fcn.00403870
mov edx, dword [0xa39e10]
mov eax, dword [0xa39e14]
push ebp
push 4
push eax
push edx
call fcn.0076d650
mov ecx, 0xa39e20
push edx
push eax
call fcn.004038a0
mov ecx, dword [0xa39e10]
mov edx, dword [0xa39e14]
push ebp
push 4
push edx
push ecx
call fcn.0076d650
mov ecx, 0xa39e20
push edx
push eax
call fcn.004038c0
push 0xa39e84
push ebp
push 0xa39e00
push 0x521bc0
push 0x1000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebp
mov dword [0xa39e80], eax
je 0x521ad2
mov esi, 1
push 2
push eax
mov dword [0xa39ee0], esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x521ae4
push ebp
lea eax, [esp + 0x18]
push 0x400
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebp
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea ecx, [esp + 0x14]
push ecx
push str.Unable_to_change_the_priority_of_the_Streamer_Thread____s_n
call fcn.004068f0
add esp, 8
call fcn.00521d20
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x404
ret
call fcn.00408710
cmp eax, ebp
mov dword [0xa39ee4], eax
je 0x521ad2
mov edx, dword [esp + 0x10]
push ebp
push edx
mov edx, esi
mov ecx, eax
call fcn.00408a60
test eax, eax
je 0x521ad2
mov ecx, dword [0xa39ee4]
call fcn.00408990
mov ecx, dword [0xa39ee4]
xor edx, edx
call fcn.00408b50
mov ecx, dword [0xa39ee4]
mov edx, esi
mov dword [0xa39ee8], eax
call fcn.00408b50
mov ecx, dword [0xa39ee8]
mov dword [0xa39eec], eax
cmp ecx, ebp
je 0x521ad2
cmp eax, ebp
je 0x521ad2
mov ebx, dword [0xb0de30]
mov ecx, 0x80
xor eax, eax
mov edi, 0xa39bf0
cmp ebx, ebp
mov dword [0xa39ed0], esi
rep stosd dword es:[edi], eax
je 0x521ba1
mov edi, dword [0xa39dfc]
mov eax, dword [0xa39ed4]
mov edx, 1
xor esi, esi
cmp edi, edx
jle 0x521ba1
mov ecx, dword [eax]
cmp ecx, ebp
jne 0x521b84
cmp esi, ebp
jne 0x521b88
mov esi, eax
jmp 0x521b88
cmp ecx, ebx
je 0x521ba1
inc edx
add eax, 4
cmp edx, edi
jl 0x521b76
cmp esi, ebp
je 0x521ba1
mov dword [esi], ebx
mov eax, dword [0xa39ed8]
inc eax
mov dword [0xa39ed8], eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x404
ret
Function at 0x530830
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0xc
push ebp
push esi
mov esi, dword [esp + 0x18]
mov ebp, ecx
test esi, 0x800
je 0x53084d
pop esi
xor al, al
pop ebp
add esp, 0xc
ret 4
mov eax, esi
and eax, 0xff
cmp ax, 0x24
jne 0x530864
pop esi
mov al, 8
pop ebp
add esp, 0xc
ret 4
cmp ax, 0x23
jne 0x530874
pop esi
mov al, 0x5c
pop ebp
add esp, 0xc
ret 4
push ebx
push edi
mov edi, esi
mov cl, 0x80
and edi, 0x100
test di, di
je 0x530888
mov byte [ebp + 0x24], cl
mov eax, esi
and eax, 0x200
test ax, ax
mov dword [esp + 0x20], eax
je 0x53089b
mov byte [ebp + 0x25], cl
mov ebx, esi
and ebx, 0x400
test bx, bx
je 0x5308ab
mov byte [ebp + 0x26], cl
and esi, 0xffff
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
lea ecx, [esp + 0x10]
push 0
lea edx, [ebp + 0x14]
push ecx
push edx
push eax
push esi
call dword [sym.imp.USER32.dll_ToAscii]
test di, di
je 0x5308d6
mov byte [ebp + 0x24], 0
cmp word [esp + 0x20], 0
je 0x5308e2
mov byte [ebp + 0x25], 0
pop edi
test bx, bx
pop ebx
je 0x5308ed
mov byte [ebp + 0x26], 0
mov ecx, dword [esp + 8]
cmp eax, 1
setne al
dec eax
pop esi
and eax, ecx
pop ebp
add esp, 0xc
ret 4
Function at 0x53a650
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, dword [ecx + 8]
sub esp, 0x180
lea ecx, [esp]
push ebx
push esi
push edi
push eax
push str.._3s
push ecx
xor bl, bl
call fcn.0076d684
add esp, 0xc
lea edx, [esp + 0x4c]
lea eax, [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x53a6be
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test dword [esp + 0x4c], 0x116
jne 0x53a6ae
lea ecx, [esp + 0x78]
push str.SAVEGAME.NET
push ecx
call fcn.0076d4b0
add esp, 8
test eax, eax
jne 0x53a6bc
lea edx, [esp + 0x4c]
push edx
push esi
call edi
test eax, eax
je 0x53a6be
jmp 0x53a68e
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov al, bl
pop esi
pop ebx
add esp, 0x180
ret
Function at 0x554cd0
Capabilities:
Check for software breakpoints

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push ebx
mov ebx, dword [0x81a938]
mov dword [esp + 8], ecx
mov eax, dword [eax]
push ebp
mov dword [esp + 0x1c], eax
mov dx, word [esp + 0x1c]
movsx ecx, word [esp + 0x1e]
push esi
push edi
mov edi, eax
xor ebp, ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], 1
mov dword [esp + 0x10], ebp
shl ecx, 9
mov eax, dword [esp + 0x10]
dec dx
inc eax
mov word [esp + 0x24], dx
mov esi, dword [esp + 0x24]
mov dword [esp + 0x10], eax
movsx eax, dx
add eax, ecx
js 0x554d35
cmp eax, 0x40000
jge 0x554d35
mov eax, dword [ebx + eax*4]
test eax, eax
jne 0x554d40
mov dword [0xa57614], esi
mov eax, 0xa575f0
mov eax, dword [eax + 0x44]
cmp eax, 0xcd
jl 0x554d51
cmp eax, 0xe8
jle 0x554d0c
movsx ecx, word [esp + 0x1a]
mov dword [esp + 0x24], edi
mov dx, di
shl ecx, 9
inc dx
inc ebp
movsx eax, dx
mov word [esp + 0x24], dx
mov edi, dword [esp + 0x24]
add eax, ecx
js 0x554d81
cmp eax, 0x40000
jge 0x554d81
mov eax, dword [ebx + eax*4]
test eax, eax
jne 0x554d8c
mov dword [0xa57614], edi
mov eax, 0xa575f0
mov eax, dword [eax + 0x44]
cmp eax, 0xcd
jl 0x554d9d
cmp eax, 0xe8
jle 0x554d60
cmp ebp, dword [esp + 0x10]
jge 0x554daa
mov esi, edi
or ebx, 0xffffffff
jmp 0x554dae
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x24], esi
add esi, ebx
mov word [esp + 0x24], si
mov edi, 4
test edi, edi
jle 0x554e2d
xor esi, esi
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.0055ba50
test al, al
jne 0x554ddc
inc esi
cmp esi, 3
jl 0x554dc4
mov cx, word [esp + 0x24]
movsx eax, word [esp + 0x26]
add cx, bx
dec edi
movsx edx, cx
shl eax, 9
add eax, edx
mov word [esp + 0x24], cx
js 0x554e0d
cmp eax, 0x40000
jge 0x554e0d
mov ecx, dword [0x81a938]
mov eax, dword [ecx + eax*4]
test eax, eax
jne 0x554e1c
mov edx, dword [esp + 0x24]
mov eax, 0xa575f0
mov dword [0xa57614], edx
mov eax, dword [eax + 0x44]
cmp eax, 0xcd
jl 0x554e2d
cmp eax, 0xe8
jle 0x554dbe
mov ecx, dword [esp + 0x14]
call fcn.0054bf10
mov eax, dword [0x821c8c]
pop edi
pop esi
pop ebp
mov byte [eax + 0xd7c], 1
pop ebx
add esp, 0x10
ret 4
Function at 0x554e50
Capabilities:
Check for software breakpoints

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x18]
push ebx
mov ebx, dword [0x81a938]
push ebp
mov eax, dword [eax]
push esi
mov dword [esp + 0x10], ecx
xor ebp, ebp
push edi
mov dword [esp + 0x28], eax
movsx edx, word [esp + 0x28]
mov cx, word [esp + 0x2a]
mov edi, eax
mov dword [esp + 0x18], 1
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x10]
dec cx
inc eax
mov word [esp + 0x2a], cx
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x28]
movsx eax, cx
shl eax, 9
add eax, edx
js 0x554eb1
cmp eax, 0x40000
jge 0x554eb1
mov eax, dword [ebx + eax*4]
test eax, eax
jne 0x554ebc
mov dword [0xa57614], esi
mov eax, 0xa575f0
mov eax, dword [eax + 0x44]
cmp eax, 0xcd
jl 0x554ecd
cmp eax, 0xe8
jle 0x554e85
mov dword [esp + 0x28], edi
mov cx, word [esp + 0x2a]
mov dword [esp + 0x1c], esi
movsx edx, di
inc cx
inc ebp
movsx eax, cx
shl eax, 9
mov word [esp + 0x2a], cx
mov edi, dword [esp + 0x28]
add eax, edx
js 0x554f01
cmp eax, 0x40000
jge 0x554f01
mov eax, dword [ebx + eax*4]
test eax, eax
jne 0x554f0c
mov dword [0xa57614], edi
mov eax, 0xa575f0
mov eax, dword [eax + 0x44]
cmp eax, 0xcd
jl 0x554f1d
cmp eax, 0xe8
jle 0x554edd
cmp ebp, dword [esp + 0x10]
jge 0x554f2e
mov esi, edi
or ebx, 0xffffffff
mov dword [esp + 0x1c], esi
jmp 0x554f32
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1e]
mov dword [esp + 0x28], esi
add ecx, ebx
mov edi, 4
mov word [esp + 0x2a], cx
test edi, edi
jle 0x554fb4
xor esi, esi
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x28]
push edx
call fcn.0055ba50
test al, al
jne 0x554f64
inc esi
cmp esi, 3
jl 0x554f4c
mov ax, word [esp + 0x2a]
movsx ecx, word [esp + 0x28]
add ax, bx
dec edi
mov word [esp + 0x2a], ax
movsx eax, ax
shl eax, 9
add eax, ecx
js 0x554f95
cmp eax, 0x40000
jge 0x554f95
mov edx, dword [0x81a938]
mov eax, dword [edx + eax*4]
test eax, eax
jne 0x554fa3
mov eax, dword [esp + 0x28]
mov dword [0xa57614], eax
mov eax, 0xa575f0
mov eax, dword [eax + 0x44]
cmp eax, 0xcd
jl 0x554fb4
cmp eax, 0xe8
jle 0x554f46
mov ecx, dword [esp + 0x14]
call fcn.0054bf10
mov ecx, dword [0x821c8c]
pop edi
pop esi
pop ebp
mov byte [ecx + 0xd7c], 1
pop ebx
add esp, 0x14
ret 4
Function at 0x597d40
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x188
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push str.ModemHost.SelectMultiMap_enter__n
call fcn.004068f0
mov edi, 0xa25c00
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, dword [0xa255c4]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0xa25652
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x9c]
push ecx
call fcn.0076ec19
mov edx, dword [ebx]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
add esp, 0xc
push 0
push edx
call esi
mov ecx, dword [0xb0de30]
call fcn.005c08a0
cmp eax, 2
jne 0x597e7f
mov ecx, ebp
mov dword [0xa255c4], ebp
call fcn.005c1a80
mov ecx, dword [ebx]
call fcn.005c1480
mov eax, dword [ebx]
push 5
push eax
call esi
mov ecx, dword [0xa25bec]
mov edx, dword [0xa255c4]
push str.RandMap.Sed
mov eax, dword [ecx + edx*4]
add eax, 0x58
push eax
call fcn.0076d4b0
mov edi, dword [sym.imp.USER32.dll_InvalidateRect]
add esp, 8
test eax, eax
jne 0x597e6a
mov esi, dword [0xa5a840]
test esi, esi
je 0x597e17
mov ecx, esi
call fcn.00614ed0
push esi
call fcn.0076d2d5
add esp, 4
push 4
call fcn.0076d5a7
add esp, 4
test eax, eax
je 0x597e2e
mov ecx, eax
call fcn.00614ec0
jmp 0x597e30
xor eax, eax
push str.RandMap.img
mov ecx, eax
mov dword [0xa5a840], eax
call fcn.00615c00
mov ecx, dword [0xa5a840]
cmp dword [ecx], 0
jne 0x597e53
mov ecx, dword [ebx]
call fcn.005c1480
mov edx, dword [ebx]
push 0
push 0
push edx
call edi
mov eax, dword [ebx]
push 0
push 0
push eax
call edi
jmp 0x597f51
mov ecx, dword [ebx]
call fcn.005c1480
mov eax, dword [ebx]
push 0
push 0
push eax
call edi
jmp 0x597f51
mov ecx, dword [ebx]
push 5
push ecx
call esi
mov ecx, dword [0xa255c4]
call fcn.005c1a80
cmp al, 1
jne 0x597f4b
mov eax, dword [ebx]
push 0x5a8
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0xa25652
push 0
push 0x4b2
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [0xa25bec]
mov eax, dword [0xa255c4]
push str.RandMap.Sed
mov ecx, dword [edx + eax*4]
add ecx, 0x58
push ecx
call fcn.0076d4b0
add esp, 8
test eax, eax
jne 0x597f42
mov esi, dword [0xa5a840]
test esi, esi
je 0x597f27
mov ecx, esi
call fcn.00614ed0
push esi
call fcn.0076d2d5
add esp, 4
push 4
call fcn.0076d5a7
add esp, 4
test eax, eax
je 0x597f0e
mov ecx, eax
call fcn.00614ec0
jmp 0x597f10
xor eax, eax
push str.RandMap.img
mov ecx, eax
mov dword [0xa5a840], eax
call fcn.00615c00
mov esi, dword [0xa5a840]
cmp dword [esi], 0
jne 0x597f33
mov ecx, dword [ebx]
call fcn.005c1480
mov edx, dword [ebx]
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x597f51
mov ecx, dword [ebx]
call fcn.005c1480
jmp 0x597f51
mov dword [0xa255c4], ebp
push str.ModemHost.SelectMultiMap_exit__n
mov byte [ebx + 9], 1
call fcn.004068f0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x188
ret
Function at 0x599840
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, 0x100
mov esi, ecx
mov dword [esp + 0x1c], edx
push edi
mov dword [esp + 0x28], esi
xor ebx, ebx
call fcn.0076d5a7
push edi
mov ebp, eax
mov dword [esp + 0x1c], edi
call fcn.0076d5a7
add esp, 8
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], edi
lea ecx, [esp + 0x28]
lea edx, [esp + 0x14]
push ecx
push 0
push 0
push 0
mov eax, ebx
push edx
push ebp
push eax
push esi
mov dword [esp + 0x34], 0x100
inc ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x59997a
push eax
mov edx, ebp
mov ecx, esi
call fcn.00728c20
mov edi, eax
test edi, edi
je 0x599875
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x24]
push ecx
push edx
push 0
push eax
push edi
mov dword [esp + 0x30], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x599916
cmp dword [esp + 0x20], 1
jne 0x599916
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x10]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x59990d
test cl, cl
je 0x599909
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x59990d
add eax, 2
add esi, 2
test cl, cl
jne 0x5998e9
xor eax, eax
jmp 0x599912
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x59993c
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
push eax
mov ecx, edi
call fcn.00599840
mov esi, eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x59995b
mov esi, dword [esp + 0x24]
jmp 0x599875
push ebp
call fcn.0076d2d5
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0076d2d5
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
push ebp
call fcn.0076d2d5
mov edx, dword [esp + 0x14]
push edx
call fcn.0076d2d5
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
push ebp
call fcn.0076d2d5
mov eax, dword [esp + 0x14]
push eax
call fcn.0076d2d5
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4