joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c65d4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
xor esi, esi
mov dword [ebp - 4], ecx
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 8], esi
cmp dword [ecx + 0x28], esi
je 0x4c663b
cmp edi, 0x40000
jb 0x4c663b
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x10]
movlpd qword [ebp - 0x10], xmm0
push eax
push esi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x28], 0x5b5070
push dword [ebp + 8]
movlpd qword [ebp - 0x20], xmm0
push dword [ecx + 0x20]
call fcn.004c5972
mov edx, dword [ebp + 0x18]
mov esi, eax
mov ecx, dword [ebp - 0x10]
add dword [edx], ecx
jmp 0x4c6723
mov edx, dword [ebp + 0xc]
mov eax, 0x10000
push ebx
mov ebx, eax
mov dword [ebp - 0xc], edx
cmp edi, eax
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 8]
cmovb ebx, edi
mov dword [ebp + 0x14], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], esi
cmp dword [eax + 4], esi
je 0x4c6677
mov ecx, eax
call fcn.004cab68
mov ecx, dword [ebp - 4]
mov esi, eax
test esi, esi
js 0x4c6722
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ecx + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x28], 0
je 0x4c66c9
test eax, eax
jne 0x4c66e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4c66cd
push 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
push dword [eax + 0x20]
call fcn.004cb33d
add esp, 0x10
movzx eax, al
test eax, eax
jne 0x4c66e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jne 0x4c6722
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
add dword [ecx], eax
add dword [ebp + 0x14], eax
adc edx, 0
add dword [ebp + 0x10], eax
mov dword [ebp - 0xc], edx
sub edi, eax
je 0x4c6722
cmp ebx, eax
jne 0x4c671d
mov ecx, dword [ebp - 4]
mov eax, 0x10000
cmp edi, eax
mov ebx, eax
mov eax, dword [ebp + 0x14]
cmovb ebx, edi
xor esi, esi
jmp 0x4c665a
mov esi, 0x8000ffff
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4cb35c
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x62485c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x210], eax
test edi, edi
jg 0x4cb38f
xor eax, eax
jmp 0x4cb437
cmp esi, ebx
je 0x4cb398
xor ecx, ecx
mov word [esi], cx
cmp edi, 0x104
jl 0x4cb3b1
push esi
push dword [ebp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
jmp 0x4cb437
xor eax, eax
push 0x208
push eax
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0050e5e3
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x210]
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ebx, eax
test ebx, ebx
je 0x4cb435
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x214]
jne 0x4cb3f4
sub ecx, edx
sar ecx, 1
cmp ecx, edi
jl 0x4cb427
push 0x3ca797
call fcn.004114d9
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4cb388
push edi
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.00416be3
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050b568
mov esp, ebp
pop ebp
ret 0x14

Function at 0x4cb60b
Capabilities:
Create directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jg 0x4cb627
xor ecx, ecx
mov dword [0], 1
int 0x29
mov ebx, dword [ebp + 8]
xor eax, eax
push edi
push ebx
mov word [ebx], ax
call fcn.004cb79e
pop ecx
pop ecx
test al, al
jne 0x4cb643
xor eax, eax
jmp 0x4cb712
call fcn.00416ed9
test eax, eax
je 0x4cb654
xor eax, eax
inc eax
jmp 0x4cb712
push esi
push ebx
call fcn.00412849
mov esi, eax
mov dword [ebp + 8], eax
test esi, esi
jle 0x4cb619
push 0x5c
pop eax
cmp word [ebx + esi*2 - 2], ax
je 0x4cb67a
cmp esi, edi
je 0x4cb6c0
mov word [ebx + esi*2], ax
inc esi
mov dword [ebp + 8], esi
and dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 4], 0xc
push eax
call fcn.004cb59c
mov eax, dword [ebp + 0xc]
and dword [ebp + 0xc], 0
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
lea eax, [ebp - 4]
push eax
call fcn.00419fc7
cmp dword [ebp + 0xc], edi
jle 0x4cb6c4
xor eax, eax
jmp 0x4cb711
push 6
lea edi, [ebx + esi*2]
mov esi, 0x5b53d8
pop ecx
rep movsd dword es:[edi], dword [esi]
push ebx
call fcn.004cb8b4
test eax, eax
jne 0x4cb6fc
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
call fcn.004cb5ce
or eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp + 8]
push 0x5c
pop ecx
mov word [ebx + eax*2 + 0x16], cx
xor ecx, ecx
mov word [ebx + eax*2 + 0x18], cx
xor eax, eax
inc eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4cb7eb
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x62485c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
push ebx
push esi
push edi
push 0x104
push ecx
push eax
call fcn.00416be3
mov edi, eax
push 0x5c
pop ebx
cmp bx, word [edi - 2]
jne 0x4cb829
add edi, 0xfffffffe
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x20c]
mov esi, edi
cmp edi, eax
jbe 0x4cb865
cmp bx, word [esi]
jne 0x4cb84f
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.004cb8b4
test eax, eax
jne 0x4cb85e
sub esi, 2
lea eax, [ebp - 0x20c]
cmp esi, eax
ja 0x4cb835
jmp 0x4cb861
mov word [esi], bx
cmp esi, edi
ja 0x4cb89a
xor eax, eax
cmp word [esi], ax
jne 0x4cb893
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4cb88e
lea eax, [ebp - 0x20c]
push eax
call fcn.004cb8b4
test eax, eax
je 0x4cb8b0
mov word [esi], bx
xor eax, eax
add esi, 2
cmp esi, edi
jbe 0x4cb867
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050b568
mov esp, ebp
pop ebp
ret 4
xor eax, eax
jmp 0x4cb89d

Function at 0x4cb8d3
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x904
mov eax, dword [0x62485c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x904]
push edi
push 0x100
push 0
push eax
call fcn.0050e5e3
add esp, 0xc
lea eax, [ebp - 0x804]
xor edi, edi
push 0x400
push eax
push esi
call fcn.00416be3
push 0x5c
pop esi
lea eax, [ebp - 0x804]
push esi
push eax
call fcn.0050e72d
pop ecx
pop ecx
test eax, eax
je 0x4cb938
xor ecx, ecx
mov dword [ebp + edi*4 - 0x904], eax
mov word [eax], cx
inc edi
cmp edi, 0x40
jge 0x4cb97b
test eax, eax
je 0x4cb971
lea eax, [ebp - 0x804]
push eax
call fcn.004cb5ce
test eax, eax
js 0x4cb918
jmp 0x4cb971
mov eax, dword [ebp + edi*4 - 0x908]
dec edi
push 0
mov word [eax], si
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4cb97b
cmp edi, 1
jg 0x4cb953
xor eax, eax
inc eax
jmp 0x4cb97d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0050b568
mov esp, ebp
pop ebp
ret 4
Function at 0x4cbc5a
Capabilities:
Get common file path

Disassembly:
push 4
mov eax, 0x55f16d
call fcn.0050b611
cmp dword [ebp + 0xc], 0x104
jge 0x4cbc7d
xor ecx, ecx
mov dword [0], 1
int 0x29
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, dword [ebp + 0x10]
mov word [edi], ax
test esi, esi
js 0x4cbc6f
cmp esi, 0x1a
je 0x4cbcb9
cmp esi, 0x1c
je 0x4cbcb9
cmp esi, 0x23
je 0x4cbcb9
cmp esi, 5
je 0x4cbcb9
cmp esi, 0x27
je 0x4cbcb9
cmp esi, 6
je 0x4cbcb9
cmp esi, 0x10
je 0x4cbcb9
push 0x3ca4d6
call fcn.004114d9
push dword [ebp + 0xc]
xor ebx, ebx
mov ecx, 0x63ca70
push edi
push esi
mov dword [ebp - 4], ebx
call fcn.004cbb4f
test eax, eax
je 0x4cbd28
cmp eax, 2
je 0x4cbd23
or dword [ebp - 4], 0xffffffff
mov ecx, esi
push edi
or ecx, 0x8000
mov eax, esi
cmp byte [ebp + 0x14], bl
push ebx
push ebx
cmovne eax, ecx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, eax
test ebx, ebx
jns 0x4cbcff
mov eax, ebx
jmp 0x4cbd28
push dword [ebp + 0xc]
push edi
call fcn.004c3ed5
push edi
push esi
mov ecx, 0x63ca70
mov dword [ebp - 4], 2
call fcn.004cbafe
jmp 0x4cbcfb
mov eax, 0x80004005
call fcn.0050b577
ret

Function at 0x4cd102
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
test edx, edx
jne 0x4cd111
or eax, 0xffffffff
jmp 0x4cd14e
movzx eax, word [edx]
mov ecx, 0x1505
push esi
xor esi, esi
jmp 0x4cd12b
imul ecx, ecx, 0x21
movzx eax, ax
xor ecx, eax
inc esi
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x4cd11e
imul eax, ecx, 0x41c64e6d
imul ecx, ecx, 0x10dcd
pop esi
add eax, 0x3039
shr eax, 0x10
inc ecx
and ecx, 0xffff0000
or eax, ecx
pop ebp
ret 4

Function at 0x4ce511
Capabilities:
Encrypt data using rc4 prga
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
test edx, edx
jne 0x4ce520
or eax, 0xffffffff
jmp 0x4ce571
movzx eax, word [edx]
mov ecx, 0x1505
push esi
xor esi, esi
jmp 0x4ce54e
cmp ax, 0x41
jb 0x4ce541
cmp ax, 0x5a
ja 0x4ce541
movzx eax, ax
add eax, 0x20
jmp 0x4ce544
movzx eax, ax
imul ecx, ecx, 0x21
xor ecx, eax
inc esi
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x4ce52d
imul eax, ecx, 0x41c64e6d
imul ecx, ecx, 0x10dcd
pop esi
add eax, 0x3039
shr eax, 0x10
inc ecx
and ecx, 0xffff0000
or eax, ecx
pop ebp
ret 4

Function at 0x4cef7e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
add eax, eax
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
push 0
push 2
push str.office.odf
push str.SoftwareMicrosoftOffice16.0CommonFilesPaths
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
neg eax
sbb eax, eax
inc eax
pop ebp
ret 8
Function at 0x4e2290
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x594
mov eax, dword [0x62485c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
call fcn.0050e5e3
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push dword [ebp + 8]
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, 0x80070057
je 0x4e2307
lea eax, [ebp - 0x20c]
push eax
call fcn.0040701e
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00406c8c
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0050b568
mov esp, ebp
pop ebp
ret 8
push str.Invalid_csidl_is_passed_to_SHGetFolerPath
push 0x1d
lea ecx, [ebp - 0x594]
call fcn.004e1ea4
push 0x5e5eac
lea eax, [ebp - 0x594]
push eax
call fcn.0050ce64
int3

Function at 0x4e3021
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x390
mov eax, dword [0x62485c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, 0x101
push 0
push eax
mov ecx, esi
mov dword [ebp - 0x390], eax
call fcn.0040efbe
cmp dword [esi + 0x14], 8
jb 0x4e3057
mov eax, dword [esi]
jmp 0x4e3059
mov eax, esi
lea ecx, [ebp - 0x390]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x4e308b
push 0
push dword [ebp - 0x390]
mov ecx, esi
call fcn.0040efbe
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0050b568
mov esp, ebp
pop ebp
ret 4
push str.Failed_to_get_current_computername.
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf
lea ecx, [ebp - 0x38c]
call fcn.004ab4e5
push 0x5e5eac
lea eax, [ebp - 0x38c]
push eax
call fcn.0050ce64
int3
Function at 0x4e3c3f
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x644
mov eax, 0x560fed
call fcn.0050b5da
mov eax, dword [ebp + 0x14]
xor esi, esi
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push 7
mov dword [ebp - 0x64c], eax
xor eax, eax
pop edx
mov dword [ebp - 0x650], ecx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x48], esi
mov word [ebp - 0x58], ax
mov dword [ebp - 4], esi
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], esi
mov word [ebp - 0x40], ax
mov edi, dword [ebp + 0x10]
mov byte [ebp - 4], 1
test edi, edi
jne 0x4e3c9d
push esi
push 1
lea ecx, [ebp - 0x40]
call fcn.004069fb
push esi
jmp 0x4e3df9
lea eax, [ebp - 0x58]
push eax
push ecx
push ebx
call fcn.00405b26
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x2c0]
push esi
push esi
push esi
push ecx
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4e3e0b
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x28]
call fcn.00405753
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
call fcn.00405b26
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004069fb
mov ecx, dword [ebp - 0x64c]
lea eax, [ebp - 0x40]
push eax
call fcn.0040ef35
lea eax, [ebp - 0x2c0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4e3d79
mov edi, dword [ebp - 0x64c]
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x28]
call fcn.00405753
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
call fcn.00405b26
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004069fb
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.0040ef35
lea eax, [ebp - 0x2c0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4e3d28
mov edi, dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
sub edi, 1
je 0x4e3deb
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
push 0x5c38fc
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 4
call fcn.00405753
push eax
push ebx
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 5
push eax
call fcn.004e3e48
push esi
push 1
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 4
call fcn.004069fb
mov esi, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], esi
je 0x4e3de3
mov ebx, dword [ebp - 0x650]
push dword [ebp - 0x64c]
push edi
push ebx
push esi
call fcn.004e3c3f
add esi, 0x18
cmp esi, dword [ebp - 0x18]
jne 0x4e3dcd
lea ecx, [ebp - 0x1c]
call fcn.0040e777
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.004069fb
push 0
push 1
lea ecx, [ebp - 0x58]
call fcn.004069fb
call fcn.0050b58c
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4e3d80
cmp eax, 3
je 0x4e3d80
push str.file_search_failed
push eax
push 0xf
lea ecx, [ebp - 0x648]
call fcn.004e359b
push 0x5e5eac
lea eax, [ebp - 0x648]
push eax
call fcn.0050ce64
int3
Function at 0x4e40bf
Capabilities:
Enumerate files on windows

Disassembly:
push 0x628
mov eax, 0x561045
call fcn.0050b5da
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
push esi
mov dword [ebp - 0x634], eax
call fcn.0040b528
test al, al
jne 0x4e410b
push esi
push str.GetFiles:_search_path__s_does_not_exist
push 0x22
lea ecx, [ebp - 0x630]
call fcn.004e368d
push 0x5e5eac
lea eax, [ebp - 0x630]
push eax
call fcn.0050ce64
push dword [ebp - 0x634]
push edi
push dword [edi + 4]
push dword [edi]
call fcn.00408f84
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 4], eax
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ecx
cmp eax, esi
je 0x4e4148
push 0xffffffffffffffff
push ecx
push esi
mov ecx, eax
call fcn.00406bf9
push 0x56a38c
lea ecx, [ebp - 0x40]
call fcn.00405753
push 1
push eax
push esi
mov byte [ebp - 4], 1
call fcn.00406071
mov bl, al
mov byte [ebp - 4], 0
push 0
neg bl
lea ecx, [ebp - 0x40]
push 1
sbb bl, bl
call fcn.004069fb
add bl, 1
je 0x4e41ab
push 0x56a38c
lea ecx, [ebp - 0x40]
call fcn.00405753
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00406a4d
push 0
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.004069fb
push 0xffffffffffffffff
push 0
push dword [ebp - 0x634]
lea ecx, [ebp - 0x28]
call fcn.00406a4d
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x2a8]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [ebp - 0x634], ebx
cmp ebx, 0xffffffff
jne 0x4e4213
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x4e42ee
cmp eax, 2
je 0x4e42ee
push str.GetFiles:_FindFirstFile_failed_with_unexpected_error
push eax
push 0xf
lea ecx, [ebp - 0x630]
call fcn.004e371c
jmp 0x4e40fa
test byte [ebp - 0x2a8], 0x10
jne 0x4e42d1
push esi
lea ecx, [ebp - 0x40]
call fcn.00405700
push 0x56a38c
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.00405753
push 1
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
call fcn.00406071
mov bl, al
mov byte [ebp - 4], 3
push 0
neg bl
lea ecx, [ebp - 0x58]
push 1
sbb bl, bl
call fcn.004069fb
add bl, 1
je 0x4e4293
push 0x56a38c
lea ecx, [ebp - 0x58]
call fcn.00405753
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.00406a4d
push 0
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.004069fb
lea eax, [ebp - 0x27c]
push eax
call fcn.0040701e
pop ecx
push eax
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x40]
call fcn.00406b56
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.0040ef35
push 0
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.004069fb
mov ebx, dword [ebp - 0x634]
lea eax, [ebp - 0x2a8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4e4213
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004069fb
call fcn.0050b58c
ret 0xc
Function at 0x4e47a9
Capabilities:
Copy file

Disassembly:
push 0x39c
mov eax, 0x561092
call fcn.0050b648
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3a4], edi
mov dword [ebp - 0x3a8], esi
cmp dword [esi + 0x14], 8
jb 0x4e47d4
mov eax, dword [esi]
jmp 0x4e47d6
mov eax, esi
cmp dword [edi + 0x14], 8
jb 0x4e47e0
mov ecx, dword [edi]
jmp 0x4e47e2
mov ecx, edi
xor edx, edx
cmp byte [ebp + 0x10], dl
sete dl
push edx
push eax
push ecx
mov dword [ebp - 0x3a0], edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4e4845
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 5
jne 0x4e4871
and dword [ebp - 4], 0
push 1
push 0x80
push esi
call fcn.0040d5a9
cmp dword [esi + 0x14], 8
jb 0x4e4825
mov ecx, dword [esi]
jmp 0x4e4827
mov ecx, esi
cmp dword [edi + 0x14], 8
jb 0x4e4831
mov eax, dword [edi]
jmp 0x4e4833
mov eax, edi
push dword [ebp - 0x3a0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4e486d
call fcn.0050b599
ret 0xc
or dword [ebp - 4], 0xffffffff
push esi
push edi
push str.Failed_to_copy_file_src:__s__dest:__s
call ebx
push eax
push 0xf
lea ecx, [ebp - 0x39c]
call fcn.004e4302
push 0x5e5eac
lea eax, [ebp - 0x39c]
push eax
call fcn.0050ce64
int3

Function at 0x4e491e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.004e2145
test al, al
je 0x4e4985
cmp dword [edi + 0x14], 8
jb 0x4e493e
mov eax, dword [edi]
jmp 0x4e4940
mov eax, edi
push ebx
lea ecx, [ebp - 4]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
jne 0x4e4955
xor al, al
jmp 0x4e4984
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
push ebx
call fcn.004529a7
mov eax, dword [esi + 4]
sub eax, dword [esi]
neg eax
sbb eax, eax
and eax, dword [esi]
cmp dword [edi + 0x14], 8
pop esi
jb 0x4e4975
mov edi, dword [edi]
push eax
push ebx
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
setne al
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x4e4a15
Capabilities:
Read file on windows

Disassembly:
push 0x738
mov eax, 0x5610ef
call fcn.0050b5da
mov edi, ecx
mov esi, dword [ebp + 8]
xor ecx, ecx
cmp dword [edi + 0x20], 0xffffffff
mov dword [ebp - 0x744], ecx
jne 0x4e4a5a
push str.trying_to_read_from_a_file_thats_not_open
push 0x15
lea ecx, [ebp - 0x738]
call fcn.0040f0fb
push 0x5e5eac
lea eax, [ebp - 0x738]
push eax
call fcn.0050ce64
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x28], ax
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x73c]
push ecx
push eax
push 2
lea eax, [ebp - 0x740]
mov dword [ebp - 4], ecx
push eax
push dword [edi + 0x20]
mov dword [ebp - 0x73c], ecx
call ebx
test eax, eax
je 0x4e4aea
push 0xa
pop ecx
cmp dword [ebp - 0x73c], 2
jne 0x4e4af7
mov eax, dword [ebp - 0x740]
cmp ax, cx
je 0x4e4af7
cmp ax, 0xd
je 0x4e4b18
mov ecx, 0xfeff
cmp ax, cx
je 0x4e4ac5
push eax
push 1
lea ecx, [ebp - 0x28]
call fcn.00406af3
and dword [ebp - 0x73c], 0
lea eax, [ebp - 0x73c]
push 0
push eax
push 2
lea eax, [ebp - 0x740]
push eax
push dword [edi + 0x20]
call ebx
push 0xa
pop ecx
test eax, eax
jne 0x4e4a96
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x26
jne 0x4e4b4e
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004056db
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004069fb
mov eax, esi
call fcn.0050b58c
ret 4
push 0
lea eax, [ebp - 0x73c]
push eax
push 2
lea eax, [ebp - 0x740]
push eax
push dword [edi + 0x20]
call ebx
test eax, eax
je 0x4e4aea
push 0xa
pop eax
cmp word [ebp - 0x740], ax
je 0x4e4af7
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
mov ecx, edi
call fcn.004e4b73
jmp 0x4e4af7
push str.read_from_file_failed
call edi
push eax
push 0xf
lea ecx, [ebp - 0x3b0]
call fcn.00411df7
push 0x5e5eac
lea eax, [ebp - 0x3b0]
jmp 0x4e4a54

Function at 0x4e5a06
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38c
mov eax, dword [0x62485c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x20], 0
je 0x4e5a90
cmp dword [eax + 0x10], 0
mov bl, byte [ebp + 0xc]
jne 0x4e5a4b
test bl, bl
je 0x4e5a4b
lea eax, [esi + 8]
push eax
push str.ORegistryKey.DeleteValue_failure:_Cannot_delete_registry_value_from_Registry_Key__s._The_Registry_value_is_null
push 0x1d
lea ecx, [ebp - 0x38c]
call fcn.004e557a
jmp 0x4e5aa2
cmp dword [eax + 0x14], 8
jb 0x4e5a53
mov eax, dword [eax]
push eax
push dword [esi + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4e5a7e
test bl, bl
je 0x4e5a7e
lea ecx, [esi + 8]
push ecx
push str.ORegistryKey.DeleteValue_failure:_Cannot_delete_registry_value_from_Registry_Key__s.
push eax
push 0xf
lea ecx, [ebp - 0x38c]
call fcn.004e50dd
jmp 0x4e5aa2
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0050b568
mov esp, ebp
pop ebp
ret 8
push str.ORegistryKey.DeleteValue_failure:_The_registry_key_is_closed_or_not_set
push 0x3a
lea ecx, [ebp - 0x38c]
call fcn.004e4d8b
push 0x5e5eac
lea eax, [ebp - 0x38c]
push eax
call fcn.0050ce64
int3