joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421ca0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4a8596
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4d92d4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
lea eax, [esi + 0x18]
mov dword [esi], vtable.FCVSurface24.0
xor edi, edi
push eax
mov dword [esi + 0x14], vtable.FCCriticalSection.0
mov dword [esi + 0x30], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esp + 0x18], edi
lea ecx, [esi + 0x34]
push 1
push edi
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
call fcn.00424070
mov byte [esp + 0x18], 1
mov ecx, esi
call fcn.00451fe0
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x421d30
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4a85d6
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4d92d4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
lea eax, [esi + 0x18]
mov dword [esi], vtable.FCVSurface24.0
xor edi, edi
push eax
mov dword [esi + 0x14], vtable.FCCriticalSection.0
mov dword [esi + 0x30], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esp + 0x18], edi
lea ecx, [esi + 0x34]
push 1
push edi
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
call fcn.00424070
mov byte [esp + 0x18], 1
mov ecx, esi
call fcn.00451fe0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
mov ecx, esi
call fcn.00454d90
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 8

Function at 0x421e50
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4a8656
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4d92d4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
lea eax, [esi + 0x18]
mov dword [esi], vtable.FCVSurface24.0
xor edi, edi
push eax
mov dword [esi + 0x14], vtable.FCCriticalSection.0
mov dword [esi + 0x30], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esp + 0x18], edi
lea ecx, [esi + 0x34]
push 1
push edi
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
call fcn.00424070
mov byte [esp + 0x18], 1
mov ecx, esi
call fcn.00451fe0
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, esi
call fcn.00454c40
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x421ef0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4a8696
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4d92d4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
lea eax, [esi + 0x18]
mov dword [esi], vtable.FCVSurface24.0
xor edi, edi
push eax
mov dword [esi + 0x14], vtable.FCCriticalSection.0
mov dword [esi + 0x30], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esp + 0x18], edi
lea ecx, [esi + 0x34]
push 1
push edi
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
call fcn.00424070
mov byte [esp + 0x18], 1
mov ecx, esi
call fcn.00451fe0
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, esi
call fcn.00454cd0
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x422850
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4a8831
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4d92d4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
lea eax, [esi + 0x14]
mov dword [esi], vtable.FCVSurface.0
xor edi, edi
push eax
mov dword [esi + 0x10], vtable.FCCriticalSection.0
mov dword [esi + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esp + 0x18], edi
lea ecx, [esi + 0x30]
push 1
push edi
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
call fcn.00424070
mov byte [esp + 0x18], 1
lea ecx, [esi + 0x78]
push ecx
mov dword [esi + 0x74], vtable.FCRect.0
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov byte [esp + 0x18], 2
mov ecx, esi
call fcn.00424160
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x4228f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4a8871
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4d92d4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
lea eax, [esi + 0x14]
mov dword [esi], vtable.FCVSurface.0
xor edi, edi
push eax
mov dword [esi + 0x10], vtable.FCCriticalSection.0
mov dword [esi + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esp + 0x18], edi
lea ecx, [esi + 0x30]
push 1
push edi
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
call fcn.00424070
mov byte [esp + 0x18], 1
lea ecx, [esi + 0x78]
push ecx
mov dword [esi + 0x74], vtable.FCRect.0
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov byte [esp + 0x18], 2
mov ecx, esi
call fcn.00424160
mov edx, dword [esp + 0x20]
push edx
mov ecx, esi
call fcn.004309b0
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x424f70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.GDI32.dll_GdiFlush]
test byte [esi + 0x60], 1
mov bl, byte [ebp + 0x20]
mov edx, dword [ebp + 0x18]
mov byte [ebp - 1], bl
je 0x42505e
cmp edx, 0x10
jl 0x42505e
mov eax, edx
sar eax, 4
and edx, 0xf
mov dword [ebp - 0xc], eax
or eax, 0xffffffff
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp + 0x20]
mov eax, ebx
shl ebx, 8
or eax, ebx
shl ebx, 8
or eax, ebx
shl ebx, 8
or eax, ebx
mov dword [ebp + 0x18], eax
movd mm7, dword [ebp + 0x18]
movd mm6, dword [ebp + 0x18]
punpcklbw mm7, mm6
movq mm6, qword [ebp - 0x14]
mov ebx, dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
movq mm1, qword [esi]
movq mm4, qword [esi + 8]
movq mm2, mm1
movq mm0, qword [edi]
movq mm5, mm4
movq mm3, qword [edi + 8]
pcmpeqb mm2, mm7
pcmpeqb mm5, mm7
pand mm0, mm2
pand mm3, mm5
pxor mm2, mm6
pxor mm5, mm6
pand mm1, mm2
pand mm4, mm5
por mm0, mm1
movq qword [edi], mm0
por mm3, mm4
movq qword [edi + 8], mm3
add esi, 0x10
add edi, 0x10
dec edx
jne 0x424fe9
or ecx, ecx
je 0x42503e
mov al, byte [esi]
inc esi
inc edi
cmp al, byte [ebp - 1]
je 0x42503b
mov byte [edi - 1], al
dec ecx
jne 0x42502f
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
sub edi, dword [ebp + 0xc]
sub esi, dword [ebp + 0x14]
mov dword [ebp + 8], edi
mov dword [ebp + 0x10], esi
dec ebx
jne 0x424fe3
emms
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword [ebp + 0x1c]
test eax, eax
jle 0x425099
mov dword [ebp + 0x20], eax
test edx, edx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
jle 0x425087
mov edi, edx
mov cl, byte [eax]
cmp cl, bl
je 0x42507c
mov byte [esi], cl
add esi, 1
add eax, 1
sub edi, 1
jne 0x425074
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
sub dword [ebp + 8], ecx
sub dword [ebp + 0x10], eax
sub dword [ebp + 0x20], 1
jne 0x425068
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x435a90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a962b
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d92d4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x1c], esi
mov dword [esi], vtable.FCViewport.0
mov dword [esp + 0x38], 9
call fcn.00434e10
lea ebx, [esi + 0xec]
lea edi, [ebx + 0x1c]
push edi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
add ebx, 4
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x38], 0xa
lea ebp, [esi + 0x12c]
mov dword [esp + 0x24], vtable.FCXListIterator_class_FCClickMap_.0
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], 0
mov byte [esp + 0x38], 0xb
lea ecx, [esp + 0x24]
call fcn.004357d0
test eax, eax
je 0x435b41
mov ecx, dword [eax + 0x98]
cmp esi, ecx
jne 0x435b34
test ecx, ecx
je 0x435b34
mov ecx, eax
call fcn.0045d2c0
lea ecx, [esp + 0x24]
call fcn.004357d0
test eax, eax
jne 0x435b1f
mov eax, dword [ebp]
mov edx, dword [eax + 0xc]
mov ecx, ebp
call edx
mov byte [esp + 0x38], 0xa
mov dword [esp + 0x24], vtable.FCXListIterator_class_FCClickMap_.0
mov byte [esp + 0x38], 9
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ebx, [esi + 0x10c]
lea eax, [ebx + 0x1c]
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea eax, [ebx + 4]
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x38], 0xc
mov eax, dword [esi + 0x138]
mov edx, dword [eax + 0xc]
lea edi, [esi + 0x138]
mov ecx, edi
call edx
mov byte [esp + 0x38], 9
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [esp + 0x38], 8
lea edx, [esi + 0x1e4]
push edx
mov dword [esi + method.FCCriticalSection.virtual_0], vtable.FCCriticalSection.0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov byte [esp + 0x38], 7
lea ecx, [esi + 0x1d0]
call fcn.0041d940
mov byte [esp + 0x38], 6
lea ecx, [esi + 0x188]
mov dword [ecx], vtable.FCFont.0
call fcn.00421c30
mov byte [esp + 0x38], 5
lea ecx, [esi + 0x154]
call fcn.00402250
mov byte [esp + 0x38], 4
mov ecx, edi
mov dword [edi], vtable.FCNList_class_FCViewportMagnifyContainer_.0
call fcn.00404350
mov byte [esp + 0x38], 3
mov ecx, ebp
mov dword [ebp], vtable.FCXList_class_FCClickMap_.0
call fcn.00404460
mov byte [esp + 0x38], 2
mov edi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [ebx], vtable.FCCriticalSection.0
add ebx, 4
push ebx
call edi
mov byte [esp + 0x38], 1
lea eax, [esi + 0xf0]
push eax
mov dword [esi + 0xec], vtable.FCCriticalSection.0
call edi
mov byte [esp + 0x38], 0
lea ecx, [esi + 0x58]
call fcn.00402160
mov dword [esp + 0x38], 0xffffffff
mov ecx, esi
call fcn.00401cf0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x436220
Capabilities:
Get disk information

Disassembly:
push ecx
cmp byte [0x4de578], 0
jne 0x436290
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov esi, eax
mov dword [esp + 0xc], 0x5c3a41
mov bl, 0x41
movzx ecx, bl
sub ecx, 0x41
mov eax, 1
shl eax, cl
test esi, eax
je 0x436266
lea ecx, [esp + 0xc]
push ecx
mov byte [esp + 0x10], bl
call edi
cmp eax, 5
je 0x436273
add bl, 1
cmp bl, 0x5a
jle 0x436245
pop edi
pop esi
pop ebx
pop ecx
ret
mov dl, byte [esp + 0xc]
mov al, byte [esp + 0xd]
pop edi
pop esi
mov byte [0x4de578], dl
mov byte [0x4de579], al
mov byte [0x4de57a], 0
pop ebx
pop ecx
ret

Function at 0x4362a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x4d92d4]
xor eax, esp
mov dword [esp + 0x104], eax
push edi
lea eax, [esp + 4]
push eax
push 0x104
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x4362ee
push str.FCPathName___create__
call fcn.00436160
add esp, 4
pop edi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0041c78e
add esp, 0x108
ret
mov ecx, dword [edi + 8]
cmp dword [ecx + 8], 0
je 0x4362ff
lea ecx, [edi + 4]
call fcn.0041dc70
push esi
lea edx, [esp + 8]
push edx
lea esi, [edi + 4]
push 0x100
mov ecx, esi
call fcn.0041d850
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x14]
add ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
cmp byte [edx - 1], 0x5c
je 0x436335
push 0x4b2950
mov ecx, esi
call fcn.0041d9f0
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x14]
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0x10c]
pop esi
pop edi
xor ecx, esp
call fcn.0041c78e
add esp, 0x108
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x4a9a78
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x4d92d4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [esp + 0x28]
xor esi, esi
cmp eax, esi
je 0x43711b
push eax
lea ecx, [esp + 0xc]
call fcn.00405c30
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43710a
test dword [esp + 0x2c], eax
je 0x43710a
mov esi, 1
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 8]
call fcn.00405cb0
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret
Function at 0x437130
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4a9aa8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x4d92d4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [esp + 0x28]
xor esi, esi
cmp eax, esi
je 0x43719f
push eax
lea ecx, [esp + 0xc]
call fcn.00405c30
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43718e
mov ecx, dword [esp + 0x2c]
cmp ecx, esi
je 0x437189
mov dword [ecx], eax
mov esi, 1
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 8]
call fcn.00405cb0
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret

Function at 0x4374a0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a9b08
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebp
push esi
push edi
mov eax, dword [0x4d92d4]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov ebp, dword [sym.imp.USER32.dll_MessageBoxA]
mov edi, edi
mov edx, dword [esp + 0x34]
mov eax, dword [edi + 4]
push 0
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x38]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4375ea
lea edx, [edi + 8]
push edx
lea ecx, [esp + 0x18]
call fcn.0041d950
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [esi - 5]
cmp eax, 0x1c
ja case.0x43751f.6
movzx eax, byte [eax + 0x437644]
jmp dword [eax*4 + 0x43762c]
push 0x4bb9c0
lea ecx, [esp + 0x18]
call fcn.0041d9f0
jmp 0x4375b5
push 0x4bb994
lea ecx, [esp + 0x18]
call fcn.0041d9f0
jmp 0x4375b5
push 0x4bb8b0
lea ecx, [esp + 0x18]
call fcn.0041d9f0
jmp 0x4375b5
push 0x4bb874
lea ecx, [esp + 0x18]
call fcn.0041d9f0
jmp 0x4375b5
push 0x4bb974
lea ecx, [esp + 0x18]
call fcn.0041d9f0
jmp 0x4375b5
push 0x4bb950
lea ecx, [esp + 0x18]
call fcn.0041d9f0
push 0x20
push 0
push 0xa
push esi
lea ecx, [esp + 0x24]
call fcn.0041e3f0
push str._nFile_handle_:
lea ecx, [esp + 0x18]
call fcn.0041d9f0
mov eax, dword [edi + 4]
push 0x20
push 0
push 0xa
push eax
lea ecx, [esp + 0x24]
call fcn.0041e3f0
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x14]
push 0x12005
push str.FCFile___read
push eax
push 0
call ebp
mov esi, eax
or eax, 0xffffffff
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x14]
call fcn.0041d940
cmp esi, 4
je 0x4374d0
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
jne 0x437617
mov edx, dword [edi + 0xc]
mov eax, dword [edx + 0x14]
push eax
push str.cannot_read
lea ecx, [esp + 0x1c]
call fcn.00436fb0
push 0x4cfa90
lea ecx, [esp + 0x18]
push ecx
call sub.MSVCR80.dll__CxxThrowException
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret 8
Function at 0x4376e0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a9b68
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
mov eax, dword [0x4d92d4]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, ecx
mov ebp, dword [sym.imp.USER32.dll_MessageBoxA]
mov edi, edi
mov edx, dword [esp + 0x34]
mov eax, dword [ebx + 4]
push 0
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x38]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x437809
lea edx, [ebx + 8]
push edx
lea ecx, [esp + 0x18]
call fcn.0041d950
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [esi - 5]
cmp eax, 0x1c
ja case.0x43775f.6
movzx eax, byte [eax + 0x437864]
jmp dword [eax*4 + 0x43784c]
push 0x4bb9c0
lea ecx, [esp + 0x18]
call fcn.0041d9f0
jmp 0x4377d4
push 0x4bb994
lea ecx, [esp + 0x18]
call fcn.0041d9f0
jmp 0x4377d4
push 0x4bb8b0
lea ecx, [esp + 0x18]
call fcn.0041d9f0
jmp 0x4377d4
push 0x4bb874
lea ecx, [esp + 0x18]
call fcn.0041d9f0
jmp 0x4377d4
push 0x4bba30
lea ecx, [esp + 0x18]
call fcn.0041d9f0
jmp 0x4377d4
push 0x4bba0c
lea ecx, [esp + 0x18]
call fcn.0041d9f0
push 0x20
push 0
push 0xa
push esi
lea ecx, [esp + 0x24]
call fcn.0041e3f0
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x14]
push 0x12005
push str.FCFile___write
push eax
push 0
call ebp
mov esi, eax
or eax, 0xffffffff
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x14]
call fcn.0041d940
cmp esi, 4
je 0x437710
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
jne 0x437836
mov edx, dword [ebx + 0xc]
mov eax, dword [edx + 0x14]
push eax
push str.cannot_write
lea ecx, [esp + 0x1c]
call fcn.00436eb0
push 0x4cfb20
lea ecx, [esp + 0x18]
push ecx
call sub.MSVCR80.dll__CxxThrowException
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
Function at 0x437a90
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4a9c6b
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
mov eax, dword [0x4d92d4]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
xor ebx, ebx
lea ecx, [esp + 0x44]
mov byte [esp + 0xf], bl
call fcn.004177e0
mov dword [esp + 0x5c], ebx
mov eax, dword [esp + 0x64]
push eax
lea ecx, [esp + 0x48]
call fcn.00436790
lea ecx, [esp + 0x44]
call fcn.00436380
test eax, eax
je 0x437af1
push 0x4b2950
lea ecx, [esp + 0x4c]
call fcn.0041d9f0
mov ecx, dword [esp + 0x4c]
mov esi, dword [ecx + 0x14]
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], vtable.FCString.0
call fcn.00439660
push esi
push 0x100
lea ecx, [esp + 0x1c]
call fcn.0041d850
mov byte [esp + 0x5c], 1
mov dword [esp + 0x2c], vtable.FCXList_class_FCString_.0
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov byte [esp + 0x5c], 2
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], vtable.FCString.0
call fcn.00439660
push ebx
push 0x100
lea ecx, [esp + 0x28]
call fcn.0041d850
mov byte [esp + 0x5c], 3
push 1
push 0x4b2950
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x20]
call fcn.0041ef50
test eax, eax
je 0x437bc1
push 0xc
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x10], eax
mov byte [esp + 0x5c], 4
cmp eax, ebx
je 0x437b95
lea ecx, [esp + 0x20]
push ecx
mov ecx, eax
call fcn.0041d950
jmp 0x437b97
xor eax, eax
mov byte [esp + 0x5c], 3
push 1
push eax
lea ecx, [esp + 0x34]
call fcn.00436d00
push 1
push 0x4b2950
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x20]
call fcn.0041ef50
test eax, eax
jne 0x437b70
lea eax, [esp + 0x2c]
mov dword [esp + 0x38], vtable.FCXListIterator_class_FCString_.0
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ebx
mov byte [esp + 0x5c], 5
lea ecx, [esp + 0x14]
call fcn.0041dc70
lea ecx, [esp + 0x38]
call fcn.004357d0
cmp eax, ebx
je 0x437c42
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + 0x14]
push eax
lea ecx, [esp + 0x18]
call fcn.0041d9f0
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x14]
push ebx
push eax
call fcn.00437130
add esp, 8
test eax, eax
jne 0x437c2f
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x14]
push ebx
push eax
call esi
test eax, eax
je 0x437c3e
mov byte [esp + 0xf], 1
lea ecx, [esp + 0x38]
call fcn.004357d0
cmp eax, ebx
jne 0x437bf6
jmp 0x437c42
mov byte [esp + 0xf], bl
mov byte [esp + 0x5c], 3
mov dword [esp + 0x38], vtable.FCXListIterator_class_FCString_.0
mov byte [esp + 0x5c], 2
lea ecx, [esp + 0x20]
call fcn.0041d940
mov byte [esp + 0x5c], 1
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], vtable.FCXList_class_FCString_.0
call fcn.00404460
mov byte [esp + 0x5c], bl
lea ecx, [esp + 0x14]
call fcn.0041d940
or eax, 0xffffffff
mov dword [esp + 0x5c], eax
mov dword [esp + 0x44], vtable.FCPathName.0
mov dword [esp + 0x5c], eax
lea ecx, [esp + 0x48]
call fcn.0041d940
mov al, byte [esp + 0xf]
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x54
ret
Function at 0x437d70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a9cb1
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4d92d4]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.UxDriveInfo.0
mov dword [esp + 0x14], 1
lea ecx, [esi + 0x54]
call fcn.0041d940
mov byte [esp + 0x14], 0
lea ecx, [esi + 0x3c]
call fcn.0041d940
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esi + 0x30]
call fcn.0041d940
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x437e20
Capabilities:
Get disk information

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x18]
mov bl, byte [esi]
add bl, 0x41
cmp bl, 0x5a
mov ebp, eax
mov byte [esp + 0x10], 0x41
mov byte [esp + 0x11], 0x3a
mov byte [esp + 0x12], 0x5c
mov byte [esp + 0x13], 0
jg 0x437eb9
mov edi, dword [esp + 0x1c]
mov ecx, dword [esi]
mov eax, 1
shl eax, cl
test ebp, eax
je 0x437e98
cmp edi, 0xffffffff
mov byte [esp + 0x10], bl
jne 0x437e89
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
je 0x437e98
mov eax, dword [esi]
pop edi
lea ecx, [eax + 1]
mov dword [esi], ecx
pop esi
pop ebp
pop ebx
pop ecx
ret
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, edi
je 0x437eac
add dword [esi], 1
add bl, 1
cmp bl, 0x5a
jle 0x437e56
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov eax, dword [esi]
pop edi
lea edx, [eax + 1]
mov dword [esi], edx
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret