joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47b8c0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4878ef
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x4a7740]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xac], ecx
lea ecx, [ebp - 0x3c]
call fcn.0040ebb0
mov dword [ebp - 4], 0
push str.dubaclient.dat
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040e7e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa8]
call fcn.00403760
push eax
lea ecx, [ebp - 0x40]
call fcn.00401d70
mov byte [ebp - 4], 2
push 0x494508
lea ecx, [ebp - 0x40]
call fcn.00401e30
mov dword [ebp - 0x1c], 0
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x8c], 0
push 0x40
push 0
lea edx, [ebp - 0x88]
push edx
call fcn.00453b10
add esp, 0xc
mov dword [ebp - 0x8c], 0x44
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x8c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x40]
call fcn.004119f0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x47b9e0
push 0x494518
push 0x4ab400
call fcn.00474de0
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00403340
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa8]
call fcn.00403740
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0040e720
jmp 0x47ba20
push 0xffffffffffffffff
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00403340
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa8]
call fcn.00403740
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0040e720
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.00450ba2
mov esp, ebp
pop ebp
ret
Function at 0x47efe0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x47f002
jmp 0x47f038
push 0
push 0
push 0x7d00
push str._install__start
mov ecx, dword [ebp + 8]
push ecx
call fcn.00478ed0
add esp, 0x14
mov edx, dword [ebp + 8]
push edx
call fcn.004782d0
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x47f038
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x47f050
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4873d9
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4a7740]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 5
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403700
mov dword [ebp - 4], 0
push str..old
lea ecx, [ebp - 0x2c]
call fcn.004085f0
lea ecx, [ebp - 0x2c]
call fcn.00403760
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47f0cb
lea ecx, [ebp - 0x2c]
call fcn.00403760
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x38], 0
jmp 0x47f0dd
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov dword [ebp - 0x38], ecx
cmp dword [ebp - 0x38], 3
jge 0x47f141
cmp dword [ebp + 0x10], 0
je 0x47f10c
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47f10c
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403760
push eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x47f12e
mov dword [ebp - 0x34], 1
jmp 0x47f141
cmp dword [ebp - 0x38], 4
je 0x47f13f
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x47f0d4
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00403740
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00450ba2
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47f180
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x47f1a2
jmp 0x47f210
push 0
push 0
push 0x88b8
push str._stop
mov ecx, dword [ebp + 8]
push ecx
call fcn.00478ed0
add esp, 0x14
mov edx, dword [ebp + 8]
push edx
call fcn.004782d0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x47f1dc
mov dword [ebp - 0xc], 1
jmp 0x47f210
mov dword [ebp - 4], 3
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004788e0
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
call fcn.004782d0
add esp, 4
mov dword [ebp - 8], eax
xor eax, eax
cmp dword [ebp - 8], 0
sete al
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x47fa60
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0xc], 0
jmp 0x47fa93
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 3
jge 0x47fb3e
push 0
push 0x1e
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004809c0
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xc8
jne 0x47fadd
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004781c0
add esp, 4
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp + 0x10]
jne 0x47fadd
mov dword [ebp - 8], 1
jmp 0x47fb3e
push 0x320
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x1e
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00480d70
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xc8
jne 0x47fb28
mov edx, dword [ebp + 0xc]
push edx
call fcn.004781c0
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0x10]
jne 0x47fb28
mov dword [ebp - 8], 1
jmp 0x47fb3e
cmp dword [ebp - 0xc], 2
je 0x47fb39
push 0x320
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x47fa8a
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x47fb50
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0xc], 0
jmp 0x47fb83
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 3
jge 0x47fbf9
push 0
push 0x1e
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004809c0
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xc8
jne 0x47fbb2
mov dword [ebp - 8], 1
jmp 0x47fbf9
push 0x320
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x1e
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00480d70
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xc8
jne 0x47fbe6
mov dword [ebp - 8], 1
jmp 0x47fbf9
cmp dword [ebp - 0xc], 2
je 0x47fbf7
push 0x320
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x47fb7a
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8
Function at 0x47fc10
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488c4d
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x4a7740]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb4], ecx
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [ebp - 0x10], 1
push str.http:__duba_011.duba.net_netversion_Package_setup_kbqindex.ini
lea ecx, [ebp - 0x8c]
call fcn.00403700
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.0040e780
mov byte [ebp - 4], 1
push 0x494fa0
lea ecx, [ebp - 0xac]
push ecx
lea ecx, [ebp - 0x30]
call fcn.0040e7e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x68]
call fcn.0040ebb0
mov byte [ebp - 4], 3
push 0x494fb8
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x68]
call fcn.0040e7e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x4c]
call fcn.00403760
push eax
lea ecx, [ebp - 0x8c]
call fcn.00403760
push eax
mov ecx, dword [ebp - 0xb4]
call fcn.0047fb50
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
jne 0x47fcfa
push 0x494fd4
push 0x4ab400
call fcn.00474de0
add esp, 8
mov dword [ebp - 0x10], 0xffffffff
jmp 0x47fd94
lea ecx, [ebp - 0x4c]
call fcn.00403760
push eax
push 0
push 0x494fec
push 0x495004
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
jne 0x47fd39
push str.kbqindex.ini
push 0x4ab400
call fcn.00474de0
add esp, 8
mov dword [ebp - 0x10], 0xffffffff
jmp 0x47fd94
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x6c]
mov dword [eax], ecx
lea ecx, [ebp - 0xac]
call fcn.00403760
push eax
call fcn.004781c0
add esp, 4
mov dword [ebp - 0x70], eax
mov edx, dword [ebp - 0x70]
cmp edx, dword [ebp - 0x6c]
jne 0x47fd7b
mov dword [ebp - 0x10], 0
push 0x495020
push 0x4ab400
call fcn.00474de0
add esp, 8
jmp 0x47fd94
mov dword [ebp - 0x10], 1
push str.kbqsvc.exe
push 0x4ab400
call fcn.00474de0
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xb0], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4c]
call fcn.00403740
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x68]
call fcn.0040e720
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xac]
call fcn.00403740
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.0040e720
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c]
call fcn.00403740
mov eax, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00450ba2
mov esp, ebp
pop ebp
ret 4
Function at 0x481a20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0xc]
push eax
push 1
push 0
push 0x496dcc
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x481a6e
jmp 0x481aa3
mov dword [ebp - 8], 4
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0
push 0
push str.ProxyEnable
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x481a9d
jmp 0x481aa3
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0xc], 0
je 0x481aba
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x481ad0
Capabilities:
Get proxy
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4a7740]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x414], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x410], 0
mov dword [ebp - 0x40c], 0
mov al, byte [0x4904bf]
mov byte [ebp - 0x408], al
push 0x3ff
push 0
lea ecx, [ebp - 0x407]
push ecx
call fcn.00453b10
add esp, 0xc
lea edx, [ebp - 0x410]
push edx
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x481b51
jmp 0x481ba5
mov dword [ebp - 0x40c], 0x400
lea eax, [ebp - 0x40c]
push eax
lea ecx, [ebp - 0x408]
push ecx
push 0
push 0
push str.ProxyServer
mov edx, dword [ebp - 0x410]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x481b8c
jmp 0x481ba5
lea eax, [ebp - 0x408]
push eax
mov ecx, dword [ebp + 8]
call fcn.00405520
mov dword [ebp - 0x414], 1
cmp dword [ebp - 0x410], 0
je 0x481bc5
mov ecx, dword [ebp - 0x410]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x410], 0
mov eax, dword [ebp - 0x414]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00450ba2
mov esp, ebp
pop ebp
ret
Function at 0x484ea0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4a7740]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], 0
mov word [ebp - 0x210], 0
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.00453b10
add esp, 0xc
mov ecx, dword [ebp - 0x218]
add ecx, 8
call fcn.0041e8b0
push eax
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push 0x4971d0
push 0x4971d4
push str.recent
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [ebp - 0x210]
push edx
mov ecx, dword [ebp + 8]
call fcn.00401d70
mov eax, dword [ebp - 0x214]
or eax, 1
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00450ba2
mov esp, ebp
pop ebp
ret 4

Function at 0x484f50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x486cf6
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4a7740]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x220], ecx
mov ecx, dword [ebp - 0x220]
call fcn.00481ff0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x220]
add ecx, 4
call fcn.00401d50
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x220]
add ecx, 8
call fcn.00401d50
mov byte [ebp - 4], 2
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x485008
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str.Application_Data
push 0x104
push 0x5c
lea edx, [ebp - 0x21c]
push edx
call fcn.00423c60
add esp, 8
push eax
call fcn.00450f46
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
mov ecx, dword [ebp - 0x220]
add ecx, 4
call fcn.00401df0
push str.kingsoftKisaasServerConfig.dat
mov ecx, dword [ebp - 0x220]
add ecx, 4
call fcn.00401e30
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, dword [ebp - 0x220]
add ecx, 8
call fcn.00401df0
push str.kingsoftKisaaskbq.dat
mov ecx, dword [ebp - 0x220]
add ecx, 8
call fcn.00401e30
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00450ba2
mov esp, ebp
pop ebp
ret

Function at 0x485720
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.0041e8b0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
call fcn.00485080
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret
Function at 0x485750
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4877f0
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x4a7740]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x224], 0
lea eax, [ebp - 0x220]
push eax
mov ecx, dword [ebp - 0x228]
call fcn.00484ea0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x220]
call fcn.00401ed0
movzx ecx, al
test ecx, ecx
je 0x4857ec
push 0x497090
mov ecx, dword [ebp + 8]
call fcn.00401d70
mov edx, dword [ebp - 0x224]
or edx, 1
mov dword [ebp - 0x224], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.00403340
mov eax, dword [ebp + 8]
jmp 0x4858c6
mov word [ebp - 0x21c], 0
push 0x206
push 0
lea eax, [ebp - 0x21a]
push eax
call fcn.00453b10
add esp, 0xc
mov ecx, dword [ebp - 0x228]
add ecx, 4
call fcn.0041e8b0
push eax
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push 0x497094
push 0x497098
lea ecx, [ebp - 0x220]
call fcn.0041e8b0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
movzx edx, word [ebp - 0x21c]
test edx, edx
jne 0x485893
mov ecx, dword [ebp - 0x228]
call fcn.00485080
test eax, eax
je 0x485893
mov ecx, dword [ebp - 0x228]
add ecx, 4
call fcn.0041e8b0
push eax
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x4970a4
push 0x4970a8
lea ecx, [ebp - 0x220]
call fcn.0041e8b0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00401d70
mov edx, dword [ebp - 0x224]
or edx, 1
mov dword [ebp - 0x224], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.00403340
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00450ba2
mov esp, ebp
pop ebp
ret 4
Function at 0x10001000
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
xor ebx, ebx
push edi
test edx, edx
je 0x100010d1
cmp dword [eax], ebx
jle 0x100010d1
cmp dword [esp + 0x3c], ebx
je 0x100010d1
mov ecx, 8
mov esi, edx
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
cmp dword [esp + 0x18], 0x12345678
je 0x10001045
lea eax, [ebx + 2]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov edi, dword [esp + 0x28]
lea esi, [edi + 0x20]
or eax, 0xffffffff
xor ecx, ecx
test esi, esi
jbe 0x1000107b
jmp 0x10001060
movzx ebp, byte [ecx + edx]
xor ebp, eax
and ebp, 0xff
shr eax, 8
xor eax, dword [ebp*4 + 0x10019598]
inc ecx
cmp ecx, esi
jb 0x10001060
cmp eax, dword [edi + edx + 0x20]
je 0x1000108e
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov ecx, dword [esp + 0x3c]
push edi
add edx, 0x20
push edx
push ecx
call sub.MSVCR90.dll_memcpy
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x44]
mov dword [ecx], eax
mov eax, dword [esp + 0x40]
mov dword [edx], edi
mov edx, dword [esp + 0x30]
add esp, 0xc
cmp dword [esp + 0x2c], ebx
mov dword [eax], edx
mov edx, dword [esp + 0x44]
setne cl
mov byte [edx], cl
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x100010e0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
cmp dword [esp + 0x34], 0
push ebx
push ebp
mov ebp, dword [esp + 0x38]
push esi
push edi
jne 0x100010ff
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, dword [ebp]
mov ecx, dword [esp + 0x48]
add eax, 0x24
push 0x10019260
push eax
mov dword [ecx], eax
call fcn.10010d8f
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x100010f2
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], eax
mov eax, dword [edx]
mov edx, dword [ecx]
xor ecx, ecx
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x4c]
cmp byte [edx], cl
mov dword [esp + 0x20], eax
mov eax, dword [ebp]
setne cl
mov dword [esp + 0x28], eax
lea esi, [esp + 0x10]
mov edi, ebx
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 0x12345678
mov dword [esp + 0x2c], ecx
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp]
mov ecx, dword [esp + 0x3c]
push eax
push ecx
lea edx, [ebx + 0x20]
push edx
call sub.MSVCR90.dll_memcpy
mov ebp, dword [ebp]
lea edx, [ebp + 0x20]
add esp, 0xc
or eax, 0xffffffff
xor ecx, ecx
test edx, edx
jbe 0x100011df
jmp 0x100011c0
mov esi, dword [esp + 0x44]
movzx esi, byte [ecx + esi]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x10019598]
inc ecx
cmp ecx, edx
jb 0x100011c0
mov edx, dword [esp + 0x44]
mov dword [ebx + ebp + 0x20], eax
mov eax, dword [esp + 0x48]
mov ecx, dword [eax]
push ecx
push ebx
push edx
call sub.MSVCR90.dll_memcpy
push ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret
Function at 0x10001230
Capabilities:
Connect pipe
Create pipe
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x414
mov eax, dword [0x10019024]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
push esi
push edi
push 0x3ff
lea eax, [esp + 0x1d]
push 0
push eax
mov edi, ecx
mov byte [esp + 0x24], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0
push 0
push 0x400
push 0x400
push 0xff
push 6
push 3
push str..pipe_shipin7_update_pipe_server
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [edi + 0xc], eax
cmp eax, 0xffffffff
jne 0x100012c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.create_named_pipe_failed__error___d
push 5
mov esi, str.SPUPDATE
call fcn.10008cb0
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.10010d80
mov esp, ebp
pop ebp
ret
mov cl, byte [edi + 8]
test cl, cl
jne 0x1000133c
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
push 0x1f4
call esi
mov edx, dword [edi + 0xc]
push 0
push edx
call ebx
test eax, eax
je 0x10001335
push 0x400
lea eax, [esp + 0x1c]
push 0
push eax
call sub.MSVCR90.dll_memset
mov eax, dword [edi + 0xc]
add esp, 0xc
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x400
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov eax, dword [esp + 0x14]
jne 0x10001323
test eax, eax
jbe 0x10001335
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], eax
call fcn.10001360
mov dl, byte [edi + 8]
test dl, dl
je 0x100012d5
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10010d80
mov esp, ebp
pop ebp
ret
Function at 0x10001510
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x4a4
mov eax, dword [0x10019024]
xor eax, esp
mov dword [esp + 0x49c], eax
push ebx
xor ebx, ebx
push ebp
mov ebp, dword [esp + 0x4b0]
mov dword [esp + 0x10], ebx
cmp byte [edi], bl
je 0x10001601
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x10001601
cmp eax, 0xffffffff
je 0x10001601
push 0x3ff
lea eax, [esp + 0xa5]
push ebx
push eax
mov byte [esp + 0xac], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x84
lea ecx, [esp + 0x1d]
push ebx
push ecx
mov dword [esp + 0x14], ebx
mov byte [esp + 0x24], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x84
push ebp
lea edx, [esp + 0x20]
push 0x85
push edx
call dword [sym.imp.MSVCR90.dll_memcpy_s]
push edi
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xb8]
push ecx
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x4d4]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x30]
push ecx
push edx
mov dword [esp + 0x40], 0x84
mov dword [esp + 0x38], ebx
call fcn.100010e0
add esp, 0x2c
test eax, eax
jne 0x10001601
mov ecx, dword [esp + 8]
push ebx
lea eax, [esp + 0x14]
push eax
mov eax, dword [esi + 0xc]
push ecx
lea edx, [esp + 0xac]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov ecx, dword [esp + 0x4a4]
pop ebp
pop ebx
xor ecx, esp
call fcn.10010d80
add esp, 0x4a4
ret 8
Function at 0x10002480
Capabilities:
Print debug messages

Disassembly:
push 0
push str.log4cxx.properties
call dword [sym.imp.hlog.dll_Ordinal_14]
mov al, 1
cmp byte [section.SharedDa], al
jne 0x100024a6
push str.SPUPDATE_Init__DLL
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
or eax, 0xffffffff
ret
push esi
push str.SPUPDATE_Init__n
push 2
mov esi, str.SPUPDATE
mov byte [section.SharedDa], al
call fcn.10008cb0
add esp, 8
xor eax, eax
pop esi
ret