joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4051c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43fb9f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x4548a0]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x2c], 1
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x38]
mov ebx, 2
push 0x456d28
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], bl
call fcn.00435f44
test esi, esi
je 0x405302
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 0x3c]
push esi
push eax
mov ecx, edi
call fcn.00430593
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 3
call fcn.00435ef4
lea ecx, [esp + 0x3c]
mov byte [esp + 0x30], bl
call fcn.00435dbb
mov ecx, dword [edi + 0x1c]
push esi
push 3
push 0x110a
push ecx
call ebp
test eax, eax
jne 0x4052ab
lea edx, [esp + 0x1c]
push 3
push edx
lea ecx, [esp + 0x1c]
call fcn.0042f0fd
lea ecx, [esp + 0x18]
push ebx
push ecx
mov ecx, eax
mov byte [esp + 0x38], 4
call fcn.0042f179
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 5
call fcn.00435ef4
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 4
call fcn.00435dbb
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], bl
call fcn.00435dbb
push 0x4532c4
lea ecx, [esp + 0x18]
call fcn.004360af
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.00435fea
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 6
call fcn.00435ef4
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], bl
call fcn.00435dbb
mov edx, dword [edi + 0x1c]
push esi
push 3
push 0x110a
push edx
call ebp
mov esi, eax
test esi, esi
jne 0x405224
pop ebp
push 1
push 0x5c
lea ecx, [esp + 0x1c]
call fcn.0042eead
lea eax, [esp + 0x1c]
push 1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 7
call fcn.0042f0fd
mov ecx, dword [esp + 0x14]
mov eax, dword [eax]
push ecx
push eax
call fcn.0041fc65
add esp, 8
lea ecx, [esp + 0x1c]
test eax, eax
sete byte [esp + 0x38]
call fcn.00435dbb
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], bl
call fcn.00435dbb
mov al, byte [esp + 0x38]
test al, al
je 0x40536d
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esp + 0x10]
mov eax, dword [edx - 8]
dec eax
push eax
call fcn.004361be
mov esi, dword [esp + 0x34]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00435b30
mov dword [esp + 0x20], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 1
call fcn.00435dbb
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call fcn.00435dbb
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x4063e0
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x160
lea eax, [esp]
mov dword [0x456d94], 0
mov dword [0x456d98], 0
push esi
mov esi, dword [esp + 0x168]
push edi
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push 0x101
push 0x160
push eax
push 0
push esi
call edi
test eax, eax
je 0x406435
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov dword [0x456da0], ecx
mov dword [0x456d98], edx
push 0x103
lea eax, [esp + 0xc]
push 0x160
push eax
push 0
push esi
call edi
pop edi
pop esi
test eax, eax
je 0x406463
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov dword [0x456d9c], ecx
mov dword [0x456d94], edx
add esp, 0x160
ret

Function at 0x4064a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43fdf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.004179a3
mov esi, dword [esp + 0x38]
lea ecx, [esp + 8]
push esi
mov dword [esp + 0x34], 0
call fcn.00435e29
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x30], 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 3
jne 0x406502
cmp byte [esi + 1], 0x3a
jne 0x406502
cmp byte [esi + 2], 0x5c
jne 0x406502
push 0x4532c0
jmp 0x406507
push str..
lea ecx, [esp + 0xc]
call fcn.004360af
mov eax, dword [esp + 8]
push 0
push eax
lea ecx, [esp + 0x14]
call fcn.00417a66
test eax, eax
je 0x406551
lea ecx, [esp + 0xc]
call fcn.00417c86
mov edx, dword [esp + 0xc]
push 0x10
lea ecx, [esp + 0x10]
mov esi, eax
call dword [edx + 0x38]
test eax, eax
je 0x40654d
lea ecx, [esp + 0xc]
call fcn.00417c4d
test eax, eax
je 0x406585
test esi, esi
jne 0x406524
lea ecx, [esp + 8]
mov byte [esp + 0x30], 0
call fcn.00435dbb
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.004179e0
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
lea ecx, [esp + 8]
mov byte [esp + 0x30], 0
call fcn.00435dbb
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.004179e0
mov ecx, dword [esp + 0x28]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
Function at 0x406920
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x43fe6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd0
push ebx
push ebp
push esi
mov esi, dword [esp + 0xf0]
push edi
mov ebp, ecx
push esi
call fcn.004063e0
add esp, 4
lea ecx, [esp + 0x10]
push esi
call fcn.00435e29
lea eax, [esp + 0x14]
push 1
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0xf0], 0
call fcn.0042f0fd
mov eax, dword [eax]
push 0x4532c4
push eax
call fcn.0041fc65
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
sete bl
call fcn.00435dbb
test bl, bl
je 0x4069ac
mov ecx, dword [esp + 0x10]
push 0
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x14]
dec eax
push eax
call fcn.004361be
mov ebx, dword [esp + 0xf0]
mov eax, dword [ebp + 0x23c]
cmp ebx, eax
jne 0x406aa9
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x7c]
push edx
push 0x4532d4
push eax
call fcn.0041f587
add esp, 0xc
lea ecx, [esp + 0x18]
lea edx, [esp + 0x7c]
push 0
push 0
push 0
push 0
push 0
push 0x64
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x406a1e
mov edi, 0x456d28
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x406a5a
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
mov esi, 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, esi
jbe 0x406a5a
movsx ecx, byte [esp + esi + 0x18]
push ecx
call fcn.0041fd14
mov byte [esp + esi + 0x1c], al
add esp, 4
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
inc esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
jb 0x406a35
mov edx, dword [esp + 0x10]
movsx eax, byte [edx]
push eax
call fcn.0041fb2a
lea ecx, [esp + 0x1c]
push eax
push ecx
lea edx, [esp + 0x88]
push str._s___c:_
push edx
call fcn.0041f587
add esp, 0x14
call fcn.00406470
mov eax, dword [0x456d9c]
mov ecx, dword [0x456da0]
push 0xffff0002
push ebx
push 0
push 0
push 0
push eax
push ecx
lea eax, [esp + 0x98]
jmp 0x406ad5
call fcn.00406470
mov ecx, dword [esp + 0x10]
mov esi, dword [0x456d9c]
mov edi, dword [0x456da0]
push ecx
call fcn.004067f0
add esp, 4
push 0xffff0002
push ebx
push 0
push 0
push 0
push esi
push edi
push eax
push 0x23
lea ecx, [ebp + 0xcc]
call fcn.0043071c
lea ecx, [esp + 0x10]
mov esi, eax
mov dword [esp + 0xe8], 0xffffffff
call fcn.00435dbb
mov ecx, dword [esp + 0xe0]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xdc
ret 8
Function at 0x406b20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43fecf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x4548a0]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x2c], 1
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x38]
mov ebx, 2
push 0x456d28
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], bl
call fcn.00435f44
test esi, esi
je 0x406c7c
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
cmp esi, dword [edi + 0x23c]
je 0x406c7b
lea eax, [esp + 0x3c]
push esi
push eax
lea ecx, [edi + 0xcc]
call fcn.00430593
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 3
call fcn.00435ef4
lea ecx, [esp + 0x3c]
mov byte [esp + 0x30], bl
call fcn.00435dbb
mov ecx, dword [edi + 0xe8]
push esi
push 3
push 0x110a
push ecx
call ebp
cmp eax, dword [edi + 0x23c]
jne 0x406c22
lea edx, [esp + 0x1c]
push 3
push edx
lea ecx, [esp + 0x1c]
call fcn.0042f0fd
lea ecx, [esp + 0x18]
push ebx
push ecx
mov ecx, eax
mov byte [esp + 0x38], 4
call fcn.0042f179
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 5
call fcn.00435ef4
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 4
call fcn.00435dbb
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], bl
call fcn.00435dbb
push 0x4532c4
lea ecx, [esp + 0x18]
call fcn.004360af
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.00435fea
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 6
call fcn.00435ef4
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], bl
call fcn.00435dbb
mov edx, dword [edi + 0xe8]
push esi
push 3
push 0x110a
push edx
call ebp
mov esi, eax
test esi, esi
jne 0x406b84
pop ebp
push 1
push 0x5c
lea ecx, [esp + 0x1c]
call fcn.0042eead
lea eax, [esp + 0x1c]
push 1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 7
call fcn.0042f0fd
mov ecx, dword [esp + 0x14]
mov eax, dword [eax]
push ecx
push eax
call fcn.0041fc65
add esp, 8
lea ecx, [esp + 0x1c]
test eax, eax
sete byte [esp + 0x38]
call fcn.00435dbb
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], bl
call fcn.00435dbb
mov al, byte [esp + 0x38]
test al, al
je 0x406ce7
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esp + 0x10]
mov eax, dword [edx - 8]
dec eax
push eax
call fcn.004361be
mov esi, dword [esp + 0x34]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00435b30
mov dword [esp + 0x20], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 1
call fcn.00435dbb
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call fcn.00435dbb
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 8

Function at 0x408640
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
imul ecx, dword [esp + 0xc]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
sbb eax, eax
neg eax
ret
Function at 0x408670
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x1c]
mov eax, esi
push edi
cdq
push edx
push eax
mov eax, dword [esp + 0x20]
push 0
push eax
call fcn.0041fff0
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
imul eax, esi
lea edx, [esp + 0x20]
push 0
push edx
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
add esp, 8
ret
Function at 0x409100
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x9ccc
call fcn.0041fa20
mov edx, dword [esp + 0x9cd0]
push ebx
push esi
push edi
mov al, byte [edx + 8]
xor ebx, ebx
mov cl, al
lea esi, [esp + 0xc]
and cl, 1
lea edi, [esp + 0x98]
or cl, 0xfa
mov dword [esp + 0xc], ebx
shl cl, 4
mov byte [esp + 0x15], cl
mov ecx, 8
mov byte [esp + 0x10], 0x42
mov byte [esp + 0x11], 0x80
mov byte [esp + 0x12], bl
mov byte [esp + 0x13], bl
mov byte [esp + 0x14], bl
mov byte [esp + 0x16], 0xec
mov byte [esp + 0x18], al
lea eax, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
push ebx
push eax
lea ecx, [esp + 0x4ec0]
push 0x4e20
push ecx
mov ecx, dword [edx]
lea eax, [esp + 0xa8]
push 0x4e20
push eax
push 0x7c088
push ecx
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edx, dword [esp + 0x11]
test eax, eax
mov eax, dword [esp + 0x10]
setne bl
and edx, 0xff
and eax, 0xff
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x40]
push 0x4534b0
push ecx
call fcn.0041f587
add esp, 0x14
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
mov al, bl
pop esi
pop ebx
add esp, 0x9ccc
ret
Function at 0x4091e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc0
push ebx
push ebp
push esi
push edi
mov edi, 0x453aa4
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [esp + 0xd8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, dword [esp + 0xd4]
mov eax, ecx
mov esi, edi
mov edi, ebx
mov dword [esp + 0x10], str.0___
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x14], str.1___
and ecx, 3
mov dword [esp + 0x18], str.2___
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x1c], 0x453a24
mov dword [esp + 0x20], str.4___
mov dword [esp + 0x24], str.5___
mov dword [esp + 0x28], str.6___
mov dword [esp + 0x2c], str.7___
mov dword [esp + 0x30], str.8___
mov dword [esp + 0x34], str.9___
mov dword [esp + 0x38], str.10__
mov dword [esp + 0x3c], str.11__
mov dword [esp + 0x40], str.12__
mov dword [esp + 0x44], str.13__
mov dword [esp + 0x48], str.190_
mov dword [esp + 0x4c], str.191_
mov dword [esp + 0x50], str.192_
mov dword [esp + 0x54], str.193_
mov dword [esp + 0x58], str.194_
mov dword [esp + 0x5c], str.195_
mov dword [esp + 0x60], str.196_
mov dword [esp + 0x64], str.197_
mov dword [esp + 0x68], str.198_
mov dword [esp + 0x6c], str.199_Ultra_DMA
mov dword [esp + 0x70], str.200_
mov dword [esp + 0x74], str.201_
mov dword [esp + 0x78], str.202_
mov dword [esp + 0x7c], str.203_
mov dword [esp + 0x80], str.204_
mov dword [esp + 0x84], str.205_
mov dword [esp + 0x88], str.206_
mov dword [esp + 0x8c], str.207_
mov dword [esp + 0x90], str.208_
mov dword [esp + 0x94], str.209_
mov dword [esp + 0x98], str.220_
mov dword [esp + 0x9c], str.221_
mov dword [esp + 0xa0], str.222_
mov dword [esp + 0xa4], str.223_
mov dword [esp + 0xa8], str.224_
mov dword [esp + 0xac], str.225_
mov dword [esp + 0xb0], str.226_
mov dword [esp + 0xb4], str.227_
mov dword [esp + 0xb8], str.228_
mov dword [esp + 0xbc], str.230_
mov dword [esp + 0xc0], str.231_
mov dword [esp + 0xc4], str.240_
mov dword [esp + 0xc8], str.250_
mov dword [esp + 0xcc], 0x4534c0
xor edi, edi
mov esi, dword [esp + edi*4 + 0x10]
push esi
call fcn.004201b9
mov edx, eax
add esp, 4
cmp edx, ebp
jne 0x409410
lea edi, [esi + 4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or edi, 0xffffffff
jmp 0x409411
inc edi
cmp edx, 0xffffffff
je 0x40941b
cmp edi, 0xffffffff
jne 0x4093d8
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0xc0
ret
Function at 0x409cc0
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov edi, 0x456d28
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x40]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [str..C:]
mov dx, word [0x453b94]
mov al, byte [0x453b96]
mov dword [esp + 0x20], ecx
mov ecx, dword [0x4532bc]
mov word [esp + 0x24], dx
mov byte [esp + 0x26], al
mov dword [esp + 0x10], ecx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor ecx, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x18]
shr edx, cl
test dl, 1
je 0x409dad
mov bl, cl
lea eax, [esp + 0x10]
add bl, 0x41
push eax
mov byte [esp + 0x14], bl
call edi
cmp eax, 3
jne 0x409da9
push 0
push 0
push eax
push 0
push eax
lea ecx, [esp + 0x34]
push 0xc0000000
push ecx
mov byte [esp + 0x40], bl
call esi
cmp eax, 0xffffffff
je 0x409da9
lea edx, [esp + 0x1c]
push 0
push edx
lea ecx, [esp + 0x30]
push 0xc
push ecx
push 0
push 0
push 0x2d1080
push eax
call ebp
test eax, eax
je 0x409da9
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
cmp edx, eax
jne 0x409da9
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
cmp eax, ecx
je 0x409dc6
mov ecx, dword [esp + 0x14]
inc ecx
cmp ecx, 0x1a
mov dword [esp + 0x14], ecx
jl 0x409d36
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x24
ret
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x14]
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x40]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret

Function at 0x409e00
Capabilities:
Get disk size

Disassembly:
sub esp, 0x28
push str.GetDiskFreeSpaceExA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x409e55
lea ecx, [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
push edx
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x18]
push ecx
push edx
call eax
test eax, eax
jne 0x409e3f
or eax, 0xffffffff
add esp, 0x28
ret
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, 0x14
call fcn.00420250
add esp, 0x28
ret
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
lea edx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x34]
lea eax, [esp + 8]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x409e7f
or eax, 0xffffffff
add esp, 0x28
ret
mov eax, dword [esp]
imul eax, dword [esp + 4]
imul eax, dword [esp + 8]
shr eax, 0x14
add esp, 0x28
ret
Function at 0x40df50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x78
mov eax, 0x1111110e
mov edx, 0x101110e
push ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x88]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x6c], eax
mov eax, dword [ecx + 0x8804]
push esi
mov esi, 0xe111111
cmp edx, eax
push edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], 0x2020207
mov dword [esp + 0x40], 0x2060202
mov dword [esp + 0x44], 0x408101f
mov dword [esp + 0x48], 0xe110102
mov dword [esp + 0x50], 0xe110106
mov dword [esp + 0x54], 0x121f0202
mov dword [esp + 0x58], 0x2060a0a
mov dword [esp + 0x60], 0x1f10101e
mov dword [esp + 0x68], 0xe11101e
mov dword [esp + 0x6c], 0x4040808
mov dword [esp + 0x70], 0x1f010202
mov dword [esp + 0x78], 0xe11110e
mov dword [esp + 0x7c], 0xf01110e
mov dword [esp + 0x80], esi
jge 0x40e009
mov eax, dword [ecx + 0x87fc]
mov dword [esp + 0x18], eax
jmp 0x40e013
mov ecx, dword [ecx + 0x8800]
mov dword [esp + 0x18], ecx
xor ecx, ecx
cmp edx, 0x63
setg cl
add ecx, 2
mov dword [esp + 0xc], 1
mov dword [esp + 0x24], ecx
lea eax, [ecx - 1]
test eax, eax
jle 0x40e041
mov esi, dword [esp + 0xc]
lea esi, [esi + esi*4]
shl esi, 1
dec eax
mov dword [esp + 0xc], esi
jne 0x40e031
test ecx, ecx
mov dword [esp + 0x14], 0
jle 0x40e141
push ebp
mov dword [esp + 0x24], ecx
mov eax, edx
mov ecx, 0xa
cdq
idiv dword [esp + 0x10]
cdq
idiv ecx
mov ecx, 5
mov dword [esp + 0x14], ecx
cmp edx, 1
mov dword [esp + 0x2c], edx
jne 0x40e083
mov dword [esp + 0x14], 3
mov ecx, dword [esp + 0x14]
lea edi, [ecx + 0x37]
mov ebx, 0xb
mov dword [esp + 0x20], edi
xor esi, esi
test ecx, ecx
jle 0x40e0f6
mov ebp, dword [esp + edx*8 + 0x38]
mov edx, dword [esp + edx*8 + 0x3c]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x34]
mov ecx, edi
mov eax, ebp
call fcn.00420720
and eax, 1
xor ecx, ecx
or eax, ecx
je 0x40e0e6
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x8c]
push eax
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x34]
mov eax, esi
push ebx
sub eax, edx
lea edx, [eax + ecx + 3]
push edx
call fcn.0040dee0
add esp, 0x14
mov eax, dword [esp + 0x14]
inc esi
dec edi
cmp esi, eax
jl 0x40e0a1
mov edx, dword [esp + 0x2c]
mov ecx, eax
mov edi, dword [esp + 0x20]
sub edi, 8
dec ebx
cmp ebx, 3
mov dword [esp + 0x20], edi
jg 0x40e08f
mov eax, 0x66666667
imul dword [esp + 0x10]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x18]
lea eax, [edx + ecx + 1]
mov edx, dword [esp + 0x94]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
dec eax
mov dword [esp + 0x24], eax
jne 0x40e056
pop ebp
cmp edx, 0x64
jge 0x40e18b
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x8c]
mov edi, dword [esp + 0x88]
push ebx
push esi
push edi
push 0xb
push 0xf
call fcn.0040dee0
push ebx
push esi
push edi
push 0xc
push 0xe
call fcn.0040dee0
push ebx
push esi
push edi
push 0xa
push 0xe
call fcn.0040dee0
push ebx
push esi
push edi
push 0xb
push 0xd
call fcn.0040dee0
add esp, 0x50
pop edi
pop esi
pop ebx
add esp, 0x78
ret 0xc
Function at 0x4135a0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x110
lea eax, [esp]
push esi
lea ecx, [esp + 0xc]
push eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.Software
push reloc.OLEAUT32.dll_SysReAllocString
call esi
lea edx, [esp + 4]
mov ecx, dword [esp + 0xc]
lea eax, [esp + 8]
push edx
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.MicrosoftWindowsCurrentVersionRun
push ecx
call esi
lea edx, [esp + 0x10]
push 0x104
push edx
push 0
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x10]
push 0x104
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov eax, dword [esp + 4]
test eax, eax
jne 0x413653
push edi
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x14]
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x1c]
push 0x453140
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [esp + 8], eax
pop edi
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
mov eax, dword [esp + 4]
pop esi
test eax, eax
sete al
add esp, 0x110
ret

Function at 0x413680
Capabilities:
Delete registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
push eax
push 0x20019
push 0
push str.Software
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov edx, dword [esp + 0xc]
lea ecx, [esp + 8]
push ecx
push 0xf003f
push 0
push str.MicrosoftWindowsCurrentVersionRun
push edx
call esi
mov esi, eax
test esi, esi
jne 0x4136d3
mov eax, dword [esp + 8]
push 0x453140
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, eax
mov ecx, dword [esp + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call edi
mov edx, dword [esp + 0xc]
push edx
call edi
test esi, esi
pop edi
pop esi
sete al
add esp, 8
ret

Function at 0x414350
Capabilities:
Link many functions at runtime

Disassembly:
mov ecx, 0x4572e8
jmp 0x414350
push esi
mov esi, ecx
push str.uxtheme.dll
mov dword [esi + 0x14], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 0x14], eax
je 0x4143ba
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.IsThemeActive
push eax
call edi
mov dword [esi], eax
mov eax, dword [esi + 0x14]
push str.OpenThemeData
push eax
call edi
mov ecx, dword [esi + 0x14]
push str.CloseThemeData
push ecx
mov dword [esi + 4], eax
call edi
mov edx, dword [esi + 0x14]
push str.GetThemeBackgroundContentRect
push edx
mov dword [esi + 8], eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x14]
push str.DrawThemeBackground
push eax
call edi
mov dword [esi + 0x10], eax
mov eax, esi
pop edi
pop esi
ret
mov eax, esi
pop esi
ret