joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40edc0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x5c100c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor bl, bl
call fcn.00426eef
test eax, eax
je 0x40edf4
cmp dword [0x5d60cc], 0
jne 0x40eded
call fcn.00407a30
push str.WnPYRegIme64.exe
jmp 0x40ee07
cmp dword [0x5d60cc], 0
jne 0x40ee02
call fcn.00407a30
push str.WnPYRegIme32.exe
mov ecx, dword [0x5d60cc]
call fcn.0041ae92
push eax
lea eax, [ebp - 0x20c]
push str._s_s
push eax
call fcn.00406c50
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40eebd
lea eax, [ebp - 0x414]
push str._InstallIME
push eax
call fcn.00406c50
add esp, 8
call fcn.00426b49
test eax, eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
jne 0x40ee83
call fcn.00425fb0
add esp, 8
test eax, eax
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415db5
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x61c]
push str.__s___s
push eax
call fcn.00406c50
push 0
push 0
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.00426143
add esp, 0x20
test eax, eax
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415db5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00415db5
mov esp, ebp
pop ebp
ret

Function at 0x40eed0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x5c100c]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00426eef
test eax, eax
je 0x40ef01
cmp dword [0x5d60cc], 0
jne 0x40eefa
call fcn.00407a30
push str.WnPYRegIme64.exe
jmp 0x40ef14
cmp dword [0x5d60cc], 0
jne 0x40ef0f
call fcn.00407a30
push str.WnPYRegIme32.exe
mov ecx, dword [0x5d60cc]
call fcn.0041ae92
push eax
lea eax, [ebp - 0x20c]
push str._s_s
push eax
call fcn.00406c50
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40efae
lea eax, [ebp - 0x414]
push str._InstallIME
push eax
call fcn.00406c50
add esp, 8
call fcn.00426ba0
test eax, eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
je 0x40ef88
call fcn.00425fb0
add esp, 8
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415db5
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x61c]
push str.__s___s
push eax
call fcn.00406c50
push 0
push 0
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.00426143
add esp, 0x20
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.00415db5
mov esp, ebp
pop ebp
ret
Function at 0x40efc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x5c100c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00429bd0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00429bd0
add esp, 0x18
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push str._sctfmon.exe
push eax
call fcn.00406c50
push 0
push 0
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00426143
mov ecx, dword [ebp - 4]
add esp, 0x1c
xor ecx, ebp
mov al, 1
call fcn.00415db5
mov esp, ebp
pop ebp
ret
Function at 0x40f710
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
mov esi, dword [sym.imp.USER32.dll_keybd_event]
cmp al, 1
jne 0x40f737
push 0
push 0
push 0
push 0x14
call esi
push 0
push 2
push 0
push 0x14
call esi
push 0x90
call dword [sym.imp.USER32.dll_GetKeyState]
cmp al, 1
jne 0x40f760
push 0
push 0
push 0
push 0x90
call esi
push 0
push 2
push 0
push 0x90
call esi
mov al, 1
pop esi
ret

