joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402f10
Capabilities:
Create process on windows
Get common file path
Self delete

Disassembly:
sub esp, 0xd88
mov eax, dword [0x491830]
xor eax, esp
mov dword [esp + 0xd80], eax
push esi
push 0x44
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00451520
add esp, 0xc
lea edx, [esp + 0x168]
push edx
xor ecx, ecx
push 0x104
mov dword [esp + 0x20], 0x44
mov dword [esp + 0x4c], 1
mov word [esp + 0x50], cx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x168]
push eax
push 0
push str.DelSelf
mov ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push str..bat
lea edx, [esp + 0x16c]
push 0x104
push edx
call fcn.0044f6ae
add esp, 0xc
push 0x104
lea eax, [esp + 0x64]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x403100
lea ecx, [esp + 0x60]
push 0x5c
push ecx
call fcn.0044f730
add esp, 8
test eax, eax
je 0x402fd8
lea edx, [esp + 0x60]
sub eax, edx
push eax
mov eax, edx
push eax
push 0x104
lea ecx, [esp + 0x27c]
push ecx
jmp 0x402ffc
lea eax, [esp + 0x60]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402fe0
sub eax, edx
push eax
lea edx, [esp + 0x64]
push edx
push 0x104
lea eax, [esp + 0x27c]
push eax
call fcn.0044f75d
add esp, 0x10
push 0x104
lea ecx, [esp + 0x37c]
push ecx
push 0xffffffffffffffff
lea edx, [esp + 0x27c]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [esp + 0x378]
push eax
call fcn.0040f2a0
add esp, 4
cmp eax, 1
push 0
jle 0x40306a
lea ecx, [esp + 0x16c]
push ecx
lea edx, [esp + 0x68]
push edx
mov eax, edx
push eax
push 1
push str.cd_r_n:delexe_r_nping__n__d_127.0.0.1_r_ndel___s__r_nif_exist___s__goto_:delexe_r_ndel___s__r_n
lea ecx, [esp + 0x598]
push 0x800
push ecx
call fcn.0044f812
add esp, 0x20
jmp 0x4030a1
lea edx, [esp + 0x16c]
push edx
lea eax, [esp + 0x278]
push eax
mov ecx, eax
push ecx
lea edx, [esp + 0x70]
push edx
mov eax, edx
push eax
push 1
push str.cd_r_n:delexe_r_nping__n__d_127.0.0.1_r_ndel___s__r_nif_exist___s__goto_:delexe_r_ndel___s___Q__F__A_r_nrd___s__r_ndel___s__r_n
lea ecx, [esp + 0x5a0]
push 0x800
push ecx
call fcn.0044f812
add esp, 0x28
lea edx, [esp + 0x580]
push edx
lea eax, [esp + 0x16c]
call fcn.00403120
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x188]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x403100
mov eax, dword [esp + 0xc]
push 0xfffffffffffffff1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call esi
mov ecx, dword [esp + 0xd84]
pop esi
xor ecx, esp
call fcn.0044e3af
add esp, 0xd88
ret
Function at 0x403120
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
push 0
push 0
push 4
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x403146
or eax, eax
pop esi
pop ecx
ret 4
mov eax, dword [esp + 0xc]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403150
push ebx
push ebp
push edi
push 2
push 0
push 0
sub eax, edx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
jne 0x403197
call ebp
mov ebx, eax
test ebx, ebx
je 0x403197
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop ebp
pop ebx
or eax, 0xffffffff
pop esi
pop ecx
ret 4
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x14]
push ecx
push edi
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4031cc
call ebp
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop ebp
pop ebx
or eax, 0xffffffff
pop esi
pop ecx
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret 4

Function at 0x4033e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x38
push esi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0
push 0x20019
push 0
push 0
push 0
push str.Software4399GameLoginZt58501
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4034ae
mov dword [esp + 0x1a], eax
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov word [esp + 0x26], ax
xor edx, edx
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x1c]
push ecx
mov word [esp + 0x20], dx
lea edx, [esp + 0x18]
push edx
push 0
push 0x478de0
push eax
mov dword [esp + 0x24], 0x10
mov dword [esp + 0x28], 3
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov ax, word [esp + 0x18]
cmp ax, word [esp + 0x28]
jne 0x403496
mov cx, word [esp + 0x1a]
cmp cx, word [esp + 0x2a]
jne 0x403496
mov dx, word [esp + 0x1e]
cmp dx, word [esp + 0x2e]
je 0x4034ae
movzx esi, word [esp + 0x2c]
call fcn.004034c0
test eax, eax
jne 0x4034ae
mov eax, 1
pop esi
add esp, 0x38
ret
xor eax, eax
pop esi
add esp, 0x38
ret
Function at 0x4034c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0x20019
push 0
push 0
push 0
push str.Software4399GameLoginZt58501
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4034f4
xor eax, eax
add esp, 0x14
ret
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push str.DisableDays
push edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 4
mov dword [esp + 0x24], 3
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 4]
test eax, eax
je 0x4034ee
movzx ecx, al
cmp esi, ecx
je 0x40355c
mov edx, eax
shr edx, 8
movzx ecx, dl
cmp esi, ecx
je 0x40355c
shr eax, 0x10
movzx edx, al
cmp esi, edx
jne 0x4034ee
mov eax, 1
add esp, 0x14
ret
Function at 0x403b50
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0x61c
mov eax, dword [0x491830]
xor eax, esp
mov dword [esp + 0x618], eax
push ebx
push ebp
mov ebp, dword [esp + 0x628]
push esi
push edi
mov ebx, str.NewZt58501.exe
lea edi, [esp + 0x10]
call fcn.0040f1f0
lea esi, [ebp + 0xa4]
add ebp, 0xb28
push ebp
lea eax, [esi + 0x45c]
push 0x200
push eax
call fcn.0044e64f
mov ecx, edi
push ecx
lea edx, [esi + 0x85c]
push 0x104
push edx
call fcn.0044e64f
mov eax, dword [esi]
mov edx, dword [eax + 0x14c]
add esp, 0x18
mov ecx, esi
call edx
cmp eax, 1
je 0x403bd4
push 4
push 0
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
jmp 0x403c2e
mov ebx, str.OldZt58501.exe
lea edi, [esp + 0x420]
call fcn.0040f1f0
push 0x104
lea ecx, [esp + 0x21c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 1
mov edx, edi
push edx
lea eax, [esp + 0x220]
push eax
call esi
push 1
lea ecx, [esp + 0x21c]
push ecx
lea edx, [esp + 0x18]
push edx
call esi
push 4
push 0
mov eax, edi
push eax
call esi
mov eax, 1
mov ecx, dword [esp + 0x628]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044e3af
add esp, 0x61c
ret 4

Function at 0x403c50
Capabilities:
Set registry value

Disassembly:
sub esp, 0x1c
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push str.Software4399GameLoginZt58501
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x403c84
xor eax, eax
add esp, 0x1c
ret
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov ecx, dword [esp]
push 0x10
lea eax, [esp + 0xc]
push eax
push 3
push 0
push 0x478de0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0x1c
ret

Function at 0x403cc0
Capabilities:
Create thread

Disassembly:
sub esp, 0x14
lea ecx, [esp + 4]
push ecx
push 0
lea edx, [esp + 0x10]
push edx
push 0x403d10
push 0
push 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [esi + 0xf28]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0xf28]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, 1
add esp, 0x14
ret
Function at 0x4044c0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x270
mov eax, dword [0x491830]
xor eax, esp
mov dword [esp + 0x268], eax
push esi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0x6a]
push ecx
mov word [esp + 0x6c], ax
call fcn.00451520
add esp, 0xc
test esi, esi
jne 0x404508
push 0x104
lea edx, [esp + 0x64]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
jmp 0x40451b
push esi
lea eax, [esp + 0x64]
push 0x104
push eax
call fcn.0044e64f
add esp, 0xc
push 0x44
lea ecx, [esp + 0x1c]
push 0
push ecx
call fcn.00451520
add esp, 0xc
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0x40
push 0
push 0
mov edx, 1
mov word [esp + 0x64], dx
push 0
lea edx, [esp + 0x80]
push edx
push 0
mov dword [esp + 0x6c], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40457c
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
mov ecx, dword [esp + 0x26c]
pop esi
xor ecx, esp
call fcn.0044e3af
add esp, 0x270
ret

Function at 0x4045a0
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x4045c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret

Function at 0x4069d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4069e9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406a24
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x406a20
lea ebx, [ebx]
cmp esi, eax
jae 0x406a24
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x406a10
cmp esi, eax
jb 0x406a2a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x407660
Capabilities:
Get graphical window text
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
push edi
mov esi, ecx
call fcn.00412b00
mov eax, dword [esi + 0x3d8]
mov ecx, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 1
push 0x80
push ecx
call edi
mov edx, dword [esi + 0x3d8]
mov eax, dword [esi + 0x20]
push edx
push 0
push 0x80
push eax
call edi
mov ecx, dword [0x4969b4]
push 0
push ecx
push 0x4072a0
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x496674], eax
lea eax, [esi + 0xe64]
push eax
mov dword [eax], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edi, esi
call fcn.00407710
call fcn.00407c40
mov ecx, esi
call fcn.00407b30
mov edx, dword [esi + 0x20]
push 0
push 0xea60
push 8
push edx
call dword [sym.imp.USER32.dll_SetTimer]
call fcn.0040bd30
mov dword [esi + 0x106c], eax
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407c40
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x2f8
mov eax, dword [0x491830]
xor eax, esp
mov dword [esp + 0x2f0], eax
push edi
xor eax, eax
push 0x23e
push eax
lea ecx, [esp + 0xba]
push ecx
mov word [esp + 0xbc], ax
call fcn.00451520
xor edx, edx
push 0x3e
push edx
lea eax, [esp + 0x86]
push eax
mov word [esp + 0x88], dx
call fcn.00451520
add esp, 0x18
xor eax, eax
push 0x104
lea edx, [esp + 0xb4]
push edx
xor ecx, ecx
push eax
mov word [esp + 0x6c], cx
mov dword [esp + 0x6e], eax
mov dword [esp + 0x72], eax
mov dword [esp + 0x76], eax
mov word [esp + 0x7a], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x4795e8
lea eax, [esp + 0xb4]
push 0x120
push eax
call fcn.0044e6be
mov edx, dword [esi + 0x20]
push 0xa
push 0x20
lea ecx, [esp + 0x84]
push ecx
push edx
call fcn.0045039a
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0xd0]
push 0x120
push ecx
call fcn.0044e6be
mov eax, dword [esi + 0xf88]
push 0xa
push 8
lea edx, [esp + 0x90]
push edx
push eax
call fcn.0045039a
push 0x4795fc
lea ecx, [esp + 0xec]
push 0x120
push ecx
call fcn.0044e6be
add esp, 0x44
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0xb4]
push 0x120
push eax
call fcn.0044e6be
push 0x44
lea ecx, [esp + 0x28]
push 0
push ecx
call fcn.00451520
add esp, 0x18
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
mov edx, 1
push 0
mov dword [esp + 0x54], 1
mov word [esp + 0x58], dx
push 0x40
push 0
push 0
push 0
lea edx, [esp + 0xd0]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x407db9
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esi + 0xf7c]
push ecx
call edi
mov edx, dword [esp + 8]
mov dword [esi + 0xf7c], edx
mov ecx, dword [esp + 0x2f4]
pop edi
xor ecx, esp
call fcn.0044e3af
add esp, 0x2f8
ret

Function at 0x407dd0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x2a8
mov eax, dword [0x491830]
xor eax, esp
mov dword [esp + 0x2a0], eax
push esi
xor eax, eax
push 0x23e
push eax
lea ecx, [esp + 0x6a]
push ecx
mov word [esp + 0x6c], ax
call fcn.00451520
add esp, 0xc
push 0x104
lea edx, [esp + 0x64]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str.__update
lea eax, [esp + 0x64]
push 0x120
push eax
call fcn.0044e6be
push 0x44
lea ecx, [esp + 0x28]
push 0
push ecx
call fcn.00451520
add esp, 0x18
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0x40
push 0
push 0
mov edx, 1
mov word [esp + 0x64], dx
push 0
lea edx, [esp + 0x80]
push edx
push 0
mov dword [esp + 0x6c], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x407e86
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
mov ecx, dword [esp + 0x2a4]
pop esi
xor ecx, esp
call fcn.0044e3af
add esp, 0x2a8
ret
Function at 0x40bd30
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x234
mov eax, dword [0x491830]
xor eax, esp
mov dword [esp + 0x230], eax
mov eax, dword [str.InstallTag]
mov ecx, dword [0x478a0c]
mov edx, dword [0x478a10]
mov dword [esp + 0x10], eax
mov eax, dword [0x478a14]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x478a18]
mov dword [esp + 0x1c], eax
xor eax, eax
push 0x206
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], edx
mov dx, word [0x478a1c]
push eax
lea ecx, [esp + 0x32]
push ecx
mov word [esp + 0x30], dx
mov dword [esp + 0xc], 0x31
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x34], ax
call fcn.00451520
add esp, 0xc
lea edx, [esp + 0x28]
push edx
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x478a24
lea eax, [esp + 0x2c]
push 0x104
push eax
call fcn.0044e6be
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
push 8
lea edx, [esp + 8]
push edx
push 0x478a20
lea eax, [esp + 0x20]
push eax
push str.Zt58501
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, 0x31
xor eax, eax
cmp cx, word [esp]
mov ecx, dword [esp + 0x230]
sete al
xor ecx, esp
call fcn.0044e3af
add esp, 0x234
ret

