joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c4b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48d75f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x4b3040]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x2c], 1
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x38]
mov ebx, 2
push 0x4b5218
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], bl
call fcn.0047a727
test esi, esi
je 0x40c5f2
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 0x3c]
push esi
push eax
mov ecx, edi
call fcn.00473b23
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 3
call fcn.0047a6d7
lea ecx, [esp + 0x3c]
mov byte [esp + 0x30], bl
call fcn.0047a59e
mov ecx, dword [edi + 0x1c]
push esi
push 3
push 0x110a
push ecx
call ebp
test eax, eax
jne 0x40c59b
lea edx, [esp + 0x1c]
push 3
push edx
lea ecx, [esp + 0x1c]
call fcn.00472e4b
lea ecx, [esp + 0x18]
push ebx
push ecx
mov ecx, eax
mov byte [esp + 0x38], 4
call fcn.00472ec7
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 5
call fcn.0047a6d7
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 4
call fcn.0047a59e
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], bl
call fcn.0047a59e
push 0x4af7a8
lea ecx, [esp + 0x18]
call fcn.0047a906
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.0047a7cd
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 6
call fcn.0047a6d7
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], bl
call fcn.0047a59e
mov edx, dword [edi + 0x1c]
push esi
push 3
push 0x110a
push edx
call ebp
mov esi, eax
test esi, esi
jne 0x40c514
pop ebp
push 1
push 0x5c
lea ecx, [esp + 0x1c]
call fcn.00472b33
lea eax, [esp + 0x1c]
push 1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 7
call fcn.00472e4b
mov ecx, dword [esp + 0x14]
mov eax, dword [eax]
push ecx
push eax
call fcn.00452da8
add esp, 8
lea ecx, [esp + 0x1c]
test eax, eax
sete byte [esp + 0x38]
call fcn.0047a59e
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], bl
call fcn.0047a59e
mov al, byte [esp + 0x38]
test al, al
je 0x40c65d
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esp + 0x10]
mov eax, dword [edx - 8]
dec eax
push eax
call fcn.0047aa70
mov esi, dword [esp + 0x34]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.0047a313
mov dword [esp + 0x20], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 1
call fcn.0047a59e
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call fcn.0047a59e
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x4117e0
Capabilities:
Get file system object information

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x1c8
test eax, eax
push ebx
push ebp
push esi
push edi
mov edi, ecx
je 0x4119a9
mov eax, dword [edi + 0x78]
push 0
push 0
push 0x1004
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, eax
xor ebp, ebp
test ebx, ebx
mov byte [esp + 0x13], 0
jle 0x4118b8
push ebp
lea ecx, [edi + 0x5c]
call fcn.00473a42
mov esi, eax
test esi, esi
je 0x4118a3
mov ecx, dword [esp + 0x1dc]
mov eax, dword [esi]
cmp eax, ecx
jne 0x4118a3
mov eax, dword [esi + 4]
mov byte [esp + 0x13], 1
inc eax
mov dword [esi + 4], eax
mov edx, dword [edi + 0x238]
mov ecx, dword [edi + 0x23c]
add dword [esi + 8], edx
mov edx, dword [esi + 0xc]
push eax
push 0x4ae284
adc edx, ecx
mov dword [esi + 0xc], edx
lea edx, [esp + 0x1c]
push edx
call fcn.00452382
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [edi + 0x5c]
push eax
push 2
push ebp
call fcn.0047392d
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
call fcn.0041ba30
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 3
push ebp
lea ecx, [edi + 0x5c]
call fcn.0047392d
inc ebp
cmp ebp, ebx
jl 0x41181c
mov al, byte [esp + 0x13]
test al, al
jne 0x4119a9
push 0x501
lea edx, [esp + 0x7c]
push 0x160
push edx
lea eax, [edi + 0x134]
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, dword [esp + 0x7c]
push 0
push ecx
push 0
lea edx, [esp + 0x194]
push 0
lea ebp, [edi + 0x5c]
push edx
push ebx
push 3
mov ecx, ebp
call fcn.00473832
xor eax, eax
xor ecx, ecx
mov al, byte [esp + 0x1de]
lea edx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x1e0]
mov cl, ah
and eax, 0xff
push ecx
push eax
push str.._c_c_c
push edx
call fcn.00452382
add esp, 0x14
lea eax, [esp + 0x14]
mov ecx, ebp
push eax
push 1
push ebx
call fcn.0047392d
push 0x10
call fcn.004797bd
add esp, 4
mov esi, eax
mov ecx, ebp
push esi
push 0
push 0
push 0
push 0
push 4
push 0
push ebx
call fcn.004738b4
mov ecx, dword [esp + 0x1dc]
mov dword [esi + 4], 1
mov dword [esi], ecx
mov edx, dword [edi + 0x238]
mov dword [esi + 8], edx
mov eax, dword [edi + 0x23c]
push 0x4af9c4
push 2
push ebx
mov ecx, ebp
mov dword [esi + 0xc], eax
call fcn.0047392d
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
call fcn.0041ba30
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 3
push ebx
mov ecx, ebp
call fcn.0047392d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c8
ret 4
Function at 0x412360
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
push esi
call fcn.0045253b
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x412380
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
push 0
rep stosb byte es:[edi], al
mov eax, dword [0x4b5814]
mov edi, dword [esp + 0x20]
cdq
idiv esi
push 0
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
test ebp, ebp
mov dword [esp + 0x20], 0
jle 0x4123dc
lea eax, [esp + 0x10]
push 0
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x4123ed
mov eax, dword [esp + 0x20]
inc eax
cmp eax, ebp
mov dword [esp + 0x20], eax
jl 0x4123bb
push ebx
call fcn.004524c4
add esp, 4
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push ebx
call fcn.004524c4
add esp, 4
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
Function at 0x412d70
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x48dfd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x4b3040]
push ebp
push esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
test eax, eax
je 0x412dc1
mov ecx, dword [0x4b57c4]
push ecx
call dword [sym.imp.KERNEL32.DLL_CancelIo]
test eax, eax
jne 0x412f2d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x412f28
mov ebp, dword [sym.imp.KERNEL32.DLL_GetLastError]
call ebp
cmp eax, 0x3e3
mov dword [0x4b57d0], eax
je 0x412f37
mov eax, dword [esp + 0x20]
test eax, eax
jbe 0x412de7
inc dword [0x4b5800]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov esi, dword [0x4b57fc]
mov edx, eax
sub edx, esi
mov eax, 0x10624dd3
mul edx
mov eax, dword [0x4b57f4]
shr edx, 6
cmp edx, eax
jbe 0x412e70
mov eax, dword [0x4b5804]
mov ecx, dword [0x4b5800]
cmp eax, ecx
jg 0x412f37
mov dword [0x4b57cc], 1
call fcn.00419570
fcom qword [0x495218]
or ecx, 0xffffffff
fnstsw ax
test ah, 0x40
jne 0x412e4f
fild dword [0x4b5800]
fdiv st(1)
call fcn.00452618
fstp st(0)
mov ecx, eax
jmp 0x412e51
fstp st(0)
cmp dword [0x4b57c8], 1
jne 0x412e65
mov dword [0x4b5808], ecx
jmp 0x412f37
mov dword [0x4b580c], ecx
jmp 0x412f37
mov edx, dword [0x4b5804]
push edi
inc edx
mov dword [0x4b5804], edx
call fcn.0041c6b0
mov ecx, dword [0x4b57e0]
mov edi, edx
mov edx, dword [0x4b57dc]
push 0
push 0x1000
push ecx
push edx
mov esi, eax
call fcn.004523e0
push edx
push eax
push edi
push esi
call fcn.00452640
push 0
push 0x1000
push edx
push eax
call fcn.00452490
push fcn.00412d70
mov esi, dword [esp + 0x2c]
push esi
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
mov eax, dword [0x4b57c8]
mov ecx, dword [0x4b57ec]
mov edx, dword [0x4b57c4]
cmp eax, 1
mov eax, dword [0x4b57f0]
push eax
push ecx
push edx
jne 0x412eee
call dword [sym.imp.KERNEL32.DLL_ReadFileEx]
jmp 0x412ef4
call dword [sym.imp.KERNEL32.DLL_WriteFileEx]
mov edi, eax
call ebp
test edi, edi
mov dword [0x4b57d0], eax
pop edi
je 0x412f16
test eax, eax
je 0x412f37
cmp eax, 1
jne 0x412f16
push esi
push eax
push 0
call fcn.00412d70
jmp 0x412f37
mov eax, dword [0x4b57c4]
push eax
call dword [sym.imp.KERNEL32.DLL_CancelIo]
test eax, eax
jne 0x412f2d
call ebp
mov dword [0x4b57d0], eax
mov dword [0x4b57cc], 3
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.0047a59e
mov ecx, dword [esp + 0xc]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x416480
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x160
lea eax, [esp]
mov dword [0x4b5d28], 0
mov dword [0x4b5d2c], 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 0x4164d5
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov dword [0x4b5d34], ecx
mov dword [0x4b5d2c], 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 0x416503
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov dword [0x4b5d30], ecx
mov dword [0x4b5d28], edx
add esp, 0x160
ret

Function at 0x4166d5
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 0x4166e3
xor eax, eax
jmp 0x4166e6
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.0045253b
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 0x416802
cmp dword [ebx], 0
jbe 0x416800
lea edi, [ebx + 0x1c]
mov eax, dword [edi]
test eax, eax
jbe 0x4167f6
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.0041ab90
add esp, 0xc
cmp eax, 0xffffffff
je 0x4167f6
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 0x4167f6
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 0x416791
xor ebp, ebp
push 1
call fcn.00419810
add esp, 4
lea ecx, [esi + 0xa8]
push ebp
call fcn.0047915f
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
pop edi
pop esi
pop ebp
mov dword [0x4b5d20], eax
pop ebx
add esp, 0x34
ret
Function at 0x417b10
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 0x417b40
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.00452490
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 0x417ba0
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 0x417bd0
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.00452490
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 0x41ab90
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov edi, 0x4b5218
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 [0x4b10f0]
mov al, byte [0x4b10f2]
mov dword [esp + 0x20], ecx
mov ecx, dword [0x4af7a0]
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 0x41ac7d
mov bl, cl
lea eax, [esp + 0x10]
add bl, 0x41
push eax
mov byte [esp + 0x14], bl
call edi
cmp eax, 3
jne 0x41ac79
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 0x41ac79
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 0x41ac79
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
cmp edx, eax
jne 0x41ac79
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
cmp eax, ecx
je 0x41ac96
mov ecx, dword [esp + 0x14]
inc ecx
cmp ecx, 0x1a
mov dword [esp + 0x14], ecx
jl 0x41ac06
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 0x41acd0
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 0x41ad4a
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 0x41ad0e
xor al, al
add esp, 0x28
ret
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, 0x14
call fcn.00453540
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.00453540
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 0x41ad73
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 0x41ae90
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 0x41aeee
push ebp
mov ebp, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, esi
jge 0x41aeca
mov esi, eax
sub esi, eax
add edi, esi
mov esi, eax
call fcn.0041ae40
push 0x4ff
push edi
push 0
push 0
push 0
call ebp
call ebx
mov edx, eax
sub edx, esi
cmp edx, edi
jl 0x41aec4
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x41bea0
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.0045253b
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41c07b
push edi
mov edi, 0x4b5218
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, 0x4b5218
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 0x41c072
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 0x41c072
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 0x41bfc1
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x124]
push edx
push 0x4b1220
push eax
call fcn.00452382
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 0x41c00f
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x128]
push ecx
push 0x4b1220
push edx
call fcn.00452382
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 0x41c05d
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x12c]
push eax
push 0x4b1220
push ecx
call fcn.00452382
add esp, 0xc
push ebx
call fcn.004524c4
add esp, 4
mov al, 1
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
push ebx
call fcn.004524c4
add esp, 4
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x110
ret
Function at 0x41c090
Capabilities:
Get token membership

Disassembly:
sub esp, 0x10
push ebx
lea eax, [esp + 8]
xor ebx, ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea ecx, [esp + 0x30]
push 2
push ecx
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
mov dword [esp + 4], eax
je 0x41c0fe
mov eax, dword [esp + 8]
lea edx, [esp + 4]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x41c0ef
mov dword [esp + 4], ebx
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp + 4]
pop ebx
add esp, 0x10
ret
Function at 0x41c820
Capabilities:
Create directory
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x48e5b9
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.00474be6
push 0x4b5d94
lea ecx, [esp + 0x10]
mov byte [esp + 0x174], 1
call fcn.0047a65e
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 0x41c8a0
mov edx, dword [esp + 0x28]
and edx, 0x10
cmp dl, 0x10
jne 0x41c8a0
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
jmp 0x41c9c8
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x1c]
call fcn.00474c79
mov eax, dword [esp + 0x178]
cmp dword [eax - 8], esi
jle 0x41c925
mov al, byte [esi + eax]
cmp al, 0x5c
je 0x41c8d3
mov byte [esp + 0x10], al
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
call fcn.0047a92d
jmp 0x41c8f4
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.00474dee
push 0x4af7a8
lea ecx, [esp + 0x10]
call fcn.0047a906
mov eax, dword [esp + 0x178]
mov ecx, dword [eax - 8]
dec ecx
cmp esi, ecx
jne 0x41c91d
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00474dee
mov eax, dword [esp + 0x178]
mov ecx, dword [eax - 8]
inc esi
cmp esi, ecx
jl 0x41c8b8
mov ebp, dword [sym.imp.KERNEL32.DLL_FindClose]
push edi
call ebp
mov eax, dword [esp + 0x1c]
mov esi, 1
cmp eax, esi
jle 0x41c999
mov edi, dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
lea edx, [esp + 0x10]
push esi
push edx
lea ecx, [esp + 0x1c]
call fcn.0040c800
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x174], 3
call fcn.0047a6d7
lea ecx, [esp + 0x10]
mov byte [esp + 0x170], 2
call fcn.0047a59e
mov eax, dword [esp + 0xc]
push 0
push eax
call edi
test eax, eax
je 0x41c990
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 0x41c941
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x1c]
call fcn.00474c79
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 0x41ca05
call ebp
lea ecx, [esp + 0xc]
mov byte [esp + 0x170], 1
call fcn.0047a59e
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 0
call fcn.00474c19
lea ecx, [esp + 0x178]
mov dword [esp + 0x170], 0xffffffff
call fcn.0047a59e
mov al, 1
jmp 0x41ca42
call ebp
lea ecx, [esp + 0xc]
mov byte [esp + 0x170], 1
call fcn.0047a59e
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 0
call fcn.00474c19
lea ecx, [esp + 0x178]
mov dword [esp + 0x170], 0xffffffff
call fcn.0047a59e
xor al, al
mov ecx, dword [esp + 0x168]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x168
ret