joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100f28f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x101908c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x18], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov esi, 0x100423c
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
movsw word es:[edi], word [esi]
cmp ax, 0x61
jb 0x100f25f
cmp ax, 0x7a
jbe 0x100f272
lea ecx, [eax - 0x41]
cmp cx, 0x19
jbe 0x100f272
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100f2c2
mov word [ebp - 0xc], ax
xor eax, eax
test ebx, ebx
setne al
push 0
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0100ef2b
test eax, eax
je 0x100f2c2
xor ecx, ecx
inc ecx
cmp dword [eax], ecx
jb 0x100f2b2
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x100f2a3
mov edx, dword [eax + 8]
mov dword [ecx], edx
test ebx, ebx
je 0x100f2b2
mov ecx, dword [eax + 0x10]
mov dword [ebx], ecx
mov ecx, dword [eax + 0x14]
mov dword [ebx + 4], ecx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100d691
leave
ret 0xc
Function at 0x100f412
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
cmp ebx, edi
jne 0x100f3e2
mov eax, 0x80070057
jmp 0x100f50a
push esi
push 0x1004424
push ebx
call fcn.0100e819
test eax, eax
je 0x100f4e8
mov esi, dword [sym.imp.msvcrt.dll_wcschr]
lea eax, [ebx + 4]
push 0x5c
push eax
call esi
pop ecx
pop ecx
cmp eax, edi
jne 0x100f416
mov dword [ebp + 8], 0x8007000d
jmp 0x100f506
mov ecx, ebx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
lea edx, [ecx + 2]
mov di, word [ecx]
inc ecx
inc ecx
test di, di
jne 0x100f421
sub ecx, edx
add eax, 2
sar ecx, 1
push 0x5c
push eax
mov edi, ecx
call esi
pop ecx
pop ecx
xor ecx, ecx
cmp eax, ecx
jne 0x100f445
mov esi, edi
jmp 0x100f44b
sub eax, ebx
sar eax, 1
mov esi, eax
cmp dword [ebp + 0x10], ecx
je 0x100f463
lea eax, [ebp - 4]
push eax
push esi
push ecx
push ebx
call fcn.0100e78a
mov dword [ebp + 8], eax
xor ecx, ecx
jmp 0x100f466
mov dword [ebp + 8], ecx
cmp dword [ebp + 8], ecx
jl 0x100f4b3
cmp dword [ebp + 0x14], ecx
je 0x100f483
lea eax, [ebp - 8]
push eax
sub edi, esi
push edi
push esi
push ebx
call fcn.0100e78a
mov dword [ebp + 8], eax
xor ecx, ecx
cmp dword [ebp + 8], ecx
jl 0x100f4b3
mov eax, dword [ebp + 0x10]
cmp eax, ecx
je 0x100f497
mov edx, dword [ebp - 4]
mov dword [eax], edx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0x14]
cmp eax, ecx
je 0x100f4a6
mov edx, dword [ebp - 8]
mov dword [eax], edx
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 0xc]
cmp eax, ecx
je 0x100f4b3
mov dword [eax], 1
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp dword [ebp - 4], ecx
je 0x100f4d6
push dword [ebp - 4]
push 0
call edi
push eax
call esi
test eax, eax
je 0x100f4d6
and dword [ebp - 4], 0
cmp dword [ebp - 8], 0
je 0x100f506
push dword [ebp - 8]
push 0
call edi
push eax
call esi
jmp 0x100f506
mov eax, dword [ebp + 0xc]
mov dword [ebp + 8], edi
cmp eax, edi
je 0x100f4f4
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x100f4fd
mov dword [eax], edi
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x100f506
mov dword [eax], edi
mov eax, dword [ebp + 8]
pop esi
pop edi
pop ebx
leave
ret 0x10
Function at 0x100faaa
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x100fb20
xor eax, eax
cmp ax, word [esi]
je 0x100fb20
push ebx
push edi
push esi
call fcn.0100f533
mov dword [ebp + 8], eax
cmp eax, edi
je 0x100fad7
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0x3000000
mov edi, 0x1019504
test eax, eax
jne 0x100faae
call esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push 0x10048b8
push ebx
push edi
call fcn.0100dc59
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x100faf9
cmp dword [ebp - 4], eax
jne 0x100fac8
call esi
mov dword [ebp - 4], eax
call esi
push eax
push dword [ebp + 8]
push 0x1004838
push ebx
push edi
jmp 0x100faf1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x10047c0
push 0x3000000
mov dword [ebp - 4], eax
push 0x1019504
call fcn.0100dc59
add esp, 0x14
cmp dword [ebp + 8], 0
pop ebx
je 0x100fb12
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
jmp 0x100fb2a
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
leave
ret 4

Function at 0x10103ab
Capabilities:
Connect network resource

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
mov esi, eax
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x10103c0
cmp dword [ebp + 8], ebx
je 0x10103c0
cmp esi, ebx
je 0x10103c0
push 0x38
push ebx
push esi
call fcn.0100d6ea
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x1c]
shl eax, 4
add eax, dword [edi + 0x20]
add esp, 0xc
add edi, 0x2c
push edi
push dword [ebp + 8]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ebx
call fcn.01010b11
mov dword [esi + 0x28], eax
cmp eax, ebx
je 0x10103b6
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
cmp eax, ebx
je 0x1010397
add eax, 2
jmp 0x101039a
mov eax, dword [esi + 0x28]
push ebx
push dword [esi + 0x28]
mov dword [esi + 0x2c], eax
call fcn.0100f341
mov dword [esi + 0x30], eax
cmp eax, ebx
je 0x10103b6
mov dword [ebp - 4], 1
jmp 0x10103bb
call fcn.010101e4
mov eax, dword [ebp - 4]
jmp 0x10103ca
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401012
mov eax, dword [0x4a01a7]
shl eax, 2
mov dword [0x4a01ab], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00494ad0
pop edx
call fcn.00493dd8
call fcn.00494ad4
push 0
call fcn.00495d68
pop ecx
push 0x4a0150
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x4a01af], eax
push 0
jmp fcn.0049cb8c
Function at 0x406b38
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [eax]
cmp edx, 0x11
jle 0x406b58
mov ecx, dword [eax + edx*4]
xor dword [eax + edx*4 - 0x44], ecx
mov ecx, dword [eax + edx*4]
xor dword [eax + edx*4 - 0x38], ecx
xor ecx, ecx
mov dword [eax + edx*4], ecx
dec edx
cmp edx, 0x11
jg 0x406b3f
cmp dword [eax], 0x11
jbe 0x406b73
mov dword [eax], 0x11
jmp 0x406b67
dec dword [eax]
mov edx, dword [eax]
test edx, edx
je 0x406b73
cmp dword [eax + edx*4], 0
je 0x406b65
ret

Function at 0x4073ac
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
mov eax, dword [esi]
cmp eax, dword [ebx]
jae 0x4073f3
mov eax, 1
jmp 0x4073cc
mov edx, dword [esi + eax*4]
xor edx, dword [ebx + eax*4]
mov dword [edi + eax*4], edx
inc eax
cmp eax, dword [esi]
jbe 0x4073c2
mov ecx, dword [ebx]
mov edx, eax
sub ecx, dword [esi]
shl ecx, 2
shl edx, 2
push ecx
mov ecx, edx
add ecx, ebx
add edx, edi
push ecx
push edx
call fcn.00494d68
add esp, 0xc
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x407458
mov eax, dword [esi]
cmp eax, dword [ebx]
jbe 0x407431
mov eax, 1
jmp 0x40740a
mov edx, dword [esi + eax*4]
xor edx, dword [ebx + eax*4]
mov dword [edi + eax*4], edx
inc eax
cmp eax, dword [ebx]
jbe 0x407400
mov ecx, dword [esi]
mov edx, eax
sub ecx, dword [ebx]
shl ecx, 2
shl edx, 2
push ecx
mov ecx, edx
add ecx, esi
add edx, edi
push ecx
push edx
call fcn.00494d68
add esp, 0xc
mov eax, dword [esi]
mov dword [edi], eax
jmp 0x407458
mov eax, dword [ebx]
test eax, eax
jbe 0x407444
mov edx, dword [esi + eax*4]
xor edx, dword [ebx + eax*4]
jne 0x407444
dec eax
test eax, eax
ja 0x407437
mov dword [edi], eax
test eax, eax
jbe 0x407458
mov ecx, dword [esi + eax*4]
xor ecx, dword [ebx + eax*4]
mov dword [edi + eax*4], ecx
dec eax
test eax, eax
ja 0x40744a
pop edi
pop esi
pop ebx
ret
Function at 0x408c3c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff790
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 0x35], dl
mov ebx, eax
mov eax, 0x4a0c70
call fcn.00495388
cmp byte [ebx + 0x6e2d], 0
mov eax, dword [ebx + 0x13cc]
je 0x408c7a
cmp byte [eax + 0x20e1], 0
jne 0x408c7a
cmp byte [ebx + 0x6e28], 0
je 0x408c8b
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
mov eax, edx
jmp 0x408e1f
mov word [ebp - 0x24], 8
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.0040ecfc
inc dword [ebp - 0x18]
xor edx, edx
mov word [ebp - 0x24], 0x14
movzx eax, word [ebx + 0x4708]
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, dword [ebx + 0x470c]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
push edx
push eax
mov eax, ebx
xor edx, edx
call fcn.00409c30
mov eax, ebx
call fcn.004053a4
cmp byte [ebp - 0x35], 0
je 0x408d08
push pe_nt_image_headers32
lea edx, [ebp - 0x238]
push edx
push dword [0x4c244c]
call sub.USER32.DLL_GetWindowTextA
mov eax, 0x34a
call fcn.0041202c
call fcn.0047e984
call fcn.0047de20
mov edx, dword [ebx + 0x46d8]
sub edx, 0x76
je 0x408d20
sub edx, 3
je 0x408d5a
dec edx
je 0x408d6c
jmp 0x408da5
test byte [ebx + 0x4704], 0x20
jne 0x408d48
dec dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0040ed68
mov ecx, dword [ebp - 0x34]
mov dword fs:[0], ecx
jmp 0x408e1f
lea ecx, [ebp - 0x870]
mov dl, byte [ebp - 0x35]
mov eax, ebx
call fcn.00408544
jmp 0x408da5
lea ecx, [ebp - 0x870]
mov dl, byte [ebp - 0x35]
mov eax, ebx
call fcn.00408e28
jmp 0x408da5
push 0x4a0b64
lea eax, [ebx + 0x5470]
push eax
call fcn.00494f0c
add esp, 8
test eax, eax
sete dl
and edx, 1
test dl, dl
je 0x408d9e
lea ecx, [ebp - 0x870]
mov dl, byte [ebp - 0x35]
mov eax, ebx
call fcn.00409080
jmp 0x408da5
mov byte [ebp - 0x23a], 1
cmp byte [ebp - 0x35], 0
je 0x408dbb
lea eax, [ebp - 0x238]
call fcn.0047e984
call fcn.0047de20
test esi, esi
je 0x408dd0
push esi
mov edi, esi
lea esi, [ebp - 0x870]
mov ecx, 0x18e
rep movsd dword es:[edi], dword [esi]
pop esi
cmp byte [ebp - 0x23a], 0
je 0x408e05
cmp byte [ebp - 0x35], 0
je 0x408e05
mov eax, 0x2a9
call fcn.0041202c
push eax
add ebx, 0x17
push ebx
call fcn.00448a7c
add esp, 8
mov eax, 0x4af120
mov edx, 1
call fcn.0042cf98
dec dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0040ed68
mov ecx, dword [ebp - 0x34]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409540
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov ebx, eax
push edi
mov dword [ebp - 4], edx
xor edx, edx
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0xc18], edx
cmp byte [ebx + 0x16], 0
mov esi, ecx
je 0x409563
mov al, 1
cmp byte [ebp + 8], 0
mov edi, 0x80000000
je 0x409574
or edi, 0x40000000
mov dword [ebp - 8], 1
test al, al
je 0x409583
or dword [ebp - 8], 2
cmp byte [ebx + 0x15], 0
je 0x40958d
xor eax, eax
jmp 0x409592
mov eax, 0x8000000
mov dword [ebp - 0xc], eax
call fcn.0040ffc8
test eax, eax
je 0x4095bf
test esi, esi
je 0x4095bf
cmp word [esi], 0
je 0x4095bf
push 0
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp - 8]
push edi
push esi
call sub.KERNEL32.DLL_CreateFileW
mov edi, eax
jmp 0x4095d6
push 0
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp - 8]
push edi
push dword [ebp - 4]
call sub.KERNEL32.DLL_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
jne 0x4095ef
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jne 0x4095ef
mov dword [ebx + 0xc18], 1
xor edx, edx
cmp edi, 0xffffffff
mov byte [ebx + 0x12], 0
setne cl
mov dword [ebx + 0xc], edx
and ecx, 1
mov byte [ebx + 0x10], 0
mov byte [ebp - 0xd], cl
cmp byte [ebp - 0xd], 0
je 0x40965d
mov dword [ebx + 4], edi
test esi, esi
je 0x409624
lea eax, [ebx + 0x418]
mov edx, esi
call fcn.0041023c
jmp 0x40962d
mov word [ebx + 0x418], 0
cmp dword [ebp - 4], 0
je 0x409644
push dword [ebp - 4]
lea ecx, [ebx + 0x17]
push ecx
call fcn.00494f58
add esp, 8
jmp 0x409653
lea edx, [ebx + 0x17]
mov ecx, 0x10000000
mov eax, esi
call fcn.0041001c
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.00409774
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40990c
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe8
mov esi, ecx
test esi, esi
mov edi, eax
mov dword [esp], edx
je 0x409ac4
mov eax, dword [edi + 0xc]
test eax, eax
je 0x409947
dec eax
je 0x409931
dec eax
je 0x40993d
jmp 0x409947
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
jmp 0x409947
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
cmp dword [edi + 0xc], 0
je 0x409999
xor ebp, ebp
cmp esi, ebp
jle 0x4099b5
push 0
lea eax, [esp + 8]
push eax
mov edx, esi
sub edx, ebp
cmp edx, 0x4000
jge 0x40996c
mov ecx, esi
sub ecx, ebp
jmp 0x409971
mov ecx, 0x4000
push ecx
mov eax, dword [esp + 0xc]
add eax, ebp
push eax
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne bl
and ebx, 1
test bl, bl
je 0x4099b5
add ebp, 0x4000
cmp esi, ebp
jg 0x409953
jmp 0x4099b5
push 0
lea eax, [esp + 8]
push eax
push esi
push dword [esp + 0xc]
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne bl
and ebx, 1
test bl, bl
jne 0x409ac0
cmp byte [edi + 0x14], 0
je 0x409ac0
cmp dword [edi + 0xc], 0
jne 0x409ac0
call sub.KERNEL32.DLL_GetLastError
mov ebp, eax
mov eax, edi
call fcn.00409ce8
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
lea eax, [edi + 0x17]
call fcn.0040a3e0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
push ebp
call sub.KERNEL32.DLL_SetLastError
mov eax, esi
cdq
cmp edx, dword [esp + 0x14]
jne 0x409a0e
cmp eax, dword [esp + 0x10]
jae 0x409a5a
jmp 0x409a10
jge 0x409a5a
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
push edx
push eax
mov eax, esi
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
cmp edx, 0
jne 0x409a32
cmp eax, 0xffffffff
ja 0x409a5a
jmp 0x409a34
jg 0x409a5a
mov eax, esi
cdq
add eax, dword [esp + 8]
adc edx, dword [esp + 0xc]
cmp edx, 0
jne 0x409a4b
cmp eax, 0xffffffff
jbe 0x409a5a
jmp 0x409a4d
jle 0x409a5a
lea edx, [edi + 0x17]
mov eax, 0x4af120
call fcn.0042cd20
lea edx, [edi + 0x17]
mov eax, 0x4af120
call fcn.0042cd54
test al, al
je 0x409aaa
mov ecx, dword [esp + 4]
cmp ecx, esi
jae 0x409947
cmp dword [esp + 4], 0
jbe 0x409947
mov eax, edi
call fcn.00409ce8
push edx
push eax
mov eax, dword [esp + 0xc]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
xor edx, edx
mov eax, edi
call fcn.00409c30
jmp 0x409947
lea ecx, [edi + 0x17]
mov eax, 0x4af120
xor edx, edx
call fcn.0042cd08
jmp 0x409ac0
mov byte [edi + 8], 1
add esp, 0x18
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x409bb0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, eax
push esi
push edi
push ecx
mov edi, edx
cmp dword [ebx + 0xc], 1
mov esi, ecx
jne 0x409bd7
cmp esi, 0x4e20
jle 0x409bcd
mov esi, 0x4e20
push 0xfffffffffffffff6
call sub.KERNEL32.DLL_GetStdHandle
mov dword [ebx + 4], eax
push 0
lea eax, [esp + 4]
push eax
push esi
push edi
push dword [ebx + 4]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x409c28
mov eax, ebx
call fcn.00409f54
test al, al
je 0x409c0f
cmp esi, 0x4e20
jle 0x409c0f
mov ecx, 0x4e20
mov edx, edi
mov eax, ebx
call fcn.00409bb0
jmp 0x409c2b
cmp dword [ebx + 0xc], 1
jne 0x409c23
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x6d
jne 0x409c23
xor eax, eax
jmp 0x409c2b
or eax, 0xffffffff
jmp 0x409c2b
mov eax, dword [esp]
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40a05c
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
call fcn.0040ffc8
test eax, eax
je 0x40a082
test ebx, ebx
je 0x40a082
cmp word [ebx], 0
je 0x40a082
push 0
push ebx
call sub.KERNEL32.DLL_CreateDirectoryW
jmp 0x40a08a
push 0
push esi
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
je 0x40a09d
mov ecx, edi
mov edx, ebx
mov eax, esi
call fcn.0040a964
xor eax, eax
jmp 0x40a0b8
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
je 0x40a0ac
cmp eax, 3
jne 0x40a0b3
mov eax, 2
jmp 0x40a0b8
mov eax, 1
pop edi
pop esi
pop ebx
ret

Function at 0x40a3a4
Capabilities:
Get disk information

Disassembly:
add esp, 0xfffffc00
mov edx, esp
call fcn.0040c534
cmp byte [esp], 0
je 0x40a3bb
mov eax, esp
jmp 0x40a3bd
xor eax, eax
push eax
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
je 0x40a3d1
cmp eax, 5
je 0x40a3d1
xor edx, edx
jmp 0x40a3d6
mov edx, 1
mov eax, edx
add esp, 0x400
ret
Function at 0x40a3e0
Capabilities:
Get disk size

Disassembly:
push ebx
push esi
add esp, 0xfffffbd0
mov ebx, eax
lea edx, [esp + 0x30]
mov eax, ebx
call fcn.0040c534
cmp dword [0x4a0d7c], 0
jne 0x40a41e
push 0x4a0d80
call sub.KERNEL32.DLL_GetModuleHandleA
mov esi, eax
test esi, esi
je 0x40a41e
push str.GetDiskFreeSpaceExA
push esi
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a0d7c], eax
cmp dword [0x4a0d7c], 0
je 0x40a48d
lea edx, [esp + 0x30]
mov eax, ebx
call fcn.0040bfac
xor ecx, ecx
lea eax, [esp + 8]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ecx
push eax
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x18]
push eax
cmp byte [esp + 0x3c], 0
je 0x40a458
lea edx, [esp + 0x3c]
jmp 0x40a45a
xor edx, edx
push edx
call dword [0x4a0d7c]
test eax, eax
je 0x40a48d
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0xc]
ja 0x40a48d
mov eax, dword [esp + 0x14]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, dword [esp + 0x18]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
jmp 0x40a4fa
lea ecx, [esp + 0x24]
push ecx
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x24]
push ecx
cmp byte [esp + 0x40], 0
je 0x40a4ae
lea eax, [esp + 0x40]
jmp 0x40a4b0
xor eax, eax
push eax
call sub.KERNEL32.DLL_GetDiskFreeSpaceA
test eax, eax
jne 0x40a4c3
mov eax, 0x163e00
xor edx, edx
jmp 0x40a4fa
mov eax, dword [esp + 0x18]
imul dword [esp + 0x1c]
xor edx, edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x20]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
call fcn.00499460
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
add esp, 0x430
pop esi
pop ebx
ret

Function at 0x40a504
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.0040ffc8
test eax, eax
je 0x40a52f
test ebx, ebx
je 0x40a52f
cmp word [ebx], 0
je 0x40a52f
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret

Function at 0x40a938
Capabilities:
Get file attributes

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.0040ffc8
test eax, eax
je 0x40a95a
test ebx, ebx
je 0x40a95a
cmp word [ebx], 0
je 0x40a95a
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
pop esi
pop ebx
ret

Function at 0x40a964
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
call fcn.0040ffc8
test eax, eax
je 0x40a991
test ebx, ebx
je 0x40a991
cmp word [ebx], 0
je 0x40a991
push esi
push ebx
call sub.KERNEL32.DLL_SetFileAttributesW
test eax, eax
setne al
and eax, 1
jmp 0x40a9a0
push esi
push edi
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
setne al
and eax, 1
pop edi
pop esi
pop ebx
ret
Function at 0x40aae8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9b0
push ebx
push esi
push edi
mov edi, eax
mov eax, 0x4a0e90
call fcn.00495388
mov word [ebp - 0x30], 8
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.0040ecfc
inc dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
mov word [ebp - 0x30], 0x14
mov word [ebp - 0x30], 0x20
mov edx, 0x10000
call fcn.00402a88
inc dword [ebp - 0x24]
or esi, 0xffffffff
mov word [ebp - 0x30], 0x14
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
cmp dword [0x4c244c], 0
je 0x40ab71
lea eax, [ebp - 0x250]
call fcn.0047e9ac
push pe_nt_image_headers32
lea edx, [ebp - 0x450]
push edx
push dword [0x4c244c]
call sub.USER32.DLL_GetWindowTextA
mov eax, edi
call fcn.00409ee8
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
push 0
push 0
xor edx, edx
mov eax, edi
call fcn.00409c30
jmp 0x40ac2e
add dword [ebp - 0x48], 1
adc dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
and eax, 0xf
xor edx, edx
cmp edx, 0
jne 0x40ac08
cmp eax, 0
jne 0x40ac08
cmp dword [0x4c244c], 0
je 0x40ac03
push 0
push 0x10000
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
call fcn.00499460
push edx
push eax
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
call fcn.0040ebdc
push eax
mov eax, 0x51e
call fcn.0041202c
push eax
lea edx, [ebp - 0x650]
push edx
call fcn.00497eb8
add esp, 0xc
lea eax, [ebp - 0x650]
call fcn.0047e9bc
call fcn.0047de20
call fcn.0040faf8
mov ecx, ebx
mov edx, dword [ebp - 0x1c]
mov eax, esi
call fcn.00410774
cmp dword [ebp + 0xc], 0x80000000
mov esi, eax
jne 0x40ac23
cmp dword [ebp + 8], 0
je 0x40ac2e
mov eax, ebx
cdq
sub dword [ebp + 8], eax
sbb dword [ebp + 0xc], edx
cmp dword [ebp + 0xc], 0x80000000
jne 0x40ac44
cmp dword [ebp + 8], 0
jne 0x40ac44
mov ecx, 0x10000
jmp 0x40ac63
cmp dword [ebp + 0xc], 0
jne 0x40ac55
cmp dword [ebp + 8], 0x10000
jbe 0x40ac5e
jmp 0x40ac57
jle 0x40ac5e
mov ecx, 0x10000
jmp 0x40ac63
mov eax, dword [ebp + 8]
mov ecx, eax
mov edx, dword [ebp - 0x1c]
mov eax, edi
call fcn.00409acc
mov ebx, eax
test eax, eax
jne 0x40ab90
cmp dword [0x4c244c], 0
je 0x40ac9b
lea eax, [ebp - 0x250]
call fcn.0047e9bc
lea eax, [ebp - 0x450]
call fcn.0047e984
call fcn.0047de20
mov eax, esi
mov edx, 2
xor eax, 0xffffffff
push eax
lea eax, [ebp - 0x1c]
dec dword [ebp - 0x24]
call fcn.004017ec
dec dword [ebp - 0x24]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0040ed68
pop eax
mov edx, dword [ebp - 0x40]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8