joyce8/EMBER2024-capa huggingface dataset:
Function at 0x490ffc
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push 2
movzx eax, bx
push eax
call sub.user32.dll_MapVirtualKeyW
mov edi, eax
mov eax, ebx
add eax, 0xffffffd0
sub ax, 0xa
jae 0x491034
mov esi, ebx
sub si, 0x30
add si, 0x30
cmp si, di
je 0x491034
push esi
call sub.user32.dll_VkKeyScanW
cmp al, bl
jne 0x491034
mov edi, esi
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x495c5c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x495cbb
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetCommandLineW
lea edx, [ebp - 8]
call fcn.00495b08
mov dword [ebp - 4], eax
xor ebx, ebx
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00495b08
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00405cb4
je 0x495ca5
inc ebx
jmp 0x495c88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495cc2
lea eax, [ebp - 8]
call fcn.00405934
ret

Function at 0x496688
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x4966ec
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.0040545c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040dc98
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4966f3
lea eax, [ebp - 0xc]
call fcn.004051dc
ret

Function at 0x496798
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov esi, edx
lea edi, [esp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x4967f4
push esp
push 0x40
push 6
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x4967c3
call fcn.00413c78
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
mov ecx, 6
call fcn.00403144
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
push 6
mov eax, dword [esp + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x4967f4
call fcn.00413c78
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x498828
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4989a8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x24
call fcn.004039b0
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x14]
mov dword [0x5643e8], eax
mov eax, dword [ebp - 0xc]
mov dword [0x5643ec], eax
mov eax, dword [ebp - 0x24]
mov dword [0x5643f0], eax
mov eax, dword [0x56ab38]
cmp dword [eax], 2
sete byte [0x563fc8]
push 0x4989b4
call sub.kernel32.dll_GetModuleHandleA_2
lea edx, [ebp - 4]
call fcn.00498c84
cmp byte [0x563fc8], 0
jne 0x4988b4
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
call fcn.00498cb4
test al, al
je 0x4988b4
mov eax, dword [ebp - 0x4c]
mov dword [0x56f310], eax
jmp 0x4988bb
xor eax, eax
mov dword [0x56f310], eax
call fcn.004986c0
and eax, 0x7f
cmp eax, 0xc
ja case.0x4988cc.0
jmp dword [eax*4 + 0x4988d3]
mov byte [0x563fb4], 1
jmp case.0x4988cc.0
mov byte [0x563fb8], 1
jmp case.0x4988cc.0
mov byte [0x563fbc], 1
jmp case.0x4988cc.0
mov byte [0x563fc0], 1
jmp case.0x4988cc.0
mov byte [0x563fc4], 1
jmp case.0x4988cc.0
mov byte [0x563fcc], 1
mov byte [0x563fd0], 1
jmp case.0x4988cc.0
mov byte [0x563fcc], 1
mov byte [0x563fd4], 1
jmp case.0x4988cc.0
mov byte [0x563fcc], 1
mov byte [0x563fd4], 1
mov byte [0x563fd8], 1
jmp case.0x4988cc.0
mov byte [0x563fdc], 1
jmp case.0x4988cc.0
mov byte [0x563fe0], 1
jmp case.0x4988cc.0
mov byte [0x563fe4], 1
jmp case.0x4988cc.0
mov byte [0x563fe8], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4989af
lea eax, [ebp - 4]
call fcn.004051dc
ret

Function at 0x498cb4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x498d5b
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.004056ac
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jbe 0x498d45
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.00405838
mov eax, dword [ebp - 0x10]
push eax
push edi
mov eax, dword [ebp - 0xc]
push eax
mov eax, esi
call fcn.004056ac
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x498d45
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x498d6c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x498d45
cmp dword [ebp - 8], 0x34
jne 0x498d45
mov bl, 1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov esi, eax
mov edi, edx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498d62
lea eax, [ebp - 0x10]
call fcn.004051dc
ret
Function at 0x4aa738
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x570208
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x4aa75a
shr eax, 1
xor eax, 0xedb88320
jmp 0x4aa75c
shr eax, 1
dec edx
jne 0x4aa748
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4aa741
mov byte [0x570608], 1
pop esi
pop ebx
ret

Function at 0x4aa778
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x570608], 0
jne 0x4aa78f
call fcn.004aa738
mov eax, edi
dec eax
test eax, eax
jl 0x4aa7b8
inc eax
xor edx, edx
xor ecx, ecx
mov cl, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x570208]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x4aa799
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4ad6c4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov al, byte [eax]
dec al
je 0x4ad6f5
dec al
je 0x4ad731
dec al
je 0x4ad775
dec al
je 0x4ad7e0
jmp 0x4ad86a
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x4ad86a
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
mov dl, byte [ecx + edx]
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4ad705
jmp 0x4ad86a
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4ad86a
mov esi, 1
mov al, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov dl, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4ad741
jmp 0x4ad86a
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4ad86a
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x4ad7a3
xor ebp, ebp
jmp 0x4ad7b4
mov ecx, esi
sub ecx, edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x4ad7bd
adc eax, 0
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4ad785
jmp 0x4ad86a
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4ad86a
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x4ad838
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
mov dl, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
mov cl, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.004aa7c0
add al, byte [esp]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4ad7f4
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4b4188
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4b41b6
mov eax, ebx
call fcn.004b4c3c
cmp dword [ebx + 0x40], 0
je 0x4b41af
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4b4227
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4b4219
cmp dword [ebx + 8], 0
je 0x4b41d8
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4b41ea
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4b4219
cmp dword [ebx + 8], 0
je 0x4b41cb
cmp eax, 3
je 0x4b41fd
dec eax
jne 0x4b41cb
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4b41cb
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4b41cb
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4b4245
cmp dword [ebx + 0x14], 0xcc
je 0x4b4245
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004b4250
pop ebx
ret
Function at 0x4da10c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov dl, 1
mov eax, dword [0x4311a4]
call fcn.00437a78
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4da2df
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x54]
cmp dword [eax + 8], 0
jle 0x4da2be
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.00438f84
mov eax, dword [ebp - 8]
call fcn.00438048
mov eax, dword [eax + 0x14]
mov edx, esi
call fcn.00432964
cmp byte [ebp + 8], 0
je 0x4da1a6
xor edx, edx
mov eax, ebx
call fcn.004d9094
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x40]
xor edx, edx
mov eax, ebx
call fcn.004d9094
mov edx, dword [eax]
call dword [edx + 0x20]
mov esi, eax
mov eax, ebx
call fcn.004d8fc4
imul esi, eax
mov edx, esi
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
jmp 0x4da1e2
xor edx, edx
mov eax, ebx
call fcn.004d9094
mov edx, dword [eax]
call dword [edx + 0x2c]
mov esi, eax
mov eax, ebx
call fcn.004d8fc4
imul esi, eax
mov edx, esi
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x40]
xor edx, edx
mov eax, ebx
call fcn.004d9094
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.00420050
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 8]
call fcn.00438048
pop edx
call fcn.00433010
mov eax, dword [ebx + 0x5c]
mov dword [ebp - 0xc], eax
mov eax, ebx
call fcn.004d8fc4
dec eax
test eax, eax
jl 0x4da296
inc eax
mov dword [ebp - 0x10], eax
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.004d8f68
push 0
lea eax, [ebp - 0x20]
push eax
mov edx, esi
mov eax, ebx
call fcn.004d90c0
mov eax, dword [eax + 4]
mov edx, dword [eax]
call dword [edx + 0x20]
imul esi
xor edx, edx
mov dl, byte [ebp + 8]
imul edx
push eax
mov edx, esi
mov eax, ebx
call fcn.004d90c0
mov eax, dword [eax + 4]
mov edx, dword [eax]
call dword [edx + 0x2c]
imul esi
mov dl, byte [ebp + 8]
xor dl, 1
and edx, 0x7f
imul edx
xor ecx, ecx
pop edx
call fcn.00420028
mov eax, dword [ebp - 8]
call fcn.00438048
mov edx, eax
lea ecx, [ebp - 0x20]
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x14]
inc esi
dec dword [ebp - 0x10]
jne 0x4da22c
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004d8f68
cmp byte [ebp + 0xc], 0
je 0x4da2be
movzx eax, word [ebx + 0x58]
mov edx, 0x10
call fcn.0043a354
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.004d8758
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4da2e6
mov eax, dword [ebp - 8]
call fcn.00404370
ret
Function at 0x4e7224
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffcf0
mov ebx, eax
mov eax, ebx
call fcn.00405934
mov eax, dword [0x56a2c4]
cmp byte [eax], 0
je 0x4e7269
push 0x104
lea eax, [esp + 0x10a]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
test eax, eax
jbe 0x4e728a
mov eax, ebx
lea edx, [esp + 0x106]
mov ecx, 0x105
call fcn.00405af0
jmp 0x4e728a
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
test eax, eax
jbe 0x4e728a
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.00405ad8
add esp, 0x310
pop ebx
ret

Function at 0x4e7294
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffcf0
mov ebx, eax
mov eax, ebx
call fcn.00405934
mov eax, dword [0x56a2c4]
cmp byte [eax], 0
je 0x4e72d9
push 0x104
lea eax, [esp + 0x10a]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
test eax, eax
jbe 0x4e72fa
mov eax, ebx
lea edx, [esp + 0x106]
mov ecx, 0x105
call fcn.00405af0
jmp 0x4e72fa
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
test eax, eax
jbe 0x4e72fa
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.00405ad8
add esp, 0x310
pop ebx
ret

Function at 0x4e7304
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00405934
push esp
push esi
mov eax, dword [0x56a7dc]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x4e734d
lea edx, [esp + 4]
mov eax, dword [esp]
call fcn.00489fe0
test eax, eax
je 0x4e734d
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00405af0
add esp, 0x210
pop esi
pop ebx
ret
Function at 0x4e75b4
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov eax, dword [0x56ab38]
cmp dword [eax], 2
je 0x4e75cd
mov byte [esp], 1
jmp 0x4e76a2
mov byte [esp], 0
lea eax, [esp + 4]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
mov ebx, eax
test ebx, ebx
jne 0x4e760b
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3f0
jne 0x4e760b
lea eax, [esp + 4]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
mov ebx, eax
test ebx, ebx
je 0x4e76a2
mov eax, 0x400
call fcn.00402ebc
mov esi, eax
lea eax, [esp + 8]
push eax
push 0x400
push esi
push 2
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_GetTokenInformation
mov ebx, eax
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
test ebx, ebx
je 0x4e769b
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
push 0x568910
call sub.advapi32.dll_AllocateAndInitializeSid
mov ebx, dword [esi]
dec ebx
test ebx, ebx
jl 0x4e7691
inc ebx
xor edi, edi
mov eax, dword [esi + edi*8 + 4]
push eax
mov eax, dword [esp + 0x10]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x4e768d
mov byte [esp], 1
jmp 0x4e7691
inc edi
dec ebx
jne 0x4e7674
mov eax, dword [esp + 0xc]
push eax
call sub.advapi32.dll_FreeSid
mov eax, esi
call fcn.00402eec
mov al, byte [esp]
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x4e76ac
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffdf4
mov esi, edx
mov ebx, eax
push esp
push 0x104
call sub.kernel32.dll_GetTempPathA
lea eax, [esp + 0x105]
push eax
push 0
push ebx
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetTempFileNameA
mov edx, esi
lea eax, [esp + 0x105]
call fcn.0040e5a4
add esp, 0x20c
pop esi
pop ebx
ret

Function at 0x4e77f8
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4e7884
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4e7867
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004e778c
mov eax, dword [ebp - 0xc]
call fcn.004056ac
push eax
call sub.kernel32.dll_GetFileAttributesA
test eax, eax
jns 0x4e784d
call fcn.004042ac
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e786e
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x4e7f98
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4e80c0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x56890c], 0
je 0x4e7fdc
push esi
call dword [0x56890c]
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x4e80a5
lea eax, [ebp - 0x3c]
xor ecx, ecx
mov edx, 0x3c
call fcn.004039b0
mov dword [ebp - 0x3c], 0x3c
mov eax, dword [esi + 4]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x40]
mov edx, dword [esi + 0xc]
call fcn.00405414
mov eax, dword [ebp - 0x40]
call fcn.004056ac
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x44]
mov edx, dword [esi + 0x10]
call fcn.00405414
mov eax, dword [ebp - 0x44]
call fcn.004056ac
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x48]
mov edx, dword [esi + 0x14]
call fcn.00405414
mov eax, dword [ebp - 0x48]
call fcn.004056ac
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x4c]
mov edx, dword [esi + 0x18]
call fcn.00405414
mov eax, dword [ebp - 0x4c]
call fcn.004056ac
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x50]
mov edx, dword [esi + 0x28]
call fcn.00405414
mov eax, dword [ebp - 0x50]
call fcn.004056ac
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x30]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x34]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x3c]
push eax
call sub.shell32.dll_ShellExecuteExA
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, dword [ebp - 4]
mov dword [esi + 0x38], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e80c7
lea eax, [ebp - 0x50]
mov edx, 5
call fcn.00405200
ret
Function at 0x4ecb60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4eccca
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x56a2c4]
cmp byte [eax], 0
jne 0x4ecbbb
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.00405474
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0xc]
mov eax, ebx
call fcn.00446bfc
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.00405b0c
jmp 0x4ecca2
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 4]
push eax
push 0
mov eax, edi
call fcn.00405b88
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x4ecbed
mov eax, esi
call fcn.00405934
jmp 0x4ecca2
mov eax, dword [ebp - 4]
dec eax
sub eax, 2
jb 0x4ecc24
mov dword [ebp - 0x18], edi
mov byte [ebp - 0x14], 0xf
lea eax, [ebp - 0x18]
push eax
push 0
lea edx, [ebp - 0x1c]
mov eax, dword [0x56a52c]
call fcn.00407788
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x44661c]
call fcn.00412640
call fcn.00404b50
cmp dword [ebp - 8], 1
jne 0x4ecc31
mov dword [ebp - 8], 2
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, esi
call fcn.00405f00
lea eax, [ebp - 8]
push eax
mov eax, dword [esi]
call fcn.00405b88
push eax
lea eax, [ebp - 4]
push eax
push 0
mov eax, edi
call fcn.00405b88
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x4ecc92
mov dword [ebp - 0x18], edi
mov byte [ebp - 0x14], 0xf
lea eax, [ebp - 0x18]
push eax
push 0
lea edx, [ebp - 0x20]
mov eax, dword [0x56ab60]
call fcn.00407788
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x44661c]
call fcn.00412640
call fcn.00404b50
mov eax, dword [esi]
call fcn.00405b88
mov edx, eax
mov eax, esi
call fcn.00405a9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4eccd1
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00405200
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00405200
ret
Function at 0x4eccd8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x4ecde2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x56a2c4]
cmp byte [eax], 0
jne 0x4ecd63
cmp dword [ebp - 4], 1
jne 0x4ecd3e
lea eax, [ebp - 8]
mov edx, esi
call fcn.00405474
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0xc]
mov edx, edi
call fcn.00405474
mov edx, dword [ebp - 0xc]
mov eax, ebx
pop ecx
call fcn.00446ba4
jmp 0x4ecdbf
lea eax, [ebp - 0x10]
mov edx, esi
call fcn.00405474
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
mov edx, edi
call fcn.00405474
mov edx, dword [ebp - 0x14]
mov eax, ebx
pop ecx
call fcn.00446bd0
jmp 0x4ecdbf
mov eax, esi
call fcn.00405b98
inc eax
add eax, eax
push eax
mov eax, esi
call fcn.00405b88
push eax
mov eax, dword [ebp - 4]
push eax
push 0
mov eax, edi
call fcn.00405b88
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x4ecdbf
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x18], 0xf
lea eax, [ebp - 0x1c]
push eax
push 0
lea edx, [ebp - 0x20]
mov eax, dword [0x56a6cc]
call fcn.00407788
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x44661c]
call fcn.00412640
call fcn.00404b50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ecde9
lea eax, [ebp - 0x20]
call fcn.004051dc
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00405200
ret