joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4048e8
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x464d11
mov eax, dword fs:[0]
push eax
push ecx
push ecx
push esi
push edi
mov eax, dword [0x48a024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xc
lea ecx, [esi + 0x50]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xc
mov ecx, dword [ecx]
push 0x10
pop edi
sub ecx, edi
call fcn.00406985
mov byte [ebp - 4], 0xb
lea ecx, [esi + 0x4c]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xb
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406985
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x48]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xa
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406985
mov byte [ebp - 4], 9
lea ecx, [esi + 0x44]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 9
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406985
mov byte [ebp - 4], 8
lea ecx, [esi + 0x40]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 8
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406985
mov byte [ebp - 4], 7
lea ecx, [esi + 0x3c]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 7
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406985
mov byte [ebp - 4], 6
lea ecx, [esi + 0x38]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 6
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406985
mov byte [ebp - 4], 5
lea ecx, [esi + 0x34]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 5
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406985
mov byte [ebp - 4], 4
lea ecx, [esi + 0x30]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 4
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406985
mov byte [ebp - 4], 3
lea ecx, [esi + 0x24]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406985
mov byte [ebp - 4], 2
lea ecx, [esi + 0x20]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 2
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406985
mov byte [ebp - 4], 1
lea ecx, [esi + 0x1c]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406985
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406985
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 4]
mov dword [ebp - 0x14], ecx
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ecx]
sub ecx, edi
call fcn.00406985
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
leave
ret
Function at 0x404be6
Capabilities:
Get common file path
Get disk information
Get disk information via ioctl

Disassembly:
push 0x28
mov eax, 0x464d74
call fcn.00463b54
mov dword [ebp - 0x30], ecx
call fcn.004068d0
push eax
lea ecx, [ebp - 0x28]
call fcn.00405f99
mov dword [ebp - 4], 1
call fcn.004068d0
push eax
lea ecx, [ebp - 0x24]
call fcn.00405f99
mov byte [ebp - 4], 3
call fcn.004068d0
push eax
lea ecx, [ebp - 0x20]
call fcn.00405f99
mov byte [ebp - 4], 5
xor eax, eax
and dword [ebp - 0x2c], 0
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x28]
push 0x104
push 0x105
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0040655c
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x404c63
call esi
mov ebx, eax
jmp 0x404c65
xor ebx, ebx
push ecx
lea ecx, [ebp - 0x28]
call fcn.00405ee3
mov edi, dword [ebp - 0x28]
test ebx, ebx
jne 0x404d4c
push 0x104
push 0x105
lea ecx, [ebp - 0x24]
call fcn.0040655c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
jne 0x404c9b
call esi
mov ebx, eax
push ecx
lea ecx, [ebp - 0x24]
call fcn.00405ee3
test ebx, ebx
jne 0x404d4c
push 0x104
push 0x105
lea ecx, [ebp - 0x20]
call fcn.0040655c
mov esi, dword [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x404cd5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ecx
lea ecx, [ebp - 0x20]
call fcn.00405ee3
test ebx, ebx
jne 0x404d4f
push ecx
lea ecx, [ebp - 0x20]
call fcn.00405e2a
xor eax, eax
push eax
push eax
push 3
push eax
push 3
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
jne 0x404d10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x404d4f
xor edx, edx
lea ecx, [ebp - 0x2c]
push edx
push ecx
push 0xc
lea ecx, [ebp - 0x1c]
push ecx
push edx
push edx
push 0x2d1080
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x404d39
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x404d41
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x18]
mov dword [ecx], eax
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x404d4f
mov esi, dword [ebp - 0x24]
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00406985
mov byte [ebp - 4], 1
lea ecx, [esi - 0x10]
call fcn.00406985
or dword [ebp - 4], 0xffffffff
lea ecx, [edi - 0x10]
call fcn.00406985
mov eax, ebx
call fcn.00463afe
ret
Function at 0x404d7e
Capabilities:
Check os version
Get storage device properties

Disassembly:
push 0x28
mov eax, 0x464dc9
call fcn.00463b54
mov dword [ebp - 0x28], edx
mov esi, ecx
xor ebx, ebx
call fcn.004068d0
push eax
lea ecx, [ebp - 0x2c]
call fcn.00405f99
mov dword [ebp - 4], 1
xor eax, eax
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x34], ebx
stosd dword es:[edi], eax
mov dword [ebp - 0x24], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
push str..PhysicalDrive_u
push eax
call fcn.00406215
mov edi, dword [ebp - 0x2c]
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
jne 0x404df6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x404efa
push 0x1001
call fcn.00445d23
mov esi, eax
mov dword [ebp - 0x34], esi
pop ecx
test esi, esi
jne 0x404e11
push 8
jmp 0x404ef0
push 0x1001
push ebx
push esi
call fcn.00441660
add esp, 0xc
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x24]
mov dword [ebp - 0x18], ebx
push ebx
push eax
push 0x1000
push esi
push 0xc
lea eax, [ebp - 0x1c]
push eax
push 0x2d1400
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x404e56
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x404ef1
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x404eee
cmp ecx, dword [ebp - 0x24]
jae 0x404eee
mov eax, dword [ebp - 0x20]
cmp al, 6
ja 0x404ed8
jne 0x404e7a
shr eax, 8
cmp al, 2
jae 0x404ed8
call fcn.004068d0
push eax
lea ecx, [ebp - 0x20]
call fcn.00405f99
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x24]
sub eax, dword [esi + 0x18]
push eax
call fcn.00405ea7
mov ecx, dword [esi + 0x18]
push eax
add ecx, esi
call fcn.00404a89
mov esi, dword [ebp - 0x20]
push dword [esi - 8]
push esi
call fcn.00445e74
add esp, 0xc
lea ecx, [ebp - 0x20]
push eax
call fcn.00405f03
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x20]
push eax
call fcn.00405d51
mov byte [ebp - 4], 1
lea ecx, [esi - 0x10]
call fcn.00406985
jmp 0x404ee4
lea eax, [ecx + esi]
mov ecx, dword [ebp - 0x28]
push eax
call fcn.00405d20
mov ecx, dword [ebp - 0x28]
call fcn.00405c6d
jmp 0x404ef1
push 0xd
pop ebx
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x34]
call fcn.00445d2e
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [edi - 0x10]
call fcn.00406985
mov eax, ebx
call fcn.00463afe
ret
Function at 0x405297
Capabilities:
Check if file exists

Disassembly:
push 0x20
mov eax, 0x464ec8
call fcn.00463b20
mov dword [ebp - 0x2c], edx
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x20], edi
call fcn.004068d0
push eax
lea ecx, [ebp - 0x1c]
call fcn.00405f99
mov dword [ebp - 4], 1
xor ebx, ebx
and dword [ebp - 0x28], edi
and dword [ebp - 0x18], ebx
call fcn.004068d0
push eax
lea ecx, [ebp - 0x14]
call fcn.00405f99
mov byte [ebp - 4], 3
lea eax, [ebp - 0x1c]
push esi
push str..Scsi_u:
push eax
call fcn.00406215
mov esi, dword [ebp - 0x1c]
add esp, 0xc
xor eax, eax
push eax
push eax
push 3
push eax
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
jne 0x40531b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x405434
push 0x3c
call fcn.00445d23
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x405331
push 8
pop edi
jmp 0x40542b
push 0x22c
call fcn.00445d23
mov edi, eax
mov dword [ebp - 0x18], edi
pop ecx
test edi, edi
je 0x405329
mov byte [ebp - 0xd], 0
jmp 0x40534e
mov edi, dword [ebp - 0x18]
push 0x3c
push 0
push ebx
call fcn.00441660
push 0x22c
push 0
push edi
call fcn.00441660
push 8
lea eax, [ebx + 4]
mov dword [ebx], 0x1c
push str.SCSIDISK
push eax
mov dword [ebx + 0xc], 0x1388
mov dword [ebx + 0x18], 0x210
mov dword [ebx + 0x10], 0x1b0501
call fcn.00445d50
mov al, byte [ebp - 0xd]
add esp, 0x24
mov byte [ebx + 0x28], al
lea eax, [ebp - 0x28]
mov byte [ebx + 0x26], 0xec
push 0
push eax
push 0x22c
push edi
push 0x3c
push ebx
push 0x4d008
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4053db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov al, byte [ebp - 0xd]
inc al
mov dword [ebp - 0x20], edi
mov byte [ebp - 0xd], al
cmp al, 2
jb 0x40534b
jmp 0x40542b
add edi, 0x40
mov ecx, edi
call fcn.00404a6a
push 0x15
lea ecx, [ebp - 0x14]
call fcn.00405ea7
push 0x14
push edi
push eax
mov byte [eax + 0x14], 0
call fcn.00445d50
mov eax, dword [ebp - 0x14]
push dword [eax - 8]
push eax
call fcn.00445e74
add esp, 0x14
lea ecx, [ebp - 0x14]
push eax
call fcn.00405f03
lea ecx, [ebp - 0x14]
call fcn.00405c6d
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
push eax
call fcn.00405d51
mov edi, dword [ebp - 0x20]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.00445d2e
push dword [ebp - 0x18]
call fcn.00445d2e
pop ecx
pop ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00406985
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00406985
mov eax, edi
call fcn.00463ae9
ret
Function at 0x4069cb
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x3c
mov eax, 0x46501c
call fcn.00463b54
mov esi, ecx
mov dword [ebp - 0x34], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x48], esi
push 0x477a4c
mov dword [ebp - 0x38], ebx
call fcn.0040749f
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x2c]
push eax
push 0x20119
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Pathsccleaner.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x406a36
lea eax, [ebp - 0x2c]
push eax
push 0x20219
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Pathsccleaner.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x2c], 0
je 0x406aae
push ecx
push ecx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], 0x208
mov dword [ebp - 0x34], ebx
call fcn.00407377
mov dword [ebp - 4], 1
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x44]
lea eax, [ebp - 0x34]
push eax
push ebx
push str.Path
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x30], 0
je 0x406aa3
push dword [ebp - 0x44]
lea ecx, [ebp - 0x28]
call fcn.0040749f
mov byte [ebp - 4], 2
mov ecx, esi
push eax
call fcn.0040743e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0040414f
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x44]
call fcn.00407714
mov eax, esi
call fcn.00463afe
ret
Function at 0x407fd3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4647c8
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x48a024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40800c
xor eax, eax
jmp 0x40804c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x408008
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x40803e
cmp esi, ecx
jae 0x408008
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x40802c
cmp esi, ecx
jae 0x408008
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40eab9
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x38]
mov dl, byte [esi + 0x34]
test edi, edi
jle 0x40eaee
mov ecx, dword [esi + 0x260]
push ebx
movzx ebx, dl
mov eax, ecx
shl ecx, 8
shr eax, 0x18
xor eax, ebx
xor ecx, dword [eax*4 + 0x478c70]
sub edi, 1
jne 0x40ead1
mov dword [esi + 0x260], ecx
pop ebx
mov eax, dword [esi + 0x34]
mov byte [esi + eax + 0x58], 1
mov ecx, dword [esi + 0x38]
mov eax, ecx
sub eax, 1
je 0x40eb68
sub eax, 1
je 0x40eb5c
sub eax, 1
je 0x40eb50
mov byte [ecx + esi + 0x54], 1
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x24]
mov byte [ecx + eax], dl
inc dword [esi + 0x44]
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x24]
mov byte [ecx + eax], dl
inc dword [esi + 0x44]
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x24]
mov byte [ecx + eax], dl
inc dword [esi + 0x44]
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x24]
mov byte [ecx + eax], dl
inc dword [esi + 0x44]
mov edx, dword [esi + 0x44]
mov cl, byte [esi + 0x38]
mov eax, dword [esi + 0x24]
sub cl, 4
mov byte [edx + eax], cl
jmp 0x40eb71
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x24]
mov byte [ecx + eax], dl
inc dword [esi + 0x44]
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x24]
mov byte [ecx + eax], dl
inc dword [esi + 0x44]
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x44]
mov byte [ecx + eax], dl
inc dword [esi + 0x44]
pop edi
pop esi
ret

Function at 0x40fe31
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x40fe42
and dword [edi], 0
test ebx, ebx
je 0x40ff41
and dword [ebx + 0x13c4], 0
cmp dword [ebp + 8], 0
je 0x40ff41
mov esi, dword [ebp + 0xc]
test esi, esi
js 0x40ff41
cmp byte [ebx + 0x1390], 0
jne 0x40fe82
test edi, edi
je 0x40fe76
or dword [edi], 0xffffffff
or dword [ebx + 0x13c4], 0xffffffff
jmp 0x40ff54
push dword [ebx]
call fcn.0044e295
pop ecx
test eax, eax
jne 0x40ff1b
test esi, esi
je 0x40ff31
mov eax, dword [ebp + 8]
lea ecx, [ebx + 0x1394]
mov dword [ebx + 0x1398], esi
lea esi, [ebx + 4]
mov dword [ecx], eax
jmp 0x40fef7
mov eax, dword [ebx + 0x13a8]
cmp eax, 0x1388
jae 0x40fee8
push dword [ebx]
mov esi, 0x1388
sub esi, eax
lea eax, [ebx + 4]
push esi
push 1
push eax
call fcn.0044d23a
add esp, 0x10
cmp esi, eax
jne 0x40ff1b
push dword [ebx]
call fcn.0044e295
pop ecx
test eax, eax
jne 0x40ff1b
lea esi, [ebx + 4]
cmp dword [ebx + 0x1398], 0
je 0x40ff31
lea ecx, [ebx + 0x1394]
mov dword [ebx + 0x13a8], 0x1388
xor edx, edx
mov dword [ebx + 0x13a4], esi
call fcn.0040ee54
cmp eax, 1
je 0x40feb0
test edi, edi
je 0x40ff4e
mov dword [edi], eax
jmp 0x40ff4e
test edi, edi
je 0x40ff25
mov dword [edi], 0xfffffffa
mov dword [ebx + 0x13c4], 0xfffffffa
jmp 0x40ff54
test edi, edi
je 0x40ff38
and dword [edi], 0
and dword [ebx + 0x13c4], 0
jmp 0x40ff54
push 0xfffffffffffffffe
pop eax
test edi, edi
je 0x40ff4a
mov dword [edi], eax
test ebx, ebx
je 0x40ff54
mov dword [ebx + 0x13c4], eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x40ff5b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, edx
mov ebx, ecx
test edi, edi
jne 0x40ff78
test ebx, ebx
je 0x41008f
and dword [ebx], edx
jmp 0x41008f
cmp byte [edi + 0x1390], 0
jne 0x40ff94
test ebx, ebx
je 0x40ff88
or dword [ebx], 0xffffffff
or dword [edi + 0x13c4], 0xffffffff
jmp 0x41008f
push dword [edi]
call fcn.0044e295
pop ecx
test eax, eax
je 0x40ffb4
push 0xfffffffffffffffa
pop eax
test ebx, ebx
je 0x40ffa9
mov dword [ebx], eax
mov dword [edi + 0x13c4], eax
jmp 0x41008f
cmp dword [edi + 0x13c4], 0
push esi
jne 0x41002a
push 2
lea eax, [edi + 4]
mov dword [edi + 0x13a8], 0x1388
lea ecx, [edi + 0x1394]
mov dword [edi + 0x13a4], eax
pop edx
call fcn.0040ee54
mov dword [ebp - 4], eax
cmp eax, 3
je 0x40ffec
cmp eax, 4
jne 0x410060
mov ecx, dword [edi + 0x13a8]
cmp ecx, 0x1388
jae 0x410025
push dword [edi]
mov esi, 0x1388
lea eax, [edi + 4]
sub esi, ecx
push esi
push 1
push eax
call fcn.0044d23a
add esp, 0x10
cmp esi, eax
jne 0x41004a
push dword [edi]
call fcn.0044e295
pop ecx
test eax, eax
jne 0x41004a
mov eax, dword [ebp - 4]
cmp eax, 4
jne 0x40ffbe
push dword [edi]
call fcn.0044e295
pop ecx
test eax, eax
jne 0x41006e
push dword [edi]
call fcn.0044e590
push dword [edi]
call fcn.0044e295
pop ecx
pop ecx
test eax, eax
je 0x41006e
test ebx, ebx
je 0x410054
mov dword [ebx], 0xfffffffa
mov dword [edi + 0x13c4], 0xfffffffa
jmp 0x41008e
test ebx, ebx
je 0x410066
mov dword [ebx], eax
mov dword [edi + 0x13c4], eax
jmp 0x41008e
test ebx, ebx
je 0x410075
and dword [ebx], 0
and dword [edi + 0x13c4], 0
lea ecx, [edi + 0x1394]
call fcn.0040ef06
push edi
call fcn.00445d2e
pop ecx
pop esi
pop edi
pop ebx
leave
ret 0x14
Function at 0x4101c7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor ecx, ecx
test edi, edi
je 0x4101d9
mov dword [edi], ecx
test esi, esi
je 0x41031d
mov eax, dword [ebp + 8]
mov dword [esi + 0x13c4], ecx
test eax, eax
je 0x41031d
mov ebx, dword [ebp + 0xc]
test ebx, ebx
js 0x41031d
cmp byte [esi + 0x1390], cl
je 0x410218
test edi, edi
je 0x41020c
or dword [edi], 0xffffffff
or dword [esi + 0x13c4], 0xffffffff
jmp 0x410330
test ebx, ebx
jne 0x41022b
test edi, edi
je 0x410330
mov dword [edi], ecx
jmp 0x410330
mov dword [esi + 0x13a8], ebx
mov dword [esi + 0x13a4], eax
jmp 0x4102cc
cmp dword [esi + 0x1398], 0
jne 0x41028b
mov ecx, dword [esi]
call fcn.0040fd3c
test al, al
jne 0x41028b
push dword [esi]
lea eax, [esi + 4]
push 0x1388
push 1
push eax
call fcn.0044e164
push dword [esi]
mov dword [ebp + 8], eax
call fcn.0044e295
add esp, 0x14
test eax, eax
jne 0x4102dc
mov eax, dword [ebp + 8]
mov dword [esi + 0x138c], eax
mov dword [esi + 0x1398], eax
lea eax, [esi + 4]
mov dword [esi + 0x1394], eax
lea ecx, [esi + 0x1394]
call fcn.0040fb7a
test eax, eax
jne 0x410300
mov ecx, dword [esi]
call fcn.0040fd3c
test al, al
je 0x4102c2
xor eax, eax
cmp dword [esi + 0x1398], eax
jne 0x4102c4
cmp dword [esi + 0x13a8], eax
jbe 0x4102c4
push 0xfffffffffffffff9
pop eax
test edi, edi
je 0x41032a
mov dword [edi], eax
jmp 0x41032a
xor eax, eax
cmp dword [esi + 0x13a8], eax
je 0x4102f2
push dword [esi]
call fcn.0044e295
pop ecx
test eax, eax
je 0x41023c
test edi, edi
je 0x4102e6
mov dword [edi], 0xfffffffa
mov dword [esi + 0x13c4], 0xfffffffa
jmp 0x410330
test edi, edi
je 0x4102f8
mov dword [edi], eax
mov dword [esi + 0x13c4], eax
jmp 0x410319
push 4
pop ecx
cmp eax, ecx
jne 0x4102ba
test edi, edi
je 0x41030d
mov dword [edi], ecx
sub ebx, dword [esi + 0x13a8]
mov dword [esi + 0x13c4], ecx
mov eax, ebx
jmp 0x410332
push 0xfffffffffffffffe
pop eax
test edi, edi
je 0x410326
mov dword [edi], eax
test esi, esi
je 0x410330
mov dword [esi + 0x13c4], eax
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x41a841
Capabilities:
Read file on windows

Disassembly:
push 0x30
mov eax, 0x467173
call fcn.00463b20
mov esi, edx
mov dword [ebp - 0x2c], esi
mov ebx, ecx
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x1f
push eax
push str.CopyFileOrBufferToResource
lea ecx, [ebp - 0x3c]
call fcn.0041bb53
xor edx, edx
mov dword [ebp - 4], edx
mov eax, edx
or dword [ebp - 0x20], 0xffffffff
mov edi, edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], edx
test ebx, ebx
je 0x41aa00
test esi, esi
je 0x41aa00
cmp dword [ebp + 0xc], eax
je 0x41aa00
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x41a8bb
mov eax, esi
mov dword [ebp - 0x18], eax
cmp word [esi], dx
jne 0x41a8bb
mov dword [ebp - 0x10], 0x57
jmp 0x41aa21
cmp dword [0x48bc70], edx
jle 0x41a8cf
mov dword [ebp - 0x10], 0x2e3
jmp 0x41aa21
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41a92e
mov dword [ebp - 0x14], 9
push edx
push 0x80
push 3
push edx
push 5
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x20], edi
call esi
cmp edi, 0xffffffff
jne 0x41a935
cmp eax, 0x20
je 0x41a90d
cmp eax, 5
jne 0x41a924
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
sub dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x18]
push 0
pop edx
jns 0x41a8e0
call esi
mov dword [ebp - 0x10], eax
jmp 0x41aa21
mov eax, dword [ebx]
mov dword [ebp - 0x24], eax
mov dword [ebx], edx
push dword [0x48bd10]
call fcn.00445d23
mov edi, eax
pop ecx
test edi, edi
jne 0x41a953
mov dword [ebp - 0x10], 8
jmp 0x41aa12
and dword [ebp - 0x10], 0
and dword [ebp - 0x14], 0
and dword [ebp - 0x28], 0
cmp dword [ebp - 0x18], 0
je 0x41a984
push 0
lea eax, [ebp - 0x14]
push eax
push dword [0x48bd10]
push edi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41a9ec
mov esi, dword [ebp - 0x14]
jmp 0x41a9b4
mov esi, dword [0x48bd10]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x14], esi
lea eax, [esi + ecx]
cmp eax, edx
jbe 0x41a9a1
mov esi, edx
sub esi, ecx
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x2c]
push esi
add eax, ecx
push eax
push edi
call fcn.004422a0
add esp, 0xc
add dword [ebp - 0x1c], esi
test esi, esi
je 0x41aa07
lea eax, [ebp - 0x28]
push eax
push esi
push edi
push dword [ebp - 0x30]
call dword [ebp + 0xc]
test eax, eax
je 0x41a9ec
mov eax, dword [ebp - 0x28]
test ebx, ebx
je 0x41a9d1
add dword [ebx], eax
cmp dword [ebp - 0x14], eax
jne 0x41a9f7
cmp dword [0x48bc70], 0
jle 0x41a957
mov dword [ebp - 0x10], 0x2e3
jmp 0x41aa07
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
jmp 0x41aa07
mov dword [ebp - 0x10], 0x3f5
jmp 0x41aa07
mov dword [ebp - 0x10], 0x57
test edi, edi
je 0x41aa12
push edi
call fcn.00445d2e
pop ecx
mov eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x41aa21
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0041bbc1
mov eax, esi
call fcn.00463ae9
ret