joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47b250
Capabilities:
Get common file path
Get startup folder

Disassembly:
sub esp, 0x168
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x75]
mov byte [esp + 0x74], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 1
lea eax, [esp + 0x78]
push 0x1a
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov ecx, dword [0x50e900]
lea edx, [esp + 0x74]
push ecx
lea edi, [esi + 0x654]
push edx
push str._sTencentQQGameUsers_u
push edi
call sub.MFC42.DLL_CString::Format
mov eax, dword [edi]
add esp, 0x10
lea ebp, [esi + 0x658]
push eax
push str._sgamecomm.ini
push ebp
call sub.MFC42.DLL_CString::Format
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], bl
rep stosd dword es:[edi], eax
mov ebp, dword [ebp]
push 0x4d7eac
stosw word es:[edi], ax
push ebp
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 0x14
cmp edi, ebx
mov dword [esi + 0x6e4], 1
je 0x47b363
mov ebp, dword [sym.imp.MSVCRT.dll_fgets]
mov ebx, dword [sym.imp.MSVCRT.dll_strstr]
push edi
lea ecx, [esp + 0x14]
push 0x64
push ecx
call ebp
add esp, 0xc
test eax, eax
je 0x47b359
lea edx, [esp + 0x10]
push str.panelpage
push edx
call ebx
add esp, 8
test eax, eax
je 0x47b332
lea eax, [esp + 0x1a]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [esi + 0x6e0], eax
jmp 0x47b2f8
lea ecx, [esp + 0x10]
push str.showtip
push ecx
call ebx
add esp, 8
test eax, eax
je 0x47b2f8
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [esi + 0x6e4], eax
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x168
ret
Function at 0x47b370
Capabilities:
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4b80fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 1
lea eax, [esp + 0x18]
push 0x1a
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
push 0x4d7b20
lea ecx, [esp + 0x14]
mov dword [esp + 0x124], ebx
call fcn.004ac100
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.MSVCRT.dll__mkdir]
push edx
call edi
add esp, 4
lea ecx, [esp + 0x10]
push str.QQGame
call fcn.004ac100
mov eax, dword [esp + 0x10]
push eax
call edi
add esp, 4
lea ecx, [esp + 0x10]
push str.Users
call fcn.004ac100
mov ecx, dword [esp + 0x10]
push ecx
call edi
mov eax, dword [esi + 0x654]
push eax
call edi
mov eax, dword [esi + 0x658]
mov ebp, dword [sym.imp.MSVCRT.dll_fopen]
push 0x4d7f00
push eax
call ebp
mov edi, eax
add esp, 0x10
cmp edi, ebx
je 0x47b45e
mov edx, dword [esi + 0x6e0]
mov ebx, dword [sym.imp.MSVCRT.dll_fprintf]
push edx
push str._sprit__npanelpage_d
push edi
call ebx
mov eax, dword [esi + 0x6e4]
add esp, 0xc
push eax
jmp 0x47b494
mov eax, dword [esi + 0x658]
push 0x4d7d60
push eax
call ebp
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x47b4a6
mov ecx, dword [esi + 0x6e0]
mov ebx, dword [sym.imp.MSVCRT.dll_fprintf]
push ecx
push str._sprit__npanelpage_d
push edi
call ebx
mov edx, dword [esi + 0x6e4]
add esp, 0xc
push edx
push str._nshowtip_d
push edi
call ebx
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x10
lea ecx, [esp + 0x10]
mov dword [esp + 0x120], 0xffffffff
call fcn.004ac05e
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x114
ret
Function at 0x47e1d0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x400
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x40c]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x410]
push eax
push ecx
push 0x3ff
push 0x400
push edx
call dword [0x4cd2a8]
add esp, 0x14
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
add esp, 0x400
ret
Function at 0x47ec30
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
mov ebx, dword [esp + 0x11c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
lea eax, [esp + 0x18]
push 0x104
push eax
push 0
push str.Path
push str.Redirect
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x14]
lea ecx, [esp + 0x14]
test edx, edx
je 0x47ec9d
mov al, byte [esp + 0x14]
test al, al
je 0x47ec9d
cmp al, 0x20
je 0x47ec95
cmp al, 9
jne 0x47ece0
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x47ec8d
mov esi, dword [esp + 0x120]
test esi, esi
je 0x47ecd3
mov edx, dword [esp + 0x124]
test edx, edx
jle 0x47ecd3
test ebx, ebx
je 0x47ecd3
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, edx
jae 0x47ecd3
push ebx
push edx
push esi
call dword [0x4cd2bc]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc
lea eax, [esp + 0x14]
push 0x3a
push eax
call dword [sym.imp.MSVCRT.dll__mbschr]
add esp, 8
test eax, eax
jne 0x47eda6
cmp byte [esp + 0x14], 0x5c
je 0x47eda6
test ebx, ebx
je 0x47ecd3
mov edi, dword [esp + 0x120]
test edi, edi
je 0x47ecd3
mov ebp, dword [esp + 0x124]
test ebp, ebp
jle 0x47ecd3
mov esi, dword [sym.imp.MSVCRT.dll__mbsrchr]
push 0x5c
push ebx
call esi
add esp, 8
test eax, eax
jne 0x47ed37
push 0x2f
push ebx
call esi
add esp, 8
test eax, eax
mov byte [edi], 0
je 0x47ed5e
sub eax, ebx
inc eax
mov esi, eax
test esi, esi
jle 0x47ed89
cmp ebp, esi
jle 0x47ed89
push esi
push ebx
push ebp
push edi
call dword [0x4cd2b8]
add esp, 0x10
mov byte [esi + edi], 0
jmp 0x47ed89
mov esi, dword [esp + 0x10]
push ebp
push ebx
mov ecx, esi
call fcn.0047f0d0
test eax, eax
je 0x47ed7b
push ebx
push ebp
push edi
call dword [0x4cd2bc]
add esp, 0xc
push 0x4d3fc4
push ebp
push edi
mov ecx, esi
call fcn.0047f180
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push ebp
push edi
call fcn.0047f180
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc
mov edx, dword [esp + 0x124]
mov eax, dword [esp + 0x120]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.0047ec30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc

Function at 0x4832f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b84e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
xor eax, eax
mov dword [esp], eax
mov dword [esp], 0x10
mov dword [esp + 4], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], edx
call fcn.0049f580
lea eax, [esp]
push 2
push eax
push 0x10
push 1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0
call fcn.0049f600
lea ecx, [esp + 0xc]
push ecx
mov ecx, 0x50d078
call fcn.0049f430
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.0049f5c0
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
Function at 0x487650
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
xor ebx, ebx
push ebp
cmp eax, 3
mov ebp, ecx
ja case.default.0x487669
jmp dword [eax*4 + 0x487828]
push str.DDZRPG_PlayerInfo
lea eax, [esp + 0x10]
push 0x3f
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0xc
mov dword [esp + 8], 0x1fa4
jmp 0x4876f4
push str.DDZRPG_WaitTable
lea ecx, [esp + 0x10]
push 0x3f
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0xc
mov dword [esp + 8], 0x1fa5
jmp 0x4876f4
push str.DDZRPG_LOGO
lea edx, [esp + 0x10]
push 0x3f
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0xc
mov dword [esp + 8], 0x1fa6
jmp 0x4876f4
push str.DDZRPG_CardBack
lea eax, [esp + 0x10]
push 0x3f
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0xc
mov dword [esp + 8], 0x1fa7
jmp 0x4876f4
mov byte [esp + 0xc], bl
mov dword [esp + 8], ebx
mov eax, dword [ebp + 0xe120]
push esi
cmp eax, ebx
jne 0x4877f1
cmp dword [ebp + 0xe11c], ebx
jne 0x4877ad
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x55]
mov byte [esp + 0x54], bl
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [esp + 0x54]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x54]
push 0x5c
push edx
call dword [sym.imp.MSVCRT.dll__mbsrchr]
add esp, 8
cmp eax, ebx
je 0x487753
mov byte [eax + 1], bl
mov edi, str...LogicAvMgrGm.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x54]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x54]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp + 0xe11c], eax
pop edi
jne 0x4877ad
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.ERROR:_Load_advertisement_manager_for_game_DLL_fail._Path:
call esi
lea ecx, [esp + 0x50]
push ecx
call esi
jmp 0x4877b3
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp + 0xe11c]
cmp eax, ebx
je 0x4877f1
push str.CreateObject
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4877ea
push 0x1f001
call eax
add esp, 4
cmp eax, ebx
je 0x4877e3
mov dword [ebp + 0xe120], eax
jmp 0x4877f1
push str.ERROR:_Cannt_create_Advertisement_Manager_Object._n
jmp 0x4877ef
push str.ERROR:_Cannt_find_CreateObject___in_Advertisement_Manager_DLL._n
call esi
mov ecx, dword [ebp + 0xe120]
pop esi
cmp ecx, ebx
je 0x487816
mov eax, dword [esp + 0x158]
mov edx, dword [ecx]
push ebx
push ebx
push ebx
push eax
mov eax, dword [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push eax
call dword [edx + 0x14]
pop ebp
mov eax, 1
pop ebx
add esp, 0x148
ret 8
Function at 0x488710
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [0x5156e8]
sub esp, 0xa14
test eax, eax
push ebp
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fopen]
jne 0x488762
push 0x4d08cc
push str.log.cfg
call edi
mov esi, eax
add esp, 8
test esi, esi
je 0x488762
push 0x5156ec
push str.LogSwitch_d
push esi
call dword [sym.imp.MSVCRT.dll_fscanf]
push esi
mov dword [0x5156e8], 0
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x10
mov eax, dword [0x5156ec]
test eax, eax
je 0x488887
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [esp + 0x420]
push str..LogClientLog.txt
push eax
call ebp
lea ecx, [esp + 0x428]
push 0x4d8ce8
push ecx
call edi
mov esi, eax
add esp, 0x10
test esi, esi
je 0x488887
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x621]
mov byte [esp + 0x620], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0xa24]
lea edx, [esp + 0xa28]
push edx
push eax
lea ecx, [esp + 0x628]
push 0x400
push ecx
call dword [sym.imp.MSVCRT.dll__vsnprintf]
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [esp + 0x1a]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x620]
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x1a]
push ecx
mov ecx, dword [esp + 0x1c]
and edx, 0xffff
and eax, 0xffff
push edx
mov edx, dword [esp + 0x1e]
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x1e]
push ecx
mov ecx, dword [esp + 0x20]
and edx, 0xffff
and eax, 0xffff
push edx
and ecx, 0xffff
push eax
push ecx
lea edx, [esp + 0x40]
push str._d__d__d__d:_d:_d:_d:_s_r_n
push edx
call ebp
lea edi, [esp + 0x48]
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x4c]
push ecx
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x3c
pop edi
pop esi
pop ebp
add esp, 0xa14
ret

Function at 0x48dfe0
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
mov esi, ecx
push 0x4d0c34
push esi
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
jne 0x48e005
mov ecx, esi
call fcn.0048df00
pop edi
xor al, al
pop esi
ret
push edi
push 0x18
lea eax, [esi + 0x68]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esi + 0x7c]
add esp, 0x14
cmp eax, 0x2d0
je 0x48e02f
mov ecx, esi
call fcn.0048df00
mov cl, byte [esi + 0x79]
mov dl, byte [esi + 0x7a]
mov byte [esi + 0x78], 1
mov byte [esi + 0x81], cl
mov byte [esi + 0x82], dl
pop edi
mov al, 1
pop esi
ret

Function at 0x48e050
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, ecx
push 0x4d0c54
push edi
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x48e06e
pop edi
xor al, al
pop esi
ret
push esi
push 0x18
add edi, 0x68
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
mov al, 1
pop edi
pop esi
ret
Function at 0x4987c0
Capabilities:
Print debug messages
Read .ini file
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b96bb
push eax
mov eax, dword [0x51cdc8]
mov dword fs:[0], esp
sub esp, 0x408
test eax, eax
jne 0x49882e
push str..config.ini
push 0
push str.TraceState
push str.Debug
mov dword [0x51cdc8], 1
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push str..config.ini
push 0xff
push 0x51cdd0
push 0x4daff4
push str.TraceFilter
push str.Debug
mov dword [0x51cdcc], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [0x51cdcc]
test eax, eax
je 0x498990
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
lea edx, [esp + 0xc]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x41c]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x420]
push eax
push ecx
push 0x3ff
push edx
call dword [sym.imp.MSVCRT.dll__vsnprintf]
add esp, 0x10
lea eax, [esp + 0xc]
lea ecx, [esp + 4]
push eax
call sub.MFC42.DLL_CString::CString_2
mov edi, 0x51cdd0
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x414], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
je 0x4988d7
push 0x51cdd0
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
jne 0x4988d7
lea ecx, [esp]
mov dword [esp + 0x410], eax
call fcn.004ac05e
mov ecx, dword [esp + 0x408]
mov dword fs:[0], ecx
add esp, 0x414
ret
mov eax, dword [0x51cdcc]
push esi
cmp eax, 1
jne 0x4988f2
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x49897b
cmp eax, 2
jne 0x49897b
push 0
call dword [sym.imp.MSVCRT.dll_time]
lea edx, [esp + 0xc]
mov dword [esp + 0xc], eax
push edx
call dword [sym.imp.MSVCRT.dll_localtime]
mov ecx, dword [esp + 0xc]
mov edx, dword [eax]
add esp, 8
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax + 8]
push ecx
mov ecx, dword [eax + 0xc]
push edx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
inc edx
push ecx
add eax, 0x76c
push edx
push eax
lea ecx, [esp + 0x20]
push str.__.4u__.2u__.2u__.2u:_.2u:_.2u___s
push ecx
call sub.MFC42.DLL_CString::Format
push 0x4d7d60
push str..TraceInfo.txt
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 0x2c
test esi, esi
je 0x49897b
mov eax, dword [esp + 4]
push esi
mov ecx, dword [eax - 8]
push ecx
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
lea ecx, [esp + 4]
mov dword [esp + 0x414], 0xffffffff
call fcn.004ac05e
pop esi
mov ecx, dword [esp + 0x408]
mov dword fs:[0], ecx
add esp, 0x414
ret
Function at 0x49d110
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x400
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x40c]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x410]
push eax
push ecx
push 0x3ff
push 0x400
push edx
call dword [0x4cd2a8]
add esp, 0x14
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
add esp, 0x400
ret
Function at 0x49d4b0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
mov ebx, dword [esp + 0x11c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
lea eax, [esp + 0x18]
push 0x104
push eax
push 0
push str.Path
push str.Redirect
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x14]
lea ecx, [esp + 0x14]
test edx, edx
je 0x49d51d
mov al, byte [esp + 0x14]
test al, al
je 0x49d51d
cmp al, 0x20
je 0x49d515
cmp al, 9
jne 0x49d560
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x49d50d
mov esi, dword [esp + 0x120]
test esi, esi
je 0x49d553
mov edx, dword [esp + 0x124]
test edx, edx
jle 0x49d553
test ebx, ebx
je 0x49d553
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, edx
jae 0x49d553
push ebx
push edx
push esi
call dword [0x4cd2bc]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc
lea eax, [esp + 0x14]
push 0x3a
push eax
call dword [sym.imp.MSVCRT.dll__mbschr]
add esp, 8
test eax, eax
jne 0x49d626
cmp byte [esp + 0x14], 0x5c
je 0x49d626
test ebx, ebx
je 0x49d553
mov edi, dword [esp + 0x120]
test edi, edi
je 0x49d553
mov ebp, dword [esp + 0x124]
test ebp, ebp
jle 0x49d553
mov esi, dword [sym.imp.MSVCRT.dll__mbsrchr]
push 0x5c
push ebx
call esi
add esp, 8
test eax, eax
jne 0x49d5b7
push 0x2f
push ebx
call esi
add esp, 8
test eax, eax
mov byte [edi], 0
je 0x49d5de
sub eax, ebx
inc eax
mov esi, eax
test esi, esi
jle 0x49d609
cmp ebp, esi
jle 0x49d609
push esi
push ebx
push ebp
push edi
call dword [0x4cd2b8]
add esp, 0x10
mov byte [esi + edi], 0
jmp 0x49d609
mov esi, dword [esp + 0x10]
push ebp
push ebx
mov ecx, esi
call fcn.0049d950
test eax, eax
je 0x49d5fb
push ebx
push ebp
push edi
call dword [0x4cd2bc]
add esp, 0xc
push 0x4d3fc4
push ebp
push edi
mov ecx, esi
call fcn.0049d9c0
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push ebp
push edi
call fcn.0049d9c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc
mov edx, dword [esp + 0x124]
mov eax, dword [esp + 0x120]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.0049d4b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc
Function at 0x49e530
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b99e0
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x5c]
mov eax, dword [esi + 0x64]
lea ebx, [esi + 0x5c]
sub eax, ecx
jne 0x49e580
mov ecx, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
sub ecx, eax
jne 0x49e580
mov edx, dword [esi + 0x44]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov eax, dword [esi + 0x44]
push edi
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x44]
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowRgn]
mov eax, dword [esi + 0x58]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub ecx, eax
push 1
push ecx
mov ecx, dword [esp + 0x1c]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 0x44]
push ecx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
lea edi, [esi + 0x8c]
mov ecx, edi
call sub.MFC42.DLL_CGdiObject::DeleteObject
push ebx
mov ebx, dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
call ebx
push eax
mov ecx, edi
call sub.MFC42.DLL_CGdiObject::Attach
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x4bfb4c
lea ecx, [esi + 0x6c]
mov dword [esp + 0x2c], 0
push ecx
call ebx
push eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::Attach
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
neg eax
sbb eax, eax
and eax, edx
test edi, edi
jne 0x49e62a
xor ecx, ecx
jmp 0x49e62d
mov ecx, dword [edi + 4]
mov edx, dword [esi + 0x90]
push 2
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CombineRgn]
test edi, edi
je 0x49e645
mov edi, dword [edi + 4]
mov eax, dword [esi + 0x44]
push 1
push edi
push eax
call dword [sym.imp.USER32.dll_SetWindowRgn]
mov ecx, dword [esi + 0x44]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esp + 0xc], 0x4bc180
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret

Function at 0x49f4f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b9a68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
lea ecx, [esp + 0xc]
call fcn.0049f580
mov ecx, dword [esp + 0x30]
xor eax, eax
mov dword [esp + 4], eax
lea edx, [esp + 4]
push 0xffffffffffffffff
mov dword [esp + 0xc], eax
push edx
mov dword [esp + 0x10], ecx
push 0xb
push 1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0
mov dword [esp + 0x14], 0xb
call fcn.0049f600
mov eax, dword [esi]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call dword [eax + 4]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.0049f5c0
mov ecx, dword [esp + 0x20]
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x4a1d30
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x28]
test eax, eax
je 0x4a1d40
xor eax, eax
pop esi
ret 0xc
mov eax, dword [esp + 8]
cmp eax, 1
jge 0x4a1d4f
xor eax, eax
pop esi
ret 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov dword [esi + 0x24], eax
lea eax, [esi + 0x2c]
push eax
push 4
push esi
push 0x4a1df0
push 0
push 0
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x30], edx
mov dword [esi + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [esi + 0x28], eax
test eax, eax
setne cl
test ecx, ecx
mov dword [esi + 0x34], ecx
je 0x4a1d95
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi + 0x34]
pop esi
ret 0xc