joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4090e0
Capabilities:
Check os version

Disassembly:
sub esp, 0xc4
mov eax, dword [str._q_]
xor eax, esp
push esi
mov esi, dword [esp + 0xcc]
mov dword [esp + 0xc4], eax
push edi
lea eax, [esp + 0x34]
push eax
xor edi, edi
mov dword [esp + 0x38], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40917f
cmp dword [esp + 0x38], 5
jb 0x40917f
xor ecx, ecx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov eax, 0xea60
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], ecx
lea eax, [esp + 8]
push eax
mov dword [esp + 0x1c], ecx
mov ecx, 1
lea edx, [esp + 0x20]
push 2
push esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x14], 0x15180
mov dword [esp + 0x20], 3
mov dword [esp + 0x24], edx
call fcn.00401710
add esp, 0xc
jmp 0x409181
mov eax, edi
mov ecx, dword [esp + 0xc8]
pop edi
pop esi
xor ecx, esp
call fcn.0040f175
add esp, 0xc4
ret 4
Function at 0x409e10
Capabilities:
Delete registry key
Delete registry value
Persist via run registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [str._q_]
xor eax, esp
push ebx
push ebp
mov dword [esp + 0x120], eax
mov eax, dword [ecx]
push edi
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 0x1c]
push ecx
push str.SOFTWAREKaseyaAgent
lea edx, [esp + 0x28]
push str._s_s
xor edi, edi
push edx
mov dword [esp + 0x28], edi
call fcn.0040f6f9
mov ebp, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
add esp, 0x10
lea eax, [esp + 0x20]
push eax
push 0x80000002
call ebp
test eax, eax
je 0x409e6c
mov dword [esp + 0x18], 0xffffffff
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0xc]
push ecx
push 0xf003f
push edi
push str.SOFTWAREKaseyaAgent
push 0x80000002
call ebx
test eax, eax
jne 0x409f58
push esi
mov ecx, dword [esp + 0x10]
push edi
push edi
push edi
push edi
lea edx, [esp + 0x28]
push edx
push edi
push edi
lea eax, [esp + 0x30]
push eax
push edi
push edi
push edi
push ecx
xor esi, esi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x409ec9
cmp dword [esp + 0x14], edi
jne 0x409ec9
mov esi, 1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x409f57
push str.SOFTWAREKaseyaAgent
push 0x80000002
call ebp
lea eax, [esp + 0x10]
push eax
push 0xf003f
push edi
push str.SOFTWAREKaseya
push 0x80000002
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
xor esi, esi
call ebx
test eax, eax
jne 0x409f57
mov eax, dword [esp + 0x10]
push edi
push edi
push edi
push edi
lea ecx, [esp + 0x28]
push ecx
push edi
push edi
lea edx, [esp + 0x30]
push edx
push edi
push edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x409f3c
cmp dword [esp + 0x14], edi
jne 0x409f3c
cmp dword [esp + 0x18], edi
jne 0x409f3c
mov esi, 1
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x409f57
push str.SOFTWAREKaseya
push 0x80000002
call ebp
pop esi
lea edx, [esp + 0xc]
push edx
push 2
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call ebx
test eax, eax
pop edi
pop ebp
pop ebx
jne 0x409fa9
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push edx
lea eax, [esp + 0x18]
push str.KASH_s
push eax
call fcn.0040f6f9
mov edx, dword [esp + 0xc]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x118]
mov eax, dword [esp + 0xc]
xor ecx, esp
call fcn.0040f175
add esp, 0x11c
ret
Function at 0x40a440
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
jne 0x40a458
pop edi
mov eax, 0x57
pop esi
pop ecx
ret 8
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push str.SOFTWAREKaseyaAgent
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a4c4
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x14]
push edx
push edi
lea eax, [esp + 0x10]
push eax
push 0
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x20]
push str.DriverControl
push ecx
mov dword [esp + 0x20], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40a4b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ecx
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov esi, eax
pop esi
pop ecx
ret 8

Function at 0x40a4e0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ecx
push edi
lea eax, [esp + 4]
push eax
push 0x20006
xor edi, edi
push edi
push str.SOFTWAREKaseyaAgent
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a562
mov edx, dword [esp + 0xc]
test edx, edx
je 0x40a534
mov eax, edx
push esi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a511
mov ecx, dword [esp + 8]
sub eax, esi
inc eax
push eax
push edx
push 1
push 0
push str.DriverControl
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
jmp 0x40a544
mov edx, dword [esp + 4]
push str.DriverControl
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x40a550
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop ecx
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop ecx
ret 4
Function at 0x40a570
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x50c
mov eax, dword [str._q_]
xor eax, esp
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x510], eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x24]
push str.Package.xml
push ecx
lea edx, [esp + 0x14]
push str._s_s
push edx
xor ebx, ebx
call fcn.0040f6f9
lea eax, [esp + 0x1c]
push eax
call fcn.0040dd50
add esp, 0x14
test eax, eax
je 0x40a5c7
mov eax, dword [esp + 0x518]
test eax, eax
je 0x40a5c7
xor eax, eax
jmp 0x40a654
mov ecx, dword [esi]
mov edx, dword [ecx + 0x1c]
push edi
push str.Package
push 0x41c758
push edx
push 0x41c758
push str.Package
lea eax, [esp + 0x128]
push str.__xml_version_1.0_____r_n_____Please_do_not_remove_or_modify_this_file._____r_n__s__r_n__s__s___s__r_n___s__r_n
push eax
call fcn.0040f6f9
add esp, 0x1c
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [esp + 0x28]
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40a649
push 0
lea edx, [esp + 0x10]
push edx
push edi
lea eax, [esp + 0x120]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40a640
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40a651
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, ebx
pop edi
mov ecx, dword [esp + 0x510]
pop esi
pop ebx
xor ecx, esp
call fcn.0040f175
add esp, 0x50c
ret 4

Function at 0x40a670
Capabilities:
Copy file
Get common file path
Move file

