joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412480
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40f015
lea edi, [esi - 0xe015]
push edi
jmp 0x41249a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4124a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x412490
mov eax, 1
add ebx, ebx
jne 0x4124b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4124a8
jne 0x4124c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4124a8
xor ecx, ecx
sub eax, 3
jb 0x4124d8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41254a
mov ebp, eax
add ebx, ebx
jne 0x4124e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4124f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x412514
inc ecx
add ebx, ebx
jne 0x412500
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4124f5
jne 0x412511
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4124f5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x412534
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x412525
jmp 0x412496
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x412534
add edi, ecx
jmp 0x412496
pop esi
mov edi, esi
mov ecx, 0x140
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x412552
cmp byte [edi], 2
jne 0x412552
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x412557
lea edi, [esi + 0x10000]
mov eax, dword [edi]
or eax, eax
je 0x4125c6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12050]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x412584
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12058]
or eax, eax
je 0x4125c0
mov dword [ebx], eax
add ebx, 4
jmp 0x4125a1
call dword [esi + 0x12054]
mov ebp, dword [esi + 0x1205c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x12621]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x412612
sub esp, 0xffffff80
jmp 0x401300
Function at 0x4014b5
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x434100]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x1c
mov eax, 0x425c1d
call fcn.00412e51
xor eax, eax
push 0x206
push eax
mov word [ebp], ax
lea eax, [ebp + 2]
push eax
call fcn.00412670
add esp, 0xc
push 0x104
lea eax, [ebp]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.360Game_chs.exe
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp]
push eax
lea esi, [ebp - 0x28]
call fcn.004018d7
and dword [ebp - 4], 0
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x401537
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401559
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x40154e
lea eax, [ebp - 0x24]
push eax
call fcn.00408c45
pop ecx
test eax, eax
jne 0x40158c
xor bl, bl
push 0
push 1
lea esi, [ebp - 0x28]
call fcn.00401925
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.004105cc
add ebp, 0x20c
leave
ret
mov bl, 1
jmp 0x40155b

Function at 0x401590
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4361c8]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x4015ba
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 4], 0x103
sete al
jmp 0x4015bc
xor al, al
cmp al, bl
jne 0x4015f6
mov eax, dword [0x4361cc]
cmp eax, ebx
je 0x4015d6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4361cc], ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_StrDupW]
push eax
push 0x4015fb
push ebx
push ebx
call fcn.00410a3e
add esp, 0x18
mov dword [0x4361cc], eax
pop ebx
leave
ret 4

Function at 0x40176b
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x434100]
xor eax, ebp
mov dword [ebp + 0x194], eax
and dword [ebp - 0x7c], 0
push esi
push 0x20a
lea eax, [ebp - 0x78]
push 0
push eax
mov esi, ecx
call fcn.00412670
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360Game.exe
push 0x80000001
mov dword [ebp - 0x80], 0x104
mov dword [ebp - 0x7c], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp word [ebp - 0x78], 0
je 0x4017f5
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4017f5
lea eax, [ebp - 0x78]
push eax
call fcn.00408c45
pop ecx
test eax, eax
je 0x4017f5
lea eax, [ebp - 0x78]
push eax
jmp 0x4017fa
push 0x42ca50
call fcn.004018d7
mov ecx, dword [ebp + 0x194]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004105cc
add ebp, 0x198
leave
ret
Function at 0x401817
Capabilities:
Check if file exists
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x434100]
xor eax, ebp
mov dword [ebp + 0x18c], eax
and dword [ebp - 0x80], 0
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
mov esi, ecx
call fcn.00412670
add esp, 0xc
push 0x103
lea eax, [ebp - 0x7c]
push eax
push dword [0x4377a4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.360Game_chs.exe
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x80
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4018a2
lea eax, [ebp - 0x7c]
push eax
jmp 0x4018a7
push 0x42ca50
call fcn.004018d7
mov ecx, dword [ebp + 0x18c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004105cc
add ebp, 0x190
leave
ret
Function at 0x402050
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x644
mov eax, dword [0x434100]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x63c], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x638], eax
xor eax, eax
mov esi, 0x208
xor ebx, ebx
push esi
mov word [ebp - 0x42c], ax
lea eax, [ebp - 0x42a]
push ebx
push eax
mov dword [ebp - 0x640], ebx
call fcn.00412670
add esp, 0xc
lea eax, [ebp - 0x42c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
push esi
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push ebx
push eax
call fcn.00412670
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push ebx
push 0x42ca50
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push esi
lea eax, [ebp - 0x634]
push ebx
push eax
call fcn.00412670
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x634]
push eax
call fcn.00408301
push dword [edi]
lea eax, [ebp - 0x634]
push 0x42ca20
push eax
call fcn.0040839d
mov eax, dword [ebp - 0x638]
push dword [eax]
lea eax, [ebp - 0x634]
push str.title
push eax
call fcn.0040839d
push dword [ebp + 0x10]
lea esi, [ebp - 0x634]
call fcn.00408335
mov esi, dword [ebp - 0x63c]
lea ebx, [ebp - 0x21c]
call fcn.00401413
mov ecx, dword [ebp - 8]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004105cc
leave
ret
Function at 0x40266c
Capabilities:
Check if file exists
Get common file path

Disassembly:
push 4
mov eax, 0x425ff2
call fcn.00412e51
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, 0x439288
push ebx
xor edi, edi
push edi
push edi
push 0x1a
push edi
call esi
call fcn.00408f6c
test eax, eax
je 0x40269d
push str.360se6User_DataDefault_appsextyouxi
jmp 0x4026a2
push str.360se6_appsdatacommonExtYouxi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x4364cc
push edi
push edi
push 0x1a
push edi
call esi
lea ecx, [ebp - 0x10]
call fcn.00401000
mov dword [ebp - 4], edi
mov esi, dword [eax]
call fcn.0040867e
mov ebx, 0x103
cmp esi, edi
je 0x4026e3
push esi
push 0x42de0c
add eax, 4
push ebx
push eax
call fcn.004083b7
add esp, 0x10
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x10]
call fcn.00401143
push edi
call fcn.0040867e
mov ecx, eax
call fcn.004086f0
push 5
call fcn.0040867e
mov ecx, eax
call fcn.004086f0
push ebx
mov esi, 0x4362bc
push esi
push dword [0x4377a4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.GameCenter.dll
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40274d
push esi
call fcn.00408c45
pop ecx
test eax, eax
jne 0x40274d
mov eax, 0x80070057
jmp 0x402777
call fcn.00404d90
mov ecx, eax
call fcn.00404c56
test eax, eax
jne 0x402772
push 0x10
push 0x42d5e8
push str.penc
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x402746
call fcn.00402163
call fcn.00412ef0
ret

Function at 0x4032ec
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x4032fa
push 0xd
pop eax
jmp 0x40332d
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x403301
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4037a8
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x434100]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
mov dword [ebp - 0x21c], eax
xor esi, esi
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
call fcn.00403775
mov ebx, eax
cmp ebx, esi
je 0x403810
cmp dword [ebp - 0x214], esi
je 0x403809
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x4038ab
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x403838
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.004037a8
mov dword [ebp - 0x220], eax
cmp eax, esi
jne 0x4038bc
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], pe_nt_image_headers32
call ebx
test eax, eax
je 0x403818
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x214], esi
je 0x403883
push dword [ebp - 0x214]
call ebx
mov dword [ebp - 0x214], esi
push dword [ebp - 0x21c]
mov dword [ebp - 0x210], esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp dword [ebp - 0x214], esi
je 0x4038a9
push dword [ebp - 0x214]
call ebx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004105cc
leave
ret 4
cmp dword [ebp - 0x214], esi
je 0x4038d0
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x220]
jmp 0x4038ab
Function at 0x405077
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x118
mov eax, dword [0x434100]
xor eax, ebp
mov dword [ebp + 0x74], eax
cmp dword [0x437420], 0xffffffff
jne 0x40525f
push esi
push edi
push 0x110
lea eax, [ebp - 0x9c]
push 0
mov edi, 0x114
push eax
mov dword [0x437420], 0xfffffc18
mov dword [ebp - 0xa0], edi
call fcn.00412670
add esp, 0xc
lea esi, [ebp - 0xa0]
call fcn.00405273
test eax, eax
jne 0x4050f1
push edi
push eax
mov eax, esi
push eax
call fcn.00412670
add esp, 0xc
mov eax, esi
push eax
mov dword [ebp - 0xa0], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x9c]
pop edi
pop esi
cmp eax, 5
jne 0x4051bb
cmp dword [ebp - 0x98], 0
jne 0x40511a
mov dword [0x437420], 1
jmp 0x40525f
cmp dword [ebp - 0x98], 1
jne 0x40519f
push 0x7f
lea eax, [ebp - 0x8c]
push eax
push 0x42de44
call fcn.00411818
add esp, 0xc
test eax, eax
jne 0x40514c
mov dword [0x437420], 3
jmp 0x40525f
push 0x7f
lea eax, [ebp - 0x8c]
push eax
push str.Service_Pack_2
call fcn.00411818
add esp, 0xc
test eax, eax
jne 0x405175
mov dword [0x437420], 4
jmp 0x40525f
push 0x7f
lea eax, [ebp - 0x8c]
push eax
push str.Service_Pack_3
call fcn.00411818
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 5
mov dword [0x437420], eax
jmp 0x40525f
cmp dword [ebp - 0x98], 2
jne 0x40525f
mov dword [0x437420], 6
jmp 0x40525f
cmp eax, 6
jne 0x405236
mov eax, dword [ebp - 0x98]
test eax, eax
jne 0x40520f
push 0x7f
lea eax, [ebp - 0x8c]
push eax
push 0x42de44
call fcn.00411818
add esp, 0xc
test eax, eax
jne 0x4051f0
mov dword [0x437420], 8
jmp 0x40525f
push 0x7f
lea eax, [ebp - 0x8c]
push eax
push str.Service_Pack_2
call fcn.00411818
add esp, 0xc
neg eax
sbb eax, eax
add eax, 8
jmp 0x405195
cmp eax, 1
je 0x40523b
cmp eax, 2
jne 0x405225
mov dword [0x437420], 0xa
jmp 0x40525f
cmp eax, 3
jne 0x40525f
mov dword [0x437420], 0xb
jmp 0x40525f
cmp eax, 7
jne 0x405247
mov dword [0x437420], 9
jmp 0x40525f
cmp eax, 0xa
jne 0x40525f
cmp dword [ebp - 0x98], 0
jne 0x40525f
mov dword [0x437420], 0xc
mov ecx, dword [ebp + 0x74]
mov eax, dword [0x437420]
xor ecx, ebp
call fcn.004105cc
add ebp, 0x78
leave
ret
Function at 0x405345
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x3f90]
mov eax, 0x4010
call fcn.0041be30
mov eax, dword [0x434100]
xor eax, ebp
mov dword [ebp + 0x3f8c], eax
push edi
xor edi, edi
cmp esi, edi
je 0x405403
cmp ebx, edi
je 0x405403
push 0x4000
lea eax, [ebp - 0x74]
push edi
push eax
call fcn.00412670
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push esi
mov dword [ebp - 0x7c], edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, edi
je 0x405403
cmp eax, 0x3fff
ja 0x405403
lea ecx, [ebp - 0x74]
push ecx
push eax
push edi
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x405403
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x42c828
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x80], edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x405403
mov eax, dword [ebp - 0x78]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push 0x42c82c
push 0xffffffffffffffff
push dword [ebp + 0x3f98]
push ebx
call fcn.0041091c
xor eax, eax
add esp, 0x20
inc eax
jmp 0x405405
xor eax, eax
mov ecx, dword [ebp + 0x3f8c]
xor ecx, ebp
pop edi
call fcn.004105cc
add ebp, 0x3f90
leave
ret

Function at 0x405acc
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
cmp dword [0x43b960], esi
jne 0x405b31
push edi
mov edi, 0x43b9d4
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x43b960], esi
jne 0x405b29
push esi
push esi
push esi
push 0x405b33
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x43b960], eax
mov dword [0x43b96c], 1
push dword [0x43b968]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x405b29
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xa
jl 0x405b0b
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
ret
Function at 0x406460
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x12f4]
mov eax, 0x12f4
call fcn.0041be30
push 0xffffffffffffffff
push 0x425cbf
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x434100]
xor eax, ebp
mov dword [ebp + 0x12f0], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x4355a4]
mov dword [ebp - 0x10], eax
xor edi, edi
xor eax, eax
mov dword [ebp - 4], edi
push 0x206
mov word [ebp + 0x1068], ax
lea eax, [ebp + 0x106a]
push edi
push eax
call fcn.00412670
add esp, 0xc
push 0x104
lea eax, [ebp + 0x1068]
push eax
push dword [0x4377a4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x1068]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.360Game_chs.exe
lea eax, [ebp + 0x1068]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp + 0x1068]
push eax
lea esi, [ebp]
call fcn.004018d7
mov byte [ebp - 4], 1
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x40651c
lea eax, [ebp + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406592
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x406533
lea eax, [ebp + 4]
push eax
call fcn.00408c45
pop ecx
test eax, eax
je 0x406592
xor eax, eax
push 0x7e
mov word [ebp + 0x1270], ax
lea eax, [ebp + 0x1272]
push edi
push eax
call fcn.00412670
push 0x3f
lea ebx, [ebp + 0x1270]
lea esi, [ebp + 0x1068]
call fcn.00405345
mov eax, ebx
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x406571
sub eax, edx
push 0x32
sar eax, 1
pop ecx
mov word [ebp + eax*2 + 0x1268], cx
lea eax, [ebp + 0x1270]
jmp 0x406597
call fcn.00406c8a
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004011b7
call fcn.00406d02
mov esi, eax
xor eax, eax
push 0x1048
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x1e]
push edi
push eax
call fcn.00412670
push esi
push dword [ebp - 0x10]
lea eax, [ebp + 0x1c]
push str.http:__res.qhupdate.com_360game_updatecheck.php_ver_spidseonlinem_ssseonline
push 0xffffffffffffffff
push 0x825
push eax
call fcn.0041091c
lea eax, [ebp + 0x1c]
push eax
call fcn.00406da2
add esp, 0x28
push edi
push 1
lea esi, [ebp]
call fcn.00401925
lea esi, [ebp - 0x10]
call fcn.00401143
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x12f0]
xor ecx, ebp
call fcn.004105cc
add ebp, 0x12f4
leave
ret
Function at 0x4067ee
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jle 0x4068bf
push esi
push esi
push esi
push esi
push str.Mozilla_4.0__compatible__MSIE_7.0__Windows_NT_6.0__Trident_4.0__.NET_CLR_2.0.50727__Media_Center_PC_5.0__.NET_CLR_3.0.04506__.NET_CLR_3.5.21022_
mov dword [ebp - 4], esi
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x4068b6
push edi
push esi
push esi
push 3
push esi
push esi
push 0x50
push str.pq.f.360.cn
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 8], eax
cmp eax, esi
je 0x4068b0
push ebx
push esi
push 0x4000000
lea ecx, [ebp - 0x18]
push ecx
push esi
push str.HTTP_1.0
push str._midinfo.php
push str.POST
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0x42e930
mov dword [ebp - 0x10], esi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ebx, eax
cmp ebx, esi
je 0x4068aa
push dword [ebp + 8]
push dword [ebp + 0xc]
push esi
push esi
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x4068a7
or dword [ebp - 4], 0xffffffff
push esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x20000013
push ebx
mov dword [ebp + 8], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
push ebx
call edi
push dword [ebp - 8]
call edi
pop ebx
push dword [ebp - 0xc]
call edi
pop edi
push dword [ebp + 0xc]
call fcn.0041112f
pop ecx
xor eax, eax
pop esi
leave
ret 8
Function at 0x4068c6
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1050
call fcn.0041be30
mov eax, dword [0x434100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
xor esi, esi
push edi
mov edi, ecx
mov dword [ebp - 0x1050], eax
cmp dword [0x43ba3c], esi
jne 0x4068fe
call fcn.00406d02
mov dword [0x43ba3c], eax
cmp dword [0x43ba40], esi
jne 0x406910
call fcn.00406c8a
mov dword [0x43ba40], eax
xor eax, eax
push 0x1046
mov word [ebp - 0x104c], ax
lea eax, [ebp - 0x104a]
push esi
push eax
call fcn.00412670
add esp, 0xc
cmp edi, esi
je 0x406937
cmp word [edi], si
jne 0x40693c
mov edi, 0x42dff4
push ebx
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x104c]
push dword [0x43ba40]
push dword [ebp - 0x1050]
push 0x42ca50
push dword [0x43ba3c]
push str.http:__geapp.stat.360safe.com_ver.html_mid_sguid_spid_sver_suuid_dvalue_s_0_0_0_0_0_0_0_0_0strval_s
push 0xffffffffffffffff
push 0x824
push eax
call fcn.0041091c
add esp, 0x2c
push esi
push esi
push esi
push esi
push str.Mozilla_4.0__compatible__MSIE_7.0__Windows_NT_6.0__Trident_4.0__.NET_CLR_2.0.50727__Media_Center_PC_5.0__.NET_CLR_3.0.04506__.NET_CLR_3.5.21022_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
cmp edi, esi
je 0x4069ae
push esi
push 0x80000000
push esi
push esi
lea eax, [ebp - 0x104c]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
cmp eax, esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x4069ab
push eax
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004105cc
leave
ret
Function at 0x4069bc
Capabilities:
Create http request

Disassembly:
push ebp
lea ebp, [esp - 0x1068]
mov eax, 0x1068
call fcn.0041be30
push 0xffffffffffffffff
push 0x425fc2
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, dword [0x434100]
xor eax, ebp
mov dword [ebp + 0x1064], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x1074]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x1078]
xor esi, esi
mov ebx, ecx
mov edi, edx
mov dword [ebp - 0x14], eax
cmp dword [0x43ba44], esi
jne 0x406a22
call fcn.00406d02
mov dword [0x43ba44], eax
cmp dword [0x43ba48], esi
jne 0x406a34
call fcn.00406c8a
mov dword [0x43ba48], eax
xor eax, eax
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], esi
mov word [ebp + 4], ax
push 0x1046
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x1e]
push esi
push eax
call fcn.00412670
add esp, 0xc
mov eax, 0x42dff4
cmp edi, esi
je 0x406a68
cmp word [edi], si
jne 0x406a6a
mov edi, eax
push eax
push dword [ebp - 0x14]
lea eax, [ebp + 0x1c]
push dword [ebp - 0x10]
push edi
push dword [ebp + 0x1070]
push dword [0x43ba48]
push ebx
push 0x42ca50
push dword [0x43ba44]
push str.http:__geapp.stat.360safe.com_ver.html_mid_sguid_spid_sver_suuid_dvalue_s__s__s__s_0_0_0_0_0_0strval
push 0x823
push eax
call fcn.00407d40
add esp, 0x30
push esi
push esi
push esi
push esi
push str.Mozilla_4.0__compatible__MSIE_7.0__Windows_NT_6.0__Trident_4.0__.NET_CLR_2.0.50727__Media_Center_PC_5.0__.NET_CLR_3.0.04506__.NET_CLR_3.5.21022_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
cmp edi, esi
je 0x406ad8
push esi
push 0x80000000
push esi
push esi
lea eax, [ebp + 0x1c]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp eax, esi
je 0x406ad5
push eax
call ebx
push edi
call ebx
push esi
push 1
lea esi, [ebp]
call fcn.00401925
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1064]
xor ecx, ebp
call fcn.004105cc
add ebp, 0x1068
leave
ret