joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f690
Capabilities:
Delete file

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
xor ebp, ebp
mov edx, dword [esi + 0xda0]
xor eax, eax
cmp edx, ebp
mov edx, dword [esp + 0x10]
sete al
push esi
push eax
push ecx
push edx
call fcn.0042f5c0
mov eax, dword [esi + 0x3c1e]
add esp, 0x10
cmp eax, ebp
je 0x42f7c7
cmp eax, dword [esi + 0xdb0]
je 0x42f70d
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x42f6e6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0xffffffff
mov eax, dword [esi + 0x3c1e]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esi + 0x3c1e]
push ecx
call fcn.00448616
add esp, 4
mov dword [esi + 0x3c1e], ebp
jmp 0x42f7c7
mov eax, dword [esi + 8]
lea ebx, [esi + 8]
cmp eax, 0xffffffff
je 0x42f7c7
mov edx, dword [esi + 0xdb8]
push edi
test byte [esi + 0xdf1], 0x80
mov dword [esp + 0x1c], edx
jne 0x42f7b7
mov edi, edx
push 0
push 0
push edi
push eax
call fcn.004354e0
add esp, 0x10
xor ecx, ecx
cmp eax, edi
jne 0x42f7b5
cmp edx, ecx
jne 0x42f7b5
mov dword [esi + 0xdd0], edi
mov edi, dword [esi + 0xdbc]
test edi, edi
push esi
push ebx
je 0x42f790
push edi
call fcn.004373b0
add esp, 0xc
test eax, eax
jne 0x42f7b5
mov eax, dword [edi + 0x24]
mov edx, dword [edi + 0x20]
mov ecx, dword [edi + 0x18]
add eax, edx
lea edx, [eax + ecx + 0x2e]
mov ecx, dword [esi + 0xdd0]
add ecx, edx
inc ebp
mov dword [esi + 0xdd0], ecx
mov edi, dword [edi + 0x4e]
jmp 0x42f75a
mov eax, dword [esi + 0xdc8]
mov ecx, dword [esi + 0xdc4]
mov edx, dword [esi + 0xdd0]
push eax
mov eax, dword [esp + 0x28]
push ecx
sub edx, eax
push eax
push edx
push ebp
call fcn.004377b0
add esp, 0x1c
xor ebp, ebp
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0xffffffff
pop edi
mov eax, dword [esi + 0xda8]
cmp eax, ebp
je 0x42f7e0
push eax
call fcn.00448616
add esp, 4
mov dword [esi + 0xda8], ebp
mov eax, dword [esi + 0xdac]
cmp eax, ebp
je 0x42f7f3
push eax
call fcn.00448616
add esp, 4
mov eax, dword [esi + 0xdb0]
mov dword [esi + 0xdac], ebp
cmp eax, ebp
je 0x42f80c
push eax
call fcn.00448616
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esi + 0xdb0], ebp
cmp eax, 3
je 0x42f824
push esi
call fcn.0042f340
add esp, 4
pop esi
pop ebp
pop ebx
ret
Function at 0x432730
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x104
mov ecx, dword [eax + 0x1e2]
test ecx, ecx
je 0x432750
mov eax, 1
add esp, 0x104
ret
mov eax, dword [esp + 0x108]
test eax, eax
jl 0x4327a7
cmp eax, 0x1a
jg 0x4327a7
test eax, eax
jne 0x432769
call fcn.00433370
lea ecx, [esp]
push esi
push ecx
push eax
xor esi, esi
call fcn.00433460
add esp, 8
test eax, eax
je 0x43279d
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x432798
mov eax, esi
pop esi
add esp, 0x104
ret
mov esi, 1
mov eax, esi
pop esi
add esp, 0x104
ret
xor eax, eax
add esp, 0x104
ret

Function at 0x4327b0
Capabilities:
Get disk size

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x114
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov al, byte [esp + 0x10]
cmp al, 0x5c
mov al, byte [esp + 0x11]
jne 0x4327f9
cmp al, 0x5c
jne 0x4327f9
lea edx, [esp + 0x12]
push 0x5c
push edx
call fcn.00434160
test eax, eax
je 0x432807
inc eax
push 0x5c
push eax
call fcn.00434160
test eax, eax
je 0x432807
mov byte [eax + 1], 0
jmp 0x432807
cmp al, 0x3a
jne 0x432807
mov byte [esp + 0x12], 0x5c
mov byte [esp + 0x13], 0
lea eax, [esp + 0xc]
lea ecx, [esp]
push eax
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0xc]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x432831
mov eax, Ordinal_3
jmp 0x43283f
mov eax, dword [esp + 4]
imul eax, dword [esp + 8]
imul eax, dword [esp]
test eax, 0x80000000
je 0x43284b
mov eax, Ordinal_3
add esp, 0x114
ret
Function at 0x432860
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
mov esi, dword [esp + 0x120]
push edi
mov edi, dword [esp + 0x120]
mov dword [edi], 0xffffffff
mov al, byte [esi]
test al, al
jne 0x432895
mov eax, dword [esp + 0x118]
push esi
push eax
call fcn.00433460
add esp, 8
lea ecx, [esp + 0x10]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x10]
push edx
call fcn.004341e0
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 4
test eax, eax
jne 0x4328c4
lea eax, [esp + 0x10]
push 0x492c28
push eax
call ebp
lea ecx, [esp + 0x10]
push 0x4942bc
push ecx
call ebp
mov esi, dword [esp + 0x11c]
lea edx, [esp + 0x10]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [edi], eax
je 0x43298a
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov eax, dword [esi]
test al, 0x10
je 0x432915
mov ecx, dword [esp + 0x128]
mov edx, dword [ecx + 0xd94]
test edx, edx
jne 0x43290f
test al, 6
jne 0x432915
cmp byte [esi + 0x2c], 0x2e
jne 0x432921
mov edx, dword [edi]
push esi
push edx
call ebx
test eax, eax
je 0x432976
jmp 0x4328f4
mov ebx, dword [esp + 0x124]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x10]
push ebx
push eax
call edi
lea ecx, [esp + 0x10]
push ecx
call fcn.004341e0
add esp, 4
test eax, eax
jne 0x432953
lea edx, [esp + 0x10]
push 0x492c28
push edx
call ebp
add esi, 0x2c
lea eax, [esp + 0x10]
push esi
push eax
call ebp
lea ecx, [esp + 0x10]
push ecx
push ebx
call edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x43298a
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [edi], 0xffffffff
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret

Function at 0x432a70
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, dword [esp + 0x18]
cmp eax, 0xffffffff
mov dword [ebp], eax
je 0x432ae2
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
test byte [edi], 0x10
jne 0x432ab6
lea esi, [edi + 0x2c]
push 0x48f430
push esi
call ebx
test eax, eax
je 0x432ab6
push 0x4942c0
push esi
call ebx
test eax, eax
jne 0x432ac7
mov ecx, dword [ebp]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x432ad1
jmp 0x432a96
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
mov edx, dword [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp], 0xffffffff
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x432b80
Capabilities:
Delete file
Set file attributes

Disassembly:
sub esp, 0x24c
lea eax, [esp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebp
mov ebp, dword [esp + 0x258]
push esi
push edi
push ebp
push eax
xor esi, esi
call ebx
lea ecx, [esp + 0x18]
push ecx
call fcn.004341e0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 4
test eax, eax
jne 0x432bc4
lea edx, [esp + 0x18]
push 0x492c28
push edx
call edi
lea eax, [esp + 0x18]
push eax
call fcn.004331c0
add al, 0x40
add esp, 4
movsx ecx, al
push ecx
push 0
push 0x25d
call fcn.00433fe0
add esp, 8
lea edx, [esp + 0x1c]
push eax
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
push 0
push 0
push 0
lea eax, [esp + 0x30]
push 0x64
push eax
call fcn.0042be30
add esp, 0x20
lea ecx, [esp + 0x18]
push ebp
push ecx
call ebx
lea edx, [esp + 0x18]
push edx
call fcn.004341e0
add esp, 4
test eax, eax
jne 0x432c2c
lea eax, [esp + 0x18]
push 0x492c28
push eax
call edi
lea ecx, [esp + 0x18]
push 0x4942bc
push ecx
call edi
mov edx, dword [esp + 0x268]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x124]
push ecx
push edx
mov dword [esp + 0x20], 0xffffffff
call fcn.00432a70
add esp, 0x10
test eax, eax
je 0x432d3a
mov esi, dword [esp + 0x264]
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x11c]
test esi, esi
mov ebx, eax
je 0x432c8a
and al, 0xf8
mov ebx, eax
test bl, 7
jne 0x432cfc
lea eax, [esp + 0x18]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x18]
push ecx
call fcn.004341e0
add esp, 4
test eax, eax
jne 0x432cb8
lea edx, [esp + 0x18]
push 0x492c28
push edx
call edi
lea eax, [esp + 0x148]
lea ecx, [esp + 0x18]
push eax
push ecx
call edi
cmp ebx, dword [esp + 0x11c]
je 0x432cdc
lea edx, [esp + 0x18]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
lea eax, [esp + 0x1c]
push 0x64
push eax
call fcn.0042bfb0
add esp, 0xc
test eax, eax
jne 0x432d22
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x268]
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x120]
push eax
push ecx
call fcn.00432af0
add esp, 0xc
test eax, eax
je 0x432d26
jmp 0x432c79
xor esi, esi
jmp 0x432d2a
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x432d3a
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24c
ret
Function at 0x4333a0
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x108
mov cl, byte [eax + 0xdf0]
push esi
test cl, 1
je 0x4333c3
mov eax, 1
pop esi
add esp, 0x108
ret
mov eax, dword [esp + 0x110]
xor esi, esi
test eax, eax
jne 0x4333d5
call fcn.00433370
add al, 0x40
lea edx, [esp + 4]
movsx ecx, al
push ecx
push str._c:_
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 8]
lea ecx, [esp + 4]
push eax
push 0
push 0x4942c4
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x43344a
push 0
push 0x80
push 2
push 0
push 0
lea edx, [esp + 0x1c]
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x43344a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
pop esi
add esp, 0x108
ret
mov eax, esi
pop esi
add esp, 0x108
ret

Function at 0x433d80
Capabilities:
Get file size

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
xor esi, esi
mov eax, dword [edi + 0x96]
cmp eax, 0xffffffff
je 0x433db8
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x433db8
test ecx, ecx
jl 0x433db8
mov eax, dword [edi + 0x19e]
pop edi
sub eax, ecx
pop esi
ret
mov eax, esi
pop edi
pop esi
ret
Function at 0x433dc0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x10
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, 0xa
mov eax, dword [esi + 0x96]
mov dword [esp + 0xc], edi
cmp eax, 0xffffffff
je 0x433f97
mov ecx, dword [esp + 0x20]
xor ebp, ebp
cmp ecx, ebp
je 0x433f97
cmp dword [ecx], 0xffffffff
je 0x433f97
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
je 0x433f97
mov eax, dword [esi + 0x96]
push ebx
push 2
push ebp
push ebp
push eax
call fcn.004354e0
mov ebx, edx
add esp, 0x10
cmp ebx, ebp
mov dword [esp + 0x18], eax
jg 0x433e32
jl 0x433e2c
cmp eax, ebp
jae 0x433e32
mov dword [esp + 0x18], ebp
xor ebx, ebx
mov ecx, dword [esi + 0x96]
push ebp
push ebp
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
jne 0x433f57
push 0x7800
mov dword [esp + 0x14], ebp
call fcn.00448866
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x433e69
mov dword [esp + 0x10], 4
mov edx, dword [esi + 0xdb0]
push esi
push edx
call fcn.004327b0
cdq
add esp, 8
cmp edx, ebx
jl 0x433f34
jg 0x433e8e
cmp eax, dword [esp + 0x18]
jb 0x433f34
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x433f38
test ebx, ebx
jl 0x433f38
jg 0x433eb0
mov eax, dword [esp + 0x18]
test eax, eax
jbe 0x433f38
push esi
call fcn.0042c120
add esp, 4
test eax, eax
jne 0x433f2a
mov ecx, dword [esi + 0x96]
push eax
lea eax, [esp + 0x2c]
push eax
push 0x7800
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x433f20
mov eax, dword [esp + 0x28]
test eax, eax
mov edi, eax
jne 0x433eec
mov dword [esp + 0x18], eax
xor ebx, ebx
jmp 0x433e9a
lea edx, [esp + 0x14]
push 0
push edx
push eax
mov eax, dword [esp + 0x30]
push ebp
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x433f20
cmp dword [esp + 0x14], edi
jne 0x433f20
mov ecx, dword [esp + 0x18]
mov eax, edi
cdq
sub ecx, eax
mov dword [esp + 0x18], ecx
sbb ebx, edx
jmp 0x433e9a
mov dword [esp + 0x10], 0xa
jmp 0x433f38
mov dword [esp + 0x10], 9
jmp 0x433f38
mov dword [esp + 0x10], edi
mov edx, dword [esp + 0x24]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test ebp, ebp
je 0x433f52
push ebp
call fcn.00448616
add esp, 4
mov edi, 0xa
mov ecx, dword [esi + 0x96]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
pop ebx
je 0x433f93
push 0
push 0x8000080
push 2
push 0
push 0
lea edx, [esi + 0x9a]
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x96], eax
jne 0x433f97
mov dword [esp + 0xc], edi
mov eax, dword [esi + 0xdb0]
push esi
push eax
call fcn.004327b0
add esp, 8
test eax, eax
jg 0x433fc6
mov ecx, dword [esp + 0x20]
push esi
push 0xffffffffffffffff
push ecx
push 0
call fcn.004335f0
add esp, 0x10
test eax, eax
mov eax, 9
jne 0x433fca
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
add esp, 0x10
ret
Function at 0x433fe0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x4a91c0]
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x43401b
mov eax, dword [esp + 0x18]
push 0x49a270
mov ecx, eax
shl ecx, 6
add ecx, eax
lea esi, [ecx*4 + 0x37f2]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
mov edi, dword [esp + 0x18]
test edi, edi
jge 0x434027
xor edi, edi
jmp 0x434031
cmp edi, 2
jle 0x434031
mov edi, 2
xor ebp, ebp
xor eax, eax
test ebp, ebp
jl 0x4340e9
mov ecx, dword [ebp*8 + 0x494348]
mov edx, dword [esp + 0x14]
cmp ecx, edx
mov dword [esp + 0x18], ecx
jne 0x434084
mov edx, edi
mov eax, dword [ebp*8 + 0x49434c]
shl edx, 6
add edx, edi
push 0x103
push eax
lea esi, [ebx + edx*4]
lea ecx, [esi + 0x37f2]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [esp + 0x18]
mov byte [esi + 0x38f5], 0
mov eax, 1
test ecx, ecx
jne 0x43408d
or ebp, 0xffffffff
jmp 0x43408e
inc ebp
test eax, eax
je 0x434035
mov eax, dword [ebx + 0xb28]
test eax, eax
je 0x4340d6
lea esi, [ebx + 0x3afe]
push 0x48f850
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebx + 0xb2c]
mov ecx, edi
shl ecx, 6
add ecx, edi
push eax
mov eax, dword [esp + 0x18]
push esi
lea edx, [ebx + ecx*4 + 0x37f2]
push edx
push 0
push eax
push 0
push 0xd
call dword [ebx + 0xb28]
mov ecx, edi
shl ecx, 6
add ecx, edi
pop edi
pop esi
pop ebp
lea eax, [ebx + ecx*4 + 0x37f2]
pop ebx
ret
test eax, eax
jne 0x434092
mov edx, edi
push 0x49a270
shl edx, 6
add edx, edi
lea esi, [ebx + edx*4 + 0x37f2]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x434500
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x114
test eax, eax
push esi
push edi
je 0x434595
add al, 0x40
push 0x495c44
mov byte [esp + 0xc], al
lea eax, [esp + 0xd]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [esp + 0x12c]
lea ecx, [esp + 0x18]
push 0x104
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
push eax
lea esi, [edi + 0x3d32]
push ecx
push 0x104
lea edx, [esp + 0x20]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x434595
push edi
push 0
push 0
push 0
call fcn.00434dd0
mov ecx, dword [esp + 0x134]
mov edx, dword [esp + 0x138]
add esp, 0x10
mov dword [ecx], eax
mov eax, esi
pop edi
mov dword [edx], 8
pop esi
add esp, 0x114
ret
pop edi
xor eax, eax
pop esi
add esp, 0x114
ret
Function at 0x435010
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0x24
lea eax, [esp]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
push eax
push esi
call fcn.0042f260
mov ebp, dword [esp + 0x44]
add esp, 8
test eax, eax
jne 0x435051
cmp word [esp + 0x18], 1
jg 0x435061
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x435051
pop edi
pop esi
pop ebp
mov eax, 0xf
pop ebx
add esp, 0x24
ret
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x4350ee
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 3
push Ordinal_4
push ebp
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x435090
pop edi
pop esi
pop ebp
mov eax, 0xa
pop ebx
add esp, 0x24
ret
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push ebp
call esi
mov esi, eax
cmp esi, 0xffffffff
jne 0x4350c0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0xf
pop ebx
add esp, 0x24
ret
mov ecx, dword [esp + 0x40]
push ecx
push 0xffffffffffffffff
push esi
push edi
call fcn.00435210
add esp, 0x10
mov ebx, eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
test eax, eax
jne 0x4350f8
test ebx, ebx
jne 0x4350f8
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov edx, dword [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test ebx, ebx
je 0x43510e
cmp ebx, 0xa
mov eax, ebx
jne 0x4350f0
pop edi
pop esi
pop ebp
mov eax, 0xe
pop ebx
add esp, 0x24
ret

Function at 0x435210
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
push 0x2000
call fcn.00448866
mov esi, eax
add esp, 4
test esi, esi
jne 0x435237
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 8
ret
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
xor ebx, ebx
cmp edi, 0xffffffff
je 0x435259
cmp ebx, edi
jae 0x4352d5
mov eax, edi
sub eax, ebx
cmp eax, 0x2000
jb 0x43525e
mov eax, 0x2000
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push 0
push ecx
push eax
push esi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4352bf
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4352d5
lea ecx, [esp + 0x14]
push 0
push ecx
push eax
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4352fe
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp edx, eax
jne 0x4352fe
mov eax, dword [esp + 0x28]
push eax
call fcn.0042c120
mov ecx, dword [esp + 0x2c]
add esp, 4
mov eax, dword [ecx + 0x8e]
test eax, eax
jne 0x4352e8
add ebx, dword [esp + 0x14]
jmp 0x435241
push esi
call fcn.00448616
add esp, 4
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push esi
call fcn.00448616
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push esi
call fcn.00448616
add esp, 4
mov eax, 9
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push esi
call fcn.00448616
add esp, 4
mov eax, 0xa
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x435320
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x514
lea ecx, [esp + 0x30c]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
push ecx
call edi
lea edx, [esp + 0x31c]
push edx
call fcn.0042e9f0
push 0
lea eax, [esp + 0x220]
push 0
lea ecx, [esp + 0x42c]
push eax
lea edx, [esp + 0x32c]
push ecx
push edx
call fcn.00434260
push 0
lea eax, [esp + 0x234]
push 0
lea ecx, [esp + 0x440]
push eax
lea edx, [esp + 0x138]
push ecx
push edx
call fcn.00434410
add esp, 0x2c
lea eax, [esp + 0x114]
lea ecx, [esp + 0x218]
push eax
push ecx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea edx, [esp + 0x114]
push 0x5c
push edx
call fcn.004341a0
test eax, eax
je 0x4353dd
mov byte [eax], 0
lea eax, [esp + 0x114]
push eax
call esi
cmp eax, 0xffffffff
je 0x4353a9
lea ecx, [esp + 0x114]
lea edx, [esp + 0x10]
push ecx
push edx
jmp 0x4353ea
lea eax, [esp + 0x114]
lea ecx, [esp + 0x10]
push eax
push ecx
call edi
lea edx, [esp + 0x10]
push 0x492c28
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x218]
lea ecx, [esp + 0x114]
push eax
push ecx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x10]
push edx
call ebx
mov esi, eax
lea eax, [esp + 0x114]
push eax
call ebx
cmp esi, eax
jge 0x4354bd
mov ebp, dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
lea ecx, [esp + 0x10]
push ecx
call ebx
lea edx, [esp + 0x10]
lea edi, [esp + eax + 0x10]
push edx
call ebx
lea esi, [esp + eax + 0x114]
mov al, byte [esp + eax + 0x114]
test al, al
je 0x43547e
cmp al, 0x5c
je 0x43547e
mov byte [edi], al
mov al, byte [esi]
push eax
inc edi
call ebp
test eax, eax
je 0x43546f
mov cl, byte [esi + 1]
mov byte [edi], cl
inc edi
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov al, byte [esi]
test al, al
jne 0x435459
lea edx, [esp + 0x10]
push 0
push edx
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4354ca
lea eax, [esp + 0x10]
push 0x492c28
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x10]
push ecx
call ebx
lea edx, [esp + 0x114]
mov esi, eax
push edx
call ebx
cmp esi, eax
jl 0x435435
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x514
ret
pop edi
pop esi
pop ebp
mov eax, 0xf
pop ebx
add esp, 0x514
ret

Function at 0x435550
Capabilities:
Get file size

Disassembly:
mov ecx, dword [esp + 4]
push ebx
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ecx
or edi, 0xffffffff
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43557a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x435594
mov edx, dword [esp + 0x10]
push 1
push 0
push 0
push edx
call fcn.0044b4a0
xor ecx, ecx
add eax, esi
pop edi
pop esi
adc edx, ecx
pop ebx
ret
mov eax, edi
pop edi
mov edx, ebx
pop esi
pop ebx
ret