joyce8/EMBER2024-capa huggingface dataset:
Function at 0x64b1a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b34f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x2c], 0xf
mov dword [edi + 0x28], 0
mov dword [ebp - 4], 0
mov byte [edi + 0x18], 0
mov dword [edi + 0x44], 0xf
mov dword [edi + 0x40], 0
mov byte [edi + 0x30], 0
mov dword [edi + 0x5c], 0xf
mov dword [edi + 0x58], 0
mov byte [edi + 0x48], 0
xor eax, eax
mov dword [edi + 0x74], 7
mov dword [edi + 0x70], 0
mov word [edi + 0x60], ax
mov dword [edi + 0x78], eax
mov dword [edi + 0x7c], eax
mov dword [edi + 0x80], eax
mov byte [ebp - 4], 5
call fcn.0051eed0
push 6
push 0x73dbe0
lea ecx, [edi + 0x30]
mov dword [edi], eax
mov byte [edi + 4], 0
mov dword [edi + 0x14], 0
call fcn.00419c50
mov ecx, dword [ebp - 0xc]
mov eax, edi
mov dword [edi + 0x84], 0
mov dword [edi + 0x88], 0
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x64d310
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b3858
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0xffffffffffffffff
push 0
lea eax, [ebp + 8]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
push eax
mov dword [ebp - 4], 1
mov byte [esi], 0
call fcn.00419810
push 0xffffffffffffffff
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 2
lea eax, [ebp + 0x20]
mov dword [ecx + 0x14], 0xf
push 0
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00419810
cmp dword [ebp + 0x1c], 0x10
mov al, byte [ebp + 0x38]
mov byte [esi + 0x30], al
jb 0x64d390
push dword [ebp + 8]
call fcn.00480130
add esp, 4
cmp dword [ebp + 0x34], 0x10
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
jb 0x64d3b3
push dword [ebp + 0x20]
call fcn.00480130
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x34
Function at 0x64e750
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x140]
push 0x104
push eax
push esi
call fcn.006453e0
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.0066eb10
add esp, 0x18
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x140]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x30], 0x731414
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x1c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
pop esi
test eax, eax
je 0x64e81b
push dword [ebp + 0x14]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x64e7fe
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x64e809
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x651ec0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
sub edi, ebx
jne 0x651ed8
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 0xffffffff
jne 0x651eed
mov ecx, dword [ebp + 8]
call fcn.00652950
pop edi
add eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
xor edx, edx
push esi
cmp edi, 0xffffffff
jbe 0x651f5d
xor ecx, ecx
lea eax, [edi + 1]
div ecx
xor ebx, ebx
mov ecx, eax
mov dword [ebp + 0x10], ecx
lea esi, [ebx + 1]
mov eax, dword [ebp + 8]
cmp ecx, 1
jae 0x651f36
mov byte [ebp - 4], bl
push dword [ebp - 4]
push edi
push 0
push eax
call fcn.00651ec0
mov ecx, dword [ebp + 0x10]
add esp, 0x10
cmp eax, 0xffffffff
ja 0x651f06
cmp eax, edi
ja 0x651f06
add eax, dword [ebp + 0xc]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, eax
call fcn.00652950
imul eax, esi
add ebx, eax
mov eax, edi
sub eax, esi
neg esi
inc eax
cmp esi, eax
je 0x651f54
mov eax, dword [ebp + 8]
xor esi, esi
jmp 0x651f36
pop esi
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
lea ecx, [edi + 1]
div ecx
mov dword [ebp + 0xc], eax
cmp edx, edi
jne 0x651f70
inc eax
mov dword [ebp + 0xc], eax
mov esi, dword [ebp + 8]
cmp dword [esi + 0x9c0], 0x270
jne 0x651f86
mov ecx, esi
call fcn.006533a0
mov eax, dword [esi + 0x9c0]
xor edx, edx
mov ecx, dword [esi + eax*4]
inc eax
mov dword [esi + 0x9c0], 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
div dword [ebp + 0xc]
cmp eax, edi
ja 0x651f73
pop esi
pop edi
add eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x652d70
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x14], ebx
xor edi, edi
lea esi, [ebx + 0x15]
jmp 0x652d90
movzx edx, byte [esi - 1]
lea esi, [esi + 4]
movzx eax, byte [esi - 4]
shl edx, 8
or edx, eax
movzx eax, byte [esi - 3]
shl edx, 8
or edx, eax
movzx eax, byte [esi - 2]
shl edx, 8
or edx, eax
mov dword [ebp + edi*4 - 0x158], edx
inc edi
cmp edi, 0x10
jb 0x652d90
lea edx, [ebp - 0x150]
mov esi, 0x40
lea ebx, [ebx]
mov eax, dword [edx + 0x2c]
lea edx, [edx + 4]
xor eax, dword [edx + 0x14]
xor eax, dword [edx - 0xc]
xor eax, dword [edx - 4]
mov ecx, eax
add eax, eax
shr ecx, 0x1f
xor ecx, eax
mov dword [edx + 0x34], ecx
dec esi
jne 0x652dd0
mov eax, dword [ebx]
mov edi, eax
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 4]
mov esi, dword [ebx + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x10]
xor ebx, ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
jmp 0x652e13
mov edi, dword [ebp - 4]
cmp ebx, 0x14
jae 0x652e2d
mov eax, edx
mov dword [ebp - 8], 0x5a827999
not eax
and eax, ecx
mov ecx, esi
and ecx, edx
or eax, ecx
jmp 0x652e62
cmp ebx, 0x28
jae 0x652e3b
mov dword [ebp - 8], 0x6ed9eba1
jmp 0x652e5c
cmp ebx, 0x3c
jae 0x652e55
mov eax, esi
mov dword [ebp - 8], 0x8f1bbcdc
or eax, edx
and eax, ecx
mov ecx, esi
and ecx, edx
or eax, ecx
jmp 0x652e62
mov dword [ebp - 8], 0xca62c1d6
mov eax, ecx
xor eax, esi
xor eax, edx
mov ecx, dword [ebp - 4]
shr edi, 0x1b
shl ecx, 5
xor edi, ecx
mov ecx, esi
add edi, dword [ebp + ebx*4 - 0x158]
inc ebx
add edi, dword [ebp - 8]
add edi, eax
mov eax, dword [ebp - 0x10]
add edi, dword [ebp - 0xc]
mov dword [ebp - 0x10], esi
mov esi, edx
shr edx, 2
shl esi, 0x1e
xor esi, edx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 4]
mov dword [ebp - 4], edi
cmp ebx, 0x50
jb 0x652e10
mov eax, dword [ebp - 0x18]
add eax, edi
mov edi, dword [ebp - 0x14]
add dword [edi + 8], esi
add dword [edi + 4], edx
add dword [edi + 0xc], ecx
mov dword [edi], eax
mov eax, dword [ebp - 0xc]
add dword [edi + 0x10], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov eax, dword [eax]
mov dword [ecx], eax
mov dword [ecx + 0x9c0], 1
jmp 0x653090
mov esi, dword [ecx + 0x9c0]
mov edx, dword [ecx + esi*4 - 4]
shr edx, 0x1e
xor edx, dword [ecx + esi*4 - 4]
imul eax, edx, 0x6c078965
add eax, esi
mov dword [ecx + esi*4], eax
inc dword [ecx + 0x9c0]
cmp dword [ecx + 0x9c0], 0x270
jb 0x653090
mov edx, dword [ecx + 0x9bc]
xor edx, dword [ecx + 0x630]
pop esi
jns 0x6530da
xor edx, 0x1908b0df
add edx, edx
or edx, 1
jmp 0x6530dc
add edx, edx
mov eax, dword [ecx]
xor eax, edx
and eax, 0x7fffffff
xor dword [ecx], eax
xor eax, eax
lea esp, [esp]
cmp dword [ecx + eax*4], 0
jne 0x653104
inc eax
cmp eax, 0x270
jb 0x6530f0
mov dword [ecx], accept
pop ebp
ret 4
Function at 0x653110
Capabilities:
Generate random numbers via winapi
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push esi
mov esi, ecx
mov dword [ebp - 0x7c], 0x67452301
mov dword [ebp - 0x78], 0xefcdab89
mov dword [ebp - 0x74], 0x98badcfe
mov dword [ebp - 0x70], 0x10325476
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x6c], 0xc3d2e1f0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
test eax, eax
je 0x653175
lea ecx, [ebp - 0x14]
push ecx
push 0x14
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
lea eax, [ebp]
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00652ed0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x7c]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00652ed0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x7c]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00652ed0
lea eax, [ebp - 8]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 8], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp]
push eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00652ed0
push 0
call fcn.0066d8aa
add esp, 4
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], edx
lea ecx, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00652ed0
push 0x788f98
push 0x788f84
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x18], 0x788f84
call fcn.00652ed0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00652ed0
call fcn.00678861
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x7c]
lea eax, [ebp]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00652ed0
call fcn.0066d879
mov dword [ebp - 0xc], eax
call fcn.0066d879
mov dword [ebp - 8], eax
call fcn.0066d879
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x7c]
lea eax, [ebp]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00652ed0
push 4
call fcn.00480108
add esp, 4
mov dword [ebp - 4], eax
lea eax, [ebp]
lea ecx, [ebp - 0x7c]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00652ed0
push dword [ebp - 4]
call fcn.00480130
add esp, 4
mov dword [ebp - 4], esi
lea eax, [ebp]
lea ecx, [ebp - 0x7c]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00652ed0
mov eax, fcn.0066d879
lea ecx, [ebp - 0x7c]
add eax, 4
push eax
push fcn.0066d879
call fcn.00652ed0
lea eax, [esi + 0x14]
push eax
push esi
lea ecx, [ebp - 0x7c]
call fcn.00652ed0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00652b80
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
xor dword [ecx], eax
xor dword [esi], eax
mov eax, dword [ebp - 0x10]
xor dword [ecx + 4], eax
xor dword [esi + 4], eax
mov eax, dword [ebp - 0xc]
xor dword [ecx + 8], eax
xor dword [esi + 8], eax
mov eax, dword [ebp - 8]
xor dword [ecx + 0xc], eax
xor dword [esi + 0xc], eax
mov eax, dword [ebp - 4]
xor dword [ecx + 0x10], eax
xor dword [esi + 0x10], eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x6533a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor edx, edx
mov esi, ecx
cmp dword [0x7896a4], 2
push edi
jl 0x653429
movdqa xmm3, xmmword [0x731680]
lea ecx, [edx + 0x37]
movdqa xmm4, xmmword [0x731690]
mov eax, 1
movdqa xmm6, xmmword [0x7316a0]
mov edx, 0xdc
movdqa xmm7, xmmword [0x7086d0]
movd xmm5, eax
lea eax, [esi + 4]
lea eax, [eax + 0x10]
movdqa xmm0, xmm3
movdqu xmm1, xmmword [eax - 0x10]
movdqu xmm2, xmmword [eax - 0x14]
pand xmm0, xmm1
pand xmm2, xmm4
por xmm2, xmm0
movdqa xmm0, xmm7
pand xmm0, xmm1
psrld xmm2, xmm5
pmulld xmm0, xmm6
pxor xmm2, xmm0
movdqu xmm0, xmmword [eax + 0x620]
pxor xmm2, xmm0
movdqu xmmword [eax - 0x14], xmm2
dec ecx
jne 0x6533e3
lea eax, [esi + 4]
mov edi, 0xde
lea eax, [eax + edx*4]
sub edi, edx
mov edx, dword [eax - 4]
lea eax, [eax + 4]
mov ecx, dword [eax - 4]
xor edx, ecx
and edx, 0x7ffffffe
and ecx, 1
xor edx, dword [eax - 8]
imul ecx, ecx, 0x9908b0df
shr edx, 1
xor edx, ecx
xor edx, dword [eax + 0x62c]
mov dword [eax - 8], edx
dec edi
jne 0x653436
mov eax, dword [esi + 0x37c]
lea edx, [esi + 0x390]
mov ecx, dword [esi + 0x378]
mov edi, 0x18c
xor ecx, eax
and eax, 1
and ecx, 0x7ffffffe
imul eax, eax, 0x9908b0df
xor ecx, dword [esi + 0x378]
shr ecx, 1
xor ecx, eax
mov eax, dword [esi + 0x380]
xor ecx, dword [esi + 0x9ac]
mov dword [esi + 0x378], ecx
mov ecx, dword [esi + 0x37c]
xor ecx, eax
and eax, 1
and ecx, 0x7ffffffe
imul eax, eax, 0x9908b0df
xor ecx, dword [esi + 0x37c]
shr ecx, 1
xor ecx, eax
mov eax, dword [esi + 0x384]
xor ecx, dword [esi + 0x9b0]
mov dword [esi + 0x37c], ecx
mov ecx, dword [esi + 0x380]
xor ecx, eax
and eax, 1
and ecx, 0x7ffffffe
imul eax, eax, 0x9908b0df
xor ecx, dword [esi + 0x380]
shr ecx, 1
xor ecx, eax
mov eax, dword [esi + 0x388]
xor ecx, dword [esi + 0x9b4]
mov dword [esi + 0x380], ecx
mov ecx, dword [esi + 0x384]
xor ecx, eax
and eax, 1
and ecx, 0x7ffffffe
imul eax, eax, 0x9908b0df
xor ecx, dword [esi + 0x384]
shr ecx, 1
xor ecx, eax
mov eax, dword [esi + 0x38c]
xor ecx, dword [esi + 0x9b8]
mov dword [esi + 0x384], ecx
mov ecx, dword [esi + 0x388]
xor ecx, eax
and eax, 1
and ecx, 0x7ffffffe
imul eax, eax, 0x9908b0df
xor ecx, dword [esi + 0x388]
shr ecx, 1
xor ecx, eax
xor ecx, dword [esi + 0x9bc]
mov dword [esi + 0x388], ecx
lea ecx, [ecx]
mov ecx, dword [edx - 4]
lea edx, [edx + 4]
mov eax, dword [edx - 4]
xor ecx, eax
and ecx, 0x7ffffffe
and eax, 1
xor ecx, dword [edx - 8]
imul eax, eax, 0x9908b0df
shr ecx, 1
xor ecx, eax
xor ecx, dword [edx - 0x394]
mov dword [edx - 8], ecx
dec edi
jne 0x653570
mov ecx, dword [esi + 0x9bc]
mov eax, dword [esi]
xor ecx, eax
and ecx, 0x7ffffffe
mov dword [esi + 0x9c0], edi
xor ecx, dword [esi + 0x9bc]
and eax, 1
imul eax, eax, 0x9908b0df
shr ecx, 1
pop edi
xor ecx, eax
xor ecx, dword [esi + 0x630]
mov dword [esi + 0x9bc], ecx
pop esi
ret
Function at 0x655850
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b3f48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xac0
mov eax, ecx
mov dword [ebp - 0x38], vtable.libutilosm::CMyRegKey.0
push esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
push ecx
push dword [ebp + 8]
mov dword [ebp - 0x10], 0
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x6559ac
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x6558cc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x34], eax
test esi, esi
jne 0x6559ac
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0x38]
call fcn.00655bc0
mov esi, eax
test esi, esi
jne 0x6559ac
push ebx
push edi
xor edi, edi
cmp dword [ebp - 0x50], edi
jbe 0x655960
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push 0x100
lea eax, [ebp - 0x2c0]
push eax
push 0
push dword [ebp - 0x34]
call ebx
mov esi, eax
test esi, esi
jne 0x6559aa
mov dword [ebp - 0xc0], 0x100
lea esp, [esp]
mov cl, byte [ebp + eax - 0x2c0]
lea eax, [eax + 1]
mov byte [ebp + eax - 0x1c1], cl
test cl, cl
jne 0x655930
lea eax, [ebp - 0x1c0]
push eax
lea ecx, [ebp - 0x38]
call fcn.00655850
mov esi, eax
test esi, esi
jne 0x6559aa
inc edi
cmp edi, dword [ebp - 0x50]
jb 0x655902
mov edi, 1
cmp dword [ebp - 0x44], edi
jbe 0x655999
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [ebp - 0xacc]
push eax
push 1
lea ecx, [ebp - 0x38]
call fcn.00655ce0
mov esi, eax
test esi, esi
jne 0x6559aa
lea eax, [ebp - 0xacc]
push eax
push dword [ebp - 0x34]
call ebx
inc edi
cmp edi, dword [ebp - 0x44]
jb 0x655970
mov eax, dword [ebp - 0x14]
push dword [ebp + 8]
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
pop edi
pop ebx
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], vtable.libutilosm::CMyRegKey.0
test eax, eax
je 0x6559c8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x34], 0
cmp dword [ebp - 0x18], 0x10
jb 0x6559d9
push dword [ebp - 0x2c]
call fcn.00480130
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x655a20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push dword [ebp + 0xc]
mov esi, ecx
push eax
push 0
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x655a66
mov ecx, dword [ebp - 4]
cmp ecx, 1
je 0x655a66
cmp ecx, 7
je 0x655a66
cmp ecx, 2
je 0x655a66
mov dword [esi + 8], 1
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x655bc0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push 0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0x64
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 0x100
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0xc], 0x64
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], 0x400
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], 0x400
push eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x80]
push eax
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x655c6e
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x80]
push eax
push 0x6ee108
push 0x64
lea eax, [esi + 4]
push eax
call fcn.00673108
mov eax, dword [ebp - 4]
add esp, 0x10
mov dword [esi + 0x68], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x6c], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x70], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x74], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x78], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x7c], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x80], eax
xor eax, eax
mov byte [esi + 0x67], 0
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x655ce0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50c
lea eax, [ebp - 8]
mov dword [ebp - 4], 0x100
push eax
lea eax, [ebp - 0x50c]
mov dword [ebp - 8], 0x400
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x655d77
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x10c]
mov edx, edi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x655d34
mov eax, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov dword [edi + 0x400], eax
mov eax, dword [ebp - 0xc]
mov dword [edi + 0x404], eax
lea eax, [ebp - 0x50c]
push esi
push eax
lea eax, [edi + 0x408]
push eax
call fcn.0066e160
add esp, 0xc
mov dword [edi + 0x808], esi
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x6562b0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x656443
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x656443
push ebx
xor ebx, ebx
mov dword [ebp - 8], 0x104
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x124]
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x65639a
lea ecx, [ecx]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
lea eax, [ebp - 0x124]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, eax
lea eax, [ebp - 0x14]
push eax
push 0x2001f
push 0
lea eax, [ebp - 0x124]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x65635d
test edi, edi
jne 0x656354
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.006562b0
add esp, 8
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x65636a
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x1c]
mov dword [ebp - 8], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp - 8]
inc ebx
push eax
lea eax, [ebp - 0x124]
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov edi, dword [ebp + 0xc]
test eax, eax
je 0x656300
lea eax, [ebp + 8]
mov dword [ebp - 0xc], 0x104
push eax
xor ebx, ebx
lea eax, [ebp - 4]
push ebx
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x228]
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x65643a
push dword [ebp + 8]
call fcn.0066e7a4
add esp, 4
mov edi, eax
lea eax, [ebp + 8]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 0x228]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x656406
push dword [ebp + 8]
push edi
push dword [ebp - 4]
push eax
lea eax, [ebp - 0x228]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
call fcn.0066d775
add esp, 4
mov dword [ebp - 0xc], 0x104
lea eax, [ebp + 8]
inc ebx
push eax
push 0
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x228]
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x6563c4
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 6
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x656b10
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b4011
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov edx, dword [ebp + 8]
push esi
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], 0
cmp byte [edx], 0
mov byte [ebp - 0x24], 0
jne 0x656b4a
xor ecx, ecx
jmp 0x656b59
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x656b50
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x24]
call fcn.00419c50
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00656620
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x656b82
mov eax, dword [eax]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [ebp - 0x28], 8
mov esi, eax
jb 0x656b9f
push dword [ebp - 0x3c]
call fcn.00480130
add esp, 4
xor eax, eax
mov dword [ebp - 0x28], 7
cmp dword [ebp - 0x10], 0x10
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], ax
jb 0x656bc4
push dword [ebp - 0x24]
call fcn.00480130
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x656be0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b4023
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov edx, dword [ebp + 8]
push esi
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], 0
cmp byte [edx], 0
mov byte [ebp - 0x24], 0
jne 0x656c1a
xor ecx, ecx
jmp 0x656c29
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x656c20
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x24]
call fcn.00419c50
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00656620
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x656c52
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [ebp - 0x28], 8
mov esi, eax
jb 0x656c6c
push dword [ebp - 0x3c]
call fcn.00480130
add esp, 4
xor eax, eax
mov dword [ebp - 0x28], 7
cmp dword [ebp - 0x10], 0x10
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], ax
jb 0x656c91
push dword [ebp - 0x24]
call fcn.00480130
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret