joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409200
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4446ae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80c
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov eax, dword [ebp + 0x60]
push eax
call fcn.004083e0
xor ebx, ebx
mov ecx, ebp
mov dword [ebp + 0x60], ebx
call fcn.00407a50
push 0x118
call fcn.00433489
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov dword [esp + 0x824], ebx
je 0x409261
mov ecx, eax
call fcn.00407f50
jmp 0x409263
xor eax, eax
lea esi, [ebp + 4]
mov dword [ebp + 0x60], eax
mov eax, dword [esi]
cmp eax, 0xffffffff
mov dword [esp + 0x824], 0xffffffff
je 0x409284
push eax
call fcn.004210cb
add esp, 4
push 0x8000
push str.data.sah
mov dword [esi], 0xffffffff
call fcn.00421a90
add esp, 8
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4092bb
xor al, al
mov ecx, dword [esp + 0x81c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 3
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.00421343
mov eax, dword [esi]
push 4
lea edx, [ebp + 0x88]
push edx
push eax
call fcn.00421343
mov edx, dword [esi]
push 4
lea ecx, [ebp + 0x80]
push ecx
push edx
call fcn.00421343
mov ecx, dword [esi]
push 0x28
lea eax, [ebp + 0x14]
push eax
push ecx
call fcn.00421343
mov edx, dword [ebp + 0x60]
add esp, 0x30
push edx
push esi
mov ecx, ebp
call fcn.004087f0
push esi
mov ecx, ebp
call fcn.00408d10
lea eax, [ebp + 0x9c]
push 4
push eax
mov dword [eax], ebx
mov eax, dword [esi]
push eax
call fcn.00421343
mov eax, dword [esi]
add esp, 0xc
cmp eax, 0xffffffff
je 0x409335
push eax
call fcn.004210cb
add esp, 4
push 0x447a1c
push str.delete.lst
mov dword [esi], 0xffffffff
call fcn.00420efc
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4093f6
xor eax, eax
mov ecx, 0x200
lea edi, [esp + 0x18]
push esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
push 0x800
push ecx
call fcn.00421df2
add esp, 0xc
test eax, eax
je 0x4093db
jmp 0x409380
mov cl, byte [esp + 0x18]
xor eax, eax
cmp cl, bl
je 0x4093a7
lea ebx, [ebx]
mov cl, byte [esp + eax + 0x18]
cmp cl, 9
je 0x4093a7
cmp cl, 0xa
je 0x4093a7
mov cl, byte [esp + eax + 0x19]
inc eax
cmp cl, bl
jne 0x409390
lea edx, [esp + 0x18]
push edx
mov ecx, ebp
mov byte [esp + eax + 0x1c], bl
call fcn.00408a00
xor eax, eax
mov ecx, 0x200
lea edi, [esp + 0x18]
push esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push 0x800
push eax
call fcn.00421df2
add esp, 0xc
test eax, eax
jne 0x409380
push esi
call fcn.00420e4f
add esp, 4
push str.delete.lst
mov byte [ebp + 0xa0], 1
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x81c]
pop edi
mov al, 1
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a2e0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov ecx, dword [esi + 0x110]
call fcn.0040d890
test al, al
je 0x40a3a8
mov eax, dword [esi + 0x64]
test eax, eax
mov dword [esp + 4], 0
jbe 0x40a3a8
push ebx
push ebp
push edi
nop
mov eax, dword [esi + 0x1c]
mov ebp, dword [esi + 0x70]
mov ebx, dword [esp + 0x10]
mov edi, dword [esi + 0x14]
and eax, 0xfffd
or eax, 2
add ebp, ebx
mov bl, byte [ebp]
mov dword [esp + 0x14], eax
call fcn.0040f1f0
xor ebx, edi
and ebx, 0xff
mov eax, dword [eax + ebx*4]
mov ebx, dword [esi + 0x18]
shr edi, 8
xor eax, edi
mov edi, dword [esi + 0x1c]
mov dword [esi + 0x14], eax
and eax, 0xff
add eax, ebx
imul eax, eax, 0x8088405
inc eax
mov ebx, eax
mov dword [esi + 0x18], eax
shr ebx, 0x18
call fcn.0040f1f0
xor ebx, edi
and ebx, 0xff
mov ecx, dword [eax + ebx*4]
mov eax, dword [esp + 0x14]
shr edi, 8
xor edi, ecx
mov ecx, eax
xor ecx, 1
imul ecx, eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x1c], edi
mov bl, byte [ebp]
sar ecx, 8
xor bl, cl
mov byte [ebp], bl
mov ecx, dword [esi + 0x64]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jb 0x40a310
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret

Function at 0x40a3b0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x110]
call fcn.0040d890
test al, al
je 0x40a455
mov eax, dword [esp + 8]
push ebp
xor ebp, ebp
test eax, eax
jbe 0x40a454
push ebx
push edi
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x70]
mov bl, byte [eax + ebp]
and ecx, 0xfffd
or ecx, 2
mov edx, ecx
xor edx, 1
imul edx, ecx
add eax, ebp
sar edx, 8
xor bl, dl
mov byte [eax], bl
mov edi, dword [esi + 0x14]
call fcn.0040f1f0
xor ebx, edi
and ebx, 0xff
mov eax, dword [eax + ebx*4]
shr edi, 8
xor eax, edi
mov edi, dword [esi + 0x18]
mov dword [esi + 0x14], eax
and eax, 0xff
add eax, edi
mov edi, dword [esi + 0x1c]
imul eax, eax, 0x8088405
inc eax
mov ebx, eax
mov dword [esi + 0x18], eax
shr ebx, 0x18
call fcn.0040f1f0
xor ebx, edi
and ebx, 0xff
mov edx, dword [eax + ebx*4]
mov eax, dword [esp + 0x14]
shr edi, 8
xor edi, edx
inc ebp
cmp ebp, eax
mov dword [esi + 0x1c], edi
jb 0x40a3d7
pop edi
pop ebx
pop ebp
pop esi
ret 4
Function at 0x40a660
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
xor ebp, ebp
test eax, eax
mov dword [esi + 0x14], 0x12345678
mov dword [esi + 0x18], 0x23456789
mov dword [esi + 0x1c], 0x34567890
jbe 0x40a6e3
push ebx
push edi
mov eax, dword [esi + 0xc]
mov bl, byte [eax + ebp]
mov edi, dword [esi + 0x14]
call fcn.0040f1f0
xor ebx, edi
and ebx, 0xff
mov eax, dword [eax + ebx*4]
shr edi, 8
xor eax, edi
mov edi, dword [esi + 0x18]
mov dword [esi + 0x14], eax
and eax, 0xff
add eax, edi
mov edi, dword [esi + 0x1c]
imul eax, eax, 0x8088405
inc eax
mov ebx, eax
mov dword [esi + 0x18], eax
shr ebx, 0x18
call fcn.0040f1f0
xor ebx, edi
and ebx, 0xff
mov edx, dword [eax + ebx*4]
shr edi, 8
xor edi, edx
mov dword [esi + 0x1c], edi
mov eax, dword [esi + 0x10]
inc ebp
cmp ebp, eax
jb 0x40a684
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x40a6f0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push 0xffffffffffffffff
push 0x444798
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push ebp
mov esi, ecx
push 0xc
lea ecx, [esp + 0x1c]
call fcn.0040be90
mov eax, dword [esp + 0x18]
push ebp
push 0xc
push eax
lea ecx, [esi + 0x78]
mov dword [esp + 0x34], ebp
call fcn.0040eea0
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0x18]
mov dl, byte [ecx + ebp]
mov edi, dword [esi + 0x14]
and eax, 0xfffd
or eax, 2
mov ebx, eax
xor ebx, 1
imul ebx, eax
sar ebx, 8
xor bl, dl
call fcn.0040f1f0
mov ecx, dword [esi + 0x18]
xor edx, edx
mov dl, bl
xor edx, edi
and edx, 0xff
mov eax, dword [eax + edx*4]
shr edi, 8
xor eax, edi
mov edi, dword [esi + 0x1c]
mov dword [esi + 0x14], eax
and eax, 0xff
add eax, ecx
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x18], eax
shr eax, 0x18
mov byte [esp + 0x10], al
call fcn.0040f1f0
xor ecx, ecx
mov cl, byte [esp + 0x10]
xor ecx, edi
and ecx, 0xff
mov edx, dword [eax + ecx*4]
shr edi, 8
xor edi, edx
inc ebp
cmp ebp, 0xc
mov dword [esi + 0x1c], edi
jl 0x40a730
mov ecx, dword [esi + 0x110]
call fcn.0040d8a0
test al, al
mov esi, dword [esi + 0x110]
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
je 0x40a7d6
mov al, byte [esi + 0x11]
jmp 0x40a7d9
mov al, byte [esi + 0x17]
cmp al, bl
sete bl
call fcn.0040bec0
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x40aad0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4447e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0xe4], 0xff
push edi
mov dword [ebp - 0x10], esp
jne 0x40ac3f
mov al, byte [ebp + 0xc]
xor ebx, ebx
cmp al, bl
mov dword [ebp - 0x14], 1
jne 0x40abf4
cmp dword [esi + 0x60], ebx
jne 0x40ab35
mov eax, dword [esi + 0x110]
mov ecx, dword [esi + 0x68]
cmp ecx, dword [eax + 0x14]
je 0x40ab3c
push 0xffffffffffffff9a
mov ecx, esi
call fcn.0040a840
jmp 0x40ab3c
mov dword [ebp - 0x14], 0xffffffff
mov eax, dword [esi + 0x110]
cmp word [eax + 0xe], 8
jne 0x40ab52
lea edx, [esi + 0x28]
push edx
call fcn.0040f410
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x40abf4
push ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x144], ebx
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x130], ebx
call fcn.004222b3
mov ecx, dword [esi + 0x110]
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x144], eax
add esp, 4
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x140], edx
mov byte [ebp - 0x124], bl
call fcn.0040da40
mov ecx, dword [eax]
mov dword [ebp - 0x13c], ecx
mov edx, dword [eax + 4]
lea eax, [ebp - 0x144]
push eax
push edi
mov dword [ebp - 0x138], edx
call fcn.004368f2
mov eax, dword [esi + 0x110]
mov ecx, dword [eax + 0x24]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x40abf4
mov dword [ebp - 0x14], 0xfffffffe
lea ecx, [esi + 0xe8]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ca00
lea ecx, [esi + 0x6c]
mov byte [esi + 0xe4], bl
call fcn.0040bd30
mov ecx, esi
call fcn.0040a460
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40b5e0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4448b9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebx
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 0
call fcn.00404280
push 0x447ae8
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0
call fcn.0040b130
mov ecx, dword [esp + 8]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.0040b280
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
push ecx
push eax
mov byte [esp + 0x2c], 1
mov dword [esp + 0x1c], 1
call fcn.0042221f
add esp, 0x10
or esi, 0xffffffff
test eax, eax
je 0x40b66e
mov edx, dword [esp + 8]
push edx
call fcn.0040a210
add esp, 4
cmp eax, esi
je 0x40b66e
xor bl, bl
jmp 0x40b670
mov bl, 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x1c], 0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b695
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
mov eax, dword [esp + 8]
jne 0x40b72d
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.0040b280
mov eax, dword [eax]
push eax
mov byte [esp + 0x28], 2
call fcn.0040b5e0
mov bl, al
mov eax, dword [esp + 0x1c]
add esp, 0xc
neg bl
sbb bl, bl
add eax, 0xfffffff0
inc bl
mov byte [esp + 0x1c], 0
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b6e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
mov eax, dword [esp + 8]
jne 0x40b6ff
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
mov eax, dword [esp + 8]
jne 0x40b72d
add eax, 0xfffffff0
mov dword [esp + 0x1c], esi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x40b71a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
add eax, 0xfffffff0
mov dword [esp + 0x1c], esi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x40b748
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x14]
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x40bcc0
Capabilities:
Get disk information

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push eax
lea ecx, [esp + 8]
push ecx
call fcn.0040bc80
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
mov eax, dword [esp + 4]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bd01
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, bl
pop ebx
pop ecx
ret
Function at 0x40d170
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x444988
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
call fcn.0040cd70
mov ecx, dword [esi + 0x2c]
push 0
mov dword [esi + 0x30], eax
mov ecx, dword [ecx + 0x1c]
mov edx, dword [ecx]
push 0
push eax
call dword [edx + 0x28]
push 0
push 0x16
lea ecx, [esp + 0xc]
call fcn.0040be90
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + 0x1c]
mov eax, dword [esp + 8]
mov edx, dword [ecx]
push 0x16
push eax
mov dword [esp + 0x20], 0
call dword [edx + 0x34]
cmp eax, 0x16
je 0x40d1d8
push 0xffffffffffffff9b
mov ecx, esi
call fcn.0040c870
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov dword [esi + 4], ecx
mov dx, word [eax + 4]
mov word [esi + 8], dx
mov cx, word [eax + 6]
mov word [esi + 0xa], cx
mov dx, word [eax + 8]
mov word [esi + 0xc], dx
mov cx, word [eax + 0xa]
mov word [esi + 0xe], cx
mov edx, dword [eax + 0xc]
mov dword [esi + 0x10], edx
mov ecx, dword [eax + 0x10]
mov dword [esi + 0x14], ecx
push edi
mov di, word [eax + 0x14]
lea ecx, [esp + 8]
call fcn.0040bd30
mov ecx, dword [esi + 0x2c]
xor edx, edx
mov dx, word [esi + 8]
push edx
call fcn.0040e150
mov ecx, dword [esi + 0x2c]
call fcn.0040deb0
test eax, eax
jne 0x40d24e
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x30]
add eax, edx
cmp ecx, eax
jae 0x40d24e
push 0xffffffffffffff9b
mov ecx, esi
call fcn.0040c870
test di, di
je 0x40d27e
movzx edi, di
push 0
push edi
lea ecx, [esi + 0x18]
call fcn.0040bd60
mov ecx, dword [esi + 0x2c]
mov eax, dword [esi + 0x1c]
mov ecx, dword [ecx + 0x1c]
mov edx, dword [ecx]
push edi
push eax
call dword [edx + 0x34]
cmp eax, edi
je 0x40d27e
push 0xffffffffffffff9b
mov ecx, esi
call fcn.0040c870
mov ecx, dword [esi + 0x2c]
call fcn.0040deb0
test eax, eax
pop edi
je 0x40d28f
xor eax, eax
jmp 0x40d29c
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
sub eax, edx
sub eax, ecx
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x40d2ac
cmp word [esi + 0xe], ax
jne 0x40d2b7
cmp word [esi + 0xe], 0
jne 0x40d2c0
test eax, eax
je 0x40d2c0
push 0xffffffffffffff9b
mov ecx, esi
call fcn.0040c870
movzx eax, word [esi + 0xa]
mov ecx, dword [esi + 0x2c]
push eax
mov byte [esi + 0x3c], 1
call fcn.0040eda0
mov eax, dword [esi + 0x10]
test eax, eax
je 0x40d2df
mov ecx, esi
call fcn.0040d090
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call fcn.0040bec0
mov ecx, dword [esp + 0x10]
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x40d680
Capabilities:
Access peb ldr_data
Enumerate pe sections
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x444af8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push 0
mov esi, ecx
push 0x2e
lea ecx, [esp + 0x1c]
call fcn.0040be90
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x30]
push 1
push 0x2e
push eax
mov ecx, edi
mov dword [esp + 0x34], 0
call fcn.0040eea0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov dword [esi + 4], ecx
mov dx, word [eax + 4]
mov word [esi + 8], dx
mov cx, word [eax + 6]
mov word [esi + 0xa], cx
mov dx, word [eax + 8]
mov word [esi + 0xc], dx
mov cx, word [eax + 0xa]
mov word [esi + 0xe], cx
mov dx, word [eax + 0xc]
mov word [esi + 0x10], dx
mov cx, word [eax + 0xe]
mov word [esi + 0x12], cx
mov edx, dword [eax + 0x10]
mov dword [esi + 0x14], edx
mov ecx, dword [eax + 0x14]
mov dword [esi + 0x18], ecx
mov edx, dword [eax + 0x18]
mov dword [esi + 0x1c], edx
mov cx, word [eax + 0x20]
mov dx, word [eax + 0x22]
mov bx, word [eax + 0x1c]
mov bp, word [eax + 0x1e]
mov word [esi + 0x20], dx
mov word [esp + 0x30], cx
mov cx, word [eax + 0x24]
mov word [esi + 0x22], cx
mov edx, dword [eax + 0x26]
mov dword [esi + 0x24], edx
mov eax, dword [eax + 0x2a]
lea ecx, [esp + 0x14]
mov dword [esi + 0x28], eax
call fcn.0040bd30
mov edx, dword [esi + 4]
mov ecx, 0x45822c
cmp edx, dword [ecx]
je 0x40d77c
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.0040bec0
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
mov ecx, edi
call fcn.0040ded0
movzx ebx, bx
push 0
push ebx
lea ecx, [esi + 0x38]
mov dword [esp + 0x18], eax
call fcn.0040bd60
mov eax, dword [esi + 0x3c]
mov ecx, dword [edi + 0x1c]
mov edx, dword [ecx]
push ebx
push eax
call dword [edx + 0x34]
test bp, bp
je 0x40d7c2
movzx ebx, bp
push 0
push ebx
lea ecx, [esi + 0x2c]
call fcn.0040bd60
mov eax, dword [esi + 0x30]
mov ecx, dword [edi + 0x1c]
mov edx, dword [ecx]
push ebx
push eax
call dword [edx + 0x34]
mov eax, dword [esp + 0x30]
test ax, ax
je 0x40d7e6
movzx ebx, ax
push 0
push ebx
lea ecx, [esi + 0x44]
call fcn.0040bd60
mov esi, dword [esi + 0x48]
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
push ebx
push esi
call dword [eax + 0x34]
mov ecx, edi
call fcn.0040ded0
cmp eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
sete bl
mov dword [esp + 0x28], 0xffffffff
call fcn.0040bec0
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x40e070
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x444b98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov ecx, dword [ecx + 0x1c]
mov eax, dword [ecx]
push ebx
lea edx, [esp + 8]
push edx
call dword [eax + 0x18]
mov eax, dword [eax]
push eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0x2c], 0
call fcn.0040bc80
mov eax, dword [eax]
add esp, 8
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov ebx, eax
mov eax, dword [esp + 4]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e0f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e117
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
pop ebx
je 0x40e12d
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov eax, dword [esp + 8]
imul eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
imul eax, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x24
ret

Function at 0x40f270
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x40f27f
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x458258]
test eax, eax
je 0x40f28d
call fcn.0040f210
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
cmp edx, 8
push ebx
not eax
jb 0x40f38f
push edi
mov edi, edx
shr edi, 3
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [ecx*4 + 0x45e674]
sub edx, 8
xor eax, ebx
inc esi
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x45e674]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x45e674]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x45e674]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x45e674]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x45e674]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x45e674]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x45e674]
xor eax, ecx
inc esi
dec edi
jne 0x40f2a7
pop edi
test edx, edx
je 0x40f3b1
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x45e674]
xor eax, ecx
inc esi
dec edx
jne 0x40f393
pop ebx
pop esi
not eax
ret 0xc
Function at 0x41697d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x4169d0
call fcn.00440691
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x4169d0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x4169c6
xor eax, eax
jmp 0x416ae9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x416a00
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x416a00
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x416ae6
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x416a2d
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0040a0e0
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x416ae6
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x416a76
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x416a76
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x416a70
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0040a0e0
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x416ad6
and dword [ebp + 0xc], 0
jmp 0x416ad6
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x416ad6
push 0xc
call fcn.00433489
mov esi, eax
test esi, esi
pop ecx
je 0x416ab8
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x416aba
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x416ad1
push dword [ebp - 8]
call fcn.0042ec9b
jmp 0x416ad6
call fcn.0042ec72
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x416a3b
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc