joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406b20
Capabilities:
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov eax, dword [ebp + 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x210], 0xffffffff
je 0x406b5e
mov edx, dword [ebp + 0x20c]
mov eax, dword [edx + 0x48]
lea esi, [ebp + 0x20c]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x4c]
mov ecx, esi
call eax
mov esi, dword [ebp + 0xe0]
cmp esi, dword [ebp + 0xe4]
lea edi, [ebp + 0xdc]
jbe 0x406b77
call fcn.0043aa9c
mov ebx, dword [edi + 8]
cmp dword [edi + 4], ebx
jbe 0x406b84
call fcn.0043aa9c
cmp edi, edi
je 0x406b8d
call fcn.0043aa9c
cmp esi, ebx
je 0x406bd1
cmp esi, dword [edi + 8]
jb 0x406b9b
call fcn.0043aa9c
mov ecx, dword [esi]
push 0x3e8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x406bc2
cmp esi, dword [edi + 8]
jb 0x406bb7
call fcn.0043aa9c
mov edx, dword [esi]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp esi, dword [edi + 8]
jb 0x406bcc
call fcn.0043aa9c
add esi, 4
jmp 0x406b77
mov eax, dword [ebp + 0x224]
test eax, eax
je 0x406be1
push eax
call sub.gdiplus.dll_GdiplusShutdown
push 0
mov dword [ebp + 0x224], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, ebp
call fcn.004244cd
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406ca0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push esi
push edi
call fcn.0042767b
mov esi, dword [eax + 0xc]
movzx eax, word [esp + 0x10]
push 0x45e424
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x406cc9
pop edi
pop esi
pop ecx
ret 8
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x406ce9
pop ebx
pop edi
pop esi
pop ecx
ret 8
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push esi
push eax
call fcn.0043b260
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebx, dword [esp + 0xc]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x406d40
lea eax, [esi + 4]
push eax
push ebx
mov dword [esi], vtable.Gdiplus::Image.0
mov dword [eax], 0
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [esi + 8], eax
jmp 0x406d42
xor esi, esi
mov edx, dword [esp + 0x18]
push edi
mov dword [edx], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop ebx
pop edi
mov eax, 1
pop esi
pop ecx
ret 8
Function at 0x40ada0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4552d1
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x46d750]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
mov dword [esp + 0x10], 0
mov ebp, 1
mov dword [esp + 0x1c], ebp
call fcn.00423381
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40adf3
push 0x80004005
call fcn.00402160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov edi, dword [0x471c24]
mov ecx, ebp
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
mov dword [esp + 0x10], ebp
jge 0x40ae28
push 0x104
mov ecx, esi
call fcn.004021e0
mov eax, dword [esi]
push edi
mov edi, dword [esp + 0x2c]
push 0x104
push eax
push 0x45f004
push edi
push 0x45f800
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [esi]
test ecx, ecx
jne 0x40ae50
xor eax, eax
jmp 0x40ae66
mov eax, ecx
lea ebp, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40ae55
sub eax, ebp
sar eax, 1
js 0x40aeac
cmp eax, dword [ecx - 8]
jg 0x40aeac
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
mov word [ecx + eax*2], 0
lea eax, [edi - 0x10]
mov byte [esp + 0x1c], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ae97
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret
push 0x80070057
call fcn.00402160
int3
Function at 0x40bac0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x234
mov eax, dword [0x46d750]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
lea eax, [esp + 8]
push eax
push ebx
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x40bb3b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x23c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bcbb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00438dc7
add esp, 0x234
ret
push ebp
push esi
push edi
lea ecx, [esp + 0x14]
push ecx
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
mov edi, dword [esp + 0x248]
je 0x40bc95
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, edi
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x14]
call fcn.00402310
mov eax, dword [esp + 0x10]
mov esi, dword [eax - 0xc]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, esi
or ecx, edx
jge 0x40bb94
push esi
lea ecx, [esp + 0x14]
call fcn.004021e0
mov eax, dword [esp + 0x10]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.0043a95f
add esp, 8
test esi, esi
jl 0x40bcd1
mov eax, dword [esp + 0x10]
cmp esi, dword [eax - 8]
jg 0x40bcd1
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0x10]
mov word [edx + esi*2], 0
mov esi, dword [edi - 0xc]
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, dword [edi - 4]
sub ecx, esi
or eax, ecx
jge 0x40bbeb
push esi
lea ecx, [esp + 0x24c]
call fcn.004021e0
mov edi, dword [esp + 0x248]
lea edx, [esi + 1]
push edx
push edi
call fcn.0043a95f
add esp, 8
test esi, esi
jl 0x40bcd1
cmp esi, dword [edi - 8]
jg 0x40bcd1
mov dword [edi - 0xc], esi
mov word [edi + esi*2], 0
mov eax, dword [esp + 0x10]
mov ecx, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40bc3e
test dx, dx
je 0x40bc3a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40bc3e
add eax, 4
add ecx, 4
test dx, dx
jne 0x40bc18
xor eax, eax
jmp 0x40bc43
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40bc62
mov eax, dword [esp + 0x1c]
push eax
push 0
push 0x1f0fff
call ebp
test eax, eax
je 0x40bc62
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bc82
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40bb60
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bcb8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x234]
pop ebx
xor ecx, esp
call fcn.00438dc7
add esp, 0x234
ret
push 0x80070057
call fcn.00402160
int3
Function at 0x40bfe0
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop esi
jg 0x40c009
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
ret
Function at 0x40cf00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x46d750]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [0x46eaf4]
mov edi, dword [ebp + 8]
push edi
mov ebx, eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40cf92
lea eax, [ebp - 0xc]
push str._RegDLL__Source_file_not_found:
push eax
lea ecx, [ebp + 8]
call fcn.00401eb0
mov edi, dword [eax]
xor esi, esi
add esp, 8
cmp edi, esi
jne 0x40cf4a
mov dword [ebp - 8], esi
jmp 0x40cf78
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x40cf60
mov dword [ebp - 8], esi
jmp 0x40cf78
lea esi, [eax + eax]
mov eax, esi
call fcn.00440090
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.00408150
mov dword [ebp - 8], eax
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x18]
call fcn.0043920e
push 0x467390
lea edx, [ebp - 0x18]
push edx
call fcn.0043b69a
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40cfb8
push str.DllRegisterServer
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40cfb1
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cfd4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438dc7
mov esp, ebp
pop ebp
ret
Function at 0x40db00
Capabilities:
Check if file exists
Create process on windows
Print debug messages

Disassembly:
push ecx
push esi
call dword [0x46eaf4]
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40db58
lea eax, [esp + 4]
push str._PinTaskBar__Source_link_not_exists:
push eax
lea ecx, [esp + 0x14]
call fcn.00401eb0
mov ecx, dword [eax]
add esp, 8
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40db75
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40db75
cmp dword [0x471c64], 6
jb 0x40db75
push 0
push 0
push 0
push esi
push str.taskbarpin
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop esi
jg 0x40db92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop ecx
ret
Function at 0x4104d0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x218
mov eax, dword [0x46d750]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
mov ebx, dword [esp + 0x224]
test ebx, ebx
push esi
mov esi, dword [esp + 0x224]
mov dword [esp + 0x10], esi
je 0x4105d3
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4105d3
lea eax, [esp + 8]
push eax
push 0x10008
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4105d8
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov eax, dword [esp + 0xc]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0
push eax
mov dword [esp + 0x30], 0x104
call edi
mov esi, eax
cmp esi, 0x103
je 0x4105a0
test esi, esi
jne 0x4105ae
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.004104d0
mov esi, eax
add esp, 8
test esi, esi
je 0x410532
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.00438dc7
add esp, 0x218
ret
mov eax, dword [esp + 0x14]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.00438dc7
add esp, 0x218
ret
mov eax, 0x3f2
mov ecx, dword [esp + 0x21c]
pop esi
pop ebx
xor ecx, esp
call fcn.00438dc7
add esp, 0x218
ret
Function at 0x410e20
Capabilities:
Set registry value

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebx
call fcn.0043a674
add esp, 4
cmp eax, 0xa
mov dword [esp + 4], eax
jb 0x410f1f
call fcn.00423381
test eax, eax
jne 0x410e4f
push 0x80004005
call fcn.00402160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
push edi
call eax
lea ecx, [esp + 0x10]
push ecx
mov edi, eax
add edi, 0x10
cmp dword [0x471c64], 6
push 0xf003f
push 0
jae 0x410ec9
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x410f02
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea edx, [esp + 0x10]
push edx
push 4
push eax
mov eax, dword [esp + 0x24]
push str.MaxConnectionsPerServer
push eax
call esi
mov edx, dword [esp + 0x14]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push 0
push str.MaxConnectionsPer1_0Server
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
jmp 0x410f02
push str.SOFTWAREMicrosoftInternet_ExplorerMAINFeatureControlFEATURE_MAXCONNECTIONSPER1_0SERVER
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x410f02
push 4
lea edx, [esp + 0xc]
push edx
push 4
push eax
mov eax, dword [esp + 0x20]
push str.explorer.exe
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
pop edi
jg 0x410f1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410f3b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop ebx
pop ecx
ret
Function at 0x411c60
Capabilities:
Check if file exists
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x46d750]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [0x46eaf4]
cmp dword [0x471c64], 6
mov ebx, eax
jae 0x411c9c
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x411d42
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x411cbf
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x411d42
lea ecx, [ebp - 8]
push ecx
push 0xf003f
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x411d32
test edi, edi
mov dword [ebp - 0xc], 1
je 0x411d13
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x411cfe
xor eax, eax
jmp 0x411d13
lea esi, [eax + eax]
mov eax, esi
call fcn.00440090
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.00408150
push 4
lea edx, [ebp - 0xc]
push edx
push 4
push 0
push eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411d4e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438dc7
mov esp, ebp
pop ebp
ret
Function at 0x412510
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x455d02
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x46d750]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
call fcn.00423381
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x412552
push 0x80004005
call fcn.00402160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 4], eax
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x4148c0
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi]
test esi, esi
je 0x414922
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
mov dword [edi], 0
lea esp, [esp]
cmp esi, 0x400000
mov eax, 0x400000
ja 0x4148ef
mov eax, esi
mov edx, dword [ebp]
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
push ebx
push edx
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x1c]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x414927
test ecx, ecx
je 0x414920
test esi, esi
ja 0x4148e0
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
ret
pop ebp
pop ebx
pop edi
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x414940
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi]
test esi, esi
je 0x4149a2
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
mov dword [edi], 0
lea esp, [esp]
cmp esi, 0x400000
mov eax, 0x400000
ja 0x41496f
mov eax, esi
mov edx, dword [ebp]
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
push ebx
push edx
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x1c]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x4149a7
test ecx, ecx
je 0x4149a0
test esi, esi
ja 0x414960
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
ret
pop ebp
pop ebx
pop edi
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x414d10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x471da0], ecx
add edx, 1
cmp edx, 0x100
jl 0x414d12
cmp edx, 0x800
jae 0x414dfb
mov edi, edi
mov eax, dword [edx*4 + 0x4719a0]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x471da0]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x471d9c], eax
jb 0x414dd0
mov dword [0x46ee40], 0x417340
call fcn.00417510
test eax, eax
jne 0x414e18
mov dword [0x46ee40], 0x4173f0
ret
Function at 0x41b390
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
mov ecx, dword [esp + 0x14]
push ebp
mov ebp, dword [ecx]
mov ecx, dword [esp + 0x10]
xor eax, eax
and ebp, 7
cmp ecx, 5
jae 0x41b3a9
pop ebp
pop ecx
ret
mov edx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x1c]
add esi, 5
lea edx, [edx + ecx - 4]
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x10], edx
jmp 0x41b3d0
mov ecx, dword [esp + 0x18]
lea edi, [eax + ecx]
cmp edi, edx
jae 0x41b3ef
jmp 0x41b3e0
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x41b3ef
add edi, 1
cmp edi, edx
jb 0x41b3e0
mov eax, edi
sub eax, ecx
mov ecx, eax
sub ecx, dword [esp + 0x1c]
cmp edi, edx
jae 0x41b505
cmp ecx, 3
jbe 0x41b425
xor ebp, ebp
mov cl, byte [edi + 4]
test cl, cl
mov dword [esp + 0x1c], eax
je 0x41b463
cmp cl, 0xff
je 0x41b463
and ebp, 3
add ebp, ebp
or ebp, 1
add eax, 1
jmp 0x41b3d0
add ecx, 0xffffffff
shl ebp, cl
and ebp, 7
je 0x41b408
movzx ecx, byte [ebp + 0x457834]
mov ebx, edi
sub ebx, ecx
cmp byte [ebp + 0x45782c], 0
mov cl, byte [ebx + 4]
je 0x41b44f
test cl, cl
je 0x41b44f
cmp cl, 0xff
jne 0x41b408
and ebp, 3
add ebp, ebp
mov dword [esp + 0x1c], eax
or ebp, 1
add eax, 1
jmp 0x41b3d0
xor edx, edx
mov dh, cl
movzx ecx, byte [edi + 2]
mov dl, byte [edi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
lea esp, [esp]
cmp dword [esp + 0x28], 0
je 0x41b48e
lea ebx, [edx + eax]
add ebx, esi
jmp 0x41b494
sub edx, eax
sub edx, esi
mov ebx, edx
test ebp, ebp
je 0x41b4d6
movzx esi, byte [ebp + 0x457834]
add esi, esi
add esi, esi
add esi, esi
mov ecx, 0x18
sub ecx, esi
mov edx, ebx
shr edx, cl
test dl, dl
je 0x41b4b9
cmp dl, 0xff
jne 0x41b4d2
mov ecx, 0x20
sub ecx, esi
mov esi, dword [esp + 0x20]
mov edx, 1
shl edx, cl
sub edx, 1
xor edx, ebx
jmp 0x41b480
mov esi, dword [esp + 0x20]
mov edx, ebx
shr edx, 0x18
and dl, 1
sub dl, 1
not dl
mov byte [edi + 4], dl
mov edx, ebx
shr edx, 8
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 2], dl
mov edx, dword [esp + 0x10]
mov byte [edi + 3], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x41b3d0
cmp ecx, 3
pop edi
pop esi
pop ebx
jbe 0x41b518
mov ecx, dword [esp + 0x18]
xor ebp, ebp
mov dword [ecx], ebp
pop ebp
pop ecx
ret
add ecx, 0xffffffff
shl ebp, cl
mov ecx, dword [esp + 0x18]
and ebp, 7
mov dword [ecx], ebp
pop ebp
pop ecx
ret

Function at 0x4218ad
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x4218f0
call fcn.0042767b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4218f0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42190b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00421467
test ebx, ebx
mov esi, eax
je 0x421909
test edi, edi
je 0x421909
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4