joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b900
Capabilities:
Copy file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x468738]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x414]
push ecx
push 0x104
mov esi, edx
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [ebp - 0x20c]
push edx
push 0
push 0x45a440
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
lea ecx, [ebp - 0x20c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push 0
push 3
push 0
push 1
push 0x20000
lea edx, [ebp - 0x20c]
push edx
mov dword [esi], 0
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41b9b6
push esi
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x420]
lea eax, [ebp - 0x418]
push eax
push 0
lea ecx, [ebp - 0x41c]
push ecx
push 0
push 0
push 4
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
jne 0x41ba23
push str.____Transfering_source_file_security
push 0x4699dc
call fcn.0042c820
mov edx, dword [ebp - 0x41c]
add esp, 8
push 0
push edx
push 0
push 0
push SysStringLen
push 1
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x41ba23
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 5
push esi
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea edx, [ebp - 0x20c]
push edx
push str.____Source:__s
push 0x4699dc
xor eax, eax
call fcn.0042c820
push esi
push str.____Destination:__s
push 0x4699dc
xor eax, eax
call fcn.0042c820
mov ecx, dword [ebp - 4]
add esp, 0x18
pop edi
xor ecx, ebp
pop esi
call fcn.004377d1
mov esp, ebp
pop ebp
ret 4
Function at 0x41c1b0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f636
mov eax, dword fs:[0]
push eax
sub esp, 0xa54
mov eax, dword [0x468738]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa60], ecx
mov dword [ebp - 0xa5c], edx
xor ecx, ecx
xor edx, edx
or ebx, 0xffffffff
mov dword [ebp - 0xa58], 0x400
mov dword [ebp - 0xa20], 7
mov dword [ebp - 0xa24], ecx
mov word [ebp - 0xa34], dx
mov dword [ebp - 4], ecx
cmp byte [eax + 0x42], dl
je 0x41c36c
add eax, 0x1c
push str.Uninstall
push eax
lea eax, [ebp - 0xa50]
push eax
call fcn.0040ea20
add esp, 0xc
mov edi, eax
lea esi, [ebp - 0xa34]
mov byte [ebp - 4], 1
call fcn.00404060
mov esi, 8
mov byte [ebp - 4], 0
cmp dword [ebp - 0xa3c], esi
jb 0x41c26a
mov ecx, dword [ebp - 0xa50]
push ecx
call fcn.00438b5b
add esp, 4
mov eax, dword [ebp - 0xa34]
cmp dword [ebp - 0xa20], esi
jae 0x41c27e
lea eax, [ebp - 0xa34]
push 0
lea edx, [ebp - 0xa54]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea esp, [esp]
mov eax, dword [ebp - 0xa60]
inc ebx
push ebx
push eax
lea ecx, [ebp - 0x218]
push str._s_d
push ecx
call esi
mov eax, dword [ebp - 0xa54]
add esp, 0x10
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x218]
push edx
push eax
call edi
cmp eax, 2
jne 0x41c2b0
mov ebx, dword [ebp - 0xa5c]
lea ecx, [ebp - 0xa18]
push ecx
lea eax, [ebp - 0xa58]
call fcn.00436540
mov edx, dword [ebp - 0xa58]
add esp, 4
lea eax, [edx + edx]
push eax
mov eax, dword [ebp - 0xa54]
lea ecx, [ebp - 0xa18]
push ecx
push 7
push 0
lea edx, [ebp - 0x218]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x41c347
push eax
push str.Error_creating_uninstall_key_0x_X
push 0x4699dc
mov eax, 2
call fcn.0042c820
add esp, 0xc
mov ecx, dword [ebp - 0xa54]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xa20], 8
jb 0x41c36c
mov edx, dword [ebp - 0xa34]
push edx
call fcn.00438b5b
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004377d1
mov esp, ebp
pop ebp
ret 4
Function at 0x41f500
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44e568
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x468738]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp + 0x18]
push 0x456a7c
push eax
mov dword [ebp - 4], ebx
call fcn.00439385
add esp, 8
neg eax
sbb esi, esi
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x41f555
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], ebx
lea ebx, [ebp - 0x14]
lea eax, [esi + 1]
call fcn.0042ca30
test eax, eax
jne 0x41f58c
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 0xc]
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
or eax, 0xf003f
push eax
mov eax, dword [ebp + 8]
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
mov dword [ebp + 0x18], esi
test eax, eax
jne 0x41f6e8
mov ebx, dword [ebp + 0x10]
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41f5a1
sub eax, edx
sar eax, 1
je 0x41f6e8
push str._default_
push ebx
call fcn.00439385
add esp, 8
test eax, eax
jne 0x41f5cd
mov dword [ebp + 0x10], eax
mov ebx, eax
mov esi, dword [ebp + 0x14]
push 0x45af8c
push esi
call fcn.00439385
add esp, 8
test eax, eax
jne 0x41f5f3
push ebx
lea ecx, [ebp - 0x18]
push ecx
mov edx, edi
call fcn.0042cad0
jmp 0x41f6d8
push 0x45af94
push esi
call fcn.00439385
add esp, 8
test eax, eax
jne 0x41f616
push ebx
lea edx, [ebp - 0x18]
push edx
mov edx, edi
call fcn.0042cb20
jmp 0x41f6d8
push 0x45af9c
push esi
call fcn.00439385
add esp, 8
test eax, eax
jne 0x41f688
movzx eax, word [edi]
cmp eax, 0x78
jne 0x41f642
push 0x10
push 0
add edi, 2
push edi
call fcn.00439c97
add esp, 0xc
jmp 0x41f669
cmp eax, 0x30
jne 0x41f660
cmp word [edi + 2], 0x78
jne 0x41f660
push 0x10
push 0
add edi, 4
push edi
call fcn.00439c97
add esp, 0xc
jmp 0x41f669
push edi
call fcn.0043978b
add esp, 4
mov ecx, dword [ebp - 0x18]
push 4
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
inc eax
jmp 0x41f6d8
push 0x458fbc
push esi
call fcn.00439385
add esp, 8
test eax, eax
jne 0x41f6dc
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41f6a0
sub eax, edx
sar eax, 1
test al, 1
je 0x41f6cc
push str.Hex_string_should_be_even
push 0x4699dc
mov eax, 2
call fcn.0042c820
add esp, 8
jmp 0x41f6dc
push ebx
lea edx, [ebp - 0x18]
push edx
mov eax, edi
call fcn.0042cbf0
test eax, eax
jne 0x41f6e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x18], eax
mov esi, dword [ebp + 0x18]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41f6f6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x420240
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44e918
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x468738]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, 0xffff
mov edi, ecx
cmp ax, si
jne 0x420281
xor eax, eax
jmp 0x420407
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x4202ad
mov eax, dword [edi + 0x34]
mov edx, dword [eax]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x4202ad
dec dword [eax]
mov edi, dword [edi + 0x24]
mov eax, dword [edi]
lea ecx, [eax + 2]
mov dword [edi], ecx
mov word [eax], si
mov ax, si
jmp 0x420407
cmp dword [edi + 0x54], 0
je 0x420402
mov ecx, dword [edi + 0x10]
lea edx, [edi + 0x48]
cmp dword [ecx], edx
jne 0x4202d7
mov edx, dword [edi + 0x3c]
mov eax, dword [edi + 0x40]
mov dword [ecx], edx
mov ecx, dword [edi + 0x20]
mov dword [ecx], eax
mov edx, dword [edi + 0x30]
sub eax, eax
sar eax, 1
mov dword [edx], eax
cmp dword [edi + 0x44], 0
jne 0x420302
mov edi, dword [edi + 0x54]
push edi
push esi
call fcn.0043a97a
mov ecx, 0xffff
add esp, 8
cmp ax, cx
movzx eax, si
jne 0x420407
mov eax, ecx
jmp 0x420407
movzx edx, si
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x30], edx
call fcn.00420bc0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
lea ecx, [ecx]
mov edx, eax
cmp ebx, 0x10
jae 0x42032c
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
mov ebx, dword [ebp - 0x1c]
add ebx, edx
push ebx
push eax
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp - 0x2e]
push edx
mov edx, dword [esi + 0x14]
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 0x4c]
push eax
call edx
test eax, eax
js 0x4203fa
cmp eax, 1
jg 0x4203c2
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x42036e
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
sub esi, ecx
je 0x420397
cmp ebx, 0x10
jae 0x42037d
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0043af79
add esp, 0x10
cmp esi, eax
jne 0x4203fa
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x30]
mov byte [edi + 0x4a], 1
cmp dword [ebp - 0x38], edx
jne 0x4203ec
test esi, esi
jne 0x420320
cmp dword [ebp - 0x1c], 0x20
jae 0x4203fa
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.0040e590
jmp 0x420317
cmp eax, 3
jne 0x4203fa
mov eax, dword [edi + 0x54]
mov ecx, dword [ebp - 0x30]
call fcn.00423490
movzx esi, word [ebp + 8]
test al, al
jne 0x4203df
mov esi, 0xffff
lea ecx, [ebp - 0x2c]
call fcn.00410c50
mov ax, si
jmp 0x420407
lea ecx, [ebp - 0x2c]
call fcn.00410c50
mov ax, word [ebp + 8]
jmp 0x420407
lea ecx, [ebp - 0x2c]
call fcn.00410c50
mov eax, 0xffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004377d1
mov esp, ebp
pop ebp
ret 4
Function at 0x420e00
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44e628
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x468738]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x54], 0
jne 0x420ef6
mov eax, dword [ebp + 8]
push 0x40
push 2
push eax
call fcn.00437729
add esp, 0xc
test eax, eax
je 0x420ef6
lea edx, [esi + 0x18]
mov dword [esi + 0x20], edx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov byte [esi + 0x50], 1
mov byte [esi + 0x4a], 0
lea ecx, [esi + 8]
mov dword [esi + 0x10], ecx
lea edx, [esi + 0x28]
mov dword [esi + 0x30], edx
lea ecx, [esi + 0xc]
mov dword [esi + 0x14], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [ecx], 0
mov ecx, dword [esi + 0x24]
mov dword [ecx], 0
mov edx, dword [esi + 0x34]
mov dword [edx], 0
mov ecx, dword [esi + 0x10]
mov dword [ecx], 0
mov edx, dword [esi + 0x20]
mov dword [edx], 0
mov ecx, dword [esi + 0x30]
mov edx, dword [0x46bad0]
mov dword [ecx], 0
mov dword [esi + 0x54], eax
lea edi, [ebp + 8]
mov eax, esi
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], 0
call fcn.004211b0
mov edi, eax
mov dword [ebp - 4], 0
call fcn.004221b0
mov edi, eax
call fcn.004210d0
lea ecx, [ebp + 8]
call fcn.00405f90
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x420fa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ed98
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x468738]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [edi + 0x44], 0
je 0x4210b3
cmp byte [edi + 0x4a], 0
je 0x4210b3
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffff
mov ecx, edi
call edx
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
je 0x4210a7
lea esi, [ebp - 0x2c]
call fcn.00420bc0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x42101e
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
mov edx, dword [esi + 0x18]
push eax
lea eax, [edi + 0x4c]
push eax
call edx
sub eax, 0
je 0x421047
dec eax
je 0x42104b
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x4210a2
jmp 0x4210ae
mov byte [edi + 0x4a], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x42105b
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x421084
cmp ebx, 0x10
jae 0x42106a
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0043af79
add esp, 0x10
cmp esi, eax
jne 0x42109f
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x4a], 0
je 0x4210ab
test esi, esi
jne 0x421012
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.0040e590
jmp 0x42100c
lea ecx, [ebp - 0x2c]
call fcn.00410c50
xor al, al
jmp 0x4210b5
lea ecx, [ebp - 0x2c]
call fcn.00410c50
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004377d1
mov esp, ebp
pop ebp
ret
Function at 0x423e00
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x423e41
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp eax, 0x989680
jbe 0x423e48
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
lea ebx, [eax + 2]
push esi
push ebx
call fcn.00437657
push ebx
mov esi, eax
push 0
push esi
call fcn.00443560
mov edx, dword [ebp - 4]
add esp, 0x10
push 0
lea ecx, [ebp - 8]
push ecx
push edx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x423e80
mov ecx, dword [ebp + 8]
sub eax, edx
push eax
push esi
call fcn.00410830
push esi
call fcn.00439cb1
add esp, 4
pop esi
pop ebx
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x423eb0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x423ede
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0x989680
jbe 0x423f01
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 2]
push edi
push eax
call fcn.00437657
mov edi, eax
lea eax, [esi + 2]
push eax
push 0
push edi
mov dword [ebp - 8], edi
call fcn.00443560
add esp, 0x10
push 0
lea ecx, [ebp - 0xc]
push ecx
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xfe
jbe 0x423f44
mov esi, 0xfe
jmp 0x423f47
and esi, 0xfffffffe
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_IsTextUnicode]
test eax, eax
je 0x423f95
cmp byte [edi], 0xff
jne 0x423f71
cmp byte [edi + 1], 0xfe
jne 0x423f71
mov edx, dword [ebp + 8]
lea eax, [edi + 2]
push edx
call fcn.00402560
jmp 0x42402b
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x423f76
mov esi, dword [ebp + 8]
sub eax, edx
sar eax, 1
push eax
mov eax, edi
call fcn.004065a0
jmp 0x42402b
cmp byte [edi], 0xef
mov dword [ebp - 4], edi
jne 0x423faf
cmp byte [edi + 1], 0xbb
jne 0x423faf
cmp byte [edi + 2], 0xbf
jne 0x423faf
add edi, 3
mov dword [ebp - 4], edi
mov eax, dword [ebp - 4]
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
xor ecx, ecx
lea ebx, [esi + 2]
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00437657
push ebx
mov edi, eax
push 0
push edi
call fcn.00443560
mov eax, dword [ebp - 4]
add esp, 0x10
push esi
push edi
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x424005
mov esi, dword [ebp + 8]
sub eax, edx
sar eax, 1
push eax
mov eax, edi
call fcn.004065a0
push edi
call fcn.00439cb1
mov edi, dword [ebp - 8]
add esp, 4
push edi
call fcn.00439cb1
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4244b0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x468738]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
test ebx, ebx
jne 0x4244e5
push 0x208
lea eax, [ebp - 0x210]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ebx, [ebp - 0x210]
lea ecx, [ebp - 0x218]
push ecx
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
jne 0x42450c
xor edx, edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004377d1
mov esp, ebp
pop ebp
ret
push edi
call fcn.00437657
add esp, 4
mov esi, eax
push esi
push edi
push 0
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x214]
push eax
push 0x4566d8
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov eax, dword [ebp - 0x214]
mov ebx, dword [eax + 8]
xor edx, edx
xor edi, edi
or edi, dword [eax + 0xc]
push esi
or ebx, edx
call fcn.00439cb1
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, edi
pop edi
pop esi
mov edx, ebx
xor ecx, ebp
pop ebx
call fcn.004377d1
mov esp, ebp
pop ebp
ret
Function at 0x424570
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x670
mov eax, dword [0x468738]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
lea eax, [ebp - 0x41c]
push 0x104
push eax
xor edi, edi
call fcn.004394c3
add esp, 0xc
push 0x4566d0
lea ecx, [ebp - 0x41c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x66c]
push edx
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x670], esi
cmp esi, 0xffffffff
jne 0x4245f0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004377d1
mov esp, ebp
pop ebp
ret
mov ecx, 0x4566dc
lea eax, [ebp - 0x640]
jmp 0x424600
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x424626
test dx, dx
je 0x424622
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x424626
add eax, 4
add ecx, 4
test dx, dx
jne 0x424600
xor eax, eax
jmp 0x42462b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4246c3
mov ecx, 0x4566e0
lea eax, [ebp - 0x640]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x424666
test dx, dx
je 0x424662
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x424666
add eax, 4
add ecx, 4
test dx, dx
jne 0x424640
xor eax, eax
jmp 0x42466b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4246c3
push ebx
lea ecx, [ebp - 0x214]
push 0x104
push ecx
call fcn.004394c3
add esp, 0xc
lea edx, [ebp - 0x640]
push edx
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test byte [ebp - 0x66c], 0x10
je 0x4246b2
lea ecx, [ebp - 0x214]
push ecx
call fcn.00424570
add esp, 4
jmp 0x4246c3
lea esi, [ebp - 0x214]
call fcn.00424f80
mov esi, dword [ebp - 0x670]
lea edx, [ebp - 0x66c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4246e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x4246ea
cmp edi, 0x12
jne 0x4245f0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004377d1
mov esp, ebp
pop ebp
ret
Function at 0x424960
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x678
mov eax, dword [0x468738]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push eax
mov dword [ebp - 0x678], eax
lea eax, [ebp - 0x41c]
push 0x104
push eax
mov esi, ecx
mov dword [ebp - 0x674], ebx
xor edi, edi
call fcn.004394c3
add esp, 0xc
lea ecx, [ebp - 0x41c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push ebx
lea edx, [ebp - 0x41c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x66c]
push eax
lea ecx, [ebp - 0x41c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x670], eax
cmp eax, 0xffffffff
jne 0x4249f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004377d1
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [ebp + 0x10]
jmp 0x424a00
mov ecx, 0x4566dc
lea eax, [ebp - 0x640]
jmp 0x424a10
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x424a36
test dx, dx
je 0x424a32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x424a36
add eax, 4
add ecx, 4
test dx, dx
jne 0x424a10
xor eax, eax
jmp 0x424a3b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x424aef
mov ecx, 0x4566e0
lea eax, [ebp - 0x640]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x424a76
test dx, dx
je 0x424a72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x424a76
add eax, 4
add ecx, 4
test dx, dx
jne 0x424a50
xor eax, eax
jmp 0x424a7b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x424aef
mov edx, dword [ebp - 0x678]
push edx
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.004394c3
add esp, 0xc
lea ecx, [ebp - 0x640]
push ecx
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test byte [ebp - 0x66c], 0x10
push ebx
lea ecx, [ebp - 0x214]
je 0x424ade
mov eax, dword [ebp - 0x674]
push eax
push ecx
mov ecx, esi
call fcn.00424960
mov edx, dword [esi]
mov edx, dword [edx + 4]
mov edi, eax
push ebx
lea eax, [ebp - 0x214]
push eax
jmp 0x424ae3
mov eax, dword [esi]
mov edx, dword [eax]
push ecx
mov ecx, esi
call edx
test al, al
jne 0x424b49
test edi, edi
jne 0x424b1b
mov ecx, dword [ebp - 0x670]
lea eax, [ebp - 0x66c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x424a00
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x424a00
cmp edi, 0x12
je 0x424b25
cmp edi, 3
jne 0x424b27
xor edi, edi
mov edx, dword [ebp - 0x670]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004377d1
mov esp, ebp
pop ebp
ret 0xc
mov edi, 0x4c7
jmp 0x424b27