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

Disassembly:
push 0xffffffffffffffff
push 0x44b118
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 3
lea ecx, [esp + 0x18]
mov byte [esp + 0x14], bl
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.0043cd20
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
push esi
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], ebx
call fcn.00441100
test al, al
je 0x441352
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi]
push eax
call ebp
test eax, eax
je 0x44137d
mov eax, dword [esi]
push eax
call fcn.00441b70
add esp, 4
test al, al
je 0x4412e2
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.00441220
mov eax, dword [esp + 0x14]
push eax
jmp 0x441318
mov eax, dword [esi]
push eax
call fcn.00440220
add esp, 4
test al, al
jne 0x44138d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x441352
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.00441220
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0043c8a0
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x10], bl
mov dword [esp + 0x14], ebx
push 3
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.0043cd20
push esi
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], ebx
call fcn.00441100
test al, al
jne 0x4412ae
lea ecx, [esp + 0x10]
call fcn.00441220
mov edx, dword [esp + 0x14]
push edx
call fcn.0043c8a0
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
lea ecx, [esp + 0x10]
call fcn.00441220
mov eax, dword [esp + 0x14]
push eax
jmp 0x441360
lea ecx, [esp + 0x10]
call fcn.00441220
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0043c8a0
mov ecx, dword [esp + 0x24]
add esp, 4
mov al, 1
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x40636f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406394
mov eax, dword [0x40a90c]
cmp eax, 0xffffffff
je 0x40638b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a90c], 0xffffffff
jmp 0x406407
cmp dword [0x424e80], ebx
je 0x406407
cmp byte [0x424a80], bl
je 0x4063d3
cmp dword [0x40a90c], 0xffffffff
jne 0x4063dc
push 4
push 0x40000000
push 0x424a80
call fcn.00405d6b
cmp eax, 0xffffffff
mov dword [0x40a90c], eax
je 0x406407
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a90c], 0xffffffff
je 0x406407
push esi
mov esi, 0x4256a0
push 0x40aadc
push esi
call sub.KERNEL32.dll_lstrcatA
lea eax, [ebp + 8]
push ebx
push eax
push esi
call sub.KERNEL32.dll_lstrlenA
push eax
push esi
push dword [0x40a90c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4065b7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x424684], 0
push esi
jne 0x4065ee
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4065c8
mov dword [ecx*4 + 0x424680], eax
inc ecx
cmp ecx, 0x100
jl 0x4065c3
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40661f
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x424680]
xor eax, esi
inc ecx
dec edx
jne 0x406601
pop edi
not eax
pop esi
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4012bc
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp esi, 1
jl 0x4012cd
cmp esi, 9
jle 0x4012d8
push str.Invalid_compression_level
call fcn.004052ab
pop ecx
mov edi, 0x10000
xor ebx, ebx
push edi
push ebx
push 0x44aa60
mov dword [0x42e098], esi
call fcn.00424500
mov eax, esi
add esp, 0xc
shl eax, 3
cmp esi, 1
movzx ecx, word [eax + 0x42b07a]
mov dword [0x42e084], ecx
movzx ecx, word [eax + 0x42b078]
mov dword [0x42e09c], ecx
movzx ecx, word [eax + 0x42b07c]
movzx eax, word [eax + 0x42b07e]
mov dword [0x42e090], ecx
mov dword [0x42e094], eax
jne 0x40133a
mov eax, dword [esp + 0x14]
or byte [eax], 4
jmp 0x401346
cmp esi, 9
jne 0x401346
mov eax, dword [esp + 0x14]
or byte [eax], 2
push edi
push 0x45aa60
mov dword [0x42e080], ebx
mov dword [0x42e0a4], ebx
call dword [0x42e078]
pop ecx
cmp eax, ebx
pop ecx
mov dword [0x42e0a8], eax
je 0x4013ba
cmp eax, 0xffffffff
je 0x4013ba
mov esi, 0x106
mov dword [0x42e08c], ebx
cmp eax, esi
jae 0x401392
cmp dword [0x42e08c], ebx
jne 0x401392
call fcn.0040150b
cmp dword [0x42e0a8], esi
jb 0x40137d
xor eax, eax
xor ecx, ecx
movzx edx, byte [ecx + 0x45aa60]
and eax, 0x3ff
and edx, 0x7fff
shl eax, 5
xor eax, edx
inc ecx
cmp ecx, 2
jb 0x401396
mov dword [0x42e088], eax
jmp 0x4013ca
mov dword [0x42e08c], 1
mov dword [0x42e0a8], ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4015e9
Capabilities:
Encode data using xor

Disassembly:
push ecx
and dword [esp], 0
cmp dword [0x42e098], 3
push edi
push 2
pop edi
jg 0x401606
call fcn.0040186b
jmp 0x401868
cmp dword [0x42e0a8], 0
je 0x401840
mov ecx, dword [0x42e080]
push ebx
push ebp
push esi
mov esi, 0x7fff
mov ebp, 0x3ff
movzx eax, byte [ecx + 0x45aa62]
mov edx, dword [0x42e088]
and eax, esi
and edx, ebp
mov ebx, ecx
shl edx, 5
xor eax, edx
and ebx, esi
movzx edx, word [eax*2 + 0x44aa60]
mov dword [0x42e088], eax
lea eax, [eax*2 + 0x44aa60]
mov word [ebx*2 + 0x43aa60], dx
mov ebx, dword [0x42e0a0]
mov word [eax], cx
mov eax, edi
push 2
mov dword [0x42e07c], eax
test edx, edx
pop edi
je 0x4016b7
cmp eax, dword [0x42e084]
jae 0x4016b7
mov eax, ecx
sub eax, edx
cmp eax, 0x7efa
ja 0x4016b7
push edx
call fcn.004013ce
mov edi, eax
mov eax, dword [0x42e0a8]
cmp edi, eax
pop ecx
jbe 0x40169a
mov edi, eax
mov ecx, dword [0x42e080]
cmp edi, 3
jne 0x4016b7
mov eax, ecx
sub eax, dword [0x42e0a0]
cmp eax, 0x1000
jbe 0x4016b7
push 2
pop edi
mov eax, dword [0x42e07c]
cmp eax, 3
jb 0x401781
cmp edi, eax
ja 0x401781
sub ecx, ebx
add eax, 0xfffffffd
dec ecx
push eax
push ecx
call fcn.00403aef
pop ecx
pop ecx
push 1
pop ecx
sub ecx, dword [0x42e07c]
add dword [0x42e0a8], ecx
sub dword [0x42e07c], 2
mov ecx, dword [0x42e080]
movzx edx, byte [ecx + 0x45aa63]
mov edi, dword [0x42e088]
inc ecx
and edi, ebp
and edx, esi
shl edi, 5
xor edx, edi
mov edi, ecx
mov dword [0x42e088], edx
and edi, esi
mov bx, word [edx*2 + 0x44aa60]
dec dword [0x42e07c]
lea edx, [edx*2 + 0x44aa60]
mov word [edi*2 + 0x43aa60], bx
mov word [edx], cx
jne 0x4016f8
and dword [esp + 0x10], 0
push 2
inc ecx
pop edi
test eax, eax
mov dword [0x42e080], ecx
je 0x4017ef
mov eax, dword [0x42e0a4]
test eax, eax
jl 0x401763
lea edx, [eax + 0x45aa60]
jmp 0x401765
xor edx, edx
sub ecx, eax
push 0
push ecx
push edx
call fcn.004032f6
mov ecx, dword [0x42e080]
add esp, 0xc
mov dword [0x42e0a4], ecx
jmp 0x4017ef
cmp dword [esp + 0x10], 0
je 0x4017da
movzx eax, byte [ecx + 0x45aa5f]
push eax
push 0
call fcn.00403aef
pop ecx
test eax, eax
pop ecx
je 0x4017d2
mov eax, dword [0x42e0a4]
test eax, eax
jl 0x4017ae
lea ecx, [eax + 0x45aa60]
jmp 0x4017b0
xor ecx, ecx
mov edx, dword [0x42e080]
push 0
sub edx, eax
push edx
push ecx
call fcn.004032f6
mov ecx, dword [0x42e080]
add esp, 0xc
mov dword [0x42e0a4], ecx
jmp 0x4017e2
mov ecx, dword [0x42e080]
jmp 0x4017e2
mov dword [esp + 0x10], 1
inc ecx
dec dword [0x42e0a8]
mov dword [0x42e080], ecx
mov ebx, 0x106
cmp dword [0x42e0a8], ebx
jae 0x401818
cmp dword [0x42e08c], 0
jne 0x401818
call fcn.0040150b
cmp dword [0x42e0a8], ebx
mov ecx, dword [0x42e080]
jb 0x4017fc
cmp dword [0x42e0a8], 0
jne 0x401626
cmp dword [esp + 0x10], 0
pop esi
pop ebp
pop ebx
je 0x401846
movzx eax, byte [ecx + 0x45aa5f]
push eax
push 0
call fcn.00403aef
pop ecx
pop ecx
mov ecx, dword [0x42e080]
mov edx, dword [0x42e0a4]
test edx, edx
jl 0x401858
lea eax, [edx + 0x45aa60]
jmp 0x40185a
xor eax, eax
sub ecx, edx
push 1
push ecx
push eax
call fcn.004032f6
add esp, 0xc
pop edi
pop ecx
ret
Function at 0x40186b
Capabilities:
Encode data using xor

Disassembly:
push ecx
push edi
xor edi, edi
cmp dword [0x42e0a8], edi
mov dword [0x42e07c], 2
je 0x401a32
mov ecx, dword [0x42e080]
push ebx
push ebp
push esi
mov esi, 0x7fff
mov ebx, 0x3ff
movzx eax, byte [ecx + 0x45aa62]
mov edx, dword [0x42e088]
and eax, esi
and edx, ebx
mov ebp, ecx
shl edx, 5
xor eax, edx
and ebp, esi
movzx edx, word [eax*2 + 0x44aa60]
mov dword [0x42e088], eax
lea eax, [eax*2 + 0x44aa60]
mov word [ebp*2 + 0x43aa60], dx
test edx, edx
mov word [eax], cx
je 0x4018fa
mov eax, ecx
sub eax, edx
cmp eax, 0x7efa
ja 0x4018fa
push edx
call fcn.004013ce
mov edi, eax
mov eax, dword [0x42e0a8]
cmp edi, eax
pop ecx
jbe 0x4018f4
mov edi, eax
mov ecx, dword [0x42e080]
cmp edi, 3
jb 0x40199b
sub ecx, dword [0x42e0a0]
lea eax, [edi - 3]
push eax
push ecx
call fcn.00403aef
sub dword [0x42e0a8], edi
cmp edi, dword [0x42e084]
pop ecx
mov dword [esp + 0x14], eax
pop ecx
ja 0x40196d
mov ecx, dword [0x42e080]
dec edi
movzx eax, byte [ecx + 0x45aa63]
mov edx, dword [0x42e088]
inc ecx
and edx, ebx
and eax, esi
shl edx, 5
xor eax, edx
mov dword [0x42e088], eax
mov bp, word [eax*2 + 0x44aa60]
lea edx, [eax*2 + 0x44aa60]
mov eax, ecx
and eax, esi
dec edi
mov word [eax*2 + 0x43aa60], bp
mov word [edx], cx
jne 0x40192e
jmp 0x4019bc
mov ecx, dword [0x42e080]
add ecx, edi
xor edi, edi
mov dword [0x42e080], ecx
movzx eax, byte [ecx + 0x45aa60]
movzx edx, byte [ecx + 0x45aa61]
and eax, ebx
and edx, esi
shl eax, 5
xor eax, edx
mov dword [0x42e088], eax
jmp 0x4019c3
movzx eax, byte [ecx + 0x45aa60]
push eax
push 0
call fcn.00403aef
dec dword [0x42e0a8]
pop ecx
pop ecx
mov dword [esp + 0x10], eax
mov ecx, dword [0x42e080]
inc ecx
mov dword [0x42e080], ecx
cmp dword [esp + 0x10], 0
je 0x4019f7
mov eax, dword [0x42e0a4]
test eax, eax
jl 0x4019db
lea edx, [eax + 0x45aa60]
jmp 0x4019dd
xor edx, edx
sub ecx, eax
push 0
push ecx
push edx
call fcn.004032f6
mov ecx, dword [0x42e080]
add esp, 0xc
mov dword [0x42e0a4], ecx
mov ebp, 0x106
cmp dword [0x42e0a8], ebp
jae 0x401a20
cmp dword [0x42e08c], 0
jne 0x401a20
call fcn.0040150b
cmp dword [0x42e0a8], ebp
mov ecx, dword [0x42e080]
jb 0x401a04
cmp dword [0x42e0a8], 0
jne 0x401898
pop esi
pop ebp
pop ebx
jmp 0x401a38
mov ecx, dword [0x42e080]
mov edx, dword [0x42e0a4]
pop edi
test edx, edx
jl 0x401a4b
lea eax, [edx + 0x45aa60]
jmp 0x401a4d
xor eax, eax
sub ecx, edx
push 1
push ecx
push eax
call fcn.004032f6
add esp, 0x10
ret

Function at 0x4050ea
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x4050f7
or eax, 0xffffffff
jmp 0x405125
cmp dword [esp + 8], 0
mov eax, dword [0x42b4a4]
je 0x405125
push esi
movzx esi, byte [ecx]
mov edx, eax
and edx, 0xff
xor edx, esi
shr eax, 8
mov edx, dword [edx*4 + 0x42b4a8]
xor eax, edx
inc ecx
dec dword [esp + 0xc]
jne 0x405104
pop esi
mov dword [0x42b4a4], eax
not eax
ret
Function at 0x405213
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0x10]
push 0
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x405234
call fcn.00405408
mov eax, dword [0x47e6f8]
mov ecx, dword [0x47f204]
add eax, dword [ebp + 0x10]
mov dword [0x47e6f8], eax
lea edx, [eax - 0x8400]
cmp edx, ecx
jle 0x40526d
cmp byte [0x47f28a], 0
je 0x40526d
sub eax, ecx
push eax
call fcn.00414f7f
mov eax, dword [0x47e6f8]
pop ecx
mov dword [0x47f204], eax
pop ebp
ret
Function at 0x406ade
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
push 0x10
lea eax, [ebp - 0x2c]
push 0
push eax
or esi, 0xffffffff
call fcn.00424500
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x406b94
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push ebx
mov dword [ebp - 4], 0xa
lea eax, [ebp - 0x14]
push eax
call edi
mov eax, 0x80000000
mov bx, 0xfa0
bsf ecx, eax
dec bx
jne 0x406b28
lea eax, [ebp - 0xc]
push eax
call edi
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
cmp eax, esi
jae 0x406b41
mov esi, eax
dec dword [ebp - 4]
jne 0x406b19
mov ecx, dword [ebp - 0x1c]
push 0xa
mov eax, ecx
xor edx, edx
pop edi
imul esi, esi, 0x186a0
div edi
xor edx, edx
pop ebx
mov edi, eax
mov eax, esi
div edi
xor edx, edx
mov esi, eax
div ecx
shr ecx, 1
cmp edx, ecx
jbe 0x406b6e
inc esi
mov edi, dword [ebp + 0xc]
xor edx, edx
mov eax, edi
div esi
xor edx, edx
mov ecx, eax
mov eax, edi
div esi
mov eax, esi
mov dword [ebp - 0x24], ecx
shr eax, 1
cmp edx, eax
jbe 0x406b8b
inc ecx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x2c]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
leave
ret

Function at 0x406ba4
Capabilities:
Check for time delay via gettickcount
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4285c0
push 0x424ee0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov ebx, eax
mov dword [ebp - 0x30], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebp - 0x24], eax
push 0xf
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [ebp - 0x20], eax
call esi
sub eax, dword [ebp - 0x20]
je 0x406bf5
call esi
mov dword [ebp - 0x20], eax
and dword [ebp - 4], 0
rdtsc
mov dword [ebp - 0x1c], eax
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x24]
push ebx
call edi
push 0x3c
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0xf
push ebx
call edi
call esi
mov dword [ebp - 0x2c], eax
call esi
sub eax, dword [ebp - 0x2c]
je 0x406c26
call esi
mov esi, eax
rdtsc
mov dword [ebp - 0x34], eax
push dword [ebp - 0x24]
push ebx
call edi
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x1c]
sub esi, dword [ebp - 0x20]
xor edx, edx
div esi
mov esi, eax
xor edx, edx
mov ecx, 0x3e8
div ecx
mov ecx, eax
mov eax, esi
xor edx, edx
push 0x64
pop esi
div esi
lea edx, [ecx + ecx*4]
shl edx, 1
sub eax, edx
cmp eax, 5
jb 0x406c6c
inc ecx
mov eax, ecx
jmp 0x406c89
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407147
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 8]
mov dword [0x47df64], esi
call fcn.00408121
mov ebx, eax
xor edi, edi
cmp ebx, edi
jge 0x407199
lea ecx, [ebp - 0xc]
call fcn.0041bdc5
push ebx
lea eax, [ebp - 0xc]
push str.Load_template_failed___d_
push eax
call fcn.0041c467
add esp, 0xc
lea ecx, [ebp - 0xc]
call fcn.0041cd1e
push eax
call fcn.0041d881
pop ecx
lea ecx, [ebp - 0xc]
call fcn.0041befb
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 0x10]
call fcn.00408c8c
mov eax, dword [ebp + 0x14]
mov dword [0x47df64], edi
cmp eax, edi
je 0x4071b5
mov dword [eax], esi
cmp dword [esi + 4], edi
mov dword [esi + 0x6c], eax
jne 0x4071c5
or eax, 0xffffffff
jmp 0x4072f9
push dword [0x47df5c]
inc dword [0x47df54]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [0x47df54]
push 0x42
shl eax, 2
push eax
push dword [0x47df5c]
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
push eax
mov dword [0x47df5c], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp dword [0x47df5c], edi
mov dword [0x47df58], eax
jne 0x407218
mov ecx, 0x47e924
call fcn.0041cd1e
push eax
call fcn.0041d881
pop ecx
mov eax, dword [0x47df54]
mov ecx, dword [0x47df58]
mov dword [ecx + eax*4 - 4], esi
mov ecx, esi
call fcn.00408e91
push edi
push edi
push 0x110
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
xor ebx, ebx
cmp dword [esi + 0x7c], edi
jle 0x40726e
push ebx
lea ecx, [esi + 0x70]
call fcn.0041e860
cmp dword [eax + 0x10], 1
je 0x40725c
inc ebx
cmp ebx, dword [esi + 0x7c]
jl 0x407245
jmp 0x40726e
push ebx
lea ecx, [esi + 0x70]
call fcn.0041e860
push dword [eax + 0x50]
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, esi
call fcn.00407d82
test al, al
je 0x4072f6
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetSystemMenu]
mov ebx, eax
push edi
mov edi, dword [sym.imp.USER32.dll_DeleteMenu]
push 0xf120
push ebx
call edi
push 0
push 0xf020
push ebx
call edi
push 0
push 0xf030
push ebx
call edi
push 0
push 0xf000
push ebx
call edi
push 0x400
push 1
push ebx
call edi
mov edi, dword [sym.imp.USER32.dll_AppendMenuA]
push 0x42b9cc
push 2
push 0x800
push ebx
call edi
push str.About...
push 1
push 0
push ebx
call edi
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
call fcn.00407b45
pop ecx
mov dword [0x47e110], esi
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40b4a9
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
lea eax, [ebp - 8]
push edi
mov esi, ecx
push eax
push 0xa
push dword [esi + 4]
call fcn.0041dba4
mov ecx, dword [ebp + 8]
add esp, 0xc
push dword [ebp - 8]
call fcn.0041bf12
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
xor ebx, ebx
mov dword [eax], ecx
mov al, byte [ecx]
cmp al, bl
jne 0x40b4ef
mov esi, dword [esi + 4]
push ebx
push ebx
mov ecx, 0x47ec30
jmp 0x40b699
mov byte [ebp - 4], al
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x5c
mov byte [ebp - 1], bl
cmp byte [ecx], 0x5c
mov byte [ebp + 0xb], bl
jne 0x40b599
cmp byte [ecx + 1], 0x5c
jne 0x40b599
mov byte [ebp + 0xb], 1
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [ebp + 0xb]
neg cl
sbb ecx, ecx
and ecx, 2
cmp ecx, eax
jge 0x40b616
mov edi, dword [ebp - 8]
mov dl, byte [ecx + edi]
cmp dl, 0x3a
jne 0x40b544
cmp ecx, 1
jne 0x40b607
cmp dl, 0x7c
je 0x40b607
cmp dl, 0x2a
je 0x40b607
cmp dl, 0x2f
je 0x40b607
cmp dl, 0x3e
je 0x40b607
cmp dl, 0x3c
je 0x40b607
cmp dl, 0x3f
je 0x40b607
cmp dl, 0x22
je 0x40b607
cmp ecx, ebx
jle 0x40b592
cmp dl, 0x5c
jne 0x40b592
cmp byte [ecx + edi - 1], dl
je 0x40b5f8
inc ecx
cmp ecx, eax
jl 0x40b533
jmp 0x40b616
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ecx, dword [ebp - 8]
cmp byte [ecx + 1], 0x3a
jne 0x40b68f
cmp byte [ecx + 2], 0x5c
jne 0x40b68f
cmp eax, 1
jne 0x40b5ce
mov esi, dword [esi + 4]
push ebx
push ebx
mov ecx, 0x47ec48
jmp 0x40b699
cmp eax, 3
je 0x40b517
cmp eax, 4
je 0x40b517
cmp eax, 2
je 0x40b517
mov esi, dword [esi + 4]
push ebx
push ebx
mov ecx, 0x47ec54
jmp 0x40b699
mov esi, dword [esi + 4]
push ebx
push ebx
mov ecx, 0x47ec60
jmp 0x40b699
mov esi, dword [esi + 4]
push ebx
push ebx
mov ecx, 0x47ec6c
jmp 0x40b699
cmp byte [ebp + 0xb], bl
jne 0x40b68b
lea eax, [ebp - 4]
push 1
push eax
call fcn.0040de4d
cmp edx, dword [0x47e654]
pop ecx
pop ecx
mov dword [0x47e648], eax
mov dword [0x47e64c], edx
ja 0x40b68b
jb 0x40b645
cmp eax, dword [0x47e650]
jae 0x40b68b
lea ecx, [ebp - 0x14]
call fcn.0041bdc5
lea eax, [ebp - 4]
mov ecx, 0x47ec78
push eax
call fcn.0041cd1e
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0041c467
mov esi, dword [esi + 4]
add esp, 0xc
lea ecx, [ebp - 0x14]
push ebx
push ebx
call fcn.0041cd1e
push eax
push esi
mov ecx, 0x47dfb8
call fcn.0041b2cc
lea ecx, [ebp - 0x14]
call fcn.0041befb
jmp 0x40b6aa
mov al, 1
jmp 0x40b6ac
mov esi, dword [esi + 4]
push ebx
push ebx
mov ecx, 0x47ec3c
call fcn.0041cd1e
push eax
push esi
mov ecx, 0x47dfb8
call fcn.0041b2cc
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40b6b3
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x144]
push eax
call fcn.0041cd1e
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
je 0x40b781
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push edi
xor ebx, ebx
test byte [ebp - 0x144], 0x10
je 0x40b766
cmp byte [ebp - 0x118], 0x2e
je 0x40b766
cmp byte [ebp - 0x118], bl
je 0x40b766
push ebx
push ebx
push 0x18b
push 0xb
push dword [ebp + 8]
call esi
xor edi, edi
cmp eax, ebx
mov dword [ebp - 4], eax
jle 0x40b752
lea eax, [ebp - 0x248]
mov byte [ebp - 0x248], bl
push eax
push edi
push 0x189
push 0xb
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40b766
inc edi
cmp edi, dword [ebp - 4]
jl 0x40b71a
lea eax, [ebp - 0x118]
push eax
push ebx
push 0x180
push 0xb
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x144]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40b6e9
pop edi
pop esi
pop ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
leave
ret 8
Function at 0x40d808
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
and byte [ebp - 0x104], 0
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
pop edi
jne 0x40d85d
lea eax, [ebp - 0x104]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
leave
ret

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40d87a
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
ret

Function at 0x40d883
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push esi
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x40d8a1
or eax, 0xffffffff
jmp 0x40d914
push edi
push esi
call fcn.00424dd9
mov edi, eax
pop ecx
test edi, edi
jne 0x40d8c0
mov ecx, 0x47e924
call fcn.0041cd1e
push eax
call fcn.0041d881
pop ecx
push edi
push esi
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x40d8d5
push 0xfffffffffffffffd
jmp 0x40d909
and dword [ebp - 4], 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x42bc5c
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x40d8f4
push 0xfffffffffffffffc
jmp 0x40d909
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
push 1
mov ecx, dword [eax + 8]
mov dword [edx], ecx
mov ecx, dword [ebp + 0x10]
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
pop esi
push edi
call fcn.00424dce
pop ecx
mov eax, esi
pop edi
pop esi
leave
ret