joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406d04
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [eax]
cmp edx, 0x11
jle 0x406d24
mov ecx, dword [eax + edx*4]
xor dword [eax + edx*4 - 0x44], ecx
mov ecx, dword [eax + edx*4]
xor dword [eax + edx*4 - 0x38], ecx
xor ecx, ecx
mov dword [eax + edx*4], ecx
dec edx
cmp edx, 0x11
jg 0x406d0b
cmp dword [eax], 0x11
jbe 0x406d40
mov dword [eax], 0x11
jmp 0x406d33
dec dword [eax]
cmp dword [eax], 0
je 0x406d40
mov edx, dword [eax]
cmp dword [eax + edx*4], 0
je 0x406d31
ret

Function at 0x4075d0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
mov eax, dword [esi]
cmp eax, dword [ebx]
jae 0x407618
mov eax, 1
jmp 0x4075f0
mov edx, dword [esi + eax*4]
xor edx, dword [ebx + eax*4]
mov dword [edi + eax*4], edx
inc eax
cmp eax, dword [esi]
jbe 0x4075e6
mov ecx, dword [ebx]
mov edx, eax
sub ecx, dword [esi]
shl ecx, 2
shl edx, 2
push ecx
shl eax, 2
add edx, ebx
push edx
add eax, edi
push eax
call fcn.00498c8c
add esp, 0xc
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x40767e
mov ecx, dword [esi]
cmp ecx, dword [ebx]
jbe 0x407657
mov eax, 1
jmp 0x40762f
mov edx, dword [esi + eax*4]
xor edx, dword [ebx + eax*4]
mov dword [edi + eax*4], edx
inc eax
cmp eax, dword [ebx]
jbe 0x407625
mov ecx, dword [esi]
mov edx, eax
sub ecx, dword [ebx]
shl ecx, 2
shl edx, 2
push ecx
shl eax, 2
add edx, esi
push edx
add eax, edi
push eax
call fcn.00498c8c
add esp, 0xc
mov eax, dword [esi]
mov dword [edi], eax
jmp 0x40767e
mov eax, dword [ebx]
test eax, eax
jbe 0x40766a
mov edx, dword [esi + eax*4]
xor edx, dword [ebx + eax*4]
jne 0x40766a
dec eax
test eax, eax
ja 0x40765d
mov dword [edi], eax
test eax, eax
jbe 0x40767e
mov ecx, dword [esi + eax*4]
xor ecx, dword [ebx + eax*4]
mov dword [edi + eax*4], ecx
dec eax
test eax, eax
ja 0x407670
pop edi
pop esi
pop ebx
ret
Function at 0x408ea8
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, 0x4a4c84
call fcn.004992ac
cmp byte [ebx + 0x6e3d], 0
mov eax, dword [ebx + 0x13cc]
je 0x408ee6
cmp byte [eax + 0x20e9], 0
jne 0x408ee6
cmp byte [ebx + 0x6e38], 0
je 0x408ef7
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
mov eax, edx
jmp 0x40908b
mov word [ebp - 0x24], 8
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.0040f458
inc dword [ebp - 0x18]
xor edx, edx
mov word [ebp - 0x24], 0x14
movzx eax, word [ebx + 0x4718]
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, dword [ebx + 0x471c]
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.00409f40
mov eax, ebx
call fcn.00405554
cmp byte [ebp - 0x35], 0
je 0x408f74
push pe_nt_image_headers32
lea edx, [ebp - 0x238]
push edx
push dword [0x4c6ef8]
call sub.USER32.DLL_GetWindowTextA
mov eax, 0x34a
call fcn.004129c8
call fcn.00475498
call fcn.00474794
mov edx, dword [ebx + 0x46e8]
sub edx, 0x76
je 0x408f8c
sub edx, 3
je 0x408fc6
dec edx
je 0x408fd8
jmp 0x409011
test byte [ebx + 0x4714], 0x20
jne 0x408fb4
dec dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0040f4c4
mov ecx, dword [ebp - 0x34]
mov dword fs:[0], ecx
jmp 0x40908b
lea ecx, [ebp - 0x870]
mov dl, byte [ebp - 0x35]
mov eax, ebx
call fcn.004087bc
jmp 0x409011
lea ecx, [ebp - 0x870]
mov dl, byte [ebp - 0x35]
mov eax, ebx
call fcn.00409094
jmp 0x409011
push 0x4a4b70
lea eax, [ebx + 0x5480]
push eax
call fcn.00498e30
add esp, 8
test eax, eax
sete dl
and edx, 1
test dl, dl
je 0x40900a
lea ecx, [ebp - 0x870]
mov dl, byte [ebp - 0x35]
mov eax, ebx
call fcn.004092d8
jmp 0x409011
mov byte [ebp - 0x23a], 1
cmp byte [ebp - 0x35], 0
je 0x409027
lea eax, [ebp - 0x238]
call fcn.00475498
call fcn.00474794
test esi, esi
je 0x40903c
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 0x409071
cmp byte [ebp - 0x35], 0
je 0x409071
mov eax, 0x2a9
call fcn.004129c8
push eax
add ebx, 0x17
push ebx
call fcn.0047dfcc
add esp, 8
mov eax, 0x4b3b9c
mov edx, 1
call fcn.0042dc88
dec dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0040f4c4
mov ecx, dword [ebp - 0x34]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40984c
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 0x40986f
mov al, 1
cmp byte [ebp + 8], 0
mov edi, 0x80000000
je 0x409880
or edi, 0x40000000
mov dword [ebp - 8], 1
test al, al
je 0x40988f
or dword [ebp - 8], 2
xor eax, eax
cmp byte [ebx + 0x15], 0
jne 0x40989c
add eax, 0x8000000
mov dword [ebp - 0xc], eax
call fcn.004107bc
test eax, eax
je 0x4098c9
test esi, esi
je 0x4098c9
cmp word [esi], 0
je 0x4098c9
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 0x4098e0
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 0x4098f9
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jne 0x4098f9
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 0x409967
mov dword [ebx + 4], edi
test esi, esi
je 0x40992e
lea eax, [ebx + 0x418]
mov edx, esi
call fcn.00410b08
jmp 0x409937
mov word [ebx + 0x418], 0
cmp dword [ebp - 4], 0
je 0x40994e
push dword [ebp - 4]
lea ecx, [ebx + 0x17]
push ecx
call fcn.00498e7c
add esp, 8
jmp 0x40995d
lea edx, [ebx + 0x17]
mov ecx, 0x1000000
mov eax, esi
call fcn.00410820
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.00409a7c
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x409c18
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
test esi, esi
je 0x409dcb
cmp dword [edi + 0xc], 0
je 0x409c57
mov eax, dword [edi + 0xc]
dec eax
je 0x409c41
dec eax
je 0x409c4d
jmp 0x409c57
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
jmp 0x409c57
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
cmp dword [edi + 0xc], 0
je 0x409caa
xor ebx, ebx
cmp esi, ebx
jle 0x409cc7
push 0
lea eax, [ebp - 0xc]
push eax
mov edx, esi
sub edx, ebx
cmp edx, 0x4000
jge 0x409c7b
mov ecx, esi
sub ecx, ebx
jmp 0x409c80
mov ecx, 0x4000
push ecx
mov eax, dword [ebp - 4]
add eax, ebx
push eax
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne dl
and edx, 1
mov byte [ebp - 5], dl
test dl, dl
je 0x409cc7
add ebx, 0x4000
cmp esi, ebx
jg 0x409c63
jmp 0x409cc7
push 0
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 4]
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne cl
and ecx, 1
mov byte [ebp - 5], cl
cmp byte [ebp - 5], 0
jne 0x409dc7
cmp byte [edi + 0x14], 0
je 0x409dc7
cmp dword [edi + 0xc], 0
jne 0x409dc7
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
mov eax, edi
call fcn.00409ff8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
lea eax, [edi + 0x17]
call fcn.0040a71c
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
push ebx
call sub.KERNEL32.DLL_SetLastError
mov eax, esi
cdq
cmp edx, dword [ebp - 0x18]
jne 0x409d1c
cmp eax, dword [ebp - 0x1c]
jae 0x409d64
jmp 0x409d1e
jge 0x409d64
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
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 0x409d3e
cmp eax, 0xffffffff
ja 0x409d64
jmp 0x409d40
jg 0x409d64
mov eax, esi
cdq
add eax, dword [ebp - 0x14]
adc edx, dword [ebp - 0x10]
cmp edx, 0
jne 0x409d55
cmp eax, 0xffffffff
jbe 0x409d64
jmp 0x409d57
jle 0x409d64
lea edx, [edi + 0x17]
mov eax, 0x4b3b9c
call fcn.0042da04
lea edx, [edi + 0x17]
mov eax, 0x4b3b9c
call fcn.0042da38
test al, al
je 0x409db1
mov ecx, dword [ebp - 0xc]
cmp ecx, esi
jae 0x409c57
cmp dword [ebp - 0xc], 0
jbe 0x409c57
mov eax, edi
call fcn.00409ff8
push edx
push eax
mov eax, dword [ebp - 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.00409f40
jmp 0x409c57
lea ecx, [edi + 0x17]
mov eax, 0x4b3b9c
xor edx, edx
call fcn.0042d9ec
jmp 0x409dc7
mov byte [edi + 8], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409ebc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push esi
push edi
mov edi, edx
cmp dword [ebx + 0xc], 1
mov esi, ecx
jne 0x409ee6
cmp esi, 0x4e20
jle 0x409edc
mov esi, 0x4e20
push 0xfffffffffffffff6
call sub.KERNEL32.DLL_GetStdHandle
mov dword [ebx + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push esi
push edi
push dword [ebx + 4]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x409f36
mov eax, ebx
call fcn.0040a274
test al, al
je 0x409f1d
cmp esi, 0x4e20
jle 0x409f1d
mov ecx, 0x4e20
mov edx, edi
mov eax, ebx
call fcn.00409ebc
jmp 0x409f39
cmp dword [ebx + 0xc], 1
jne 0x409f31
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x6d
jne 0x409f31
xor eax, eax
jmp 0x409f39
or eax, 0xffffffff
jmp 0x409f39
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x40a37c
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.004107bc
test eax, eax
je 0x40a3a2
test ebx, ebx
je 0x40a3a2
cmp word [ebx], 0
je 0x40a3a2
push 0
push ebx
call sub.KERNEL32.DLL_CreateDirectoryW
jmp 0x40a3aa
push 0
push esi
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
je 0x40a3bd
mov ecx, edi
mov edx, ebx
mov eax, esi
call fcn.0040ac98
xor eax, eax
jmp 0x40a3d8
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
je 0x40a3cc
cmp eax, 3
jne 0x40a3d3
mov eax, 2
jmp 0x40a3d8
mov eax, 1
pop edi
pop esi
pop ebx
ret

Function at 0x40a6d4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
lea edx, [ebp - 0x400]
call fcn.0040caec
cmp byte [ebp - 0x400], 0
je 0x40a6f9
lea eax, [ebp - 0x400]
jmp 0x40a6fb
xor eax, eax
push eax
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
je 0x40a70f
cmp eax, 5
je 0x40a70f
xor edx, edx
jmp 0x40a714
mov edx, 1
mov eax, edx
mov esp, ebp
pop ebp
ret
Function at 0x40a71c
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd0
push ebx
push esi
mov ebx, eax
lea edx, [ebp - 0x430]
mov eax, ebx
call fcn.0040caec
cmp dword [0x4a4d90], 0
jne 0x40a75f
push 0x4a4d94
call sub.KERNEL32.DLL_GetModuleHandleA
mov esi, eax
test esi, esi
je 0x40a75f
push str.GetDiskFreeSpaceExA
push esi
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a4d90], eax
cmp dword [0x4a4d90], 0
je 0x40a7d0
lea edx, [ebp - 0x430]
mov ecx, 0x400
mov eax, ebx
call fcn.0040c3a4
xor eax, eax
lea edx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
push edx
lea ecx, [ebp - 8]
push ecx
lea eax, [ebp - 0x18]
push eax
cmp byte [ebp - 0x430], 0
je 0x40a79f
lea edx, [ebp - 0x430]
jmp 0x40a7a1
xor edx, edx
push edx
call dword [0x4a4d90]
test eax, eax
je 0x40a7d0
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0xc]
ja 0x40a7d0
mov eax, dword [ebp - 0x14]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, dword [ebp - 0x18]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
jmp 0x40a832
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x24]
push ecx
push eax
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x1c]
push edx
push ecx
cmp byte [ebp - 0x430], 0
je 0x40a7f1
lea eax, [ebp - 0x430]
jmp 0x40a7f3
xor eax, eax
push eax
call sub.KERNEL32.DLL_GetDiskFreeSpaceA
test eax, eax
jne 0x40a806
mov eax, 0x163e00
xor edx, edx
jmp 0x40a832
mov eax, dword [ebp - 0x1c]
imul dword [ebp - 0x20]
xor edx, edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x24]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
call fcn.0049d350
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.004107bc
test eax, eax
je 0x40a863
test ebx, ebx
je 0x40a863
cmp word [ebx], 0
je 0x40a863
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 0x40ac6c
Capabilities:
Get file attributes

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.004107bc
test eax, eax
je 0x40ac8e
test ebx, ebx
je 0x40ac8e
cmp word [ebx], 0
je 0x40ac8e
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 0x40ac98
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
call fcn.004107bc
test eax, eax
je 0x40acc5
test ebx, ebx
je 0x40acc5
cmp word [ebx], 0
je 0x40acc5
push esi
push ebx
call sub.KERNEL32.DLL_SetFileAttributesW
test eax, eax
setne al
and eax, 1
jmp 0x40acd4
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 0x40ae2c
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, 0x4a4ea4
call fcn.004992ac
mov word [ebp - 0x30], 8
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.0040f458
inc dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
mov word [ebp - 0x30], 0x14
mov word [ebp - 0x30], 0x20
mov edx, 0x10000
call fcn.00402aa4
inc dword [ebp - 0x24]
or esi, 0xffffffff
mov word [ebp - 0x30], 0x14
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov eax, edi
call fcn.0040a208
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
cmp dword [0x4c6ef8], 0
je 0x40aec2
lea eax, [ebp - 0x250]
call fcn.004754c4
push pe_nt_image_headers32
lea edx, [ebp - 0x450]
push edx
push dword [0x4c6ef8]
call sub.USER32.DLL_GetWindowTextA
push 0
push 0
xor edx, edx
mov eax, edi
call fcn.00409f40
jmp 0x40af72
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 0x40af4c
cmp eax, 0
jne 0x40af4c
cmp dword [0x4c6ef8], 0
je 0x40af47
push 0
push 0x10000
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
call fcn.0049d350
push edx
push eax
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
call fcn.0040f31c
push eax
mov eax, 0x51e
call fcn.004129c8
push eax
lea edx, [ebp - 0x650]
push edx
call fcn.0049bdcc
add esp, 0xc
lea eax, [ebp - 0x650]
call fcn.004754d4
call fcn.00474794
call fcn.004102ec
mov ecx, ebx
mov edx, dword [ebp - 0x1c]
mov eax, esi
call fcn.00411048
cmp dword [ebp + 0xc], 0x80000000
mov esi, eax
jne 0x40af67
cmp dword [ebp + 8], 0
je 0x40af72
mov eax, ebx
cdq
sub dword [ebp + 8], eax
sbb dword [ebp + 0xc], edx
cmp dword [ebp + 0xc], 0x80000000
jne 0x40af88
cmp dword [ebp + 8], 0
jne 0x40af88
mov ecx, 0x10000
jmp 0x40afa7
cmp dword [ebp + 0xc], 0
jne 0x40af99
cmp dword [ebp + 8], 0x10000
jbe 0x40afa2
jmp 0x40af9b
jle 0x40afa2
mov ecx, 0x10000
jmp 0x40afa7
mov eax, dword [ebp + 8]
mov ecx, eax
mov edx, dword [ebp - 0x1c]
mov eax, edi
call fcn.00409dd4
mov ebx, eax
test eax, eax
jne 0x40aed4
cmp dword [0x4c6ef8], 0
je 0x40afdf
lea eax, [ebp - 0x250]
call fcn.004754d4
lea eax, [ebp - 0x450]
call fcn.00475498
call fcn.00474794
mov eax, esi
mov edx, 2
xor eax, 0xffffffff
push eax
lea eax, [ebp - 0x1c]
dec dword [ebp - 0x24]
call fcn.004017f0
dec dword [ebp - 0x24]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0040f4c4
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 0x40b9f4
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x40b9fd
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, 0x4a4ffc
call fcn.004992ac
lea eax, [ebp - 0x10e4]
call fcn.004141d8
lea eax, [ebp - 0x10b8]
call fcn.004141d8
lea eax, [ebp - 0x108c]
call fcn.004141d8
push 0
lea ecx, [ebp - 0x1cf8]
mov edx, ebx
mov eax, esi
call fcn.00413298
test al, al
jne 0x40ba71
xor eax, eax
mov edx, dword [ebp - 0xc44]
mov dword fs:[0], edx
jmp 0x40bc22
cmp byte [ebp - 0x1cf8], 0
je 0x40ba83
cmp byte [ebp - 0x1060], 0
jne 0x40ba97
xor eax, eax
mov edx, dword [ebp - 0xc44]
mov dword fs:[0], edx
jmp 0x40bc22
lea eax, [ebp - 0x1cf8]
call fcn.0040be48
lea edx, [ebp - 0x1060]
call fcn.0040f55c
test eax, eax
je 0x40bac7
mov eax, esi
call fcn.0040be48
lea edx, [ebp - 0x1060]
call fcn.0040f55c
test eax, eax
je 0x40badb
xor eax, eax
mov edx, dword [ebp - 0xc44]
mov dword fs:[0], edx
jmp 0x40bc22
xor ebx, ebx
mov eax, edi
mov ecx, 0x400
mov edx, esi
call fcn.0040f778
push ebx
push str.rtmp_d
mov eax, edi
call fcn.0040be48
push eax
call fcn.0049bdcc
add esp, 0xc
mov eax, edi
xor edx, edx
call fcn.0040a838
test al, al
je 0x40bb19
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x40badd
mov eax, edi
xor edx, edx
call fcn.0040a838
test al, al
je 0x40bb3a
xor eax, eax
mov edx, dword [ebp - 0xc44]
mov dword fs:[0], edx
jmp 0x40bc22
lea eax, [ebp - 0x24f8]
mov ecx, 0x400
mov edx, esi
call fcn.0040f778
lea eax, [ebp - 0x1cf8]
call fcn.0040be48
push eax
lea eax, [ebp - 0x24f8]
call fcn.0040be48
push eax
call fcn.00498e7c
add esp, 8
push edi
lea edx, [ebp - 0x24f8]
push edx
call sub.KERNEL32.DLL_MoveFileA
test eax, eax
jne 0x40bb91
xor eax, eax
mov edx, dword [ebp - 0xc44]
mov dword fs:[0], edx
jmp 0x40bc22
mov word [ebp - 0xc34], 8
lea eax, [ebp - 0xc20]
call fcn.00409758
inc dword [ebp - 0xc28]
mov word [ebp - 0xc34], 0x14
xor ebx, ebx
xor edx, edx
mov eax, esi
call fcn.0040a838
test al, al
jne 0x40bbd4
lea eax, [ebp - 0xc20]
xor ecx, ecx
mov edx, esi
call fcn.004099c8
mov ebx, eax
lea eax, [ebp - 0x24f8]
push eax
push edi
call sub.KERNEL32.DLL_MoveFileA
test bl, bl
je 0x40bbfb
lea eax, [ebp - 0xc20]
call fcn.00409afc
lea eax, [ebp - 0xc20]
call fcn.00409b8c
mov al, 1
mov edx, 2
push eax
lea eax, [ebp - 0xc20]
dec dword [ebp - 0xc28]
call fcn.00409808
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 0x40c490
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, eax
lea eax, [ebp - 4]
push eax
call sub.SHELL32.DLL_SHGetMalloc
mov byte [esi], 0
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push 0x1a
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
test eax, eax
jne 0x40c505
push esi
push dword [ebp - 8]
call sub.SHELL32.DLL_SHGetPathFromIDListA
test eax, eax
je 0x40c505
cmp byte [esi], 0
je 0x40c505
mov eax, esi
call fcn.0040c35c
push 0x4a507e
push esi
call fcn.00498da0
add esp, 8
xor edx, edx
mov eax, esi
call fcn.0040a838
test al, al
jne 0x40c500
xor ecx, ecx
xor edx, edx
mov eax, esi
call fcn.0040a37c
test eax, eax
je 0x40c500
xor ebx, ebx
jmp 0x40c505
mov ebx, 1
test bl, bl
jne 0x40c51d
push 0x400
push esi
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov eax, esi
call fcn.0040c42c
push dword [ebp - 8]
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x14]
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

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

