joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41041b
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
mov dword [ebp - 4], ecx
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x41b]
mov byte [ebp - 0x41c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x42db88
push edi
push ebx
push dword [0x4236e8]
push dword [0x4236e4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push dword [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1c]
push 0x42838c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.USER32.dll_CharNextA]
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
call esi
push eax
call esi
push edi
lea ecx, [ebp - 0x41c]
push 0x400
push ecx
push eax
push eax
push dword [0x4236e4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 8]
sub eax, ebx
je 0x4104fd
dec eax
jne 0x410516
mov ecx, dword [ebp - 4]
push ebx
lea eax, [ebp - 0x41c]
push ebx
push eax
call fcn.004100a5
test eax, eax
je 0x4104f9
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
push eax
push 0x42bab4
push esi
call fcn.0041200c
push esi
call fcn.00412144
test eax, eax
jne 0x410516
lea eax, [ebp - 0x41c]
push eax
push 0x42e65c
push esi
call fcn.0041200c
push esi
call fcn.00412144
test eax, eax
jne 0x410516
xor eax, eax
jmp 0x410519
lea eax, [ebp - 0x41c]
push eax
push 0x42e65c
push dword [ebp + 0xc]
call fcn.0041200c
push dword [ebp + 0xc]
jmp 0x4104f0
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x410520
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
mov esi, str.SetupBitmapCls
push edi
lea eax, [ebp - 0x14]
push esi
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 4
xor ebx, ebx
pop eax
mov dword [ebp - 0x54], 3
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov eax, dword [edi + 0x327c]
push 0x7f00
push ebx
mov dword [ebp - 0x50], 0x410678
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x7c]
push eax
push esi
push dword [edi + 0x327c]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
call dword [sym.imp.USER32.dll_GetClassInfoA]
test eax, eax
jne 0x4105a3
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
je 0x410645
push 0xd0
call fcn.00416f18
mov esi, eax
pop ecx
cmp esi, ebx
je 0x410645
mov eax, dword [ebp + 8]
push 1
pop ecx
mov dword [esi + 4], ecx
mov edx, dword [eax]
mov dword [esi], edx
mov edx, dword [eax + 4]
mov dword [esi + 8], edx
mov eax, dword [eax]
mov dword [esi + 0x78], eax
lea eax, [ebp - 0x2c]
push eax
push 0x18
push dword [esi]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], ebx
call dword [sym.imp.GDI32.dll_GetObjectA]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
call ebx
sub eax, dword [ebp - 0x28]
push 1
cdq
sub eax, edx
sar eax, 1
mov dword [ebp + 8], eax
call ebx
sub eax, dword [ebp - 0x24]
push esi
push dword [edi + 0x327c]
xor ecx, ecx
cdq
push ecx
push ecx
push dword [ebp - 0x24]
sub eax, edx
sar eax, 1
push dword [ebp - 0x28]
mov dword [edi + 0x2e3c], ecx
push eax
push dword [ebp + 8]
push 0x86000000
push str.SetupBitmapWin
push str.SetupBitmapCls
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ebx, eax
test ebx, ebx
jne 0x410649
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x410671
push esi
push 0
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 5
push ebx
mov dword [edi + 0x2e3c], ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 0x2e3c]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x410d3f
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x42210a
call fcn.004175a4
push ecx
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
lea eax, [esi + 0x120]
mov dword [esi + 0x108], edi
mov dword [esi + 0x10c], edi
mov byte [esi + 0x110], 1
mov dword [esi + 0x118], edi
mov dword [ebp - 0x14], esi
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
push dword [ebp + 8]
lea eax, [esi + 4]
mov dword [ebp - 4], edi
mov dword [esi], 0x423aa8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, esi
call fcn.00411259
push edi
push 0x80
push 3
push edi
push 3
push 0x80000000
push dword [ebp + 8]
mov dword [esi + 0x114], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x108], eax
jne 0x410dd3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x118], eax
jmp 0x410e56
push 0x2e
mov dword [esi + 0x10c], 1
call fcn.00416f18
push 0x2e
push edi
push eax
mov dword [esi + 0x11c], eax
call fcn.00416f30
add esp, 0x10
mov ecx, esi
push edi
push edi
push dword [esi + 0x114]
push dword [esi + 0x108]
call fcn.004114e7
test eax, eax
je 0x410e56
lea eax, [ebp - 0x10]
push edi
push eax
push 0x2e
push dword [esi + 0x11c]
push dword [esi + 0x108]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x410e56
cmp dword [ebp - 0x10], edi
je 0x410e56
mov ecx, esi
call fcn.00410ef2
test eax, eax
je 0x410e56
mov eax, dword [esi + 0x11c]
mov ax, word [eax + 0xe]
cmp ax, di
je 0x410e56
movzx eax, ax
push eax
mov ecx, esi
call fcn.004111d5
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x411001
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ecx + 0x10c], ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
je 0x411050
cmp dword [ebp + 8], ebx
je 0x411050
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, 0x80
push ebx
push edi
push 3
push ebx
push 3
add ecx, 4
push 0x80000000
push ecx
call esi
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x411059
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x118], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
mov ecx, dword [ebp - 0xc]
push ebx
push ebx
push dword [ebp + 0xc]
push eax
call fcn.004114e7
test eax, eax
je 0x411050
push ebx
push edi
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 0x10]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x41109d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
push dword [ebp - 8]
mov dword [ecx + 0x118], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x411050
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x10c]
mov eax, 0x400
cmp edi, eax
mov dword [ebp + 0xc], eax
jae 0x4110b5
mov dword [ebp + 0xc], edi
push dword [ebp + 0xc]
call fcn.00416f18
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [ebp - 4]
push ebx
push ecx
mov dword [ebp - 0xc], eax
push dword [ebp + 0xc]
push eax
push dword [ebp - 8]
call esi
test eax, eax
je 0x411112
lea eax, [ebp - 4]
push ebx
push eax
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub edi, dword [ebp - 4]
je 0x411112
cmp dword [ebp - 4], ebx
je 0x411112
cmp edi, 0x400
jae 0x411102
mov dword [ebp + 0xc], edi
lea eax, [ebp - 4]
push ebx
push eax
push dword [ebp + 0xc]
push dword [ebp - 0xc]
push dword [ebp - 8]
jmp 0x4110d3
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp + 8]
test byte [eax + 0x104], 2
je 0x411142
push eax
push dword [ebp + 0x10]
call fcn.0040141d
pop ecx
pop ecx
push dword [ebp - 0xc]
call fcn.004167c3
pop ecx
push 1
pop eax
jmp 0x411052

Function at 0x4111d5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov edi, ecx
jle 0x411252
mov esi, 0x138
push esi
call fcn.00416f18
mov ebx, eax
push esi
push 0
push ebx
call fcn.00416f30
add esp, 0x10
lea eax, [ebp - 8]
push 0
push eax
push esi
push ebx
push dword [edi + 0x108]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x411252
cmp dword [ebp - 8], 0
je 0x411252
push ebx
lea ecx, [edi + 0x120]
call fcn.00411528
push 1
push 0
push dword [ebx + 0x10c]
mov ecx, edi
push dword [edi + 0x108]
call fcn.004114e7
test eax, eax
je 0x411252
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jl 0x4111ee
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x411259
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
push ebx
push esi
push edi
xor edi, edi
push edi
mov esi, ecx
push 0x80
push 3
push edi
push 3
lea eax, [esi + 4]
push 0x80000000
push eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41129e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x118], eax
jmp 0x4112ed
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x10]
push edi
push eax
lea eax, [ebp - 0x78]
push 0x40
push eax
push ebx
call esi
mov ecx, dword [ebp - 0xc]
push edi
push edi
push dword [ebp - 0x3c]
push ebx
call fcn.004114e7
test eax, eax
je 0x4112ed
lea eax, [ebp - 0x10]
push edi
push eax
lea eax, [ebp - 0x13c]
push 0x18
push eax
push ebx
call esi
movzx eax, word [ebp - 0x128]
mov ecx, dword [ebp - 0xc]
push 1
push edi
push eax
push ebx
call fcn.004114e7
test eax, eax
jne 0x4112f1
xor eax, eax
jmp 0x411343
cmp word [ebp - 0x136], di
mov dword [ebp - 8], edi
jbe 0x41132d
lea eax, [ebp - 0x10]
push edi
push eax
lea eax, [ebp - 0x38]
push 0x28
push eax
push ebx
call esi
cmp word [ebp - 8], di
mov eax, dword [ebp - 0x24]
je 0x411317
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x28]
inc dword [ebp - 8]
mov dword [ebp - 4], eax
mov ax, word [ebp - 8]
cmp ax, word [ebp - 0x136]
jb 0x4112fd
mov ecx, dword [ebp - 0xc]
push ebx
call fcn.00411348
add dword [ebp - 4], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x411348
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push ebx
push ebx
push ebx
push 2
push ebx
mov dword [ebp - 4], ecx
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [ebp - 0x10], eax
jne 0x411374
xor eax, eax
jmp 0x411424
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x411419
push esi
mov esi, dword [eax + 0x3c]
add esi, eax
push edi
mov edi, dword [esi + 0xa8]
cmp edi, ebx
mov dword [ebp - 0xc], edi
je 0x41140e
mov ecx, dword [ebp - 4]
push esi
push str..debug
call fcn.00411429
cmp eax, ebx
je 0x4113c4
cmp dword [eax + 0xc], edi
jne 0x4113c4
mov ecx, dword [eax + 0x14]
mov eax, dword [esi + 0xac]
add ecx, dword [ebp + 8]
jmp 0x4113f5
mov ecx, dword [ebp - 4]
push esi
push str..rdata
call fcn.00411429
mov edi, eax
cmp edi, ebx
je 0x41140e
mov eax, dword [esi + 0xac]
push 0x1c
xor edx, edx
pop ecx
div ecx
cmp eax, ebx
je 0x41140e
mov ecx, dword [edi + 0x14]
sub ecx, dword [edi + 0xc]
add ecx, dword [ebp - 0xc]
add ecx, dword [ebp + 8]
cmp eax, ebx
jbe 0x411409
mov edx, dword [ebp - 8]
add ecx, 0x10
add edx, dword [ecx]
add ecx, 0x1c
dec eax
jne 0x4113ff
jmp 0x41140c
mov edx, dword [ebp - 8]
mov ebx, edx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
pop esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x4119d3
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
push esi
mov esi, 0x42bab0
xor ebx, ebx
push esi
mov dword [ebp - 0xc], ebx
push dword [ebp + 0xc]
call fcn.00417020
push esi
push dword [ebp + 0x10]
call fcn.00417020
add esp, 0x10
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
je 0x411b5e
push edi
push esi
call fcn.004176cf
mov edi, eax
push esi
push ebx
push edi
mov dword [ebp - 0x10], edi
call fcn.00416f30
add esp, 0x10
push edi
push esi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x411b54
lea eax, [ebp - 0x44]
push 0x34
mov dword [ebp + 8], eax
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.00416f30
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp + 8]
push eax
push 0x427bd8
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x411a96
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
movzx edx, cx
shr ecx, 0x10
push edx
push ecx
movzx ecx, ax
shr eax, 0x10
push ecx
push eax
push str._u._u._u._u
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0x34
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.00416f30
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x411b54
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x143]
mov byte [ebp - 0x144], bl
mov esi, dword [ebp - 4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
xor edi, edi
shr esi, 2
cmp esi, ebx
mov dword [ebp + 0xc], eax
jle 0x411b54
cmp edi, ebx
mov dword [ebp - 8], ebx
jle 0x411af5
add dword [ebp + 0xc], 4
push 4
lea eax, [ebp - 8]
push dword [ebp + 0xc]
push eax
call fcn.00417ac0
movzx eax, word [ebp - 8]
add esp, 0xc
cmp edi, ebx
push eax
jne 0x411b26
lea eax, [ebp - 0x144]
push 0x4281c0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x411b3e
push dword [ebp + 0x10]
lea eax, [ebp - 0x144]
push str._s__u
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x144]
push eax
push dword [ebp + 0x10]
call fcn.00417020
inc edi
pop ecx
cmp edi, esi
pop ecx
jl 0x411aea
push dword [ebp - 0x10]
call fcn.00417809
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411ba6
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push str.KERNEL32
mov dword [ebp - 4], ebx
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x411ca9
push edi
push str.GetDiskFreeSpaceExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebx
je 0x411c38
push dword [ebp + 8]
lea eax, [ebp - 0x82c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x82c]
push eax
call fcn.00412098
test eax, eax
je 0x411c10
lea eax, [ebp - 0x82c]
push eax
call fcn.00411eb3
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x82c]
push eax
call edi
test eax, eax
je 0x411c9f
cmp dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x1c]
je 0x411c96
mov eax, 0x7fffffff
jmp 0x411c96
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp + 0xc], ebx
mov cl, byte [eax]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x42c], cl
mov cl, byte [eax + 1]
mov al, byte [eax + 2]
mov byte [ebp - 0x42b], cl
mov byte [ebp - 0x42a], al
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x42c]
push eax
mov byte [ebp - 0x429], bl
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x411c9f
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp - 8]
imul eax, dword [ebp - 0xc]
shr eax, 0xa
mov dword [esi], eax
mov dword [ebp - 4], 1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret

Function at 0x411d61
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor eax, eax
mov byte [ebp + 0x11], 0x3a
mov byte [ebp + 0x12], 0x5c
mov byte [esi], al
mov byte [esi + 1], 0x3a
mov byte [esi + 2], 0x5c
mov byte [esi + 3], al
mov byte [ebp + 0x13], al
xor ebx, ebx
mov al, bl
add al, 0x41
mov byte [ebp + 0x10], al
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, dword [ebp + 8]
jne 0x411dba
push dword [ebp + 0xc]
mov al, byte [ebp + 0x10]
mov byte [esi], al
push esi
call fcn.00411b62
pop ecx
test eax, eax
pop ecx
je 0x411dba
push esi
call fcn.00411cfd
test eax, eax
pop ecx
jne 0x411dc7
inc ebx
cmp ebx, 0x1a
jl 0x411d85
or eax, 0xffffffff
pop esi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x411dc3

Function at 0x411fa8
Capabilities:
Get disk information

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
push dword [ebp + 8]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.00411f7e
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
pop edi
je 0x412006
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x412001
cmp eax, 5
jne 0x412006
push 1
pop eax
jmp 0x412008
xor eax, eax
leave
ret 4
Function at 0x4120b7
Capabilities:
Create directory

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esp + 0x14], 1
call edi
inc eax
inc eax
push eax
call fcn.00416f18
pop ecx
mov esi, eax
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x427bd8
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
mov ebx, esi
call edi
mov edi, eax
xor ebp, ebp
test edi, edi
jbe 0x412131
cmp byte [ebx], 0x5c
jne 0x412124
and byte [ebx], 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x412121
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41212c
mov byte [ebx], 0x5c
inc ebx
inc ebp
cmp ebp, edi
jb 0x4120ff
jmp 0x412131
and dword [esp + 0x10], 0
push esi
call fcn.004167c3
mov eax, dword [esp + 0x14]
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41215c
test al, 0x10
jne 0x41215c
push 1
pop eax
jmp 0x41215e
xor eax, eax
ret 4

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x412179
test al, 0x10
je 0x412179
push 1
pop eax
jmp 0x41217b
xor eax, eax
ret 4

Function at 0x41217e
Capabilities:
Delete directory

Disassembly:
push edi
xor edi, edi
push dword [esp + 8]
call fcn.00412161
test eax, eax
je 0x4121b2
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
call esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x4121ad
push 1
pop edi
push 0
call esi
pop esi
mov eax, edi
pop edi
ret 4

Function at 0x4121b8
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.00412144
test eax, eax
jne 0x4121cc
push 1
pop eax
jmp 0x412209
push ebx
push esi
xor ebx, ebx
call fcn.0041220d
test eax, eax
jne 0x412206
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
call edi
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x412201
push 1
pop ebx
push 0
call edi
pop edi
mov eax, ebx
pop ebx
pop esi
ret 4
Function at 0x4122e2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
push esi
push edi
xor esi, esi
push 0x10
lea eax, [ebp - 0x14]
push esi
push eax
mov dword [ebp - 4], esi
call fcn.00416f30
push 0x44
lea eax, [ebp - 0x74]
pop edi
push edi
push esi
push eax
call fcn.00416f30
add esp, 0x18
cmp dword [ebp + 0xc], esi
mov dword [ebp - 0x74], edi
mov word [ebp - 0x44], si
push 1
pop edi
mov dword [ebp - 0x48], edi
je 0x412325
mov word [ebp - 0x44], di
push dword [ebp + 8]
lea eax, [ebp - 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x74]
push eax
push esi
push esi
push 0x20
push esi
push esi
lea eax, [ebp - 0x474]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4123b4
push 0xff
push 0xffffffffffffffff
lea eax, [ebp - 0x14]
push esi
push eax
push edi
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, esi
je 0x412391
cmp eax, edi
jne 0x412391
push esi
push esi
push esi
lea eax, [ebp - 0x30]
push esi
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
cmp dword [ebp - 0x2c], 0x11
je 0x412391
cmp dword [ebp - 0x2c], 0x10
je 0x412391
cmp dword [ebp - 0x2c], 0x12
jne 0x412356
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 4]
push dword [ebp - 0x14]
mov dword [0x42ea5c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x4123b9
mov eax, 0xcccccccc
pop edi
pop esi
leave
ret 8

Function at 0x4123bf
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
push esi
push edi
xor esi, esi
push 0x10
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00416f30
push 0x44
lea eax, [ebp - 0x54]
pop edi
push edi
push esi
push eax
call fcn.00416f30
add esp, 0x18
cmp dword [ebp + 0xc], esi
mov dword [ebp - 0x54], edi
mov word [ebp - 0x24], si
push 1
pop edi
mov dword [ebp - 0x28], edi
je 0x4123ff
mov word [ebp - 0x24], di
push dword [ebp + 8]
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 0x20
push edi
push esi
lea eax, [ebp - 0x454]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
leave
ret 8