joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4300ab
Capabilities:
Get disk size

Disassembly:
push 0x28
mov eax, 0x4637c5
call fcn.0044621d
mov esi, edx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x1c], ecx
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
xor edi, edi
mov dword [ebp - 0x20], edi
call dword [0x46a52c]
mov byte [ebp - 4], 1
xor ebx, ebx
mov eax, dword [ebp + 8]
cmp dword [eax - 8], ebx
jne 0x4300f0
mov ecx, 0x80070057
mov ebx, ecx
call fcn.0041b100
jmp 0x43028e
test esi, esi
je 0x4300df
mov eax, dword [ebp - 0x1c]
cdq
mov ecx, edx
lea edx, [ebp + 8]
shld ecx, eax, 0x1e
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x24]
shl eax, 0x1e
mov dword [ebp - 0x1c], eax
call fcn.0042fc31
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call dword [0x46a520]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call dword [0x46a528]
push 0
push 0
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x43023f
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x1c]
shrd esi, eax, 0x14
push 0
shr eax, 0x14
mov eax, dword [ebp - 0x18]
shrd edi, eax, 0x14
push 0
shr eax, 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.WDSCORE.dll_CurrentIP]
push eax
push 0x40dab8
push 0x40d8e8
push 0x24a
push 0
push 0x406890
push 0xa4000
push esi
push dword [ebp - 0x14]
push 0x40dae8
push 0x4000000
call fcn.00420037
add esp, 0x10
push eax
call dword [sym.imp.WDSCORE.dll_WdsSetupLogMessageW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.WDSCORE.dll_CurrentIP]
push eax
mov esi, 0x40dab8
push esi
push 0x40d8e8
push 0x24b
push 0
push 0x406890
push 0xa4000
push edi
push 0x40da5c
push 0x4000000
call fcn.00420037
add esp, 0xc
push eax
call dword [sym.imp.WDSCORE.dll_WdsSetupLogMessageW]
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x30], eax
jb 0x43023a
ja 0x430204
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x34], eax
jb 0x43023a
push 0
xor edi, edi
push 0
inc edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.WDSCORE.dll_CurrentIP]
push eax
push esi
push 0x40d8e8
push 0x255
push 0
push 0x406890
push 0xa4000
push dword [ebp - 0x14]
push 0x40dafc
jmp 0x430275
mov edi, dword [ebp - 0x20]
jmp 0x430244
mov esi, 0x40dab8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.WDSCORE.dll_CurrentIP]
push eax
push esi
push 0x40d8e8
push 0x259
push 0
push 0x406890
push 0xa4000
push dword [ebp - 0x14]
push 0x40db20
push 0x4000000
call fcn.00420037
add esp, 0xc
push eax
call dword [sym.imp.WDSCORE.dll_WdsSetupLogMessageW]
mov eax, dword [ebp - 0x28]
mov dword [eax], edi
mov ecx, ebx
call fcn.0041b049
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call dword [0x46a528]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [0x46a528]
mov eax, ebx
call fcn.004461f0
ret 4
Function at 0x431874
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x214], edx
push 0x206
mov word [ebp - 0x20c], ax
xor esi, esi
lea eax, [ebp - 0x20a]
mov edi, ecx
push esi
push eax
call sub.msvcrt.dll_memset
push 0x30
lea eax, [ebp - 0x244]
push esi
push eax
call sub.msvcrt.dll_memset
or dword [ebp - 0x248], 0xffffffff
lea eax, [ebp - 0x20c]
add esp, 0x18
mov dword [edi], esi
mov ebx, 0x104
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x431901
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x4319f6
movzx ebx, bx
or ebx, 0x80070000
jmp 0x4319f6
push 0x40e4c8
mov edx, ebx
lea ecx, [ebp - 0x20c]
call fcn.00431ca9
mov ebx, eax
test ebx, ebx
js 0x4319f6
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x4318e3
push 0x40e4e0
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x244], eax
test eax, eax
jne 0x431a09
push 0x40e4f0
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x230], eax
test eax, eax
jne 0x431979
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x4319eb
movzx ebx, bx
or ebx, 0x80070000
jmp 0x4319eb
push 0x40e504
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x22c], eax
test eax, eax
je 0x431962
push 0x40e51c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x431962
push 0x40e51c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x228], eax
test eax, eax
je 0x431962
push 0x40e538
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x224], eax
test eax, eax
je 0x431962
and dword [ebp - 0x210], 0
mov dword [edi], esi
lea esi, [ebp - 0x248]
mov edi, dword [ebp - 0x214]
push 0xd
pop ecx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x210]
test esi, esi
je 0x4319f6
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00445fe0
mov esp, ebp
pop ebp
ret
push 0x40e554
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x240], eax
test eax, eax
je 0x431962
push 0x40e564
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x234], eax
test eax, eax
je 0x431962
push 0x40e574
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x431962
push 0x40e590
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x220], eax
test eax, eax
je 0x431962
push 0x40e5ac
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x218], eax
test eax, eax
je 0x431962
push 0x40e5c0
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x23c], eax
jmp 0x4319c7
Function at 0x431eb3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x654
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, 0x20e
lea eax, [ebp - 0x428]
push ebx
xor edi, edi
mov esi, ecx
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x64c], edi
lea eax, [ebp - 0x218]
push 0x20a
push edi
push eax
call sub.msvcrt.dll_memset
or dword [ebp - 0x63c], 0xffffffff
lea eax, [ebp - 0x64c]
add esp, 0xc
mov dword [ebp - 0x644], edi
push edi
push eax
push ebx
lea eax, [ebp - 0x428]
push eax
push edi
push edi
push 0x4d0008
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x431f4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x4320f0
movzx ebx, bx
or ebx, 0x80070000
jmp 0x4320f0
mov esi, 0x105
lea ecx, [ebp - 0x218]
push 0x40e5d4
mov edx, esi
call fcn.0043240c
mov ebx, eax
test ebx, ebx
js 0x4320f0
movzx eax, word [ebp - 0x428]
lea ecx, [ebp - 0x218]
shr eax, 1
push eax
lea eax, [ebp - 0x426]
push eax
call fcn.0043235f
mov ebx, eax
test ebx, ebx
js 0x4320f0
push 0x40e5f8
mov edx, esi
lea ecx, [ebp - 0x218]
call fcn.00431ca9
mov ebx, eax
test ebx, ebx
js 0x4320f0
lea eax, [ebp - 0x644]
mov edx, esi
push eax
lea ecx, [ebp - 0x218]
call fcn.00431c62
mov ebx, eax
mov eax, edi
test ebx, ebx
js 0x431fd2
mov eax, dword [ebp - 0x644]
mov dword [ebp - 0x640], eax
test ebx, ebx
js 0x4320f0
test eax, eax
je 0x4320f0
push 0x40e5d4
mov edx, esi
lea ecx, [ebp - 0x638]
call fcn.0043240c
mov ebx, eax
test ebx, ebx
js 0x4320f0
movzx eax, word [ebp - 0x428]
lea ecx, [ebp - 0x638]
shr eax, 1
push eax
lea eax, [ebp - 0x426]
push eax
call fcn.0043235f
mov ebx, eax
test ebx, ebx
js 0x4320f0
push 0x40e688
mov edx, esi
lea ecx, [ebp - 0x638]
call fcn.00431ca9
mov ebx, eax
test ebx, ebx
js 0x4320f0
lea eax, [ebp - 0x650]
mov edx, esi
push eax
lea ecx, [ebp - 0x638]
call fcn.00431c62
mov ebx, eax
mov eax, edi
test ebx, ebx
js 0x432068
mov eax, dword [ebp - 0x650]
mov dword [ebp - 0x648], eax
test ebx, ebx
js 0x4320f0
test eax, eax
je 0x4320f0
lea edx, [ebp - 0x63c]
call fcn.00431d41
mov ebx, eax
test ebx, ebx
js 0x4320e0
mov ebx, dword [ebp - 0x648]
push 0x31
pop esi
mov eax, dword [ebp - 0x640]
mov word [ebp + eax*2 - 0x21a], si
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4320d6
lea eax, [ebp - 0x638]
mov word [ebp + ebx*2 - 0x63a], si
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4320d6
inc esi
lea eax, [esi - 0x31]
cmp ax, 3
jb 0x432090
jmp 0x4320d9
xor edi, edi
inc edi
xor ebx, ebx
test edi, edi
sete bl
mov ecx, dword [ebp - 0x63c]
cmp ecx, 0xffffffff
je 0x4320f0
call fcn.00431e6e
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00445fe0
mov esp, ebp
pop ebp
ret
Function at 0x43220c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x20], ebx
xor eax, eax
stosd dword es:[edi], eax
push ebx
push 0x20000000
push 3
stosd dword es:[edi], eax
push ebx
push 3
push SysReAllocString
stosd dword es:[edi], eax
push ecx
mov dword [ebp - 0x24], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x43226f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43231f
movzx esi, si
or esi, 0x80070000
jmp 0x43231f
mov ecx, edi
call fcn.00432108
mov esi, eax
test esi, esi
je 0x432318
push ebx
lea eax, [ebp - 0x28]
push eax
push 0x18
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push 0x70000
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4322b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x432318
movzx esi, si
or esi, 0x80070000
jmp 0x432318
mov esi, dword [ebp - 0xc]
push 4
add esi, 0x1ff
push 0x3000
and esi, 0xfffffe00
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
je 0x43229d
push 0
lea eax, [ebp - 0x24]
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x432332
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x432300
movzx esi, si
or esi, 0x80070000
cmp esi, 0x80310000
jne 0x43230a
xor esi, esi
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00445fe0
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x24]
mov ecx, ebx
push 0
call fcn.00440834
cmp eax, 2
je 0x432308
cmp eax, 3
je 0x432308
xor esi, esi
inc esi
cmp eax, esi
jne 0x43230a
mov ecx, edi
call fcn.00431eb3
mov esi, eax
jmp 0x43230a

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

Disassembly:
mov edi, edi
push edi
xor edi, edi
test ecx, ecx
je 0x432d1b
xor eax, eax
cmp ax, word [ecx]
je 0x432d1b
push ebx
xor edx, edx
call fcn.004339ac
mov ebx, eax
test ebx, ebx
je 0x432d16
push esi
push ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x432ce3
test al, 0x10
je 0x432ce3
inc edi
jmp 0x432cfe
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x432cf6
mov esi, 0x10b
cmp esi, 2
jne 0x432cfe
push 3
pop esi
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop ebx
mov eax, edi
pop edi
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
ret
Function at 0x432d2c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push edi
xor edi, edi
test ecx, ecx
je 0x432d88
xor eax, eax
cmp ax, word [ecx]
je 0x432d88
push ebx
xor edx, edx
call fcn.004339ac
mov ebx, eax
test ebx, ebx
je 0x432d83
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x432d60
test eax, 0x400
je 0x432d60
inc edi
jmp 0x432d62
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop ebx
mov eax, edi
pop edi
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
ret

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

Disassembly:
mov edi, edi
push esi
push edi
xor edi, edi
xor esi, esi
test ecx, ecx
je 0x432f18
xor eax, eax
cmp ax, word [ecx]
je 0x432f18
push ebx
xor edx, edx
call fcn.004339ac
mov ebx, eax
test ebx, ebx
je 0x432f04
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x432eea
test al, 0x10
je 0x432ee5
push 2
pop esi
jmp 0x432ef2
xor edi, edi
inc edi
jmp 0x432ef2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x432f0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop ebx
jmp 0x432f22
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
ret
Function at 0x433523
Capabilities:
Get file attributes
Set file attributes

Disassembly:
test ecx, ecx
jne 0x433532
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
ret
test dl, 1
je 0x43353f
xor edx, edx
inc edx
jmp fcn.00432857
jmp fcn.00432bbb

Function at 0x4336db
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x220]
stosd dword es:[edi], eax
mov edx, 0x433550
push 1
mov ebx, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x224]
xor edi, edi
push eax
push 0x433630
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x218], edi
call fcn.00433062
xor edx, edx
mov ecx, ebx
mov esi, eax
call fcn.00433523
test eax, eax
jne 0x433762
inc dword [ebp - 0x220]
cmp dword [ebp - 0x224], edi
jne 0x433762
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x220], edi
jbe 0x43380d
push 0x204
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], edi
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x4337a8
mov word [ebp - 0x210], ax
jmp 0x4337b9
xor eax, eax
cmp ax, word [ebp - 0x210]
lea eax, [ebp - 0x210]
jne 0x4337be
mov eax, 0x40f458
cmp dword [ebp - 0x220], 1
mov ecx, 0x40f474
jne 0x4337d1
mov ecx, 0x40b830
push eax
push dword [ebp - 0x224]
push ebx
push ecx
push dword [ebp - 0x220]
push 0x40f478
push 0x4000000
push 0x46942c
call fcn.00430fcd
add esp, 0x20
cmp dword [ebp - 0x224], edi
je 0x43380b
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00445fe0
mov esp, ebp
pop ebp
ret 8
Function at 0x433b96
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
xor eax, eax
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
push edi
test esi, esi
je 0x433d1a
cmp ax, word [esi]
je 0x433d1a
push ebx
lea edx, [ebp - 4]
call fcn.004339ac
mov ebx, eax
test ebx, ebx
je 0x433d05
xor eax, eax
lea edx, [ebp - 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push ecx
push eax
mov ecx, ebx
call fcn.00433e06
test eax, eax
js 0x433cc7
cmp dword [ebp - 8], 1
push 0x5c
pop ecx
jne 0x433c67
mov edx, dword [ebp - 0xc]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x14]
jne 0x433c04
mov eax, dword [ebp - 4]
sub ecx, esi
sar ecx, 1
lea esi, [eax + ecx*2]
test edx, edx
je 0x433c2f
push edx
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x5c
pop ecx
xor edi, edi
push ecx
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
mov esi, eax
pop ecx
mov ecx, ebx
test esi, esi
je 0x433c95
xor eax, eax
mov word [esi], ax
call fcn.00432caf
test eax, eax
jne 0x433c5c
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x5c
pop ecx
mov word [esi], cx
add esi, 2
jmp 0x433c34
mov esi, dword [ebp - 4]
movzx eax, word [esi]
cmp eax, 0x61
jb 0x433c77
cmp eax, 0x7a
jbe 0x433c81
cmp eax, 0x41
jb 0x433c32
cmp eax, 0x5a
ja 0x433c32
push 0x3a
pop eax
cmp ax, word [esi + 2]
jne 0x433c32
cmp cx, word [esi + 4]
jne 0x433c32
add esi, 8
jmp 0x433c32
call fcn.00432caf
xor esi, esi
inc esi
cmp eax, esi
je 0x433cc2
xor eax, eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, esi
je 0x433cc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push dword [ebp - 0x1c]
push 0x40f778
jmp 0x433ce0
mov dword [ebp - 0x10], esi
jmp 0x433cf2
movzx eax, ax
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push esi
push 0x40f7d8
push 0x3000000
push 0x46942c
call fcn.00430fcd
add esp, 0x14
push ebx
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x433d0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x10]
pop ebx
jmp 0x433d24
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x434241
Capabilities:
Get disk information via ioctl

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x14], edx
push edi
mov edi, ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov esi, ebx
test edi, edi
jne 0x434275
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4342ed
lea ecx, [ebp - 0x1c]
call fcn.004348a1
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x20], ebx
cmp ebx, 0xffffffff
je 0x4342e3
mov ecx, ebx
call fcn.00434440
mov esi, eax
test esi, esi
je 0x434300
xor edi, edi
inc edi
cmp dword [esi], edi
je 0x4342bd
mov ecx, ebx
call fcn.00434503
test eax, eax
je 0x4342c0
mov dword [ebp - 0x18], edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 0
jne 0x4342e3
test esi, esi
je 0x4342e3
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
mov ecx, dword [ebp - 0x1c]
call fcn.00434967
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00445fe0
mov esp, ebp
pop ebp
ret 4
push 0x38
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x4342c0
xor ecx, ecx
lea eax, [ebp - 0x24]
push ecx
push eax
push 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x24], ecx
push eax
push ecx
push ecx
xor edi, edi
push 0x2d1080
inc edi
push ebx
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4342c0
cmp dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0xc]
mov dword [esi + 8], ecx
je 0x4342bd
cmp dword [ebp - 8], 0
jbe 0x4342c0
call fcn.00434550
mov ecx, eax
test ecx, ecx
je 0x4342c0
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ecx + 4], eax
jbe 0x4343b6
lea edx, [ecx + 0x38]
mov ebx, eax
test ebx, ebx
jne 0x4343b0
mov eax, dword [ebp - 8]
cmp eax, dword [edx + 0x10]
mov eax, dword [ebp - 0x14]
jne 0x4343a1
mov eax, dword [edx]
mov ebx, edi
mov dword [esi + 0x10], eax
mov eax, dword [edx + 4]
mov dword [esi + 0x14], eax
mov eax, dword [edx + 8]
mov dword [esi + 0x18], eax
mov eax, dword [edx + 0xc]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x14]
inc eax
add edx, 0x90
mov dword [ebp - 0x14], eax
cmp eax, dword [ecx + 4]
jb 0x434376
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x20]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4342c0
Function at 0x4358dd
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], esi
push edi
mov edi, edx
test ecx, ecx
je 0x4359e3
xor eax, eax
cmp ax, word [ecx]
je 0x4359e3
test edi, edi
je 0x4359e3
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4359d2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x4359ad
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4359ad
push 0
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x435989
cmp dword [ebp - 8], esi
jne 0x435989
mov eax, dword [ebp - 0xc]
mov dword [edi], esi
mov dword [edi + 4], esi
xor esi, esi
mov dword [edi + 8], eax
jmp 0x4359bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x435998
push 0x1f
pop esi
mov eax, dword [ebp - 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4359bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x4359bc
push 0x1f
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jle 0x4359e6
movzx esi, si
or esi, 0x80070000
jmp 0x4359e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x4359c5
push 0x1f
pop esi
jmp 0x4359c7
push 0x57
pop esi
lea ecx, [ebp - 0x18]
call fcn.0043879b
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00445fe0
mov esp, ebp
pop ebp
ret

Function at 0x4365a0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push ebx
push dword [ebp + 8]
lea edi, [esi + 8]
push dword [ebp + 0xc]
push edi
push ebx
push ebx
push ebx
push dword [esi + 4]
call dword [sym.imp.ntdll.dll_NtWriteFile]
mov ecx, eax
cmp ecx, 0x103
jne 0x4365e1
push ebx
push ebx
push dword [esi + 4]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov ecx, eax
test ecx, ecx
js 0x4365f1
mov ecx, dword [edi]
test ecx, ecx
js 0x4365f1
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4365f1
mov eax, dword [esi + 0xc]
mov dword [edx], eax
pop edi
pop esi
mov eax, ecx
pop ebx
pop ebp
ret 0xc