joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4105a8
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4198a0]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x4105d9
xor eax, eax
jmp 0x410762
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x41a980]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x410615
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.004123d6
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4106f0
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x41072e
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x410679
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41066a
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x41064a
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4106b9
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x4106c2
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x41063b
jmp 0x4106c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x41075d
cmp dword [ebp - 0x6c], edi
je 0x41072e
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x410723
call fcn.004087d6
mov dword [eax], 9
call fcn.004087df
mov dword [eax], esi
jmp 0x410758
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x410718
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x4106c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x4106c4
push dword [ebp - 0x6c]
call fcn.004087e8
pop ecx
jmp 0x410758
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x410746
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x410746
xor eax, eax
jmp 0x410760
call fcn.004087d6
mov dword [eax], 0x1c
call fcn.004087df
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x410760
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00409bce
add ebp, 0x3a0
leave
ret
Function at 0x411565
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00408590
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x411600
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x41a62c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x411600
cmp eax, 1
je 0x411621
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x411600
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4115cd
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4115fc
xor eax, eax
inc eax
jmp 0x411640
cmp edi, eax
jae 0x411604
xor eax, eax
jmp 0x411640
cmp eax, esi
jae 0x41160b
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x41a62c]
jmp 0x411624
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x411e41
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x41a870], ebx
push esi
push edi
jne 0x411ec1
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x411efc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x41a870], eax
je 0x411efc
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x41a874], eax
call esi
cmp dword [0x41a62c], 2
mov dword [0x41a878], eax
jne 0x411ec1
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x41a880], eax
je 0x411ec1
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x41a87c], eax
mov eax, dword [0x41a87c]
test eax, eax
je 0x411f06
call eax
test eax, eax
je 0x411eed
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x41a880]
test eax, eax
je 0x411eed
test byte [ebp - 8], 1
jne 0x411f06
cmp dword [0x41a638], 4
jb 0x411f00
or byte [ebp + 0x12], 0x20
jmp 0x411f25
xor eax, eax
jmp 0x411f35
or byte [ebp + 0x12], 4
jmp 0x411f25
mov eax, dword [0x41a874]
test eax, eax
je 0x411f25
call eax
mov ebx, eax
test ebx, ebx
je 0x411f25
mov eax, dword [0x41a878]
test eax, eax
je 0x411f25
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x41a870]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411f3a
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x416878
call fcn.00409704
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x41a884], edi
jne 0x411f7e
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x411f69
mov dword [0x41a884], ebx
jmp 0x411f7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x411f7e
mov dword [0x41a884], 2
mov eax, dword [0x41a884]
cmp eax, ebx
jne 0x411f9e
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x412061
cmp eax, 2
je 0x411fa7
cmp eax, edi
jne 0x411fcf
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x411fba
mov eax, dword [0x41a7cc]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x411fd6
xor eax, eax
jmp 0x412061
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00408590
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x412009
cmp esi, edi
jne 0x41201f
push dword [ebp - 0x20]
call fcn.00409f53
pop ecx
mov esi, eax
cmp esi, edi
je 0x411fcf
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x412052
cmp dword [ebp + 0x14], edi
jne 0x41203c
push edi
push edi
jmp 0x412042
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x41205e
push esi
call fcn.00409e3b
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.0040973f
ret
Function at 0x41206a
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x416888
call fcn.00409704
xor esi, esi
cmp dword [0x41a888], esi
jne 0x4120ae
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x412099
mov dword [0x41a888], edi
jmp 0x4120ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4120ae
mov dword [0x41a888], 2
mov eax, dword [0x41a888]
cmp eax, 2
je 0x41218f
cmp eax, esi
je 0x41218f
cmp eax, 1
jne 0x4120f3
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x4120dc
mov eax, dword [0x41a7cc]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x4120fa
xor eax, eax
jmp 0x4121a1
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00408590
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x412130
cmp edi, esi
jne 0x41214b
lea eax, [ebx + ebx]
push eax
call fcn.00409f53
pop ecx
mov edi, eax
cmp edi, esi
je 0x4120f3
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41217e
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x412168
push esi
push esi
jmp 0x41216e
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x41218a
push edi
call fcn.00409e3b
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x4121a1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.0040973f
ret
Function at 0x412699
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x41286d
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x41a980]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x41286d
test cl, 0x48
je 0x412704
cmp byte [eax + 5], 0xa
je 0x412704
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x412756
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x41273e
call fcn.004087d6
mov dword [eax], 9
call fcn.004087df
mov dword [eax], esi
jmp 0x41274e
cmp eax, 0x6d
je 0x41286d
push eax
call fcn.004087e8
pop ecx
or eax, 0xffffffff
jmp 0x41286f
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x412868
test eax, eax
je 0x41277d
cmp byte [ebx], 0xa
jne 0x41277d
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x412786
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x412862
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x412852
cmp al, 0xd
je 0x4127b8
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x412844
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4127d2
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4127cd
add dword [ebp + 0x10], 2
jmp 0x412826
mov dword [ebp + 0x10], eax
jmp 0x412840
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4127fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x412840
cmp dword [ebp - 0xc], 0
je 0x412840
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x41281b
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x412826
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x412843
cmp ebx, dword [ebp + 0xc]
jne 0x41282b
cmp byte [ebp - 1], 0xa
jne 0x41282b
mov byte [ebx], 0xa
jmp 0x412843
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00410bde
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x412844
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x41279c
jmp 0x412862
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x412862
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x41286f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x42e072
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x49b33c40
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
nop
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x5700136b
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x1001e36
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1001e4d
xor al, al
jmp 0x1001e53
shr eax, 4
and eax, 1
pop ebp
ret 4

Function at 0x1001e5c
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x1006028]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x1001374
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x10
xor eax, eax
push eax
push 0x80
push 3
push eax
push eax
push 0x40000000
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0xffffffff
jne 0x1001ed7
cmp eax, 0x20
jne 0x1001ed7
xor eax, eax
inc eax
jmp 0x1001ee0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
call fcn.010043ce
leave
ret 4

Function at 0x1001f8f
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1006028]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1001fd4
cmp dword [ebp - 0x108], 2
jne 0x1001fd4
cmp dword [ebp - 0x114], 5
jb 0x1001fd4
xor eax, eax
inc eax
jmp 0x1001fd6
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.010043ce
leave
ret

Function at 0x1001fe5
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.01004670
mov eax, dword [0x1006028]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
lea eax, [ebp + 0x10]
mov dword [ebp - 0x100c], eax
xor esi, esi
lea eax, [ebp - 0x100c]
push eax
push esi
lea eax, [ebp - 0x1008]
push eax
push esi
push esi
push dword [ebp + 0xc]
mov ebx, 0x500
push ebx
mov dword [ebp - 0x1008], esi
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x100204b
push dword [ebp - 0x1008]
call fcn.01001b9f
push dword [ebp - 0x1008]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp + 8], esi
mov dword [ebp - 0x100c], esi
je 0x10020f9
mov word [ebp - 0x804], si
xor eax, eax
mov ecx, 0x1ff
lea edi, [ebp - 0x802]
rep stosd dword es:[edi], eax
push 0xe008
lea ecx, [ebp - 0x1004]
stosw word es:[edi], ax
call fcn.010016e5
push dword [ebp + 8]
lea eax, [ebp - 0x804]
push esi
push eax
push esi
push esi
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.01001c67
add esp, 0x1c
test eax, eax
je 0x10020b9
push 0x1001388
call fcn.01001b9f
lea eax, [ebp - 0x804]
push eax
call fcn.01001b9f
mov edi, 0x10011ac
push edi
call fcn.01001b9f
push esi
push esi
lea eax, [ebp - 0x804]
push eax
push esi
push dword [ebp + 8]
push 0x1001380
push 0x13ff
call fcn.01001c67
add esp, 0x1c
test eax, eax
je 0x10020f9
lea eax, [ebp - 0x804]
push eax
call fcn.01001b9f
push edi
call fcn.01001b9f
push 0xffffffffffffffff
call dword [sym.imp.msvcrt.dll_exit]
int3
Function at 0x1002271
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x28a4
call fcn.01004670
mov eax, dword [0x1006028]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov ebx, ecx
xor esi, esi
xor eax, eax
cmp byte [0x100603c], 0
mov word [ebp - 0x8a4], si
mov ecx, 0x1ff
lea edi, [ebp - 0x8a2]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
je 0x10022fc
push 0x41e
lea ecx, [ebp - 0x18a4]
call fcn.010016e5
push ebx
push esi
lea eax, [ebp - 0x8a4]
push eax
push esi
push esi
lea eax, [ebp - 0x18a4]
push eax
push 0x500
call fcn.01001c67
add esp, 0x1c
test eax, eax
je 0x10022ef
lea eax, [ebp - 0x8a4]
push eax
call fcn.01001b9f
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010043ce
leave
ret
push 0x416
lea ecx, [ebp - 0x28a4]
call fcn.010016e5
push 0x417
lea ecx, [ebp - 0x10a4]
call fcn.010016e5
push 0x419
lea ecx, [ebp - 0x20a4]
call fcn.010016e5
lea eax, [ebp - 0x20a4]
push eax
lea eax, [ebp - 0x10a4]
push eax
push ebx
push esi
lea eax, [ebp - 0x8a4]
push eax
push esi
push esi
lea eax, [ebp - 0x28a4]
push eax
push 0x500
call fcn.01001c67
add esp, 0x24
test eax, eax
je 0x1002430
lea eax, [ebp - 0x8a4]
push eax
call fcn.01001b9f
push 0x27
pop ecx
xor eax, eax
mov word [ebp - 0xa4], si
lea edi, [ebp - 0xa2]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0xa4]
push eax
push 0x100138c
call dword [sym.imp.msvcrt.dll_wscanf]
mov esi, dword [sym.imp.KERNEL32.dll_CompareStringW]
mov ebx, 0x800
jmp 0x10023f2
push 0xffffffffffffffff
lea eax, [ebp - 0x20a4]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xa4]
push eax
push 1
push ebx
call esi
dec eax
dec eax
je 0x1002414
lea eax, [ebp - 0x8a4]
push eax
call fcn.01001b9f
and word [ebp - 0xa4], 0
push 0x27
pop ecx
xor eax, eax
lea edi, [ebp - 0xa2]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0xa4]
push eax
push 0x100138c
call dword [sym.imp.msvcrt.dll_wscanf]
pop ecx
pop ecx
push 0xffffffffffffffff
lea eax, [ebp - 0x10a4]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xa4]
push eax
push 1
push ebx
call esi
dec eax
dec eax
jne 0x10023a2
jmp 0x10022ef
push 0x418
lea ecx, [ebp - 0x18a4]
call fcn.010016e5
lea eax, [ebp - 0x18a4]
push eax
call fcn.01001b9f
push 0xffffffffffffffff
call dword [sym.imp.msvcrt.dll_exit]
int3
Function at 0x100243e
Capabilities:
Check if file exists
Delete file
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xe70
mov eax, dword [0x1006028]
push ebx
push esi
mov esi, dword [sym.imp.msvcrt.dll_wcscpy]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
push eax
mov dword [ebp - 0xe6c], eax
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
mov edi, dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0xc
cmp word [ebp + eax*2 - 0x20e], 0x5c
je 0x100249e
lea eax, [ebp - 0x20c]
push 0x1001268
push eax
call edi
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call esi
lea eax, [ebp - 0x414]
push 0x10011b8
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0xe70], eax
jne 0x1002515
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 2
je 0x10025d3
push 0x402
lea ecx, [ebp - 0xe64]
call fcn.010016e5
push dword [ebp - 0xe6c]
lea eax, [ebp - 0xe64]
push eax
push ebx
call fcn.01001fe5
add esp, 0xc
mov byte [ebp - 0xe65], 0
cmp dword [ebp - 0x644], 0
jne 0x100252e
cmp dword [ebp - 0x648], 0
je 0x10025ac
cmp byte [ebp - 0xe65], 0
jne 0x1002549
mov ecx, dword [ebp - 0xe6c]
call fcn.01002271
mov byte [ebp - 0xe65], 1
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call esi
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x414]
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10025ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x415
lea ecx, [ebp - 0xe64]
mov ebx, eax
call fcn.010016e5
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0xe64]
push eax
push ebx
call fcn.01001fe5
add esp, 0xc
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0xe70]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100251c
push dword [ebp - 0xe70]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010043ce
leave
ret 4