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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x61de8d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, esi
call fcn.00426b0c
test al, al
je 0x61de3a
lea eax, [ebp - 4]
mov edx, esi
call fcn.0040a4d4
jmp 0x61de42
lea eax, [ebp - 4]
call fcn.0051d18c
lea eax, [ebp - 0x20c]
push eax
xor bl, 1
movzx eax, bl
push eax
push 0x61de9c
mov eax, dword [ebp - 4]
call fcn.0040aaa8
push eax
call sub.kernel32.dll_GetTempFileNameW
mov eax, edi
lea edx, [ebp - 0x20c]
mov ecx, 0x104
call fcn.0040ab60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x61de94
lea eax, [ebp - 4]
call fcn.0040a0ac
pop eax
jmp eax

Function at 0x61df20
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x61dfde
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.004274e0
mov edx, dword [ebp - 4]
mov eax, 0x61dff8
call fcn.0051c934
test al, al
je 0x61df69
lea eax, [ebp - 4]
mov ecx, 8
mov edx, 1
call fcn.0040aec8
jmp 0x61df8c
mov edx, dword [ebp - 4]
mov eax, 0x61e018
call fcn.0051c934
test al, al
je 0x61df8c
lea eax, [ebp - 4]
mov ecx, 4
mov edx, 1
call fcn.0040aec8
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004273e0
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.0042e024
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.0040a4d4
mov eax, dword [ebp - 4]
call fcn.0040aaa8
push eax
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 2
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x61dfe5
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040a10c
pop eax
jmp eax

Function at 0x61f034
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
mov esi, edx
mov edx, dword [eax]
dec ecx
test ecx, ecx
jl 0x61f05f
inc ecx
mov ebx, edx
xor bl, byte [esi]
movzx ebx, bl
mov ebx, dword [ebx*4 + 0x6aae38]
shr edx, 8
and edx, 0xffffff
xor ebx, edx
mov edx, ebx
inc esi
dec ecx
jne 0x61f040
mov dword [eax], edx
pop esi
pop ebx
ret

Function at 0x621048
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, edx
mov edx, dword [eax]
dec ecx
test ecx, ecx
jl 0x621070
inc ecx
mov ebx, edx
xor bl, byte [esi]
movzx ebx, bl
mov edi, dword [0x6b1e5c]
mov ebx, dword [edi + ebx*4]
shr edx, 8
xor ebx, edx
mov edx, ebx
inc esi
dec ecx
jne 0x621055
mov dword [eax], edx
pop edi
pop esi
pop ebx
ret

Function at 0x62780c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x627854
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x30]
call fcn.00626244
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x62785b
lea eax, [ebp - 4]
call fcn.0040a0ac
pop eax
jmp eax
Function at 0x62b5f4
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x62b713
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebx + 0x20]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, dword [ebp - 8]
xor ecx, ecx
mov dword [edx], ecx
call fcn.00408288
inc dword [ebx + 0x10]
cmp dword [ebx + 0x2c], 0
jne 0x62b63a
cmp dword [ebx + 0x28], 0
jbe 0x62b674
jmp 0x62b63c
jle 0x62b674
mov esi, dword [ebx + 4]
lea ecx, [ebp - 0xc]
mov edx, dword [ebx + 0x10]
mov eax, ebx
call fcn.0062afdc
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0x10]
call fcn.0040aaa8
push eax
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x14]
call fcn.0040aaa8
push eax
call sub.kernel32.dll_MoveFileW
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x62b6d6
cmp word [ebx + 0x32], 0
je 0x62b6b5
mov byte [ebp - 1], 0
lea ecx, [ebp - 1]
mov edx, ebx
mov eax, dword [ebx + 0x34]
call dword [ebx + 0x30]
cmp byte [ebp - 1], 0
je 0x62b6a1
mov dl, 1
mov eax, dword [0x61a7f0]
call fcn.0061c988
call fcn.00409768
mov eax, dword [ebx + 4]
call fcn.0061e024
cmp edx, 0xffffffff
jne 0x62b6b1
cmp eax, 0xffffffff
je 0x62b67f
jmp 0x62b6c6
mov dl, 1
mov eax, dword [0x61a7f0]
call fcn.0061c988
call fcn.00409768
mov eax, dword [ebx + 4]
call fcn.0061dea4
mov edx, dword [ebx + 0x10]
call fcn.0061f4f0
push 0xff20
mov ecx, dword [ebx + 4]
mov dl, 1
mov eax, dword [0x449d18]
call fcn.0047308c
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x62b71a
lea eax, [ebp - 0xc]
call fcn.0040a0ac
pop eax
jmp eax
Function at 0x63bd18
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x63bf00
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.006263d4
cmp ebx, eax
jl 0x63bd7f
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x14], 0
lea eax, [ebp - 0x18]
push eax
push 0
lea edx, [ebp - 0x1c]
mov eax, dword [0x6b2650]
call fcn.0040fc34
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x41ebc8]
call fcn.0042c840
call fcn.00409768
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.006263b8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + 0x6a]
sub al, 2
jne 0x63bdab
mov dl, 1
mov eax, dword [0x61bd4c]
call fcn.0061d9dc
call fcn.00409768
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x6a], 1
jne 0x63be06
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x63bdcb
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x64
jl 0x63bdd4
mov al, 1
jmp 0x63bdf1
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x10]
call fcn.00639330
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x63bdeb
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x64
setge al
test al, al
je 0x63be06
mov dl, 1
mov eax, dword [0x61bd4c]
call fcn.0061d9dc
call fcn.00409768
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x10]
test al, al
je 0x63be1f
mov eax, dword [ebp - 8]
call fcn.0061dd08
jmp 0x63beba
push 0xff40
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x449d18]
call fcn.0047308c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x63be88
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x63be77
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 0xc]
mov edx, ebx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x63be7e
mov eax, dword [ebp - 0xc]
call fcn.00408288
pop eax
jmp eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x48]
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, dword [ebp - 8]
call fcn.0061f318
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.0061f3d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x63bf07
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.0040a10c
pop eax
jmp eax
Function at 0x63bf10
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x63c05b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [esi + 0x30]
call fcn.006263d4
cmp ebx, eax
jl 0x63bf6e
mov dword [ebp - 8], ebx
mov byte [ebp - 4], 0
lea eax, [ebp - 8]
push eax
push 0
lea edx, [ebp - 0xc]
mov eax, dword [0x6b2650]
call fcn.0040fc34
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x41ebc8]
call fcn.0042c840
call fcn.00409768
mov eax, dword [esi + 0x30]
mov edx, ebx
call fcn.006263b8
mov ebx, eax
movzx eax, byte [ebx + 0x6a]
sub al, 2
jne 0x63bf93
mov dl, 1
mov eax, dword [0x61bd4c]
call fcn.0061d9dc
call fcn.00409768
cmp byte [ebx + 0x6a], 1
jne 0x63bfe9
lea edx, [ebp - 0x10]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x63bfaf
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x64
jl 0x63bfb8
mov al, 1
jmp 0x63bfd4
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.00639330
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x63bfce
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x64
setge al
test al, al
je 0x63bfe9
mov dl, 1
mov eax, dword [0x61bd4c]
call fcn.0061d9dc
call fcn.00409768
mov eax, dword [ebx + 0xac]
shl eax, 9
cdq
push edx
push eax
mov eax, dword [ebx + 0xa0]
mov edx, dword [ebx + 0xa4]
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
push edx
push eax
mov eax, dword [esi + 4]
call fcn.00471214
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x24]
cmp edx, 0
jne 0x63c024
cmp eax, 0
je 0x63c03e
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x24]
push edx
push eax
mov edx, dword [esi + 4]
mov ecx, 0x100000
mov eax, edi
call fcn.004726dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x63c062
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.0040a10c
pop eax
jmp eax
Function at 0x64041c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov dword [esp + 4], ecx
mov dword [esp], edx
mov ebx, eax
mov eax, dword [ebx + 0x30]
sub eax, dword [ebx + 0x2c]
cmp eax, dword [esp]
jge 0x64044b
mov ecx, 0xf0
mov edx, 0x640588
mov eax, 0x64066c
call fcn.00409ef8
mov eax, dword [esp + 4]
cmp eax, dword [esp]
je 0x640472
mov eax, dword [esp]
dec eax
cmp eax, dword [esp + 4]
je 0x640472
mov ecx, 0xf2
mov edx, 0x640588
mov eax, 0x6406f8
call fcn.00409ef8
mov eax, dword [ebx + 0x2c]
mov edx, dword [esp]
cmp edx, dword [esp + 4]
jle 0x64047f
inc eax
mov edx, dword [ebx + 0x1c]
mov dword [esp + 8], edx
mov ecx, dword [ebx + 0x20]
mov edx, dword [ebx + 0x24]
mov esi, dword [esp + 4]
dec esi
test esi, esi
jl 0x6404bf
inc esi
shl edx, 5
movzx edi, byte [eax + 2]
xor edx, edi
and edx, 0x3fff
mov edi, dword [ebx + 0x6c]
and edi, eax
mov ebp, dword [esp + 8]
lea ebp, [ebp + edi*4]
mov edi, dword [ecx + edx*4]
mov dword [ebp], edi
mov dword [ecx + edx*4], eax
inc eax
dec esi
jne 0x640496
mov esi, dword [esp + 8]
mov dword [ebx + 0x1c], esi
mov dword [ebx + 0x20], ecx
mov dword [ebx + 0x24], edx
mov dword [ebx + 0x2c], eax
cmp byte [ebx + 4], 0
je 0x6404fc
mov eax, dword [esp]
add dword [ebx + 0x4c], eax
mov eax, dword [esp]
cdq
add dword [ebx + 0x50], eax
adc dword [ebx + 0x54], edx
cmp byte [ebx + 0x38], 0
je 0x64051e
mov eax, dword [ebx + 0x4c]
cmp eax, dword [ebx + 0x48]
jb 0x64051e
mov eax, ebx
call fcn.00640ad0
jmp 0x64051e
mov edx, eax
sub edx, dword [ebx + 0x4c]
cmp edx, dword [ebx + 0x70]
jl 0x64051e
mov byte [ebx + 4], 1
mov ecx, eax
sub ecx, dword [ebx + 0x70]
sub ecx, dword [ebx + 0x4c]
add dword [ebx + 0x4c], ecx
mov eax, ecx
cdq
add dword [ebx + 0x50], eax
adc dword [ebx + 0x54], edx
cmp word [ebx + 0x42], 0
je 0x640562
mov eax, dword [esp]
cdq
add dword [ebx + 0x10], eax
adc dword [ebx + 0x14], edx
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
and eax, 0xfff
xor edx, edx
cmp edx, 0
jne 0x640562
cmp eax, 0
jne 0x640562
fild qword [ebx + 0x10]
fmul dword [0x64076c]
fild qword [ebx + 0x60]
fdivp st(1)
call fcn.004079a8
mov edx, eax
mov eax, dword [ebx + 0x44]
call dword [ebx + 0x40]
mov eax, dword [ebx + 0x4c]
cmp eax, dword [ebx + 0x48]
jb 0x640571
mov eax, ebx
call fcn.00640ad0
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x646c08
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov ebx, eax
test esi, esi
jne 0x646c30
mov ecx, 0xf8
mov edx, 0x646cc0
mov eax, 0x646da8
call fcn.00409ef8
mov edx, esi
mov eax, ebx
call fcn.00646e10
mov dword [ebp - 4], 0xc
mov edi, dword [ebp - 8]
lea esi, [ebp - 0x14]
mov eax, dword [ebx + 0x10]
and eax, 0xffff
or eax, 2
mov edx, 1
xor edx, eax
imul edx, eax
shr edx, 8
xor dl, byte [edi]
mov byte [esi], dl
mov edx, dword [ebx + 8]
movzx eax, byte [esi]
call fcn.0061f064
mov dword [ebx + 8], eax
mov eax, dword [ebx + 8]
and eax, 0xff
add dword [ebx + 0xc], eax
imul eax, dword [ebx + 0xc], 0x8088405
inc eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0xc]
shr eax, 0x18
mov edx, dword [ebx + 0x10]
call fcn.0061f064
mov dword [ebx + 0x10], eax
inc esi
inc edi
dec dword [ebp - 4]
jne 0x646c46
movzx eax, byte [ebp + 0xb]
cmp al, byte [ebp - 9]
sete al
mov byte [ebx + 4], al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x646e10
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x646ebf
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebx + 8], 0x12345678
mov dword [ebx + 0xc], 0x23456789
mov dword [ebx + 0x10], 0x34567890
call fcn.00432878
lea ecx, [ebp - 4]
mov edx, esi
call fcn.00433338
mov eax, dword [ebp - 4]
test eax, eax
je 0x646e5a
sub eax, 4
mov eax, dword [eax]
mov esi, eax
dec esi
test esi, esi
jl 0x646ea1
inc esi
xor edi, edi
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edi]
mov edx, dword [ebx + 8]
call fcn.0061f064
mov dword [ebx + 8], eax
mov eax, dword [ebx + 8]
and eax, 0xff
add dword [ebx + 0xc], eax
imul eax, dword [ebx + 0xc], 0x8088405
inc eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0xc]
shr eax, 0x18
mov edx, dword [ebx + 0x10]
call fcn.0061f064
mov dword [ebx + 0x10], eax
inc edi
dec esi
jne 0x646e64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x646ec6
lea eax, [ebp - 4]
mov edx, dword [0x404b1c]
call fcn.0040cc54
pop eax
jmp eax
Function at 0x672ea6
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
jmp 0x672f5e
mov eax, dword [ebp + 8]
add dword [ebp + 8], 4
mov eax, dword [eax]
cdq
xor eax, edx
sub eax, edx
mov ecx, eax
shr ecx, 9
add eax, ecx
cmp eax, 0x100
jae 0x672ef6
movsx edx, byte [eax + 0x6b1248]
mov ecx, 9
sub ecx, edx
shl eax, cl
and eax, 0xff
movzx eax, byte [eax + 0x6b1348]
shl edx, 8
add eax, edx
add ebx, eax
jmp 0x672f5e
cmp eax, 0x10000
jae 0x672f0e
mov edx, eax
shr edx, 8
movsx edx, byte [edx + 0x6b1248]
add edx, 8
jmp 0x672f35
cmp eax, 0x1000000
jae 0x672f26
mov ecx, eax
shr ecx, 0x10
movsx edx, byte [ecx + 0x6b1248]
add edx, 0x10
jmp 0x672f35
mov ecx, eax
shr ecx, 0x18
movsx edx, byte [ecx + 0x6b1248]
add edx, 0x18
lea ecx, [edx - 9]
shr eax, cl
and eax, 0xff
movzx eax, byte [eax + 0x6b1348]
mov ecx, edx
shl ecx, 8
add eax, ecx
mov edx, eax
add ebx, eax
test esi, esi
je 0x672f5e
cmp esi, edx
jg 0x672f5e
or eax, 0xffffffff
jmp 0x672f6f
mov edx, dword [ebp + 0xc]
add dword [ebp + 0xc], 0xffffffff
test edx, edx
jne 0x672eb5
mov eax, ebx
pop esi
pop ebx
pop ebp
ret

Function at 0x694f38
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x694f41
mov eax, dword [ebp - 4]
push ebx
xor edx, edx
mov dword [ebp - 0x10004], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x694fb6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10000]
push eax
push 0x7fff
call sub.kernel32.dll_GetTempPathW
lea eax, [ebp - 0x10004]
lea edx, [ebp - 0x10000]
mov ecx, 0x8000
call fcn.0040ab60
mov eax, dword [ebp - 0x10004]
mov edx, ebx
call fcn.00695408
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x694fbd
lea eax, [ebp - 0x10004]
call fcn.0040a0ac
pop eax
jmp eax

Function at 0x694fc4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x694fcd
mov eax, dword [ebp - 4]
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x10004], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x695054
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10000]
push eax
push 0
push 0
push esi
push 0
call sub.shell32.dll_SHGetFolderPathW
test eax, eax
jne 0x695032
lea eax, [ebp - 0x10004]
lea edx, [ebp - 0x10000]
mov ecx, 0x8000
call fcn.0040ab60
mov eax, dword [ebp - 0x10004]
mov edx, ebx
call fcn.0042e024
jmp 0x695039
mov eax, ebx
call fcn.0040a0ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x69505b
lea eax, [ebp - 0x10004]
call fcn.0040a0ac
pop eax
jmp eax
Function at 0x698b1c
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x698c43
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x6b276c]
cmp byte [eax + 0x21101], 2
je 0x698c26
mov eax, dword [0x6daec0]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x698bf7
inc esi
xor ebx, ebx
lea ecx, [ebp - 4]
mov edx, ebx
mov eax, dword [0x6daec0]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 4]
mov cl, 1
xor edx, edx
call fcn.00426e78
mov eax, dword [0x6b276c]
movzx eax, byte [eax + 0x21101]
sub al, 1
jb 0x698b90
je 0x698bce
jmp 0x698bef
lea ecx, [ebp - 8]
mov edx, ebx
mov eax, dword [0x6daec0]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 8]
call fcn.0042708c
test al, al
jne 0x698bef
push 4
push 0
lea ecx, [ebp - 0xc]
mov edx, ebx
mov eax, dword [0x6daec0]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xc]
call fcn.0040aaa8
push eax
call sub.kernel32.dll_MoveFileExW
jmp 0x698bef
push 4
push 0
lea ecx, [ebp - 0x10]
mov edx, ebx
mov eax, dword [0x6daec0]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x10]
call fcn.0040aaa8
push eax
call sub.kernel32.dll_MoveFileExW
inc ebx
dec esi
jne 0x698b61
mov eax, dword [0x6daec4]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
cmp ebx, 0
jl 0x698c26
lea ecx, [ebp - 0x14]
mov edx, ebx
mov eax, dword [0x6daec4]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x14]
call fcn.00698aa4
dec ebx
cmp ebx, 0xffffffff
jne 0x698c09
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x698c4a
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.0040a10c
pop eax
jmp eax
Function at 0x698c54
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
xor eax, eax
mov dword [ebp - 0x40], eax
xor eax, eax
push ebp
push 0x698d63
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x6b1e14], 0
je 0x698d4b
lea eax, [ebp - 0x3c]
xor ecx, ecx
mov edx, 0x3c
call fcn.00407aa8
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x440
mov eax, 0x698d70
mov dword [ebp - 0x30], eax
mov eax, dword [0x6b1e14]
call fcn.0040aaa8
mov dword [ebp - 0x2c], eax
mov eax, dword [0x6b276c]
add eax, 0x11100
mov dword [ebp - 0x28], eax
lea edx, [ebp - 0x40]
mov eax, dword [0x6b1e14]
call fcn.004272ec
mov eax, dword [ebp - 0x40]
call fcn.0040aaa8
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 1
lea eax, [ebp - 0x3c]
push eax
call sub.shell32.dll_ShellExecuteExW
test eax, eax
je 0x698d3a
mov eax, dword [ebp - 4]
test eax, eax
je 0x698d4b
xor edx, edx
push ebp
push 0x698d33
push dword fs:[edx]
mov dword fs:[edx], esp
push 0xffffffffffffffff
push eax
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [0x6b276c]
movzx eax, byte [eax + 0x21101]
mov edx, dword [0x6b276c]
mov byte [edx + 0x21101], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x698d4b
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle
pop eax
jmp eax
call sub.kernel32.dll_GetLastError
mov edx, eax
mov eax, dword [0x6b1e14]
call fcn.00698754
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x698d6a
lea eax, [ebp - 0x40]
call fcn.0040a0ac
pop eax
jmp eax

Function at 0x69ae88
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, dword [ebp + 8]
mov byte [ebp - 5], 0
xor eax, eax
mov dword [edi], eax
xor eax, eax
mov dword [esi], eax
push ebx
mov eax, dword [ebp - 4]
call fcn.0040aaa8
push eax
push 0
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
je 0x69aef0
push ebx
push 0
call sub.kernel32.dll_LoadResource
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x69aef0
push ebx
push 0
call sub.kernel32.dll_SizeofResource
mov dword [esi], eax
cmp dword [esi], 0
je 0x69aef0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LockResource
mov dword [edi], eax
cmp dword [edi], 0
setne byte [ebp - 5]
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404780
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x404866
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x404855
jg 0x4047c0
test edx, edx
je 0x404855
nop dword [eax]
call fcn.004060e0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x404814
jg 0x4047d7
test esi, esi
je 0x404814
cmp ebx, eax
jg 0x4047e7
jl 0x4047e1
cmp edi, esi
jae 0x4047e7
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.00409aa0
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x404839
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x40484f
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x4047c0
jl 0x40484f
test edi, edi
jne 0x4047c0
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x404888
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x40488a
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x404908
jg 0x40489d
test esi, esi
je 0x404908
test eax, eax
jl 0x4048ec
jg 0x4048a7
test ebx, ebx
je 0x4048ec
cmp edi, eax
jg 0x4048b7
jl 0x4048b1
cmp esi, ebx
jae 0x4048b7
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.00409aa0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x404908
jg 0x4048ef
test esi, esi
je 0x404908
jmp 0x4048ef
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x404908
push eax
push esi
push 1
push edx
call fcn.0040d8ca
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc