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

Disassembly:
push 0xffffffffffffffff
push 0x4821df
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x4a5850]
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 0x4a7a28
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], bl
call fcn.0046f245
test esi, esi
je 0x40bfa2
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 0x3c]
push esi
push eax
mov ecx, edi
call fcn.0046870c
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 3
call fcn.0046f1f5
lea ecx, [esp + 0x3c]
mov byte [esp + 0x30], bl
call fcn.0046f0bc
mov ecx, dword [edi + 0x1c]
push esi
push 3
push 0x110a
push ecx
call ebp
test eax, eax
jne 0x40bf4b
lea edx, [esp + 0x1c]
push 3
push edx
lea ecx, [esp + 0x1c]
call fcn.00467a06
lea ecx, [esp + 0x18]
push ebx
push ecx
mov ecx, eax
mov byte [esp + 0x38], 4
call fcn.00467a82
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 5
call fcn.0046f1f5
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 4
call fcn.0046f0bc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], bl
call fcn.0046f0bc
push 0x4a2740
lea ecx, [esp + 0x18]
call fcn.0046f424
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.0046f2eb
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 6
call fcn.0046f1f5
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], bl
call fcn.0046f0bc
mov edx, dword [edi + 0x1c]
push esi
push 3
push 0x110a
push edx
call ebp
mov esi, eax
test esi, esi
jne 0x40bec4
pop ebp
push 1
push 0x5c
lea ecx, [esp + 0x1c]
call fcn.00467703
lea eax, [esp + 0x1c]
push 1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 7
call fcn.00467a06
mov ecx, dword [esp + 0x14]
mov eax, dword [eax]
push ecx
push eax
call fcn.00448318
add esp, 8
lea ecx, [esp + 0x1c]
test eax, eax
sete byte [esp + 0x38]
call fcn.0046f0bc
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], bl
call fcn.0046f0bc
mov al, byte [esp + 0x38]
test al, al
je 0x40c00d
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esp + 0x10]
mov eax, dword [edx - 8]
dec eax
push eax
call fcn.0046f58e
mov esi, dword [esp + 0x34]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.0046ee31
mov dword [esp + 0x20], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 1
call fcn.0046f0bc
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call fcn.0046f0bc
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 0x410e80
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 0x411049
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 0x410f58
push ebp
lea ecx, [edi + 0x5c]
call fcn.004685fd
mov esi, eax
test esi, esi
je 0x410f43
mov ecx, dword [esp + 0x1dc]
mov eax, dword [esi]
cmp eax, ecx
jne 0x410f43
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 0x4a1264
adc edx, ecx
mov dword [esi + 0xc], edx
lea edx, [esp + 0x1c]
push edx
call fcn.004478fa
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [edi + 0x5c]
push eax
push 2
push ebp
call fcn.004684e8
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
call fcn.00417f40
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 3
push ebp
lea ecx, [edi + 0x5c]
call fcn.004684e8
inc ebp
cmp ebp, ebx
jl 0x410ebc
mov al, byte [esp + 0x13]
test al, al
jne 0x411049
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.004683ed
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.004478fa
add esp, 0x14
lea eax, [esp + 0x14]
mov ecx, ebp
push eax
push 1
push ebx
call fcn.004684e8
push 0x10
call fcn.0046e379
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.0046846f
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 0x4a2958
push 2
push ebx
mov ecx, ebp
mov dword [esi + 0xc], eax
call fcn.004684e8
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
call fcn.00417f40
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 3
push ebx
mov ecx, ebp
call fcn.004684e8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c8
ret 4
Function at 0x411550
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.00447aab
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x411570
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 [0x4a7dd0]
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 0x4115cc
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 0x4115dd
mov eax, dword [esp + 0x20]
inc eax
cmp eax, ebp
mov dword [esp + 0x20], eax
jl 0x4115ab
push ebx
call fcn.00447a34
add esp, 4
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push ebx
call fcn.00447a34
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 0x413130
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x160
lea eax, [esp]
mov dword [0x4a7de4], 0
mov dword [0x4a7de8], 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 0x413185
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov dword [0x4a7df0], ecx
mov dword [0x4a7de8], 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 0x4131b3
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov dword [0x4a7dec], ecx
mov dword [0x4a7de4], edx
add esp, 0x160
ret

Function at 0x413385
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 0x413393
xor eax, eax
jmp 0x413396
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.00447aab
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 0x4134b2
cmp dword [ebx], 0
jbe 0x4134b0
lea edi, [ebx + 0x1c]
mov eax, dword [edi]
test eax, eax
jbe 0x4134a6
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.004170e0
add esp, 0xc
cmp eax, 0xffffffff
je 0x4134a6
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 0x4134a6
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 0x413441
xor ebp, ebp
push 1
call fcn.00416060
add esp, 4
lea ecx, [esi + 0xa8]
push ebp
call fcn.0046dd1c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
pop edi
pop esi
pop ebp
mov dword [0x4a7ddc], eax
pop ebx
add esp, 0x34
ret
Function at 0x4147a0
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 0x4147d0
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.00447a00
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 0x414830
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 0x414860
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.00447a00
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 0x414b40
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
mov ecx, dword [esp + 0x1c]
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
xor eax, eax
cmp edi, eax
mov byte [esp + 0x14], 0xa1
mov byte [esp + 0x1e], al
mov byte [esp + 0x1f], al
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], eax
mov dl, 3
jle 0x414b9a
xor ebx, ebx
mov dword [esp + 0x10], 2
mov bl, byte [ecx + 7]
mov esi, dword [ebx*4 + 0x4a2e98]
test esi, esi
jne 0x414b8b
mov dl, 4
jmp 0x414b9a
cmp esi, 1
jne 0x414b9a
mov dl, 5
mov dword [esp + 0xc], 0
mov esi, dword [esp + 0x34]
shl dl, 1
test esi, esi
mov byte [esp + 0x15], dl
je 0x414bad
mov eax, 1
mov bl, byte [esp + 0xc]
push edi
shl al, 2
or al, bl
mov bl, byte [esp + 0x14]
shl al, 3
or al, bl
or al, 4
mov byte [esp + 0x1a], al
mov al, byte [ecx]
mov byte [esp + 0x1b], al
mov al, byte [ecx + 2]
test edi, edi
setg dl
mov byte [esp + 0x1d], al
mov eax, dword [ecx + 2]
mov byte [esp + 0x1c], dl
mov edx, eax
shr eax, 0x10
shr edx, 8
mov byte [esp + 0x1f], al
mov al, byte [ecx + 6]
mov cl, byte [ecx + 7]
mov byte [esp + 0x1e], dl
mov edx, dword [esp + 0x30]
mov byte [esp + 0x20], al
mov byte [esp + 0x21], cl
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x18]
push edx
push eax
push ecx
call fcn.004145f0
add esp, 0x10
test esi, esi
je 0x414c6d
mov dl, byte [0x4a7e3b]
xor ecx, ecx
mov byte [esi], dl
mov al, byte [0x4a7e3d]
mov byte [esi + 1], al
mov cl, byte [0x4a7e43]
xor edx, edx
xor eax, eax
mov dl, byte [0x4a7e41]
mov al, byte [0x4a7e3f]
shl ecx, 8
add ecx, edx
shl ecx, 8
add ecx, eax
mov dword [esi + 2], ecx
mov cl, byte [0x4a7e44]
mov byte [esi + 6], cl
mov dl, byte [0x4a7e45]
mov al, dl
mov byte [esi + 7], dl
test al, 1
je 0x414c7b
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x14
ret
cmp eax, 1
je 0x414c7b
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x14
ret
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x14
ret
Function at 0x4170e0
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov edi, 0x4a7a28
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 [0x4a3d84]
mov al, byte [0x4a3d86]
mov dword [esp + 0x20], ecx
mov ecx, dword [0x4a2738]
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 0x4171cd
mov bl, cl
lea eax, [esp + 0x10]
add bl, 0x41
push eax
mov byte [esp + 0x14], bl
call edi
cmp eax, 3
jne 0x4171c9
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 0x4171c9
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 0x4171c9
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
cmp edx, eax
jne 0x4171c9
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
cmp eax, ecx
je 0x4171e6
mov ecx, dword [esp + 0x14]
inc ecx
cmp ecx, 0x1a
mov dword [esp + 0x14], ecx
jl 0x417156
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 0x417220
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 0x41729a
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 0x41725e
xor al, al
add esp, 0x28
ret
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, 0x14
call fcn.00448ab0
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.00448ab0
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 0x4172c3
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 0x4173a0
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 0x4173fe
push ebp
mov ebp, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, esi
jge 0x4173da
mov esi, eax
sub esi, eax
add edi, esi
mov esi, eax
call fcn.00417350
push 0x4ff
push edi
push 0
push 0
push 0
call ebp
call ebx
mov edx, eax
sub edx, esi
cmp edx, edi
jl 0x4173d4
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4183a0
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.00447aab
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41857b
push edi
mov edi, 0x4a7a28
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, 0x4a7a28
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 0x418572
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 0x418572
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 0x4184c1
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x124]
push edx
push 0x4a3ea0
push eax
call fcn.004478fa
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 0x41850f
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x128]
push ecx
push 0x4a3ea0
push edx
call fcn.004478fa
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 0x41855d
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x12c]
push eax
push 0x4a3ea0
push ecx
call fcn.004478fa
add esp, 0xc
push ebx
call fcn.00447a34
add esp, 4
mov al, 1
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
push ebx
call fcn.00447a34
add esp, 4
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x110
ret
Function at 0x418590
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 0x4185fe
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 0x4185ef
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 0x418cb0
Capabilities:
Create directory
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x482d09
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.004697a1
push 0x4a7e54
lea ecx, [esp + 0x10]
mov byte [esp + 0x174], 1
call fcn.0046f17c
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 0x418d30
mov edx, dword [esp + 0x28]
and edx, 0x10
cmp dl, 0x10
jne 0x418d30
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x418e58
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x1c]
call fcn.00469834
mov eax, dword [esp + 0x178]
cmp dword [eax - 8], esi
jle 0x418db5
mov al, byte [esi + eax]
cmp al, 0x5c
je 0x418d63
mov byte [esp + 0x10], al
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
call fcn.0046f44b
jmp 0x418d84
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.004699a9
push 0x4a2740
lea ecx, [esp + 0x10]
call fcn.0046f424
mov eax, dword [esp + 0x178]
mov ecx, dword [eax - 8]
dec ecx
cmp esi, ecx
jne 0x418dad
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.004699a9
mov eax, dword [esp + 0x178]
mov ecx, dword [eax - 8]
inc esi
cmp esi, ecx
jl 0x418d48
mov ebp, dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call ebp
mov eax, dword [esp + 0x1c]
mov esi, 1
cmp eax, esi
jle 0x418e29
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edx, [esp + 0x10]
push esi
push edx
lea ecx, [esp + 0x1c]
call fcn.0040c130
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x174], 3
call fcn.0046f1f5
lea ecx, [esp + 0x10]
mov byte [esp + 0x170], 2
call fcn.0046f0bc
mov eax, dword [esp + 0xc]
push 0
push eax
call edi
test eax, eax
je 0x418e20
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 0x418dd1
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x1c]
call fcn.00469834
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 0x418e95
call ebp
lea ecx, [esp + 0xc]
mov byte [esp + 0x170], 1
call fcn.0046f0bc
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 0
call fcn.004697d4
lea ecx, [esp + 0x178]
mov dword [esp + 0x170], 0xffffffff
call fcn.0046f0bc
mov al, 1
jmp 0x418ed2
call ebp
lea ecx, [esp + 0xc]
mov byte [esp + 0x170], 1
call fcn.0046f0bc
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 0
call fcn.004697d4
lea ecx, [esp + 0x178]
mov dword [esp + 0x170], 0xffffffff
call fcn.0046f0bc
xor al, al
mov ecx, dword [esp + 0x168]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x168
ret