Function at 0x4100c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5c100c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [ebp - 0x210]
mov ebx, ecx
lea edi, [ebx + 0xc]
push edi
push dword [edi + 4]
push dword [edi]
call fcn.0040eb90
mov eax, dword [edi]
add esp, 0x10
cmp dword [0x5d60cc], 0
mov dword [edi + 4], eax
jne 0x410102
call fcn.00407a30
mov ecx, dword [0x5d60cc]
call fcn.0041ae92
mov esi, dword [ebx]
mov ecx, eax
mov dword [ebp - 0x210], ecx
cmp esi, dword [ebx + 4]
je 0x410169
nop dword [eax]
cmp dword [esi + 0x14], 8
jb 0x41012a
mov eax, dword [esi]
jmp 0x41012c
mov eax, esi
push eax
push ecx
lea eax, [ebp - 0x20c]
push str._s_s
push eax
call fcn.00406c50
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41015b
push esi
mov ecx, edi
call fcn.004101a0
mov ecx, dword [ebp - 0x210]
add esi, 0x18
cmp esi, dword [ebx + 4]
jne 0x410120
mov ecx, dword [edi + 4]
mov eax, 0x2aaaaaab
sub ecx, dword [edi]
imul ecx
mov ecx, dword [ebp - 4]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.00415db5
mov esp, ebp
pop ebp
ret
Function at 0x4105d0
Capabilities:
Check if file exists
Delete file
Download url
Get common file path
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55894b
mov eax, dword fs:[0]
push eax
sub esp, 0x64c
mov eax, dword [0x5c100c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x1869f
push 0x2710
call fcn.004267b3
add esp, 8
mov dword [ebp - 0x644], 0xf
lea ecx, [ebp - 0x658]
mov dword [ebp - 0x648], 0
mov edi, eax
mov byte [ebp - 0x658], 0
push 0x2b
push str.http:__d.wn51.com_wanneng_repair_repair.dat
call fcn.0040db40
lea eax, [ebp - 0x658]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x640]
push eax
call fcn.0041c9db
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x410665
mov eax, dword [eax]
push edi
push eax
lea eax, [ebp - 0x628]
push str._s__d
push eax
call fcn.00406c50
mov eax, dword [ebp - 0x62c]
add esp, 0x10
cmp eax, 8
jb 0x410699
inc eax
lea ecx, [ebp - 0x640]
push eax
push dword [ebp - 0x640]
call fcn.004073a0
xor eax, eax
mov dword [ebp - 0x62c], 7
lea ecx, [ebp - 0x658]
mov dword [ebp - 0x630], 0
mov word [ebp - 0x640], ax
mov dword [ebp - 4], 0xffffffff
call fcn.0040d610
call fcn.004264a6
lea eax, [ebp - 0x420]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
push str.WnPY
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push str._s_sRepair_d
push eax
call fcn.00406c50
add esp, 0x14
lea eax, [ebp - 0x218]
push 0
push 0
push eax
lea eax, [ebp - 0x628]
push eax
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41072f
xor al, al
jmp 0x410757
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00410850
test al, al
je 0x41072b
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, esi
call fcn.004109c0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00415db5
mov esp, ebp
pop ebp
ret
Function at 0x410780
Capabilities:
Check if file exists
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4107b6
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4107b6
push 0
push 0x80
push 4
push 0
push 1
push bind
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4107bd
xor al, al
pop esi
pop ebp
ret 8
push ebx
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [ebx + 1]
push eax
call fcn.00416179
mov edi, eax
add esp, 4
test edi, edi
jne 0x4107ec
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
xor al, al
pop esi
pop ebp
ret 8
lea eax, [ebx + 1]
push eax
push 0
push edi
call fcn.00429bd0
add esp, 0xc
lea eax, [ebp + 8]
push 0
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x410839
xor ecx, ecx
xor edx, edx
test ebx, ebx
je 0x410839
nop dword [eax]
mov al, byte [ecx + str.c335b80a32136330ebfa2439bf4cbfcb]
xor byte [edx + edi], al
lea eax, [ecx + 1]
xor ecx, ecx
inc edx
cmp eax, 0x20
cmovl ecx, eax
cmp edx, ebx
jb 0x410820
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov al, 1
pop edi
pop ebx
pop esi
pop ebp
ret 8

Function at 0x410a80
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5c100c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x410aa0
mov eax, dword [esi]
jmp 0x410aa2
mov eax, esi
push eax
push 1
push 0x5b66e8
push str.Repair
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 1
sete al
mov byte [esi + 0x30], al
cmp dword [esi + 0x14], 8
jb 0x410ac8
mov eax, dword [esi]
jmp 0x410aca
mov eax, esi
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x5b4864
push str.RepairExeUrl
push str.Repair
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x20c], 0
jne 0x410afa
xor ecx, ecx
jmp 0x410b12
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410b03
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x34]
call fcn.004071b0
cmp dword [esi + 0x14], 8
jb 0x410b2c
mov eax, dword [esi]
jmp 0x410b2e
mov eax, esi
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push str.null
push str.RepairExePath
push str.Repair
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x20c], 0
jne 0x410b5e
xor ecx, ecx
jmp 0x410b76
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410b67
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x4c]
call fcn.004071b0
cmp dword [esi + 0x14], 8
jb 0x410b8e
mov esi, dword [esi]
push esi
call fcn.004260b9
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop esi
call fcn.00415db5
mov esp, ebp
pop ebp
ret
Function at 0x410bb0
Capabilities:
Check if file exists
Download url
Get common file path
Read .ini file
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x5c100c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x1869f
push 0x2710
mov esi, ecx
call fcn.004267b3
lea ecx, [esi + 0x34]
add esp, 8
cmp dword [ecx + 0x14], 8
jb 0x410be3
mov ecx, dword [ecx]
push eax
push ecx
lea eax, [ebp - 0x61c]
push str._s__d
push eax
call fcn.00406c50
add esp, 0x10
call fcn.004264a6
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.WanNeng
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push str._s_sRepair.exe
push eax
call fcn.00406c50
add esp, 0x10
lea eax, [ebp - 0x20c]
push 0
push 0
push eax
lea eax, [ebp - 0x61c]
push eax
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
cmp dword [esi + 0x14], 8
jb 0x410c54
mov eax, dword [esi]
jmp 0x410c56
mov eax, esi
push eax
push 0
push str.DownTimes
push str.DoRepair
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
inc eax
push eax
lea eax, [ebp - 0x824]
push 0x5b471c
push eax
call fcn.00406c50
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x410c89
mov eax, dword [esi]
jmp 0x410c8b
mov eax, esi
push eax
lea eax, [ebp - 0x824]
push eax
push str.DownTimes
push str.DoRepair
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x410cc5
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415db5
mov esp, ebp
pop ebp
ret
cmp word [ebp - 0x20c], 0
jne 0x410cd3
xor ecx, ecx
jmp 0x410cef
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410ce0
sub ecx, edx
sar ecx, 1
push edi
push ecx
lea eax, [ebp - 0x20c]
lea edi, [esi + 0x4c]
push eax
mov ecx, edi
call fcn.004071b0
cmp dword [esi + 0x14], 8
jb 0x410d0a
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x410d12
mov edi, dword [edi]
push esi
push edi
push str.RepairExePath
push str.Repair
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00415db5
mov esp, ebp
pop ebp
ret
Function at 0x412da0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x5c100c]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx + 4]
mov edx, dword [ebp + 8]
or eax, 0x2001f
push esi
push edi
push eax
push edx
push dword [ecx]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.00412cf0
mov esi, eax
test esi, esi
jne 0x412e97
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x100
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x412e69
nop dword [eax]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.00412da0
mov esi, eax
test esi, esi
jne 0x412e97
lea eax, [esp + 0x20]
mov dword [esp + 8], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
je 0x412e30
mov eax, dword [esp + 0xc]
test eax, eax
je 0x412e80
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
push dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], 0
call fcn.00412b40
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x412ea6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.00415db5
mov esp, ebp
pop ebp
ret 4
Function at 0x413310
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x558bc6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x5c100c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x4133bc
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x4133bc
call fcn.00412860
mov esi, eax
jmp 0x4134ac
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4133df
call fcn.00412860
jmp 0x41349f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x4133fd
call fcn.00412860
jmp 0x41349f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x41341e
mov esi, 0x8007000e
jmp 0x4134a1
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00415660
jmp 0x413448
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
jne 0x41345f
mov esi, 0x8007000e
jmp 0x4134a1
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x41347f
call fcn.00412860
jmp 0x41349f
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00414200
mov esi, eax
test edi, edi
je 0x4134ac
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4134d0
lea ecx, [ebp - 0x418]
call fcn.00415780
nop word [eax + eax]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00415db5
mov esp, ebp
pop ebp
ret 0x10
Function at 0x416ef0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x558e03
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5c100c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x5cc600
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ebp - 4], 0
mov dword [ecx], 0x5cc600
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x55abc4
mov byte [ebp - 4], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.00418bc0
mov dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41af82
Capabilities:
Read .ini file

Disassembly:
push 0x82c
mov eax, 0x5592aa
call fcn.00447a0c
mov edi, ecx
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x830], eax
mov eax, dword [ebp + 0x10]
push 0x800
mov dword [ebp - 0x82c], eax
lea eax, [ebp - 0x810]
push ecx
push eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x838], esi
mov dword [ebp - 0x834], ecx
call fcn.00429bd0
lea eax, [edi + 0x84]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x41afdf
mov eax, dword [eax]
push eax
push 0x400
lea eax, [ebp - 0x810]
push eax
push ebx
push dword [ebp - 0x82c]
push dword [ebp - 0x830]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x810]
mov ecx, esi
push eax
call fcn.00406c80
and dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x834], 1
jb 0x41b025
mov eax, dword [esi]
jmp 0x41b027
mov eax, esi
push ebx
push eax
call fcn.004386c9
pop ecx
pop ecx
test eax, eax
jne 0x41b073
cmp byte [edi + 1], 0
lea eax, [ebp - 0x828]
push ebx
push dword [ebp - 0x82c]
mov ecx, edi
push dword [ebp - 0x830]
push eax
je 0x41b057
call fcn.0041ae9e
jmp 0x41b05c
call fcn.0041af58
push eax
mov ecx, esi
call fcn.0040e850
push 0
push 1
lea ecx, [ebp - 0x828]
call fcn.00407400
mov eax, esi
call fcn.004479c7
ret 0x10
Function at 0x41bc8d
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa44
mov eax, dword [0x5c100c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
xor esi, esi
lea eax, [ebp - 0x20c]
push esi
push eax
mov edi, ecx
call fcn.00429bd0
lea eax, [edi + 0x24]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x41bcc6
mov eax, dword [eax]
push 0x5b2dc4
push eax
lea eax, [ebp - 0x20c]
push str._s_s_
push eax
call fcn.00406c50
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41bcfe
lea eax, [ebp - 0x20c]
push eax
call fcn.004260b9
pop ecx
push str.UseVestige.ini
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push str._s_s
push eax
call fcn.00406c50
add esp, 0x10
cmp word [ebp - 0x414], si
jne 0x41bd2b
mov eax, esi
jmp 0x41bd38
lea eax, [ebp - 0x414]
push eax
call fcn.0043872b
pop ecx
push eax
lea eax, [ebp - 0x414]
push eax
lea ecx, [edi + 0x84]
call fcn.004071b0
push str.Cache.ini
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push str._s_s
push eax
call fcn.00406c50
add esp, 0x10
cmp word [ebp - 0x61c], si
jne 0x41bd78
mov eax, esi
jmp 0x41bd85
lea eax, [ebp - 0x61c]
push eax
call fcn.0043872b
pop ecx
push eax
lea eax, [ebp - 0x61c]
push eax
lea ecx, [edi + 0x9c]
call fcn.004071b0
lea eax, [ebp - 0xa44]
push str.ShxlPath
push eax
call fcn.0042306c
pop ecx
pop ecx
cmp dword [eax + 0x14], 8
jb 0x41bdb3
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x824]
push 0x5b4714
push eax
call fcn.00406c50
add esp, 0xc
lea ecx, [ebp - 0xa44]
push esi
push 1
call fcn.00407400
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41bdf4
lea eax, [ebp - 0x824]
push eax
call fcn.004260b9
pop ecx
push str.Cache.ini
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0xa2c]
push str._s_s
push eax
call fcn.00406c50
add esp, 0x10
cmp word [ebp - 0xa2c], si
je 0x41be2c
lea eax, [ebp - 0xa2c]
push eax
call fcn.0043872b
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0xa2c]
push eax
lea ecx, [edi + 0xb4]
call fcn.004071b0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00415db5
mov esp, ebp
pop ebp
ret
Function at 0x41c28d
Capabilities:
Read .ini file

Disassembly:
push 0x23c
mov eax, 0x559347
call fcn.00447a0c
mov ebx, ecx
call fcn.0041ae92
lea edi, [ebx + 0xcc]
push eax
mov ecx, edi
call fcn.004072b0
mov esi, 0x5b4898
push esi
call fcn.0043872b
pop ecx
push eax
push esi
mov ecx, edi
call fcn.004065c0
push str.guanf
push str.Spreader
push str.AppInfo
lea eax, [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.0041af2e
and dword [ebp - 4], 0
lea esi, [ebx + 0xe4]
lea eax, [ebp - 0x248]
cmp esi, eax
je 0x41c303
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00406da0
push str.guanf
mov ecx, esi
call fcn.00408be0
test eax, eax
jne 0x41c37f
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00429bd0
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x41c330
mov edi, dword [edi]
push edi
push 0x104
lea eax, [ebp - 0x218]
mov edi, str.guanf
push eax
push edi
push str.Spreader
push str.AppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x218], 0
jne 0x41c361
xor eax, eax
jmp 0x41c36e
lea eax, [ebp - 0x218]
push eax
call fcn.0043872b
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.004071b0
jmp 0x41c384
mov edi, str.guanf
push edi
mov ecx, esi
call fcn.00408be0
test eax, eax
jne 0x41c447
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00429bd0
add esp, 0xc
lea eax, [ebx + 0x54]
lea ecx, [ebp - 0x230]
push eax
call fcn.004082b0
push 0x5b4898
mov byte [ebp - 4], 1
call fcn.0043872b
pop ecx
push eax
push 0x5b4898
lea ecx, [ebp - 0x230]
call fcn.004065c0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push edi
push str.Spreader
push str.AppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x218], 0
jne 0x41c418
xor eax, eax
jmp 0x41c425
lea eax, [ebp - 0x218]
push eax
call fcn.0043872b
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.004071b0
push 0
push 1
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0
call fcn.00407400
push edi
mov ecx, esi
call fcn.00408be0
test eax, eax
jne 0x41c483
push edi
push str.Spreader
push str.AppInfo
lea eax, [ebp - 0x230]
mov ecx, ebx
push eax
call fcn.0041af82
push eax
mov ecx, esi
call fcn.0040e850
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.00407400
push 0
push 1
lea ecx, [ebp - 0x248]
call fcn.00407400
call fcn.004479c7
ret

Function at 0x421999
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
push esi
push 8
mov ecx, edx
pop esi
mov eax, ecx
shr ecx, 1
and eax, 1
dec eax
not eax
and eax, 0xedb88320
xor ecx, eax
sub esi, 1
jne 0x4219a1
mov dword [edx*4 + 0x5cc6b0], ecx
inc edx
cmp edx, 0x100
jb 0x42199c
mov esi, 0x800
jmp 0x4219ea
mov ecx, dword [edx*4 + 0x5cc2b0]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x5cc6b0]
mov dword [edx*4 + 0x5cc6b0], ecx
inc edx
cmp edx, esi
jb 0x4219ce
mov dword [0x5ce6b0], 0x41d9e1
call fcn.00421dac
mov ecx, dword [0x5ce6b0]
test eax, eax
mov edx, 0x41da7a
cmove ecx, edx
mov dword [0x5ce6b0], ecx
pop esi
ret