joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419e20
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
mov eax, dword [esp + 8]
push edi
test eax, eax
mov edi, ecx
jne 0x419e2f
pop edi
ret 8
cmp dword [eax], 0xe10
jne 0x419f05
mov eax, dword [edi + 0x70]
push ebp
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
test eax, eax
je 0x419ef4
mov eax, dword [edi + 0x340]
test eax, eax
jne 0x419ef4
lea esi, [edi + 0x2f0]
lea edx, [esp + 0x14]
push ebx
push edx
mov ecx, esi
call fcn.00425720
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [0x458054]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ebx, eax
mov eax, dword [esp + 0x18]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x419eab
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x419eab
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.0042d78e
add esp, 4
test ebx, ebx
pop ebx
je 0x419ef4
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.00425720
mov ecx, dword [eax]
push 4
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [esp + 0x14]
mov ecx, dword [0x458054]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x419ef4
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x419ef4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.0042d78e
add esp, 4
mov edi, dword [edi + 0x70]
push edi
mov ecx, dword [edi]
call dword [ecx + 0x10]
pop esi
pop ebp
xor eax, eax
pop edi
ret 8
mov eax, 1
pop edi
ret 8
Function at 0x41a2a0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44e218
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebp
push edi
mov edi, ecx
mov eax, dword [edi + 0x3e8]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
xor ebp, ebp
cmp eax, ebp
jne 0x41a437
mov eax, dword [0x458628]
push ebx
cmp eax, ebp
push esi
lea ebx, [edi + 0x3e4]
jne 0x41a2ea
mov dword [0x458628], ebp
lea ecx, [ebx + 0x1c]
push ecx
push 0x4585f8
push 0x45e498
call fcn.0041ae40
push ebp
push eax
push ebp
push 0x80000
push SysReAllocString
push str.PictureAnimation
push 0x458428
push ebp
mov ecx, ebx
call fcn.0041b9b0
mov eax, dword [edi + 0x70]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov esi, eax
lea eax, [esp + 0x40]
push eax
push esi
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], esi
call dword [sym.imp.USER32.dll_BeginPaint]
mov dword [esp + 0x38], eax
xor ecx, ecx
lea edx, [esp + 0x28]
mov dword [esp + 0x2c], ecx
push edx
mov dword [esp + 0x34], ecx
push esi
mov dword [esp + 0x90], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x3c], ecx
call dword [sym.imp.USER32.dll_GetClientRect]
xor eax, eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
push ecx
mov dword [esp + 0x24], eax
push esi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
sub edx, eax
push ebp
push edx
mov edx, dword [esp + 0x28]
sub edx, ecx
push edx
push eax
mov eax, dword [edi + 0x3e8]
push ecx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [edi + 4]
push ecx
mov ecx, ebx
call fcn.0040fea0
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x28]
push edx
push eax
call fcn.00421810
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x41a408
push 0x10
call fcn.0042b990
xor ecx, ecx
mov dword [esp + 0x14], eax
cmp eax, ecx
je 0x41a400
lea edx, [esp + 0x10]
mov dword [eax], 0x450950
push edx
push ecx
push ebp
mov dword [esp + 0x1c], ecx
call fcn.0042c140
mov ecx, dword [esp + 0x14]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 4], eax
push ecx
mov ecx, ebx
call fcn.0040f9c0
mov ecx, dword [edi + 0x3e8]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push ecx
call edi
mov ecx, ebx
call fcn.0040fa40
push 0
push esi
call edi
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x40]
push edx
push eax
call dword [sym.imp.USER32.dll_EndPaint]
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x7c
ret
Function at 0x41bff0
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0xffffffffffffffff
push 0x44e2ec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi + 4], ebx
mov dword [esi + 0x18], ebx
or eax, 0xffffffff
mov dword [esp + 0x18], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov byte [esi + 0x94], bl
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], eax
mov dword [esi + 0x90], eax
lea edi, [esi + 0x1c]
mov byte [esp + 0x18], 1
mov ecx, edi
call fcn.0041bb30
mov dword [esi], 0x450a30
mov dword [edi], 0x450a24
mov dword [esi + 0x58], 0x4509fc
lea eax, [esi + 0x98]
mov dword [esp + 0x18], 2
cmp eax, ebx
je 0x41c082
lea ebx, [eax - 0x98]
push eax
lea ecx, [ebx + 8]
push 0x40
push 0xd
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [esi + 0xa0]
mov byte [esp + 0x18], 3
call fcn.0040cb00
mov ecx, dword [esp + 0x10]
mov dword [edi], 0x4509f0
mov dword [esi], 0x4509e4
mov dword [esi + 0x58], 0x4509bc
mov dword [esi + 0x74], 4
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x41c300
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
test eax, eax
push edi
mov esi, ecx
jne 0x41c48d
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
cmp ebx, 0xf
jne 0x41c358
push 1
call fcn.0041c2b0
push ecx
mov ecx, esi
mov eax, esp
mov dword [esp + 0x2c], esp
mov dword [eax], edi
call fcn.0041c550
mov ecx, esi
mov dword [ebp], 0
call fcn.0041c2a0
test eax, eax
je 0x41c3be
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret 0x18
cmp ebx, 0x110
jne 0x41c39c
push 1
mov ecx, esi
call fcn.0041c2b0
mov eax, dword [esp + 0x20]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push edi
call fcn.00407220
mov ecx, esi
call fcn.0041c4a0
mov ecx, esi
mov dword [ebp], eax
call fcn.0041c2a0
test eax, eax
je 0x41c3be
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret 0x18
cmp ebx, 0x111
jne 0x41c3be
cmp di, 0x402
jne 0x41c3be
mov ecx, esi
call fcn.0041c5f0
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret 0x18
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
push 0
push ebp
push ecx
push edi
push ebx
push edx
lea ecx, [esi + 0x1c]
call fcn.0041bbf0
test eax, eax
jne 0x41c481
cmp ebx, 5
lea eax, [esi + 0x78]
jne 0x41c456
test eax, eax
je 0x41c3ee
lea esi, [eax - 0x78]
jmp 0x41c3f0
xor esi, esi
mov cl, byte [eax + 0x1c]
test cl, cl
je 0x41c425
mov eax, dword [esi + 4]
push 0xe801
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp edi, 2
jne 0x41c416
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x41c42a
test edi, edi
jne 0x41c425
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x41c42a
cmp edi, 1
je 0x41c47a
mov eax, dword [esp + 0x20]
mov ecx, eax
shr ecx, 0x10
movsx edx, cx
movsx eax, ax
push edx
push eax
lea ecx, [esi + 0x78]
call fcn.0041cc50
mov dword [ebp], 0
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret 0x18
cmp ebx, 0x24
jne 0x41c48d
mov edx, dword [eax + 0x14]
or ecx, 0xffffffff
cmp edx, ecx
je 0x41c47a
cmp dword [eax + 0x18], ecx
je 0x41c47a
mov ecx, dword [esp + 0x20]
mov edx, dword [eax + 0x14]
mov dword [ecx + 0x18], edx
mov eax, dword [eax + 0x18]
mov dword [ecx + 0x1c], eax
mov dword [ebp], 0
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret 0x18
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x18
Function at 0x41dc90
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
test eax, eax
push edi
mov esi, ecx
jne 0x41debb
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
cmp ebx, 0xf
jne 0x41dccf
push 1
call fcn.0041dc40
push ecx
mov ecx, esi
mov eax, esp
mov dword [esp + 0x20], esp
mov dword [eax], edi
call fcn.0041e390
jmp 0x41ddce
cmp ebx, 0x110
jne 0x41dd17
push 1
mov ecx, esi
call fcn.0041dc40
mov eax, dword [esp + 0x20]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push edi
call fcn.00407220
mov ecx, esi
call fcn.0041e560
mov ecx, esi
mov dword [ebp], eax
call fcn.0041dc30
test eax, eax
je 0x41ddec
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret 0x18
cmp ebx, 0x111
jne 0x41dd87
cmp di, 0x3ea
jne 0x41dd39
mov ecx, esi
call fcn.0041ded0
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret 0x18
cmp di, 0x3f4
jne 0x41dd53
mov ecx, esi
call fcn.0041e620
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret 0x18
cmp di, 0x3f3
jne 0x41dd6d
mov ecx, esi
call fcn.0041eb40
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret 0x18
cmp di, 0x405
jne 0x41ddec
mov ecx, esi
call fcn.0041eba0
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret 0x18
cmp ebx, 0xbd0
jne 0x41ddb5
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 1
push ecx
push edx
push ebx
mov ecx, esi
call fcn.0041f010
mov ecx, dword [esp + 0x24]
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret 0x18
cmp ebx, 0x113
jne 0x41ddec
push 1
mov ecx, esi
call fcn.0041dc40
push edi
mov ecx, esi
call fcn.0041e2d0
mov ecx, esi
mov dword [ebp], 0
call fcn.0041dc30
test eax, eax
je 0x41ddec
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret 0x18
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
push 0
push ebp
push edx
push edi
push ebx
push eax
lea ecx, [esi + 0x1c]
call fcn.0041bbf0
test eax, eax
jne 0x41deaf
cmp ebx, 5
lea eax, [esi + 0x78]
jne 0x41de84
test eax, eax
je 0x41de1c
lea esi, [eax - 0x78]
jmp 0x41de1e
xor esi, esi
mov cl, byte [eax + 0x1c]
test cl, cl
je 0x41de53
mov ecx, dword [esi + 4]
push 0xe801
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp edi, 2
jne 0x41de44
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x41de58
test edi, edi
jne 0x41de53
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x41de58
cmp edi, 1
je 0x41dea8
mov eax, dword [esp + 0x20]
mov edx, eax
shr edx, 0x10
movsx ecx, dx
movsx edx, ax
push ecx
push edx
lea ecx, [esi + 0x78]
call fcn.0041f3a0
mov dword [ebp], 0
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret 0x18
cmp ebx, 0x24
jne 0x41debb
mov edx, dword [eax + 0x14]
or ecx, 0xffffffff
cmp edx, ecx
je 0x41dea8
cmp dword [eax + 0x18], ecx
je 0x41dea8
mov ecx, dword [esp + 0x20]
mov edx, dword [eax + 0x14]
mov dword [ecx + 0x18], edx
mov eax, dword [eax + 0x18]
mov dword [ecx + 0x1c], eax
mov dword [ebp], 0
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret 0x18
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x18
Function at 0x41eba0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x44e6eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x204
mov eax, dword [0x458050]
push ebx
mov dword [esp + 4], eax
mov ecx, dword [0x45e460]
mov ebx, dword [sym.imp.USER32.dll_LoadStringW]
lea edx, [esp + 8]
push 0x100
mov eax, dword [ecx + 8]
push edx
push 0xa8
push eax
mov dword [esp + 0x220], 0
call ebx
test eax, eax
jne 0x41ebfa
mov word [esp + 8], ax
mov ecx, 0x100
sub ecx, eax
cmp ecx, 1
jle 0x41ec2e
lea edx, [esp + 8]
test edx, edx
jne 0x41ec12
xor eax, eax
jmp 0x41ec1d
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 8]
push ecx
push eax
lea ecx, [esp + 0xc]
call fcn.00403e10
jmp 0x41ec92
push esi
push edi
push 0x1ff
lea ecx, [esp + 0x10]
mov edi, 0x200
call fcn.00403bf0
mov esi, eax
test esi, esi
je 0x41ec85
mov edx, dword [0x45e460]
push edi
push esi
push 0xa8
mov eax, dword [edx + 8]
push eax
call ebx
test eax, eax
jne 0x41ec63
mov word [esi], ax
mov ecx, edi
sub ecx, eax
cmp ecx, 1
jg 0x41ec85
add edi, 0x100
lea ecx, [esp + 0xc]
lea edx, [edi - 1]
push edx
call fcn.00403bf0
mov esi, eax
test esi, esi
jne 0x41ec49
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
call fcn.00403cb0
pop edi
pop esi
mov eax, dword [esp + 4]
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esp + 4]
mov edx, dword [0x458054]
pop ebx
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41ecda
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41ecda
mov edx, dword [esp]
add edx, 0xfffffff4
push edx
call fcn.0042d78e
add esp, 4
mov ecx, dword [esp + 0x204]
mov dword fs:[0], ecx
add esp, 0x210
ret
Function at 0x41fd60
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x44e741
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x458050]
push ebx
mov ebx, ecx
push ebp
push esi
push edi
mov dword [esp + 0x10], ebx
mov dword [ebx + 4], eax
mov ecx, dword [0x458050]
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [ebx + 8], ecx
mov edx, dword [0x458050]
mov dword [ebx + 0xc], edx
mov byte [esp + 0x1c], 2
mov dword [ebx], 0x450af0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
cmp esi, edi
jne 0x41fdbb
xor ebp, ebp
jmp 0x41fdc4
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
mov eax, dword [ebx + 0xc]
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
cmp edx, 1
jg 0x41fdd7
cmp ebp, dword [eax - 4]
jle 0x41fe3e
mov edx, dword [0x458054]
add eax, 0xfffffff4
cmp eax, edx
je 0x41fe07
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41fdfe
mov eax, dword [ebx + 0xc]
sub eax, 0xc
push eax
call fcn.0042d78e
add esp, 4
mov ecx, dword [0x458050]
mov dword [ebx + 0xc], ecx
cmp ebp, edi
jne 0x41fe16
mov edx, dword [0x458050]
mov dword [ebx + 0xc], edx
jmp 0x41fe3e
lea eax, [ebp + ebp + 0xe]
push eax
call fcn.0043936a
add esp, 4
cmp eax, edi
je 0x41fe6c
mov dword [eax], 1
mov word [eax + ebp*2 + 0xc], di
mov dword [eax + 4], ebp
mov dword [eax + 8], ebp
add eax, 0xc
mov dword [ebx + 0xc], eax
lea eax, [ebp + ebp]
lea ecx, [ebp + ebp + 2]
cmp ecx, eax
jb 0x41fe5d
mov edi, dword [ebx + 0xc]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0xc]
mov dword [ecx - 8], ebp
mov edx, dword [ebx + 0xc]
mov word [edx + eax], 0
mov ecx, ebx
call fcn.0041ff40
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4205b0
Capabilities:
Get disk size

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x224
push esi
xor esi, esi
cmp edx, esi
je 0x42063d
push edi
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x22]
mov word [esp + 0x20], si
push esi
rep stosd dword es:[edi], eax
push esi
lea eax, [esp + 0x28]
push esi
push eax
push edx
call fcn.0043a6d0
add esp, 0x14
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
lea eax, [esp + 8]
push ecx
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
pop edi
je 0x42063d
mov eax, dword [esp + 0x230]
mov edx, dword [esp + 4]
mov ecx, dword [esp + 8]
pop esi
mov dword [eax], edx
mov dword [eax + 4], ecx
mov eax, 1
add esp, 0x224
ret
xor eax, eax
pop esi
add esp, 0x224
ret
Function at 0x4214d0
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
lea eax, [esp]
push 0
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x4214ee
test byte [esp], 7
mov eax, 1
jne 0x4214f3
call fcn.00421440
pop ecx
ret

Function at 0x421500
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x44e81b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80c
push ebx
push ebp
push esi
push edi
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
xor ebx, ebx
lea esi, [esp + 0x1c]
cmp word [esp + 0x1c], bx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
je 0x4215ff
mov edi, dword [esp + 0x830]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ecx, dword [0x458050]
mov dword [esp + 0x10], ecx
xor edx, edx
lea eax, [esp + 0x10]
mov dx, word [esi]
mov dword [esp + 0x824], ebx
push edx
push str._c:_
push eax
call fcn.00414f30
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push edx
call fcn.004205b0
mov eax, dword [esp + 0x2c]
add esp, 0x14
cmp eax, edi
jg 0x42161b
jl 0x4215b3
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x82c]
cmp ecx, eax
ja 0x42161b
push esi
call fcn.0043a055
mov ecx, dword [0x458054]
lea esi, [esi + eax*2 + 2]
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x824], 0xffffffff
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4215f6
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x4215f6
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.0042d78e
add esp, 4
cmp word [esi], bx
jne 0x421562
xor ax, ax
mov ecx, dword [esp + 0x81c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x818
ret
mov eax, dword [esp + 0x10]
mov edx, dword [0x458054]
mov si, word [esi]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x421649
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x421649
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.0042d78e
add esp, 4
mov ax, si
jmp 0x421602
Function at 0x421650
Capabilities:
Get common file path

Disassembly:
sub esp, 0x614
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x216]
mov word [esp + 0x214], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
lea eax, [esp + 0x218]
push 0x20
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp + 0xc]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, dword [0x458050]
lea eax, [esp + 0xc]
test eax, eax
mov dword [esp + 8], edx
je 0x42179d
lea ecx, [esp + 0xc]
shr ecx, 0x10
jne 0x42175d
xor edi, edi
lea edx, [esp + 0xc]
lea eax, [esp + 0x41c]
mov di, dx
push 0x100
push eax
push edi
call fcn.00403f40
mov ecx, 0x100
sub ecx, eax
cmp ecx, 1
jle 0x421711
lea edx, [esp + 0x41c]
lea ecx, [esp + 8]
push edx
call fcn.004030c0
jmp 0x42179d
push 0x1ff
lea ecx, [esp + 0xc]
mov esi, 0x200
call fcn.00403bf0
test eax, eax
je 0x421750
push esi
push eax
push edi
call fcn.00403f40
mov ecx, esi
sub ecx, eax
cmp ecx, 1
jg 0x421750
add esi, 0x100
lea ecx, [esp + 8]
lea edx, [esi - 1]
push edx
call fcn.00403bf0
test eax, eax
jne 0x421728
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.00403cb0
jmp 0x42179d
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x42179d
push esi
lea ecx, [esp + 0xc]
call fcn.00403db0
test eax, eax
je 0x42179d
lea ecx, [esi + esi]
lea edx, [esi + esi + 2]
cmp edx, ecx
jb 0x42179d
mov edi, dword [esp + 8]
mov eax, ecx
lea esi, [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jl 0x4217c5
lea ecx, [esp + 0x214]
push ecx
push eax
call fcn.00438dd0
add esp, 8
test eax, eax
je 0x4217c5
sub eax, dword [esp + 8]
sar eax, 1
jmp 0x4217c8
or eax, 0xffffffff
xor edx, edx
test eax, eax
mov eax, dword [esp + 8]
setge dl
mov esi, edx
mov edx, dword [0x458054]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x421800
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x421800
mov edx, dword [esp + 8]
add edx, 0xfffffff4
push edx
call fcn.0042d78e
add esp, 4
mov eax, esi
pop edi
pop esi
add esp, 0x614
ret
Function at 0x4218f0
Capabilities:
Get file version info

Disassembly:
mov eax, 0x200c
call fcn.0043a440
push ebx
push ebp
push esi
mov esi, dword [esp + 0x201c]
test esi, esi
push edi
je 0x4219e4
mov ebx, dword [esp + 0x2024]
test ebx, ebx
je 0x4219e4
mov ebp, dword [esp + 0x2028]
cmp ebp, 0x80
jl 0x4219e4
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x14], 0
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x4219e4
cmp eax, 0x1fff
ja 0x4219e4
lea ecx, [esp + 0x1c]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4219e4
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x24]
push 0x4584dc
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4219e4
mov ecx, ebp
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov edx, dword [eax + 0xc]
mov cx, word [eax + 0xc]
shr edx, 0x10
push ecx
push edx
mov edx, dword [eax + 8]
xor ecx, ecx
mov cx, word [eax + 8]
shr edx, 0x10
push ecx
push edx
push str._d._d._d._d
push ebp
push ebx
call fcn.00420d10
add esp, 0x1c
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x200c
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x200c
ret

Function at 0x422d80
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x422dcf
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x422d9a
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x422da9
cmp eax, 1
jne 0x422da9
test ecx, ecx
je 0x422da9
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esi + 0x18]
mov dword [esi + 0xc], 0
push ecx
mov dword [esi + 8], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0xffffffff
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
ret
Function at 0x4231f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
mov ecx, dword [esp + 0xc]
push 0xffffffffffffffff
push 0x44e8e8
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
push edi
and eax, 0xffff
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
xor ebp, ebp
cmp esi, ebp
jne 0x423232
xor eax, eax
jmp 0x423338
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebp
jne 0x423247
xor eax, eax
jmp 0x423338
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, ebp
jne 0x423263
xor eax, eax
jmp 0x423338
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
cmp ebx, ebp
jne 0x42327f
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x423338
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebp
jne 0x42329f
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x423338
mov ecx, edi
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x20], ebp
push ebx
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x20]
xor esi, esi
cmp eax, ebp
je 0x4232d0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebp
push edx
push ebp
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x423319
mov edi, dword [esp + 0x20]
push 0x10
call fcn.0042b990
mov esi, eax
cmp esi, ebp
je 0x423317
lea eax, [esp + 0x28]
mov dword [esi], 0x450950
push eax
push edi
mov dword [esp + 0x30], ebp
call fcn.0042bc90
mov ecx, dword [esp + 0x28]
mov dword [esi + 8], eax
mov dword [esi + 4], ecx
jmp 0x423319
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
cmp eax, ebp
je 0x423336
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, esi
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0xc