joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407aa0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x467e60]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov esi, ecx
call fcn.0043f3e0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x407b2b
lea eax, [ebp - 0x210]
push eax
push 0x26
push 0
mov dword [ebp - 0x210], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x407b70
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 0x210]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jl 0x407b70
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x2ac]
call fcn.00411eed
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043cefb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0043cefb
mov esp, ebp
pop ebp
ret
Function at 0x407b90
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x467e60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x218], eax
mov eax, dword [ebp + 0xc]
push 0
mov esi, ecx
mov dword [ebp - 0x21c], eax
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x210]
push eax
push 0x4534d8
push 1
push 0
push 0x4534e8
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x214], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x407d73
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x214]
mov ecx, dword [eax]
push edx
push 0x453508
push eax
call dword [ecx]
test eax, eax
js 0x407d67
test esi, esi
je 0x407c2f
mov eax, dword [ebp - 0x210]
push esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
test ebx, ebx
je 0x407c40
mov eax, dword [ebp - 0x210]
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
test edi, edi
je 0x407c51
mov eax, dword [ebp - 0x210]
push edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x210]
push 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0043f3e0
mov eax, dword [ebp - 0x21c]
add esp, 0xc
test eax, eax
je 0x407ca5
push eax
push dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x407d0c
test esi, esi
je 0x407d5b
push 0x5c
push esi
call fcn.0043e956
add esp, 8
test eax, eax
je 0x407d5b
push eax
push dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407ce5
sub ecx, edx
sar ecx, 1
mov eax, 0x6b
mov dword [ebp + ecx*2 - 0x212], 0x6e006c
mov word [ebp + ecx*2 - 0x20e], ax
mov eax, dword [ebp - 0x214]
push 1
mov ecx, dword [eax]
lea edx, [ebp - 0x20c]
push edx
push eax
call dword [ecx + 0x18]
mov ecx, dword [ebp - 0x214]
push ecx
mov edx, dword [ecx]
mov esi, eax
call dword [edx + 8]
mov ecx, dword [ebp - 0x210]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
pop edi
test esi, esi
pop esi
setns al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043cefb
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x210]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0043cefb
mov esp, ebp
pop ebp
ret 0x10
Function at 0x407d90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451bc8
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x467e60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
push 0x206
mov dword [ebp - 4], 0
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0043f3e0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x19
push 0
mov dword [ebp - 0x21c], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x407e56
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 0x21c]
mov esi, eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test esi, esi
je 0x407e56
lea ecx, [edi + 0x2ac]
call fcn.00412398
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00412398
push 0x460644
push esi
push 0x460d04
lea ecx, [ebp - 0x218]
push ecx
mov ecx, eax
call fcn.00407b90
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.00411e57
mov eax, 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.0043cefb
mov esp, ebp
pop ebp
ret 0x84
Function at 0x407e90
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451c19
mov eax, dword fs:[0]
push eax
sub esp, 0x318
mov eax, dword [0x467e60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
push 0x206
mov dword [ebp - 4], 1
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0043f3e0
add esp, 0xc
lea ecx, [ebp - 0x29c]
call fcn.00411da7
lea ecx, [ebp - 0x320]
mov byte [ebp - 4], 2
call fcn.00411da7
lea eax, [ebp - 0x324]
push eax
push 2
push 0
mov byte [ebp - 4], 3
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x408052
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x324]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 0x324]
mov esi, eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test esi, esi
je 0x408052
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x29c]
call fcn.00411eed
lea ecx, [ebp - 0x29c]
call fcn.004123a2
dec eax
push eax
lea ecx, [ebp - 0x29c]
call fcn.00411f5a
cmp ax, 0x5c
je 0x407f81
push 0x5c
lea ecx, [ebp - 0x29c]
call fcn.00411fb1
push 0x460644
lea ecx, [ebp - 0x29c]
call fcn.00411f96
lea ecx, [ebp - 0x29c]
call fcn.00412398
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x407fbb
lea ecx, [ebp - 0x29c]
call fcn.00412398
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea eax, [edi + 0x2ac]
push eax
lea ecx, [ebp - 0x320]
call fcn.00411ece
push str.Bin_
lea ecx, [ebp - 0x320]
call fcn.00411f96
lea ecx, [ebp - 0x320]
call fcn.00412398
lea ecx, [ebp - 0x29c]
mov edi, eax
call fcn.00412398
lea ecx, [ebp + 0x8c]
mov esi, eax
call fcn.00412398
test esi, esi
je 0x408019
push 0x460d2c
push edi
push 0x460d44
push esi
mov ecx, eax
call fcn.00407b90
lea ecx, [ebp - 0x320]
call fcn.00412398
lea ecx, [ebp - 0x29c]
mov edi, eax
call fcn.00412398
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00412398
test esi, esi
je 0x408052
push 0x460644
push edi
push 0x460d04
push esi
mov ecx, eax
call fcn.00407b90
lea ecx, [ebp - 0x320]
mov byte [ebp - 4], 2
call fcn.00411e57
lea ecx, [ebp - 0x29c]
mov byte [ebp - 4], 1
call fcn.00411e57
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.00411e57
lea ecx, [ebp + 0x8c]
mov dword [ebp - 4], 0xffffffff
call fcn.00411e57
mov eax, 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.0043cefb
mov esp, ebp
pop ebp
ret 0x108
Function at 0x4080b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451aa3
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x467e60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
push 0x206
mov dword [ebp - 4], 0
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0043f3e0
add esp, 0xc
lea ecx, [ebp - 0x29c]
call fcn.00411da7
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00412398
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0043e74a
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x29c]
call fcn.00411eed
push str.uInst.exe
lea ecx, [ebp - 0x29c]
call fcn.00411f96
push str.IsWow64Process
push str.kernel32
mov esi, 1
mov dword [ebp - 0x2a0], 0
mov dword [ebp - 0x2a4], 0
mov dword [ebp - 0x2a8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4081be
lea eax, [ebp - 0x2a8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
je 0x4081de
cmp dword [ebp - 0x2a8], 0
je 0x4081de
lea eax, [ebp - 0x2a4]
push eax
lea eax, [ebp - 0x2a0]
push eax
push 0
push 0xf013f
jmp 0x4081f3
lea eax, [ebp - 0x2a4]
push eax
lea eax, [ebp - 0x2a0]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4082ce
mov eax, dword [ebp - 0x2a0]
test eax, eax
je 0x4082ce
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x10
push 0x460644
push 1
push 0
push str.DisplayName
push eax
call edi
test eax, eax
jne 0x4082ce
push 0xe
push str.1.0.0.0
push 1
push eax
push str.DisplayVersion
push dword [ebp - 0x2a0]
call edi
test eax, eax
jne 0x4082ce
push 0x18
push str.www.mkbox.cn
push 1
push eax
push str.Publisher
push dword [ebp - 0x2a0]
call edi
test eax, eax
jne 0x4082ce
lea ecx, [ebp - 0x29c]
call fcn.004123a2
add eax, eax
push eax
lea ecx, [ebp - 0x29c]
call fcn.00412398
push eax
push 1
push 0
push str.UninstallString
push dword [ebp - 0x2a0]
call edi
test eax, eax
jne 0x4082ce
lea ecx, [ebp + 8]
call fcn.004123a2
add eax, eax
push eax
lea ecx, [ebp + 8]
call fcn.00412398
push eax
push 1
push 0
push str.DisplayIcon
push dword [ebp - 0x2a0]
call edi
test eax, eax
je 0x4082d0
xor esi, esi
mov eax, dword [ebp - 0x2a0]
test eax, eax
je 0x4082e1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x29c]
mov byte [ebp - 4], 0
call fcn.00411e57
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.00411e57
mov eax, esi
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.0043cefb
mov esp, ebp
pop ebp
ret 0x84
Function at 0x4088d0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451836
mov eax, dword fs:[0]
push eax
sub esp, 0x4b4
mov eax, dword [0x467e60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.0043f3e0
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0043f3e0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xffffffffffffffff
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4c0]
call fcn.00411d83
lea ecx, [ebp - 0x4c0]
mov dword [ebp - 4], 0
call fcn.00412571
push 0
push 0x460fc0
lea ecx, [ebp - 0x4c0]
mov dword [edi + 0x338], 0
call fcn.00412194
cmp eax, 0xffffffff
je 0x4089bf
mov dword [edi + 0x338], 1
mov byte [edi + 0xe39], 1
jmp 0x408a8b
cmp dword [edi + 0x338], 0
jne 0x408a8b
lea eax, [ebp - 0x420]
push eax
lea ecx, [edi + 0x33c]
call fcn.00411eed
push str.update.php
lea ecx, [edi + 0x33c]
call fcn.00411f96
push str.http:__www.mkbox.cn_update1.php
lea ecx, [ebp - 0x438]
call fcn.00401750
mov byte [ebp - 4], 1
cmp dword [ebp - 0x424], 8
lea esi, [ebp - 0x438]
cmovae esi, dword [ebp - 0x438]
lea ecx, [edi + 0x33c]
call fcn.00412398
mov edx, eax
mov ecx, esi
call fcn.004037d0
test al, al
je 0x408a57
lea ecx, [edi + 0x33c]
call fcn.00412398
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x408a57
lea ecx, [edi + 0x33c]
call fcn.00412398
push eax
mov ecx, edi
call fcn.00408320
cmp dword [ebp - 0x424], 8
jb 0x408a6e
push dword [ebp - 0x438]
call fcn.0043d6b8
add esp, 4
xor eax, eax
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
lea ecx, [ebp - 0x4c0]
mov dword [ebp - 4], 0xffffffff
call fcn.00411e57
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043cefb
mov esp, ebp
pop ebp
ret
Function at 0x408ac0
Capabilities:
Create thread

Disassembly:
push edi
mov edi, ecx
cmp dword [edi + 0x338], 0
jne 0x408c7d
cmp byte [edi + 0x330], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
je 0x408b2b
lea eax, [edi + 0x3c0]
mov ecx, eax
call fcn.004124ee
test al, al
jne 0x408b2b
push 8
call fcn.0043d708
mov esi, eax
lea eax, [edi + 0x3c0]
add esp, 4
mov ecx, edi
mov dword [esi + 4], eax
call fcn.004123ab
push 0
push 0
push esi
push 0x408c90
push 0
push 0
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x408b2b
push eax
call ebx
cmp byte [edi + 0x331], 0
je 0x408b7e
lea eax, [edi + 0x5d8]
mov ecx, eax
call fcn.004124ee
test al, al
jne 0x408b7e
push 8
call fcn.0043d708
mov esi, eax
lea eax, [edi + 0x5d8]
add esp, 4
mov ecx, edi
mov dword [esi + 4], eax
call fcn.004123ab
push 0
push 0
push esi
push 0x408c90
push 0
push 0
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x408b7e
push eax
call ebx
cmp byte [edi + 0x332], 0
je 0x408bd1
lea eax, [edi + 0x7f0]
mov ecx, eax
call fcn.004124ee
test al, al
jne 0x408bd1
push 8
call fcn.0043d708
mov esi, eax
lea eax, [edi + 0x7f0]
add esp, 4
mov ecx, edi
mov dword [esi + 4], eax
call fcn.004123ab
push 0
push 0
push esi
push 0x408c90
push 0
push 0
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x408bd1
push eax
call ebx
cmp byte [edi + 0x333], 0
je 0x408c24
lea eax, [edi + 0xa08]
mov ecx, eax
call fcn.004124ee
test al, al
jne 0x408c24
push 8
call fcn.0043d708
mov esi, eax
lea eax, [edi + 0xa08]
add esp, 4
mov ecx, edi
mov dword [esi + 4], eax
call fcn.004123ab
push 0
push 0
push esi
push 0x408c90
push 0
push 0
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x408c24
push eax
call ebx
cmp byte [edi + 0x334], 0
je 0x408c77
lea eax, [edi + 0xc20]
mov ecx, eax
call fcn.004124ee
test al, al
jne 0x408c77
push 8
call fcn.0043d708
mov esi, eax
lea eax, [edi + 0xc20]
add esp, 4
mov ecx, edi
mov dword [esi + 4], eax
call fcn.004123ab
push 0
push 0
push esi
push 0x408c90
push 0
push 0
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x408c77
push eax
call ebx
pop esi
pop ebx
xor al, al
pop edi
ret
xor al, al
pop edi
ret

Function at 0x408e10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
cmp dword [edi + 0x210], 2
jne 0x408e74
cmp byte [edi + 0x214], 0
jne 0x408e74
push esi
push 8
mov dword [edi + 0x210], 3
call fcn.0043d708
mov esi, eax
add esp, 4
mov ecx, ebx
mov dword [esi + 4], edi
call fcn.004123ab
push 0
push 0
push esi
push 0x408e90
push 0
push 0
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
test eax, eax
je 0x408e89
pop edi
pop ebx
mov dword [ebp + 8], eax
pop ebp
jmp dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0x5f5
call fcn.004123ab
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop ebx
pop ebp
ret 4
Function at 0x40c8a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, edx
mov dword [ebp - 4], ecx
test esi, esi
jne 0x40c8ba
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
xor ebx, ebx
mov edx, 0x1000000
push 0
lea eax, [ebp + 8]
push eax
mov eax, esi
cmp esi, 0x1000000
cmova eax, edx
push eax
push edi
push ecx
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 8]
add edi, ecx
sub esi, ecx
add ebx, ecx
test eax, eax
je 0x40c8fc
mov ecx, dword [ebp - 4]
mov edx, 0x1000000
test esi, esi
jne 0x40c8c2
mov eax, ebx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40ca40
Capabilities:
Check if file exists
Create directory
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x467e60]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40cb1d
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x202]
push eax
call fcn.0043f3e0
add esp, 0xc
lea edx, [ebp - 0x204]
mov ecx, esi
call fcn.0040c9c0
test eax, eax
je 0x40cacd
lea ecx, [ebp - 0x204]
call fcn.0040ca40
test eax, eax
je 0x40cabc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043cefb
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043cefb
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x404], ax
lea eax, [ebp - 0x402]
push eax
call fcn.0043f3e0
push esi
push 0x461190
push 0x200
lea eax, [ebp - 0x404]
push 0x100
push eax
call fcn.0043eda1
add esp, 0x20
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
je 0x40cabc
test eax, eax
je 0x40cabc
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0043cefb
mov esp, ebp
pop ebp
ret
Function at 0x40d0b0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ecx
mov dword [ebp - 4], edx
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, ebx
je 0x40d14a
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
je 0x40d142
push 0
push edi
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x40d142
push edi
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 8], eax
test eax, eax
je 0x40d139
push dword [ebp - 4]
mov edx, edi
mov ecx, eax
call fcn.0040cb40
add esp, 4
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d160
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 0xc]
push edi
mov esi, dword [esi]
mov eax, ecx
xor edi, edi
and esi, 7
mov dword [ebp - 4], eax
cmp edx, 5
jae 0x40d184
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
lea ecx, [edx - 4]
or ebx, 0xffffffff
add ecx, eax
mov dword [ebp - 8], ecx
lea edx, [edi + eax]
cmp edx, ecx
jae 0x40d1a7
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x40d1a4
inc edx
cmp edx, ecx
jb 0x40d197
mov eax, dword [ebp - 4]
mov edi, edx
sub edi, eax
cmp edx, ecx
mov ecx, edi
jae 0x40d2af
sub ecx, ebx
cmp ecx, 3
jbe 0x40d1df
xor esi, esi
mov al, byte [edx + 4]
mov ebx, edi
mov dword [ebp - 0x10], ebx
test al, al
je 0x40d21c
cmp al, 0xff
je 0x40d21c
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
and esi, 3
add esi, esi
or esi, 1
inc edi
jmp 0x40d190
dec ecx
shl esi, cl
and esi, 7
je 0x40d1be
movzx eax, byte [esi + 0x460094]
mov ecx, edx
sub ecx, eax
cmp byte [esi + 0x46008c], 0
mov al, byte [ecx + 4]
je 0x40d206
test al, al
je 0x40d206
cmp al, 0xff
jne 0x40d1be
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
and esi, 3
add esi, esi
mov ebx, edi
or esi, 1
inc edi
jmp 0x40d190
movzx ecx, byte [edx + 3]
movzx eax, al
shl eax, 8
or eax, ecx
movzx ecx, byte [edx + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [edx + 1]
shl eax, 8
or eax, ecx
lea ebx, [ebx]
sub eax, edi
lea ebx, [eax - 5]
test esi, esi
je 0x40d27d
movzx eax, byte [esi + 0x460094]
shl eax, 3
mov ecx, 0x18
sub ecx, eax
mov dword [ebp - 0xc], eax
mov eax, ebx
shr eax, cl
test al, al
je 0x40d269
cmp al, 0xff
jne 0x40d27d
mov ecx, 0x20
sub ecx, dword [ebp - 0xc]
mov eax, 1
shl eax, cl
dec eax
xor eax, ebx
jmp 0x40d240
mov ecx, dword [ebp - 8]
mov eax, ebx
shr eax, 0x18
and al, 1
dec al
not al
mov byte [edx + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [edx + 3], al
mov eax, ebx
shr eax, 8
mov byte [edx + 2], al
mov eax, dword [ebp - 4]
mov byte [edx + 1], bl
mov ebx, dword [ebp - 0x10]
add edi, 5
jmp 0x40d190
sub ecx, ebx
pop ebx
cmp ecx, 3
jbe 0x40d2c6
mov eax, dword [ebp + 0xc]
xor esi, esi
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
dec ecx
shl esi, cl
and esi, 7
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
xor edx, edx
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
mov eax, edx
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
shr eax, 1
not ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
shr eax, 1
not ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
shr eax, 1
not ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
shr ecx, 1
xor eax, ecx
mov dword [edx*4 + 0x46cf60], eax
inc edx
cmp edx, 0x100
jb 0x40d572
ret
Function at 0x40d620
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
or eax, 0xffffffff
test esi, esi
je 0x40d64b
nop
movzx ecx, byte [edx]
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x46cf60]
lea edx, [edx + 1]
dec esi
jne 0x40d630
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40e681
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40e6b3
xor eax, eax
inc eax
cmp byte [ebp + 0xc], 0
push 4
pop edx
cmovne edx, eax
xor eax, eax
cmp byte [ebp + 8], al
cmovne eax, edx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8

Function at 0x40f7ab
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
xor esi, esi
call edi
push 8
pop ecx
test ax, ax
push 2
cmovs esi, ecx
call edi
test ax, ax
jns 0x40f7ce
or esi, 1
push 1
call edi
test ax, ax
jns 0x40f7da
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x40f7e6
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x40f7f2
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret