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

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x68000]
push edi
jmp 0x46e58a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x46e591
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46e580
mov eax, 1
add ebx, ebx
jne 0x46e5a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x46e5b4
jne 0x46e5d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46e5d3
dec eax
add ebx, ebx
jne 0x46e5c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x46e598
add ebx, ebx
jne 0x46e5cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x46e625
xor ecx, ecx
sub eax, 3
jb 0x46e5eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x46e65a
sar eax, 1
mov ebp, eax
jmp 0x46e5f6
add ebx, ebx
jne 0x46e5f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46e5c4
inc ecx
add ebx, ebx
jne 0x46e604
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46e5c4
add ebx, ebx
jne 0x46e611
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x46e606
jne 0x46e622
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x46e606
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x46e644
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x46e636
jmp 0x46e586
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x46e644
add edi, ecx
jmp 0x46e586
pop esi
mov edi, esi
mov ecx, 0x6e00
jmp 0x46e695
mov al, byte [edi]
inc edi
cmp al, 0x80
jb 0x46e675
cmp al, 0x8f
ja 0x46e675
cmp byte [edi - 2], 0xf
je 0x46e67b
sub al, 0xe8
cmp al, 1
ja 0x46e69f
cmp ecx, 4
jb 0x46e6a4
mov eax, dword [edi]
sub al, 2
jne 0x46e69f
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
sub ecx, 4
stosd dword es:[edi], eax
sub ecx, 1
jb 0x46e6a4
mov al, byte [edi]
inc edi
jmp 0x46e675
sub ecx, 1
jae 0x46e664
lea edi, [esi + 0x6b000]
mov eax, dword [edi]
or eax, eax
je 0x46e6f5
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xcb8cc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xcba54]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46e6aa
mov ecx, edi
jns 0x46e6d9
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xcba5c]
or eax, eax
je 0x46e6ef
mov dword [ebx], eax
add ebx, 4
jmp 0x46e6c7
call dword [esi + 0xcba58]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x46e726
cmp al, 0xef
ja 0x46e719
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x46e6fb
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x46e708
mov ebp, dword [esi + 0xcba60]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x46e75a
sub esp, 0xffffff80
jmp 0x40728a
Function at 0x447b36
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
push esi
mov dword [ebp - 4], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x447c3a
mov edi, dword [ebp + 0xc]
mov eax, edi
or eax, 0x20019
mov dword [ebp - 0xc], eax
jmp 0x447b89
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 8]
push ecx
push eax
push 0
lea edx, [ebp - 0x220]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x447c4c
mov eax, dword [ebp - 8]
push edi
push eax
call fcn.00447b36
mov ecx, dword [ebp - 8]
add esp, 8
push ecx
mov bl, al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x447c4c
lea edx, [ebp - 0x18]
xor ebx, ebx
push edx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
call fcn.00436a9c
test al, al
je 0x447bf3
push ebx
push edi
lea eax, [ebp - 0x220]
push eax
push esi
lea ecx, [ebp - 0x18]
push ecx
call fcn.00447b13
call eax
jmp 0x447c01
lea edx, [ebp - 0x220]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, ebx
jne 0x447c43
lea eax, [ebp - 0x18]
push eax
call fcn.0043ca62
lea ecx, [ebp - 0x20]
push ecx
push ebx
push ebx
push ebx
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x220]
push eax
push ebx
push esi
mov dword [ebp - 4], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x447b86
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x18]
push ecx
call fcn.0043ca62
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x448107
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, 1
push 0
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
push 0
lea eax, [ebp + 0xc]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
cmp dword [ebp + 0xc], 0
jne 0x44813a
mov dword [ebp + 0xc], 0x400
cmp dword [ebp + 8], 0
je 0x448194
lea esp, [esp]
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00437447
add esp, 4
mov edi, eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 8]
push edx
push eax
push edi
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4481c4
mov eax, dword [ebp + 8]
test eax, eax
je 0x44818b
push eax
push edi
lea ecx, [esi + 0x44]
push ecx
call fcn.004373e2
mov eax, dword [ebp + 8]
add dword [esi + 8], eax
adc dword [esi + 0xc], 0
test eax, eax
jne 0x448147
jmp 0x448194
push edi
call fcn.00411c3e
add esp, 4
mov edx, dword [esi + 8]
or edx, dword [esi + 0xc]
jne 0x4481b1
push edx
push 0xdeadbeef
push 0x21
push esi
call fcn.004480d4
pop edi
pop esi
pop ebx
pop ebp
ret 8
push 1
push 0
push 0
push esi
call fcn.004480d4
pop edi
pop esi
pop ebx
pop ebp
ret 8
push edi
call fcn.00411c3e
add esp, 4
push 0
push 0xdeadbeef
push 0x20
push esi
call fcn.004480d4
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x401470
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
call fcn.00405120
mov esi, eax
mov eax, dword [esp + 0x10]
and eax, 0xffff
push 0x4070dc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x4014ec
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x40150b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40152a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401549
call fcn.00404930
mov ecx, dword [esp + 0x14]
push ebx
push esi
push ecx
call fcn.00405030
add esp, 0xc
mov esi, eax
call fcn.00404990
test esi, esi
jne 0x401568
mov eax, esi
pop edi
pop esi
pop ebx
ret 8
push str.D:WorkHPServiceShangHaiBackDllBackDllApp.cpp
push 0x90
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004048b0
add esp, 0xc
pop edi
pop esi
pop ebx
ret 8
push str.D:WorkHPServiceShangHaiBackDllBackDllApp.cpp
push 0x95
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004048b0
add esp, 0xc
pop edi
pop esi
pop ebx
ret 8
push str.D:WorkHPServiceShangHaiBackDllBackDllApp.cpp
push 0x9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004048b0
add esp, 0xc
pop edi
pop esi
pop ebx
ret 8
push str.D:WorkHPServiceShangHaiBackDllBackDllApp.cpp
push 0x9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004048b0
add esp, 0xc
pop edi
pop esi
pop ebx
ret 8
push str.D:WorkHPServiceShangHaiBackDllBackDllApp.cpp
push 0xa6
push esi
call fcn.004048b0
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
ret 8
Function at 0x402100
Capabilities:
Create service

Disassembly:
sub esp, 0x10c
push ebx
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
push ebx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x12c]
push ebx
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x12c]
mov edi, dword [esp + 0x128]
push ebx
mov edx, dword [esp + 0x128]
push ebx
push ebx
push eax
push 1
push ecx
push 1
push 0xf01ff
push edi
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x4022db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0x431
jne 0x402172
xor ebx, ebx
jmp 0x40218d
push str.D:WorkHPServiceShangHaiBackDllBackDllApp.cpp
push 0x27c
push ebx
call fcn.004048b0
add esp, 0xc
test ebx, ebx
jne 0x4022cd
push edi
lea eax, [esp + 0x18]
push str.SYSTEMCurrentControlSet_services_sParameters
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [esi + 0xa4]
lea edx, [esp + 0x20]
push ecx
push str.ReportTime
push edx
push connect
call fcn.00404aa0
mov eax, dword [esi + 0xa8]
lea ecx, [esp + 0x30]
push eax
push str.CodeID
push ecx
push connect
call fcn.00404aa0
lea edx, [esi + 0xac]
push 6
push edx
lea eax, [esp + 0x48]
push str.GateWayMac
push eax
push connect
call fcn.00404b40
add esp, 0x40
lea ecx, [esi + 0xb4]
lea edx, [esp + 0x14]
push ecx
push str.TempPath
push edx
push connect
call fcn.00405790
add esi, 0x1b8
push esi
call fcn.004028e0
lea eax, [esp + 0x24]
push eax
push str.c.hxreg.com
call fcn.00402a30
lea ecx, [esp + 0x28]
push ecx
push str.s.hxtec.com.cn
call fcn.00402a30
mov edx, dword [esp + 0x34]
add esp, 0x24
push edx
push str.Status1000x_lX
call fcn.004048a0
mov eax, dword [esp + 0x14]
add esp, 8
push eax
push str.Status2000x_lX
call fcn.004048a0
mov esi, dword [esp + 0x18]
add esp, 8
test esi, esi
mov dl, 0x3d
mov cl, 0x93
mov al, 0x7d
jne 0x40227f
mov byte [esp + 0x10], dl
mov byte [esp + 0x11], cl
mov byte [esp + 0x12], al
mov byte [esp + 0x13], 0xaa
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x402298
mov byte [esp + 0xc], dl
mov byte [esp + 0xd], cl
mov byte [esp + 0xe], al
mov byte [esp + 0xf], 0x61
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push str.Status100
push edx
push connect
call fcn.00404aa0
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push eax
push str.Status200
push ecx
push connect
call fcn.00404aa0
add esp, 0x20
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x10c
ret 0x10
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40218d
Function at 0x4022f0
Capabilities:
Delete service

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push esi
push edi
push 0xf01ff
push eax
push ecx
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x402328
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x402346
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
ret 8
push str.D:WorkHPServiceShangHaiBackDllBackDllApp.cpp
push 0x2b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004048b0
add esp, 0xc
pop edi
pop esi
ret 8
push str.D:WorkHPServiceShangHaiBackDllBackDllApp.cpp
push 0x2bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004048b0
add esp, 0xc
mov edi, eax
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x402370
Capabilities:
Start service

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push esi
push edi
push 0xf01ff
push eax
push ecx
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x4023bc
push esi
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x4023ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x420
jne 0x4023da
push edi
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
pop esi
ret 8
push str.D:WorkHPServiceShangHaiBackDllBackDllApp.cpp
push 0x2d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004048b0
add esp, 0xc
pop edi
pop esi
ret 8
push str.D:WorkHPServiceShangHaiBackDllBackDllApp.cpp
push 0x2de
push esi
call fcn.004048b0
add esp, 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
pop esi
ret 8

Function at 0x402400
Capabilities:
Stop service

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub esp, 0x1c
push esi
push edi
push 0xf01ff
push eax
push ecx
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x402445
lea edx, [esp + 8]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x402466
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x1c
ret 8
push str.D:WorkHPServiceShangHaiBackDllBackDllApp.cpp
push 0x2f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004048b0
add esp, 0xc
pop edi
pop esi
add esp, 0x1c
ret 8
push str.D:WorkHPServiceShangHaiBackDllBackDllApp.cpp
push 0x2fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004048b0
add esp, 0xc
mov edi, eax
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x1c
ret 8
Function at 0x4028e0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x208
push ebx
push esi
push edi
xor dl, dl
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x218]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
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
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x402986
cmp byte [esp + ecx + 0xb], 0x5c
je 0x402986
mov edi, 0x4070a4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.PubwinClient.ini
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x114]
push 0x104
push ecx
push 0x4077d8
push str.BarCode
push str.XunSan
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x110]
push 1
push edx
call fcn.00404bf0
add esp, 8
lea eax, [esp + 0x110]
push eax
push str.szBarCode_s_n
call fcn.004048a0
lea ecx, [esp + 0x118]
push ecx
push str.RegID
push str.SOFTWAREPubWin2
push connect
call fcn.00405790
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x208
ret

Function at 0x402a30
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x190
lea eax, [esp]
push esi
mov esi, dword [esp + 0x19c]
push edi
xor edi, edi
push eax
push 0x101
mov dword [esi], edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x402a83
mov ecx, dword [esp + 0x19c]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x402a92
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esi], ecx
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, edi
pop edi
pop esi
add esp, 0x190
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
add esp, 0x190
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, edi
pop edi
pop esi
add esp, 0x190
ret
Function at 0x402c20
Capabilities:
Delete internet cache
Enumerate internet cache

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x14], ebx
mov ebp, 0x2000
xor esi, esi
mov edi, 0x7a
test edi, edi
je 0x402cf4
cmp edi, 0x7a
jne 0x402d31
test esi, esi
je 0x402c57
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
push ebp
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
test esi, esi
jne 0x402c70
mov dword [esp + 0x14], 8
jmp 0x402c39
mov ecx, ebp
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [esi], ebp
mov dword [esp + 0x10], ebp
test ebx, ebx
jne 0x402ccb
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x402cb2
lea eax, [esp + 0x10]
push eax
push esi
push str.cookie:
call dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryA]
mov ebx, eax
xor eax, eax
test ebx, ebx
setne al
jmp 0x402cd8
lea ecx, [esp + 0x10]
push ecx
push esi
push 0
call dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryA]
mov ebx, eax
xor eax, eax
test ebx, ebx
setne al
jmp 0x402cd8
lea edx, [esp + 0x10]
push edx
push esi
push ebx
call dword [sym.imp.WININET.dll_FindNextUrlCacheEntryA]
test eax, eax
je 0x402ce3
xor edi, edi
jmp 0x402c39
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, dword [esp + 0x10]
mov edi, eax
jmp 0x402c39
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x402d0b
test dword [esi + 0xc], 0x100000
je 0x402d0b
mov eax, dword [esi + 4]
push eax
jmp 0x402d0f
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], ebp
push edx
push esi
push ebx
call dword [sym.imp.WININET.dll_FindNextUrlCacheEntryA]
test eax, eax
je 0x402ce3
xor edi, edi
jmp 0x402c39
cmp edi, 0x103
jne 0x402d41
mov dword [esp + 0x14], 0
test esi, esi
je 0x402d4e
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
test ebx, ebx
je 0x402d59
push ebx
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x403180
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
sub esp, 0x208
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], 0
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push esi
lea eax, [esp + 0x114]
push 0x1a
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x403348
lea edi, [esp + 0x110]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x403318
lea eax, [esp + ecx + 0x10f]
mov cl, byte [esp + ecx + 0x10f]
cmp cl, 0x5c
jne 0x403202
mov byte [eax], 0
mov edi, str.360se6User_DataDefault
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x110]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x218]
mov ecx, ebx
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x403324
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [esp + 0x110]
push ebp
push eax
lea ecx, [esp + 0x14]
push str._sCookies
push ecx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 0xc
lea edx, [esp + 0x10]
push 0
push edx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x10]
push eax
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40329b
push str.D:WorkHPServiceShangHaiToasterIECacheFile.cpp
push 0xfe
call ebx
push eax
call fcn.004048b0
add esp, 0xc
lea ecx, [esp + 0x114]
lea edx, [esp + 0x10]
push ecx
push str._sCookies_journal
push edx
call esi
add esp, 0xc
lea eax, [esp + 0x10]
push 0
push eax
call edi
lea ecx, [esp + 0x10]
push ecx
call ebp
test eax, eax
pop ebp
jne 0x4032dc
push str.D:WorkHPServiceShangHaiToasterIECacheFile.cpp
push 0x104
call ebx
push eax
call fcn.004048b0
add esp, 0xc
lea edx, [esp + 0x110]
lea eax, [esp + 0xc]
push edx
push str._sLocal_Storage
push eax
call esi
lea ecx, [esp + 0x18]
push 0
push ecx
call fcn.00402d70
mov esi, eax
add esp, 0x14
test esi, esi
je 0x403318
push str.D:WorkHPServiceShangHaiToasterIECacheFile.cpp
push 0x10a
push esi
call fcn.004048b0
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x208
ret
lea edx, [esp + 0x110]
push 0
push edx
call fcn.00402d70
mov esi, eax
add esp, 8
test esi, esi
je 0x403318
push str.D:WorkHPServiceShangHaiToasterIECacheFile.cpp
push 0x112
jmp 0x40330f
push str.D:WorkHPServiceShangHaiToasterIECacheFile.cpp
push 0xef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004048b0
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x208
ret
Function at 0x403370
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
sub esp, 0x208
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], 0
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push esi
lea eax, [esp + 0x114]
push 0x1c
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x403538
lea edi, [esp + 0x110]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x403508
lea eax, [esp + ecx + 0x10f]
mov cl, byte [esp + ecx + 0x10f]
cmp cl, 0x5c
jne 0x4033f2
mov byte [eax], 0
mov edi, str.360ChromeChromeUser_DataDefault
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x110]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x218]
mov ecx, ebx
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x403514
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [esp + 0x110]
push ebp
push eax
lea ecx, [esp + 0x14]
push str._sCookies
push ecx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 0xc
lea edx, [esp + 0x10]
push 0
push edx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x10]
push eax
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40348b
push str.D:WorkHPServiceShangHaiToasterIECacheFile.cpp
push 0x13a
call ebx
push eax
call fcn.004048b0
add esp, 0xc
lea ecx, [esp + 0x114]
lea edx, [esp + 0x10]
push ecx
push str._sCookies_journal
push edx
call esi
add esp, 0xc
lea eax, [esp + 0x10]
push 0
push eax
call edi
lea ecx, [esp + 0x10]
push ecx
call ebp
test eax, eax
pop ebp
jne 0x4034cc
push str.D:WorkHPServiceShangHaiToasterIECacheFile.cpp
push 0x140
call ebx
push eax
call fcn.004048b0
add esp, 0xc
lea edx, [esp + 0x110]
lea eax, [esp + 0xc]
push edx
push str._sLocal_Storage
push eax
call esi
lea ecx, [esp + 0x18]
push 0
push ecx
call fcn.00402d70
mov esi, eax
add esp, 0x14
test esi, esi
je 0x403508
push str.D:WorkHPServiceShangHaiToasterIECacheFile.cpp
push 0x146
push esi
call fcn.004048b0
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x208
ret
lea edx, [esp + 0x110]
push 0
push edx
call fcn.00402d70
mov esi, eax
add esp, 8
test esi, esi
je 0x403508
push str.D:WorkHPServiceShangHaiToasterIECacheFile.cpp
push 0x14e
jmp 0x4034ff
push str.D:WorkHPServiceShangHaiToasterIECacheFile.cpp
push 0x12b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004048b0
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x208
ret