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

Disassembly:
push 0x260
mov eax, 0x5e1f7f
call fcn.004c299a
push 0x208
xor esi, esi
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.0050ba40
add esp, 0xc
cmp dword [ebp + 8], 0xffffffff
je 0x48a57b
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.00405430
push 0xfde9
lea edx, [ebp - 0x26c]
lea ecx, [ebp - 0x248]
call fcn.00419950
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.004054e0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00405570
push 0x61ece4
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 1
call fcn.00405570
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x230]
lea ecx, [ebp - 0x260]
call fcn.0046d0b2
pop ecx
push eax
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 3
call fcn.00405520
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 2
call fcn.004054e0
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 1
call fcn.004054e0
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.00405e90
lea edx, [ebp - 0x261]
lea ecx, [ebp - 0x262]
push dword [eax]
push esi
call fcn.0046e616
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.004054e0
mov al, bl
call fcn.004c2944
ret 8
Function at 0x493093
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1024
call fcn.004c3090
mov eax, dword [0x64006c]
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.00528d69
pop ecx
mov ecx, edi
sub ebx, 1
jne 0x4930ed
push 1
mov edx, esi
call fcn.00492f7b
mov esi, dword [ebp + 8]
mov ebx, eax
pop ecx
inc esi
jmp 0x49326c
push str.too_many_arguments
lea edx, [ebx + 0x14]
call fcn.004880e8
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 0x493268
mov edx, esi
mov ecx, edi
call fcn.00486872
mov edx, esi
mov ecx, edi
cmp eax, 3
jne 0x4931b5
call fcn.00488211
mov esi, eax
test esi, esi
jne 0x493168
push dword [esp + 0x10]
call fcn.00513a60
pop ecx
push dword [esp + 0x10]
mov esi, eax
push esi
call fcn.005141b9
pop ecx
pop ecx
mov edx, 0x61e4b8
mov ecx, edi
call fcn.00486b36
xor eax, eax
cmp esi, 0xffffffff
setne al
mov esi, dword [esp + 0x14]
jmp 0x493257
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.00488385
push dword [esp + 0x10]
push esi
push 1
push eax
call fcn.005145c1
add esp, 0x10
lea ecx, [esp + 0x18]
mov esi, eax
add dword [esp + 0x20], esi
call fcn.00488427
xor eax, eax
cmp eax, esi
sbb eax, eax
neg eax
jmp 0x49315f
push 0
call fcn.0048816b
pop ecx
cmp byte [eax], 0x2a
jne 0x4931c3
inc eax
movsx eax, byte [eax]
sub eax, 0x4c
je 0x493249
sub eax, 0x15
je 0x4931f0
sub eax, 0xb
je 0x4931ec
dec eax
mov ecx, edi
sub eax, 1
jne 0x4932b4
mov edx, dword [esp + 0x10]
call fcn.00492dcd
jmp 0x493257
push 1
jmp 0x49324b
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.00488385
push esi
push 0x1000
push 1
push eax
call fcn.005145c1
add dword [esp + 0x30], eax
add esp, 0x10
cmp eax, 0x1000
je 0x49320d
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x18]
call fcn.00488427
xor eax, eax
inc eax
jmp 0x493257
push 0
mov edx, dword [esp + 0x14]
mov ecx, edi
call fcn.00492f7b
pop ecx
inc esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], esi
test ebx, ebx
jne 0x493109
mov ebx, dword [esp + 0xc]
push dword [esp + 0x10]
call fcn.0051360f
pop ecx
test eax, eax
je 0x493288
push 0
xor edx, edx
mov ecx, edi
call fcn.00487e62
pop ecx
jmp 0x49329f
test ebx, ebx
jne 0x49329a
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.004c2344
mov esp, ebp
pop ebp
ret
push str.invalid_format
mov edx, esi
call fcn.00487c9c
int3
Function at 0x49340c
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 0x493446
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.00486872
mov ecx, dword [esp + 0xc]
mov edx, ebx
cmp eax, 3
jne 0x4934b9
call fcn.00486611
mov ecx, dword [esp + 0xc]
mov edx, ebx
push 0
cmp dword [eax + 8], 0x13
jne 0x49347b
call fcn.00486987
pop ecx
push edx
push eax
push str._lld
jmp 0x49348b
call fcn.00486946
push ecx
movsd qword [esp], xmm0
push str._.14g
push dword [esp + 0x1c]
call fcn.004878c3
add esp, 0x10
test edi, edi
je 0x49349f
test eax, eax
jg 0x4934e1
xor edi, edi
inc ebx
test esi, esi
jne 0x493442
test edi, edi
jne 0x493438
mov ecx, dword [esp + 0xc]
xor edx, edx
push edi
call fcn.00487e62
pop ecx
jmp 0x49343b
lea eax, [esp + 0x14]
push eax
call fcn.0048816b
pop ecx
test edi, edi
je 0x49349f
push dword [esp + 0x10]
push dword [esp + 0x18]
push 1
push eax
call fcn.00513e5b
add esp, 0x10
cmp eax, dword [esp + 0x14]
jne 0x49349f
xor edi, edi
inc edi
jmp 0x4934a1
Function at 0x4967c0
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 0x4967e0
cmp edi, 0x40
jae 0x49685f
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 0x496822
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 + 0x619c70]
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 0x4968a0
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 0x496970
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x64006c]
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 0x4969b3
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c2344
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x210]
push 0x627478
push eax
call fcn.00529fdb
add esp, 8
test eax, eax
je 0x4969d1
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 0x4969a2
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
mov dword [esi], eax
xor ecx, ebp
mov al, 1
pop esi
call fcn.004c2344
mov esp, ebp
pop ebp
ret

Function at 0x496a20
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e2958
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x64006c]
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.004c25cb
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 0x496afc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x496afa
cmp dword [ebp - 0x14], 0x44
jbe 0x496aab
xor bl, bl
jmp 0x496aff
mov eax, dword [ebp - 0x20]
cmp eax, 0x80
jbe 0x496adf
xor ecx, ecx
mov edx, 2
mul edx
mov edi, esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c25cb
add esp, 4
mov esi, eax
test edi, edi
je 0x496adf
push edi
call fcn.004c2396
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 0x496b0c
push esi
call fcn.004c2396
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.004c2344
mov esp, ebp
pop ebp
ret
Function at 0x49aa22
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, edx
push edi
mov edi, ecx
movzx eax, byte [esi + 4]
cmp eax, 8
ja 0x49aaaf
je 0x49aa93
sub eax, 4
je 0x49aa61
sub eax, 1
je 0x49aa5a
sub eax, 1
je 0x49aa53
sub eax, 1
jne 0x49aad0
mov eax, dword [esi + 0xc]
add eax, 0x18
jmp 0x49aac6
pop edi
pop esi
jmp fcn.0049a9c1
pop edi
pop esi
jmp 0x49b983
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 0x49aa78
mov ecx, dword [ecx]
add ecx, 0xc
cmp dword [ecx], esi
jne 0x49aa73
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 0x49aac6
mov edx, dword [esi + 0x20]
mov ecx, esi
call fcn.0049e4f1
mov ecx, esi
call fcn.00488fca
push 0
push 0x7c
lea edx, [esi - 4]
mov ecx, edi
jmp 0x49aac9
cmp eax, 9
je 0x49aadb
cmp eax, 0x14
je 0x49aad3
cmp eax, 0x26
jne 0x49aad0
movzx eax, byte [esi + 6]
inc eax
shl eax, 4
push 0
push eax
call fcn.0049f181
pop ecx
pop ecx
pop edi
pop esi
ret
mov eax, dword [esi + 0xc]
add eax, 0x11
jmp 0x49aac6
pop edi
pop esi
jmp 0x49e595
push ebx
push esi
mov esi, edx
xor ebx, ebx
push edi
mov edi, ecx
cmp dword [esi + 0x14], ebx
je 0x49b9aa
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.0049f181
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.0049f181
push ebx
push 0x20
mov edx, esi
mov ecx, edi
call fcn.0049f181
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.0049f181
mov eax, dword [esi + 0x1c]
mov ecx, edi
mov edx, dword [esi + 0x34]
shl eax, 2
push ebx
push eax
call fcn.0049f181
mov eax, dword [esi + 0x10]
mov ecx, edi
mov edx, dword [esi + 0x2c]
shl eax, 4
push ebx
push eax
call fcn.0049f181
mov eax, dword [esi + 0x18]
mov ecx, edi
mov edx, dword [esi + 0x38]
shl eax, 2
push ebx
push eax
call fcn.0049f181
imul eax, dword [esi + 0x20], 0xc
mov ecx, edi
mov edx, dword [esi + 0x3c]
push ebx
push eax
call fcn.0049f181
mov eax, dword [esi + 0xc]
mov ecx, edi
mov edx, dword [esi + 0x40]
shl eax, 3
push ebx
push eax
call fcn.0049f181
push ebx
push pe_nt_image_headers32
mov edx, esi
mov ecx, edi
call fcn.0049f181
add esp, 0x38
pop edi
pop esi
pop ebx
ret
Function at 0x49d045
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.00512ce2
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 + 0x61a001], 8
je 0x49d09f
inc esi
movzx eax, byte [esi]
test byte [eax + 0x61a001], 8
jne 0x49d08f
mov dword [ebp - 8], esi
lea ecx, [ebp - 8]
call fcn.0049d02a
mov edx, dword [ebp - 8]
mov dword [ebp - 0x24], eax
cmp byte [edx], 0x30
jne 0x49d1c7
mov cl, byte [edx + 1]
cmp cl, 0x78
je 0x49d0c7
cmp cl, 0x58
jne 0x49d1c7
mov al, byte [ebp - 1]
add edx, 2
mov esi, edi
mov cl, byte [edx]
cmp cl, al
jne 0x49d0dc
test esi, esi
jne 0x49d12c
inc esi
jmp 0x49d129
movzx eax, cl
test byte [eax + 0x61a001], 0x10
je 0x49d12c
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x49d0f9
cmp cl, 0x30
jne 0x49d0f9
inc dword [ebp - 0x14]
jmp 0x49d121
inc eax
mov dword [ebp - 0x10], eax
cmp eax, 0x1e
jg 0x49d120
movsx ecx, cl
call fcn.0049d016
mulsd xmm1, qword [0x629c28]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
jmp 0x49d121
inc edi
mov al, byte [ebp - 1]
test esi, esi
je 0x49d129
dec edi
inc edx
jmp 0x49d0cf
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], edi
push 0
pop edi
add eax, ecx
je 0x49d1c7
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 0x49d157
cmp al, 0x50
jne 0x49d1a0
inc edx
lea ecx, [ebp - 8]
mov dword [ebp - 8], edx
call fcn.0049d02a
mov edx, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov al, byte [edx]
movzx ecx, al
test byte [ecx + 0x61a001], 2
je 0x49d1c7
imul ecx, edi, 0xa
movsx edi, al
add edi, 0xffffffd0
add edi, ecx
inc edx
movzx eax, byte [edx]
test byte [eax + 0x61a001], 2
mov al, byte [edx]
jne 0x49d177
cmp dword [ebp - 0x1c], 0
je 0x49d199
neg edi
mov eax, dword [ebp - 0x18]
add esi, edi
mov dword [eax], edx
cmp dword [ebp - 0x24], 0
je 0x49d1ad
xorps xmm1, xmmword [0x629de0]
push esi
push ecx
push ecx
movsd qword [esp], xmm1
call fcn.00516a47
fstp qword [ebp - 0x28]
movsd xmm0, qword [ebp - 0x28]
add esp, 0xc
jmp 0x49d1ca
xorps xmm0, xmm0
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x4a01cf
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x64006c]
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 0x4a0254
push esi
push edi
call fcn.004c25cb
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 0x4a024c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x61feb4
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4a024c
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.004c2396
pop ecx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004c2344
mov esp, ebp
pop ebp
ret
Function at 0x4a71d6
Capabilities:
Check if file exists

Disassembly:
push 0x74
mov eax, 0x5e3764
call fcn.004c299a
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.00405430
push 0xfde9
lea edx, [ebp - 0x78]
lea ecx, [ebp - 0x70]
call fcn.00419950
pop ecx
xor ebx, ebx
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], ebx
call fcn.0046b848
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
mov edi, eax
call fcn.004054e0
test edi, edi
jne 0x4a722d
xor al, al
jmp 0x4a738e
push dword [ebp + 0x14]
lea ecx, [ebp - 0x78]
call fcn.00405430
push 0xfde9
lea edx, [ebp - 0x78]
lea ecx, [ebp - 0x28]
call fcn.00419950
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x40]
mov dword [esp], 0x61ece4
call fcn.00405570
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x58]
call fcn.0046d0b2
pop ecx
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00405520
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.004054e0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.004054e0
push ecx
push dword [ebp - 0x7c]
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.00473def
pop ecx
pop ecx
test al, al
je 0x4a7324
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 0x4a7324
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x78]
call fcn.00405430
push dword [ebp + 0x18]
lea ecx, [ebp - 0x80]
call fcn.00405430
mov ebx, 0xfde9
lea edx, [ebp - 0x78]
push ebx
lea ecx, [ebp - 0x58]
call fcn.00419950
push ebx
lea edx, [ebp - 0x80]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x40]
call fcn.00419950
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.004a69a9
add esp, 0x10
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x40]
mov bl, al
call fcn.004054e0
lea ecx, [ebp - 0x58]
jmp 0x4a7377
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x78]
call fcn.00405430
push 0x10
mov edx, 0x61a388
lea ecx, [ebp - 0x40]
call fcn.0046b50d
mov esi, eax
mov byte [ebp - 4], 4
lea edx, [ebp - 0x78]
lea ecx, [ebp - 0x58]
mov dword [esp], 0xfde9
call fcn.00419950
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.004054e0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.004054e0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004054e0
mov al, bl
call fcn.004c2944
ret 0x18
Function at 0x4af4fa
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x64006c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x4af51a
mov eax, dword [esi]
jmp 0x4af51c
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4af5cd
push edi
mov edi, 0x208
push edi
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0050ba40
push edi
xor edi, edi
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.0050ba40
add esp, 0x18
cmp dword [esi + 0x14], 8
jb 0x4af55c
mov eax, dword [esi]
jmp 0x4af55e
mov eax, esi
push eax
lea eax, [ebp - 0x20c]
push str._s.del
push eax
call fcn.0046e660
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
cmp dword [esi + 0x14], 8
jb 0x4af58a
mov eax, dword [esi]
jmp 0x4af58c
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 0x4af5aa
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 0x4af5cc
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.004c2344
mov esp, ebp
pop ebp
ret
Function at 0x4af6cb
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push 0x58
mov eax, 0x5e3f14
call fcn.004c299a
mov esi, edx
mov edi, ecx
cmp dword [esi + 0x14], 8
jb 0x4af6e5
mov eax, dword [esi]
jmp 0x4af6e7
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ebx, ebx
test eax, eax
je 0x4af7c9
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x28]
push ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
call fcn.00406d00
push 0xffffffffffffffff
lea edx, [ebp - 0x28]
mov dword [ebp - 4], ebx
mov ecx, esi
call fcn.0046cf20
pop ecx
test al, al
je 0x4af7b6
push edi
lea ecx, [ebp - 0x64]
call fcn.00405430
lea edx, [ebp - 0x64]
lea ecx, [ebp - 0x58]
call fcn.00421aa0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x64]
call fcn.00405430
lea edx, [ebp - 0x64]
lea ecx, [ebp - 0x40]
call fcn.00421aa0
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.00527e7c
mov byte [ebp - 4], 1
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
test eax, eax
jne 0x4af7a6
call fcn.00405680
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], bl
call fcn.00405680
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00405680
mov al, 1
jmp 0x4af82e
call fcn.00405680
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], bl
call fcn.00405680
mov ecx, esi
call fcn.004af4fa
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00405680
mov ecx, esi
call fcn.0046d407
cmp dword [esi + 0x14], 8
jb 0x4af7d8
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 0x4af82c
cmp dword [edi + 0x14], 0x10
mov eax, dword [edi + 0x10]
jb 0x4af801
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 0x4af825
cmp dword [ebp - 0x5c], 0
je 0x4af825
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4af79f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
call fcn.004c2944
ret