joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4139b0
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x160
lea eax, [esp]
mov dword [0x4ab1b4], 0
mov dword [0x4ab1b8], 0
push esi
mov esi, dword [esp + 0x168]
push edi
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push 0x101
push 0x160
push eax
push 0
push esi
call edi
test eax, eax
je 0x413a05
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov dword [0x4ab1c0], ecx
mov dword [0x4ab1b8], edx
push 0x103
lea eax, [esp + 0xc]
push 0x160
push eax
push 0
push esi
call edi
pop edi
pop esi
test eax, eax
je 0x413a33
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov dword [0x4ab1bc], ecx
mov dword [0x4ab1b4], edx
add esp, 0x160
ret

Function at 0x413c05
Capabilities:
Get disk size

Disassembly:
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
cmp esi, ebp
jne 0x413c13
xor eax, eax
jmp 0x413c16
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x5fc]
push 0x1004
mov dword [ecx], eax
mov edx, dword [esi + 0x5fc]
mov dword [edx + 0x128], ebp
mov dword [edx + 0x12c], ebp
mov eax, dword [esi + 0x5fc]
mov dword [eax + 0x114], ebp
mov ecx, dword [esi + 0x5fc]
mov dword [ecx + 0x110], ebp
mov edx, dword [esi + 0x5fc]
mov eax, dword [esi + 0x8c]
mov dword [edx + 8], eax
call fcn.0044a1ab
mov ebx, eax
mov ecx, 0x401
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x5fc]
add esp, 4
lea eax, [esp + 0x10]
mov dword [ecx + 4], 1
mov edx, dword [esi + 0x5fc]
push ebp
push eax
mov dword [edx + 0x130], ebp
push 0x1004
push ebx
push ebp
mov dword [edx + 0x134], ebp
mov ecx, dword [esi + 0x5fc]
push ebp
push 0x7400c
mov edx, dword [ecx + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x413d32
cmp dword [ebx], 0
jbe 0x413d30
lea edi, [ebx + 0x1c]
mov eax, dword [edi]
test eax, eax
jbe 0x413d26
mov edx, dword [esi + 0x5fc]
lea ecx, [esp + 0x24]
push ecx
push eax
mov eax, dword [edx + 8]
mov ecx, dword [eax + 4]
push ecx
call fcn.00417d70
add esp, 0xc
cmp eax, 0xffffffff
je 0x413d26
lea edx, [esp + 0x1c]
lea eax, [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x2c]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x413d26
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + 0x5fc]
sub edx, ecx
mov ecx, dword [esp + 0x18]
sbb ecx, dword [esp + 0x20]
add dword [eax + 0x130], edx
adc dword [eax + 0x134], ecx
mov eax, dword [ebx]
inc ebp
add edi, 0x20
cmp ebp, eax
jb 0x413cc1
xor ebp, ebp
push 1
call fcn.00416c90
add esp, 4
lea ecx, [esi + 0xa8]
push ebp
call fcn.0047028c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
pop edi
pop esi
pop ebp
mov dword [0x4ab1ac], eax
pop ebx
add esp, 0x34
ret
Function at 0x415040
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
imul ecx, dword [esp + 0xc]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
sbb eax, eax
neg eax
ret

Function at 0x415070
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x18]
push edi
mov eax, esi
push ecx
mov ecx, dword [esp + 0x14]
cdq
push ecx
push edx
push eax
call fcn.0044a100
mov edi, dword [esp + 0xc]
mov dword [esp + 0x14], edx
lea edx, [esp + 0x14]
push 0
push edx
push eax
push edi
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
imul ecx, esi
lea eax, [esp + 0x1c]
push 0
push eax
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
ret

Function at 0x4150d0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
imul ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push 0
push eax
mov eax, dword [esp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
neg eax
ret

Function at 0x415100
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x18]
push edi
mov eax, esi
push ecx
mov ecx, dword [esp + 0x14]
cdq
push ecx
push edx
push eax
call fcn.0044a100
mov edi, dword [esp + 0xc]
mov dword [esp + 0x14], edx
lea edx, [esp + 0x14]
push 0
push edx
push eax
push edi
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
imul ecx, esi
lea eax, [esp + 0x1c]
push 0
push eax
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
ret
Function at 0x4166f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xf4
push ebx
push ebp
push esi
push edi
mov edi, 0x4a6bd8
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [esp + 0x10c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], str.0___
mov eax, ecx
mov esi, edi
mov edi, ebx
mov dword [esp + 0x14], str.1___
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x18], str.2___
and ecx, 3
mov dword [esp + 0x1c], str.3___
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x20], str.4___
mov dword [esp + 0x24], str.5___
mov dword [esp + 0x28], str.6___
mov dword [esp + 0x2c], str.7___
mov dword [esp + 0x30], str.8___
mov dword [esp + 0x34], str.9___
mov dword [esp + 0x38], str.10__
mov dword [esp + 0x3c], str.11__
mov dword [esp + 0x40], str.12__
mov dword [esp + 0x44], str.13__
mov dword [esp + 0x48], str.171_
mov dword [esp + 0x4c], str.172__
mov dword [esp + 0x50], str.174_
mov dword [esp + 0x54], str.177_
mov dword [esp + 0x58], str.181_
mov dword [esp + 0x5c], str.182__
mov dword [esp + 0x60], str.184_
mov dword [esp + 0x64], str.187_
mov dword [esp + 0x68], str.188_
mov dword [esp + 0x6c], str.190_
mov dword [esp + 0x70], str.191_
mov dword [esp + 0x74], str.192_
mov dword [esp + 0x78], str.193_
mov dword [esp + 0x7c], str.194_
mov dword [esp + 0x80], str.195_
mov dword [esp + 0x84], str.196_
mov dword [esp + 0x88], str.197_
mov dword [esp + 0x8c], str.198_
mov dword [esp + 0x90], str.199_Ultra_DMA_CRC
mov dword [esp + 0x94], str.200_
mov dword [esp + 0x98], str.201_
mov dword [esp + 0x9c], str.202_
mov dword [esp + 0xa0], str.203_ECC
mov dword [esp + 0xa4], str.204_
mov dword [esp + 0xa8], str.205_
mov dword [esp + 0xac], str.206_
mov dword [esp + 0xb0], str.207_
mov dword [esp + 0xb4], str.208_
mov dword [esp + 0xb8], str.209_
mov dword [esp + 0xbc], str.220_
mov dword [esp + 0xc0], str.221_
mov dword [esp + 0xc4], str.222_
mov dword [esp + 0xc8], str.223_
mov dword [esp + 0xcc], str.224_
mov dword [esp + 0xd0], str.225_
mov dword [esp + 0xd4], str.226_
mov dword [esp + 0xd8], str.227_
mov dword [esp + 0xdc], str.228_
mov dword [esp + 0xe0], str.230_GMR
mov dword [esp + 0xe4], str.231_
mov dword [esp + 0xe8], str.232_
mov dword [esp + 0xec], str.233_
mov dword [esp + 0xf0], str.240_
mov dword [esp + 0xf4], str.241_
mov dword [esp + 0xf8], str.242_
mov dword [esp + 0xfc], str.250_
mov dword [esp + 0x100], 0x4a6364
xor edi, edi
mov ebp, dword [esp + 0x108]
mov esi, dword [esp + edi*4 + 0x10]
push esi
call fcn.0044a3ed
mov edx, eax
add esp, 4
cmp edx, ebp
jne 0x4169af
lea edi, [esi + 4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or edi, 0xffffffff
jmp 0x4169b0
inc edi
cmp edx, 0xffffffff
je 0x4169ba
cmp edi, 0xffffffff
jne 0x416977
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x417d70
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov edi, 0x4aadf8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x40]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [str..C:]
mov dx, word [0x4a6f10]
mov al, byte [0x4a6f12]
mov dword [esp + 0x20], ecx
mov ecx, dword [0x4a5768]
mov word [esp + 0x24], dx
mov byte [esp + 0x26], al
mov dword [esp + 0x10], ecx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor ecx, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x18]
shr edx, cl
test dl, 1
je 0x417e5d
mov bl, cl
lea eax, [esp + 0x10]
add bl, 0x41
push eax
mov byte [esp + 0x14], bl
call edi
cmp eax, 3
jne 0x417e59
push 0
push 0
push eax
push 0
push eax
lea ecx, [esp + 0x34]
push 0xc0000000
push ecx
mov byte [esp + 0x40], bl
call esi
cmp eax, 0xffffffff
je 0x417e59
lea edx, [esp + 0x1c]
push 0
push edx
lea ecx, [esp + 0x30]
push 0xc
push ecx
push 0
push 0
push 0x2d1080
push eax
call ebp
test eax, eax
je 0x417e59
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
cmp edx, eax
jne 0x417e59
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
cmp eax, ecx
je 0x417e76
mov ecx, dword [esp + 0x14]
inc ecx
cmp ecx, 0x1a
mov dword [esp + 0x14], ecx
jl 0x417de6
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x24
ret
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x14]
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x40]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x417eb0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x28
push str.GetDiskFreeSpaceExA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x417f2a
lea ecx, [esp + 0x20]
lea edx, [esp + 0x18]
push ecx
push edx
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x18]
push ecx
push edx
call eax
test eax, eax
jne 0x417eee
xor al, al
add esp, 0x28
ret
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, 0x14
call fcn.0044b1b0
mov ecx, dword [esp + 0x34]
mov dword [ecx], eax
mov eax, dword [esp + 0x18]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x1c]
mov ecx, 0x14
call fcn.0044b1b0
mov ecx, dword [esp + 0x30]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
add esp, 0x28
ret
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
lea edx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x34]
lea eax, [esp + 8]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x417f53
xor al, al
add esp, 0x28
ret
mov eax, dword [esp]
mov ecx, dword [esp + 0x34]
imul eax, dword [esp + 4]
mov edx, eax
imul eax, dword [esp + 0xc]
imul edx, dword [esp + 8]
shr edx, 0x14
mov dword [ecx], edx
mov dword [ecx + 4], 0
mov ecx, dword [esp + 0x30]
shr eax, 0x14
mov dword [ecx], eax
mov dword [ecx + 4], 0
mov al, 1
add esp, 0x28
ret

Function at 0x418030
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
call ebx
mov edi, dword [esp + 0x10]
push 0x4ff
push edi
push 0
push 0
push 0
mov esi, eax
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
call ebx
mov ecx, eax
sub ecx, esi
cmp ecx, edi
jge 0x41808e
push ebp
mov ebp, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, esi
jge 0x41806a
mov esi, eax
sub esi, eax
add edi, esi
mov esi, eax
call fcn.00417fe0
push 0x4ff
push edi
push 0
push 0
push 0
call ebp
call ebx
mov edx, eax
sub edx, esi
cmp edx, edi
jl 0x418064
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x419040
Capabilities:
Get file version info

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x110
lea eax, [esp + 0xc]
push ebx
push ebp
push esi
push eax
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebp, eax
push ebp
call fcn.0044a1ab
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41921b
push edi
mov edi, 0x4aadf8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x12c]
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x12c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4aadf8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x138]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
pop edi
je 0x419212
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push str.VarFileInfoTranslation
push ebx
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x419212
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push str.FileVersion
mov edx, dword [eax]
mov cx, word [eax]
shr edx, 0x10
shl ecx, 0x10
or edx, ecx
lea ecx, [esp + 0x20]
mov dword [eax], edx
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
push eax
push str.StringFileInfo_08lx_s
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x1c]
push edx
push eax
push ecx
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x419161
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x124]
push edx
push 0x4a702c
push eax
call fcn.00449ffa
add esp, 0xc
mov ecx, dword [esp + 0x14]
push str.FileDescription
lea eax, [esp + 0x20]
mov edx, dword [ecx]
push edx
push str.StringFileInfo_08lx_s
push eax
call esi
add esp, 0x10
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push ecx
push edx
push eax
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4191af
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x128]
push ecx
push 0x4a702c
push edx
call fcn.00449ffa
add esp, 0xc
mov eax, dword [esp + 0x14]
push str.CompanyName
lea edx, [esp + 0x20]
mov ecx, dword [eax]
push ecx
push str.StringFileInfo_08lx_s
push edx
call esi
add esp, 0x10
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x1c]
push eax
push ecx
push edx
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4191fd
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x12c]
push eax
push 0x4a702c
push ecx
call fcn.00449ffa
add esp, 0xc
push ebx
call fcn.0044a134
add esp, 4
mov al, 1
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
push ebx
call fcn.0044a134
add esp, 4
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x110
ret
Function at 0x4199a0
Capabilities:
Create directory
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x485339
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x15c
push ebp
push esi
push edi
xor esi, esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x170], esi
call fcn.0046bd11
push 0x4ab224
lea ecx, [esp + 0x10]
mov byte [esp + 0x174], 1
call fcn.004716ec
mov ecx, dword [esp + 0x178]
lea eax, [esp + 0x28]
push eax
push ecx
mov byte [esp + 0x178], 2
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x419a20
mov edx, dword [esp + 0x28]
and edx, 0x10
cmp dl, 0x10
jne 0x419a20
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x419b48
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x1c]
call fcn.0046bda4
mov eax, dword [esp + 0x178]
cmp dword [eax - 8], esi
jle 0x419aa5
mov al, byte [esi + eax]
cmp al, 0x5c
je 0x419a53
mov byte [esp + 0x10], al
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
call fcn.004719bb
jmp 0x419a74
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.0046bf19
push 0x4a5770
lea ecx, [esp + 0x10]
call fcn.00471994
mov eax, dword [esp + 0x178]
mov ecx, dword [eax - 8]
dec ecx
cmp esi, ecx
jne 0x419a9d
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.0046bf19
mov eax, dword [esp + 0x178]
mov ecx, dword [eax - 8]
inc esi
cmp esi, ecx
jl 0x419a38
mov ebp, dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call ebp
mov eax, dword [esp + 0x1c]
mov esi, 1
cmp eax, esi
jle 0x419b19
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edx, [esp + 0x10]
push esi
push edx
lea ecx, [esp + 0x1c]
call fcn.0040c6b0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x174], 3
call fcn.00471765
lea ecx, [esp + 0x10]
mov byte [esp + 0x170], 2
call fcn.0047162c
mov eax, dword [esp + 0xc]
push 0
push eax
call edi
test eax, eax
je 0x419b10
mov ecx, dword [esp + 0xc]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, eax
jl 0x419ac1
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x1c]
call fcn.0046bda4
mov eax, dword [esp + 0x178]
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ecx, dword [esp + 0x28]
push eax
and ecx, 0x10
cmp cl, 0x10
jne 0x419b85
call ebp
lea ecx, [esp + 0xc]
mov byte [esp + 0x170], 1
call fcn.0047162c
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 0
call fcn.0046bd44
lea ecx, [esp + 0x178]
mov dword [esp + 0x170], 0xffffffff
call fcn.0047162c
mov al, 1
jmp 0x419bc2
call ebp
lea ecx, [esp + 0xc]
mov byte [esp + 0x170], 1
call fcn.0047162c
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 0
call fcn.0046bd44
lea ecx, [esp + 0x178]
mov dword [esp + 0x170], 0xffffffff
call fcn.0047162c
xor al, al
mov ecx, dword [esp + 0x168]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x168
ret
Function at 0x420fb0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x32c
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x8c]
mov edx, dword [ebx + 0x90]
push edi
add edx, 0xfc
lea ecx, [eax + 0x40]
add eax, 0x14
push ecx
push eax
push edx
lea eax, [esp + 0xb4]
push str._s_s__s.hdt
push eax
call fcn.00449ffa
lea ecx, [esp + 0xbc]
push ecx
call fcn.00419be0
add esp, 0x18
test al, al
je 0x4211d8
push 0x180
lea edx, [esp + 0xac]
push 0x8102
push edx
call fcn.0045679b
mov ebp, eax
push ebp
call fcn.00469abf
add esp, 0x10
test eax, eax
jne 0x42110f
mov ecx, 0x25
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
push 4
lea eax, [esp + 0x18]
push str.HDT0
push eax
call fcn.0044adf0
mov edx, dword [ebx + 0x8c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
lea edi, [edx + 0x14]
lea esi, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
lea edi, [edx + 0x40]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea esi, [esp + 0x40]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x18], esi
mov esi, edi
mov edi, dword [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebx + 0x13c]
and ecx, 3
push 0x1004
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [edx + 0x60]
push eax
mov dword [esp + 0x60], ecx
mov edx, dword [edx + 0x64]
mov dword [esp + 0x64], edx
call dword [sym.imp.USER32.dll_SendMessageA]
xor esi, esi
mov dword [esp + 0x64], eax
test eax, eax
jle 0x4210fa
lea edi, [ebx + 0x120]
push esi
mov ecx, edi
call fcn.00425790
mov cl, byte [eax + 0xc]
mov byte [esp + esi + 0x68], cl
mov dl, byte [eax + 0xd]
mov byte [esp + esi + 0x88], dl
mov eax, dword [esp + 0x64]
inc esi
cmp esi, eax
jl 0x4210d8
lea eax, [esp + 0x14]
push 0x94
push eax
push ebp
call fcn.00454417
add esp, 0xc
jmp 0x42112d
lea ecx, [esp + 0x14]
push 0x94
push ecx
push ebp
call fcn.004541d9
add esp, 0xc
cmp eax, 0x94
jne 0x4211d8
lea edx, [esp + 0x14]
push 0x4a7520
push edx
call fcn.0044aef0
add esp, 8
test eax, eax
je 0x4211d8
push 2
push 0
push ebp
call fcn.0044b43c
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0x1b8]
add esp, 0xc
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1ac]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esp + 0x64]
xor esi, esi
test eax, eax
jle 0x4211af
add ebx, 0x120
lea edi, [esp + 0x1bc]
push esi
mov ecx, ebx
call fcn.00425790
mov edx, dword [eax]
mov ecx, edi
inc esi
add edi, 0xc
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x64]
cmp esi, eax
jl 0x421189
lea ecx, [esp + 0x1ac]
push 0x190
push ecx
push ebp
call fcn.00454417
push ebp
call fcn.00452965
add esp, 0x10
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x32c
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x32c
ret
Function at 0x429f70
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push edi
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
pop edi
jae 0x429ff6
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x429fae
call fcn.0042a050
mov eax, dword [esp + 4]
cmp eax, 4
jne 0x429fc3
mov eax, 5
add esp, 0x94
ret
cmp eax, 5
jne 0x429fdc
mov eax, dword [esp + 8]
test eax, eax
jne 0x429fde
mov eax, 6
add esp, 0x94
ret
jb 0x429fea
mov eax, 7
add esp, 0x94
ret
mov eax, 1
add esp, 0x94
ret
cmp al, 4
jae 0x42a003
xor eax, eax
add esp, 0x94
ret
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x42a017
call fcn.0042a050
cmp dword [esp + 4], 4
jne 0x42a03d
mov eax, dword [esp + 8]
cmp eax, 0xa
jne 0x42a033
mov eax, 3
add esp, 0x94
ret
cmp eax, 0x5a
mov eax, 4
je 0x42a042
mov eax, 2
add esp, 0x94
ret

Function at 0x431c30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x487480
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], vtable.CFont.0
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x70], ebx
call dword [sym.imp.USER32.dll_CopyRect]
push 0xfffffffffffffffe
lea edx, [esp + 0x18]
push 0xfffffffffffffffe
push edx
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x7c]
sub eax, esi
neg ecx
sbb ecx, ecx
mov dword [esp + 0x24], eax
and ecx, 0x12c
mov edi, str.Marlett
add ecx, 0x190
xor eax, eax
mov dword [esp + 0x34], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x40]
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x28], ebx
shr ecx, 2
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], 1
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], bl
mov byte [esp + 0x3e], bl
mov byte [esp + 0x3f], bl
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
lea ecx, [esp + 0x10]
call fcn.00474b2b
mov esi, dword [esp + 0x70]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x28]
push 1
mov ecx, esi
mov edi, eax
call fcn.0047427c
mov edx, dword [esi]
mov ebx, eax
lea eax, [esp + 0x14]
push 0x21
push eax
lea ecx, [esp + 0x80]
push 1
push ecx
mov ecx, esi
call dword [edx + 0x68]
push ebx
mov ecx, esi
call fcn.0047427c
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x28]
mov dword [esp + 0xc], vtable.CGdiObject.0
lea ecx, [esp + 0xc]
mov dword [esp + 0x68], 1
call fcn.00474b82
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret 0x10