Disassembly:
cmp byte [0x4a5db0], 0
jne 0x410305
call fcn.004a127c
mov dword [0x4a5dac], eax
inc byte [0x4a5db0]
call fcn.004a127c
sub eax, dword [0x4a5dac]
cmp eax, 0x64
jle 0x410341
cmp dword [0x4c989c], 0
je 0x41033c
mov eax, 0x4b3b9c
mov edx, 0xff
call fcn.0042dc88
mov eax, 0x4b3b9c
mov edx, 0xff
call fcn.0042dc70
call fcn.0047d98c
cmp dword [0x4a5da8], 0
je 0x410355
push dword [0x4a5da8]
call sub.KERNEL32.DLL_Sleep
ret
Function at 0x41075c
Capabilities:
Shutdown system

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

Function at 0x411048
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, 0x4b5aec
mov dword [ebp - 4], edx
mov esi, ecx
cmp dword [edi + 4], 0
mov ebx, eax
jne 0x411068
call fcn.00411010
mov eax, dword [ebp - 4]
jmp 0x411081
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 0x411089
test al, 7
jne 0x41106d
cmp esi, 8
jb 0x411112
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 0x411092
xor ecx, ecx
mov dword [ebp - 8], ecx
jmp 0x411134
mov ecx, dword [ebp - 8]
mov edx, ebx
shr ebx, 8
xor dl, byte [eax + ecx]
and edx, 0xff
mov ecx, dword [edi + edx*4]
xor ecx, ebx
mov ebx, ecx
inc dword [ebp - 8]
cmp esi, dword [ebp - 8]
ja 0x411119
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret