joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40df36
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
xor edi, edi
lea eax, [ebp - 0x20e]
push edi
push eax
call fcn.00420470
add esp, 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
cmp dword [ebp + 8], edi
je 0x40e058
cmp dword [ebp + 0xc], edi
je 0x40e058
mov esi, dword [0x42e35c]
lea eax, [ebp - 4]
push eax
push 0x17
push edi
call esi
test eax, eax
jge 0x40df9d
lea eax, [ebp - 4]
push eax
push 2
push edi
call esi
test eax, eax
jl 0x40e058
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call dword [0x42e360]
test eax, eax
je 0x40e030
push 0x42f618
mov esi, 0x208
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.0040d8a4
push dword [ebp + 8]
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0040d8a4
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.p_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40e01c
push ebx
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x428]
call fcn.0040de57
push eax
call fcn.0040d9a1
mov bl, al
neg bl
pop ecx
sbb bl, bl
lea ecx, [ebp - 0x428]
inc bl
call fcn.00401924
test bl, bl
pop ebx
jne 0x40e058
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp + 0xc]
call fcn.0040d826
test eax, eax
jl 0x40e058
lea eax, [ebp - 8]
push eax
call dword [0x42e364]
test eax, eax
jl 0x40e053
mov eax, dword [ebp - 8]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
inc eax
jmp 0x40e05a
xor eax, eax
pop edi
pop esi
leave
ret 8
Function at 0x40e060
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
xor eax, eax
push 0x1fe
mov word [ebp - 0x208], ax
xor esi, esi
lea eax, [ebp - 0x206]
push esi
push eax
mov edi, ecx
call fcn.00420470
add esp, 0xc
mov dword [ebp - 4], esi
cmp dword [ebp + 0xc], esi
je 0x40e179
cmp dword [ebp + 0x10], esi
je 0x40e179
cmp dword [ebp + 0x14], esi
je 0x40e179
cmp dword [ebp + 0x18], esi
je 0x40e179
lea eax, [ebp - 4]
push eax
push 0x4343ac
push 1
push esi
push 0x4343ec
call dword [0x42e504]
test eax, eax
jl 0x40e179
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov dword [ebp - 8], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp dword [ebp + 0x20], esi
jge 0x40e120
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 0xc]
mov ecx, edi
call fcn.0040dafb
mov ecx, dword [ebp + 0x1c]
cmp word [ebp - 0x208], si
je 0x40e132
lea ecx, [ebp - 0x208]
push dword [ebp + 0x20]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x44]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x4343dc
push eax
call dword [ecx]
test eax, eax
jl 0x40e16b
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
inc eax
jmp 0x40e17b
xor eax, eax
pop edi
pop esi
leave
ret 0x1c

Function at 0x40e181
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
xor eax, eax
xor edi, edi
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push edi
push eax
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edi
call fcn.00420470
add esp, 0xc
cmp dword [ebp + 8], edi
je 0x40e237
cmp dword [ebp + 0xc], edi
je 0x40e237
cmp dword [ebp + 0x14], edi
je 0x40e237
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x40e237
mov ebx, dword [0x42e35c]
lea eax, [ebp - 4]
push eax
push 0x19
push edi
call ebx
test eax, eax
jge 0x40e1e9
lea eax, [ebp - 4]
push eax
push 0x10
push edi
call ebx
test eax, eax
jl 0x40e237
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call dword [0x42e360]
test eax, eax
je 0x40e237
push dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push eax
push 0x42f61c
dec esi
push esi
push dword [ebp + 0x14]
call fcn.0040d914
mov ecx, dword [ebp - 8]
add esp, 0x14
push edi
push dword [ebp + 0xc]
mov eax, 0x42e9a0
push eax
push eax
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040e060
jmp 0x40e239
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x40f2f9
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x40f306
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.0040f082

Function at 0x413270
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x224]
mov dword [ebp - 0xc], esi
call fcn.00401a37
xor ebx, ebx
mov byte [ebp - 1], bl
cmp dword [ebp + 8], ebx
je 0x4132ce
cmp dword [esi + 0x28], ebx
je 0x4132ce
push ebx
push 2
call sub.p_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 8], esi
cmp esi, 0xffffffff
je 0x4132ce
lea eax, [ebp - 0x450]
push eax
push esi
mov dword [ebp - 0x450], 0x22c
call sub.p_Process32FirstW
test eax, eax
jne 0x4132e1
push esi
call dword [sym.imp.p_CloseHandle]
lea ecx, [ebp - 0x224]
call fcn.00401924
xor al, al
pop esi
pop ebx
leave
ret 4
mov esi, dword [sym.imp.p_CloseHandle]
push edi
push dword [ebp - 0x448]
push ebx
push 0x1f0fff
call dword [sym.imp.p_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x41333f
push dword [ebp - 0x218]
mov eax, dword [ebp - 0xc]
push dword [ebp - 0x220]
push edi
call dword [eax + 0x28]
test eax, eax
je 0x413337
lea ecx, [ebp - 0x224]
call fcn.0040120b
push ebx
push dword [ebp + 8]
lea ecx, [ebp - 0x224]
call fcn.004130a3
test eax, eax
setge byte [ebp - 1]
push edi
call esi
cmp byte [ebp - 1], bl
jne 0x413352
lea eax, [ebp - 0x450]
push eax
push dword [ebp - 8]
call sub.p_Process32NextW
test eax, eax
jne 0x4132e8
push dword [ebp - 8]
call esi
lea ecx, [ebp - 0x224]
call fcn.00401924
mov al, byte [ebp - 1]
pop edi
jmp 0x4132db

Function at 0x413785
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x4137b9
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.p_GetExitCodeThread]
cmp dword [ebp - 4], 0x103
jne 0x4137ae
xor al, al
jmp 0x4137dc
push dword [esi]
call dword [sym.imp.p_CloseHandle]
and dword [esi], 0
lea eax, [ebp - 4]
push eax
push 0x10000
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x10]
push 0
call fcn.004233b5
add esp, 0x18
test eax, eax
mov dword [esi], eax
setne al
pop esi
leave
ret 0xc

Function at 0x413889
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0xccd], bl
jne 0x4138c8
cmp byte [esi + 0xccc], bl
je 0x4138c8
mov eax, dword [esi + 0x54]
test byte [eax], 2
je 0x41390e
push 1
mov esi, eax
lea eax, [esi + 0x214]
push eax
push ebx
add esi, 0x41c
push esi
push str.open
push ebx
call dword [0x42e358]
jmp 0x41390e
cmp byte [esi + 0xcce], bl
je 0x4138e3
mov eax, dword [esi + 0x54]
add eax, 0x624
push eax
mov ecx, 0x43b344
call fcn.0040de7b
push edi
xor edi, edi
cmp dword [esi + 0x898], ebx
jbe 0x41390d
mov eax, dword [esi + 0x8a0]
imul eax, edi
add eax, dword [esi + 0x894]
push eax
call dword [sym.imp.p_DeleteFileW]
inc edi
cmp edi, dword [esi + 0x898]
jb 0x4138ee
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x413913
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [0x42e3d0]
jne 0x413945
push 5
push dword [esi + 4]
call edi
push 0xc8
push 7
push 0
mov ecx, esi
call fcn.0040a346
mov ecx, esi
call fcn.0040a377
cmp dword [ebp + 0xc], 1
jne 0x41396d
push 5
push dword [esi + 4]
call edi
mov ecx, esi
call fcn.0040a3ef
push 0
push 8
push 8
mov ecx, esi
call fcn.0040a346
mov ecx, esi
call fcn.0040a377
cmp dword [ebp + 0xc], 2
jne 0x413995
push 5
push dword [esi + 4]
call edi
mov ecx, esi
call fcn.0040a3ef
push 0
push 9
push 9
mov ecx, esi
call fcn.0040a346
mov ecx, esi
call fcn.0040a377
pop edi
pop esi
pop ebp
ret 8

Function at 0x413a2e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x208], ax
xor ebx, ebx
lea eax, [ebp - 0x206]
push ebx
push eax
mov edi, ecx
call fcn.00420470
xor eax, eax
push esi
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
push ebx
push eax
call fcn.00420470
xor eax, eax
push esi
mov word [ebp - 0x618], ax
lea eax, [ebp - 0x616]
push ebx
push eax
call fcn.00420470
add esp, 0x24
mov esi, 0x103
push esi
lea eax, [ebp - 0x410]
push eax
push 0x35
mov ecx, 0x43b300
call fcn.0040be2e
mov ebx, dword [ebp + 8]
lea eax, [ebx + 0xc]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x208]
push esi
push eax
call fcn.00413679
add esp, 0x10
push esi
lea eax, [ebp - 0x618]
push eax
push dword [edi + 0xde0]
call dword [0x42e404]
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x618]
push eax
call fcn.00420927
pop ecx
pop ecx
test eax, eax
je 0x413b02
lea eax, [ebp - 0x208]
push eax
push dword [edi + 0xde0]
call dword [0x42e408]
mov eax, dword [ebx + 4]
imul eax, eax, 0x65
xor edx, edx
div dword [ebx + 8]
lea ecx, [edi + 0xe04]
push eax
call fcn.0040a29f
mov eax, dword [ebx + 4]
shr eax, 0xa
push eax
push str._d_Kb
lea eax, [ebp - 0x208]
push esi
push eax
call fcn.00413679
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
push dword [edi + 0xe28]
call dword [0x42e408]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x413bf1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push ebx
push esi
push edi
push 0x88
lea eax, [ebp - 0x8c]
push 0
push eax
mov esi, ecx
call fcn.00420470
mov ebx, dword [0x42e424]
and dword [ebp - 0x90], 0
add esp, 0xc
lea eax, [ebp - 0x90]
push eax
xor edi, edi
inc edi
push edi
push 0x464
push dword [esi + 4]
mov byte [ebp - 1], 1
mov dword [ebp - 0x8c], 2
call ebx
mov eax, dword [esi + 0x54]
mov dword [ebp - 0x90], edi
mov edi, 0x214
add eax, edi
push eax
call dword [sym.imp.p_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x413cb5
mov eax, dword [esi + 0x54]
add eax, edi
mov edi, 0x43b344
push eax
mov ecx, edi
call fcn.0040da4c
test eax, eax
jne 0x413cb5
push eax
mov byte [ebp - 1], al
lea eax, [esi + 0xcd4]
push eax
call dword [sym.imp.p_InterlockedExchangeAdd]
test eax, eax
jne 0x413cab
call dword [sym.imp.p_GetLastError]
test eax, eax
je 0x413cab
call dword [sym.imp.p_GetLastError]
push eax
mov eax, dword [esi + 0x54]
add eax, 0xc
push eax
mov ecx, edi
call fcn.0040d790
mov dword [ebp - 0x90], 2
lea eax, [ebp - 0x90]
push eax
push 1
push 0x464
push dword [esi + 4]
call ebx
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414821
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x220]
call fcn.00401a37
mov eax, dword [edi + 0x54]
add eax, 0x624
push eax
lea eax, [ebp - 0x220]
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_s
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.00401229
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push dword [ebp - 0x21c]
push 0x80000002
call dword [sym.imp.base_constructor_iterator_RegCreateKeyExW]
test eax, eax
je 0x414898
xor bl, bl
lea ecx, [ebp - 0x220]
call fcn.00401924
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4
mov eax, dword [edi + 0x54]
add eax, 0xc
je 0x4148a9
push eax
call fcn.004209bf
pop ecx
jmp 0x4148ab
xor eax, eax
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi + 0x54]
add eax, 0xc
push eax
push 1
push esi
mov esi, dword [sym.imp.base_constructor_iterator_RegSetValueExW]
push str.DisplayName
push dword [ebp - 4]
call esi
mov eax, dword [edi + 0x54]
mov ebx, 0x214
add eax, ebx
je 0x4148df
push eax
call fcn.004209bf
pop ecx
jmp 0x4148e1
xor eax, eax
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi + 0x54]
add eax, ebx
push eax
push 1
push 0
push str.InstallLocation
push dword [ebp - 4]
call esi
mov eax, dword [edi + 0x54]
mov ebx, 0x41c
add eax, ebx
je 0x41490f
push eax
call fcn.004209bf
pop ecx
jmp 0x414911
xor eax, eax
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi + 0x54]
add eax, ebx
push eax
push 1
push 0
push str.DisplayIcon
push dword [ebp - 4]
call esi
mov ebx, str.5.00
push ebx
call fcn.004209bf
pop ecx
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0
push str.DisplayVersion
push dword [ebp - 4]
call esi
mov ecx, dword [edi + 0x58]
lea eax, [ebp - 0x220]
push eax
push dword [0x439770]
call fcn.0041b95f
mov eax, dword [ebp - 0x218]
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x21c]
push 1
push 0
push str.Publisher
push dword [ebp - 4]
call esi
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 8]
lea eax, [eax + eax + 2]
push eax
push dword [ebx + 4]
push 1
push 0
push 0x433258
push dword [ebp - 4]
call esi
push 0x433254
call fcn.004209bf
pop ecx
lea eax, [eax + eax + 2]
push eax
push 0x433254
push 1
push 0
push 0x433238
push dword [ebp - 4]
call esi
push 0x433234
call fcn.004209bf
pop ecx
lea eax, [eax + eax + 2]
push eax
push 0x433234
push 1
push 0
push str.MinorVersion
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.base_constructor_iterator_RegCloseKey]
push dword [edi + 0xab8]
lea eax, [ebp - 0x220]
push str._sUninstall.lnk
push eax
call fcn.00401229
mov ebx, dword [ebx + 4]
add esp, 0xc
push 1
push ebx
mov eax, 0x42e9a0
push eax
push eax
push dword [ebp - 0x21c]
mov eax, dword [edi + 0x54]
push ebx
add eax, 0x214
push eax
mov ecx, 0x43b344
call fcn.0040e060
mov bl, 1
jmp 0x414884
Function at 0x414a31
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
push ebx
push esi
push edi
xor ebx, ebx
push 0x40
lea eax, [ebp - 0x50]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x54], ebx
call fcn.00420470
mov dword [ebp - 0x10], ebx
xor eax, eax
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
lea ecx, [ebp - 0x26c]
stosd dword es:[edi], eax
call fcn.00401a37
mov eax, dword [esi + 0x54]
lea ecx, [eax + 0x41c]
push ecx
add eax, 0x214
push eax
lea eax, [ebp - 0x26c]
push str.__s_s___install
push eax
call fcn.00401229
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
push dword [ebp - 0x268]
push ebx
call dword [sym.imp.p_CreateProcessW]
test eax, eax
jne 0x414ac2
lea ecx, [ebp - 0x26c]
call fcn.00401924
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
push 0xea60
push dword [ebp - 0x10]
call dword [sym.imp.p_WaitForSingleObject]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.p_CloseHandle]
call esi
cmp dword [ebp - 0xc], ebx
je 0x414ae5
push dword [ebp - 0xc]
call esi
mov bl, 1
jmp 0x414ab0
Function at 0x415d62
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x30]
call fcn.0040c056
or dword [ebp - 0x14], 0xffffffff
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x238], ax
xor ebx, ebx
lea eax, [ebp - 0x236]
push ebx
push eax
mov dword [ebp - 0x30], 0x434394
mov dword [ebp - 0x18], 0x42e730
call fcn.00420470
xor eax, eax
push esi
mov word [ebp - 0x440], ax
lea eax, [ebp - 0x43e]
push ebx
push eax
call fcn.00420470
add esp, 0x18
lea eax, [ebp - 0x440]
push eax
push 0x104
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
xor esi, esi
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], 1
call dword [sym.imp.p_GetTempPathW]
test eax, eax
jne 0x415e0e
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0x42e730
call fcn.00401358
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0x434394
call fcn.0040b86c
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
jmp 0x415ee5
cmp byte [ebp - 1], bl
je 0x415efa
inc esi
cmp dword [ebp - 0xc], 5
jne 0x415ed8
lea eax, [ebp - 0x238]
push eax
push ebx
push 0x433454
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.p_GetTempFileNameW]
test eax, eax
je 0x415ef7
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x18]
call fcn.00414b43
test al, al
je 0x415ef7
push dword [ebp - 8]
lea ecx, [ebp - 0x18]
push dword [ebp - 0x10]
call fcn.0040ac0f
cmp eax, dword [ebp - 8]
lea ecx, [ebp - 0x18]
sete byte [ebp - 1]
call fcn.00413743
lea ecx, [ebp - 0x18]
call fcn.00401358
cmp byte [ebp - 1], bl
je 0x415ecb
lea eax, [ebp - 0x30]
push eax
mov eax, dword [edi + 0x54]
add eax, 0x214
push eax
lea eax, [ebp - 0x238]
push eax
mov ecx, edi
call fcn.004153f2
mov byte [ebp - 1], al
cmp al, bl
je 0x415ecb
lea eax, [ebp - 0x30]
push eax
lea ecx, [edi + 0x890]
call fcn.0041375c
mov byte [ebp - 1], al
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.p_DeleteFileW]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
mov ecx, dword [ebp + 8]
call fcn.004140e3
test al, al
jne 0x415e20
jmp 0x415efa
mov byte [ebp - 1], bl
mov bl, byte [ebp - 1]
jmp 0x415de7
Function at 0x416b96
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, word [ebp + 8]
push ebx
push esi
push edi
push 0x4334b0
push eax
push dword [0x43b384]
mov dword [ebp - 4], ecx
call dword [sym.imp.p_FindResourceW]
mov esi, eax
test esi, esi
je 0x416c77
push esi
push dword [0x43b380]
call dword [sym.imp.p_SizeofResource]
mov edi, eax
mov dword [ebp + 8], edi
cmp edi, 0x32
jbe 0x416c77
push esi
push dword [0x43b380]
call dword [sym.imp.p_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x416c77
push eax
call dword [sym.imp.p_LockResource]
mov ebx, eax
test ebx, ebx
je 0x416c77
shr edi, 1
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00420d75
mov esi, eax
pop ecx
test esi, esi
je 0x416c77
cmp byte [ebx], 0xff
jne 0x416c43
mov eax, dword [ebp + 8]
add eax, 0xfffffffe
push eax
add ebx, 2
push ebx
push esi
call fcn.00420a10
add esp, 0xc
xor eax, eax
mov word [esi + edi*2 - 4], ax
jmp 0x416c56
push dword [ebp + 8]
push ebx
push esi
call fcn.00420a10
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
mov eax, dword [ebp - 4]
push esi
push dword [eax + 0x60]
call dword [0x42e408]
push esi
call fcn.004209ff
pop ecx
push dword [ebp - 8]
call dword [sym.imp.p_FreeResource]
mov al, 1
jmp 0x416c79
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x416c80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x218]
call fcn.00401a37
push dword [ebp - 0x214]
push dword [ebp - 0x20c]
call dword [sym.imp.p_GetTempPathW]
lea ecx, [ebp - 0x218]
call fcn.0040120b
push dword [ebp + 8]
mov ecx, dword [esi + 0x58]
lea eax, [ebp - 0x218]
push eax
call fcn.0041bab8
mov edi, eax
test edi, edi
jne 0x416ce4
xor bl, bl
lea ecx, [ebp - 0x218]
call fcn.00401924
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4
lea eax, [edi + 2]
push eax
push dword [esi + 0x60]
call dword [0x42e408]
push edi
call fcn.004209ff
pop ecx
mov bl, 1
jmp 0x416cd0
Function at 0x417247
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4c
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
stosd dword es:[edi], eax
lea edi, [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
stosd dword es:[edi], eax
mov esi, 0x206
lea edi, [ebp - 8]
push esi
mov dword [ebp - 0xc], ebx
stosd dword es:[edi], eax
mov word [ebp - 0x224], ax
lea eax, [ebp - 0x222]
push ebx
push eax
mov dword [ebp - 4], ecx
call fcn.00420470
xor eax, eax
push esi
mov word [ebp - 0x42c], ax
lea eax, [ebp - 0x42a]
push ebx
push eax
call fcn.00420470
xor eax, eax
push 0x81e
mov word [ebp - 0xc4c], ax
lea eax, [ebp - 0xc4a]
push ebx
push eax
call fcn.00420470
push dword [ebp + 8]
lea eax, [ebp - 0x224]
push 0x103
push eax
call fcn.0040abe6
lea eax, [ebp - 0x224]
push 0x3a
push eax
call fcn.0040bd4c
add esp, 0x38
cmp eax, ebx
jle 0x4173b7
xor ecx, ecx
mov word [ebp + eax*2 - 0x222], cx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.p_GetDiskFreeSpaceExW]
test eax, eax
jne 0x417369
push 0x104
lea eax, [ebp - 0x42c]
push eax
push 0x23
mov ecx, 0x43b300
call fcn.0040be2e
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0xc4c]
push 0x40f
push eax
call fcn.00413679
add esp, 0x10
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x54]
push 0x30
add ecx, 0xc
push ecx
lea ecx, [ebp - 0xc4c]
push ecx
push dword [eax + 4]
call dword [0x42e498]
xor al, al
jmp 0x4173b9
cmp dword [ebp - 8], ebx
ja 0x4173b7
jb 0x417379
cmp dword [ebp - 0xc], 0x3200000
jae 0x4173b7
push 0x104
lea eax, [ebp - 0x42c]
push eax
push 0xe
mov ecx, 0x43b300
call fcn.0040be2e
push 0x32
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0xc4c]
push 0x40f
push eax
call fcn.00413679
add esp, 0x14
jmp 0x417349
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41745a
Capabilities:
Check if file exists
Get file attributes
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc30
push ebx
push esi
push edi
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp - 0x208], ax
xor ebx, ebx
lea eax, [ebp - 0x206]
push ebx
push eax
mov esi, ecx
call fcn.00420470
xor eax, eax
push edi
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
push ebx
push eax
call fcn.00420470
xor eax, eax
push 0x81e
mov word [ebp - 0xc30], ax
lea eax, [ebp - 0xc2e]
push ebx
push eax
call fcn.00420470
add esp, 0x24
mov edi, 0x410
push edi
lea eax, [ebp - 0xc30]
push eax
push dword [esi + 0x2a8]
call dword [0x42e404]
push 0x103
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0xc30]
push eax
mov ecx, esi
call fcn.0041710e
test al, al
jne 0x417506
push dword [esi + 0x2a8]
call dword [0x42e430]
or eax, 0xffffffff
jmp 0x417656
lea eax, [ebp - 0x410]
push eax
push dword [esi + 0x2a8]
call dword [0x42e408]
lea eax, [ebp - 0x410]
push eax
mov eax, dword [esi + 0x54]
mov ebx, 0x104
add eax, 0x624
push ebx
push eax
call fcn.0040abe6
add esp, 0xc
push edi
lea eax, [ebp - 0xc30]
push eax
push dword [esi + 0x60]
call dword [0x42e404]
push 0x103
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0xc30]
push eax
mov ecx, esi
call fcn.0041710e
test al, al
jne 0x41756b
push dword [esi + 0x60]
jmp 0x4174f8
lea eax, [ebp - 0x208]
push eax
push dword [esi + 0x60]
call dword [0x42e408]
lea eax, [ebp - 0x208]
push eax
mov ecx, esi
call fcn.00417247
test al, al
je 0x4174fe
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.p_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4175f7
push ebx
lea eax, [ebp - 0x410]
push eax
push 0x24
mov ecx, 0x43b300
call fcn.0040be2e
mov eax, dword [esi + 0x54]
add eax, 0xc
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0xc30]
push edi
push eax
call fcn.00413679
mov eax, dword [esi + 0x54]
add esp, 0x10
push 0x24
add eax, 0xc
push eax
lea eax, [ebp - 0xc30]
push eax
push dword [esi + 4]
call dword [0x42e498]
cmp eax, 7
je 0x4174fe
lea eax, [ebp - 0x208]
push eax
mov eax, dword [esi + 0x54]
add eax, 0x214
push ebx
push eax
call fcn.0040abe6
mov edi, dword [0x42e424]
add esp, 0xc
push 0
push 0
mov ebx, 0xf0
push ebx
push dword [esi + 0x514]
call edi
test eax, eax
mov eax, dword [esi + 0x54]
je 0x417634
or dword [eax], 1
jmp 0x417637
and dword [eax], 0xfffffffe
push 0
push 0
push ebx
push dword [esi + 0x4f0]
call edi
mov esi, dword [esi + 0x54]
test eax, eax
je 0x417650
or dword [esi], 2
jmp 0x417653
and dword [esi], 0xfffffffd
push 3
pop eax
pop edi
pop esi
pop ebx
leave
ret