joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408c18
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff790
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 0x35], dl
mov ebx, eax
mov eax, 0x49fc70
call fcn.00494df8
cmp byte [ebx + 0x6e2d], 0
mov eax, dword [ebx + 0x13cc]
je 0x408c56
cmp byte [eax + 0x20e1], 0
jne 0x408c56
cmp byte [ebx + 0x6e28], 0
je 0x408c67
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
mov eax, edx
jmp 0x408dfb
mov word [ebp - 0x24], 8
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.0040ecc8
inc dword [ebp - 0x18]
xor edx, edx
mov word [ebp - 0x24], 0x14
movzx eax, word [ebx + 0x4708]
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, dword [ebx + 0x470c]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
push edx
push eax
mov eax, ebx
xor edx, edx
call fcn.00409c04
mov eax, ebx
call fcn.00405380
cmp byte [ebp - 0x35], 0
je 0x408ce4
push pe_nt_image_headers32
lea edx, [ebp - 0x238]
push edx
push dword [0x4c144c]
call sub.USER32.DLL_GetWindowTextA
mov eax, 0x34a
call fcn.00411fe8
call fcn.0047e4c0
call fcn.0047d960
mov edx, dword [ebx + 0x46d8]
sub edx, 0x76
je 0x408cfc
sub edx, 3
je 0x408d36
dec edx
je 0x408d48
jmp 0x408d81
test byte [ebx + 0x4704], 0x20
jne 0x408d24
dec dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0040ed34
mov ecx, dword [ebp - 0x34]
mov dword fs:[0], ecx
jmp 0x408dfb
lea ecx, [ebp - 0x870]
mov dl, byte [ebp - 0x35]
mov eax, ebx
call fcn.00408524
jmp 0x408d81
lea ecx, [ebp - 0x870]
mov dl, byte [ebp - 0x35]
mov eax, ebx
call fcn.00408e04
jmp 0x408d81
push 0x49fb64
lea eax, [ebx + 0x5470]
push eax
call fcn.0049497c
add esp, 8
test eax, eax
sete dl
and edx, 1
test dl, dl
je 0x408d7a
lea ecx, [ebp - 0x870]
mov dl, byte [ebp - 0x35]
mov eax, ebx
call fcn.0040905c
jmp 0x408d81
mov byte [ebp - 0x23a], 1
cmp byte [ebp - 0x35], 0
je 0x408d97
lea eax, [ebp - 0x238]
call fcn.0047e4c0
call fcn.0047d960
test esi, esi
je 0x408dac
push esi
mov edi, esi
lea esi, [ebp - 0x870]
mov ecx, 0x18e
rep movsd dword es:[edi], dword [esi]
pop esi
cmp byte [ebp - 0x23a], 0
je 0x408de1
cmp byte [ebp - 0x35], 0
je 0x408de1
mov eax, 0x2a9
call fcn.00411fe8
push eax
add ebx, 0x17
push ebx
call fcn.004487f8
add esp, 8
mov eax, 0x4ae120
mov edx, 1
call fcn.0042cee4
dec dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0040ed34
mov ecx, dword [ebp - 0x34]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409518
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov ebx, eax
push edi
mov dword [ebp - 4], edx
xor edx, edx
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0xc18], edx
cmp byte [ebx + 0x16], 0
mov esi, ecx
je 0x40953b
mov al, 1
cmp byte [ebp + 8], 0
mov edi, 0x80000000
je 0x40954c
or edi, 0x40000000
mov dword [ebp - 8], 1
test al, al
je 0x40955b
or dword [ebp - 8], 2
xor eax, eax
cmp byte [ebx + 0x15], 0
jne 0x409568
add eax, 0x8000000
mov dword [ebp - 0xc], eax
call fcn.0040ff8c
test eax, eax
je 0x409595
test esi, esi
je 0x409595
cmp word [esi], 0
je 0x409595
push 0
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp - 8]
push edi
push esi
call sub.KERNEL32.DLL_CreateFileW
mov edi, eax
jmp 0x4095ac
push 0
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp - 8]
push edi
push dword [ebp - 4]
call sub.KERNEL32.DLL_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
jne 0x4095c5
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jne 0x4095c5
mov dword [ebx + 0xc18], 1
xor edx, edx
cmp edi, 0xffffffff
mov byte [ebx + 0x12], 0
setne cl
mov dword [ebx + 0xc], edx
and ecx, 1
mov byte [ebx + 0x10], 0
mov byte [ebp - 0xd], cl
cmp byte [ebp - 0xd], 0
je 0x409633
mov dword [ebx + 4], edi
test esi, esi
je 0x4095fa
lea eax, [ebx + 0x418]
mov edx, esi
call fcn.00410200
jmp 0x409603
mov word [ebx + 0x418], 0
cmp dword [ebp - 4], 0
je 0x40961a
push dword [ebp - 4]
lea ecx, [ebx + 0x17]
push ecx
call fcn.004949c8
add esp, 8
jmp 0x409629
lea edx, [ebx + 0x17]
mov ecx, 0x10000000
mov eax, esi
call fcn.0040ffe0
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.00409748
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4098e0
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe8
mov esi, ecx
test esi, esi
mov edi, eax
mov dword [esp], edx
je 0x409a98
mov eax, dword [edi + 0xc]
test eax, eax
je 0x40991b
dec eax
je 0x409905
dec eax
je 0x409911
jmp 0x40991b
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
jmp 0x40991b
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
cmp dword [edi + 0xc], 0
je 0x40996d
xor ebp, ebp
cmp esi, ebp
jle 0x409989
push 0
lea eax, [esp + 8]
push eax
mov edx, esi
sub edx, ebp
cmp edx, 0x4000
jge 0x409940
mov ecx, esi
sub ecx, ebp
jmp 0x409945
mov ecx, 0x4000
push ecx
mov eax, dword [esp + 0xc]
add eax, ebp
push eax
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne bl
and ebx, 1
test bl, bl
je 0x409989
add ebp, 0x4000
cmp esi, ebp
jg 0x409927
jmp 0x409989
push 0
lea eax, [esp + 8]
push eax
push esi
push dword [esp + 0xc]
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne bl
and ebx, 1
test bl, bl
jne 0x409a94
cmp byte [edi + 0x14], 0
je 0x409a94
cmp dword [edi + 0xc], 0
jne 0x409a94
call sub.KERNEL32.DLL_GetLastError
mov ebp, eax
mov eax, edi
call fcn.00409cbc
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
lea eax, [edi + 0x17]
call fcn.0040a3b4
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
push ebp
call sub.KERNEL32.DLL_SetLastError
mov eax, esi
cdq
cmp edx, dword [esp + 0x14]
jne 0x4099e2
cmp eax, dword [esp + 0x10]
jae 0x409a2e
jmp 0x4099e4
jge 0x409a2e
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
push edx
push eax
mov eax, esi
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
cmp edx, 0
jne 0x409a06
cmp eax, 0xffffffff
ja 0x409a2e
jmp 0x409a08
jg 0x409a2e
mov eax, esi
cdq
add eax, dword [esp + 8]
adc edx, dword [esp + 0xc]
cmp edx, 0
jne 0x409a1f
cmp eax, 0xffffffff
jbe 0x409a2e
jmp 0x409a21
jle 0x409a2e
lea edx, [edi + 0x17]
mov eax, 0x4ae120
call fcn.0042cc6c
lea edx, [edi + 0x17]
mov eax, 0x4ae120
call fcn.0042cca0
test al, al
je 0x409a7e
mov ecx, dword [esp + 4]
cmp ecx, esi
jae 0x40991b
cmp dword [esp + 4], 0
jbe 0x40991b
mov eax, edi
call fcn.00409cbc
push edx
push eax
mov eax, dword [esp + 0xc]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
xor edx, edx
mov eax, edi
call fcn.00409c04
jmp 0x40991b
lea ecx, [edi + 0x17]
mov eax, 0x4ae120
xor edx, edx
call fcn.0042cc54
jmp 0x409a94
mov byte [edi + 8], 1
add esp, 0x18
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x409b84
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, eax
push esi
push edi
push ecx
mov edi, edx
cmp dword [ebx + 0xc], 1
mov esi, ecx
jne 0x409bab
cmp esi, 0x4e20
jle 0x409ba1
mov esi, 0x4e20
push 0xfffffffffffffff6
call sub.KERNEL32.DLL_GetStdHandle
mov dword [ebx + 4], eax
push 0
lea eax, [esp + 4]
push eax
push esi
push edi
push dword [ebx + 4]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x409bfc
mov eax, ebx
call fcn.00409f28
test al, al
je 0x409be3
cmp esi, 0x4e20
jle 0x409be3
mov ecx, 0x4e20
mov edx, edi
mov eax, ebx
call fcn.00409b84
jmp 0x409bff
cmp dword [ebx + 0xc], 1
jne 0x409bf7
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x6d
jne 0x409bf7
xor eax, eax
jmp 0x409bff
or eax, 0xffffffff
jmp 0x409bff
mov eax, dword [esp]
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40a030
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
call fcn.0040ff8c
test eax, eax
je 0x40a056
test ebx, ebx
je 0x40a056
cmp word [ebx], 0
je 0x40a056
push 0
push ebx
call sub.KERNEL32.DLL_CreateDirectoryW
jmp 0x40a05e
push 0
push esi
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
je 0x40a071
mov ecx, edi
mov edx, ebx
mov eax, esi
call fcn.0040a938
xor eax, eax
jmp 0x40a08c
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
je 0x40a080
cmp eax, 3
jne 0x40a087
mov eax, 2
jmp 0x40a08c
mov eax, 1
pop edi
pop esi
pop ebx
ret

Function at 0x40a378
Capabilities:
Get disk information

Disassembly:
add esp, 0xfffffc00
mov edx, esp
call fcn.0040c504
cmp byte [esp], 0
je 0x40a38f
mov eax, esp
jmp 0x40a391
xor eax, eax
push eax
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
je 0x40a3a5
cmp eax, 5
je 0x40a3a5
xor edx, edx
jmp 0x40a3aa
mov edx, 1
mov eax, edx
add esp, 0x400
ret
Function at 0x40a3b4
Capabilities:
Get disk size

Disassembly:
push ebx
push esi
add esp, 0xfffffbd0
mov ebx, eax
lea edx, [esp + 0x30]
mov eax, ebx
call fcn.0040c504
cmp dword [0x49fd7c], 0
jne 0x40a3f2
push 0x49fd80
call sub.KERNEL32.DLL_GetModuleHandleA
mov esi, eax
test esi, esi
je 0x40a3f2
push str.GetDiskFreeSpaceExA
push esi
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x49fd7c], eax
cmp dword [0x49fd7c], 0
je 0x40a461
lea edx, [esp + 0x30]
mov eax, ebx
call fcn.0040bf7c
xor ecx, ecx
lea eax, [esp + 8]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ecx
push eax
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x18]
push eax
cmp byte [esp + 0x3c], 0
je 0x40a42c
lea edx, [esp + 0x3c]
jmp 0x40a42e
xor edx, edx
push edx
call dword [0x49fd7c]
test eax, eax
je 0x40a461
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0xc]
ja 0x40a461
mov eax, dword [esp + 0x14]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, dword [esp + 0x18]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
jmp 0x40a4ce
lea ecx, [esp + 0x24]
push ecx
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x24]
push ecx
cmp byte [esp + 0x40], 0
je 0x40a482
lea eax, [esp + 0x40]
jmp 0x40a484
xor eax, eax
push eax
call sub.KERNEL32.DLL_GetDiskFreeSpaceA
test eax, eax
jne 0x40a497
mov eax, 0x163e00
xor edx, edx
jmp 0x40a4ce
mov eax, dword [esp + 0x18]
imul dword [esp + 0x1c]
xor edx, edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x20]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
call fcn.00498ed0
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
add esp, 0x430
pop esi
pop ebx
ret

Function at 0x40a4d8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.0040ff8c
test eax, eax
je 0x40a503
test ebx, ebx
je 0x40a503
cmp word [ebx], 0
je 0x40a503
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret

Function at 0x40a90c
Capabilities:
Get file attributes

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.0040ff8c
test eax, eax
je 0x40a92e
test ebx, ebx
je 0x40a92e
cmp word [ebx], 0
je 0x40a92e
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
pop esi
pop ebx
ret

Function at 0x40a938
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
call fcn.0040ff8c
test eax, eax
je 0x40a965
test ebx, ebx
je 0x40a965
cmp word [ebx], 0
je 0x40a965
push esi
push ebx
call sub.KERNEL32.DLL_SetFileAttributesW
test eax, eax
setne al
and eax, 1
jmp 0x40a974
push esi
push edi
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
setne al
and eax, 1
pop edi
pop esi
pop ebx
ret
Function at 0x40aabc
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9b0
push ebx
push esi
push edi
mov edi, eax
mov eax, 0x49fe90
call fcn.00494df8
mov word [ebp - 0x30], 8
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.0040ecc8
inc dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
mov word [ebp - 0x30], 0x14
mov word [ebp - 0x30], 0x20
mov edx, 0x10000
call fcn.00402a70
inc dword [ebp - 0x24]
or esi, 0xffffffff
mov word [ebp - 0x30], 0x14
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
cmp dword [0x4c144c], 0
je 0x40ab45
lea eax, [ebp - 0x250]
call fcn.0047e4e8
push pe_nt_image_headers32
lea edx, [ebp - 0x450]
push edx
push dword [0x4c144c]
call sub.USER32.DLL_GetWindowTextA
mov eax, edi
call fcn.00409ebc
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
push 0
push 0
xor edx, edx
mov eax, edi
call fcn.00409c04
jmp 0x40ac02
add dword [ebp - 0x48], 1
adc dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
and eax, 0xf
xor edx, edx
cmp edx, 0
jne 0x40abdc
cmp eax, 0
jne 0x40abdc
cmp dword [0x4c144c], 0
je 0x40abd7
push 0
push 0x10000
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
call fcn.00498ed0
push edx
push eax
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
call fcn.0040eba8
push eax
mov eax, 0x51e
call fcn.00411fe8
push eax
lea edx, [ebp - 0x650]
push edx
call fcn.00497928
add esp, 0xc
lea eax, [ebp - 0x650]
call fcn.0047e4f8
call fcn.0047d960
call fcn.0040fac0
mov ecx, ebx
mov edx, dword [ebp - 0x1c]
mov eax, esi
call fcn.00410734
cmp dword [ebp + 0xc], 0x80000000
mov esi, eax
jne 0x40abf7
cmp dword [ebp + 8], 0
je 0x40ac02
mov eax, ebx
cdq
sub dword [ebp + 8], eax
sbb dword [ebp + 0xc], edx
cmp dword [ebp + 0xc], 0x80000000
jne 0x40ac18
cmp dword [ebp + 8], 0
jne 0x40ac18
mov ecx, 0x10000
jmp 0x40ac37
cmp dword [ebp + 0xc], 0
jne 0x40ac29
cmp dword [ebp + 8], 0x10000
jbe 0x40ac32
jmp 0x40ac2b
jle 0x40ac32
mov ecx, 0x10000
jmp 0x40ac37
mov eax, dword [ebp + 8]
mov ecx, eax
mov edx, dword [ebp - 0x1c]
mov eax, edi
call fcn.00409aa0
mov ebx, eax
test eax, eax
jne 0x40ab64
cmp dword [0x4c144c], 0
je 0x40ac6f
lea eax, [ebp - 0x250]
call fcn.0047e4f8
lea eax, [ebp - 0x450]
call fcn.0047e4c0
call fcn.0047d960
mov eax, esi
mov edx, 2
xor eax, 0xffffffff
push eax
lea eax, [ebp - 0x1c]
dec dword [ebp - 0x24]
call fcn.004017ec
dec dword [ebp - 0x24]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0040ed34
pop eax
mov edx, dword [ebp - 0x40]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40b5dc
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x40b5e5
mov eax, dword [ebp - 4]
add esp, 0xfffffb0c
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
lea edi, [ebp - 0x20f8]
mov eax, 0x49ffc0
call fcn.00494df8
lea eax, [ebp - 0x10e4]
call fcn.00413750
lea eax, [ebp - 0x10b8]
call fcn.00413750
lea eax, [ebp - 0x108c]
call fcn.00413750
push 0
lea ecx, [ebp - 0x1cf8]
mov edx, ebx
mov eax, esi
call fcn.00412878
test al, al
jne 0x40b659
xor eax, eax
mov edx, dword [ebp - 0xc44]
mov dword fs:[0], edx
jmp 0x40b80e
cmp byte [ebp - 0x1cf8], 0
je 0x40b66b
cmp byte [ebp - 0x1060], 0
jne 0x40b67f
xor eax, eax
mov edx, dword [ebp - 0xc44]
mov dword fs:[0], edx
jmp 0x40b80e
lea eax, [ebp - 0x1cf8]
call fcn.0040ba30
lea edx, [ebp - 0x1060]
call fcn.0040edcc
test eax, eax
je 0x40b6af
mov eax, esi
call fcn.0040ba30
lea edx, [ebp - 0x1060]
call fcn.0040edcc
test eax, eax
je 0x40b6c3
xor eax, eax
mov edx, dword [ebp - 0xc44]
mov dword fs:[0], edx
jmp 0x40b80e
xor ebx, ebx
push 0x400
push esi
push edi
call fcn.00494ba8
add esp, 0xc
push ebx
push str.rtmp_d
mov eax, edi
call fcn.0040ba30
push eax
call fcn.00497928
add esp, 0xc
mov eax, edi
xor edx, edx
call fcn.0040a4d8
test al, al
je 0x40b702
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x40b6c5
mov eax, edi
xor edx, edx
call fcn.0040a4d8
test al, al
je 0x40b723
xor eax, eax
mov edx, dword [ebp - 0xc44]
mov dword fs:[0], edx
jmp 0x40b80e
push 0x400
push esi
lea ecx, [ebp - 0x24f8]
push ecx
call fcn.00494ba8
add esp, 0xc
lea eax, [ebp - 0x1cf8]
call fcn.0040ba30
push eax
lea eax, [ebp - 0x24f8]
call fcn.0040ba30
push eax
call fcn.004949c8
add esp, 8
push edi
lea edx, [ebp - 0x24f8]
push edx
call sub.KERNEL32.DLL_MoveFileA
test eax, eax
jne 0x40b77d
xor eax, eax
mov edx, dword [ebp - 0xc44]
mov dword fs:[0], edx
jmp 0x40b80e
mov word [ebp - 0xc34], 8
lea eax, [ebp - 0xc20]
call fcn.00409424
inc dword [ebp - 0xc28]
mov word [ebp - 0xc34], 0x14
xor ebx, ebx
xor edx, edx
mov eax, esi
call fcn.0040a4d8
test al, al
jne 0x40b7c0
lea eax, [ebp - 0xc20]
xor ecx, ecx
mov edx, esi
call fcn.00409694
mov ebx, eax
lea eax, [ebp - 0x24f8]
push eax
push edi
call sub.KERNEL32.DLL_MoveFileA
test bl, bl
je 0x40b7e7
lea eax, [ebp - 0xc20]
call fcn.004097c8
lea eax, [ebp - 0xc20]
call fcn.0040985c
mov al, 1
mov edx, 2
push eax
lea eax, [ebp - 0xc20]
dec dword [ebp - 0xc28]
call fcn.004094d4
pop eax
mov edx, dword [ebp - 0xc44]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40fac0
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [0x4a0bac], 0
jne 0x40fad9
call fcn.0049cdec
mov dword [0x4a0ba8], eax
inc byte [0x4a0bac]
call fcn.0049cdec
sub eax, dword [0x4a0ba8]
cmp eax, 0x64
jle 0x40fb15
cmp dword [0x4c3df0], 0
je 0x40fb10
mov eax, 0x4ae120
mov edx, 0xff
call fcn.0042cee4
mov eax, 0x4ae120
mov edx, 0xff
call fcn.0042cecc
call fcn.004481c8
mov eax, dword [0x4a0ba4]
test eax, eax
je 0x40fb24
push eax
call sub.KERNEL32.DLL_Sleep
ret
Function at 0x40ff30
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
push esp
push 0x28
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.ADVAPI32.DLL_OpenProcessToken
test eax, eax
je 0x40ff7c
lea eax, [esp + 8]
push eax
push str.SeShutdownPrivilege
push 0
call sub.ADVAPI32.DLL_LookupPrivilegeValueA
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea edx, [esp + 0x10]
push edx
push 0
push dword [esp + 0x14]
call sub.ADVAPI32.DLL_AdjustTokenPrivileges
push 0x80000000
push 0xd
call sub.USER32.DLL_ExitWindowsEx
add esp, 0x14
ret

Function at 0x410734
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, 0x4b0070
push ebp
mov ebp, edx
cmp dword [edi + 4], 0
mov esi, ecx
mov ebx, eax
jne 0x41074e
call fcn.004106fc
mov eax, ebp
jmp 0x410766
mov edx, ebx
xor ecx, ecx
xor dl, byte [eax]
dec esi
mov cl, dl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
inc eax
mov ebx, edx
test esi, esi
jbe 0x41076e
test al, 7
jne 0x410752
cmp esi, 8
jb 0x4107f7
xor ebx, dword [eax]
xor ecx, ecx
mov cl, bl
sub esi, 8
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
xor ebx, dword [eax + 4]
add eax, 8
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
cmp esi, 8
mov ebx, edx
jae 0x410777
xor edx, edx
jmp 0x410811
mov ecx, ebx
xor cl, byte [eax + edx]
and ecx, 0xff
shr ebx, 8
mov ecx, dword [edi + ecx*4]
xor ecx, ebx
mov ebx, ecx
inc edx
cmp esi, edx
ja 0x4107fb
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4108e4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffec
mov dword [esp], edx
mov edx, dword [esp]
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
xor edx, dword [eax + 0x204]
mov dword [esp + 4], edx
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 4]
xor edx, dword [eax + 0x208]
mov dword [esp + 8], edx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x10]
mov ebx, dword [ecx + 8]
mov esi, dword [edx + 0xc]
xor ebx, dword [eax + 0x20c]
xor esi, dword [eax + 0x210]
xor edx, edx
mov ecx, esi
mov edi, esi
shr edi, 0x15
shl ecx, 0xb
or ecx, edi
mov edi, edx
and edi, 3
add ecx, ebx
xor ecx, dword [eax + edi*4 + 0x204]
mov ebp, ecx
mov edi, ecx
shr ebp, 8
and edi, 0xff
and ebp, 0xff
movzx edi, byte [eax + edi + 0x104]
movzx ebp, byte [eax + ebp + 0x104]
shl ebp, 8
or edi, ebp
mov ebp, ecx
shr ebp, 0x10
shr ecx, 0x18
and ebp, 0xff
and ecx, 0xff
movzx ebp, byte [eax + ebp + 0x104]
movzx ecx, byte [eax + ecx + 0x104]
shl ebp, 0x10
shl ecx, 0x18
or edi, ebp
or edi, ecx
mov ecx, ebx
xor edi, dword [esp + 4]
mov dword [esp + 0xc], edi
mov edi, ebx
shr edi, 0xf
shl ecx, 0x11
or ecx, edi
mov edi, edx
and edi, 3
xor ecx, esi
add ecx, dword [eax + edi*4 + 0x204]
mov ebp, ecx
mov edi, ecx
shr ebp, 8
and edi, 0xff
and ebp, 0xff
movzx edi, byte [eax + edi + 0x104]
movzx ebp, byte [eax + ebp + 0x104]
shl ebp, 8
or edi, ebp
mov ebp, ecx
shr ebp, 0x10
shr ecx, 0x18
and ebp, 0xff
and ecx, 0xff
movzx ebp, byte [eax + ebp + 0x104]
movzx ecx, byte [eax + ecx + 0x104]
shl ebp, 0x10
shl ecx, 0x18
or edi, ebp
or edi, ecx
xor edi, dword [esp + 8]
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
mov ecx, edi
mov esi, ecx
mov ebx, dword [esp + 0xc]
inc edx
cmp edx, 0x20
jl 0x410932
mov edx, dword [esp + 0x10]
xor ebx, dword [eax + 0x204]
mov dword [edx], ebx
xor esi, dword [eax + 0x208]
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], esi
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x10]
xor edx, dword [eax + 0x20c]
mov dword [ecx + 8], edx
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x10]
xor edx, dword [eax + 0x210]
mov dword [ecx + 0xc], edx
mov edx, dword [esp]
call fcn.00410c30
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x410a84
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe0
mov ebx, eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
xor ecx, dword [ebx + 0x204]
mov dword [esp], ecx
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 4]
xor ecx, dword [ebx + 0x208]
mov dword [esp + 4], ecx
mov eax, dword [esp + 0xc]
mov esi, dword [eax + 8]
mov eax, dword [esp + 0xc]
xor esi, dword [ebx + 0x20c]
mov edi, dword [eax + 0xc]
xor edi, dword [ebx + 0x210]
push 0x10
push edx
lea eax, [esp + 0x18]
push eax
call fcn.004947d8
add esp, 0xc
mov edx, 0x1f
mov eax, edi
mov ecx, edi
shr ecx, 0x15
shl eax, 0xb
or eax, ecx
mov ecx, edx
and ecx, 3
add eax, esi
xor eax, dword [ebx + ecx*4 + 0x204]
mov ebp, eax
mov ecx, eax
shr ebp, 8
and ecx, 0xff
and ebp, 0xff
movzx ecx, byte [ebx + ecx + 0x104]
movzx ebp, byte [ebx + ebp + 0x104]
shl ebp, 8
or ecx, ebp
mov ebp, eax
shr ebp, 0x10
shr eax, 0x18
and ebp, 0xff
and eax, 0xff
movzx ebp, byte [ebx + ebp + 0x104]
movzx eax, byte [ebx + eax + 0x104]
shl ebp, 0x10
shl eax, 0x18
or ecx, ebp
or ecx, eax
mov eax, esi
xor ecx, dword [esp]
mov dword [esp + 8], ecx
mov ecx, esi
shr ecx, 0xf
shl eax, 0x11
or eax, ecx
mov ecx, edx
and ecx, 3
xor eax, edi
add eax, dword [ebx + ecx*4 + 0x204]
mov ebp, eax
mov ecx, eax
shr ebp, 8
and ecx, 0xff
and ebp, 0xff
movzx ecx, byte [ebx + ecx + 0x104]
movzx ebp, byte [ebx + ebp + 0x104]
shl ebp, 8
or ecx, ebp
mov ebp, eax
shr ebp, 0x10
shr eax, 0x18
and ebp, 0xff
and eax, 0xff
movzx ebp, byte [ebx + ebp + 0x104]
movzx eax, byte [ebx + eax + 0x104]
shl ebp, 0x10
shl eax, 0x18
or ecx, ebp
or ecx, eax
xor ecx, dword [esp + 4]
mov dword [esp], esi
mov dword [esp + 4], edi
mov eax, ecx
mov edi, eax
mov esi, dword [esp + 8]
dec edx
test edx, edx
jge 0x410ae0
mov eax, dword [esp + 0xc]
xor esi, dword [ebx + 0x204]
mov dword [eax], esi
xor edi, dword [ebx + 0x208]
mov edx, dword [esp + 0xc]
mov dword [edx + 4], edi
mov ecx, dword [esp]
mov eax, dword [esp + 0xc]
xor ecx, dword [ebx + 0x20c]
mov dword [eax + 8], ecx
mov eax, ebx
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0xc]
xor edx, dword [ebx + 0x210]
mov dword [ecx + 0xc], edx
lea edx, [esp + 0x10]
call fcn.00410c30
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x410c30
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, 0x4b0070
xor ecx, ecx
movzx esi, byte [edx + ecx]
mov esi, dword [ebx + esi*4]
xor dword [eax + 0x204], esi
movzx esi, byte [edx + ecx + 1]
mov esi, dword [ebx + esi*4]
xor dword [eax + 0x208], esi
movzx esi, byte [edx + ecx + 2]
mov esi, dword [ebx + esi*4]
xor dword [eax + 0x20c], esi
movzx esi, byte [edx + ecx + 3]
mov esi, dword [ebx + esi*4]
xor dword [eax + 0x210], esi
add ecx, 4
cmp ecx, 0x10
jl 0x410c39
pop esi
pop ebx
ret