Function at 0x40ee00
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push esi
mov esi, eax
test esi, esi
je 0x40eebc
xor eax, eax
cmp ax, word [esi]
je 0x40eebc
push ebp
push str.FLASH
push 0xc1
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebp, eax
test ebp, ebp
jne 0x40ee33
pop ebp
pop esi
pop ecx
ret
push ebx
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x40ee48
pop ebx
pop ebp
pop esi
pop ecx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x40ee65
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop ebx
pop ebp
xor eax, eax
pop esi
pop ecx
ret
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40eea3
push ebp
push 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop ebx
pop ebp
mov eax, 1
pop esi
pop ecx
ret
xor eax, eax
pop esi
pop ecx
ret
Function at 0x40f2a0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x66c
mov eax, dword [0x491830]
xor eax, esp
mov dword [esp + 0x668], eax
push ebp
push esi
mov esi, dword [esp + 0x678]
push edi
test esi, esi
je 0x40f4fe
xor eax, eax
cmp ax, word [esi]
je 0x40f4fe
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x26a]
push edx
xor edi, edi
mov word [esp + 0x26c], cx
call fcn.00451520
add esp, 0xc
push 0x250
lea eax, [esp + 0x14]
push edi
push eax
call fcn.00451520
add esp, 0xc
push esi
lea ecx, [esp + 0x264]
push 0x104
push ecx
call fcn.0044e64f
lea eax, [esp + 0x26c]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f326
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x25e], 0x5c
je 0x40f35a
push 0x47a28c
lea edx, [esp + 0x264]
push 0x104
push edx
call fcn.0044e6be
add esp, 0xc
push 0x47a290
lea eax, [esp + 0x264]
push 0x104
push eax
call fcn.0044e6be
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x264]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40f3ab
mov eax, 1
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.0044e3af
add esp, 0x66c
ret
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ecx, 0x478ddc
lea eax, [esp + 0x3c]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40f3e6
test dx, dx
je 0x40f3e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40f3e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x40f3c0
xor eax, eax
jmp 0x40f3eb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40f4cd
mov ecx, 0x47a294
lea eax, [esp + 0x3c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40f426
test dx, dx
je 0x40f422
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40f426
add eax, 4
add ecx, 4
test dx, dx
jne 0x40f400
xor eax, eax
jmp 0x40f42b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40f4cd
test byte [esp + 0x10], 0x10
je 0x40f4cc
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x472]
push ecx
mov word [esp + 0x474], ax
call fcn.00451520
add esp, 0xc
lea edx, [esp + 0x260]
push edx
lea eax, [esp + 0x46c]
push 0x104
push eax
call fcn.0044e64f
lea eax, [esp + 0x474]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f485
sub eax, edx
sar eax, 1
lea edx, [esp + 0x3c]
xor ecx, ecx
push edx
mov word [esp + eax*2 + 0x46a], cx
lea eax, [esp + 0x46c]
push 0x104
push eax
call fcn.0044e6be
lea ecx, [esp + 0x474]
add esp, 0xc
push ecx
call fcn.0040f2a0
add esp, 4
add edi, eax
jmp 0x40f4cd
inc edi
lea edx, [esp + 0x10]
push edx
push esi
call ebp
test eax, eax
jne 0x40f3b1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.0044e3af
add esp, 0x66c
ret
mov ecx, dword [esp + 0x674]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.0044e3af
add esp, 0x66c
ret
Function at 0x40f520
Capabilities:
Delete internet cache
Enumerate internet cache
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x491830]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push edi
mov edi, dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryW]
lea eax, [esp + 8]
push eax
push 0
push 0
mov dword [esp + 0x14], 0
call edi
mov eax, dword [esp + 8]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00421785
add esp, 4
mov esi, eax
lea eax, [esp + 8]
push eax
push esi
push 0
call edi
mov edi, eax
test edi, edi
je 0x40f5dd
push ebp
mov ebp, dword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
test dword [esi + 0xc], 0x100000
jne 0x40f598
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
lea edx, [esp + 0xc]
push edx
push 0
push edi
mov dword [esp + 0x18], 0
call ebp
push esi
call fcn.00421790
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00421785
add esp, 8
mov esi, eax
lea eax, [esp + 0xc]
push eax
push esi
push edi
call ebp
test eax, eax
jne 0x40f585
pop ebp
test esi, esi
je 0x40f5ea
push esi
call fcn.00421790
add esp, 4
push 0
push 0x20
lea ecx, [esp + 0x14]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
pop edi
pop esi
test eax, eax
je 0x40f623
lea edx, [esp + 4]
push edx
call fcn.0040eed0
add esp, 4
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0044e3af
add esp, 0x210
ret
mov ecx, dword [esp + 0x20c]
xor ecx, esp
xor eax, eax
call fcn.0044e3af
add esp, 0x210
ret

Function at 0x40f640
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings5.0CacheContent
push reloc.DSOUND.dll_DirectSoundCreate
mov dword [esp + 0x18], 0x100000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40f670
xor eax, eax
add esp, 8
ret
mov edx, dword [esp]
push 4
lea ecx, [esp + 8]
push ecx
push 4
push 0
push str.CacheLimit
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40f66a
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
sbb eax, eax
inc eax
add esp, 8
ret
Function at 0x40f6b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x491830]
xor eax, esp
mov dword [esp + 0x210], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00451520
add esp, 0xc
lea edx, [esp]
push edx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x40f72a
lea eax, [esp + 4]
push eax
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x40f71f
mov edx, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov eax, dword [esp]
mov edx, dword [esp + 4]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [esp]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push str.MacromediaFlash_PlayerSharedObjects
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.0044e6be
lea ecx, [esp + 0x14]
push ecx
call fcn.0040eed0
mov ecx, dword [esp + 0x220]
add esp, 0x10
xor ecx, esp
call fcn.0044e3af
add esp, 0x214
ret

Function at 0x410450
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x491830]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x114
lea eax, [esp + 4]
push 0
push eax
call fcn.00451520
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 6
mov ecx, dword [esp + 0x114]
sbb eax, eax
xor ecx, esp
inc eax
call fcn.0044e3af
add esp, 0x118
ret