joyce8/EMBER2024-capa huggingface dataset:
Function at 0xcb703e
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ecx]
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
test al, 0x10
je 0xcb707a
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0xcb70b7
mov dword [esi], edi
mov eax, dword [esi]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
test dword [ebp + 8], eax
je 0xcb70a0
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
test eax, eax
jne 0xcb7072
push edi
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0xcb70ee
or eax, 0xffffffff
jmp 0xcb7072
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
test eax, eax
je 0xcb70c5
cmp eax, 0xffffffff
je 0xcb70c5
push 1
mov edx, esi
mov ecx, eax
call fcn.00cb6f08
pop ecx
jmp 0xcb7070
push edi
push 0x80
push 3
lea eax, [ebp - 0xc]
push eax
push 2
push 0x40000000
push 0xd0a478
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0xcb706e
test eax, eax
je 0xcb706e
mov ecx, dword [esi]
lea edx, [ebp + 0x10]
push 1
call fcn.00cb6f08
pop ecx
mov ecx, esi
call fcn.00cb6ed7
mov eax, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0xcb7070

Function at 0xcb710c
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ecx]
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
test al, 0x10
je 0xcb7147
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0xcb7182
mov dword [esi], edi
mov eax, dword [esi]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
test al, 1
je 0xcb716c
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
test eax, eax
jne 0xcb713f
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0xcb71b9
or eax, 0xffffffff
jmp 0xcb713f
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
test eax, eax
je 0xcb7190
cmp eax, 0xffffffff
je 0xcb7190
push 1
mov edx, esi
mov ecx, eax
call fcn.00cb6f08
pop ecx
jmp 0xcb713d
push edi
push 0x80
push 3
lea eax, [ebp - 0xc]
push eax
push 1
push 0x80000000
push 0xd0a478
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0xcb713b
test eax, eax
je 0xcb713b
mov ecx, dword [esi]
lea edx, [ebp + 0x10]
push 1
call fcn.00cb6f08
pop ecx
mov ecx, esi
call fcn.00cb6ed7
mov eax, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0xcb713d
Function at 0xcb7368
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov ebx, ecx
push edi
push 0x1f5
lea esi, [ebx + 0x34]
push esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0xffff
call fcn.00c70ff6
mov edi, eax
mov eax, 0xffff
push eax
mov dword [ebp - 8], edi
mov dword [ebx + 0x10], eax
call fcn.00c70ff6
pop ecx
pop ecx
push 0
mov dword [ebx + 8], eax
lea eax, [ebp - 4]
push eax
push 0xffff
push edi
push dword [ebx + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0xcb7472
cmp dword [ebp - 4], 0
jbe 0xcb746f
lea esi, [ebx + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 4]
add eax, ecx
cmp dword [ebx + 0x10], eax
jae 0xcb7434
mov eax, dword [ebx + 0xc]
add eax, dword [ebp - 4]
mov edi, dword [ebx + 8]
mov dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
jns 0xcb73fc
fadd qword [0xd0bac8]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fmul qword [0xd06f10]
call fcn.00c8b606
push eax
mov dword [ebx + 0x10], eax
call fcn.00c70ff6
push dword [ebx + 0xc]
mov dword [ebx + 8], eax
push edi
push dword [ebx + 8]
call fcn.00c71080
push edi
call fcn.00c7106c
mov ecx, dword [ebp - 4]
add esp, 0x14
mov edi, dword [ebp - 8]
mov eax, dword [ebx + 0xc]
add eax, dword [ebx + 8]
push ecx
push edi
push eax
call fcn.00c71080
mov eax, dword [ebp - 4]
add esp, 0xc
add dword [ebx + 0xc], eax
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
lea eax, [ebp - 4]
push eax
push 0xffff
push edi
push dword [ebx + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0xcb73c4
mov esi, dword [ebp - 0xc]
push edi
call fcn.00c7106c
pop ecx
mov edi, 0x1f6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xcb74d2
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x30]
cmp dword [edi], 0
je 0xcb7531
push ebx
lea ebx, [esi + 0x34]
push dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp eax, 0x1f6
je 0xcb7530
add esi, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x1f6
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x3e8
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, edi
call fcn.00cb6ed7
push 0x1f6
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop edi
pop esi
ret

Function at 0xcb8a2c
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0xd14190]
jne 0xcb8a39
call fcn.00cb8b13
mov eax, dword [0xd17ef0]
mov ecx, dword [eax]
add eax, 4
mov dword [0xd17ef0], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret
Function at 0xcb8a71
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
dec dword [0xd14190]
jne 0xcb8a83
call fcn.00cb8b13
mov eax, dword [0xd17ef0]
mov ecx, dword [eax]
add eax, 4
mov dword [0xd17ef0], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
mov dword [ebp - 4], eax
fild dword [ebp - 4]
jns 0xcb8ac6
fadd qword [0xd0bac8]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fmul qword [0xd0baa0]
mov esp, ebp
pop ebp
ret

Function at 0xcb8ad6
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor esi, esi
mov dword [0xd17530], ecx
inc esi
mov ecx, 0xd17530
mov edx, esi
mov eax, dword [ecx]
shr eax, 0x1e
xor eax, dword [ecx]
imul eax, eax, 0x6c078965
add eax, edx
inc edx
mov dword [ecx + 4], eax
add ecx, 4
cmp ecx, 0xd17eec
jl 0xcb8ae7
mov dword [0xd14190], esi
mov dword [0xd17518], esi
pop esi
ret

Function at 0xcb8b13
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [0xd17518], 0
push esi
push edi
mov esi, 0xd17530
jne 0xcb8b32
push 0
call fcn.00c7543a
pop ecx
mov ecx, eax
call fcn.00cb8ad6
mov dword [0xd14190], 0x270
mov edi, 0xe3
mov dword [0xd17ef0], esi
lea edx, [esi + 4]
mov al, byte [edx]
and al, 1
movzx ecx, al
mov eax, dword [esi]
neg ecx
sbb ecx, ecx
xor eax, dword [edx]
and eax, 0x7ffffffe
and ecx, 0x9908b0df
xor eax, dword [esi]
shr eax, 1
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi], eax
mov esi, edx
dec edi
jne 0xcb8b47
mov edi, 0x18c
lea edx, [esi + 4]
mov al, byte [edx]
and al, 1
movzx ecx, al
mov eax, dword [esi]
neg ecx
sbb ecx, ecx
xor eax, dword [edx]
and eax, 0x7ffffffe
and ecx, 0x9908b0df
xor eax, dword [esi]
shr eax, 1
xor eax, dword [esi - 0x38c]
xor eax, ecx
mov dword [esi], eax
lea esi, [edx]
dec edi
jne 0xcb8b7c
mov ecx, dword [0xd17530]
mov al, cl
and al, 1
movzx edx, al
mov eax, dword [esi]
neg edx
pop edi
sbb edx, edx
xor eax, ecx
and eax, 0x7ffffffe
and edx, 0x9908b0df
xor eax, dword [esi]
shr eax, 1
xor eax, dword [esi - 0x38c]
xor eax, edx
mov dword [esi], eax
pop esi
ret

Function at 0xcb901b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x14], 1
jne 0xcb9040
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea eax, [ebp - 8]
push eax
call fcn.00c71080
add esp, 0xc
jmp 0xcb9053
push dword [esi + 0x1c]
lea eax, [ebp - 8]
push 8
push 1
push eax
call fcn.00c75812
add esp, 0x10
movzx ecx, byte [ebp - 4]
movzx eax, byte [ebp - 3]
add dword [esi + 0xc], 8
shl ecx, 8
or ecx, eax
mov byte [ebp - 4], 0
movzx eax, byte [ebp - 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 1]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 8]
push str.EA06
mov dword [eax], ecx
lea eax, [ebp - 8]
push eax
call fcn.00c758c0
neg eax
pop ecx
pop ecx
sbb eax, eax
neg eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0xcb9129
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, 0x10000
mov eax, dword [esi + 0x460]
test eax, eax
je 0xcb913f
cmp eax, ecx
jne 0xcb915a
push dword [esi + 0x1c]
push ecx
push 1
push dword [esi + 0x458]
call fcn.00c75812
add esp, 0x10
and dword [esi + 0x460], 0
mov ecx, dword [esi + 0x460]
mov eax, dword [esi + 0x458]
mov al, byte [ecx + eax]
inc ecx
mov dword [esi + 0x460], ecx
pop esi
ret

Function at 0xcb9172
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 8]
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x45c]
mov esi, dword [edi + 0x454]
mov byte [esi + edx], al
mov eax, 0x10000
inc dword [edi + 0x45c]
cmp dword [edi + 0x45c], eax
jne 0xcb91b9
push dword [edi + 0x20]
push eax
push 1
push dword [edi + 0x454]
call fcn.00c74a93
add esp, 0x10
and dword [edi + 0x45c], 0
pop edi
pop esi
pop ebp
ret 4

Function at 0xcb91bf
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x45c]
test eax, eax
je 0xcb91e7
push dword [esi + 0x20]
push eax
push 1
push dword [esi + 0x454]
call fcn.00c74a93
add esp, 0x10
and dword [esi + 0x45c], 0
pop esi
ret

Function at 0xcb9393
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
lea ecx, [ebp - 0xdc]
push esi
push edi
call fcn.00cb91e9
push dword [ebp + 0x10]
lea ecx, [ebp - 0xdc]
call fcn.00cb922f
xor esi, esi
cmp dword [ebp + 0xc], esi
jbe 0xcb93d7
mov edi, dword [ebp + 8]
push ecx
push ecx
lea ecx, [ebp - 0xdc]
call fcn.00cb9367
xor byte [esi + edi], al
inc esi
cmp esi, dword [ebp + 0xc]
jb 0xcb93c1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0xcbf200
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea eax, [ebp - 0x258]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ecx
xor bl, bl
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0xcbf29b
lea eax, [ebp - 0x22c]
push 0xcdfb80
push eax
call fcn.00c7378c
pop ecx
pop ecx
test eax, eax
je 0xcbf289
lea eax, [ebp - 0x22c]
push 0xd0a5a0
push eax
call fcn.00c7378c
pop ecx
pop ecx
test eax, eax
je 0xcbf289
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
mov eax, dword [ebp + 0x10]
or ecx, dword [ebp + 0xc]
not eax
and ecx, eax
lea eax, [ebp - 0x22c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0xcbf34e
mov bl, 1
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0xcbf22a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp + 0x14], 0
je 0xcbf343
lea eax, [ebp - 0x258]
push eax
push 0xd0a598
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0xcbf33a
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ebx, dword [ebp - 4]
test byte [ebp - 0x258], 0x10
je 0xcbf328
lea eax, [ebp - 0x22c]
push 0xcdfb80
push eax
call fcn.00c7378c
pop ecx
pop ecx
test eax, eax
je 0xcbf328
lea eax, [ebp - 0x22c]
push 0xd0a5a0
push eax
call fcn.00c7378c
pop ecx
pop ecx
test eax, eax
je 0xcbf328
lea eax, [ebp - 0x22c]
push eax
call edi
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00cbf200
test al, al
je 0xcbf359
push 0xd0a5a0
call edi
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0xcbf2ca
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0xcbf345
xor ebx, ebx
jmp 0xcbf33c
Function at 0xcbf35d
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea eax, [ebp - 0x258]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ecx
xor bl, bl
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0xcbf3e3
lea eax, [ebp - 0x22c]
push 0xcdfb80
push eax
call fcn.00c7378c
pop ecx
pop ecx
test eax, eax
je 0xcbf3d1
lea eax, [ebp - 0x22c]
push 0xd0a5a0
push eax
call fcn.00c7378c
pop ecx
pop ecx
test eax, eax
je 0xcbf3d1
push dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x22c]
call fcn.00cb45c1
pop ecx
test al, al
je 0xcbf496
mov bl, 1
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0xcbf387
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp + 0x14], 0
je 0xcbf48b
lea eax, [ebp - 0x258]
push eax
push 0xd0a598
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0xcbf482
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ebx, dword [ebp - 4]
test byte [ebp - 0x258], 0x10
je 0xcbf470
lea eax, [ebp - 0x22c]
push 0xcdfb80
push eax
call fcn.00c7378c
pop ecx
pop ecx
test eax, eax
je 0xcbf470
lea eax, [ebp - 0x22c]
push 0xd0a5a0
push eax
call fcn.00c7378c
pop ecx
pop ecx
test eax, eax
je 0xcbf470
lea eax, [ebp - 0x22c]
push eax
call edi
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00cbf35d
test al, al
je 0xcbf4a1
push 0xd0a5a0
call edi
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0xcbf412
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0xcbf48d
xor ebx, ebx
jmp 0xcbf484

Function at 0xcc2990
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [esi + 0xd0], 0
je 0xcc29cd
cmp byte [ebp + 8], 0
je 0xcc29cd
sub esp, 0x10
lea ecx, [esi + 0xd4]
call 0xcc1a2e
push esi
push 0
push 0xcc2a60
call fcn.00c75efc
xor eax, eax
add esp, 0xc
cmp dword [esi + 0x18], eax
sete al
jmp 0xcc29d5
push dword [ebp + 8]
call 0xcc1c02
pop esi
pop ebp
ret 4
Function at 0xcd122d
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], 0xff
xor ecx, ecx
lea eax, [ebp - 0x24]
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 4]
mov ebx, edx
push eax
lea eax, [ebp - 0x228]
mov dword [ebp - 0xc], ebx
push eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0xcd132c
mov eax, ebx
or eax, 0x20019
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 8]
push ecx
push eax
push 0
lea eax, [ebp - 0x228]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xcd1343
mov ecx, dword [ebp - 8]
mov edx, ebx
call fcn.00cd122d
push dword [ebp - 8]
mov bl, al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0xcd1343
xor ebx, ebx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
call fcn.00cd1072
test al, al
lea eax, [ebp - 0x228]
je 0xcd12de
push ebx
mov ebx, dword [ebp - 0xc]
lea ecx, [ebp - 0x18]
push ebx
push eax
push esi
call 0xccff84
call eax
jmp 0xcd12e9
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, dword [ebp - 0xc]
test eax, eax
jne 0xcd1334
cmp dword [ebp - 0x18], eax
je 0xcd12fb
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor ecx, ecx
mov dword [ebp - 4], 0xff
lea eax, [ebp - 0x24]
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x228]
push eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
mov eax, dword [ebp - 0x1c]
jne 0xcd1277
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x18], 0
je 0xcd1343
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
jmp 0xcd132e
Function at 0x10001000
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push 8
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.pwdump3r
push 0x1000afd8
call edi
mov esi, eax
test esi, esi
jne 0x10001047
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x8009000f
jne 0x10001047
push esi
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.pwdump3r
push 0x1000afd8
call edi
pop edi
pop esi
ret
mov eax, esi
pop edi
pop esi
ret

Function at 0x10001080
Capabilities:
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x24]
mov ecx, eax
mov edx, eax
shr ecx, 6
shr edx, 0xe
mov byte [esp + 4], cl
mov byte [esp + 5], dl
and eax, 0x3f
mov ecx, 2
mov dl, byte [eax + esi]
inc eax
mov byte [esp + ecx + 4], dl
and eax, 0x3f
inc ecx
cmp ecx, 0x10
jl 0x100010a6
mov ecx, dword [0x1000afd8]
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0x8003
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov eax, dword [esp + 0x24]
push 0
lea edx, [esp + 8]
push 0x10
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov edx, dword [esp + 0x24]
mov eax, dword [0x1000afd8]
lea ecx, [esp + 0x20]
push ecx
push 0
push edx
push 0x6602
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1000112a
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
push 0x40
push ecx
push edx
push 0
push 1
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
jmp 0x10001145
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
push ecx
push edx
push 0
push 1
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov ecx, dword [esp + 0x20]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, esi
pop esi
add esp, 0x10
ret
Function at 0x10001790
Capabilities:
Acquire debug privileges
Set registry value

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 4]
push edi
push eax
push 0x20
mov dword [esp + 0x10], 0
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x100017ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.Unable_to_open_process_token:__d_n
jmp 0x10001859
lea ecx, [esp + 0x10]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x1000181f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea edx, [esp + 0x1c]
push esi
push str.Unable_to_lookup_privilege:__d_n
push edx
call fcn.10001afd
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x64]
push eax
push 1
push 0
push str.Status
push ecx
jmp 0x10001887
mov eax, dword [esp + 8]
push 0
push 0
lea edx, [esp + 0x14]
push 0
push edx
push 0
push eax
mov dword [esp + 0x30], 2
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x1000188d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.Unable_to_adjust_token_privileges:__d_n
lea ecx, [esp + 0x24]
push ecx
call fcn.10001afd
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x1c]
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x70]
push str.Status
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 8]
test eax, eax
je 0x1000189c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret
Function at 0x10003372
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x10008698
cmp edx, dword [eax]
je 0x10003394
add eax, 8
inc ecx
cmp eax, 0x10008728
jl 0x10003385
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x10008698]
jne 0x100034c2
mov eax, dword [0x1000afe8]
cmp eax, 1
je 0x1000349c
test eax, eax
jne 0x100033c5
cmp dword [0x1000afec], 1
je 0x1000349c
cmp edx, 0xfc
je 0x100034c2
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100033fc
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.100039c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.100038c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1000343f
lea eax, [ebp - 0x1a4]
push eax
call fcn.100038c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x100074a8
push edi
call fcn.10003780
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.100039c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.100039d0
lea eax, [ebp - 0xa0]
push 0x10007488
push eax
call fcn.100039d0
push dword [esi + 0x1000869c]
lea eax, [ebp - 0xa0]
push eax
call fcn.100039d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.10005bd4
add esp, 0x2c
pop edi
jmp 0x100034c2
lea eax, [ebp + 8]
lea esi, [esi + 0x1000869c]
push 0
push eax
push dword [esi]
call fcn.100038c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx