joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48a40f
Capabilities:
Check if file exists
Get common file path

Disassembly:
push 0x260
mov eax, 0x5e1f5f
call fcn.004c2889
push 0x208
xor esi, esi
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.0050b930
add esp, 0xc
cmp dword [ebp + 8], 0xffffffff
je 0x48a44d
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [ebp + 0xc]
lea ecx, [ebp - 0x26c]
call fcn.00404f90
push 0xfde9
lea edx, [ebp - 0x26c]
lea ecx, [ebp - 0x248]
call fcn.00419480
pop ecx
mov dword [ebp - 4], esi
lea eax, [ebp - 0x248]
cmp dword [ebp - 0x234], 8
cmovae eax, dword [ebp - 0x248]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00405040
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.004050d0
push 0x61ed1c
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 1
call fcn.004050d0
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x230]
lea ecx, [ebp - 0x260]
call fcn.0046cf87
pop ecx
push eax
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 3
call fcn.00405080
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 2
call fcn.00405040
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 1
call fcn.00405040
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x268]
lea esi, [ebp - 0x230]
mov byte [ebp - 0x261], 0x5c
cmovae esi, dword [ebp - 0x230]
lea ecx, [ebp - 0x230]
push eax
mov byte [ebp - 0x262], 0x2f
call fcn.004059f0
lea edx, [ebp - 0x261]
lea ecx, [ebp - 0x262]
push dword [eax]
push esi
call fcn.0046e4eb
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
pop ecx
cmovae eax, dword [ebp - 0x230]
pop ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [ebp - 0x230]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
inc bl
call fcn.00405040
mov al, bl
call fcn.004c2833
ret 8
Function at 0x492f65
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1024
call fcn.004c2fa0
mov eax, dword [0x64106c]
xor eax, esp
mov dword [esp + 0x1020], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
push esi
mov dword [esp + 0x14], esi
mov eax, dword [edi + 0x14]
mov ebx, dword [edi + 0xc]
sub ebx, dword [eax]
sub ebx, 0x10
sar ebx, 4
call fcn.00528cd9
pop ecx
mov ecx, edi
sub ebx, 1
jne 0x492fbf
push 1
mov edx, esi
call fcn.00492e4d
mov esi, dword [ebp + 8]
mov ebx, eax
pop ecx
inc esi
jmp 0x49313e
push str.too_many_arguments
lea edx, [ebx + 0x14]
call fcn.00487fb9
mov esi, dword [ebp + 8]
xor eax, eax
inc eax
mov dword [esp + 0x18], esi
pop ecx
mov dword [esp + 0xc], eax
dec ebx
test eax, eax
je 0x49313a
mov edx, esi
mov ecx, edi
call fcn.00486743
mov edx, esi
mov ecx, edi
cmp eax, 3
jne 0x493087
call fcn.004880e2
mov esi, eax
test esi, esi
jne 0x49303a
push dword [esp + 0x10]
call fcn.00513950
pop ecx
push dword [esp + 0x10]
mov esi, eax
push esi
call fcn.005140a9
pop ecx
pop ecx
mov edx, 0x61e4f8
mov ecx, edi
call fcn.00486a07
xor eax, eax
cmp esi, 0xffffffff
setne al
mov esi, dword [esp + 0x14]
jmp 0x493129
and dword [esp + 0x20], 0
lea eax, [esp + 0x28]
mov edx, esi
mov dword [esp + 0x24], edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0x1000
call fcn.00488256
push dword [esp + 0x10]
push esi
push 1
push eax
call fcn.005144b1
add esp, 0x10
lea ecx, [esp + 0x18]
mov esi, eax
add dword [esp + 0x20], esi
call fcn.004882f8
xor eax, eax
cmp eax, esi
sbb eax, eax
neg eax
jmp 0x493031
push 0
call fcn.0048803c
pop ecx
cmp byte [eax], 0x2a
jne 0x493095
inc eax
movsx eax, byte [eax]
sub eax, 0x4c
je 0x49311b
sub eax, 0x15
je 0x4930c2
sub eax, 0xb
je 0x4930be
dec eax
mov ecx, edi
sub eax, 1
jne 0x493186
mov edx, dword [esp + 0x10]
call fcn.00492c9f
jmp 0x493129
push 1
jmp 0x49311d
and dword [esp + 0x20], 0
lea eax, [esp + 0x28]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0x1000
mov edx, 0x1000
lea ecx, [esp + 0x18]
call fcn.00488256
push esi
push 0x1000
push 1
push eax
call fcn.005144b1
add dword [esp + 0x30], eax
add esp, 0x10
cmp eax, 0x1000
je 0x4930df
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x18]
call fcn.004882f8
xor eax, eax
inc eax
jmp 0x493129
push 0
mov edx, dword [esp + 0x14]
mov ecx, edi
call fcn.00492e4d
pop ecx
inc esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], esi
test ebx, ebx
jne 0x492fdb
mov ebx, dword [esp + 0xc]
push dword [esp + 0x10]
call fcn.005134ff
pop ecx
test eax, eax
je 0x49315a
push 0
xor edx, edx
mov ecx, edi
call fcn.00487d33
pop ecx
jmp 0x493171
test ebx, ebx
jne 0x49316c
add dword [edi + 0xc], 0xfffffff0
mov eax, dword [edi + 0xc]
and dword [eax + 8], ebx
add dword [edi + 0xc], 0x10
sub esi, dword [ebp + 8]
mov eax, esi
mov ecx, dword [esp + 0x102c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c2233
mov esp, ebp
pop ebp
ret
push str.invalid_format
mov edx, esi
call fcn.00487b6d
int3
Function at 0x4932de
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ecx + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ecx + 0xc]
sub esi, dword [eax]
sub esi, 0x10
mov dword [esp + 0xc], edx
push edi
sar esi, 4
mov dword [esp + 0xc], ecx
push 1
pop edi
sub esi, ebx
jne 0x493318
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xc]
mov edx, ebx
dec esi
call fcn.00486743
mov ecx, dword [esp + 0xc]
mov edx, ebx
cmp eax, 3
jne 0x49338b
call fcn.004864e2
mov ecx, dword [esp + 0xc]
mov edx, ebx
push 0
cmp dword [eax + 8], 0x13
jne 0x49334d
call fcn.00486858
pop ecx
push edx
push eax
push str._lld
jmp 0x49335d
call fcn.00486817
push ecx
movsd qword [esp], xmm0
push str._.14g
push dword [esp + 0x1c]
call fcn.00487794
add esp, 0x10
test edi, edi
je 0x493371
test eax, eax
jg 0x4933b3
xor edi, edi
inc ebx
test esi, esi
jne 0x493314
test edi, edi
jne 0x49330a
mov ecx, dword [esp + 0xc]
xor edx, edx
push edi
call fcn.00487d33
pop ecx
jmp 0x49330d
lea eax, [esp + 0x14]
push eax
call fcn.0048803c
pop ecx
test edi, edi
je 0x493371
push dword [esp + 0x10]
push dword [esp + 0x18]
push 1
push eax
call fcn.00513d4b
add esp, 0x10
cmp eax, dword [esp + 0x14]
jne 0x493371
xor edi, edi
inc edi
jmp 0x493373
Function at 0x496690
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
mov ebx, ecx
lea esi, [edx + 1]
push edi
mov dword [ebp - 0x24], ebx
xor edi, edi
nop word [eax + eax]
movzx edx, byte [esi - 1]
lea esi, [esi + 4]
movzx eax, byte [esi - 4]
shl edx, 8
or edx, eax
movzx eax, byte [esi - 3]
shl edx, 8
or edx, eax
movzx eax, byte [esi - 2]
shl edx, 8
or edx, eax
mov dword [ebp + edi*4 - 0x128], edx
inc edi
cmp edi, 0x10
jb 0x4966b0
cmp edi, 0x40
jae 0x49672f
mov ebx, 0x40
lea eax, [ebp + edi*4 - 0x130]
sub ebx, edi
mov edx, dword [eax]
lea eax, [eax + 4]
mov esi, dword [eax - 0x38]
mov edi, edx
mov ecx, edx
rol edi, 0xf
rol ecx, 0xd
xor edi, ecx
shr edx, 0xa
xor edi, edx
mov ecx, esi
mov edx, esi
ror ecx, 7
rol edx, 0xe
xor edx, ecx
shr esi, 3
xor edx, esi
add edi, edx
add edi, dword [eax - 0x3c]
add edi, dword [eax - 0x18]
mov dword [eax + 4], edi
sub ebx, 1
jne 0x4966f2
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx + 0x50]
xor edx, edx
mov dword [ebp - 0x28], eax
mov edi, eax
mov eax, dword [ebx + 0x54]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x58]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x5c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x60]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x64]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x68]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x6c]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edx
nop dword [eax]
mov esi, ebx
mov eax, ebx
rol eax, 7
mov ecx, ebx
ror esi, 0xb
not ecx
and ecx, dword [ebp - 0xc]
xor esi, eax
mov eax, ebx
ror eax, 6
xor esi, eax
mov eax, dword [ebp - 8]
and eax, ebx
xor ecx, eax
mov eax, edi
add esi, ecx
rol eax, 0xa
add esi, dword [edx + 0x619ca0]
add esi, dword [ebp + edx - 0x128]
mov edx, edi
add esi, dword [ebp - 0x1c]
ror edx, 0xd
xor edx, eax
mov eax, edi
ror eax, 2
xor edx, eax
mov eax, dword [ebp - 0x10]
mov ecx, eax
and eax, edi
xor ecx, edi
and ecx, dword [ebp - 4]
xor ecx, eax
mov eax, dword [ebp - 0xc]
add edx, ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
mov ecx, edi
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 0x14]
lea edi, [edx + esi]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x20]
add ebx, esi
mov eax, dword [ebp - 4]
add edx, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x20], edx
cmp edx, 0x100
jb 0x496770
mov eax, dword [ebp - 0x28]
add eax, edi
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x24]
pop edi
pop esi
add dword [ebx + 0x54], ecx
mov dword [ebx + 0x50], eax
mov eax, dword [ebp - 4]
add dword [ebx + 0x58], eax
mov eax, dword [ebp - 0x14]
add dword [ebx + 0x5c], eax
mov eax, dword [ebp - 0x18]
add dword [ebx + 0x60], eax
mov eax, dword [ebp - 8]
add dword [ebx + 0x64], eax
mov eax, dword [ebp - 0xc]
add dword [ebx + 0x68], eax
mov eax, dword [ebp - 0x1c]
add dword [ebx + 0x6c], eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x496840
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x64106c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [ebp - 0x210]
push 0x104
push eax
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x496883
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c2233
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x210]
push 0x6274a0
push eax
call fcn.00529f4c
add esp, 8
test eax, eax
je 0x4968a1
xor ecx, ecx
mov word [eax + 2], cx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0
push eax
push 0
push 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x496872
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
mov dword [esi], eax
xor ecx, ebp
mov al, 1
pop esi
call fcn.004c2233
mov esp, ebp
pop ebp
ret

Function at 0x4968f0
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e2938
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x64106c]
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 edi, edx
mov dword [ebp - 0x24], edi
mov ebx, ecx
push 0x100
call fcn.004c24ba
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x80
push eax
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x44
push eax
push edi
push ebx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov edi, eax
test edi, edi
jne 0x4969cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4969ca
cmp dword [ebp - 0x14], 0x44
jbe 0x49697b
xor bl, bl
jmp 0x4969cf
mov eax, dword [ebp - 0x20]
cmp eax, 0x80
jbe 0x4969af
xor ecx, ecx
mov edx, 2
mul edx
mov edi, esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c24ba
add esp, 4
mov esi, eax
test edi, edi
je 0x4969af
push edi
call fcn.004c2285
add esp, 4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
push ebx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov edi, eax
test edi, edi
setne bl
test esi, esi
je 0x4969dc
push esi
call fcn.004c2285
add esp, 4
mov al, bl
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.004c2233
mov esp, ebp
pop ebp
ret
Function at 0x49a8f1
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, edx
push edi
mov edi, ecx
movzx eax, byte [esi + 4]
cmp eax, 8
ja 0x49a97e
je 0x49a962
sub eax, 4
je 0x49a930
sub eax, 1
je 0x49a929
sub eax, 1
je 0x49a922
sub eax, 1
jne 0x49a99f
mov eax, dword [esi + 0xc]
add eax, 0x18
jmp 0x49a995
pop edi
pop esi
jmp fcn.0049a890
pop edi
pop esi
jmp 0x49b852
mov edx, dword [edi + 0x10]
mov ecx, dword [edx + 0x20]
mov eax, dword [edx + 0x18]
dec ecx
and ecx, dword [esi + 8]
lea ecx, [eax + ecx*4]
jmp 0x49a947
mov ecx, dword [ecx]
add ecx, 0xc
cmp dword [ecx], esi
jne 0x49a942
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
mov ecx, edi
dec dword [edx + 0x1c]
mov edx, esi
movzx eax, byte [esi + 7]
add eax, 0x11
jmp 0x49a995
mov edx, dword [esi + 0x20]
mov ecx, esi
call fcn.0049e3c0
mov ecx, esi
call fcn.00488e9b
push 0
push 0x7c
lea edx, [esi - 4]
mov ecx, edi
jmp 0x49a998
cmp eax, 9
je 0x49a9aa
cmp eax, 0x14
je 0x49a9a2
cmp eax, 0x26
jne 0x49a99f
movzx eax, byte [esi + 6]
inc eax
shl eax, 4
push 0
push eax
call fcn.0049f050
pop ecx
pop ecx
pop edi
pop esi
ret
mov eax, dword [esi + 0xc]
add eax, 0x11
jmp 0x49a995
pop edi
pop esi
jmp 0x49e464
push ebx
push esi
mov esi, edx
xor ebx, ebx
push edi
mov edi, ecx
cmp dword [esi + 0x14], ebx
je 0x49b879
mov cl, byte [esi + 7]
xor eax, eax
mov edx, dword [esi + 0x10]
inc eax
shl eax, cl
mov ecx, edi
shl eax, 5
push ebx
push eax
call fcn.0049f050
pop ecx
pop ecx
mov eax, dword [esi + 8]
mov ecx, edi
mov edx, dword [esi + 0xc]
shl eax, 4
push ebx
push eax
call fcn.0049f050
push ebx
push 0x20
mov edx, esi
mov ecx, edi
call fcn.0049f050
add esp, 0x10
pop edi
pop esi
pop ebx
ret
push ebx
push esi
mov esi, edx
xor ebx, ebx
push edi
push ebx
mov edi, ecx
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x30]
shl eax, 2
push eax
call fcn.0049f050
mov eax, dword [esi + 0x1c]
mov ecx, edi
mov edx, dword [esi + 0x34]
shl eax, 2
push ebx
push eax
call fcn.0049f050
mov eax, dword [esi + 0x10]
mov ecx, edi
mov edx, dword [esi + 0x2c]
shl eax, 4
push ebx
push eax
call fcn.0049f050
mov eax, dword [esi + 0x18]
mov ecx, edi
mov edx, dword [esi + 0x38]
shl eax, 2
push ebx
push eax
call fcn.0049f050
imul eax, dword [esi + 0x20], 0xc
mov ecx, edi
mov edx, dword [esi + 0x3c]
push ebx
push eax
call fcn.0049f050
mov eax, dword [esi + 0xc]
mov ecx, edi
mov edx, dword [esi + 0x40]
shl eax, 3
push ebx
push eax
call fcn.0049f050
push ebx
push pe_nt_image_headers32
mov edx, esi
mov ecx, edi
call fcn.0049f050
add esp, 0x38
pop edi
pop esi
pop ebx
ret
Function at 0x49cf14
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, ecx
mov dword [ebp - 0x18], edx
push edi
mov dword [ebp - 8], esi
call fcn.00512bd2
xor edi, edi
xorps xmm1, xmm1
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
mov eax, dword [eax]
mov al, byte [eax]
mov byte [ebp - 1], al
mov eax, dword [ebp - 0x18]
mov dword [eax], esi
movzx eax, byte [esi]
test byte [eax + 0x61a041], 8
je 0x49cf6e
inc esi
movzx eax, byte [esi]
test byte [eax + 0x61a041], 8
jne 0x49cf5e
mov dword [ebp - 8], esi
lea ecx, [ebp - 8]
call fcn.0049cef9
mov edx, dword [ebp - 8]
mov dword [ebp - 0x24], eax
cmp byte [edx], 0x30
jne 0x49d096
mov cl, byte [edx + 1]
cmp cl, 0x78
je 0x49cf96
cmp cl, 0x58
jne 0x49d096
mov al, byte [ebp - 1]
add edx, 2
mov esi, edi
mov cl, byte [edx]
cmp cl, al
jne 0x49cfab
test esi, esi
jne 0x49cffb
inc esi
jmp 0x49cff8
movzx eax, cl
test byte [eax + 0x61a041], 0x10
je 0x49cffb
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x49cfc8
cmp cl, 0x30
jne 0x49cfc8
inc dword [ebp - 0x14]
jmp 0x49cff0
inc eax
mov dword [ebp - 0x10], eax
cmp eax, 0x1e
jg 0x49cfef
movsx ecx, cl
call fcn.0049cee5
mulsd xmm1, qword [0x629c78]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
jmp 0x49cff0
inc edi
mov al, byte [ebp - 1]
test esi, esi
je 0x49cff8
dec edi
inc edx
jmp 0x49cf9e
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], edi
push 0
pop edi
add eax, ecx
je 0x49d096
mov eax, dword [ebp - 0x18]
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
mov esi, eax
mov al, byte [edx]
shl esi, 2
cmp al, 0x70
je 0x49d026
cmp al, 0x50
jne 0x49d06f
inc edx
lea ecx, [ebp - 8]
mov dword [ebp - 8], edx
call fcn.0049cef9
mov edx, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov al, byte [edx]
movzx ecx, al
test byte [ecx + 0x61a041], 2
je 0x49d096
imul ecx, edi, 0xa
movsx edi, al
add edi, 0xffffffd0
add edi, ecx
inc edx
movzx eax, byte [edx]
test byte [eax + 0x61a041], 2
mov al, byte [edx]
jne 0x49d046
cmp dword [ebp - 0x1c], 0
je 0x49d068
neg edi
mov eax, dword [ebp - 0x18]
add esi, edi
mov dword [eax], edx
cmp dword [ebp - 0x24], 0
je 0x49d07c
xorps xmm1, xmmword [0x629e20]
push esi
push ecx
push ecx
movsd qword [esp], xmm1
call fcn.00516937
fstp qword [ebp - 0x28]
movsd xmm0, qword [ebp - 0x28]
add esp, 0xc
jmp 0x49d099
xorps xmm0, xmm0
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x4a009e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x64106c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov eax, edx
xor ecx, ecx
mov dword [ebp - 0x10], eax
push edi
push ecx
mov dword [ebx], ecx
push str.kernel32.dll
mov dword [eax], ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x4a0123
push esi
push edi
call fcn.004c24ba
pop ecx
mov esi, eax
xor eax, eax
push esi
push edi
push eax
push str.kernel32.dll
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4a011b
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x61fec8
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4a011b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + 8]
mov dword [ebx], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
push esi
call fcn.004c2285
pop ecx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004c2233
mov esp, ebp
pop ebp
ret
Function at 0x4a70a5
Capabilities:
Check if file exists

Disassembly:
push 0x74
mov eax, 0x5e3744
call fcn.004c2889
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x78]
push dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x7c], eax
call fcn.00404f90
push 0xfde9
lea edx, [ebp - 0x78]
lea ecx, [ebp - 0x70]
call fcn.00419480
pop ecx
xor ebx, ebx
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], ebx
call fcn.0046b71d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
mov edi, eax
call fcn.00405040
test edi, edi
jne 0x4a70fc
xor al, al
jmp 0x4a725d
push dword [ebp + 0x14]
lea ecx, [ebp - 0x78]
call fcn.00404f90
push 0xfde9
lea edx, [ebp - 0x78]
lea ecx, [ebp - 0x28]
call fcn.00419480
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x40]
mov dword [esp], 0x61ed1c
call fcn.004050d0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x58]
call fcn.0046cf87
pop ecx
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00405080
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.00405040
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00405040
push ecx
push dword [ebp - 0x7c]
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.00473cc4
pop ecx
pop ecx
test al, al
je 0x4a71f3
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a71f3
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x78]
call fcn.00404f90
push dword [ebp + 0x18]
lea ecx, [ebp - 0x80]
call fcn.00404f90
mov ebx, 0xfde9
lea edx, [ebp - 0x78]
push ebx
lea ecx, [ebp - 0x58]
call fcn.00419480
push ebx
lea edx, [ebp - 0x80]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x40]
call fcn.00419480
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
lea edx, [ebp - 0x28]
call fcn.004a6878
add esp, 0x10
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x40]
mov bl, al
call fcn.00405040
lea ecx, [ebp - 0x58]
jmp 0x4a7246
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x78]
call fcn.00404f90
push 0x10
mov edx, 0x61a418
lea ecx, [ebp - 0x40]
call fcn.0046b3e0
mov esi, eax
mov byte [ebp - 4], 4
lea edx, [ebp - 0x78]
lea ecx, [ebp - 0x58]
mov dword [esp], 0xfde9
call fcn.00419480
pop ecx
push ebx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x58]
mov eax, dword [edi]
push esi
push ecx
mov ecx, edi
call dword [eax + 0xc]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.00405040
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00405040
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00405040
mov al, bl
call fcn.004c2833
ret 0x18
Function at 0x4af3c9
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x64106c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x4af3e9
mov eax, dword [esi]
jmp 0x4af3eb
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4af49c
push edi
mov edi, 0x208
push edi
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0050b930
push edi
xor edi, edi
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.0050b930
add esp, 0x18
cmp dword [esi + 0x14], 8
jb 0x4af42b
mov eax, dword [esi]
jmp 0x4af42d
mov eax, esi
push eax
lea eax, [ebp - 0x20c]
push str._s.del
push eax
call fcn.0046e535
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
cmp dword [esi + 0x14], 8
jb 0x4af459
mov eax, dword [esi]
jmp 0x4af45b
mov eax, esi
lea ecx, [ebp - 0x20c]
push ecx
push edi
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHELL32.dll_PathYetAnotherMakeUniqueName]
cmp dword [esi + 0x14], 8
jb 0x4af479
mov esi, dword [esi]
push 2
lea eax, [ebp - 0x414]
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call esi
test eax, eax
je 0x4af49b
push 4
push edi
lea eax, [ebp - 0x414]
push eax
call esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004c2233
mov esp, ebp
pop ebp
ret
Function at 0x4af59a
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push 0x58
mov eax, 0x5e3ef4
call fcn.004c2889
mov esi, edx
mov edi, ecx
cmp dword [esi + 0x14], 8
jb 0x4af5b4
mov eax, dword [esi]
jmp 0x4af5b6
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ebx, ebx
test eax, eax
je 0x4af698
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x28]
push ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
call fcn.00406850
push 0xffffffffffffffff
lea edx, [ebp - 0x28]
mov dword [ebp - 4], ebx
mov ecx, esi
call fcn.0046cdf5
pop ecx
test al, al
je 0x4af685
push edi
lea ecx, [ebp - 0x64]
call fcn.00404f90
lea edx, [ebp - 0x64]
lea ecx, [ebp - 0x58]
call fcn.004215b0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x64]
call fcn.00404f90
lea edx, [ebp - 0x64]
lea ecx, [ebp - 0x40]
call fcn.004215b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x58]
cmovae ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x44], 0x10
push ecx
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.00527dec
mov byte [ebp - 4], 1
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
test eax, eax
jne 0x4af675
call fcn.004051e0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], bl
call fcn.004051e0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004051e0
mov al, 1
jmp 0x4af6fd
call fcn.004051e0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], bl
call fcn.004051e0
mov ecx, esi
call fcn.004af3c9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004051e0
mov ecx, esi
call fcn.0046d2dc
cmp dword [esi + 0x14], 8
jb 0x4af6a7
mov esi, dword [esi]
push ebx
push 0x80
push 2
push ebx
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4af6fb
cmp dword [edi + 0x14], 0x10
mov eax, dword [edi + 0x10]
jb 0x4af6d0
mov edi, dword [edi]
push ebx
lea ecx, [ebp - 0x5c]
push ecx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4af6f4
cmp dword [ebp - 0x5c], 0
je 0x4af6f4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4af66e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
call fcn.004c2833
ret