Disassembly:
sub esp, 0x20c
mov eax, dword [str._q_]
xor eax, esp
push ebx
mov ebx, dword [esp + 0x214]
push ebp
push esi
xor esi, esi
test ebx, ebx
push edi
mov edi, dword [esp + 0x224]
mov dword [esp + 0x218], eax
mov ebp, ecx
je 0x40a762
test edi, edi
je 0x40a762
lea edx, [esp + 0x10]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40a6b2
lea eax, [esp + 0x10]
push 0x5c
push eax
call fcn.0040f216
add esp, 8
test eax, eax
je 0x40a6d4
mov byte [eax], 0
jmp 0x40a6d9
mov byte [esp + 0x10], 0
lea ecx, [esp + 0x114]
push ecx
push 0
push 0x41c784
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
lea eax, [esp + 0x118]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x40a716
call ebx
mov esi, eax
test esi, esi
jne 0x40a74c
mov ecx, dword [ebp]
mov eax, dword [ecx + 0x54]
test eax, eax
jne 0x40a739
push 5
push edi
lea edx, [esp + 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x40a74c
call ebx
jmp 0x40a74a
lea eax, [esp + 0x114]
push edi
push eax
call fcn.00402200
add esp, 8
mov esi, eax
mov ecx, dword [ebp]
push esi
push str.InstallFile:___Setup_move_file.___d_
push ecx
call fcn.00404120
add esp, 0xc
mov eax, esi
jmp 0x40a767
mov eax, 0x57
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040f175
add esp, 0x20c
ret 8
Function at 0x40a790
Capabilities:
Delete file
Move file

Disassembly:
mov eax, dword [esp + 4]
push esi
xor esi, esi
test eax, eax
jne 0x40a7a4
mov eax, 0x57
pop esi
ret 4
mov ecx, dword [ecx]
mov edx, dword [ecx + 0x54]
test edx, edx
jne 0x40a7c8
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x40a7d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
pop esi
ret 4
push eax
push 0
call fcn.00402200
add esp, 8
mov esi, eax
mov eax, esi
pop esi
ret 4
Function at 0x40b210
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x658
mov eax, dword [str._q_]
xor eax, esp
push ebp
push esi
push edi
mov edi, dword [esp + 0x66c]
mov dword [esp + 0x660], eax
mov eax, dword [esp + 0x668]
push edi
push eax
mov ebp, ecx
call fcn.0040b130
mov esi, eax
test esi, esi
je 0x40b439
mov ecx, dword [0x4224e8]
push 0x104
lea eax, [esp + 0x358]
push eax
push 0x79
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
push esi
lea edx, [esp + 0x358]
push edx
lea eax, [esp + 0x460]
push eax
call fcn.0040f6f9
mov eax, dword [0x4225c0]
add esp, 0xc
test eax, eax
je 0x40b28f
mov eax, dword [0x4225d4]
test eax, eax
je 0x40b2ac
mov eax, dword [0x4224f4]
test eax, eax
je 0x40b2ac
lea ecx, [esp + 0x458]
push ecx
push 0x3e9
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
test edi, edi
push ebx
je 0x40b3a1
push 0x3f
push edi
call fcn.0040ffe6
add esp, 8
test eax, eax
jne 0x40b2de
push 0x2a
push edi
call fcn.0040ffe6
add esp, 8
test eax, eax
jne 0x40b2de
push esi
call fcn.00401b10
jmp 0x40b3a7
lea edx, [esp + 0x150]
mov eax, esi
sub edx, esi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40b2f0
lea edx, [esp + 0x150]
push 0x5c
push edx
call fcn.0040f216
add esp, 8
test eax, eax
je 0x40b384
mov byte [eax], 0
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40b3b0
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test byte [esp + 0x10], 0x10
jne 0x40b366
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x154]
push edx
lea eax, [esp + 0x25c]
push str._s_s
push eax
call fcn.0040f6f9
lea ecx, [esp + 0x264]
push ecx
call fcn.00401b10
add esp, 0x14
lea edx, [esp + 0x10]
push edx
push edi
call ebx
test eax, eax
jne 0x40b330
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
push str.__s__is_removed.
jmp 0x40b41f
mov eax, dword [ebp]
push esi
push str.__s__is_invalid.
push eax
call fcn.00404120
add esp, 0xc
push esi
push str.__s__is_removed.
jmp 0x40b41f
push esi
call fcn.00402a20
mov edi, eax
add esp, 4
test edi, edi
jne 0x40b3b8
push esi
push str.__s__is_removed.
jmp 0x40b41f
cmp edi, 2
je 0x40b419
cmp edi, 3
je 0x40b419
push edi
call fcn.0040f060
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40b3f8
mov edx, dword [ebp]
push ebx
push esi
push str.Failed_to_remove___s_.__s
push edx
call fcn.00404120
push ebx
call fcn.0040f5cf
add esp, 0x14
push esi
call fcn.0040f5cf
add esp, 4
xor eax, eax
pop ebx
jmp 0x40b43e
mov eax, dword [ebp]
push edi
push esi
push str.Failed_to_remove___s_.__Code:__d_
push eax
call fcn.00404120
add esp, 0x10
push esi
call fcn.0040f5cf
add esp, 4
xor eax, eax
pop ebx
jmp 0x40b43e
push esi
push str.__s__is_not_found.
mov ecx, dword [ebp]
push ecx
call fcn.00404120
add esp, 0xc
push esi
call fcn.0040f5cf
add esp, 4
xor eax, eax
pop ebx
jmp 0x40b43e
mov eax, 0xe
mov ecx, dword [esp + 0x660]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0040f175
add esp, 0x658
ret 8
Function at 0x40bb80
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [str._q_]
xor eax, esp
push esi
push edi
mov dword [esp + 0x10c], eax
mov edi, ecx
call fcn.00406bf0
mov esi, eax
test esi, esi
jne 0x40bbc6
push 0x104
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.KaseyaSP.dll
lea ecx, [esp + 0xc]
push ecx
mov ecx, edi
call fcn.0040b210
jmp 0x40bbd6
mov edx, dword [edi]
push str.Failed_to_uninstall_network_layer_driver.
push edx
call fcn.00404120
add esp, 8
mov ecx, dword [esp + 0x10c]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040f175
add esp, 0x108
ret

Function at 0x40bbf0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
mov eax, dword [str._q_]
xor eax, esp
push ebx
mov dword [esp + 0x10c], eax
mov eax, dword [str._TARGETDIR_]
push ebp
xor ebx, ebx
xor ebp, ebp
test eax, eax
push edi
mov dword [esp + 0xc], ecx
je 0x40bcb8
push esi
xor esi, esi
xor edi, edi
jmp 0x40bc27
mov ecx, dword [esp + 0x10]
test byte [esi + 0x421058], 1
je 0x40bc63
mov eax, dword [esi + 0x421058]
mov edx, dword [esi + 0x421050]
push eax
mov eax, dword [esi + 0x421054]
push 0
push edx
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x4c]
push eax
call fcn.0040acc0
mov ebx, eax
test ebx, ebx
je 0x40bc63
test byte [esi + 0x421058], 0x10
je 0x40bcb7
xor ebx, ebx
mov ecx, dword [0x4225c0]
mov eax, 0x3159721f
imul edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, dword [esp + 0x120]
test ecx, ecx
je 0x40bc8f
mov ecx, dword [0x4225d4]
test ecx, ecx
je 0x40bc9e
test eax, eax
jl 0x40bc9e
push eax
mov ecx, 0x4224f0
call fcn.0040d030
inc ebp
lea esi, [ebp + ebp*2]
shl esi, 2
mov eax, dword [esi + 0x421050]
add edi, 0x3c
test eax, eax
jne 0x40bc23
pop esi
push 0x104
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x40bd5a
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40bcd7
sub eax, edx
test eax, eax
jle 0x40bcf5
cmp byte [esp + eax + 0xf], 0x5c
je 0x40bcf5
mov byte [esp + eax + 0x10], 0x5c
mov byte [esp + eax + 0x11], 0
lea edi, [esp + 0x10]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40bd00
mov edx, dword [0x41b760]
mov eax, dword [0x41b764]
mov cx, word [0x41b768]
mov dword [edi], edx
lea edx, [esp + 0x10]
mov dword [edi + 4], eax
push edx
mov word [edi + 8], cx
call fcn.0040dd50
add esp, 4
test eax, eax
je 0x40bd5a
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
push edx
lea eax, [esp + 0x14]
push str._spsapi.dll
push eax
call fcn.0040f6f9
lea ecx, [esp + 0x1c]
push ecx
call fcn.00401b10
add esp, 0x10
mov ecx, dword [esp + 0x114]
pop edi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0040f175
add esp, 0x10c
ret 4
Function at 0x40d120
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcc
mov eax, dword [str._q_]
push ebx
xor eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov dword [esp + 0xd4], eax
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x30]
push eax
xor ebx, ebx
mov dword [esp + 0x34], 0x9c
call esi
test eax, eax
jne 0x40d18d
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x34], 0x94
call esi
test eax, eax
jne 0x40d18d
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, ebp
call fcn.0040f175
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x34]
cmp eax, 6
jae 0x40d1a2
cmp eax, 5
jne 0x40d1dc
cmp dword [esp + 0x38], 2
jne 0x40d1dc
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d1cf
lea ecx, [esp + 0xc]
push ecx
call eax
cmp word [esp + 0xc], 9
jne 0x40d1dc
mov ebx, 1
mov ecx, dword [esp + 0xd4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040f175
mov esp, ebp
pop ebp
ret

Function at 0x40dab0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 0x24]
mov eax, dword [ebx]
lea ecx, [esp + 0x24]
push ecx
push 0x20019
push 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x18], 0
mov dword [ebx], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40db76
mov ecx, dword [ebx]
mov edx, dword [esp + 0x20]
push esi
mov esi, ecx
shr ecx, 2
push edi
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40db5f
lea ecx, [esp + 0x10]
push ecx
push edx
lea edx, [esp + 0x14]
push edx
push 0
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x2c]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40db46
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
pop edi
mov dword [edx], eax
pop esi
mov dword [ebx], ecx
xor eax, eax
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 0xfffffffd
pop ebx
add esp, 8
ret
or eax, 0xffffffff
pop ebx
add esp, 8
ret
Function at 0x40dc60
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebp
push edi
mov edi, dword [esp + 0x14]
or ebp, 0xffffffff
test edi, edi
mov dword [esp + 8], 0
jne 0x40dc83
pop edi
mov eax, 0x57
pop ebp
add esp, 8
ret
push ebx
push esi
lea eax, [esp + 0x10]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jbe 0x40dd3e
push esi
call fcn.0040f6e7
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40dd46
mov ecx, dword [esp + 0x10]
push ebx
push esi
push ecx
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40dd23
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
push 0x41b960
xor esi, esi
push ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40dd23
cmp dword [esp + 0x1c], 0x34
jne 0x40dd2b
mov ecx, dword [esp + 0x14]
cmp dword [ecx], 0xfeef04bd
jne 0x40dd2b
mov eax, dword [esp + 0x20]
cmp eax, esi
je 0x40dd01
mov edx, dword [ecx + 8]
mov dword [eax], edx
mov eax, dword [esp + 0x24]
cmp eax, esi
je 0x40dd0e
mov ecx, dword [ecx + 0xc]
mov dword [eax], ecx
push ebx
xor ebp, ebp
call fcn.0040f5cf
add esp, 4
pop esi
pop ebx
pop edi
mov eax, ebp
pop ebp
add esp, 8
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
push ebx
call fcn.0040f5cf
add esp, 4
pop esi
pop ebx
pop edi
mov eax, ebp
pop ebp
add esp, 8
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
pop esi
pop ebx
pop edi
mov eax, ebp
pop ebp
add esp, 8
ret
Function at 0x40eea0
Capabilities:
Delete file
Move file
Write file on windows

Disassembly:
mov eax, 0x1528
call fcn.0040fae0
mov eax, dword [str._q_]
xor eax, esp
push ebx
mov dword [esp + 0x1528], eax
mov eax, dword [ecx]
test eax, eax
push edi
mov edi, dword [esp + 0x1534]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
je 0x40f03b
lea ebx, [ecx + 4]
cmp byte [ebx], 0
je 0x40f03b
test edi, edi
je 0x40f03b
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40ef09
xor eax, eax
jmp 0x40f03f
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
push ebx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x40f02c
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x40f025
cmp eax, 0x4c4b40
jbe 0x40efaf
lea edx, [esp + 0x2c]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40ef56
lea edi, [esp + 0x2c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40ef65
mov ax, word [0x41da54]
lea ecx, [esp + 0x2c]
push ecx
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x2c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push ebx
call ebp
mov edi, dword [esp + 0x14]
mov esi, eax
cmp esi, 0xffffffff
je 0x40f02c
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
movzx ecx, word [esp + 0x2e]
movzx edx, word [esp + 0x2c]
push eax
movzx eax, word [esp + 0x2e]
push ecx
movzx ecx, word [esp + 0x30]
push edx
movzx edx, word [esp + 0x32]
push eax
movzx eax, word [esp + 0x32]
push ecx
movzx ecx, word [esp + 0x34]
push edx
push eax
push ecx
lea edx, [esp + 0x154]
push str._d__02d__02d__02d:_02d:_02d._03d___x_:__.4096s_r_n
push edx
call fcn.0040f6f9
add esp, 0x2c
push 0
lea ecx, [esp + 0x18]
push ecx
push eax
lea edx, [esp + 0x13c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
pop ebp
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x152c]
pop edi
pop ebx
xor ecx, esp
call fcn.0040f175
add esp, 0x1528
ret 4
Function at 0x41083f
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x41db00
call fcn.00410bc8
mov edi, 0x94
mov eax, edi
call fcn.0040fae0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4228d0], ecx
mov eax, dword [esi + 4]
mov dword [0x4228dc], eax
mov edx, dword [esi + 8]
mov dword [0x4228e0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4228d4], esi
cmp ecx, 2
je 0x41089f
or esi, 0x8000
mov dword [0x4228d4], esi
shl eax, 8
add eax, edx
mov dword [0x4228d8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4108da
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4108da
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4108f2
cmp eax, 0x20b
je 0x4108df
mov dword [ebp - 0x1c], esi
jmp 0x410906
cmp dword [ecx + 0x84], 0xe
jbe 0x4108da
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x410900
cmp dword [ecx + 0x74], 0xe
jbe 0x4108da
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004119c8
pop ecx
test eax, eax
jne 0x41091a
push 0x1c
call fcn.0041081b
pop ecx
call fcn.0041145f
test eax, eax
jne 0x41092b
push 0x10
call fcn.0041081b
pop ecx
call fcn.00415c3c
mov dword [ebp - 4], esi
call fcn.00415a3e
test eax, eax
jge 0x410944
push 0x1b
call fcn.004107f6
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x423fa0], eax
call fcn.0041591c
mov dword [0x422740], eax
call fcn.0041587a
test eax, eax
jge 0x41096a
push 8
call fcn.004107f6
pop ecx
call fcn.00415647
test eax, eax
jge 0x41097b
push 9
call fcn.004107f6
pop ecx
push 1
call fcn.00415023
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x410991
push eax
call fcn.004107f6
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004155ea
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4109b2
movzx eax, word [ebp - 0x40]
jmp 0x4109b5
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00407850
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4109d3
push edi
call fcn.00415150
call fcn.00415172
jmp 0x410a05
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00410c03
ret