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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.0040fba0
mov edx, dword [ebp - 4]
add esp, 4
mov ecx, dword [ebp - 0x18]
cmp edx, 8
jb 0x410562
test ecx, ecx
je 0x41058f
cmp edx, 8
lea eax, [ebp - 0x18]
cmovae eax, ecx
cmp word [eax], 0
je 0x41058f
cmp edx, 8
lea eax, [ebp - 0x18]
cmovae eax, ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
test eax, eax
je 0x41058f
mov bl, 1
jmp 0x410591
xor bl, bl
cmp edx, 8
jb 0x4105c1
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4105b7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4105c8
push edx
push ecx
call fcn.00419c57
add esp, 8
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0043d74f
int3

Function at 0x4105d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.0040ffa0
mov edx, dword [ebp - 4]
add esp, 4
mov ecx, dword [ebp - 0x18]
cmp edx, 8
jb 0x4105f2
test ecx, ecx
je 0x41061f
cmp edx, 8
lea eax, [ebp - 0x18]
cmovae eax, ecx
cmp word [eax], 0
je 0x41061f
cmp edx, 8
lea eax, [ebp - 0x18]
cmovae eax, ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
test eax, eax
je 0x41061f
mov bl, 1
jmp 0x410621
xor bl, bl
cmp edx, 8
jb 0x410651
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410647
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410658
push edx
push ecx
call fcn.00419c57
add esp, 8
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0043d74f
int3

Function at 0x410660
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x410675
mov ecx, dword [esi]
test ecx, ecx
je 0x4106e7
mov ecx, esi
cmp eax, 8
jb 0x410682
mov ecx, dword [esi]
cmp word [ecx], 0
je 0x4106e7
mov ecx, esi
cmp eax, 8
jb 0x410691
mov ecx, dword [esi]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4106e7
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x10], 0
je 0x4106e7
mov ebx, 5
nop word [eax + eax]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4106ba
mov eax, dword [edi]
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x4106c4
mov ecx, dword [esi]
push 1
push eax
push ecx
call fcn.0042e740
test eax, eax
jne 0x4106e0
test ebx, ebx
jle 0x4106e7
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
dec ebx
jmp 0x4106b0
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret

Function at 0x410a40
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 0
jne 0x410a6a
lea eax, [esi + 0xc]
push eax
push 0
push esi
push 0x410a10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
test eax, eax
jne 0x410a6a
xor al, al
pop esi
ret
mov al, 1
pop esi
ret
Function at 0x410a70
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x410aa8
push GetClassNameW
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x410a98
push 1
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
xor eax, eax
pop esi
ret
Function at 0x413090
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 0
jne 0x4130a0
xor al, al
pop ebp
ret
cmp dword [eax + 0x14], 8
jb 0x4130a8
mov eax, dword [eax]
push esi
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4130d3
test esi, esi
je 0x4130ce
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
xor al, al
pop esi
pop ebp
ret
Function at 0x416420
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46be05
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
lea eax, [ebp - 0x24]
push ebx
push eax
call fcn.0040f2a0
add esp, 4
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 4], 0
cmp edx, 8
jb 0x41645e
test ecx, ecx
je 0x4164d1
cmp edx, 8
lea eax, [ebp - 0x24]
cmovae eax, ecx
cmp word [eax], 0
je 0x4164d1
cmp edx, 8
lea eax, [ebp - 0x24]
cmovae eax, ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4164cb
push esi
push 0
lea ecx, [ebp - 0x3c]
call fcn.004566d0
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x3c]
test eax, eax
mov byte [ebp - 4], 1
push 1
cmovne esi, eax
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push esi
push eax
call fcn.0042afc0
push esi
call fcn.004163e0
add esp, 0x10
lea ecx, [ebp - 0x3c]
mov bl, al
call fcn.00456b00
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
pop esi
jmp 0x4164d3
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
xor bl, bl
cmp edx, 8
jb 0x416503
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4164f9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416514
push edx
push ecx
call fcn.00419c57
add esp, 8
mov ecx, dword [ebp - 0xc]
mov al, bl
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.0043d74f
int3
Function at 0x416750
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46be3d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.0040f2a0
add esp, 4
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 4], 0
cmp edx, 8
jb 0x416792
test ecx, ecx
je 0x416950
cmp edx, 8
lea eax, [ebp - 0x40]
cmovae eax, ecx
cmp word [eax], 0
je 0x416950
cmp edx, 8
lea eax, [ebp - 0x40]
cmovae eax, ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41694a
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00424720
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.00416300
add esp, 0x14
test al, al
je 0x4168d4
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x416835
lea eax, [ebp - 0x58]
cmp ecx, eax
je 0x416835
mov byte [ebp - 0x10], 0
push dword [ebp - 0x10]
push eax
call fcn.00409240
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x416850
lea eax, [ebp - 0x28]
cmp ecx, eax
je 0x416850
mov byte [ebp - 0x10], 0
push dword [ebp - 0x10]
push eax
call fcn.00409240
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x416884
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41687a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416993
push edx
push ecx
call fcn.00419c57
add esp, 8
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp edx, 0x10
jb 0x4168ca
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4168c0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416993
push edx
push ecx
call fcn.00419c57
add esp, 8
mov edx, dword [ebp - 0x2c]
mov bl, 1
mov ecx, dword [ebp - 0x40]
jmp 0x416952
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x416908
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4168fe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416993
push edx
push ecx
call fcn.00419c57
add esp, 8
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp edx, 0x10
jb 0x41694a
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x416940
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416993
push edx
push ecx
call fcn.00419c57
add esp, 8
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x2c]
xor bl, bl
cmp edx, 8
jb 0x416982
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416978
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416998
push edx
push ecx
call fcn.00419c57
add esp, 8
mov ecx, dword [ebp - 0xc]
mov al, bl
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.0043d74f
call fcn.0043d74f
int3
Function at 0x419570
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
push 0
push 1
lea eax, [ebp - 0x18]
push 1
push eax
call fcn.00430090
add esp, 0x10
push 1
push 1
push 1
push esi
call fcn.00412db0
cmp eax, 1
jne 0x4195c6
mov eax, dword [0x494a50]
test eax, eax
je 0x4195bf
push 0x814
push eax
call fcn.00419c57
add esp, 8
xor esi, esi
jmp 0x41975a
push ebx
push edi
call fcn.004194e0
mov ebx, dword [ebp + 8]
mov dword [eax + 4], ebx
call fcn.004194e0
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
mov edi, eax
push 0x200
lea ecx, [edi + 0x14]
push ecx
push 0x67
push dword [edi + 4]
call esi
push 0x200
lea eax, [edi + 0x414]
push eax
push 0x68
push dword [edi + 4]
call esi
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
push 0x6b
push ebx
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x64], 0x30
mov dword [ebp - 0x60], 3
mov dword [ebp - 0x5c], 0x419490
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], ebx
call esi
push 0x7f00
push 0
mov dword [ebp - 0x4c], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 6
call fcn.004194e0
push 0x6c
push dword [ebp - 0x50]
add eax, 0x414
mov dword [ebp - 0x3c], eax
call esi
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push ebx
push 0
push 0
push 0
push SysReAllocString
push 0
push SysReAllocString
push 0xcf0000
call fcn.004194e0
add eax, 0x14
push eax
call fcn.004194e0
add eax, 0x414
push eax
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
je 0x4196d5
call fcn.004194e0
push 2
push esi
mov dword [eax + 0x10], esi
call fcn.00429280
add esp, 8
push 2
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
call fcn.004194e0
mov ecx, eax
call fcn.00410a40
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0x34]
push 0
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push 0
push eax
movups xmmword [ebp - 0x34], xmm0
movq qword [ebp - 0x24], xmm0
call esi
test eax, eax
je 0x419732
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [ebp - 0x34]
push eax
call edi
lea eax, [ebp - 0x34]
push eax
call ebx
push 0
push 0
push 0
lea eax, [ebp - 0x34]
push eax
call esi
test eax, eax
jne 0x419716
call fcn.004194e0
mov ecx, eax
call fcn.00410a70
mov eax, dword [0x494a50]
pop edi
pop ebx
test eax, eax
je 0x419757
push 0x814
push eax
call fcn.00419c57
add esp, 8
mov esi, dword [ebp - 0x2c]
mov edx, dword [ebp - 4]
mov dword [0x494a50], 0
cmp edx, 8
jb 0x41979a
mov ecx, dword [ebp - 0x18]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419790
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4197a3
push edx
push ecx
call fcn.00419c57
add esp, 8
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10
call fcn.0043d74f
int3
Function at 0x41ce30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
call fcn.0041ced0
add esp, 4
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
jmp 0x41ce62
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0xc]
jge 0x41ceb6
mov eax, dword [ebp - 4]
and eax, 0x800000ff
jns 0x41ce7b
dec eax
or eax, 0xffffff00
inc eax
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + eax]
add edx, dword [ebp - 0xc]
and edx, 0x800000ff
jns 0x41ce95
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
xor eax, ecx
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
mov byte [ecx], al
jmp 0x41ce59
mov eax, dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x421000
Capabilities:
Check if file exists
Create process on windows
Impersonate user

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov dword [ebp - 0xc], 0
cmp dword [ebp + 8], 0
je 0x421031
cmp dword [ebp + 0xc], 0
je 0x421031
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
test ecx, ecx
je 0x421031
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x421038
xor eax, eax
jmp 0x421133
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
push 2
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x421061
xor eax, eax
jmp 0x421133
lea edx, [ebp - 4]
push edx
push 1
push 1
push 0
push 0x2000000
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x421130
push str.SeCreateSymbolicLinkPrivilege
mov ecx, dword [ebp - 4]
push ecx
call fcn.00420f90
add esp, 8
push 0x44
push 0
lea edx, [ebp - 0x60]
push edx
call fcn.0043ad10
add esp, 0xc
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x58], str.winsta0default
mov dword [ebp - 0x34], 1
mov ax, word [ebp + 0x18]
mov word [ebp - 0x30], ax
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
test eax, eax
je 0x421130
mov dword [ebp - 0xc], 1
cmp dword [ebp + 0x14], 0
je 0x421110
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x1c]
mov dword [ecx], edx
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x18], 0
je 0x421120
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], 0
je 0x421130
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x425cc0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
xor eax, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov dword [ebp - 0xc], 0x10
mov dword [ebp - 4], 0
jmp 0x425d06
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jge 0x425d5c
movzx ecx, word [ebp - 0x44]
mov edx, dword [ebp - 4]
cmp ecx, dword [edx*8 + 0x4931d0]
jne 0x425d5a
cmp dword [ebp + 8], 0
je 0x425d56
mov eax, dword [ebp - 4]
mov ecx, dword [eax*8 + 0x4931d4]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00446780
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp + 8]
call fcn.00404290
mov al, 1
jmp 0x425d96
jmp 0x425cfd
cmp dword [ebp + 8], 0
je 0x425d94
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax*8 + 0x4931cc]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.00446780
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov ecx, dword [ebp + 8]
call fcn.00404290
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x425da0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov dword [ebp - 4], 0xffffffff
cmp dword [0x493250], 0
je 0x425ef8
push 0x800
push 0
lea eax, [ebp - 0x80c]
push eax
call fcn.0043ad10
add esp, 0xc
push 0x3ff
lea ecx, [ebp - 0x80c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x425e41
mov edx, 2
imul eax, edx, 0
movzx ecx, word [ebp + eax - 0x80c]
test ecx, ecx
je 0x425e41
push str.SysWOW64
lea edx, [ebp - 0x80c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x425e2a
mov dword [ebp - 8], 1
jmp 0x425e31
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov dword [0x493250], 0
cmp dword [ebp - 4], 1
je 0x425ef8
cmp dword [0x495048], 0
jne 0x425e64
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x495048], eax
cmp dword [0x495048], 0
je 0x425ef8
cmp dword [0x49504c], 0
jne 0x425e91
push str.GetSystemWow64DirectoryW
mov edx, dword [0x495048]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x49504c], eax
cmp dword [0x49504c], 0
je 0x425ef8
push 0x800
push 0
lea eax, [ebp - 0x80c]
push eax
call fcn.0043ad10
add esp, 0xc
push 0x3ff
lea ecx, [ebp - 0x80c]
push ecx
call dword [0x49504c]
test eax, eax
je 0x425ef8
lea edx, [ebp - 0x80c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x425ee1
mov dword [ebp - 0xc], 1
jmp 0x425ee8
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [0x493250], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x426ed0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c6dd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x1024
call fcn.00419c90
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x30]
call fcn.0041bc40
mov dword [ebp - 4], 0
push 0x1000
push 0
lea eax, [ebp - 0x1030]
push eax
call fcn.0043ad10
add esp, 0xc
push 0
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x1030]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x426f62
lea eax, [ebp - 0x1030]
push eax
call fcn.004464a6
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
lea eax, [ebp - 0x1030]
push eax
lea ecx, [ebp - 0x30]
call fcn.00401490
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0041bbe0
mov edx, dword [ebp - 0x10]
or edx, 1
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0041fbb0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4279a0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c78d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
lea ecx, [ebp - 0x6c]
call fcn.0041bc40
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x4279da
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x427a35
lea edx, [ebp - 0x6c]
push edx
push 0
call fcn.00426e60
add esp, 8
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x20]
cmp dword [edx + 0x14], 8
jb 0x427a06
mov dword [ebp - 0x24], 1
jmp 0x427a0d
mov dword [ebp - 0x24], 0
mov al, byte [ebp - 0x24]
mov byte [ebp - 0xd], al
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
je 0x427a29
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov dword [ebp + 8], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x427b82
mov edx, dword [ebp - 0x14]
add edx, 0x20
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.00443a4c
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x427a89
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.0041fbb0
mov eax, dword [ebp - 0x34]
jmp 0x427b9b
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x427b76
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x18]
push edx
push 0x479828
mov eax, dword [ebp - 0x1c]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x427b76
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 8]
shr edx, 0x10
and edx, 0xffff
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 8]
and ecx, 0xffff
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0xc]
shr eax, 0x10
and eax, 0xffff
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0xc]
and edx, 0xffff
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x48]
push eax
push str._d._d._d._d
lea ecx, [ebp - 0x84]
push ecx
call fcn.0041e230
add esp, 0x18
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x4c]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.004141b0
lea ecx, [ebp - 0x84]
call fcn.0041fac0
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00443895
add esp, 4
mov dword [ebp - 0x50], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.0041fbb0
mov eax, dword [ebp - 0x50]
jmp 0x427b9b
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00443895
add esp, 4
mov dword [ebp - 0x54], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.0041fbb0
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret