joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4322e4
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x450008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0042a038
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0042a038
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x43235b
cmp word [ecx], dx
je 0x43235b
mov eax, dword [0x4426b4]
push edi
dec eax
push eax
push 0x4425a0
call fcn.00432283
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4323ce
cmp word [eax], dx
je 0x4323ce
mov eax, dword [edi]
test eax, eax
je 0x43237f
cmp word [eax], dx
je 0x43237f
lea eax, [ebp - 0x10]
push eax
call fcn.00431c66
jmp 0x432388
lea eax, [ebp - 0x10]
push eax
call fcn.00431d01
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4323f8
mov eax, dword [0x44259c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x442290
call fcn.00432283
add esp, 0xc
test al, al
je 0x4323f8
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4323c3
cmp word [eax], di
je 0x4323c3
lea eax, [ebp - 0x10]
push eax
call fcn.00431c66
pop ecx
jmp 0x4323fa
lea eax, [ebp - 0x10]
push eax
call fcn.00431d01
jmp 0x4323c0
mov eax, dword [edi]
test eax, eax
je 0x4323e5
cmp word [eax], dx
je 0x4323e5
lea eax, [ebp - 0x10]
push eax
call fcn.00431c1b
pop ecx
jmp 0x4323f8
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4324c3
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00432108
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4324c3
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4324c3
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4324c3
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x432450
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0042b7df
test ebx, ebx
je 0x4324be
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0042b7df
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4324c3
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4324c3
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004379b4
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4324c5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416291
leave
ret
Function at 0x439235
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004391b1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4393a4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4393a4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x439359
jg 0x439291
test eax, eax
je 0x43934f
push 1
push 0x1000
call fcn.0042b1a8
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4392b4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x439346
push 0x8000
push ebx
call fcn.0042642b
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4392dd
jg 0x4392d8
cmp ecx, 0x1000
jb 0x4392dd
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0042ac0d
add esp, 0x10
cmp eax, 0xffffffff
je 0x439322
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4392d8
jl 0x439309
test ecx, ecx
jne 0x4392ca
push dword [ebp - 0xc]
push ebx
call fcn.0042642b
push esi
call fcn.004298ef
add esp, 0xc
xor ebx, ebx
jmp 0x4393b2
cmp byte [edi + 0x24], 0
je 0x439339
cmp dword [edi + 0x20], 5
jne 0x439339
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x439344
mov ebx, dword [edi + 0x18]
jmp 0x439346
xor ebx, ebx
push esi
call fcn.004298ef
pop ecx
jmp 0x4393b2
test ecx, ecx
jg 0x43931b
jl 0x439359
test eax, eax
jae 0x43931b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042e5a3
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x439379
cmp byte [edi + 0x1c], 0
je 0x43931b
jmp 0x4393aa
push ebx
call fcn.004300de
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x43931b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4393b2
cmp byte [edi + 0x1c], 0
je 0x4393af
mov ebx, dword [edi + 0x18]
jmp 0x4393b2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0042e5a3
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4053da
Capabilities:
Contain obfuscated stackstrings
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
push ebx
push esi
push edi
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x405400
jmp 0x405516
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0xffffffff
jne 0x405420
jmp 0x405516
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov al, byte [ebp - 4]
mov byte [ebp - 0x1c], al
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0040992f
add esp, 4
mov dword [0x40f098], 0
mov dword [ebp - 0x420], 0x646c6f47
mov dword [ebp - 0x41c], 0x6f736e65
mov byte [ebp - 0x418], 0x66
mov dword [ebp - 0x20], 0
jmp 0x40546d
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 9
jge 0x40548d
mov eax, dword [ebp - 0x20]
movsx eax, byte [eax + ebp - 0x420]
xor al, byte [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov byte [ecx + ebp - 0x420], al
jmp 0x40546a
mov al, byte [ebp - 0x1c]
mov byte [ebp - 0x417], al
push 0xa
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll__lwrite]
push 0x400
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll__lread]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4054f5
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.004094d2
add esp, 8
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll__lwrite]
jmp 0x4054a9
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40577c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
nop
nop
leave
add esp, 4
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push esi
push edx
push ecx
push ebx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
jne 0x405855
mov dword [ebp - 0x14], 0
jmp 0x4057e0
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x1e
jge 0x405855
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
cmp dword [eax*4 + 0x40f09c], ecx
jne 0x405853
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx*4 + 0x40f1aa]
cmp dword [eax*4 + 0x40f132], ecx
jb 0x405842
mov eax, dword [ebp - 0xc]
cmp dword [0x40f098], eax
je 0x405830
mov eax, dword [ebp - 0x14]
mov al, byte [eax + 0x40f114]
push eax
call fcn.0040992f
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [0x40f098], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.00409486
add esp, 8
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
add dword [ecx*4 + 0x40f132], eax
jmp 0x405855
jmp 0x4057dd
pop ebx
pop ecx
pop edx
pop esi
pop edi
mov eax, dword [ebp - 0x10]
leave
ret 0x14

Function at 0x405866
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
nop
leave
add esp, 4
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push esi
push edx
push ecx
push ebx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
jmp 0x4058ae
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x1e
jge 0x405903
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
cmp dword [eax*4 + 0x40f09c], ecx
jne 0x405901
mov eax, dword [ebp - 8]
cmp dword [0x40f098], eax
je 0x4058e8
mov eax, dword [ebp - 0x14]
mov al, byte [eax + 0x40f114]
push eax
call fcn.0040992f
add esp, 4
mov eax, dword [ebp - 8]
mov dword [0x40f098], eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.004094d2
add esp, 8
mov dword [ebp - 0xc], 1
jmp 0x405903
jmp 0x4058ab
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0
je 0x405931
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.00409486
add esp, 8
pop ebx
pop ecx
pop edx
pop esi
pop edi
mov eax, dword [ebp - 0x10]
leave
ret 0x14
Function at 0x409566
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 8], 0xffffffff
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 4], eax
push 0
push 0
push 0x1e
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0xc], 0
jmp 0x4095a5
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 3
jge 0x40967b
push 0
lea eax, [ebp - 0x14]
push eax
push 0xa
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
mov al, byte [ebp - 0x20]
cmp eax, 0x54
jne 0x409676
xor eax, eax
mov al, byte [ebp - 0x1f]
cmp eax, 0x44
je 0x4095f5
xor eax, eax
mov al, byte [ebp - 0x1f]
cmp eax, 0x64
je 0x4095f5
xor eax, eax
mov al, byte [ebp - 0x1f]
cmp eax, 0x53
jne 0x409676
mov al, byte [ebp - 0x17]
mov ecx, dword [ebp + 0x10]
mov byte [ecx], al
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
push eax
call fcn.0040992f
add esp, 4
xor eax, eax
mov al, byte [ebp - 0x1f]
cmp eax, 0x64
jne 0x409648
mov dword [0x40f2ca], 1
mov dword [ebp - 0x10], 0
jmp 0x40962b
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 7
jge 0x409646
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cl, byte [eax + ebp - 0x1e]
xor cl, byte [ebp - 0x17]
mov eax, dword [ebp - 0x10]
mov byte [eax + ebp - 0x1e], cl
jmp 0x409628
jmp 0x409652
mov dword [0x40f2ca], 0
mov eax, dword [ebp - 0x1e]
xor eax, 0x19611225
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1a]
xor eax, 0x198931
and eax, 0xffffff
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx]
mov dword [ebp - 8], eax
jmp 0x40967b
jmp 0x4095a2
push 0
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 8]
jmp 0x409692
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4097bc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 4], 0xffffffff
push 0
lea eax, [ebp - 0xc]
push eax
push 0xa
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 8], 0
jmp 0x4097ee
inc dword [ebp - 8]
cmp dword [ebp - 8], 9
jge 0x409809
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cl, byte [eax + ebp - 0x18]
xor cl, byte [ebp - 0xf]
mov eax, dword [ebp - 8]
mov byte [eax + ebp - 0x18], cl
jmp 0x4097eb
cmp dword [ebp - 0x18], 0x646c6f47
jne 0x409853
cmp dword [ebp - 0x14], 0x6f736e65
jne 0x409853
xor eax, eax
mov al, byte [ebp - 0x10]
cmp eax, 0x66
jne 0x409853
mov al, byte [ebp - 0xf]
mov ecx, dword [ebp + 0x10]
mov byte [ecx], al
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
push eax
call fcn.0040992f
add esp, 4
cmp dword [ebp + 0xc], 0
je 0x40984a
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov dword [ebp - 4], 0xa
jmp 0x409863
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 4]
jmp 0x409868
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409bff
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
nop
leave
add esp, 4
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push esi
push edx
push ecx
push ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call fcn.00409287
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.0040930f
add esp, 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.00409e2f
add esp, 8
cmp eax, 0xffffffff
je 0x409c64
mov dword [ebp - 0x14], 1
jmp 0x409c6b
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 0xc], 2
jne 0x409c9b
cmp dword [ebp - 8], 0
je 0x409c9b
cmp dword [ebp - 0x14], 0
je 0x409c9b
push 0x40f630
mov eax, dword [ebp - 4]
push eax
call fcn.00409cac
add esp, 8
pop ebx
pop ecx
pop edx
pop esi
pop edi
mov eax, dword [ebp - 8]
leave
ret 4

Function at 0x409e7d
Capabilities:
Contain obfuscated stackstrings
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
push edi
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 4], eax
push 2
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jne 0x409f52
cmp dword [ebp - 8], 0
jne 0x409f52
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov al, byte [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov al, byte [eax]
push eax
call fcn.0040992f
add esp, 4
mov dword [ebp - 0x41c], 0x646c6f47
mov dword [ebp - 0x418], 0x6f736e65
mov byte [ebp - 0x414], 0x66
mov dword [ebp - 0x1c], 0
jmp 0x409f0a
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 9
jge 0x409f2c
mov eax, dword [ebp - 0x1c]
movsx eax, byte [eax + ebp - 0x41c]
mov ecx, dword [ebp + 0xc]
xor al, byte [ecx]
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + ebp - 0x41c], al
jmp 0x409f07
mov eax, dword [ebp + 0xc]
mov al, byte [eax]
mov byte [ebp - 0x413], al
push 0
lea eax, [ebp - 0x1c]
push eax
push 0xa
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x409f64
push 0
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40cba8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0x14], esi
jle 0x40cbda
push ebx
push edi
mov edi, dword [ebp + 8]
sub edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
push 4
pop ebx
lea ecx, [eax + esi]
mov eax, esi
cdq
idiv ebx
mov al, byte [edx + ebp + 0x10]
xor al, byte [ecx + edi]
inc esi
cmp esi, dword [ebp + 0x14]
mov byte [ecx], al
jl 0x40cbbb
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x4034e0
Capabilities:
Delete directory
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc44
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push ebx
push esi
xor esi, esi
cmp dword [0x51e590], 0x594
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
jne 0x403525
push 0x402b50
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
push 0x402bac
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
mov eax, dword [0x46dd28]
mov edi, dword [0x46dd2c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
call fcn.004034d9
mov eax, dword [0x46dd30]
add dword [ebp - 0x14], 0x23f
mov ebx, dword [0x46dd34]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov eax, dword [ebp - 0xc]
mov ecx, eax
shl ecx, 4
cmp dword [0x51e590], 0xc
mov dword [ebp - 4], ecx
jne 0x4035c2
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x444]
push eax
push esi
push 0x402bc4
push 0x402bd8
push 0x402be8
call dword [sym.imp.KERNEL32.dll_SearchPathA]
push esi
lea eax, [ebp - 0x844]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea eax, [ebp - 0x28]
push eax
push esi
lea eax, [ebp - 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
add dword [ebp - 4], ecx
mov ecx, dword [0x51e590]
cmp ecx, 0xfa9
jne 0x4035e0
mov dword [0x51db2c], 0xedeb2e40
cmp ecx, 0x3eb
jne 0x4035ee
mov dword [0x51d4dc], esi
mov ecx, dword [ebp - 0x14]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x10]
shr eax, cl
mov dword [0x51db28], 0xf4ea3dee
add eax, ebx
mov ecx, eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
xor ecx, dword [ebp - 4]
cmp dword [0x51e590], 0x213
mov dword [ebp - 0x18], ecx
jne 0x40362d
push esi
push 0x402bfc
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x18]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
cmp dword [0x51e590], 0xc
jne 0x403676
lea eax, [ebp - 0x18]
push eax
push esi
push esi
lea eax, [ebp - 0x30]
push eax
push esi
push esi
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_BackupWrite]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PrepareTape]
push esi
lea eax, [ebp - 0xc44]
push eax
push 0x402c28
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov eax, dword [ebp - 8]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + eax]
mov ecx, dword [ebp - 0x10]
shr eax, cl
add eax, edi
xor eax, edx
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
call fcn.004034d2
dec dword [ebp - 0x1c]
jne 0x40355a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ecx
mov ecx, dword [ebp - 8]
pop esi
mov dword [eax + 4], ecx
pop ebx
leave
ret 4
Function at 0x4036c6
Capabilities:
Create pipe
Get common file path
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x51e590]
mov ecx, dword [0x51d4e0]
sub esp, 0xc34
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x4037bf
mov ebx, ecx
mov dword [ebp - 4], eax
cmp dword [0x51e590], 0x959
jne 0x4037ad
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
xor eax, eax
mov word [ebp - 8], ax
lea edi, [ebp - 6]
stosw word es:[edi], ax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterW]
push esi
push esi
lea eax, [ebp - 0xc30]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402c90
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push 0x402cf8
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402d28
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_InitializeSListHead]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebx
call fcn.004034e0
add ebx, 8
dec dword [ebp - 4]
jne 0x4036ef
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40565b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46d494]
jne 0x405665
repz ret
jmp fcn.00408e7c

Function at 0x40ac9b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406c26
and dword [ebp - 4], 0
cmp dword [0x46f108], 0
mov ebx, eax
jne 0x40ad4c
push 0x4021bc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40adfd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4021b0
push edi
call esi
test eax, eax
je 0x40adfd
push eax
call fcn.00406bb4
mov dword [esp], 0x4021a0
push edi
mov dword [0x46f108], eax
call esi
push eax
call fcn.00406bb4
mov dword [esp], 0x40218c
push edi
mov dword [0x46f10c], eax
call esi
push eax
call fcn.00406bb4
mov dword [esp], 0x402170
push edi
mov dword [0x46f110], eax
call esi
push eax
call fcn.00406bb4
pop ecx
mov dword [0x46f118], eax
test eax, eax
je 0x40ad4c
push 0x402158
push edi
call esi
push eax
call fcn.00406bb4
pop ecx
mov dword [0x46f114], eax
mov eax, dword [0x46f114]
cmp eax, ebx
je 0x40ada4
cmp dword [0x46f118], ebx
je 0x40ada4
push eax
call fcn.00406c2f
push dword [0x46f118]
mov esi, eax
call fcn.00406c2f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40ada4
test edi, edi
je 0x40ada4
call esi
test eax, eax
je 0x40ad9b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ad9b
test byte [ebp - 0xc], 1
jne 0x40ada4
or dword [ebp + 0x10], 0x200000
jmp 0x40addd
mov eax, dword [0x46f10c]
cmp eax, ebx
je 0x40addd
push eax
call fcn.00406c2f
pop ecx
test eax, eax
je 0x40addd
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40addd
mov eax, dword [0x46f110]
cmp eax, ebx
je 0x40addd
push eax
call fcn.00406c2f
pop ecx
test eax, eax
je 0x40addd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x46f108]
call fcn.00406c2f
pop ecx
test eax, eax
je 0x40adfd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40adff
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret