joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x4011dc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push edi
mov dword [ebp - 0x3c], 0
mov ecx, 0xe
xor eax, eax
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], str.properties
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x2c], ecx
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
neg eax
sbb eax, eax
neg eax
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x40122c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push edi
push 2
push 0x4781cc
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x40125f
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040a2b0
add esp, 8
mov al, 1
jmp 0x4012b0
mov dword [ebp - 0x40], 0
mov ecx, 0xe
xor eax, eax
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], pe_nt_image_headers32
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], str.explore
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x24], 1
lea edx, [ebp - 0x40]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp - 4], 1
sete al
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4023db
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x7834
call fcn.00468270
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
jne 0x402414
xor al, al
jmp 0x4025af
mov dword [ebp - 0x28], 0
jmp 0x402426
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x28], 4
jae 0x40248f
push 0
lea edx, [ebp - 4]
push edx
push 1
push 0x4782b4
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 0x28]
shl edx, 4
mov eax, dword [edx + 0x478068]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
push eax
mov ecx, dword [ebp - 0x28]
shl ecx, 4
mov edx, dword [ecx + 0x478068]
push edx
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4782b8
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x40241d
push 0
lea eax, [ebp - 4]
push eax
push 2
push 0x4782bc
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0
push 0x1004
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 8], eax
mov dword [ebp - 0x2c], 0
jmp 0x4024ce
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 8]
jge 0x4025a3
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x28], 0
jmp 0x4024f3
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 4
jae 0x402587
lea eax, [ebp - 0x7834]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x7800
lea ecx, [ebp - 0x30]
push ecx
push 0
push 0x1005
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jne 0x40252d
mov byte [ebp - 0x7834], 0
push 0
lea eax, [ebp - 4]
push eax
push 1
push 0x4782c0
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x7834]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
push eax
lea ecx, [ebp - 0x7834]
push ecx
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 4]
push eax
push 2
push 0x4782c4
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4024ea
push 0
lea edx, [ebp - 4]
push edx
push 2
push 0x4782c8
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4024c5
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x4048f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
push 0x4795a8
mov eax, dword [ebp + 0xc]
push eax
call fcn.00412075
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40491a
xor eax, eax
jmp 0x404a03
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00412258
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x404946
mov eax, dword [ebp - 4]
push eax
call fcn.004122b7
add esp, 4
xor eax, eax
jmp 0x404a03
lea ecx, [ebp - 0x134]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 4]
push edx
call fcn.004120a9
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x404977
mov eax, dword [ebp - 4]
push eax
call fcn.004122b7
add esp, 4
xor eax, eax
jmp 0x404a03
mov ecx, dword [ebp - 0x134]
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 0x138], 0
jmp 0x40499e
mov edx, dword [ebp - 0x138]
add edx, 1
mov dword [ebp - 0x138], edx
mov eax, dword [ebp - 0x138]
cmp eax, dword [ebp - 0x13c]
jge 0x4049e8
lea ecx, [ebp - 0x134]
push ecx
mov edx, dword [ebp - 0x138]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.004120a9
add esp, 0xc
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x130]
push ecx
mov edx, dword [ebp - 0x138]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.0041221c
add esp, 0xc
mov dword [ebp - 8], eax
jmp 0x40498f
mov ecx, dword [ebp - 4]
push ecx
call fcn.004122b7
add esp, 4
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x404a07
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0x9e3779b9
mov ecx, dword [ebp - 0x10]
shl ecx, 3
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
jmp 0x404a46
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 8
jge 0x404aaa
mov eax, dword [ebp - 0xc]
shl eax, 4
mov ecx, dword [ebp + 0x10]
add eax, dword [ecx + 8]
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 4]
xor eax, edx
mov ecx, dword [ebp - 0xc]
shr ecx, 5
mov edx, dword [ebp + 0x10]
add ecx, dword [edx + 0xc]
xor eax, ecx
mov ecx, dword [ebp - 0x14]
sub ecx, eax
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
shl edx, 4
mov eax, dword [ebp + 0x10]
add edx, dword [eax]
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 4]
xor edx, ecx
mov eax, dword [ebp - 0x14]
shr eax, 5
mov ecx, dword [ebp + 0x10]
add eax, dword [ecx + 4]
xor edx, eax
mov eax, dword [ebp - 0xc]
sub eax, edx
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
jmp 0x404a3d
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
mov esp, ebp
pop ebp
ret
Function at 0x404b10
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
push 0x4784c0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0x10], eax
push 2
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 4
mov dword [ebp - 0xc], eax
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov ecx, dword [ebp - 0xc]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00404abe
add esp, 0xc
push 0x4784c4
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00412708
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x405550
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
push 0x47904c
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [ebp - 0xc]
call fcn.004055b0
lea eax, [ebp - 8]
push eax
push 4
mov ecx, dword [ebp - 0xc]
push ecx
push 0x405600
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
push 0xfffffffffffffffe
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esp, ebp
pop ebp
ret

Function at 0x408390
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
lea eax, [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4083ce
cmp dword [ebp + 0x14], 0
je 0x4083ce
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
mov esp, ebp
pop ebp
ret 0x10

Function at 0x408410
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40849c
mov dword [ebp - 0x1c], 0
jmp 0x40844b
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp + 0xc]
jae 0x408492
mov dword [ebp - 8], 4
mov eax, dword [ebp - 0x1c]
push eax
push 0x478660
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0x10]
lea edx, [ecx + eax*4]
push edx
push 0
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x408442
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4084b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408548
mov dword [ebp - 0x20], 0
jmp 0x4084eb
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp + 0xc]
jae 0x40853e
mov dword [ebp - 0xc], 4
mov eax, dword [ebp - 0x20]
push eax
push 0x478660
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 4]
push eax
push 0
push 0
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40853c
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x10]
mov dx, word [ebp - 4]
mov word [ecx + eax*2], dx
jmp 0x4084e2
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x408630
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esp, ebp
pop ebp
ret 8

Function at 0x4086a0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x20006
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x408747
mov dword [ebp - 0x18], 0
jmp 0x4086e3
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp + 0xc]
jae 0x40873d
mov eax, dword [ebp - 0x18]
push eax
push 0x478660
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x10]
cmp dword [eax + edx*4], 0
je 0x40872d
push 4
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 0x10]
lea eax, [edx + ecx*4]
push eax
push 4
push 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x40873b
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x4086da
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x408750
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0x20006
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x408808
mov dword [ebp - 0x1c], 0
jmp 0x408797
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp + 0xc]
jae 0x4087fe
mov eax, dword [ebp - 0x1c]
push eax
push 0x478660
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov cx, word [eax + edx*2]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov cx, word [eax + edx*2]
test ecx, ecx
je 0x4087ee
push 4
lea edx, [ebp - 4]
push edx
push 4
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x4087fc
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x40878e
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x408810
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x528
push esi
push edi
mov dword [ebp - 0x414], 0
lea eax, [ebp - 0x414]
push eax
push 1
push 0
call sub.NETAPI32.dll_NetWkstaUserGetInfo
mov dword [ebp - 0x524], eax
cmp dword [ebp - 0x524], 0
je 0x40884b
xor eax, eax
jmp 0x408a24
mov byte [ebp - 0x404], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x403]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x408], 0x400
mov cl, byte [0x4795b4]
mov byte [ebp - 0x51c], cl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x51b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x520], 0x104
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x520]
push eax
lea ecx, [ebp - 0x51c]
push ecx
lea edx, [ebp - 0x408]
push edx
lea eax, [ebp - 0x404]
push eax
mov ecx, dword [ebp - 0x414]
mov edx, dword [ecx + 4]
push edx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
jne 0x4088d3
xor eax, eax
jmp 0x408a24
mov eax, dword [ebp - 0x414]
push eax
call sub.NETAPI32.dll_NetApiBufferFree
cmp dword [ebp - 4], 3
je 0x4088ec
xor eax, eax
jmp 0x408a24
lea ecx, [ebp - 0x404]
push ecx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x408904
xor eax, eax
jmp 0x408a24
lea edx, [ebp - 0x404]
push edx
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
xor ecx, ecx
mov cl, byte [eax]
mov dword [ebp - 0x40c], ecx
mov edx, dword [ebp - 0x40c]
sub edx, 1
push edx
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
cmp dword [eax], 0xffffffff
jne 0x408946
mov ecx, dword [ebp - 0x40c]
sub ecx, 1
mov dword [ebp - 0x40c], ecx
mov edx, dword [ebp - 0x40c]
add edx, 1
push edx
call dword [sym.imp.ADVAPI32.dll_GetSidLengthRequired]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x528], eax
mov eax, dword [ebp - 0x528]
mov dword [ebp - 0x418], eax
mov ecx, dword [ebp - 0x40c]
add ecx, 1
push ecx
lea edx, [ebp - 0x404]
push edx
call dword [sym.imp.ADVAPI32.dll_GetSidIdentifierAuthority]
push eax
mov eax, dword [ebp - 0x418]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSid]
mov dword [ebp - 0x410], 0
jmp 0x4089b1
mov ecx, dword [ebp - 0x410]
add ecx, 1
mov dword [ebp - 0x410], ecx
mov edx, dword [ebp - 0x410]
cmp edx, dword [ebp - 0x40c]
jae 0x4089ef
mov eax, dword [ebp - 0x410]
push eax
lea ecx, [ebp - 0x404]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov esi, eax
mov edx, dword [ebp - 0x410]
push edx
mov eax, dword [ebp - 0x418]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov ecx, dword [esi]
mov dword [eax], ecx
jmp 0x4089a2
mov edx, dword [ebp - 0x40c]
push edx
mov eax, dword [ebp - 0x418]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov dword [eax], 0x200
mov ecx, dword [ebp - 0x418]
push ecx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x408a1e
xor eax, eax
jmp 0x408a24
mov eax, dword [ebp - 0x418]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408a2a
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 0x14]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x408a4e
xor al, al
jmp 0x408b0d
mov dword [ebp - 8], 0
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push 2
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov eax, dword [ebp - 8]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0xc], ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push 2
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
mov dword [ebp - 0x10], 0
jmp 0x408ab6
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
cmp eax, dword [edx]
jae 0x408af8
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx*8 + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x408ad7
jmp 0x408aad
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + edx*8 + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x408af6
mov byte [ebp - 4], 1
jmp 0x408af8
jmp 0x408aad
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00412708
add esp, 4
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret