joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407b60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a968
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4310a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x38]
push 0x468d78
xor ebx, ebx
push edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x48], ecx
xor esi, esi
mov dword [ebp - 4], ebx
call fcn.004087c0
add esp, 8
mov edi, dword [ebp - 0x38]
cmp dword [edi - 0xc], ebx
je 0x407cb5
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
lea ebx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.00408370
mov edi, dword [ebp - 0x44]
test eax, eax
jne 0x407ca8
test edi, edi
je 0x407cb3
mov dword [ebp - 0x20], eax
mov word [ebp - 0x30], ax
lea esi, [eax + 1]
mov ebx, 7
lea eax, [ebp - 0x30]
mov dword [ebp - 0x1c], ebx
call fcn.00408000
mov eax, dword [ebp - 0x48]
mov ecx, eax
mov byte [ebp - 4], 3
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x407c10
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [ebp - 0x30]
call fcn.00407dc0
push 1
mov eax, 0x42dcd0
lea ecx, [ebp - 0x30]
call fcn.00407dc0
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x30]
cmp esi, 8
jae 0x407c45
lea eax, [ebp - 0x30]
lea edx, [eax + 2]
jmp 0x407c50
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407c50
mov ecx, dword [ebp - 0x30]
sub eax, edx
sar eax, 1
cmp esi, 8
jae 0x407c6a
lea ecx, [ebp - 0x30]
lea edx, [eax + eax + 2]
mov eax, dword [ebp - 0x34]
push edx
push ecx
push 2
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp dword [ebp - 0x1c], 8
jb 0x407c98
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0041d31b
add esp, 4
xor edx, edx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], dx
test edi, edi
je 0x407cb3
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407ce9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x407ce9
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041d326
mov esp, ebp
pop ebp
ret
Function at 0x408430
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x678
mov eax, dword [0x4310a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x42dd30
push str.Kernel32.dll
mov dword [ebp - 0x620], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x42dd40
push 0x42dd4c
mov edi, eax
call ebx
push eax
call esi
push 0x42dd58
push 0x42dd4c
mov dword [ebp - 0x624], eax
call ebx
push eax
call esi
mov esi, eax
test edi, edi
je 0x4085aa
mov ebx, dword [ebp - 0x624]
test ebx, ebx
je 0x4085aa
test esi, esi
je 0x4085aa
push 0x40
lea ecx, [ebp - 0x674]
push 0
push ecx
call fcn.0041f080
xor eax, eax
xor edx, edx
push 0x206
mov word [ebp - 0x648], dx
push eax
lea edx, [ebp - 0x20a]
xor ecx, ecx
push edx
mov dword [ebp - 0x678], 0x44
mov dword [ebp - 0x634], eax
mov dword [ebp - 0x630], eax
mov dword [ebp - 0x62c], eax
mov dword [ebp - 0x628], eax
mov word [ebp - 0x20c], cx
call fcn.0041f080
add esp, 0x18
push 0
push 0x25
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x42dd6c
lea ecx, [ebp - 0x20c]
push ecx
call ebx
push 0
lea edx, [ebp - 0x20c]
push edx
call esi
xor eax, eax
push 0x40e
push eax
lea ecx, [ebp - 0x61a]
push ecx
mov word [ebp - 0x61c], ax
call fcn.0041f080
mov edx, dword [ebp - 0x620]
push edx
lea eax, [ebp - 0x20c]
push eax
push str.__s__start___s_
lea ecx, [ebp - 0x61c]
push 0x208
push ecx
call fcn.0041de86
add esp, 0x20
lea edx, [ebp - 0x634]
push edx
lea eax, [ebp - 0x678]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea ecx, [ebp - 0x61c]
push ecx
lea edx, [ebp - 0x20c]
push edx
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d326
mov esp, ebp
pop ebp
ret
Function at 0x4085c0
Capabilities:
Modify service
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a930
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4310a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x20]
xor esi, esi
push 0x4687b0
xor ebx, ebx
push eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], esi
call fcn.004087c0
add esp, 8
mov ecx, dword [ebp - 0x20]
cmp dword [ecx - 0xc], esi
je 0x4086ea
push 5
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, esi
je 0x4086ea
mov edx, dword [ebp - 0x20]
push 0x17
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
mov dword [ebp - 0x24], eax
cmp ebx, esi
je 0x4086e0
lea eax, [ebp - 0x18]
push eax
push esi
push esi
mov dword [ebp - 0x18], esi
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
push ebx
call esi
mov eax, dword [ebp - 0x18]
xor ecx, ecx
cmp eax, ecx
je 0x4086cc
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
push eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x11]
lea edi, [ebp - 0x34]
mov byte [ebp - 0x11], cl
call fcn.004052f0
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x34]
sub eax, edi
cmp eax, dword [ebp - 0x18]
jne 0x4086bf
test edi, edi
je 0x4086bf
lea ecx, [ebp - 0x18]
push ecx
push eax
push edi
push ebx
call esi
test eax, eax
je 0x4086bf
cmp dword [edi + 4], 2
je 0x4086bf
mov edx, dword [edi + 8]
mov eax, dword [edi]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 2
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
lea esi, [ebp - 0x34]
call fcn.004052c0
mov edi, dword [ebp - 0x1c]
xor ecx, ecx
push ecx
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor ebx, ebx
xor esi, esi
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40871a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40871a
cmp ebx, esi
je 0x408725
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x1c]
cmp eax, esi
je 0x408733
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408d20
Capabilities:
Enumerate processes
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a8b6
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x4310a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
push esi
push 2
mov dword [ebp - 0x2c8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x2d0], ebx
cmp ebx, esi
je 0x408ec3
cmp ebx, 0xffffffff
je 0x408ec3
push 0x228
lea eax, [ebp - 0x2c0]
push esi
push eax
call fcn.0041f080
add esp, 0xc
lea ecx, [ebp - 0x2c4]
push ecx
push ebx
mov dword [ebp - 0x2c4], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x408eb1
lea eax, [ebp - 0x2a0]
push eax
lea ecx, [ebp - 0x98]
lea edx, [ebp - 0x94]
push ecx
mov dword [ebp - 0x98], edx
call fcn.0040bcd0
lea edx, [ebp - 0x2cc]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x98]
push edx
call fcn.0040b2f0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x98]
lea ecx, [ebp - 0x94]
cmp eax, ecx
je 0x408e05
push eax
call fcn.0041d7cb
add esp, 4
lea edi, [ebp - 0x2cc]
call fcn.0040b390
mov esi, dword [ebp - 0x2cc]
mov eax, esi
lea edx, [eax + 1]
jmp 0x408e20
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408e20
sub eax, edx
mov edx, esi
or ecx, 0xffffffff
mov edi, edi
mov edi, eax
dec eax
test edi, edi
je 0x408e4f
movzx edi, byte [edx]
xor edi, ecx
and edi, 0xff
shr ecx, 8
xor ecx, dword [edi*4 + 0x42d7f0]
inc edx
jmp 0x408e30
not ecx
mov byte [ebp - 4], 0
lea eax, [esi - 0x10]
cmp dword [ebp + 8], ecx
jne 0x408e82
mov dword [ebp - 0x2c8], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408eb1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x408eb1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408e9b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x2c4]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x408db3
test ebx, ebx
je 0x408ec3
cmp ebx, 0xffffffff
je 0x408ec3
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x408eda
cmp ebx, 0xffffffff
je 0x408eda
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2c8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041d326
mov esp, ebp
pop ebp
ret
Function at 0x409540
Capabilities:
Check if file exists
Create process on windows
Delete file
Extract resource via kernel32 functions
Move file
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ac88
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4310a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x409729
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x409583
sub eax, edx
sar eax, 1
je 0x409729
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409729
push 0x14
push 0x65
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x40971b
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebx
je 0x409729
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x409729
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
je 0x409729
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
lea ecx, [ebp - 0x30]
push ecx
push edi
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00405240
add esp, 8
cmp eax, ebx
je 0x409702
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
cmp edi, esi
je 0x409702
mov edx, dword [ebp + 8]
push 0x42ddac
push edx
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], ebx
call fcn.0041df62
add esp, 0xc
test eax, eax
jne 0x409702
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x409702
push eax
sub esi, edi
push esi
push 1
push edi
call fcn.0041e100
mov edx, dword [ebp - 0x1c]
xor ecx, ecx
cmp esi, eax
sete cl
push edx
mov esi, ecx
call fcn.0041e1e7
add esp, 0x14
cmp esi, ebx
je 0x409702
lea esi, [ebp - 0x20]
call fcn.00404510
push 0x6b
mov byte [ebp - 4], 2
call fcn.00404b20
add esp, 4
cmp eax, ebx
je 0x4096fa
push eax
mov eax, 0x6b
mov edi, esi
call fcn.004046a0
cmp eax, ebx
je 0x4096fa
mov edi, dword [ebp - 0x20]
cmp dword [edi - 0xc], ebx
je 0x4096fa
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.00404530
lea esi, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0040bac0
mov eax, edi
call fcn.0040b9a0
cmp eax, ebx
je 0x4096f2
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x4096f2
mov eax, dword [ebp - 0x14]
push 1
push ebx
push ebx
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x18], 1
lea eax, [ebp - 0x14]
call fcn.004045e0
lea eax, [ebp - 0x20]
call fcn.004045e0
lea esi, [ebp - 0x30]
call fcn.004052c0
jmp 0x409729
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409a00
Capabilities:
Delete file
Get common file path
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ab4b
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x4310a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, edx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x22c], ebx
lea eax, [ebp - 0x234]
push eax
push ecx
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00405240
mov edi, dword [ebp - 0x234]
add esp, 8
cmp eax, ebx
je 0x409b92
cmp edi, dword [ebp - 0x230]
je 0x409b92
lea ecx, [ebp - 0x234]
call fcn.00405690
push 0x42de1c
push str.Shlwapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x409b92
push esi
call eax
cmp eax, ebx
je 0x409b23
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x409b23
push 0x206
lea eax, [ebp - 0x21a]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x21c], dx
call fcn.0041f080
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x409b92
lea edx, [ebp - 0x21c]
push edx
push ebx
push ebx
mov eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x409b92
push 1
lea ecx, [ebp - 0x21c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x409b92
push 0x42ddac
lea edx, [ebp - 0x220]
push esi
push edx
mov dword [ebp - 0x220], ebx
call fcn.0041df62
add esp, 0xc
test eax, eax
jne 0x409b92
mov eax, dword [ebp - 0x220]
cmp eax, ebx
je 0x409b92
mov esi, dword [ebp - 0x230]
push eax
sub esi, edi
push esi
push 1
push edi
call fcn.0041e100
mov eax, dword [ebp - 0x220]
push eax
call fcn.0041e3e5
mov ecx, dword [ebp - 0x220]
push ecx
call fcn.0041e5d5
xor edx, edx
cmp esi, eax
mov eax, dword [ebp - 0x220]
sete dl
push eax
mov dword [ebp - 0x224], edx
call fcn.0041e1e7
add esp, 0x1c
cmp edi, ebx
je 0x409b9f
push edi
call fcn.0041d31b
add esp, 4
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041d326
mov esp, ebp
pop ebp
ret
Function at 0x409be0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42aa80
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4310a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
lea eax, [ebp - 0x18]
push 0x4684d8
xor edi, edi
push eax
xor esi, esi
mov dword [ebp - 4], edi
call fcn.004087c0
mov ecx, dword [ebp - 0x18]
add esp, 8
cmp dword [ecx - 0xc], edi
je 0x409cb5
cmp edi, 2
jge 0x409cb5
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x14]
push edx
push 0
xor eax, eax
push 2
test edi, edi
push 0
setne al
push 0
push 0
push ecx
mov dword [ebp - 0x14], 0
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x409cac
mov esi, dword [ebp - 0x14]
mov ecx, esi
mov dword [ebp - 0x28], ecx
test ebx, ebx
jne 0x409c78
lea eax, [ebx + 0xd]
jmp 0x409c98
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0
push 0x42de9c
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x28]
xor edx, edx
test eax, eax
sete dl
mov esi, edx
test ecx, ecx
je 0x409cac
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x18]
inc edi
jmp 0x409c31
lea eax, [ecx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409cf5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c220
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42aae8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4310a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x1c]
push 0x432398
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004087c0
add esp, 8
lea ecx, [ebp - 0x18]
push 0x43240c
push ecx
mov byte [ebp - 4], 1
call fcn.004087c0
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [0x431008]
mov eax, dword [edx + 0xc]
mov ecx, 0x431008
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
push 0x6a
mov byte [ebp - 4], 3
call fcn.00404b20
add esp, 4
cmp eax, ebx
je 0x40c2b1
push eax
lea eax, [ebx + 0x6a]
lea edi, [ebp - 0x14]
call fcn.004046a0
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx - 0xc], ebx
je 0x40c33d
mov edx, dword [ebp - 0x18]
cmp dword [edx - 0xc], ebx
je 0x40c33d
cmp dword [esi - 0xc], ebx
je 0x40c33d
xor eax, eax
mov dword [ebp - 0x14], eax
nop
cmp eax, 2
jge 0x40c33d
xor ecx, ecx
cmp eax, ebx
setne cl
push 2
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
add ecx, 0x80000001
mov dword [ebp - 0x20], ebx
call fcn.0040c1a0
test eax, eax
jne 0x40c321
mov edi, dword [ebp - 0x18]
cmp esi, ebx
je 0x40c321
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push ebx
push edi
mov edi, dword [ebp - 0x28]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x40c324
mov edi, dword [ebp - 0x28]
cmp edi, ebx
je 0x40c332
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], ebx
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], ebx
jmp 0x40c2d0
lea eax, [esi - 0x10]
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c35d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c380
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c3a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c6e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
push esi
add eax, eax
lea edx, [ebp + 0xc]
push edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c74e
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x40c71d
cmp eax, 2
jne 0x40c738
mov eax, dword [ebp - 4]
test esi, esi
je 0x40c748
test eax, eax
je 0x40c743
test al, 1
jne 0x40c738
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x40c748
mov eax, 0xd
mov esp, ebp
pop ebp
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x40c7e0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x42e830
push 0x4204c0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4310a0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor esi, esi
xor edi, edi
mov dword [ebp - 0x30], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp eax, esi
je 0x40c89c
cmp eax, 0xffffffff
je 0x40c89c
lea ecx, [ebp - 0x30]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40c89c
mov dword [ebp - 0x2c], esi
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x28]
push edx
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x40c89c
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x20], 2
push esi
push esi
push 0x10
lea eax, [ebp - 0x2c]
push eax
push esi
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x40c89c
lea edi, [esi + 1]
jmp 0x40c899
mov dword [ebp - 0x34], edi
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x30]
cmp eax, esi
je 0x40c8b6
cmp eax, 0xffffffff
je 0x40c8b6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0041d326
mov esp, ebp
pop ebp
ret
Function at 0x40cc40
Capabilities:
Enumerate process modules
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x42e930
push 0x4204c0
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x4310a0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x448], ebx
mov dword [ebp - 0x44c], ebx
mov dword [ebp - 4], ebx
push eax
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x44c], edi
cmp edi, ebx
je 0x40cd61
cmp edi, 0xffffffff
je 0x40cd61
mov dword [ebp - 0x444], ebx
push 0x424
push ebx
lea eax, [ebp - 0x440]
push eax
call fcn.0041f080
add esp, 0xc
mov dword [ebp - 0x444], 0x428
lea ecx, [ebp - 0x444]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
cmp eax, ebx
je 0x40cd61
lea edx, [ebp - 0x424]
push edx
call fcn.0041ee4d
add esp, 4
cmp eax, ebx
je 0x40cd6a
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x40cd02
sub ecx, esi
sar ecx, 1
lea edx, [ecx + ecx]
mov dword [ebp - 0x450], edx
mov ecx, eax
or eax, 0xffffffff
mov dword [ebp - 0x454], ecx
mov esi, edx
dec edx
mov dword [ebp - 0x450], edx
test esi, esi
je 0x40cd4a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x42d7f0]
inc ecx
jmp 0x40cd1f
not eax
mov ecx, 0x6fcb9ae
cmp eax, ecx
jne 0x40cd6a
mov eax, dword [ebp - 0x430]
mov dword [ebp - 0x448], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x40cda5
mov dword [ebp - 0x444], 0x428
lea ecx, [ebp - 0x444]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_Module32NextW]
jmp 0x40cce2
cmp edi, ebx
je 0x40cdb5
cmp edi, 0xffffffff
je 0x40cdb5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x448]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0041d326
mov esp, ebp
pop ebp
ret 4