joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478e60
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x478f03
test eax, eax
jbe 0x478f03
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x478f03
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x478eae
xor esi, esi
jmp 0x478eb4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x478edf
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0041d470
add esi, eax
push esi
mov ebx, esi
call fcn.0041d470
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x478ec0
pop ebp
test edi, edi
pop edi
jne 0x478f03
test ebx, ebx
je 0x478f03
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0047d3e0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x479045
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x47915d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47915d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0048ef00
mov esi, eax
test esi, esi
je 0x47915d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x47915d
mov ecx, esi
call fcn.00478fb0
cmp edi, eax
jge 0x47915d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4790e3
mov dword [esp + 0x34], 1
jmp 0x47913e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x47915d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004785a0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x48f8a4
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48f8dc
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0048d95b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048d933
jmp 0x48f8e8
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x490f95
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x490fd7
call fcn.00496e57
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x490fd7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x490fce
xor eax, eax
jmp 0x490fdf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00490fe5
pop edi
pop esi
pop ebx
ret 4

Function at 0x497387
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4973b5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4973d3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004972ed
jmp 0x4973d3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4973d3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004972ed
test edi, edi
mov eax, edi
jne 0x4973bd
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x415c8c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4a0e8c
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x415ce3
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push 0x4a9f54
push 0
push 0
push 0x4a0e78
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x415cda
mov byte [0x4aaf84], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x41732d
Capabilities:
Hide graphical window

Disassembly:
push dword [0x4aafc0]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41735d
push 0
push dword [0x4aafc0]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4aafc8]
push 0
mov ecx, dword [eax + 0x168]
call fcn.00432388
ret
Function at 0x418b46
Capabilities:
Check os version

Disassembly:
mov eax, 0x48334d
call fcn.00466fdc
sub esp, 0x180
push ebx
lea eax, [ebp - 0x18c]
push esi
mov dword [ebp - 0x14], ecx
push eax
mov dword [ebp - 0x18c], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x188], 5
jne 0x418cc4
push 2
pop esi
cmp dword [ebp - 0x184], esi
jne 0x418cc4
cmp byte [ebp - 0xf2], 1
je 0x418cc4
push 0x4a1228
push dword [ebp + 8]
call fcn.004676f0
pop ecx
pop ecx
test eax, eax
push 1
je 0x418d5f
lea eax, [ebp + 0xb]
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp + 8]
call fcn.00402e7f
xor ebx, ebx
mov dword [ebp - 4], esi
cmp dword [ebp - 0x94], ebx
je 0x418cb5
mov al, byte [ebp + 0xb]
push edi
mov byte [ebp - 0x28], al
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0xa0]
push eax
push ebx
push 0x2c
mov byte [ebp - 4], 3
call fcn.0040b31a
lea eax, [ebp - 0xd]
push ebx
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], 0x48b6a8
mov dword [ebp - 0x30], 0x48b6a0
call fcn.00403cd9
xor edi, edi
mov byte [ebp - 4], 4
xor esi, esi
cmp dword [ebp - 0x24], ebx
je 0x418c9c
mov eax, dword [ebp - 0x20]
push 0x28
sub eax, dword [ebp - 0x24]
pop ecx
cdq
idiv ecx
cmp edi, eax
jae 0x418c9c
lea eax, [ebp - 0x15]
push 1
push eax
push 0x4a1218
lea ecx, [ebp - 0xf0]
call fcn.00402e7f
push eax
mov eax, dword [ebp - 0x24]
add eax, esi
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.00415eff
add esp, 0xc
push ebx
lea ecx, [ebp - 0x50]
push ebx
push ecx
mov ecx, dword [ebp - 0x14]
push eax
mov byte [ebp - 4], 6
call fcn.0041f007
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 5
call fcn.00402438
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 4
call fcn.00402438
inc edi
add esi, 0x28
jmp 0x418c20
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
call fcn.00402438
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00407b12
pop edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
jmp 0x418d58
xor esi, esi
lea eax, [ebp - 0xd]
push esi
push eax
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x78], 0x48b6a8
mov dword [ebp - 0x58], 0x48b6a0
call fcn.00403cd9
push 0x4a1228
mov dword [ebp - 4], esi
push dword [ebp + 8]
call fcn.004676f0
pop ecx
test eax, eax
pop ecx
jne 0x418d51
lea eax, [ebp + 0xb]
push 1
push eax
push 0x4a1218
lea ecx, [ebp - 0x50]
call fcn.00402e7f
mov ecx, dword [ebp - 0x14]
push esi
lea eax, [ebp - 0x78]
push 1
push eax
lea eax, [ebp - 0x50]
push eax
mov byte [ebp - 4], 1
call fcn.0041f007
mov ebx, eax
lea ecx, [ebp - 0x50]
neg ebx
sbb bl, bl
and byte [ebp - 4], 0
inc bl
call fcn.00402438
test bl, bl
je 0x418d51
mov ecx, dword [ebp - 0x14]
call fcn.00421f6c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.00402438
xor eax, eax
jmp 0x418d60
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.00402438
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x41b7f4
Capabilities:
Delete file
Enumerate files on windows
Get common file path

Disassembly:
mov eax, 0x48389f
call fcn.00466fdc
sub esp, 0x5c0
and byte [ebp - 0x5cc], 0
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x5cb]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x5cc]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0xf]
push 1
push eax
lea eax, [ebp - 0x5cc]
push eax
lea ecx, [ebp - 0x64]
call fcn.00401884
and dword [ebp - 4], 0
mov eax, 0x4a1c50
mov ecx, eax
mov dword [ebp - 0x3c], 0x48b660
test ecx, ecx
mov dword [ebp - 0x1c], 0x48b658
jne 0x41b868
mov eax, 0x4a9e50
lea ecx, [ebp - 0xd]
push 0
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.004011a9
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x64]
push eax
mov byte [ebp - 4], 1
call fcn.00423914
and byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00401093
or edi, 0xffffffff
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x1cc]
lea ecx, [ebp - 0x64]
push eax
mov byte [ebp - 4], 2
call fcn.00401a14
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, edi
je 0x41b964
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x1c0]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jg 0x41b942
lea eax, [ebp - 0xd]
push 1
push eax
lea eax, [ebp - 0x5cc]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00401884
lea eax, [ebp - 0xe]
push 1
push eax
lea eax, [ebp - 0x1a0]
push eax
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 3
call fcn.00401884
lea eax, [ebp - 0x8c]
lea ecx, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 4
call fcn.00423914
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 3
call fcn.00401093
lea ecx, [ebp - 0x3c]
call fcn.00401a14
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.00401093
lea eax, [ebp - 0x1cc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41b8c0
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x41b964
push esi
call eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], edi
call fcn.00401093
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x42d6a8
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4857dd
call fcn.00466fdc
sub esp, 0x4d0
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x4db]
mov byte [ebp - 0x4dc], bl
push 0x400
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x4dc]
lea ecx, [esi + 0x18]
push eax
push 0x4a9e54
push 0x4a3d68
push 0x4a02b0
call fcn.00402b3d
cmp byte [ebp - 0x4dc], bl
jne 0x42d709
xor eax, eax
jmp 0x42d85d
lea eax, [ebp - 0xdc]
mov ecx, esi
push eax
call fcn.0042a4c5
mov eax, dword [eax + 8]
mov dword [ebp - 4], ebx
cmp eax, ebx
jne 0x42d726
mov eax, 0x48b6d0
cmp eax, ebx
mov dword [ebp - 0x3c], 0x48b660
mov dword [ebp - 0x1c], 0x48b658
jne 0x42d73d
mov eax, 0x4a9e50
lea ecx, [ebp - 0xe]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.004011a9
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 2
call fcn.00402438
push 1
lea eax, [ebp - 0xd]
pop esi
lea ecx, [ebp - 0x64]
push esi
push eax
lea eax, [ebp - 0x4dc]
push eax
call fcn.00401884
push ebx
lea eax, [ebp - 0xb4]
push ebx
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call fcn.00411eda
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 4
push ecx
lea ecx, [ebp - 0x8c]
push ecx
mov ecx, eax
call fcn.0040aa0f
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
call fcn.00401d3d
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 4
call fcn.00401093
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 3
call fcn.00401093
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.00401093
push 4
lea eax, [ebp - 0xd]
sub esp, 0x28
lea ecx, [ebp - 0x38]
mov edi, esp
mov dword [ebp - 0x14], esp
push esi
push eax
call fcn.0042e924
push eax
mov ecx, edi
call fcn.0040ade9
call fcn.004384ce
add esp, 0x2c
cmp al, bl
jne 0x42d82e
lea eax, [ebp - 0xd]
push esi
push eax
lea eax, [ebp - 0x4dc]
push eax
lea ecx, [ebp - 0x64]
call fcn.00401884
lea eax, [ebp - 0x64]
lea ecx, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 6
call fcn.00401d3d
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.00401093
push esi
push ebx
push ebx
lea ecx, [ebp - 0x3c]
call fcn.00401a14
push eax
push 0x4a3d7c
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x20
pop ecx
cmp ecx, eax
lea ecx, [ebp - 0x3c]
sbb esi, esi
or dword [ebp - 4], 0xffffffff
neg esi
call fcn.00401093
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x432b21
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
mov eax, 0x486058
call fcn.00466fdc
sub esp, 0x4c
push ebx
xor eax, eax
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov esi, dword [edi + 0xa8]
cmp esi, eax
je 0x432c2c
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x34]
push 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x432b6a
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
push edi
push 0x4a4094
call fcn.00432c7c
pop ecx
test eax, eax
pop ecx
je 0x432b96
cmp dword [eax + 0xc], esi
jne 0x432b96
mov ecx, dword [eax + 0x14]
mov edx, dword [edi + 0xac]
mov dword [ebp + 0xc], edx
mov edi, ecx
lea eax, [ecx + ebx]
mov dword [ebp + 0x10], edx
jmp 0x432be9
push edi
push 0x4a408c
call fcn.00432c7c
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x432bbc
push edi
push 0x4a4084
call fcn.00432c7c
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
je 0x432c2c
mov edi, dword [edi + 0xac]
push 0x1c
mov dword [ebp + 0x10], edi
mov eax, edi
xor edx, edx
pop edi
div edi
test eax, eax
mov dword [ebp + 0xc], eax
je 0x432c2c
sub esi, dword [ecx + 0xc]
mov eax, dword [ecx + 0x14]
lea ecx, [eax + esi]
mov edi, ecx
lea eax, [ecx + ebx]
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 0x10], ecx
mov ecx, eax
sub ecx, ebx
cmp ecx, dword [ebp - 0x18]
jbe 0x432c37
cmp dword [ebp + 8], 0
je 0x432c37
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, edi
xor edx, edx
div dword [ebp - 0x3c]
xor edx, edx
mov esi, eax
mov eax, edi
div dword [ebp - 0x3c]
imul esi, dword [ebp - 0x3c]
add edx, dword [ebp + 0x10]
push edx
push esi
push 0
push 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x432c30
xor eax, eax
jmp 0x432c6d
mov dword [ebp - 0x10], eax
sub eax, esi
add eax, edi
mov edx, dword [ebp + 0xc]
test edx, edx
jbe 0x432c56
add eax, 0x10
mov ecx, dword [eax]
mov esi, dword [eax + 8]
add esi, ecx
cmp esi, dword [ebp + 0x14]
jbe 0x432c50
add dword [ebp - 0x14], ecx
add eax, 0x1c
dec edx
jne 0x432c41
cmp dword [ebp - 0x10], 0
je 0x432c6a
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x432c6a
push dword [ebp - 0x10]
call eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4343d8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
mov esi, 0x4a9e54
push edi
push esi
push dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x10], edi
call ebx
push esi
push dword [ebp + 0x10]
call ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, edi
je 0x434560
push esi
call fcn.004696b1
push esi
push edi
push eax
mov dword [ebp - 8], eax
call fcn.00467690
add esp, 0x10
push dword [ebp - 8]
push esi
push edi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x434557
lea eax, [ebp - 0x44]
push 0x34
mov dword [ebp + 8], eax
lea eax, [ebp - 0x44]
push edi
push eax
call fcn.00467690
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp + 8]
push eax
push 0x4a23e0
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x43449a
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
movzx edx, cx
shr ecx, 0x10
push edx
push ecx
movzx ecx, ax
shr eax, 0x10
push ecx
push eax
push 0x4a4178
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0x34
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
call fcn.00467690
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x4a415c
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x434557
and byte [ebp - 0x144], 0
push 0x3f
pop ecx
xor eax, eax
lea edi, [ebp - 0x143]
mov esi, dword [ebp - 4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
xor edi, edi
shr esi, 2
test esi, esi
mov dword [ebp + 0xc], eax
jle 0x434557
and dword [ebp - 0xc], 0
test edi, edi
jle 0x4344fd
add dword [ebp + 0xc], 4
push 4
lea eax, [ebp - 0xc]
push dword [ebp + 0xc]
push eax
call fcn.004678a0
movzx eax, word [ebp - 0xc]
add esp, 0xc
test edi, edi
push eax
jne 0x43452e
lea eax, [ebp - 0x144]
push 0x4a363c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x434546
push dword [ebp + 0x10]
lea eax, [ebp - 0x144]
push 0x4a4154
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x144]
push eax
push dword [ebp + 0x10]
call ebx
inc edi
cmp edi, esi
jl 0x4344f1
push dword [ebp - 8]
call fcn.004695c8
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43462c
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push 0x4a41a8
mov dword [ebp - 4], ebx
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x43472f
push edi
push 0x4a4194
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebx
je 0x4346be
push dword [ebp + 8]
lea eax, [ebp - 0x82c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x82c]
push eax
call fcn.00434b47
test eax, eax
je 0x434696
lea eax, [ebp - 0x82c]
push eax
call fcn.00434933
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x82c]
push eax
call edi
test eax, eax
je 0x434725
cmp dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x1c]
je 0x43471c
mov eax, SysReAllocString
jmp 0x43471c
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp + 0xc], ebx
mov cl, byte [eax]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x42c], cl
mov cl, byte [eax + 1]
mov al, byte [eax + 2]
mov byte [ebp - 0x42b], cl
mov byte [ebp - 0x42a], al
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x42c]
push eax
mov byte [ebp - 0x429], bl
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x434725
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp - 8]
imul eax, dword [ebp - 0xc]
shr eax, 0xa
mov dword [esi], eax
mov dword [ebp - 4], 1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret

Function at 0x434783
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push dword [0x4a40a0]
lea eax, [ebp - 0x400]
push dword [ebp + 8]
push eax
call fcn.00434a91
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
lea eax, [ebp - 0x400]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x4347c8
xor eax, eax
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
pop eax
leave
ret

Function at 0x4347e1
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor eax, eax
mov byte [ebp + 0x11], 0x3a
mov byte [ebp + 0x12], 0x5c
mov byte [esi], al
mov byte [esi + 1], 0x3a
mov byte [esi + 2], 0x5c
mov byte [esi + 3], al
mov byte [ebp + 0x13], al
xor ebx, ebx
mov al, bl
add al, 0x41
mov byte [ebp + 0x10], al
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, dword [ebp + 8]
jne 0x43483a
push dword [ebp + 0xc]
mov al, byte [ebp + 0x10]
mov byte [esi], al
push esi
call fcn.004345e8
pop ecx
test eax, eax
pop ecx
je 0x43483a
push esi
call fcn.00434783
test eax, eax
pop ecx
jne 0x434847
inc ebx
cmp ebx, 0x1a
jl 0x434805
or eax, 0xffffffff
pop esi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x434843
Function at 0x434e4b
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x4862a8
call fcn.00466fdc
sub esp, 0xb4
push ebx
push esi
push edi
push 1
pop edi
lea eax, [ebp + 0xb]
push edi
push eax
push dword [ebp + 8]
xor ebx, ebx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x10], ebx
call fcn.00401884
push 0x10
lea eax, [ebp - 0x2c]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00467690
push 0x44
lea eax, [ebp - 0xc0]
pop esi
push esi
push ebx
push eax
call fcn.00467690
add esp, 0x18
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0xc0], esi
mov dword [ebp - 0x94], edi
mov word [ebp - 0x90], bx
je 0x434eb8
mov word [ebp - 0x90], di
mov esi, dword [ebp - 0x74]
cmp esi, ebx
jne 0x434ec4
mov esi, 0x48b67c
push edi
lea eax, [ebp + 0xf]
mov edi, 0x4a4100
push eax
push edi
lea ecx, [ebp - 0x54]
call fcn.00401884
mov eax, dword [eax + 8]
mov byte [ebp - 4], 1
cmp eax, ebx
jne 0x434ee7
mov eax, 0x48b67c
mov dword [ebp - 0x18], eax
push esi
lea eax, [ebp - 0x18]
push 0x4a4218
push eax
mov dword [ebp - 0x14], 0x4a7
call fcn.0040a552
add esp, 0xc
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.00401093
push dword [ebp - 0x70]
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x7c]
push eax
call fcn.0040b170
mov esi, eax
mov ecx, dword [esi]
mov byte [ebp - 4], 2
call fcn.00401a14
lea ecx, [ebp - 0x2c]
mov dword [esi + 8], eax
push ecx
lea ecx, [ebp - 0xc0]
push ecx
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
lea ecx, [ebp - 0x1c]
mov esi, eax
mov byte [ebp - 4], bl
call fcn.0040b278
cmp esi, ebx
je 0x435007
push 0xff
push 0xffffffffffffffff
lea eax, [ebp - 0x2c]
push ebx
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, ebx
je 0x434f99
cmp eax, 1
jne 0x434f99
push ebx
push ebx
push ebx
lea eax, [ebp - 0x48]
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
cmp dword [ebp - 0x44], 0x11
je 0x434f99
cmp dword [ebp - 0x44], 0x10
je 0x434f99
cmp dword [ebp - 0x44], 0x12
jne 0x434f5c
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x2c]
mov dword [0x4abe88], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
lea eax, [ebp + 0xf]
push 1
push eax
push edi
lea ecx, [ebp - 0x54]
call fcn.00401884
mov eax, dword [eax + 8]
mov byte [ebp - 4], 3
cmp eax, ebx
jne 0x434fd8
mov eax, 0x48b67c
push dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x4c8
push esi
push 0x4a41d8
push eax
call fcn.0040a552
add esp, 0x10
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.00401093
mov esi, dword [ebp - 0x10]
jmp 0x43500c
mov esi, 0xcccccccc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00401093
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8