joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40186b
Capabilities:
Encode data using xor

Disassembly:
push ecx
push edi
xor edi, edi
cmp dword [0x431168], edi
mov dword [0x43113c], 2
je 0x401a32
mov ecx, dword [0x431140]
push ebx
push ebp
push esi
mov esi, 0x7fff
mov ebx, 0x3ff
movzx eax, byte [ecx + 0x45db22]
mov edx, dword [0x431148]
and eax, esi
and edx, ebx
mov ebp, ecx
shl edx, 5
xor eax, edx
and ebp, esi
movzx edx, word [eax*2 + 0x44db20]
mov dword [0x431148], eax
lea eax, [eax*2 + 0x44db20]
mov word [ebp*2 + 0x43db20], 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 [0x431168]
cmp edi, eax
pop ecx
jbe 0x4018f4
mov edi, eax
mov ecx, dword [0x431140]
cmp edi, 3
jb 0x40199b
sub ecx, dword [0x431160]
lea eax, [edi - 3]
push eax
push ecx
call fcn.00403af8
sub dword [0x431168], edi
cmp edi, dword [0x431144]
pop ecx
mov dword [esp + 0x14], eax
pop ecx
ja 0x40196d
mov ecx, dword [0x431140]
dec edi
movzx eax, byte [ecx + 0x45db23]
mov edx, dword [0x431148]
inc ecx
and edx, ebx
and eax, esi
shl edx, 5
xor eax, edx
mov dword [0x431148], eax
mov bp, word [eax*2 + 0x44db20]
lea edx, [eax*2 + 0x44db20]
mov eax, ecx
and eax, esi
dec edi
mov word [eax*2 + 0x43db20], bp
mov word [edx], cx
jne 0x40192e
jmp 0x4019bc
mov ecx, dword [0x431140]
add ecx, edi
xor edi, edi
mov dword [0x431140], ecx
movzx eax, byte [ecx + 0x45db20]
movzx edx, byte [ecx + 0x45db21]
and eax, ebx
and edx, esi
shl eax, 5
xor eax, edx
mov dword [0x431148], eax
jmp 0x4019c3
movzx eax, byte [ecx + 0x45db20]
push eax
push 0
call fcn.00403af8
dec dword [0x431168]
pop ecx
pop ecx
mov dword [esp + 0x10], eax
mov ecx, dword [0x431140]
inc ecx
mov dword [0x431140], ecx
cmp dword [esp + 0x10], 0
je 0x4019f7
mov eax, dword [0x431164]
test eax, eax
jl 0x4019db
lea edx, [eax + 0x45db20]
jmp 0x4019dd
xor edx, edx
sub ecx, eax
push 0
push ecx
push edx
call fcn.004032ff
mov ecx, dword [0x431140]
add esp, 0xc
mov dword [0x431164], ecx
mov ebp, 0x106
cmp dword [0x431168], ebp
jae 0x401a20
cmp dword [0x43114c], 0
jne 0x401a20
call fcn.0040150b
cmp dword [0x431168], ebp
mov ecx, dword [0x431140]
jb 0x401a04
cmp dword [0x431168], 0
jne 0x401898
pop esi
pop ebp
pop ebx
jmp 0x401a38
mov ecx, dword [0x431140]
mov edx, dword [0x431164]
pop edi
test edx, edx
jl 0x401a4b
lea eax, [edx + 0x45db20]
jmp 0x401a4d
xor eax, eax
sub ecx, edx
push 1
push ecx
push eax
call fcn.004032ff
add esp, 0x10
ret

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

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x405100
or eax, 0xffffffff
jmp 0x40512e
cmp dword [esp + 8], 0
mov eax, dword [0x42e4a4]
je 0x40512e
push esi
movzx esi, byte [ecx]
mov edx, eax
and edx, 0xff
xor edx, esi
shr eax, 8
mov edx, dword [edx*4 + 0x42e4a8]
xor eax, edx
inc ecx
dec dword [esp + 0xc]
jne 0x40510d
pop esi
mov dword [0x42e4a4], eax
not eax
ret
Function at 0x40521c
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 0x40523d
call fcn.00405411
mov eax, dword [0x48180c]
mov ecx, dword [0x482324]
add eax, dword [ebp + 0x10]
mov dword [0x48180c], eax
lea edx, [eax - 0x8400]
cmp edx, ecx
jle 0x405276
cmp byte [0x4823aa], 0
je 0x405276
sub eax, ecx
push eax
call fcn.00416bbb
mov eax, dword [0x48180c]
pop ecx
mov dword [0x482324], eax
pop ebp
ret

Function at 0x405aa4
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, 0x4813b8
push edi
push 0x9c
mov ecx, esi
call fcn.0041ecff
push 0xa0
mov ecx, esi
mov dword [ebp - 0x10], eax
call fcn.0041ecff
push 0xa4
mov ecx, esi
mov dword [ebp - 0x14], eax
call fcn.0041ecff
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
and byte [ebp - 1], 0
mov edi, eax
mov ebx, 0x3ff
lea ecx, [ebp - 0x2c]
shr ax, 0xa
and edi, ebx
mov dword [ebp - 0x20], eax
call fcn.0041e1c7
and dword [ebp - 8], 0
cmp dword [ebp - 0x10], 0
jbe 0x405bdf
push 8
push esi
mov ecx, 0x481800
call fcn.0041f120
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041eec7
test eax, eax
jl 0x405bdf
push 0
lea ecx, [ebp - 0x2c]
call fcn.0041ecff
push 8
push 4
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0xc], eax
call fcn.0041ecff
lea eax, [eax + esi + 8]
mov ecx, 0x481800
push eax
call fcn.0041f120
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041eec7
push 0
lea ecx, [ebp - 0x2c]
call fcn.0041ecff
push 4
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
call fcn.0041ecff
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
and dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], eax
cmp di, word [ebp - 0xc]
lea esi, [esi + ecx + 4]
je 0x405b98
cmp byte [ebp - 1], 0
jne 0x405bd0
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x14]
jne 0x405bd0
cmp dword [0x4816e4], 0
mov byte [ebp - 1], 1
je 0x405bb7
push dword [ebp - 8]
mov ecx, 0x481080
call fcn.004172b6
mov eax, dword [ebp - 0x18]
jmp 0x405bc0
mov ecx, dword [ebp - 0x1c]
mov dword [0x48170c], ecx
cmp di, word [ebp - 0xc]
jne 0x405bd0
shr ax, 0xa
cmp word [ebp - 0x20], ax
je 0x405bdf
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x405b0e
lea ecx, [ebp - 0x2c]
call fcn.0041e2fd
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406c6d
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.00426f90
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x406d23
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 0x406cb7
lea eax, [ebp - 0xc]
push eax
call edi
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
cmp eax, esi
jae 0x406cd0
mov esi, eax
dec dword [ebp - 4]
jne 0x406ca8
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 0x406cfd
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 0x406d1a
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 0x406d33
Capabilities:
Check for time delay via gettickcount
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b618
push 0x427970
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 0x406d84
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 0x406db5
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 0x406dfb
inc ecx
mov eax, ecx
jmp 0x406e18
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4074a2
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 8]
mov dword [0x481028], esi
call fcn.00408782
mov ebx, eax
xor edi, edi
cmp ebx, edi
jge 0x4074f4
lea ecx, [ebp - 0xc]
call fcn.0041e1c7
push ebx
lea eax, [ebp - 0xc]
push str.Load_template_failed___d_
push eax
call fcn.0041e869
add esp, 0xc
lea ecx, [ebp - 0xc]
call fcn.0041f120
push eax
call fcn.0041fd97
pop ecx
lea ecx, [ebp - 0xc]
call fcn.0041e2fd
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 0x10]
call fcn.004096ff
mov eax, dword [ebp + 0x14]
mov dword [0x481028], edi
cmp eax, edi
je 0x407510
mov dword [eax], esi
cmp dword [esi + 4], edi
mov dword [esi + 0x6c], eax
jne 0x407520
or eax, 0xffffffff
jmp 0x4076a3
push dword [0x481020]
inc dword [0x481018]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [0x481018]
push 0x42
shl eax, 2
push eax
push dword [0x481020]
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
push eax
mov dword [0x481020], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp dword [0x481020], edi
mov dword [0x48101c], eax
jne 0x407573
mov ecx, 0x481a44
call fcn.0041f120
push eax
call fcn.0041fd97
pop ecx
mov eax, dword [0x481018]
mov ecx, dword [0x48101c]
mov dword [ecx + eax*4 - 4], esi
mov ecx, esi
call fcn.00409ab6
mov ecx, esi
call fcn.0040834a
test al, al
je 0x4075d8
mov eax, dword [0x481024]
cmp eax, edi
je 0x4075d8
mov ecx, dword [eax + 0x18]
cmp ecx, dword [esi + 0x18]
jne 0x4075d8
mov ecx, dword [eax + 0x1c]
cmp ecx, dword [esi + 0x1c]
jne 0x4075d8
mov ecx, dword [eax + 0x20]
cmp ecx, dword [esi + 0x20]
jne 0x4075d8
lea ecx, [ebp - 0x10]
push ecx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
push edi
push dword [esi + 0x28]
push dword [esi + 0x24]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MoveWindow]
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 0x407618
push ebx
lea ecx, [esi + 0x70]
call fcn.004211d1
cmp dword [eax + 0x10], 1
je 0x407606
inc ebx
cmp ebx, dword [esi + 0x7c]
jl 0x4075ef
jmp 0x407618
push ebx
lea ecx, [esi + 0x70]
call fcn.004211d1
push dword [eax + 0x50]
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, esi
call fcn.0040834a
test al, al
je 0x4076a0
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 0x42e9e4
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.004080f0
pop ecx
mov dword [0x4811d8], esi
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x407bdc
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x50]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, edi
push 0xfffffffffffffff0
push edi
sete byte [ebp - 1]
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ebx, dword [ebp + 0xc]
mov ecx, eax
mov eax, 0x8000000
push 0
and ecx, eax
pop edi
cmp ecx, eax
mov al, byte [ebx + 0x10]
sete byte [ebp + 0xb]
and al, 1
mov byte [ebp + 0xf], al
mov eax, edi
je 0x407c29
mov eax, dword [esi + 0x1c]
jmp 0x407c6c
cmp byte [ebp + 0xb], 0
je 0x407c36
mov eax, dword [esi + 0x1c]
shl eax, 1
jmp 0x407c6c
mov ecx, dword [ebx + 0x10]
and ecx, 0x40
cmp cl, 0x40
jne 0x407c52
mov ecx, dword [esi + 0x1c]
lea edx, [ecx + ecx*2 + 3]
cmp dword [esi + 0x64], edx
jle 0x407c52
lea eax, [ecx + ecx*2]
jmp 0x407c6c
cmp byte [ebp - 1], 0
je 0x407c6c
mov ecx, dword [esi + 0x1c]
lea edx, [ecx*4 + 4]
cmp dword [esi + 0x64], edx
jle 0x407c6c
mov eax, ecx
shl eax, 2
push 0xcc0020
push edi
push eax
push dword [esi + 0x5c]
push dword [esi + 0x20]
push dword [esi + 0x1c]
push edi
push edi
push dword [ebx + 0x18]
call dword [sym.imp.GDI32.dll_BitBlt]
and byte [ebp - 0xf4], 0
push 0x31
pop ecx
xor eax, eax
lea edi, [ebp - 0xf3]
push 0xc8
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xf4]
push eax
push dword [esi + 0x50]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edi, eax
push 1
test edi, edi
jle 0x407d93
push dword [ebx + 0x18]
call dword [sym.imp.GDI32.dll_SetBkMode]
cmp byte [ebp + 0xb], 0
je 0x407cd5
push 0xa0a0a0
jmp 0x407cd8
push dword [esi + 0x2c]
push dword [ebx + 0x18]
call dword [sym.imp.GDI32.dll_SetTextColor]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0xf4]
push edi
push eax
push dword [ebx + 0x18]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
push 0
push dword [ebx + 0x18]
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov eax, dword [esi + 0x1c]
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
and dword [ebp - 0x18], 0
push 0x25
push eax
lea eax, [ebp - 0xf4]
push edi
push eax
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_DrawTextA]
cmp byte [ebp - 1], 0
je 0x407d91
mov eax, dword [esi + 0x1c]
lea ecx, [eax*4 + 4]
cmp dword [esi + 0x64], ecx
jg 0x407d91
add dword [ebp - 0xc], 6
add dword [ebp - 8], 4
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0xc]
cdq
sub eax, edx
sar ecx, 1
mov edi, eax
mov eax, ecx
sar edi, 1
sub eax, edi
add edi, ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0x20]
cdq
sub eax, edx
mov dword [ebp - 0x24], edi
mov esi, eax
mov eax, dword [ebp - 8]
cdq
sar esi, 1
sub eax, edx
mov edx, esi
sar eax, 1
sub edx, eax
add eax, esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x28], edx
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_DrawFocusRect]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40c165
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
lea eax, [ebp - 8]
push edi
mov edi, ecx
push eax
push 0xa
push dword [edi + 4]
call fcn.0042006d
mov ecx, dword [ebp + 8]
add esp, 0xc
push dword [ebp - 8]
call fcn.0041e314
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
xor ebx, ebx
mov dword [esi], eax
cmp byte [eax], bl
jne 0x40c1a9
mov edi, dword [edi + 4]
push ebx
push ebx
mov ecx, 0x481d50
jmp 0x40c373
push eax
call fcn.00427400
cmp eax, 2
pop ecx
jb 0x40c369
mov ecx, dword [ebp - 8]
mov byte [ebp + 0xb], bl
mov al, byte [ecx]
mov byte [ebp - 3], 0x3a
mov byte [ebp - 4], al
mov eax, dword [esi]
mov byte [ebp - 2], 0x5c
mov byte [ebp - 1], bl
cmp byte [eax], 0x5c
jne 0x40c26d
cmp byte [eax + 1], 0x5c
jne 0x40c26d
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 0x40c2f0
mov esi, dword [ebp - 8]
mov dl, byte [ecx + esi]
cmp dl, 0x3a
jne 0x40c215
cmp ecx, 1
jne 0x40c2e1
cmp dl, 0x7c
je 0x40c2e1
cmp dl, 0x2a
je 0x40c2e1
cmp dl, 0x2f
je 0x40c2e1
cmp dl, 0x3e
je 0x40c2e1
cmp dl, 0x3c
je 0x40c2e1
cmp dl, 0x3f
je 0x40c2e1
cmp dl, 0x22
je 0x40c2e1
cmp ecx, ebx
jle 0x40c263
cmp dl, 0x5c
jne 0x40c263
cmp byte [ecx + esi - 1], dl
je 0x40c2d2
inc ecx
cmp ecx, eax
jl 0x40c204
jmp 0x40c2f0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ecx, dword [ebp - 8]
cmp byte [ecx + 1], 0x3a
jne 0x40c369
mov dl, byte [ecx + 2]
cmp dl, 0x5c
je 0x40c294
cmp dl, bl
jne 0x40c369
cmp eax, 1
jne 0x40c2a8
mov edi, dword [edi + 4]
push ebx
push ebx
mov ecx, 0x481d68
jmp 0x40c373
cmp eax, 3
je 0x40c1e8
cmp eax, 4
je 0x40c1e8
cmp eax, 2
je 0x40c1e8
mov edi, dword [edi + 4]
push ebx
push ebx
mov ecx, 0x481d74
jmp 0x40c373
mov edi, dword [edi + 4]
push ebx
push ebx
mov ecx, 0x481d80
jmp 0x40c373
mov edi, dword [edi + 4]
push ebx
push ebx
mov ecx, 0x481d8c
jmp 0x40c373
cmp byte [ebp + 0xb], bl
jne 0x40c365
lea eax, [ebp - 4]
push 1
push eax
call fcn.0040eeb8
cmp edx, dword [0x48175c]
pop ecx
pop ecx
mov dword [0x481750], eax
mov dword [0x481754], edx
ja 0x40c365
jb 0x40c31f
cmp eax, dword [0x481758]
jae 0x40c365
lea ecx, [ebp - 0x14]
call fcn.0041e1c7
lea eax, [ebp - 4]
mov ecx, 0x481d98
push eax
call fcn.0041f120
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0041e869
mov edi, dword [edi + 4]
add esp, 0xc
lea ecx, [ebp - 0x14]
push ebx
push ebx
call fcn.0041f120
push eax
push edi
mov ecx, 0x481080
call fcn.0041d619
lea ecx, [ebp - 0x14]
call fcn.0041e2fd
jmp 0x40c384
mov al, 1
jmp 0x40c386
mov edi, dword [edi + 4]
push ebx
push ebx
mov ecx, 0x481d5c
call fcn.0041f120
push eax
push edi
mov ecx, 0x481080
call fcn.0041d619
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40c38d
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.0041f120
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
je 0x40c45b
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push edi
xor ebx, ebx
test byte [ebp - 0x144], 0x10
je 0x40c440
cmp byte [ebp - 0x118], 0x2e
je 0x40c440
cmp byte [ebp - 0x118], bl
je 0x40c440
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 0x40c42c
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 0x40c440
inc edi
cmp edi, dword [ebp - 4]
jl 0x40c3f4
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 0x40c3c3
pop edi
pop esi
pop ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
leave
ret 8
Function at 0x40e856
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 0x40e8ab
lea eax, [ebp - 0x104]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
leave
ret

Function at 0x40e8ad
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 0x40e8c8
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 0x40e8d1
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 0x40e8ef
or eax, 0xffffffff
jmp 0x40e962
push edi
push esi
call fcn.00427869
mov edi, eax
pop ecx
test edi, edi
jne 0x40e90e
mov ecx, 0x481a44
call fcn.0041f120
push eax
call fcn.0041fd97
pop ecx
push edi
push esi
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x40e923
push 0xfffffffffffffffd
jmp 0x40e957
and dword [ebp - 4], 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x42eb7c
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x40e942
push 0xfffffffffffffffc
jmp 0x40e957
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.0042785e
pop ecx
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x40e965
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
lea eax, [ebp - 0x10]
push edi
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
xor edi, edi
cmp esi, edi
jne 0x40e989
or eax, 0xffffffff
jmp 0x40eb04
push ebx
push esi
call fcn.00427869
mov ebx, eax
pop ecx
cmp ebx, edi
mov dword [ebp - 0xc], ebx
jne 0x40e9ab
mov ecx, 0x481a44
call fcn.0041f120
push eax
call fcn.0041fd97
pop ecx
push ebx
push esi
push dword [ebp - 0x10]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x40e9c3
push 0xfffffffffffffffd
jmp 0x40eaf7
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 4]
push eax
push str.VarFileInfoTranslation
push ebx
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [ebp - 8]
mov bl, 3
test bl, al
jne 0x40eaf5
cmp eax, edi
je 0x40eaf5
shr eax, 2
test eax, eax
jle 0x40eadb
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x40ea07
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
mov dword [eax], ecx
lea ecx, [ebp - 0x1c]
call fcn.0041e1c7
mov eax, dword [ebp - 4]
mov esi, 0x42ecb4
movzx eax, word [eax]
push eax
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.0041e869
add esp, 0xc
test byte [ebp - 0x1c], bl
je 0x40ea3a
push edi
push 0x30
lea ecx, [ebp - 0x1c]
call fcn.0041ee03
jmp 0x40ea28
push str.StringFileInfo_
lea ecx, [ebp - 0x28]
call fcn.0041e237
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x28]
push eax
call fcn.0041e4c7
push 0x431188
lea ecx, [ebp - 0x1c]
call fcn.0041e314
mov eax, dword [ebp - 4]
movzx eax, word [eax + 2]
push eax
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.0041e869
add esp, 0xc
test byte [ebp - 0x1c], bl
je 0x40ea87
push edi
push 0x30
lea ecx, [ebp - 0x1c]
call fcn.0041ee03
jmp 0x40ea75
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x28]
push eax
call fcn.0041e4c7
push edi
push str.FileDescription
lea ecx, [ebp - 0x28]
call fcn.0041e449
lea eax, [ebp - 8]
lea ecx, [ebp - 0x28]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0041f120
push eax
push dword [ebp - 0xc]
call sub.VERSION.dll_VerQueryValueA
mov ecx, dword [ebp + 0x10]
cmp ecx, edi
je 0x40eac9
push dword [ebp + 8]
call fcn.0041e314
lea ecx, [ebp - 0x28]
call fcn.0041e2fd
lea ecx, [ebp - 0x1c]
call fcn.0041e2fd
jmp 0x40eaf1
mov eax, dword [ebp + 0xc]
mov word [ebp + 8], di
cmp eax, edi
mov word [ebp + 0xa], 0x4b0
je 0x40eaf1
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
push 1
jmp 0x40eaf7
push 0xfffffffffffffffc
pop esi
push dword [ebp - 0xc]
call fcn.0042785e
pop ecx
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret