joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4070b0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4070f2
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x407112
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.0040b318
add esp, 0x41c
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.004092d8
mov byte [esp], al
cmp byte [esp], 0
jne 0x408fa1
test edi, edi
je 0x408fa1
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408ee1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408ebc
cmp edi, 0xffffffff
je 0x408e7d
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408e7d
mov byte [esp], 0
jmp 0x408fa1
cmp dword [esi], 1
jg 0x408ebc
cmp dword [esi], 0
jne 0x408eae
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408eae
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408fa1
lea eax, [esp + 0xc]
call fcn.00408af8
dec ebp
test ebp, ebp
jg 0x408e62
cmp edi, 0xffffffff
je 0x408ee1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408edf
mov byte [esp], 0
jmp 0x408fa1
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408e26
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408ee1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040901c
mov edx, eax
mov ebx, dword [0x6cf8fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408f45
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408f43
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408f45
xor edi, edi
cmp byte [esp], 0
je 0x408f6b
mov ebx, dword [esi]
test bl, 1
jne 0x408f81
mov edx, ebx
sub edx, 2
or edx, 1
invalid
Function at 0x427dd8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x427e11
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040a350
jmp 0x427e1a
mov eax, ebx
mov edx, esi
call fcn.0040a5a8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x427e24
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x427e46
movzx eax, word [esp]
jmp 0x427e48
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x429d80
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x429e56
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a5f0
lea eax, [ebp - 4]
call fcn.0040a784
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040b278
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x429e40
mov eax, ebx
call fcn.00406f0c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x429e39
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040b278
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x429e23
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x429e68
mov eax, dword [ebp - 0x10]
push eax
call fcn.004143e8
test eax, eax
je 0x429e23
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429e40
mov eax, dword [ebp - 0x10]
call fcn.00406f28
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429e5d
lea eax, [ebp - 4]
call fcn.0040a1c8
ret
Function at 0x429e6c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x429f6c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a5f0
lea eax, [ebp - 4]
call fcn.0040a784
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040b278
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x429f56
mov eax, ebx
call fcn.00406f0c
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x429f4f
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040b278
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x429f39
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x429f80
mov eax, dword [ebp - 0x10]
push eax
call fcn.004143e8
test eax, eax
je 0x429f39
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429f56
mov eax, dword [ebp - 0x10]
call fcn.00406f28
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429f73
lea eax, [ebp - 4]
call fcn.0040a1c8
ret

Function at 0x42af28
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.0040a6c4
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00410394
mov edi, eax
cmp edi, 0x104
jbe 0x42aed3
mov eax, edi
add eax, eax
call fcn.00406f0c
mov esi, eax
jmp 0x42aed5
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00410394
push esi
call fcn.00414720
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42af0e
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x42aef8
mov eax, esp
cmp esi, eax
je 0x42af1b
mov eax, esi
call fcn.00406f28
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x42af54
cmp bl, 0
je 0x42af50
cmp bl, 0x41
jl 0x42af4b
cmp bl, 0x5a
jg 0x42af4b
or bl, 0x20
xor al, bl
inc esi
jmp 0x42af2f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x42ae94
Function at 0x4c6478
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x4c6480
mov eax, edx
pop esi
pop ebx
ret

Function at 0x4e62b0
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
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.0040b278
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov edx, eax
mov eax, ebx
call fcn.004e5d84
test al, al
jne 0x4e6311
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x6ce1d4]
mov dl, 1
mov eax, dword [0x4e4ab8]
call fcn.00429100
call fcn.004098c4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004e5cec
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4ed6cc
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4ed6d2
ret

Function at 0x501d80
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, 0x6ca35c
test edx, edx
jne 0x501d9f
xor eax, eax
jmp 0x501ebd
mov dword [ebp - 4], 1
cmp byte [ebp - 4], 0
je 0x501dbc
push esi
push edx
push eax
call fcn.00501ee0
add esp, 0xc
jmp 0x501ebd
push esi
push edx
push eax
call fcn.005021a0
add esp, 0xc
jmp 0x501ebd
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x5c7954
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov esi, edx
mov ebp, eax
push 0
push 0
push 0
push 0
push esi
push ebp
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
sete bl
test bl, bl
je 0x5c79d0
test esi, esi
je 0x5c7981
cmp word [esi], 0
jne 0x5c79d0
call fcn.00429d18
cmp eax, 2
je 0x5c79d0
xor ebx, ebx
xor esi, esi
mov dword [esp + 4], 2
push 0
push 0
push 0
push 0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push esi
push ebp
call sub.advapi32.dll_RegEnumValueW
mov edi, eax
test edi, edi
je 0x5c79be
cmp edi, 0xea
jne 0x5c79d0
test edi, edi
jne 0x5c79cd
cmp word [esp], 0
jne 0x5c79cd
mov bl, 1
jmp 0x5c79d0
inc esi
jmp 0x5c798f
mov eax, ebx
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x5c7a3c
Capabilities:
Delete registry key

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, edx
cmp al, 2
je 0x5c7a50
push esi
push ebx
call sub.advapi32.dll_RegDeleteKeyW
pop esi
pop ebx
ret
cmp dword [0x6d57e4], 0
jne 0x5c7a73
push 0x5c7a98
push 0x5c7ab8
call sub.kernel32.dll_GetModuleHandleW
push eax
call fcn.00414020
mov dword [0x6d57e4], eax
cmp dword [0x6d57e4], 0
je 0x5c7a8d
push 0
push pe_nt_image_headers32
push esi
push ebx
call dword [0x6d57e4]
jmp 0x5c7a92
mov eax, 0x7f
pop esi
pop ebx
ret

Function at 0x5c7a3d
Capabilities:
Delete registry key

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, edx
cmp al, 2
je 0x5c7a50
push esi
push ebx
call sub.advapi32.dll_RegDeleteKeyW
pop esi
pop ebx
ret
cmp dword [0x6d57e4], 0
jne 0x5c7a73
push 0x5c7a98
push 0x5c7ab8
call sub.kernel32.dll_GetModuleHandleW
push eax
call fcn.00414020
mov dword [0x6d57e4], eax
cmp dword [0x6d57e4], 0
je 0x5c7a8d
push 0
push pe_nt_image_headers32
push esi
push ebx
call dword [0x6d57e4]
jmp 0x5c7a92
mov eax, 0x7f
pop esi
pop ebx
ret
Function at 0x6054e8
Capabilities:
Get file system object information

Disassembly:
push ebx
add esp, 0xfffffd4c
mov ebx, eax
movzx eax, bl
mov eax, dword [eax*4 + 0x6ccf58]
or eax, 0x4011
push eax
push 0x2b4
lea eax, [esp + 8]
push eax
push 0x10
push 0x60552c
call sub.shell32.dll_SHGetFileInfoW
test eax, eax
je 0x605521
mov eax, dword [esp + 4]
jmp 0x605523
xor eax, eax
add esp, 0x2b4
pop ebx
ret

Function at 0x60550b
Capabilities:
Get file system object information

Disassembly:
push ebx
add esp, 0xfffffd4c
mov ebx, eax
movzx eax, bl
mov eax, dword [eax*4 + 0x6ccf58]
or eax, 0x4011
push eax
push 0x2b4
lea eax, [esp + 8]
push eax
push 0x10
push 0x60552c
call sub.shell32.dll_SHGetFileInfoW
test eax, eax
je 0x605521
mov eax, dword [esp + 4]
jmp 0x605523
xor eax, eax
add esp, 0x2b4
pop ebx
ret

Function at 0x6059c8
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
test dl, dl
je 0x6059dc
add esp, 0xfffffff0
call fcn.00408a40
mov ebx, edx
mov esi, eax
xor edx, edx
mov eax, esi
call fcn.00515554
mov eax, dword [0x605a7c]
not eax
and dword [esi + 0x60], eax
mov edx, 0x79
mov eax, esi
call fcn.005118b8
mov edx, 0x61
mov eax, esi
call fcn.005118ec
xor edx, edx
mov eax, esi
call fcn.005125ec
mov dl, 1
mov eax, esi
call fcn.0051b718
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp ax, 6
jae 0x605a38
mov dx, 0xfffe
mov eax, esi
call fcn.00512634
push 0
lea eax, [ebp - 0x5c]
push eax
push 0x5c
push 0x1f
call fcn.00414cf8
test eax, eax
je 0x605a5e
lea eax, [ebp - 0x5c]
push eax
call fcn.00414478
mov edx, eax
mov eax, dword [esi + 0x74]
call fcn.004ee4d4
mov eax, esi
test bl, bl
je 0x605a73
call fcn.00408a98
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x60b890
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
mov byte [ebp - 5], 0
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.0040b278
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
jle 0x60b92e
mov eax, ebx
call fcn.00406f0c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x60b927
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
push edi
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x60b911
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x60b950
mov eax, dword [ebp - 0x10]
push eax
call fcn.004143e8
test eax, eax
je 0x60b911
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 4]
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x60b943
mov eax, dword [ebp - 0x10]
call fcn.00406f28
ret
call fcn.00429d18
dec eax
je 0x60b943
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0060b6b4
mov byte [ebp - 5], al
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x60bfc0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.0060bf74
test al, al
jne 0x60bfe1
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x60c02f
xor eax, eax
push ebp
push 0x60c01f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, esi
call fcn.0040b278
push eax
call sub.kernel32.dll_CreateDirectoryW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x60c026
lea eax, [ebp - 0xc]
call fcn.0060bfb0
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x60c038
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.0060bf74
test al, al
jne 0x60c05c
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x60c0c2
xor eax, eax
push ebp
push 0x60c0b2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x24]
push eax
push edi
push esi
call sub.kernel32.dll_CreateProcessW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x60c0b9
lea eax, [ebp - 0xc]
call fcn.0060bfb0
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x60f338
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
call fcn.0040a2ac
xor eax, eax
push ebp
push 0x60f41c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 0x18], 0
jne 0x60f37f
lea edx, [ebp + 0x18]
mov eax, edi
call fcn.005c5378
cmp dword [ebp + 0x18], 0
jne 0x60f37f
lea eax, [ebp + 0x18]
call fcn.005c745c
lea eax, [ebp - 0x40]
xor ecx, ecx
mov edx, 0x3c
call fcn.00407760
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x540
test ebx, ebx
je 0x60f3aa
mov eax, ebx
call fcn.0040b278
mov dword [ebp - 0x34], eax
mov eax, edi
call fcn.0040b278
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
call fcn.0040b278
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x18]
call fcn.0040b278
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
push eax
call sub.shell32.dll_ShellExecuteExW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x60f3ec
call sub.kernel32.dll_GetLastError
mov dword [esi], eax
jmp 0x60f406
mov dword [esi], 0x103
mov eax, dword [ebp - 8]
test eax, eax
je 0x60f406
push esi
movzx edx, byte [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
call fcn.0060efd8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x60f423
lea eax, [ebp + 0x18]
call fcn.0040a1c8
ret

Function at 0x60f654
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xffffffdc
mov ebx, eax
mov dword [esp], 0x10
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x60f682
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x10
call fcn.0040b318
jmp 0x60f689
mov eax, ebx
call fcn.0040a1c8
add esp, 0x24
pop ebx
ret

Function at 0x60f690
Capabilities:
Get session user name

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
mov dword [esp], 0x101
push esp
lea eax, [esp + 8]
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x60f6c1
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x101
call fcn.0040b318
jmp 0x60f6c8
mov eax, ebx
call fcn.0040a1c8
add esp, 0x208
pop ebx
ret

Function at 0x60f77c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x60f7d6
inc esi
xor edi, edi
cmp edi, 1
jne 0x60f7a2
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x60f7b0
cmp edi, 1
jle 0x60f7b0
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0060c158
test eax, eax
jne 0x60f7d6
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x60f7d6
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x60f7d6
inc edi
dec esi
jne 0x60f792
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
Function at 0x610040
Capabilities:
Delete registry value

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, edx
mov edi, eax
test cl, cl
je 0x610053
mov ebx, 0x80000001
jmp 0x610058
mov ebx, 0x80000002
push 0
push 2
lea eax, [esp + 8]
push eax
call fcn.005c77e8
and eax, 0x7f
mov ecx, dword [eax*4 + 0x6ccfc0]
mov edx, ebx
xor eax, eax
call fcn.005c7a14
test eax, eax
jne 0x610098
mov eax, edi
call fcn.0040b278
push eax
mov eax, dword [esp + 4]
push eax
call sub.advapi32.dll_RegDeleteValueW
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey
mov eax, esi
call fcn.0040b278
push eax
call fcn.00414610
test eax, eax
je 0x6100b9
push 0
push 0
push 0x1d
push 0xffff
call fcn.00414c20
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x6100c0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov edi, ecx
mov esi, edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x610209
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x610220
push 0x610248
call sub.kernel32.dll_GetModuleHandleW
push eax
call fcn.00414020
mov ebx, eax
lea edx, [ebp - 0xc]
movzx eax, byte [ebp - 1]
call fcn.0060bf74
test al, al
jne 0x61011f
mov byte [ebp - 2], 0
jmp 0x6101ee
xor eax, eax
push ebp
push 0x6101e7
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x610163
push 0
mov eax, dword [ebp + 8]
push eax
push edi
lea edx, [ebp - 0x24]
mov eax, esi
call fcn.005c52c8
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.005c4ea4
mov eax, dword [ebp - 0x20]
call fcn.0040b278
push eax
call ebx
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 2], al
jmp 0x6101d1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x30]
mov eax, esi
call fcn.005c52c8
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.005c53a0
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.005c4ea4
mov eax, dword [ebp - 0x28]
call fcn.0040b278
push eax
call sub.kernel32.dll_GetDiskFreeSpaceW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 2], al
cmp byte [ebp - 2], 0
je 0x6101d1
mov ecx, edi
mov eax, dword [ebp - 0x14]
imul dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
call fcn.005c97dc
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
imul dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.005c97dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6101ee
lea eax, [ebp - 0xc]
call fcn.0060bfb0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x610210
lea eax, [ebp - 0x30]
mov edx, 5
call fcn.0040a228
ret

Function at 0x6103f8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push 2
lea eax, [ebp - 4]
push eax
push 0x20001004
movzx eax, bx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x61041c
mov eax, dword [ebp - 4]
jmp 0x61041f
or eax, 0xffffffff
pop ebx
pop ecx
pop ebp
ret