joyce8/EMBER2024-capa huggingface dataset:
Function at 0x625fc4
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x626202
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
inc dword [eax + 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov ebx, dword [ebp - 4]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x28], ecx
xor eax, eax
lea ebx, [eax + 0xc]
add ebx, ecx
xor edx, edx
push ebp
push 0x6261a7
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 0xffffffffffffffff
push 0
call sub.kernel32.dll_CreateEventW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x626039
mov eax, 0x626220
call fcn.0060ce84
xor edx, edx
push ebp
push 0x62613c
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x14
call fcn.00407760
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
push 0x14
mov eax, dword [ebp - 4]
add eax, 0x4034
push eax
push ebx
mov eax, dword [ebp - 4]
add eax, 0x20
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
call sub.kernel32.dll_TransactNamedPipe
test eax, eax
jne 0x626125
call sub.kernel32.dll_GetLastError
cmp eax, 0x3e5
je 0x6260a1
mov eax, 0x626244
call fcn.0060ce84
xor edx, edx
push ebp
push 0x62610e
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [ebp + 8], 0
je 0x6260e1
mov eax, dword [ebp - 4]
cmp word [eax + 0x1a], 0
je 0x6260e1
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x1c]
call dword [ebx + 0x18]
push 0x4ff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xc]
push eax
push 1
call fcn.00414b38
cmp eax, 1
je 0x6260bf
pop dword fs:[0]
add esp, 8
push 0x626115
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
call sub.kernel32.dll_GetOverlappedResult
mov ebx, eax
call sub.kernel32.dll_GetLastError
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x626143
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
ret

Function at 0x627c50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
push 1
lea eax, [ebp - 4]
push eax
mov eax, ebx
call fcn.0040b278
mov ecx, eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax - 1]
mov edx, 0x80000002
call fcn.005c7a14
test eax, eax
jne 0x627cc3
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 8]
push eax
push 0
mov eax, esi
call fcn.0040b278
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x627cb2
cmp dword [ebp - 8], 4
je 0x627cb6
xor ebx, ebx
jmp 0x627cb8
mov bl, 1
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
jmp 0x627cc5
xor ebx, ebx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x67d96c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov ebx, esi
test ebx, ebx
je 0x67d985
sub ebx, 4
mov ebx, dword [ebx]
inc ebx
mov eax, ebx
add eax, eax
push eax
mov eax, esi
call fcn.0040b278
push eax
push 1
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x67d9b9
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
xor eax, eax
call fcn.0067d838
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x67f84c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x67f9bd
push dword fs:[eax]
mov dword fs:[eax], esp
test cl, cl
je 0x67f8a1
mov eax, dword [0x6cdda8]
cmp dword [eax], 0xa0042ee
jae 0x67f8a1
mov eax, dword [ebp + 8]
cmp byte [eax], 0
jne 0x67f927
mov eax, 0x67f9d8
call fcn.00616130
mov eax, dword [ebp + 8]
mov byte [eax], 1
jmp 0x67f927
test cl, cl
je 0x67f8ac
mov esi, 0x80000001
jmp 0x67f8b1
mov esi, 0x80000002
push 0
push 2
lea eax, [ebp - 8]
push eax
mov eax, dword [0x6cdc84]
movzx eax, byte [eax]
mov ecx, dword [eax*4 + 0x6cd2a0]
mov edx, esi
xor eax, eax
call fcn.005c7a14
test eax, eax
jne 0x67f91d
mov esi, ebx
test esi, esi
je 0x67f8e0
sub esi, 4
mov esi, dword [esi]
inc esi
mov eax, esi
add eax, eax
push eax
mov eax, ebx
call fcn.0040b278
push eax
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.0040b278
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x67f912
mov eax, 0x67fab4
call fcn.00616130
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
jmp 0x67f927
mov eax, 0x67fb18
call fcn.00616130
cmp byte [ebp + 0xc], 0
je 0x67f9a2
mov eax, ebx
call fcn.0040b278
push eax
call fcn.004143f0
test eax, eax
je 0x67f950
push 0
push 0
push 0x1d
push 0xffff
call fcn.00414c20
jmp 0x67f9a2
lea ecx, [ebp - 0x10]
mov edx, 0x67fb6c
mov ax, 0x47
call fcn.005cd508
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.005c82fc
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x6cded8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x6cded8]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [0x6cded8]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x1c]
mov ecx, 2
pop eax
call fcn.0067cdf4
test al, al
je 0x67f92d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x67f9c4
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0040a228
ret
Function at 0x6949d4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
call fcn.006948a8
lea eax, [ebp - 0x18]
push eax
push 0
push 0x4a
mov eax, dword [0x6d6448]
push eax
call fcn.00414c00
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
xor ecx, ecx
mov dword [edx], ecx
call fcn.00408444
cmp ebx, 0x6c840001
jne 0x694a34
call fcn.00428ffc
mov eax, 0xffff0000
and eax, ebx
cmp eax, 0x6c830000
je 0x694a58
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x1c], 0
lea edx, [ebp - 0x20]
xor ecx, ecx
mov eax, 0x694b0c
call fcn.0060cd84
mov word [ebp - 0xa], bx
call sub.kernel32.dll_GetTickCount
mov ebx, eax
call dword [ebp - 8]
call sub.kernel32.dll_GetTickCount
mov edx, eax
sub edx, ebx
cmp edx, 0xa
jb 0x694aae
mov ebx, eax
mov edx, 1
movzx eax, word [ebp - 0xa]
call fcn.00694928
mov esi, eax
mov eax, esi
sub ax, 2
je 0x694aae
dec eax
sub ax, 2
jb 0x694ac2
movzx eax, si
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
lea edx, [ebp - 0x20]
xor ecx, ecx
mov eax, 0x694b6c
call fcn.0060cd84
push 0x4ff
push 0xa
push 0
push 0
push 0
call fcn.00414b38
jmp 0x694a63
mov edx, 2
movzx eax, word [ebp - 0xa]
call fcn.00694928
movzx ebx, ax
mov edx, 3
movzx eax, word [ebp - 0xa]
call fcn.00694928
movzx eax, ax
shl eax, 0x10
or ebx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
cmp si, 3
sete al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x696e04
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push ecx
mov ebx, eax
mov eax, ebx
call fcn.00696e88
call fcn.00406f0c
mov esi, eax
push esp
push 0x40
mov eax, ebx
call fcn.00696e88
push eax
push esi
call sub.kernel32.dll_VirtualProtect
mov edx, esi
mov eax, ebx
call fcn.00696e38
mov eax, esi
pop edx
pop esi
pop ebx
ret
Function at 0x69fa6c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x69faf0
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
je 0x69fad8
mov ebx, esi
test ebx, ebx
je 0x69fa9e
sub ebx, 4
mov ebx, dword [ebx]
inc ebx
mov eax, ebx
add eax, eax
push eax
mov eax, esi
call fcn.0040b278
push eax
push 1
push 0
lea eax, [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, 0x69fb0c
call fcn.0040b4c8
mov eax, dword [ebp - 8]
call fcn.0040b278
push eax
push edi
call sub.advapi32.dll_RegSetValueExW
test eax, eax
sete al
mov ebx, eax
jmp 0x69fada
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x69faf7
lea eax, [ebp - 8]
call fcn.0040a1c8
ret

Function at 0x6a5f04
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
push edi
push ebp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x6a5f0e
mov eax, dword [esp + 0x2000]
add esp, 4
mov edi, edx
mov esi, eax
push 0x6a5fc4
push 0x6a5ff8
call sub.kernel32.dll_GetModuleHandleW
push eax
call fcn.00414020
mov ebx, eax
test ebx, ebx
je 0x6a5fad
mov eax, esi
call fcn.0040b278
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x6a5fad
test al, 0x10
je 0x6a5f5e
mov ebp, 0x2000000
jmp 0x6a5f60
xor ebp, ebp
push 0
push ebp
push 3
push 0
push 7
push 0
mov eax, esi
call fcn.0040b278
push eax
call sub.kernel32.dll_CreateFileW
mov ebp, eax
cmp ebp, 0xffffffff
je 0x6a5fad
push 0
push 0x1000
lea eax, [esp + 8]
push eax
push ebp
call ebx
mov ebx, eax
push ebp
call sub.kernel32.dll_CloseHandle
test ebx, ebx
jle 0x6a5fad
cmp ebx, 0xff0
jge 0x6a5fad
mov edx, edi
mov eax, esp
call fcn.006a5e1c
jmp 0x6a5fb6
mov eax, edi
mov edx, esi
call fcn.0040a5a8
add esp, 0x2000
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x6a5f0e
mov eax, dword [esp + 0x2000]
add esp, 4
mov edi, edx
mov esi, eax
push 0x6a5fc4
push 0x6a5ff8
call sub.kernel32.dll_GetModuleHandleW
push eax
call fcn.00414020
mov ebx, eax
test ebx, ebx
je 0x6a5fad
mov eax, esi
call fcn.0040b278
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x6a5fad
test al, 0x10
je 0x6a5f5e
mov ebp, 0x2000000
jmp 0x6a5f60
xor ebp, ebp
push 0
push ebp
push 3
push 0
push 7
push 0
mov eax, esi
call fcn.0040b278
push eax
call sub.kernel32.dll_CreateFileW
mov ebp, eax
cmp ebp, 0xffffffff
je 0x6a5fad
push 0
push 0x1000
lea eax, [esp + 8]
push eax
push ebp
call ebx
mov ebx, eax
push ebp
call sub.kernel32.dll_CloseHandle
test ebx, ebx
jle 0x6a5fad
cmp ebx, 0xff0
jge 0x6a5fad
mov edx, edi
mov eax, esp
call fcn.006a5e1c
jmp 0x6a5fb6
mov eax, edi
mov edx, esi
call fcn.0040a5a8
add esp, 0x2000
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x6a6014
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x20c], edx
mov esi, eax
xor eax, eax
push ebp
push 0x6a60a5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x208]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
mov ebx, eax
test ebx, ebx
jle 0x6a607b
cmp ebx, 0x104
jge 0x6a607b
lea eax, [ebp - 0x20c]
lea edx, [ebp - 0x208]
mov ecx, 0x104
call fcn.0040b318
mov eax, dword [ebp - 0x20c]
mov edx, esi
call fcn.006a5f04
jmp 0x6a608c
mov eax, 0x6a60c0
call fcn.0060cf3c
mov eax, esi
call fcn.0040a1c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6a60ac
lea eax, [ebp - 0x20c]
call fcn.0040a1c8
ret

Function at 0x6a60e8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x6a6237
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.006a5f04
lea eax, [ebp - 8]
call fcn.006a6014
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x3c
call fcn.00407760
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x44], str.jh_
mov eax, 0x6a6244
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 4]
call fcn.0040b278
mov dword [ebp - 0x38], eax
mov eax, esi
call fcn.0040b278
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 8]
call fcn.0040b278
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 1
lea eax, [ebp - 0x48]
push eax
call sub.shell32.dll_ShellExecuteExW
test eax, eax
jne 0x6a6193
call sub.kernel32.dll_GetLastError
cmp eax, 0x4c7
jne 0x6a6189
call fcn.00428fdc
mov eax, 0x6a625c
call fcn.0060ce84
cmp dword [ebp - 0x10], 0
jne 0x6a61a3
mov eax, 0x6a6288
call fcn.0060cd28
xor edx, edx
push ebp
push 0x6a6215
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.006a5c10
push 0x4ff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x10]
push eax
push 1
call fcn.00414b38
cmp eax, 1
je 0x6a61b1
cmp eax, 0xffffffff
jne 0x6a61de
mov eax, 0x6a62dc
call fcn.0060ce84
call fcn.006a5c10
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetExitCodeProcess
test eax, eax
jne 0x6a61fe
mov eax, 0x6a631c
call fcn.0060ce84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6a621c
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
ret
Function at 0x6ac8cc
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x6ac8d4
push ecx
push ebx
xor eax, eax
push ebp
push 0x6aca22
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.0060d530
mov edx, dword [ebp - 0x10]
mov eax, 0x6d6530
call fcn.0040a5a8
lea eax, [ebp - 0x14]
mov ecx, dword [0x6d6530]
mov edx, 0x6aca3c
call fcn.0040b4c8
mov eax, dword [ebp - 0x14]
call fcn.00616130
mov eax, dword [0x6cdfdc]
cmp byte [eax], 0
je 0x6ac92f
mov eax, dword [0x6d6530]
call fcn.0061583c
lea edx, [ebp - 0x18]
mov eax, dword [0x6d6530]
call fcn.005c4ea4
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 4]
mov ecx, 0x6aca84
call fcn.0040b4c8
push 0
mov eax, dword [ebp - 4]
call fcn.0040b278
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x6ac9c9
call sub.kernel32.dll_GetLastError
mov ebx, eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 4]
mov ax, 0x3d
call fcn.005cd508
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x30]
call fcn.0042302c
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x34]
mov eax, ebx
call fcn.005c857c
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x28]
mov ecx, 2
mov ax, 0x81
call fcn.005cd4d8
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x41ba8c]
call fcn.00429008
call fcn.004098c4
lea eax, [ebp - 8]
call fcn.0062554c
cmp dword [ebp - 8], 0
je 0x6ac9fa
lea eax, [ebp - 0xc]
mov ecx, 0x6acaa0
mov edx, dword [ebp - 4]
call fcn.0040b4c8
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.006ac874
mov eax, dword [ebp - 0xc]
call fcn.006255a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6aca29
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.0040a228
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.0040a228
ret

Function at 0x6b2f4c
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
mov ecx, 3
lea ebx, [ebp - 8]
lea esi, [ebp - 0xc]
lea edi, [ebp - 4]
movzx eax, byte [esi]
movzx edx, byte [ebx]
sub eax, edx
imul dword [ebp - 0x10]
push ecx
mov ecx, 0xff
cdq
idiv ecx
pop ecx
movzx edx, byte [ebx]
add eax, edx
mov byte [edi], al
inc edi
inc esi
inc ebx
dec ecx
jne 0x6b2f71
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x6b740c
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x6b75fa
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.005c75e4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0060d3b4
test al, al
jne 0x6b7479
xor eax, eax
push ebp
push 0x6b746f
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
xor eax, eax
call fcn.0060d8b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x6b7479
push 0
mov eax, dword [ebp - 4]
call fcn.0040b278
push eax
mov eax, dword [0x6d68d0]
call fcn.0040b278
push eax
call sub.kernel32.dll_CopyFileW
test eax, eax
jne 0x6b74a8
mov eax, dword [0x6cded8]
mov eax, dword [eax + 0x208]
call fcn.006b68ec
push 0x80
mov eax, dword [ebp - 4]
call fcn.0040b278
push eax
call sub.kernel32.dll_SetFileAttributesW
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x6d2634]
push eax
push 0
mov ecx, 0x6b7608
mov edx, 0x6b760c
xor eax, eax
call fcn.00414da0
mov dword [ebp - 8], eax
push 0x6b6ab0
push 0xfffffffffffffffc
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_SetWindowLongW
mov dword [0x6d68fc], eax
xor eax, eax
push ebp
push 0x6b75c3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x6cdec4]
mov eax, dword [eax]
mov eax, dword [eax + 0x188]
push eax
call fcn.00414cb8
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x28]
xor eax, eax
call fcn.005c6fb0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x24]
mov ecx, 1
mov eax, 0x6b7628
call fcn.004244f8
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
call fcn.005c6e90
mov edx, dword [ebp - 0x2c]
pop eax
call fcn.0040b470
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.006b6998
mov dword [ebp - 0xc], eax
call fcn.006b6a74
test al, al
jne 0x6b75a3
push 0x4ff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xc]
push eax
push 1
call fcn.00414b38
cmp eax, 1
je 0x6b7581
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6b75ca
mov eax, dword [ebp - 8]
push eax
call fcn.004147a0
ret
Function at 0x404a20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 1
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp dword [ebp - 4], 0
je 0x404a9b
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 0x104
lea eax, [ebp - 0xc]
push eax
push 0x104
mov ecx, dword [ebp + 0x14]
call fcn.00403230
push eax
lea ecx, [ebp - 8]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
mov ecx, dword [ebp + 0x14]
call fcn.00403bd0
mov eax, 1
jmp 0x404a9d
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40bea0
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 4], eax
mov byte [ebp - 9], 0x43
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [0x455208]
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], 0
jmp 0x40bede
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0x1a
jge 0x40bf53
mov edx, 1
mov ecx, dword [ebp - 0x1c]
shl edx, cl
and edx, dword [ebp - 4]
je 0x40bf51
mov eax, dword [ebp - 0x1c]
add eax, 0x41
mov byte [ebp - 8], al
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 3
jne 0x40bf51
mov dword [ebp - 0x28], 0
xor edx, edx
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x28]
push eax
push 0
push 0
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x14]
jb 0x40bf51
ja 0x40bf3f
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x18]
jbe 0x40bf51
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x14], edx
mov al, byte [ebp - 8]
mov byte [ebp - 9], al
jmp 0x40bed5
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret

Function at 0x40c000
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x46a4c0]
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0xa8], 0x9c
mov ecx, 0x26
xor eax, eax
lea edi, [ebp - 0xa4]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xa4], 6
jb 0x40c057
cmp dword [ebp - 0xa0], 1
jb 0x40c057
mov eax, 1
jmp 0x40c059
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.00434060
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40e810
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
push 0
push 0
push 2
push 0
push 3
push 0x40000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x40e87c
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 8]
call fcn.00406c20
test eax, eax
je 0x40e872
push 0
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406c20
push eax
push 0
mov ecx, dword [ebp + 8]
call fcn.00406c60
push eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x412180
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45219e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [ebp + 8]
add eax, 4
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.004031f0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
add ecx, 8
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.004031f0
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
add edx, 0xc
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.004031f0
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
add eax, 0x10
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.004031f0
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 8]
add ecx, 0x14
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.004031f0
mov byte [ebp - 4], 4
mov edx, dword [ebp + 8]
add edx, 0x18
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.004031f0
mov byte [ebp - 4], 5
mov eax, dword [ebp + 8]
add eax, 0x1c
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
call fcn.004031f0
mov byte [ebp - 4], 6
mov ecx, dword [ebp + 8]
add ecx, 0x20
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.004031f0
mov byte [ebp - 4], 7
mov edx, dword [ebp + 8]
add edx, 0x24
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.004031f0
mov byte [ebp - 4], 8
mov eax, dword [ebp + 8]
add eax, 0x28
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x28
call fcn.004031f0
mov byte [ebp - 4], 9
mov ecx, dword [ebp + 8]
add ecx, 0x2c
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call fcn.004031f0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x30]
mov dword [edx + 0x30], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x34]
mov dword [edx + 0x34], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4