joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1473d7e
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x68
mov eax, dword [esp + 0x6c]
push ebx
push esi
push edi
mov esi, dword [eax]
xor edi, edi
call fcn.01473d41
push esi
call fcn.01473f2c
push dword [esp + 0x80]
mov esi, eax
call fcn.01473f2c
push 0x58
mov dword [esp + 0x20], eax
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0146bf12
lea eax, [esp + 0x30]
push eax
push 5
push esi
call fcn.01473c5b
mov ebx, eax
add esp, 0x20
cmp ebx, 5
jb 0x1473f13
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push esi
call fcn.01473f61
mov edi, eax
add esp, 0x14
test edi, edi
je 0x1473f13
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [esp + 0x14], 0
mov ebp, eax
and dword [esp + 0x10], 0
lea eax, [esp + 0x14]
push eax
push 0x40
push ebx
push esi
push ebp
mov dword [esp + 0x30], ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1473ef6
lea eax, [esp + 0x10]
push eax
push 0x40
push 0x6c
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1473edb
lea eax, [edi + 0x2c]
mov ebp, esi
xor ecx, ecx
mov edx, eax
sub ebp, eax
mov al, byte [edx + ebp]
mov byte [edx], al
mov byte [edi + ecx + 0x4c], al
inc ecx
inc edx
cmp ecx, ebx
jb 0x1473e47
lea eax, [ebx + esi]
push eax
lea eax, [ebx + 0x2c]
add eax, edi
push eax
call fcn.01473cfc
mov edx, dword [esp + 0x20]
mov eax, edx
mov ebp, dword [esp + 0x24]
sub eax, esi
pop ecx
pop ecx
mov ecx, esi
sub ecx, edx
cmp edx, esi
cmovb eax, ecx
cmp eax, 0x7fff0000
jbe 0x1473ea5
lea eax, [edi + 0xc]
push edx
push eax
call fcn.01473cfc
pop ecx
sub eax, edi
pop ecx
sub eax, 0xc
push eax
lea eax, [edi + 0xc]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [edi + 0xc]
jmp 0x1473ea7
mov eax, edx
push eax
push esi
call fcn.01473cfc
mov eax, dword [esp + 0x20]
pop ecx
pop ecx
mov dword [edi + 8], eax
lea eax, [edi + 0x2c]
push ebx
push eax
push ebp
mov dword [edi + 4], ebx
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push 0x6c
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x18]
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp dword [edi], 0
pop ebp
je 0x1473f07
mov ecx, dword [esp + 0x78]
lea eax, [edi + 0x2c]
mov dword [ecx], eax
jmp 0x1473f13
push 1
push edi
call fcn.01474055
pop ecx
pop ecx
xor edi, edi
push 0x147a46c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
test edi, edi
pop edi
pop esi
setne al
pop ebx
add esp, 0x68
ret
Function at 0x1473f61
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x40
push ebx
xor ebx, ebx
cmp dword [0x147a484], 0x40
jae 0x147404e
mov ecx, dword [esp + 0x48]
push ebp
push esi
mov esi, dword [esp + 0x54]
mov ebp, 0xfff80000
add esi, ecx
add ecx, dword [esp + 0x5c]
push edi
cmp ecx, 0x80000000
lea edi, [esp + 0x2c]
push 9
lea eax, [ecx + 0x7ff80000]
cmovb ebp, eax
xor eax, eax
pop ecx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor eax, eax
lea edi, [esi - 0x7fff0000]
inc eax
cmp esi, 0x80000000
cmovb edi, eax
cmp edi, ebp
jae 0x147404b
push 0x1c
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1474026
cmp dword [esp + 0x20], 0x10000
jne 0x1474018
mov eax, dword [esp + 0x1c]
cmp eax, 0x6c
jb 0x147401c
mov ecx, dword [esp + 0x48]
cmp eax, ecx
jb 0x147401c
lea eax, [ecx - 1]
xor edx, edx
add eax, edi
div ecx
push 0x20
imul eax, ecx
push 0x3000
push 0x6c
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
jne 0x147402a
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
add edi, eax
cmp edi, ebp
jb 0x1473fc9
test ebx, ebx
je 0x147404b
xor eax, eax
cmp dword [eax*4 + 0x147a488], 0
je 0x147403e
inc eax
cmp eax, 0x40
jb 0x147402c
jmp 0x147404b
inc dword [0x147a484]
mov dword [eax*4 + 0x147a488], ebx
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x40
ret
Function at 0x1475ae0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x10c
push ebx
push ebp
mov ebp, dword [esp + 0x11c]
push esi
push edi
lea ebx, [eax + ebp]
cmp eax, 8
jbe 0x1475c97
mov edi, dword [esp + 0x120]
lea esi, [ebp + 8]
push 0x800
lea eax, [edi + 0x5410]
push eax
mov eax, ebx
sub eax, esi
push eax
lea eax, [edi + 0x140c]
push esi
push eax
call fcn.01479110
add esp, 0x14
cmp eax, 0xffffff88
ja 0x1475c97
add esi, eax
mov dword [esp + 0x14], 0x1c
mov eax, ebx
sub eax, esi
push eax
push esi
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.01475ce0
add esp, 0x14
mov dword [esp + 0x10], eax
cmp eax, 0xffffff88
ja 0x1475c97
mov eax, dword [esp + 0x1c]
cmp eax, 8
ja 0x1475c97
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x34]
push eax
lea eax, [edi + 0x804]
push eax
call fcn.01476110
add esp, 0x10
cmp eax, 0xffffff88
ja 0x1475c97
add esi, dword [esp + 0x10]
mov eax, ebx
sub eax, esi
mov dword [esp + 0x18], 0x34
push eax
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0xc0]
push eax
call fcn.01475ce0
add esp, 0x14
mov dword [esp + 0x10], eax
cmp eax, 0xffffff88
ja 0x1475c97
mov eax, dword [esp + 0x20]
cmp eax, 9
ja 0x1475c97
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0xb8]
push eax
lea eax, [edi + 0xc08]
push eax
call fcn.01476110
add esp, 0x10
cmp eax, 0xffffff88
ja 0x1475c97
add esi, dword [esp + 0x10]
mov eax, ebx
sub eax, esi
mov dword [esp + 0x10], 0x23
push eax
push esi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.01475ce0
add esp, 0x14
mov dword [esp + 0x28], eax
cmp eax, 0xffffff88
ja 0x1475c97
mov eax, dword [esp + 0x24]
cmp eax, 9
ja 0x1475c97
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x70]
push eax
push edi
call fcn.01476110
add esp, 0x10
cmp eax, 0xffffff88
ja 0x1475c97
add esi, dword [esp + 0x28]
lea eax, [esi + 0xc]
cmp eax, ebx
ja 0x1475c97
sub ebx, esi
xor edx, edx
sub ebx, 0xc
add edi, 0x5c10
nop
mov ecx, dword [esi]
add esi, 4
test ecx, ecx
je 0x1475c97
cmp ecx, ebx
jae 0x1475c97
mov dword [edi], ecx
inc edx
add edi, 4
cmp edx, 3
jl 0x1475c70
sub esi, ebp
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
pop edi
pop esi
pop ebp
mov eax, 0xffffffe2
pop ebx
add esp, 0x10c
ret
Function at 0x1478d40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
shr eax, 8
test al, al
je 0x1478d56
mov dword [esp + 0x14], ecx
jmp fcn.01477f60
mov dword [esp + 0x14], ecx
jmp fcn.01477320
Function at 0x4018d0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x220
mov eax, dword [0x4d757c]
push esi
push edi
xor eax, ebp
mov dword [esp + 0x224], eax
mov esi, ecx
mov edx, dword [esi + 0xa4]
xor eax, eax
mov word [esp + 0x18], 0
mov ecx, 0x81
lea edi, [esp + 0x1a]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 8]
stosw word es:[edi], ax
mov eax, dword [ebp + 0xc]
push eax
push ecx
push edx
push str.GG__03d__I64d
lea eax, [esp + 0x28]
push 0x103
push eax
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x18
lea ecx, [esp + 0x18]
push ecx
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
test eax, eax
mov dword [esi + 0xcc], eax
je 0x40197e
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0xd0], eax
jne 0x401996
mov edx, dword [esi + 0xcc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x10
push 0x4ae3c4
push str.Could_not_map_view_of_file.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x21c]
xor ecx, ebp
call fcn.0045a4fd
mov esp, ebp
pop ebp
ret 8
mov edi, dword [eax]
test edi, edi
je 0x4019ce
mov eax, dword [esi + 0x48]
push eax
mov dword [esp + 0x10], 0xc
call dword [sym.imp.MSVCR71.dll_wcslen]
mov ecx, dword [esi + 0x48]
add esp, 4
lea edx, [esp + 0xc]
push edx
push 0
push 0x4a
shl eax, 1
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x224]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0045a4fd
mov esp, ebp
pop ebp
ret 8
Function at 0x401c20
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x4c
mov eax, dword [0x4d757c]
xor eax, esp
push ebx
mov ebx, dword [esp + 0x60]
push ebp
mov ebp, dword [esp + 0x60]
push edi
mov edi, dword [esp + 0x5c]
test edi, edi
mov dword [esp + 0x54], eax
je 0x401d8a
test ebp, ebp
je 0x401d8a
mov al, 0x98
mov byte [esp + 0x15], al
mov byte [esp + 0x1b], al
xor eax, eax
mov dword [esp + 0x31], eax
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
mov dword [esp + 0x41], eax
mov dword [esp + 0x45], eax
mov dword [esp + 0x49], eax
mov byte [esp + 0x10], 0xa
mov byte [esp + 0x11], 0x3d
mov byte [esp + 0x12], 0xdb
mov byte [esp + 0x13], 0
mov byte [esp + 0x14], 0x13
mov byte [esp + 0x16], 0x47
mov byte [esp + 0x17], 0x57
mov byte [esp + 0x18], 0x9c
mov byte [esp + 0x19], 1
mov byte [esp + 0x1a], 0x84
mov byte [esp + 0x1c], 0x70
mov byte [esp + 0x1d], 0xb0
mov byte [esp + 0x1e], 0x5e
mov byte [esp + 0x1f], 0x2e
mov byte [esp + 0x20], 0x7c
mov byte [esp + 0x21], 0x32
mov byte [esp + 0x22], 0xdd
mov byte [esp + 0x23], 0xe3
mov byte [esp + 0x24], 0x9d
mov byte [esp + 0x25], 7
mov byte [esp + 0x26], 0x4e
mov byte [esp + 0x27], 0x3a
mov byte [esp + 0x28], 0xa5
mov byte [esp + 0x29], 0x97
mov byte [esp + 0x2a], 0x5d
mov byte [esp + 0x2b], 0xc6
mov byte [esp + 0x2c], 0x4c
mov byte [esp + 0x2d], 0xd
mov byte [esp + 0x2e], 0x83
mov byte [esp + 0x2f], 0x11
mov byte [esp + 0x30], 0
mov dword [esp + 0x4d], eax
mov ecx, 0x20
lea esp, [esp]
movzx edx, byte [esp + eax + 0x10]
mov dl, byte [edx + str.http:__vas._s_interface_chathall_buy.htmlhttp:__vas._s_interface_chathall_buy.html_uid_I64dmcheck_snickname_shttp:__www0._s_interface_chathall_buy_aristocrat_vip.html_oemid_duid_I64dmcheck_snickname_shttp:__vip.17guagua.com]
mov byte [esp + eax + 0x30], dl
inc eax
dec ecx
jne 0x401d20
push esi
xor esi, esi
call fcn.0047bb90
test eax, eax
mov dword [esp + 0x10], eax
je 0x401d73
mov edx, dword [eax]
push 0x20
lea ecx, [esp + 0x38]
push ecx
mov ecx, eax
call dword [edx + 4]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push ebx
push ebp
push eax
push edi
push 1
call dword [edx + 8]
lea ecx, [esp + 0x10]
push ecx
mov esi, eax
call fcn.0047b500
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0045a4fd
add esp, 0x4c
ret 0x10
mov ecx, dword [esp + 0x54]
pop edi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0045a4fd
add esp, 0x4c
ret 0x10
Function at 0x401da0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x4c
mov eax, dword [0x4d757c]
xor eax, esp
push ebx
mov ebx, dword [esp + 0x60]
push ebp
mov ebp, dword [esp + 0x60]
push edi
mov edi, dword [esp + 0x5c]
test edi, edi
mov dword [esp + 0x54], eax
je 0x401f0a
test ebp, ebp
je 0x401f0a
mov al, 0x98
mov byte [esp + 0x15], al
mov byte [esp + 0x1b], al
xor eax, eax
mov dword [esp + 0x31], eax
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
mov dword [esp + 0x41], eax
mov dword [esp + 0x45], eax
mov dword [esp + 0x49], eax
mov byte [esp + 0x10], 0xa
mov byte [esp + 0x11], 0x3d
mov byte [esp + 0x12], 0xdb
mov byte [esp + 0x13], 0
mov byte [esp + 0x14], 0x13
mov byte [esp + 0x16], 0x47
mov byte [esp + 0x17], 0x57
mov byte [esp + 0x18], 0x9c
mov byte [esp + 0x19], 1
mov byte [esp + 0x1a], 0x84
mov byte [esp + 0x1c], 0x70
mov byte [esp + 0x1d], 0xb0
mov byte [esp + 0x1e], 0x5e
mov byte [esp + 0x1f], 0x2e
mov byte [esp + 0x20], 0x7c
mov byte [esp + 0x21], 0x32
mov byte [esp + 0x22], 0xdd
mov byte [esp + 0x23], 0xe3
mov byte [esp + 0x24], 0x9d
mov byte [esp + 0x25], 7
mov byte [esp + 0x26], 0x4e
mov byte [esp + 0x27], 0x3a
mov byte [esp + 0x28], 0xa5
mov byte [esp + 0x29], 0x97
mov byte [esp + 0x2a], 0x5d
mov byte [esp + 0x2b], 0xc6
mov byte [esp + 0x2c], 0x4c
mov byte [esp + 0x2d], 0xd
mov byte [esp + 0x2e], 0x83
mov byte [esp + 0x2f], 0x11
mov byte [esp + 0x30], 0
mov dword [esp + 0x4d], eax
mov ecx, 0x20
lea esp, [esp]
movzx edx, byte [esp + eax + 0x10]
mov dl, byte [edx + str.http:__vas._s_interface_chathall_buy.htmlhttp:__vas._s_interface_chathall_buy.html_uid_I64dmcheck_snickname_shttp:__www0._s_interface_chathall_buy_aristocrat_vip.html_oemid_duid_I64dmcheck_snickname_shttp:__vip.17guagua.com]
mov byte [esp + eax + 0x30], dl
inc eax
dec ecx
jne 0x401ea0
push esi
xor esi, esi
call fcn.0047bb90
test eax, eax
mov dword [esp + 0x10], eax
je 0x401ef3
mov edx, dword [eax]
push 0x20
lea ecx, [esp + 0x38]
push ecx
mov ecx, eax
call dword [edx + 4]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push ebx
push ebp
push eax
push edi
push 1
call dword [edx + 0xc]
lea ecx, [esp + 0x10]
push ecx
mov esi, eax
call fcn.0047b500
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0045a4fd
add esp, 0x4c
ret 0x10
mov ecx, dword [esp + 0x54]
pop edi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0045a4fd
add esp, 0x4c
ret 0x10
Function at 0x401f20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1018
call fcn.0045a520
mov eax, dword [0x4d757c]
xor eax, ebp
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x1018], eax
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
test ecx, ecx
push edi
je 0x401faa
xor eax, eax
mov word [esp + 0x10], 0
mov ecx, 0x400
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push ecx
call fcn.0044be00
mov edx, dword [eax]
mov eax, dword [esi]
push edx
push eax
push str._s__s
lea ecx, [esp + 0x20]
push 0x800
push ecx
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x18
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
push 5
push 0
push 0
lea edx, [esp + 0x1c]
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [esp + 0x101c]
pop edi
xor ecx, ebp
pop esi
call fcn.0045a4fd
mov esp, ebp
pop ebp
ret 4

Function at 0x402110
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x491899
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, dword [esp + 0x20]
mov ecx, edi
mov dword [esp + 8], 0
call dword [sym.imp.MFC71U.DLL_CWinThread::GetMainWnd]
push eax
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_5]
mov esi, dword [esp + 0x24]
test esi, esi
mov dword [esp + 0x14], 0
jne 0x40215b
xor eax, eax
jmp 0x402165
push esi
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
mov ecx, dword [edi]
push eax
mov eax, dword [ecx - 0xc]
push esi
push eax
push ecx
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.MFC71U.DLL_CPreviewDC::ComputeDeltas]
mov esi, dword [esp + 0x30]
add esp, 0x14
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4021b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4918d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x402230
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4918d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x402cc0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x491994
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4b8
mov eax, dword [0x4d757c]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor eax, ebp
mov esi, ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x4b8], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [esp + 0x24], ecx
push 0x4ae4c0
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], eax
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_2]
lea edx, [esp + 0x10]
xor edi, edi
push edx
mov ecx, esi
mov dword [esp + 0x4d0], edi
call fcn.004022e0
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x18]
push 0x4ae630
push ecx
mov byte [esp + 0x4d8], 1
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format]
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x4cc], 0
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov edx, dword [esp + 0x14]
push edx
mov word [esp + 0x2c], di
xor eax, eax
push 0x40
mov ecx, 0x20
lea edi, [esp + 0x32]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x30]
push eax
push 0x4ae62c
push str.commender
push str.commend
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, 2
jbe 0x402dbd
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.MSVCR71.dll__wtoi64]
mov dword [ebx], eax
mov eax, edx
add esp, 4
test eax, eax
mov dword [ebx + 4], edx
jl 0x402dbd
jg 0x402db1
cmp dword [ebx], 0
jbe 0x402dbd
mov edx, dword [esp + 0x1c]
mov byte [edx], 1
jmp 0x402e85
mov eax, dword [esp + 0x1c]
cmp byte [eax], 0
jne 0x402e85
xor eax, eax
mov word [esp + 0xb0], 0
mov ecx, 0x100
lea edi, [esp + 0xb2]
rep stosd dword es:[edi], eax
push str.http:__www.17guagua.com
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], 0x200
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_2]
cmp dword [esi + 0xa4], 9
mov byte [esp + 0x4cc], 2
jne 0x402e1b
push str.http:__www.guagua.com.cn
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::operator_3]
mov eax, dword [esp + 0x18]
push 0
push 0
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0xbc]
push edx
push str.guagua_rec_id
push eax
call dword [sym.imp.WININET.dll_InternetGetCookieExW]
test eax, eax
je 0x402e75
mov ecx, dword [esp + 0x24]
push ecx
push ebx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0xbc]
push str.guagua_rec_id_d:_I64d:_d
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.MSVCR71.dll_swscanf]
mov cl, byte [esp + 0x24]
mov edx, dword [esp + 0x30]
add esp, 0x14
mov byte [edx], cl
jmp 0x402e7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov ecx, dword [esp + 0x4c4]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x4bc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045a4fd
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4032d0
Capabilities:
Check if file exists
Create directory
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4919f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
mov eax, dword [0x4d757c]
push ebx
xor eax, ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10c], eax
xor ebx, ebx
xor eax, eax
mov word [esp + 0x18], bx
mov ecx, 0x1c
lea edi, [esp + 0x1a]
rep stosd dword es:[edi], eax
mov word [esp + 0x90], bx
mov ecx, 0x1c
lea edi, [esp + 0x92]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
mov dword [esp + 0x120], ebx
call fcn.004022e0
mov ecx, dword [eax]
push ecx
lea edx, [esp + 0x14]
push str._sdata
push edx
mov byte [esp + 0x128], 1
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format]
add esp, 0xc
lea ecx, [esp + 0x14]
mov byte [esp + 0x11c], bl
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x403395
mov ecx, dword [esp + 0x10]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x4ae4c0
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_2]
lea edx, [esp + 0x14]
mov bl, 2
push edx
mov ecx, esi
mov byte [esp + 0x120], bl
call fcn.004022e0
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x10]
push 0x4ae630
push ecx
mov byte [esp + 0x128], 3
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format]
add esp, 0xc
lea ecx, [esp + 0x14]
mov byte [esp + 0x11c], bl
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov edx, dword [esp + 0xc]
push edx
push 0x32
push str.OEMID
push 0x4ae6b0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [esi + 0xa4], eax
mov eax, dword [esp + 0xc]
push eax
push 0x38
lea ecx, [esp + 0x20]
push ecx
push str.guaguaroom
push str.UrlProtocol
push 0x4ae6b0
call edi
mov edx, dword [esp + 0xc]
push edx
push 0x38
lea eax, [esp + 0x98]
push eax
push str.guagua
push str.ImProtocol
push 0x4ae6b0
call edi
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esi + 0xa8]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::operator_3]
lea edx, [esp + 0x90]
push edx
lea ecx, [esi + 0xac]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::operator_3]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov ecx, dword [esp + 0x114]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0045a4fd
mov esp, ebp
pop ebp
ret