joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45412c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x454295
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00403d3c
mov eax, dword [ebp - 0x10]
call fcn.00453ec4
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x45417e
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.0040416c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00454650
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x454253
xor eax, eax
push ebp
push 0x45424c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00454004
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.004542c4
test al, al
je 0x45422a
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00403d8c
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x45422a
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.004040e8
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x454224
mov eax, dword [ebp - 0x14]
call fcn.004040e8
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00403e5c
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.0045412c
dec ebx
cmp ebx, 0xffffffff
jne 0x4541dd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454253
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00454004
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.004040e8
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.00453ff0
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45429c
lea eax, [ebp - 0x3c]
call fcn.00403ca4
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00403cc8
ret
Function at 0x454253
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x454295
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00403d3c
mov eax, dword [ebp - 0x10]
call fcn.00453ec4
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x45417e
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.0040416c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00454650
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x454253
xor eax, eax
push ebp
push 0x45424c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00454004
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.004542c4
test al, al
je 0x45422a
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00403d8c
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x45422a
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.004040e8
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x454224
mov eax, dword [ebp - 0x14]
call fcn.004040e8
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00403e5c
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.0045412c
dec ebx
cmp ebx, 0xffffffff
jne 0x4541dd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454253
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00454004
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.004040e8
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.00453ff0
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45429c
lea eax, [ebp - 0x3c]
call fcn.00403ca4
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00403cc8
ret

Function at 0x4542c4
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.00402c38
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x485d6c]
cmp byte [edx + 8], 0
je 0x454328
mov edx, dword [0x485d64]
cmp dword [edx], 2
jne 0x454328
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret
Function at 0x45432c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4543e4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x40]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.004542c4
test al, al
je 0x4543c6
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00403d8c
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x4543c6
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004040e8
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov eax, dword [ebp - 0xc]
call fcn.004040e8
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00403e5c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x34]
inc esi
dec ebx
jne 0x45437f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4543eb
lea eax, [ebp - 0x2c]
call fcn.00403ca4
lea eax, [ebp - 0xc]
call fcn.00403ca4
ret

Function at 0x4543f4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4544ac
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x40]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.004542c4
test al, al
je 0x45448e
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00403d8c
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x45448e
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004040e8
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumValueA
mov eax, dword [ebp - 0xc]
call fcn.004040e8
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00403e5c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x34]
inc esi
dec ebx
jne 0x454447
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4544b3
lea eax, [ebp - 0x2c]
call fcn.00403ca4
lea eax, [ebp - 0xc]
call fcn.00403ca4
ret
Function at 0x4545dc
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.004040e8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x454634
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x485d78]
mov dl, 1
mov eax, dword [0x453dd0]
call fcn.0040bdb0
call fcn.004036b8
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00453ed8
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 0x45601c
Capabilities:
Create process on windows

Disassembly:
push ebx
add esp, 0xffffff98
mov ebx, eax
push 1
push 0
push 0
lea eax, [esp + 0xc]
mov edx, ebx
call fcn.004095e0
push eax
push 0x456054
mov eax, dword [0x485be0]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
push eax
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
seta al
add esp, 0x68
pop ebx
ret

Function at 0x45605c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
xor ecx, ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004040d8
mov eax, dword [ebp - 8]
call fcn.004040d8
xor eax, eax
push ebp
push 0x4560dc
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 4]
push 0x4560f0
push dword [ebp - 8]
lea eax, [ebp - 0x60]
mov edx, 3
call fcn.00403fe4
mov edx, dword [ebp - 0x60]
lea eax, [ebp - 0x59]
call fcn.004095e0
push 1
lea eax, [ebp - 0x59]
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4560e3
lea eax, [ebp - 0x60]
call fcn.00403ca4
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403cc8
ret

Function at 0x4560f4
Capabilities:
Create process on windows

Disassembly:
push ebx
add esp, 0xffffffc4
mov ebx, edx
mov dword [esp], 0x3c
mov dword [esp + 4], 0x44c
mov dword [esp + 8], eax
mov eax, 0x456150
mov dword [esp + 0xc], eax
mov eax, ebx
call fcn.004040e8
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x24], eax
push esp
call sub.shell32.dll_ShellExecuteExA
neg eax
sbb eax, eax
neg eax
add esp, 0x3c
pop ebx
ret

Function at 0x4566d8
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_GetPriorityClass
mov ebx, eax
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.kernel32.dll_GetThreadPriority
mov esi, eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_SetPriorityClass
push 0xf
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.kernel32.dll_SetThreadPriority
push 0xa
call sub.kernel32.dll_Sleep
rdtsc
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
push 0x1f4
call sub.kernel32.dll_Sleep
rdtsc
sub eax, dword [ebp - 4]
sbb edx, dword [ebp - 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
push esi
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.kernel32.dll_SetThreadPriority
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_SetPriorityClass
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
fild qword [ebp - 0x18]
fdiv dword [0x456778]
fstp qword [ebp - 0x10]
wait
fld qword [ebp - 0x10]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45677c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45682f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
lea eax, [ebp - 0x14]
mov edx, ebx
call fcn.00403e4c
lea eax, [ebp - 0x14]
mov edx, 0x456844
call fcn.00403f2c
mov eax, dword [ebp - 0x14]
call fcn.004040e8
push eax
call sub.kernel32.dll_GetVolumeInformationA
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.00407a24
movzx eax, ax
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
movzx eax, word [ebp - 4]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x24]
mov ecx, 1
mov eax, 0x456850
call fcn.00409c74
mov eax, esi
mov edx, dword [ebp - 0x10]
call fcn.00403cf8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456836
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00403cc8
ret

Function at 0x4569c4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004040d8
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x456ac9
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor edx, edx
mov eax, 2
call fcn.00451ac0
mov esi, eax
test esi, esi
je 0x456aa3
mov dword [edi], 0x128
mov edx, edi
mov eax, esi
call fcn.00451ae0
jmp 0x456a99
lea eax, [ebp - 0x134]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00403ed4
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00408b78
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x138]
mov eax, dword [ebp - 4]
call fcn.00408b78
mov eax, dword [ebp - 0x138]
pop edx
call fcn.00404210
test eax, eax
je 0x456a90
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
neg eax
sbb ebx, ebx
neg ebx
mov edx, edi
mov eax, esi
call fcn.00451b00
test eax, eax
jne 0x456a2c
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456ad0
lea eax, [ebp - 0x138]
mov edx, 3
call fcn.00403cc8
lea eax, [ebp - 4]
call fcn.00403ca4
ret
Function at 0x456f18
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x456fbb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00403ca4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
call fcn.004040e8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x456fa5
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
push eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
push eax
lea eax, [ebp - 4]
mov ecx, esi
mov edx, 0x456fd0
call fcn.00403f70
mov eax, dword [ebp - 4]
call fcn.004040e8
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x456fa5
mov edx, ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.0040972c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456fc2
lea eax, [ebp - 4]
call fcn.00403ca4
ret
Function at 0x457408
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov edi, edx
xor edx, edx
push ebp
push 0x457530
push dword fs:[edx]
mov dword fs:[edx], esp
mov esi, 0xb
cmp eax, 0xc
ja case.default.0x457434
jmp dword [eax*4 + 0x45743b]
xor esi, esi
jmp case.default.0x457434
mov esi, 0x10
jmp case.default.0x457434
mov esi, 0x14
jmp case.default.0x457434
mov esi, 0x13
jmp case.default.0x457434
mov esi, 5
jmp case.default.0x457434
mov esi, 2
jmp case.default.0x457434
mov esi, 8
jmp case.default.0x457434
mov esi, 9
jmp case.default.0x457434
mov esi, 0xb
jmp case.default.0x457434
mov esi, 7
jmp case.default.0x457434
mov esi, 0x15
jmp case.default.0x457434
mov esi, 0x1c
jmp case.default.0x457434
mov esi, 0x23
mov eax, 0x104
call fcn.00409740
mov ebx, eax
lea eax, [ebp - 4]
push eax
push esi
mov eax, dword [0x485be0]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
push ebx
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x4574fd
mov eax, edi
mov edx, ebx
call fcn.00403e5c
lea eax, [ebp - 8]
push eax
call sub.shell32.dll_SHGetMalloc
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
mov eax, ebx
call fcn.0040978c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457537
lea eax, [ebp - 8]
call fcn.0040615c
ret

Function at 0x457824
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
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 0x457868
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3f0
jne 0x457868
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 0x4578ff
mov eax, 0x400
call fcn.00402788
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 0x4578f8
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 0x484ed4
call sub.advapi32.dll_AllocateAndInitializeSid
mov ebx, dword [esi]
dec ebx
test ebx, ebx
jl 0x4578ee
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 0x4578ea
mov byte [esp], 1
jmp 0x4578ee
inc edi
dec ebx
jne 0x4578d1
mov eax, dword [esp + 0xc]
push eax
call sub.advapi32.dll_FreeSid
mov eax, esi
call fcn.004027a0
mov al, byte [esp]
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x4583bc
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4583c5
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov byte [ebp - 5], cl
mov esi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x458569
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00458704
xor eax, eax
push ebp
push 0x458547
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x20], 8
je 0x458414
call fcn.00403758
jmp 0x45854e
mov eax, dword [ebp - 4]
test byte [eax + 0x24], 8
je 0x4584d6
mov eax, dword [ebp - 4]
test byte [eax + 0x24], 1
je 0x458464
mov eax, dword [ebp - 4]
cmp word [eax + 0x2a], 0
je 0x458464
lea eax, [ebp - 0x10]
call fcn.00458190
push dword [ebp - 0x10]
push 0x458584
push ebx
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403fe4
mov eax, dword [ebp - 0xc]
push eax
mov edi, dword [ebp - 4]
mov cl, byte [ebp - 5]
mov edx, esi
mov eax, dword [edi + 0x2c]
call dword [edi + 0x28]
mov eax, dword [ebp - 4]
test byte [eax + 0x24], 4
je 0x458499
lea eax, [ebp - 0x18]
call fcn.00458190
push dword [ebp - 0x18]
push 0x458584
push ebx
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00403fe4
mov eax, dword [ebp - 0x14]
call fcn.004040e8
push eax
call sub.kernel32.dll_OutputDebugStringA
mov eax, dword [ebp - 4]
test byte [eax + 0x24], 2
je 0x458531
lea eax, [ebp - 0x20]
call fcn.00458190
push dword [ebp - 0x20]
push 0x458584
push ebx
push 0x458590
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00403fe4
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0045838c
jmp 0x458531
mov eax, dword [ebp - 4]
test byte [eax + 0x24], 1
je 0x4584f8
mov eax, dword [ebp - 4]
cmp word [eax + 0x2a], 0
je 0x4584f8
push ebx
mov edi, dword [ebp - 4]
mov cl, byte [ebp - 5]
mov edx, esi
mov eax, dword [edi + 0x2c]
call dword [edi + 0x28]
mov eax, dword [ebp - 4]
test byte [eax + 0x24], 4
je 0x45850e
mov eax, ebx
call fcn.004040e8
push eax
call sub.kernel32.dll_OutputDebugStringA
mov eax, dword [ebp - 4]
test byte [eax + 0x24], 2
je 0x458531
lea eax, [ebp - 0x24]
mov ecx, 0x458590
mov edx, ebx
call fcn.00403f70
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.0045838c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45854e
mov eax, dword [ebp - 4]
call fcn.00458710
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458570
lea eax, [ebp - 0x24]
mov edx, 7
call fcn.00403cc8
ret

Function at 0x462ce8
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffe30
mov ebp, eax
lea eax, [esp + 0x40]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov eax, ebp
call fcn.00403ca4
push 0x40
lea eax, [esp + 4]
push eax
call sub.wsock32.dll_gethostname
push esp
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x462d42
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x462d36
push dword [edi]
call sub.wsock32.dll_inet_ntoa
mov edx, ebp
call fcn.0040972c
inc ebx
mov edi, dword [esi + ebx*4]
test edi, edi
jne 0x462d27
call sub.wsock32.dll_WSACleanup
add esp, 0x1d0
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x46e104
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd9c
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x264], edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x46e2ba
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, dword [ebx + 0x28]
call fcn.00403d3c
mov eax, dword [ebx + 0x30]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x46e185
inc esi
mov dword [ebp - 8], 0
push dword [ebp - 4]
push 0x46e2d0
lea ecx, [ebp - 0x260]
mov eax, dword [ebx + 0x30]
mov edx, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x260]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00403fe4
inc dword [ebp - 8]
dec esi
jne 0x46e153
lea eax, [ebp - 0x208]
mov edx, dword [ebp - 4]
call fcn.004095e0
cmp byte [ebx + 0x38], 0
je 0x46e1f0
cmp dword [ebx + 0x2c], 0
je 0x46e1f0
xor eax, eax
push ebp
push 0x46e1c4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x2c]
call fcn.00402894
call fcn.00402858
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46e1f0
lea eax, [ebp - 0x24c]
xor ecx, ecx
mov edx, 0x44
call fcn.00402c38
mov dword [ebp - 0x24c], 0x44
mov dword [ebp - 0x220], 1
mov ax, word [ebx + 0x36]
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x24c]
push eax
push 0
push 0
push 0x30
push 0
push 0
push 0
lea eax, [ebp - 0x208]
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x46e27b
call sub.kernel32.dll_GetLastError_1
mov dword [ebx + 0x24], eax
lea edx, [ebp - 0x264]
mov eax, ebx
call fcn.0046e3e8
mov ecx, dword [ebp - 0x264]
mov dl, 1
mov eax, dword [0x46de6c]
call fcn.0040bcb8
call fcn.004036b8
jmp 0x46e294
cmp byte [ebx + 0x39], 0
je 0x46e294
push 0xffffffffffffffff
mov eax, dword [ebp - 0x25c]
push eax
call sub.kernel32.dll_WaitForSingleObject
xor eax, eax
mov dword [ebx + 0x24], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e2c1
lea eax, [ebp - 0x264]
mov edx, 2
call fcn.00403cc8
lea eax, [ebp - 4]
call fcn.00403ca4
ret

Function at 0x470bb4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
cmp byte [0x486bf0], 0
jne 0x470c2e
cmp byte [0x486bf1], 0
je 0x470c2e
mov byte [0x486bf1], 0
mov eax, dword [0x486bf8]
push eax
call sub.advapi32.dll_RegCloseKey_1
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push 0x470c34
push 0x80000006
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x470c2e
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
push 0x486bf4
lea eax, [ebp - 0x10]
push eax
push 0
push 0x470c48
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov esp, ebp
pop ebp
ret