joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404b82
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c2c8]
jne 0x404b8c
repz ret
jmp fcn.00407dac

Function at 0x408f95
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040606c
and dword [ebp - 4], 0
cmp dword [0x786778], 0
mov ebx, eax
jne 0x409046
push 0x4020f4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4090f7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4020e8
push edi
call esi
test eax, eax
je 0x4090f7
push eax
call fcn.00405ffa
mov dword [esp], 0x4020d8
push edi
mov dword [0x786778], eax
call esi
push eax
call fcn.00405ffa
mov dword [esp], 0x4020c4
push edi
mov dword [0x78677c], eax
call esi
push eax
call fcn.00405ffa
mov dword [esp], 0x4020a8
push edi
mov dword [0x786780], eax
call esi
push eax
call fcn.00405ffa
pop ecx
mov dword [0x786788], eax
test eax, eax
je 0x409046
push 0x402090
push edi
call esi
push eax
call fcn.00405ffa
pop ecx
mov dword [0x786784], eax
mov eax, dword [0x786784]
cmp eax, ebx
je 0x40909e
cmp dword [0x786788], ebx
je 0x40909e
push eax
call fcn.00406075
push dword [0x786788]
mov esi, eax
call fcn.00406075
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40909e
test edi, edi
je 0x40909e
call esi
test eax, eax
je 0x409095
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409095
test byte [ebp - 0xc], 1
jne 0x40909e
or dword [ebp + 0x10], 0x200000
jmp 0x4090d7
mov eax, dword [0x78677c]
cmp eax, ebx
je 0x4090d7
push eax
call fcn.00406075
pop ecx
test eax, eax
je 0x4090d7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4090d7
mov eax, dword [0x786780]
cmp eax, ebx
je 0x4090d7
push eax
call fcn.00406075
pop ecx
test eax, eax
je 0x4090d7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x786778]
call fcn.00406075
pop ecx
test eax, eax
je 0x4090f7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4090f9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x5f1a6dad
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x470a1608
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x46646d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x310
lea ebp, [esp - 4]
mov eax, dword [0x58e700]
xor eax, ebp
mov dword [ebp + 0x310], eax
push 4
mov eax, 0x52f925
call fcn.005078b1
push 0xffffffffffffffff
push str.LANG_EN
lea ecx, [ebp]
call fcn.0049681b
xor ebx, ebx
lea ecx, [ebp]
push str.LANG_PT
mov dword [ebp - 4], ebx
call fcn.004969b6
push 4
call fcn.0049eed5
lea eax, [ebp + 0x84]
push eax
call fcn.0049a223
pop ecx
pop ecx
mov byte [ebp - 4], 1
call fcn.0049a3e2
dec eax
je 0x466615
dec eax
je 0x4665d8
dec eax
je 0x466560
dec eax
jne 0x46668f
push 0x564e44
push 0x85
call fcn.0049a3cd
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x46668f
push esi
call fcn.0049a3cd
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x466554
push esi
call fcn.0049a3cd
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x466554
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call fcn.0049eee2
add esp, 0xc
push ebx
push ecx
mov eax, esp
mov dword [eax], 0x564e54
call fcn.004671e6
mov ecx, eax
call fcn.004b8ca5
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x46668f
xor eax, eax
push 0x206
mov word [ebp + 0x108], ax
lea eax, [ebp + 0x10a]
push ebx
push eax
call fcn.00507270
sub esp, 0x78
lea eax, [ebp + 0x108]
lea esi, [ebp]
push 0x21
pop ecx
mov edi, esp
push str.skin_s_skin_
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x8c
lea eax, [ebp + 0x108]
lea ecx, [ebp + 0x84]
push eax
call fcn.00496a80
lea ecx, [ebp + 0x84]
call fcn.00496f15
push eax
call fcn.0049ee8c
mov dword [esp], 0x564dfc
push ecx
mov eax, esp
mov dword [eax], str.IDR_RES
jmp 0x466683
push str.skin_
lea ecx, [ebp + 0x84]
call fcn.00496a80
lea ecx, [ebp + 0x84]
call fcn.00496f15
push eax
call fcn.0049ee8c
push ebx
push 1
push str.res.zip
call fcn.0049ef70
add esp, 0x10
push ebx
push ecx
mov eax, esp
mov dword [eax], 0x564e30
jmp 0x466683
xor eax, eax
push 0x206
mov word [ebp + 0x108], ax
lea eax, [ebp + 0x10a]
push ebx
push eax
call fcn.00507270
sub esp, 0x78
lea eax, [ebp + 0x108]
lea esi, [ebp]
push 0x21
pop ecx
mov edi, esp
push str...lib_skin_s_skin_
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x8c
lea eax, [ebp + 0x108]
lea ecx, [ebp + 0x84]
push eax
call fcn.00496a80
lea ecx, [ebp + 0x84]
call fcn.00496f15
push eax
call fcn.0049ee8c
pop ecx
push ebx
push ecx
mov eax, esp
mov dword [eax], str.res.xml
call fcn.004671e6
mov ecx, eax
call fcn.004b8ca5
lea ecx, [ebp + 0x84]
mov byte [ebp - 4], bl
call fcn.0049691e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.0049691e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x310]
xor ecx, ebp
call fcn.005026fe
lea esp, [ebp + 0x314]
pop ebp
ret
Function at 0x4017d0
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 0x401999
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 0x4018a8
push ebp
lea ecx, [edi + 0x5c]
call fcn.0046cb89
mov esi, eax
test esi, esi
je 0x401893
mov ecx, dword [esp + 0x1dc]
mov eax, dword [esi]
cmp eax, ecx
jne 0x401893
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 0x4ba2f4
adc edx, ecx
mov dword [esi + 0xc], edx
lea edx, [esp + 0x1c]
push edx
call fcn.00445f52
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [edi + 0x5c]
push eax
push 2
push ebp
call fcn.0046ca74
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
call fcn.0040ce80
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 3
push ebp
lea ecx, [edi + 0x5c]
call fcn.0046ca74
inc ebp
cmp ebp, ebx
jl 0x40180c
mov al, byte [esp + 0x13]
test al, al
jne 0x401999
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.0046c979
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.00445f52
add esp, 0x14
lea eax, [esp + 0x14]
mov ecx, ebp
push eax
push 1
push ebx
call fcn.0046ca74
push 0x10
call fcn.00472905
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.0046c9fb
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 0x4bba38
push 2
push ebx
mov ecx, ebp
mov dword [esi + 0xc], eax
call fcn.0046ca74
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
call fcn.0040ce80
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 3
add edx, dword [ebx - 0x75]
int 0xe8
invalid
mov al, 6
invalid
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c8
ret 4
Function at 0x402350
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.0044610b
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x402370
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 [0x4c307c]
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 0x4023cc
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 0x4023dd
mov eax, dword [esp + 0x20]
inc eax
cmp eax, ebp
mov dword [esp + 0x20], eax
jl 0x4023ab
push ebx
call fcn.00446094
add esp, 4
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push ebx
call fcn.00446094
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 0x402d60
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x497118
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x4bfcf8]
push ebp
push esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
test eax, eax
je 0x402db1
mov ecx, dword [0x4c302c]
push ecx
call dword [sym.imp.KERNEL32.dll_CancelIo]
test eax, eax
jne 0x402f1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x402f18
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
cmp eax, 0x3e3
mov dword [0x4c3038], eax
je 0x402f27
mov eax, dword [esp + 0x20]
test eax, eax
jbe 0x402dd7
inc dword [0x4c3068]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [0x4c3064]
mov edx, eax
sub edx, esi
mov eax, 0x10624dd3
mul edx
mov eax, dword [0x4c305c]
shr edx, 6
cmp edx, eax
jbe 0x402e60
mov eax, dword [0x4c306c]
mov ecx, dword [0x4c3068]
cmp eax, ecx
jg 0x402f27
mov dword [0x4c3034], 1
call fcn.0040a6e0
fcom qword [0x49f228]
or ecx, 0xffffffff
fnstsw ax
test ah, 0x40
jne 0x402e3f
fild dword [0x4c3068]
fdiv st(1)
call fcn.004461e8
fstp st(0)
mov ecx, eax
jmp 0x402e41
fstp st(0)
cmp dword [0x4c3030], 1
jne 0x402e55
mov dword [0x4c3070], ecx
jmp 0x402f27
mov dword [0x4c3074], ecx
jmp 0x402f27
mov edx, dword [0x4c306c]
push edi
inc edx
mov dword [0x4c306c], edx
call fcn.0040dc10
mov ecx, dword [0x4c3048]
mov edi, edx
mov edx, dword [0x4c3044]
push 0
push 0x1000
push ecx
push edx
mov esi, eax
call fcn.00445fb0
push edx
push eax
push edi
push esi
call fcn.00446210
push 0
push 0x1000
push edx
push eax
call fcn.00446060
push 0x412d60
mov esi, dword [esp + 0x2c]
push esi
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
mov eax, dword [0x4c3030]
mov ecx, dword [0x4c3054]
mov edx, dword [0x4c302c]
cmp eax, 1
mov eax, dword [0x4c3058]
push eax
push ecx
push edx
jne 0x402ede
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
jmp 0x402ee4
call dword [sym.imp.KERNEL32.dll_WriteFileEx]
mov edi, eax
call ebp
test edi, edi
mov dword [0x4c3038], eax
pop edi
je 0x402f06
test eax, eax
je 0x402f27
cmp eax, 1
jne 0x402f06
push esi
push eax
push 0
call fcn.00402d60
jmp 0x402f27
mov eax, dword [0x4c302c]
push eax
call dword [sym.imp.KERNEL32.dll_CancelIo]
test eax, eax
jne 0x402f1d
call ebp
mov dword [0x4c3038], eax
mov dword [0x4c3034], 4
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.004736e5
mov ecx, dword [esp + 0xc]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x406470
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x160
lea eax, [esp]
mov dword [0x4c3590], 0
mov dword [0x4c3594], 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 0x4064c5
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov dword [0x4c359c], ecx
mov dword [0x4c3594], 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 0x4064f3
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov dword [0x4c3598], ecx
mov dword [0x4c3590], edx
add esp, 0x160
ret

Function at 0x4066c5
Capabilities:
Get disk size

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp esi, ebx
jne 0x4066d3
xor eax, eax
jmp 0x4066d6
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], ebx
mov dword [edx + 0x12c], ebx
mov eax, dword [esi + 0x5fc]
mov dword [eax + 0x114], ebx
mov ecx, dword [esi + 0x5fc]
mov dword [ecx + 0x110], ebx
mov edx, dword [esi + 0x5fc]
mov eax, dword [esi + 0x8c]
mov dword [edx + 8], eax
call fcn.0044610b
mov edi, eax
xor eax, eax
mov ecx, 0x401
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x5fc]
mov dword [ecx + 4], 1
mov edx, dword [esi + 0x5fc]
mov dword [edx + 0x130], ebx
mov dword [edx + 0x134], ebx
mov ebp, dword [esi + 0x5fc]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
test ecx, ecx
jle 0x4067d5
xor edi, edi
mov ecx, dword [edi + eax + 0x1ac]
cmp ecx, 0xffffffff
je 0x4067c6
mov eax, ecx
lea ecx, [esp + 0x20]
add eax, 0x41
push eax
push 0x4bba18
push ecx
call fcn.00445f52
add esp, 0xc
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push edx
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x4067c6
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0x5fc]
sub edx, ecx
mov ecx, dword [esp + 0x14]
sbb ecx, dword [esp + 0x1c]
add dword [eax + 0x130], edx
adc dword [eax + 0x134], ecx
mov eax, dword [ebp + 8]
inc ebx
add edi, 0x69
cmp ebx, dword [eax + 0x1a8]
jl 0x406763
push 1
call fcn.0040a980
add esp, 4
lea ecx, [esi + 0xa8]
push 0
call fcn.004722ac
call dword [sym.imp.KERNEL32.dll_GetTickCount]
pop edi
pop esi
pop ebp
mov dword [0x4c3588], eax
pop ebx
add esp, 0x30
ret
Function at 0x407a30
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 0x407a60
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.00446060
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 0x407ac0
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 0x407af0
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.00446060
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 0x40c000
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 0x40c07a
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 0x40c03e
xor al, al
add esp, 0x28
ret
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, 0x14
call fcn.00447110
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.00447110
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 0x40c0a3
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 0x40c1c0
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 0x40c21e
push ebp
mov ebp, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, esi
jge 0x40c1fa
mov esi, eax
sub esi, eax
add edi, esi
mov esi, eax
call fcn.0040c170
push 0x4ff
push edi
push 0
push 0
push 0
call ebp
call ebx
mov edx, eax
sub edx, esi
cmp edx, edi
jl 0x40c1f4
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40d310
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.0044610b
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40d4eb
push edi
mov edi, 0x4c2a80
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, 0x4c2a80
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 0x40d4e2
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 0x40d4e2
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push 0x4be3bc
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 0x40d431
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x124]
push edx
push 0x4be39c
push eax
call fcn.00445f52
add esp, 0xc
mov ecx, dword [esp + 0x14]
push 0x4be38c
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 0x40d47f
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x128]
push ecx
push 0x4be39c
push edx
call fcn.00445f52
add esp, 0xc
mov eax, dword [esp + 0x14]
push 0x4be380
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 0x40d4cd
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x12c]
push eax
push 0x4be39c
push ecx
call fcn.00445f52
add esp, 0xc
push ebx
call fcn.00446094
add esp, 4
mov al, 1
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
push ebx
call fcn.00446094
add esp, 4
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x110
ret
Function at 0x40d500
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 0x40d56e
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 0x40d55f
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