joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e800
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x6b94f8]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx + 4]
mov edx, dword [ebp + 8]
or eax, 0x2001f
push esi
push edi
push eax
push edx
push dword [ecx]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.0040e750
mov esi, eax
test esi, esi
jne 0x40e8f7
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x100
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x40e8c9
nop dword [eax]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.0040e800
mov esi, eax
test esi, esi
jne 0x40e8f7
lea eax, [esp + 0x20]
mov dword [esp + 8], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
je 0x40e890
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40e8e0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
push dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], 0
call fcn.0040e670
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40e906
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0050eeb2
mov esp, ebp
pop ebp
ret 4
Function at 0x40ed90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x623c26
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x6b94f8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x40ee3c
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x40ee3c
call fcn.0040e450
mov edi, eax
jmp 0x40ef5b
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40ee5f
call fcn.0040e450
jmp 0x40ef4e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x40ee7d
call fcn.0040e450
jmp 0x40ef4e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x40ee9e
mov edi, 0x8007000e
jmp 0x40ef50
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x40ef94
jb 0x40eebc
cmp eax, 0xffffffff
ja 0x40ef94
cmp eax, 0x400
jbe 0x40eed1
push eax
lea ecx, [ebp - 0x418]
call fcn.004114c0
jmp 0x40eef7
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x40eef7
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
jne 0x40ef0e
mov edi, 0x8007000e
jmp 0x40ef50
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x40ef2e
call fcn.0040e450
jmp 0x40ef4e
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.0040fb60
mov edi, eax
test esi, esi
je 0x40ef5b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40ef74
lea ecx, [ebp - 0x418]
call fcn.004114b0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0050eeb2
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.0040bc20
int3
Function at 0x416bcf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xc4
mov eax, 0x624738
call fcn.0050fa26
mov dword [ebp - 0xd0], ecx
mov esi, dword [ebp + 8]
movzx eax, word [ebp + 0x24]
xor ebx, ebx
push 0xa
push eax
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x416d11
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x416d11
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov dword [ebp - 0xc8], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp dword [ebp - 0xc8], ebx
jne 0x416c3b
test edi, edi
je 0x416d11
cmp dword [ebp + 0x1c], ebx
jbe 0x416cd5
lea eax, [ebp + 0xc]
mov dword [ebp - 0x30], ebx
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], ebx
call fcn.00408df0
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.0041d369
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xc4]
call fcn.0041df05
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xc4]
call fcn.0041d6f8
lea esi, [edi + 1]
mov byte [ebp - 4], 2
push esi
call fcn.0052f741
push esi
push ebx
push eax
mov dword [ebp - 0xcc], eax
call fcn.00528630
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0xcc]
cmovae eax, dword [ebp - 0x28]
push eax
push edi
push esi
push dword [ebp - 0xc8]
call fcn.00423544
add esp, 0x20
lea ecx, [ebp - 0x28]
call fcn.004065d0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.004065d0
jmp 0x416cd7
mov esi, ebx
sub esp, 0x18
mov ecx, esp
push esi
call fcn.004066e0
lea eax, [ebp - 0x58]
push eax
call fcn.0041e3a8
add esp, 0x1c
mov esi, dword [ebp - 0xd0]
lea eax, [ebp - 0x58]
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00417e9f
cmp dword [esi + 4], ebx
lea ecx, [ebp - 0x58]
seta bl
call fcn.004065d0
lea ecx, [ebp + 0xc]
call fcn.004065d0
mov al, bl
call fcn.0050f9d0
ret 0x20
Function at 0x41ab6e
Capabilities:
Check if file exists

Disassembly:
push 0x23c
mov eax, 0x624d1f
call fcn.0050fa26
mov edi, ecx
lea eax, [ebp - 0x230]
push eax
call fcn.0041a8b5
and dword [ebp - 4], 0
lea esi, [edi + 4]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x41aba0
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push 0x62c1fc
call fcn.00406420
push 0x62c200
mov ecx, esi
call fcn.00406420
push 0x6a4ae8
mov ecx, esi
call fcn.00406420
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
mov ecx, esi
push eax
call fcn.00408960
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x41abf5
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41ac8d
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00528630
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0041a789
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x41ac4c
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00406420
push 0x6a4ae8
mov ecx, esi
call fcn.00406420
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
mov ecx, esi
push eax
call fcn.00408960
cmp dword [esi + 0x14], 8
jb 0x41ac95
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea esi, [edi + 0x1c]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x41acad
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push 0x62c1fc
call fcn.00406420
push 0x62c200
mov ecx, esi
call fcn.00406420
push 0x6a4ae8
mov ecx, esi
call fcn.00406420
lea eax, [ebp - 0x248]
mov ecx, edi
push eax
call fcn.0041a914
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0040b670
lea ecx, [ebp - 0x248]
call fcn.00402a40
lea ecx, [ebp - 0x230]
call fcn.00402a40
call fcn.0050f9d0
ret
Function at 0x41cd60
Capabilities:
Move file

Disassembly:
push 0x4c
mov eax, 0x624ff5
call fcn.0050fa26
mov esi, ecx
cmp dword [esi + 0x1c], 0xffffffff
je 0x41cd81
push dword [esi + 0x1c]
call fcn.00539b85
or dword [esi + 0x1c], 0xffffffff
pop ecx
mov eax, dword [esi + 0x28]
mov ecx, esi
dec eax
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0041bb67
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.0053100b
mov edi, dword [esi + 0x28]
sub edi, 2
pop ecx
js 0x41ce05
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.0041bb67
lea eax, [edi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0041bb67
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x28]
call fcn.00402a40
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00402a40
sub edi, 1
jns 0x41cdaf
mov ecx, esi
call fcn.0041cbbd
lea ecx, [ebp - 0x58]
mov byte [esi + 0x5c], 0
call fcn.00402a40
call fcn.0050f9d0
ret

Function at 0x41ce1e
Capabilities:
Move file

Disassembly:
push 0x4c
mov eax, 0x624ff5
call fcn.0050fa26
mov esi, ecx
cmp dword [esi + 0x1c], 0xffffffff
je 0x41ce3f
push dword [esi + 0x1c]
call fcn.00539b85
or dword [esi + 0x1c], 0xffffffff
pop ecx
mov eax, dword [esi + 0x28]
mov ecx, esi
dec eax
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0041bb67
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.0053100b
mov edi, dword [esi + 0x28]
sub edi, 2
pop ecx
js 0x41cec3
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.0041bb67
lea eax, [edi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0041bb67
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x28]
call fcn.00402a40
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00402a40
sub edi, 1
jns 0x41ce6d
mov ecx, esi
call fcn.0041cc54
lea ecx, [ebp - 0x58]
mov byte [esi + 0x5c], 0
call fcn.00402a40
call fcn.0050f9d0
ret

Function at 0x41d6d1
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x41ef0d
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor edx, edx
push 2
pop ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, ebx
cmp ax, dx
jne 0x41ef1f
sub edi, ecx
xor ecx, ecx
sar edi, 1
lea esi, [edi + 1]
mov eax, esi
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0050f540
lea ecx, [edi*2 + 2]
mov ebx, eax
push ecx
push 0
push ebx
call fcn.00528630
push dword [ebp + 8]
push esi
push ebx
call fcn.0052dc93
add esp, 0x1c
mov byte [ebp - 1], 1
xor esi, esi
test edi, edi
js 0x41efa4
push 0x5c
pop eax
cmp word [ebx + esi*2], ax
jne 0x41ef99
xor eax, eax
push ebx
mov word [ebx + esi*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41ef92
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x41efa0
push 0x5c
pop eax
mov word [ebx + esi*2], ax
inc esi
cmp esi, edi
jle 0x41ef6f
jmp 0x41efa4
mov byte [ebp - 1], 0
push ebx
call fcn.0050eec3
mov al, byte [ebp - 1]
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41efb3
Capabilities:
Get disk information

Disassembly:
push 0x3c
mov eax, 0x6252f8
call fcn.0050fa26
mov edi, dword [ebp + 8]
xor ebx, ebx
push 7
pop ecx
xor eax, eax
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ecx
mov word [ebp - 0x28], ax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x40], ax
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 1
test eax, eax
je 0x41f09a
movzx eax, word [eax]
lea ecx, [ebp - 0x40]
push eax
call fcn.0041eee6
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x41f09a
lea esi, [eax + 1]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0050f540
push esi
mov ebx, eax
push 0
push ebx
call fcn.0040a860
add esp, 0x10
push ebx
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x41f093
xor eax, eax
mov esi, ebx
mov word [ebp - 0x42], ax
movzx eax, word [ebx]
cmp dword [ebp - 0x2c], 8
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push 2
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0052dcfc
add esp, 0xc
test eax, eax
je 0x41f088
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x41f073
movzx eax, word [esi]
test ax, ax
je 0x41f093
jmp 0x41f051
push dword [ebp - 0x44]
lea ecx, [ebp - 0x28]
call fcn.0041eee6
push ebx
call fcn.0050eec3
pop ecx
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00402ae0
lea ecx, [ebp - 0x40]
call fcn.00402a40
lea ecx, [ebp - 0x28]
call fcn.00402a40
mov eax, edi
call fcn.0050f9d0
ret
Function at 0x41f0bd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6b94f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], esi
push edi
push eax
call fcn.00528630
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
add esp, 0xc
or ecx, 0x8000
cmp byte [ebp + 0x10], 0
cmove ecx, dword [ebp + 0xc]
push eax
push edi
push edi
push ecx
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, esi
test eax, eax
je 0x41f11d
push edi
jmp 0x41f124
lea eax, [ebp - 0x20c]
push eax
call fcn.00402b20
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0050eeb2
leave
ret

Function at 0x41f281
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x6b94f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41f2b0
push 2
pop eax
jmp 0x41f335
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.0041f139
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.00528630
add esp, 0x14
mov dword [ebp - 0x58], edi
test ebx, ebx
mov dword [ebp - 0x48], esi
mov ecx, str.open
mov dword [ebp - 0x54], 0x40
mov eax, 0x62c5f8
cmove eax, ecx
cmp dword [ebp - 8], 8
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
and dword [ebp - 0x40], 0
and dword [ebp - 0x3c], 0
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x20], 0
mov esi, eax
je 0x41f32b
cmp dword [ebp + 0x10], 0
je 0x41f32b
push dword [ebp + 0x14]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x1c]
call fcn.00402a40
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050eeb2
leave
ret
Function at 0x420691
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push ebx
push edi
je 0x420741
cmp dword [ebp + 0xc], 0
je 0x420741
push 0
push 0x80
push 3
push 0
push 5
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4206d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x420744
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 8], edi
cmp edi, 0xffffffff
je 0x4206ce
jb 0x4206f2
push 8
pop eax
jmp 0x420744
push esi
mov esi, eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4206fe
mov dword [eax], edi
inc esi
push esi
call fcn.0050f540
mov ecx, dword [ebp + 0xc]
push esi
xor esi, esi
push esi
push eax
mov dword [ecx], eax
call fcn.00528630
add esp, 0x10
mov dword [ebp + 8], esi
lea eax, [ebp + 8]
push esi
push eax
mov eax, dword [ebp + 0xc]
push edi
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop esi
test eax, eax
je 0x4206ce
cmp dword [ebp + 8], edi
jne 0x420741
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x420744
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret

Function at 0x420748
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
push ebx
xor ebx, ebx
push edi
mov edi, ebx
cmp dword [eax + 0x10], ebx
je 0x420859
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x10], ebx
je 0x420858
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x420777
mov eax, dword [esi]
lea ecx, [ebp - 0xc]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
test eax, eax
je 0x420858
push 0x6c598c
push eax
call fcn.0050f767
mov dword [ebp - 4], eax
pop ecx
pop ecx
test eax, eax
je 0x420858
cmp dword [esi + 0x14], 0x10
jb 0x4207ac
mov esi, dword [esi]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push esi
call sub.VERSION.dll_GetFileVersionInfoA
mov esi, dword [ebp - 4]
test eax, eax
je 0x420846
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x420846
mov eax, dword [ebp - 0x10]
push 0x6c598c
push 0x80
movzx ecx, word [eax]
movzx eax, word [eax + 2]
shl ecx, 0x10
or ecx, eax
mov dword [ebp - 8], ecx
call fcn.0050f767
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x420846
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x42080f
mov eax, dword [eax]
push eax
push dword [ebp - 8]
push str.StringFileInfo_08lx_s
push 0x80
push edi
call fcn.00418e7b
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x420844
push dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
call fcn.00408b20
mov bl, 1
push esi
call fcn.0050eec3
pop ecx
test edi, edi
je 0x420858
push edi
call fcn.0050eec3
pop ecx
pop esi
pop edi
mov al, bl
pop ebx
leave
ret
Function at 0x420877
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
test eax, eax
je 0x4208da
xor edi, edi
cmp word [eax], di
je 0x4208da
push edi
push 0x80
push 2
push edi
push edi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4208b0
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4208cf
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4208dd
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret
Function at 0x421452
Capabilities:
Check if file exists
Get system information on windows

Disassembly:
push 0x70
mov eax, 0x625948
call fcn.0050fa26
xor esi, esi
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], esi
mov word [ebp - 0x28], ax
push 0x62bbd8
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00406420
push 8
pop ebx
cmp dword [ebp + 0x1c], ebx
lea eax, [ebp + 8]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
lea ecx, [ebp - 0x28]
push eax
call fcn.00408960
cmp dword [ebp - 0x14], ebx
lea eax, [ebp - 0x28]
push str.DisplayIcon
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push reloc.gdiplus.dll_Ordinal_1
push eax
call fcn.00422fbd
add esp, 0x10
cmp dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x40]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x40]
push eax
mov byte [ebp - 4], 2
call edi
test eax, eax
jne 0x4215f6
cmp dword [ebp - 0x14], ebx
lea eax, [ebp - 0x28]
push str.DisplayIcon
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.00422fbd
add esp, 0x10
lea ecx, [ebp - 0x40]
push eax
call fcn.00402aa0
lea ecx, [ebp - 0x58]
call fcn.00402a40
cmp dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call edi
test eax, eax
jne 0x4215f6
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp dword [ebp - 0x64], 0x21d8
jne 0x4215f9
cmp dword [ebp - 0x14], ebx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], esi
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
push 0x62ca30
mov word [eax], cx
lea ecx, [ebp - 0x28]
call fcn.00406420
cmp dword [ebp + 0x1c], ebx
lea eax, [ebp + 8]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
lea ecx, [ebp - 0x28]
push eax
call fcn.00408960
cmp dword [ebp - 0x14], ebx
lea eax, [ebp - 0x28]
push str.DisplayIcon
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push reloc.gdiplus.dll_Ordinal_1
push eax
call fcn.00422fbd
add esp, 0x10
lea ecx, [ebp - 0x40]
push eax
call fcn.00402aa0
lea ecx, [ebp - 0x58]
call fcn.00402a40
cmp dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call edi
test eax, eax
jne 0x4215f6
cmp dword [ebp - 0x14], ebx
lea eax, [ebp - 0x28]
push str.DisplayIcon
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.00422fbd
add esp, 0x10
lea ecx, [ebp - 0x40]
push eax
call fcn.00402aa0
lea ecx, [ebp - 0x58]
call fcn.00402a40
cmp dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call edi
test eax, eax
je 0x4215f9
xor esi, esi
inc esi
lea ecx, [ebp - 0x40]
call fcn.00402a40
lea ecx, [ebp - 0x28]
call fcn.00402a40
lea ecx, [ebp + 8]
call fcn.00402a40
mov eax, esi
call fcn.0050f9d0
ret 0x18
Function at 0x42169b
Capabilities:
Check mutex on windows

Disassembly:
push 0x1c
mov eax, 0x625975
call fcn.0050f9f2
mov esi, ecx
lea ecx, [ebp - 0x28]
call fcn.004251f9
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00425212
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0xc
call fcn.0042520e
push dword [ebp + 8]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
lea ecx, [ebp - 0x28]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 4], eax
call fcn.00425209
call fcn.0050f9bb
ret 4