joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403940
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
sub esp, 0x25c
mov eax, dword [0x434004]
xor eax, esp
mov dword [esp + 0x254], eax
push ebx
push ebp
push esi
push edi
push 0x437244
lea eax, [esp + 0x15c]
push 0x42d620
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x15c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x403996
xor eax, eax
jmp 0x403a37
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, 0x42d628
lea esi, [esp + 0x44]
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x403a0f
mov edi, 0x42d62c
lea esi, [esp + 0x44]
mov ecx, 3
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x403a0f
test byte [esp + 0x18], 0x10
jne 0x403a0f
lea eax, [esp + 0x44]
push eax
call ebp
sub eax, 4
cmp dword [esp + eax + 0x44], 0x7461642e
jne 0x403a0f
lea ecx, [esp + 0x44]
push ecx
push 0x437244
lea edx, [esp + 0x160]
push 0x42d614
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x158]
push eax
call ebx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4039a2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
mov ecx, dword [esp + 0x264]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041eaa8
add esp, 0x25c
ret

Function at 0x403a50
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x120
mov eax, dword [0x434004]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 0x436f38
push 0x437244
lea eax, [esp + 0x24]
push 0x42d614
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.PAL.dll_PalFileCreate]
mov esi, eax
add esp, 0x18
cmp esi, 0xffffffff
jne 0x403ab4
mov eax, 1
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0041eaa8
add esp, 0x120
ret
push ebx
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push 0
push 2
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esp + 0x24]
push ecx
push esi
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebp
lea edx, [esp + 0x1c]
push edx
push 0x42d524
call dword [sym.imp.PAL.dll_PalFileCreate]
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
jne 0x403b04
xor eax, eax
jmp 0x403b34
mov eax, dword [esp + 0x1c]
push 0
push 0
add eax, 4
push eax
push esi
call edi
push 0
lea ecx, [esp + 0x18]
push ecx
push 4
lea edx, [esp + 0x1c]
push edx
push esi
call ebx
push esi
call ebp
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp ecx, dword [esp + 0x10]
sete al
mov ecx, dword [esp + 0x12c]
pop edi
pop ebp
pop ebx
pop esi
xor ecx, esp
call fcn.0041eaa8
add esp, 0x120
ret
Function at 0x403b50
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x120
mov eax, dword [0x434004]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 0x43703c
call dword [sym.imp.PAL.dll_PalGetFilePath]
push eax
lea eax, [esp + 0x24]
push 0x42d614
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.PAL.dll_PalFileCreate]
mov esi, eax
add esp, 0x18
cmp esi, 0xffffffff
jne 0x403bcc
push 0x30
push 0x42d548
push 0x42d630
call dword [sym.imp.PAL.dll_PalGetWindowHandle]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0041eaa8
add esp, 0x120
ret
mov eax, dword [esp + 0x14]
push edi
add eax, 1
push 1
push eax
call dword [sym.imp.PAL.dll_PalMemoryAlloc]
mov edi, eax
add esp, 8
test edi, edi
jne 0x403c06
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0041eaa8
add esp, 0x120
ret
mov edx, dword [esp + 0x18]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x18]
push ecx
push edx
push edi
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x7c
push 0
push edi
lea ebx, [esp + 0x34]
mov dword [esp + 0x1c], 0
call fcn.0041e110
add esp, 0xc
test eax, eax
je 0x403ccd
cmp byte [esp + 0x28], 0
je 0x403caa
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.PAL.dll_PalSystemPathSet]
lea eax, [esp + 0x2c]
add esp, 4
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x403c62
mov ecx, dword [0x42d644]
mov dl, byte [0x42d648]
mov dword [eax], ecx
mov byte [eax + 4], dl
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.PAL.dll_PalFileCreate]
add esp, 8
push 0
lea edx, [esp + 0x18]
push edx
mov esi, eax
push 4
lea eax, [esp + 0x30]
push eax
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
add eax, 1
push 0x7c
push eax
push edi
lea ebx, [esp + 0x34]
mov dword [esp + 0x1c], eax
call fcn.0041e110
add esp, 0xc
test eax, eax
jne 0x403c46
push edi
call dword [sym.imp.PAL.dll_PalMemoryFree]
mov ecx, dword [esp + 0x130]
add esp, 4
pop ebp
pop ebx
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.0041eaa8
add esp, 0x120
ret
Function at 0x403f00
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10c
mov eax, dword [0x434004]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push esi
push 0x436f38
push 0x437244
lea eax, [esp + 0x14]
push 0x42d614
push eax
mov ebx, ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x403f80
push 0x42d70c
call dword [sym.imp.PAL.dll_PalErrorLogPrintf]
add esp, 4
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0041eaa8
add esp, 0x10c
ret
push ebp
push edi
lea ebp, [ebx + 4]
call dword [sym.imp.PAL.dll_PalWindowModeIs]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [esp + 0x14]
push edx
push 2
push 0x42d61c
push esi
mov dword [ebp + 4], eax
call edi
push 0
lea eax, [esp + 0x14]
push eax
push 0x34
push ebp
push esi
call edi
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x800
lea edx, [ebx + 0x4e4]
push edx
push esi
call edi
push 0
lea eax, [esp + 0x14]
push eax
push 4
lea ebp, [ebx + 0xce8]
push ebp
push esi
call edi
mov edx, dword [ebp]
mov eax, dword [ebx + 0xce4]
push 0
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
push esi
call edi
push 0
lea ecx, [esp + 0x14]
push ecx
push 4
lea ebp, [ebx + 0xcf0]
push ebp
push esi
call edi
mov eax, dword [ebp]
mov ecx, dword [ebx + 0xcec]
push 0
lea edx, [esp + 0x14]
push edx
push eax
push ecx
push esi
call edi
push 0
lea edx, [esp + 0x14]
push edx
push 0x1a0
lea eax, [ebx + 0x38]
push eax
push esi
call edi
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x300
add ebx, 0x1e0
push ebx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x118]
pop edi
pop ebp
pop esi
pop ebx
xor ecx, esp
call fcn.0041eaa8
add esp, 0x10c
ret
Function at 0x4042e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x434004]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push 0x207
lea eax, [esp + 0x11]
push 0
push eax
mov byte [esp + 0x18], 0
call fcn.00422b50
push 0x437244
lea ecx, [esp + 0x1c]
push 0x42d8e0
push ecx
mov dword [esp + 0x1c], 0x530
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40436b
push 0
lea eax, [esp + 0xc]
push eax
push 4
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x214]
mov eax, dword [esp + 4]
pop esi
xor ecx, esp
call fcn.0041eaa8
add esp, 0x214
ret
Function at 0x406a60
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
push edi
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
push eax
push ebx
lea edi, [eax + 0x51cec]
call ebp
push 0
lea edx, [esp + 0x10]
push edx
push 0x100
push edi
push ebx
call ebp
xor esi, esi
add edi, 0x100
lea esp, [esp]
mov eax, dword [esp + 0x14]
add eax, 0x51cec
cmp dword [eax + esi*4], 0
je 0x406ace
push 0
lea eax, [esp + 0x10]
push eax
push 0x48
push edi
push ebx
call ebp
mov eax, esi
call fcn.00402dd0
push edi
push eax
call dword [sym.imp.PAL.dll_PalSpriteSetInfo]
add esp, 8
add esi, 1
add edi, 0x48
cmp esi, 0x40
jl 0x406aa0
mov esi, dword [esp + 0x14]
mov edi, dword [sym.imp.PAL.dll_PaltimeGetTime]
add esi, 4
mov dword [esp + 0x14], 8
mov edi, edi
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
push esi
push ebx
call ebp
cmp dword [esi], 0
je 0x406b2d
push 0
lea edx, [esp + 0x10]
push edx
push 0xa39c
push esi
push ebx
call ebp
push 0x180
lea eax, [esi + 0x11c]
push 0
push eax
call fcn.00422b50
add esp, 0xc
call edi
mov dword [esi + 0x10], eax
add esi, 0xa39c
sub dword [esp + 0x14], 1
jne 0x406af0
pop edi
pop esi
pop ebp
pop ecx
ret

Function at 0x408780
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10c
mov eax, dword [0x434004]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
mov ebp, dword [esp + 0x118]
push esi
push 0
lea eax, [esp + 0x10]
push eax
mov ebx, ecx
push 0xc
lea esi, [ebx + 0x84]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x10]
push ecx
push 0xc
add ebx, 0x90
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi + 4]
push 1
push ebp
lea ecx, [esp + 0x18]
call fcn.00403330
add esp, 8
cmp dword [esi + 4], 0
je 0x40884a
push 2
lea ebx, [esp + 0x14]
call fcn.00408650
add esp, 4
test eax, eax
mov dword [esi], eax
jne 0x408827
mov edx, ebx
push edx
push 0x42dd58
push eax
push eax
call dword [sym.imp.PAL.dll_PalDebugPrintf]
add esp, 0x10
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0041eaa8
add esp, 0x10c
ret
test byte [esi + 8], 1
je 0x408839
push eax
call dword [sym.imp.PAL.dll_PalSoundPause]
add esp, 4
jmp 0x40884a
push 0x7d0
push 1
push eax
call dword [sym.imp.PAL.dll_PalSoundPlayFade]
add esp, 0xc
mov ecx, dword [esp + 0x114]
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0041eaa8
add esp, 0x10c
ret
Function at 0x40e7b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push edi
lea eax, [esp + 8]
push eax
push 0x42e42c
call dword [sym.imp.PAL.dll_PalFileCreate]
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
jne 0x40e7d5
xor eax, eax
pop edi
add esp, 0x10
ret
mov ecx, dword [esp + 0x10]
add ecx, 1
push 0
push ecx
call dword [sym.imp.PAL.dll_PalMemoryAlloc]
mov edx, dword [esp + 0x18]
add esp, 8
mov dword [esi + 0x4d78c], eax
mov byte [eax + edx], 0
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x4d78c]
push 0
lea eax, [esp + 8]
push eax
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x4d78c]
cmp byte [eax], 0x24
jne 0x40e836
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
push ecx
add eax, 0x10
push eax
call fcn.0041df20
add esp, 8
mov edx, dword [esi + 0x4d78c]
push 0x7f8
add edx, 0x10
push edx
lea eax, [esi + 0x4d794]
push eax
mov dword [esp + 0x10], 0x7f8
call fcn.00423750
mov ecx, dword [esi + 0x4d78c]
add esp, 0xc
add ecx, 0x808
mov eax, 1
mov dword [esi + 0x4d790], ecx
mov dword [esi + 0x4d788], eax
pop edi
add esp, 0x10
ret
Function at 0x414280
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0x434004]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push edi
mov edi, ecx
call dword [sym.imp.PAL.dll_PalTaskGetSubTaskData]
mov esi, eax
cmp dword [esi + 0x348], 0
je 0x41435e
mov eax, dword [esi + 0x318]
mov ecx, dword [esi + 0x314]
mov edx, dword [esi + 0x34c]
push eax
push ecx
add edx, 0x120
push edx
call fcn.00423750
mov ecx, dword [esi + 0x34c]
push 0x104
lea eax, [esi + 0x204]
push eax
add ecx, 4
push ecx
call fcn.00423750
add esp, 0x18
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41433b
lea edx, [esp + 0xc]
push edx
push 0x42ebac
push 0
push 0
call dword [sym.imp.PAL.dll_PalDebugPrintf]
add esp, 0x10
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0041eaa8
add esp, 0x210
ret
mov ecx, dword [esi + 0x350]
mov edx, dword [esi + 0x34c]
push 0
lea eax, [esp + 0xc]
push eax
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.0041eaa8
add esp, 0x210
ret

Function at 0x4164f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x434004]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x34]
push ebx
push ebp
push esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x44]
push edi
mov dword [esp + 0x14], ecx
xor ebp, ebp
lea edi, [eax + 0x14]
jmp 0x416520
mov eax, dword [esp + 0x18]
push 0
lea edx, [esp + 0x14]
push edx
push 0xc
lea esi, [edi - 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [edi - 4]
test eax, eax
mov dword [esi], 0
je 0x41658b
test dword [edi], 0x10001
je 0x41658b
mov ecx, dword [esp + 0x14]
push 1
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], eax
call fcn.00403330
push 0
lea ebx, [esp + 0x28]
call fcn.00408650
add esp, 0xc
test eax, eax
mov dword [esi], eax
je 0x4165ae
test byte [edi], 1
je 0x41658b
push 0x7d0
push 1
push eax
call dword [sym.imp.PAL.dll_PalSoundPlayFade]
add esp, 0xc
add ebp, 1
add edi, 0xc
cmp ebp, 0xa
jl 0x416520
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0041eaa8
add esp, 0x30
ret
lea edx, [esp + 0x1c]
push edx
push 0x42ef90
push 0
push 0
call dword [sym.imp.PAL.dll_PalDebugPrintf]
mov ecx, dword [esp + 0x4c]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0041eaa8
add esp, 0x30
ret
Function at 0x41cac0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x434004]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
push ebx
push ebp
mov ebp, dword [esp + 0x3c]
lea ecx, [eax + 0xfc]
push esi
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], ecx
lea esi, [eax + 0x100]
mov eax, dword [esp + 0x10]
push 0
lea edx, [esp + 0x18]
push edx
push 0x10
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi]
test eax, eax
mov dword [esi - 4], 0
je 0x41cb4f
test byte [esi + 4], 1
je 0x41cb4f
push 1
push ebp
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], eax
call fcn.00403330
push 1
lea ebx, [esp + 0x24]
call fcn.00408650
add esp, 0xc
test eax, eax
mov dword [esi - 4], eax
je 0x41cb79
push 0x7d0
push 1
push eax
call dword [sym.imp.PAL.dll_PalSoundPlayFade]
add esp, 0xc
mov eax, dword [esp + 0xc]
add eax, 1
add esi, 0x10
cmp eax, 1
mov dword [esp + 0xc], eax
jl 0x41caf1
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0041eaa8
add esp, 0x30
ret
call dword [sym.imp.PAL.dll_PalTaskGetGroundData]
cmp dword [eax], 0
je 0x41cb9b
lea ecx, [esp + 0x18]
push ecx
push 0x42f708
push 0
push 0
call dword [sym.imp.PAL.dll_PalDebugPrintf]
add esp, 0x10
mov ecx, dword [esp + 0x38]
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0041eaa8
add esp, 0x30
ret
Function at 0x41df20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
and eax, 3
mov byte [ebp - 4], 4
mov dword [ebp - 0xc], 0x84df873
mov dword [ebp - 8], 0xff987dee
je 0x41df43
sub dword [ebp + 0xc], eax
push edi
mov edi, dword [ebp + 8]
mov cl, byte [ebp - 4]
mov edx, dword [ebp + 0xc]
rol byte [edi], cl
add cl, 1
and cl, 0xff
mov eax, dword [ebp - 0xc]
xor dword [edi], eax
mov eax, dword [ebp - 8]
xor dword [edi], eax
add edi, 4
sub edx, 4
jne 0x41df4d
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x41e190
Capabilities:
Get disk information

Disassembly:
sub esp, 0x318
mov eax, dword [0x434004]
xor eax, esp
mov dword [esp + 0x314], eax
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
mov edi, 1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
mov dword [esp + 0x14], eax
call ebx
mov ebp, eax
lea esi, [edi + 0x60]
jmp 0x41e1d0
test dword [esp + 0x10], edi
je 0x41e24d
push esi
lea eax, [esp + 0x1c]
push 0x42f974
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x41e24d
push 0x104
lea edx, [esp + 0x224]
push edx
push 0
push 0
push 0
push 0x104
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
lea edx, [esp + 0x11c]
push edx
call ebx
cmp eax, ebp
jne 0x41e24d
push eax
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x124]
push ecx
call fcn.0041ebe4
add esp, 0xc
test eax, eax
je 0x41e276
add esi, 1
add edi, edi
cmp esi, 0x7a
jle 0x41e1d0
xor eax, eax
mov ecx, dword [esp + 0x324]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041eaa8
add esp, 0x318
ret
mov eax, 1
jmp 0x41e25d

Function at 0x41e280
Capabilities:
Create directory

Disassembly:
sub esp, 0x108
mov eax, dword [0x434004]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push esi
push 0x104
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00422b50
add esp, 0xc
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
cmp ebx, 0x104
jle 0x41e2d6
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0041eaa8
add esp, 0x108
ret
cmp byte [edi + 1], 0x3a
jne 0x41e2bd
cmp byte [edi + 2], 0x5c
jne 0x41e2bd
mov cl, byte [edi + esi]
add esi, 1
cmp cl, 0x5c
jne 0x41e2e2
cmp esi, ebx
push ebp
je 0x41e335
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [edi + esi]
test al, al
je 0x41e306
add esi, 1
cmp al, 0x5c
jne 0x41e2f8
push esi
lea edx, [esp + 0x10]
push edi
push edx
call fcn.0041eac0
add esp, 0xc
push 0
lea eax, [esp + 0x10]
push eax
call ebp
test eax, eax
jne 0x41e331
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x41e352
cmp esi, ebx
jne 0x41e2f8
pop ebp
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0041eaa8
add esp, 0x108
ret
mov ecx, dword [esp + 0x110]
pop ebp
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0041eaa8
add esp, 0x108
ret
Function at 0x41eaa8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x434004]
jne 0x41eab2
repz ret
jmp fcn.0041f5f5

Function at 0x420ef9
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4347a8]
je 0x420f14
inc edi
cmp edi, 0x17
jb 0x420f05
cmp edi, 0x17
jae 0x421094
push ebp
push 3
call fcn.00424325
cmp eax, 1
pop ecx
je 0x421060
push 3
call fcn.00424325
test eax, eax
pop ecx
jne 0x420f48
cmp dword [section..data], 1
je 0x421060
cmp ebx, 0xfc
je 0x421093
push 0x42c928
mov ebx, 0x314
push ebx
mov ebp, 0x436890
push ebp
call fcn.00423659
add esp, 0xc
test eax, eax
je 0x420f7e
push esi
push esi
push esi
push esi
push esi
call fcn.0041faa5
add esp, 0x14
push 0x104
mov esi, 0x4368a9
push esi
push 0
mov byte [0x4369ad], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x420fc2
push 0x42c910
push 0x2fb
push esi
call fcn.00423659
add esp, 0xc
test eax, eax
je 0x420fc2
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0041faa5
add esp, 0x14
push esi
call fcn.00423ac0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x421007
push esi
call fcn.00423ac0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x436ba4
push 0x42c90c
sub ecx, eax
push ecx
push eax
call fcn.004235a6
add esp, 0x14
test eax, eax
je 0x421007
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0041faa5
add esp, 0x14
jmp 0x421009
xor esi, esi
push 0x42c908
push ebx
push ebp
call fcn.004234ee
add esp, 0xc
test eax, eax
je 0x421029
push esi
push esi
push esi
push esi
push esi
call fcn.0041faa5
add esp, 0x14
push dword [edi*8 + 0x4347ac]
push ebx
push ebp
call fcn.004234ee
add esp, 0xc
test eax, eax
je 0x42104b
push esi
push esi
push esi
push esi
push esi
call fcn.0041faa5
add esp, 0x14
push 0x12010
push 0x42c8e0
push ebp
call fcn.00424168
add esp, 0xc
jmp 0x421093
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x421093
cmp ebp, 0xffffffff
je 0x421093
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4347ac]
push dword [esi]
call fcn.00423ac0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x424168
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004206b0
xor ebx, ebx
cmp dword [0x436e50], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x42423e
push 0x42d318
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x42431e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42d30c
push edi
call esi
cmp eax, ebx
je 0x42431e
push eax
call fcn.00420642
mov dword [esp], 0x42d2fc
push edi
mov dword [0x436e50], eax
call esi
push eax
call fcn.00420642
mov dword [esp], 0x42d2e8
push edi
mov dword [0x436e54], eax
call esi
push eax
call fcn.00420642
mov dword [0x436e58], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00420c86
test eax, eax
pop ecx
pop ecx
je 0x42420c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041faa5
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x42423e
push 0x42d2cc
push edi
call esi
push eax
call fcn.00420642
cmp eax, ebx
pop ecx
mov dword [0x436e60], eax
je 0x42423e
push 0x42d2b4
push edi
call esi
push eax
call fcn.00420642
pop ecx
mov dword [0x436e5c], eax
mov eax, dword [0x436e5c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4242c3
cmp dword [0x436e60], ecx
je 0x4242c3
push eax
call fcn.004206b9
push dword [0x436e60]
mov esi, eax
call fcn.004206b9
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4242c3
cmp edi, ebx
je 0x4242c3
call esi
cmp eax, ebx
je 0x424290
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x424290
test byte [ebp - 0x18], 1
jne 0x4242c3
lea eax, [ebp - 0x10]
push eax
call fcn.00420cbd
test eax, eax
pop ecx
je 0x4242ab
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041faa5
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4242ba
or dword [ebp + 0x10], 0x200000
jmp 0x4242fe
or dword [ebp + 0x10], 0x40000
jmp 0x4242fe
mov eax, dword [0x436e54]
cmp eax, dword [ebp - 8]
je 0x4242fe
push eax
call fcn.004206b9
cmp eax, ebx
pop ecx
je 0x4242fe
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4242fe
mov eax, dword [0x436e58]
cmp eax, dword [ebp - 8]
je 0x4242fe
push eax
call fcn.004206b9
cmp eax, ebx
pop ecx
je 0x4242fe
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x436e50]
call fcn.004206b9
cmp eax, ebx
pop ecx
je 0x42431e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x424320
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret