joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47f6d0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push esi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0xc]
and eax, 0xff
mov ah, al
mov edx, eax
shl eax, 0x10
or eax, edx
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp + 0x10]
shr eax, 2
add eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
rdtsc
mov esi, dword [ebp - 0x14]
mov ecx, eax
rdtsc
mov esi, dword [esi]
mov edi, eax
rdtsc
sub eax, edi
sub edi, ecx
mov edx, eax
lea esi, [edi*4]
shr edi, 2
add edi, esi
xor eax, eax
sub edi, edx
setge al
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x47f78e
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
shr ecx, 7
mov eax, dword [ebp + 0xc]
and eax, 0xff
jne 0x47f77b
movd xmm0, eax
pshufd xmm0, xmm0, 0
lea esi, [esi]
movdqa xmmword [edi], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x40], xmm0
movdqa xmmword [edi + 0x50], xmm0
movdqa xmmword [edi + 0x60], xmm0
movdqa xmmword [edi + 0x70], xmm0
lea edi, [edi + 0x80]
dec ecx
jne 0x47f740
emms
jmp 0x47f789
mov ah, al
mov edx, eax
shl eax, 0x10
or eax, edx
jmp 0x47f731
jmp 0x47f84c
mov eax, dword [ebp + 0x10]
mov edx, eax
shr edx, 1
shr eax, 2
add edx, dword [ebp + 8]
add edx, eax
mov dword [ebp - 0xc], edx
rdtsc
mov esi, dword [ebp - 0xc]
mov ecx, eax
rdtsc
mov esi, dword [esi]
mov edi, eax
rdtsc
sub eax, edi
sub edi, ecx
mov edx, eax
lea esi, [edi*4]
shr edi, 2
add edi, esi
xor eax, eax
sub edi, edx
setge al
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
jne 0x47f71a
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
shr ecx, 7
mov eax, dword [ebp + 0xc]
and eax, 0xff
jne 0x47f83e
movd xmm0, eax
pshufd xmm0, xmm0, 0
lea esi, [esi]
lea edi, [edi]
movntdq xmmword [edi], xmm0
movntdq xmmword [edi + 0x10], xmm0
movntdq xmmword [edi + 0x20], xmm0
movntdq xmmword [edi + 0x30], xmm0
movntdq xmmword [edi + 0x40], xmm0
movntdq xmmword [edi + 0x50], xmm0
movntdq xmmword [edi + 0x60], xmm0
movntdq xmmword [edi + 0x70], xmm0
lea edi, [edi + 0x80]
dec ecx
jne 0x47f800
sfence
emms
jmp 0x47f84c
mov ah, al
mov edx, eax
shl eax, 0x10
or eax, edx
jmp 0x47f7ed
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
test dword [0x66300c], 0xfffffe00
jne 0x47f6d0
test dword [0x66300c], 0xffffff80
jne 0x47f69c
test dword [0x66300c], 0xffffffff
jne 0x47fbb8
call fcn.0047fc84
jmp fcn.0047f858
push ebp
mov ebp, esp
push esi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
rep stosb byte es:[edi], al
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x47f858
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push esi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0xc]
and eax, 0xff
mov ah, al
mov edx, eax
shl eax, 0x10
or eax, edx
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp + 0x10]
shr eax, 2
add eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
rdtsc
mov esi, dword [ebp - 0x14]
mov ecx, eax
rdtsc
mov esi, dword [esi]
mov edi, eax
rdtsc
sub eax, edi
sub edi, ecx
mov edx, eax
lea esi, [edi*4]
shr edi, 2
add edi, esi
xor eax, eax
sub edi, edx
setge al
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x47f78e
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
shr ecx, 7
mov eax, dword [ebp + 0xc]
and eax, 0xff
jne 0x47f77b
movd xmm0, eax
pshufd xmm0, xmm0, 0
lea esi, [esi]
movdqa xmmword [edi], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x40], xmm0
movdqa xmmword [edi + 0x50], xmm0
movdqa xmmword [edi + 0x60], xmm0
movdqa xmmword [edi + 0x70], xmm0
lea edi, [edi + 0x80]
dec ecx
jne 0x47f740
emms
jmp 0x47f789
mov ah, al
mov edx, eax
shl eax, 0x10
or eax, edx
jmp 0x47f731
jmp 0x47f84c
mov eax, dword [ebp + 0x10]
mov edx, eax
shr edx, 1
shr eax, 2
add edx, dword [ebp + 8]
add edx, eax
mov dword [ebp - 0xc], edx
rdtsc
mov esi, dword [ebp - 0xc]
mov ecx, eax
rdtsc
mov esi, dword [esi]
mov edi, eax
rdtsc
sub eax, edi
sub edi, ecx
mov edx, eax
lea esi, [edi*4]
shr edi, 2
add edi, esi
xor eax, eax
sub edi, edx
setge al
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
jne 0x47f71a
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
shr ecx, 7
mov eax, dword [ebp + 0xc]
and eax, 0xff
jne 0x47f83e
movd xmm0, eax
pshufd xmm0, xmm0, 0
lea esi, [esi]
lea edi, [edi]
movntdq xmmword [edi], xmm0
movntdq xmmword [edi + 0x10], xmm0
movntdq xmmword [edi + 0x20], xmm0
movntdq xmmword [edi + 0x30], xmm0
movntdq xmmword [edi + 0x40], xmm0
movntdq xmmword [edi + 0x50], xmm0
movntdq xmmword [edi + 0x60], xmm0
movntdq xmmword [edi + 0x70], xmm0
lea edi, [edi + 0x80]
dec ecx
jne 0x47f800
sfence
emms
jmp 0x47f84c
mov ah, al
mov edx, eax
shl eax, 0x10
or eax, edx
jmp 0x47f7ed
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
test dword [0x66300c], 0xfffffe00
jne 0x47f6d0
test dword [0x66300c], 0xffffff80
jne 0x47f69c
test dword [0x66300c], 0xffffffff
jne 0x47fbb8
call fcn.0047fc84
jmp fcn.0047f858
push ebp
mov ebp, esp
push esi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
rep stosb byte es:[edi], al
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x47fab4
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push esi
mov dword [ebp - 4], edi
xor eax, eax
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp + 0xc]
shr eax, 2
add eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
rdtsc
mov esi, dword [ebp - 0x14]
mov ecx, eax
rdtsc
mov esi, dword [esi]
mov edi, eax
rdtsc
sub eax, edi
sub edi, ecx
mov edx, eax
lea esi, [edi*4]
shr edi, 2
add edi, esi
xor eax, eax
sub edi, edx
setge al
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x47fa1b
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
shr ecx, 7
pxor xmm0, xmm0
mov esi, esi
lea edi, [edi]
movdqa xmmword [edi], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x40], xmm0
movdqa xmmword [edi + 0x50], xmm0
movdqa xmmword [edi + 0x60], xmm0
movdqa xmmword [edi + 0x70], xmm0
lea edi, [edi + 0x80]
dec ecx
jne 0x47f9e0
emms
jmp 0x47faa9
mov eax, dword [ebp + 0xc]
mov edx, eax
shr edx, 1
shr eax, 2
add edx, dword [ebp + 8]
add edx, eax
mov dword [ebp - 0xc], edx
rdtsc
mov esi, dword [ebp - 0xc]
mov ecx, eax
rdtsc
mov esi, dword [esi]
mov edi, eax
rdtsc
sub eax, edi
sub edi, ecx
mov edx, eax
lea esi, [edi*4]
shr edi, 2
add edi, esi
xor eax, eax
sub edi, edx
setge al
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
jne 0x47f9ca
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
shr ecx, 7
pxor xmm0, xmm0
movntdq xmmword [edi], xmm0
movntdq xmmword [edi + 0x10], xmm0
movntdq xmmword [edi + 0x20], xmm0
movntdq xmmword [edi + 0x30], xmm0
movntdq xmmword [edi + 0x40], xmm0
movntdq xmmword [edi + 0x50], xmm0
movntdq xmmword [edi + 0x60], xmm0
movntdq xmmword [edi + 0x70], xmm0
lea edi, [edi + 0x80]
dec ecx
jne 0x47fa70
sfence
emms
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
test dword [0x66300c], 0xfffffe00
jne 0x47f980
test dword [0x66300c], 0xffffff80
jne 0x47f95c
test dword [0x66300c], 0xffffffff
jne 0x47fba0
call fcn.0047fc84
jmp fcn.0047fab4
push ebp
mov ebp, esp
push esi
mov dword [ebp - 4], edi
xor eax, eax
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
rep stosb byte es:[edi], al
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
mov ecx, 0x15093f3f
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x2c39099d
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x41c607
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x4a620c]
sub esp, 0xc
push esi
xor esi, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41c6a7
push ebx
mov ebx, 0x4a6244
push ebx
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
cmp dword [0x4a620c], esi
jne 0x41c696
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0041c2b8
mov esi, eax
test esi, esi
js 0x41c68d
push 0x401554
push 0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x4a620c], eax
call edi
cmp dword [0x4a620c], 0
jne 0x41c684
call edi
mov esi, eax
test esi, esi
jle 0x41c68d
and esi, 0xffff
or esi, 0x80070000
jmp 0x41c68d
cmp eax, 0xb7
jne 0x41c68d
xor esi, esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
pop ebx
test esi, esi
js 0x41c6f3
mov eax, dword [0x4a620c]
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41c6f3
cmp eax, 0x80
je 0x41c6ee
cmp eax, 0x102
je 0x41c6e7
cmp eax, 0xffffffff
je 0x41c6d1
mov esi, 0x8000ffff
jmp 0x41c6f3
call edi
mov esi, eax
test esi, esi
jle 0x41c6f3
and esi, 0xffff
or esi, 0x80070000
jmp 0x41c6f3
mov esi, 0x800705b4
jmp 0x41c6f3
mov esi, 0x800702df
pop edi
mov eax, esi
pop esi
leave
ret 4

Function at 0x41c88a
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4970c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x210], ecx
lea ecx, [ebp - 0x20c]
push ecx
push 0x4015d4
push eax
call fcn.0041c1aa
mov esi, eax
test esi, esi
js 0x41c968
push ebx
push edi
lea eax, [ebp - 0x20c]
push eax
xor edi, edi
push edi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ebx, eax
test ebx, ebx
jne 0x41c8f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x41c8f9
and esi, 0xffff
or esi, 0x80070000
test esi, esi
js 0x41c95b
push 4
push edi
push edi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x41c926
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x41c928
and esi, 0xffff
or esi, 0x80070000
test esi, esi
js 0x41c934
mov eax, dword [edi]
mov ecx, dword [ebp - 0x210]
mov dword [ecx], eax
test edi, edi
je 0x41c95b
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
jne 0x41c95b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x41c95b
and esi, 0xffff
or esi, 0x80070000
test ebx, ebx
je 0x41c966
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00484deb
leave
ret 4
Function at 0x41cd32
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4970c0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x4a9380], 0
je 0x41cd52
or eax, 0xffffffff
jmp 0x41cda1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, 0x40ad60
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0xc]
movsw word es:[edi], word [esi]
push ecx
jmp 0x41cd8f
push esi
mov eax, 0x40ad68
call fcn.0041d8ac
test eax, eax
je 0x41cdb4
push esi
mov eax, 0x40ad80
call fcn.0041d8ac
test eax, eax
je 0x41cdad
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.0041d956
mov esi, eax
test esi, esi
jne 0x41cd6b
call fcn.0041cef0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00484deb
leave
ret
call fcn.0041d040
jmp 0x41cd9f
mov eax, dword [0x4a938c]
test eax, eax
je 0x41cdc3
call eax
test eax, eax
js 0x41cd9f
call fcn.0041d1a4
test eax, eax
js 0x41cd9f
xor eax, eax
jmp 0x41cd9f

Function at 0x41cea1
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x4a6278], eax
test eax, eax
je 0x41cee8
lea eax, [ebp - 4]
push eax
push esi
push 0x4a6248
push 0x41cfde
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
jne 0x41cee6
push dword [0x4a6278]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret
Function at 0x41dddf
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x240
mov eax, 0x48691f
call fcn.004853fc
mov eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x23c], esi
mov edi, edx
mov dword [ebp - 0x224], eax
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [ebp - 4], ebx
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x228], 1
mov dword [ebp - 0x21c], 0x208
jb 0x41de36
mov eax, dword [eax]
cmp dword [edi + 0x14], 8
jb 0x41de40
mov ecx, dword [edi]
jmp 0x41de42
mov ecx, edi
lea edx, [ebp - 0x21c]
push edx
lea edx, [ebp - 0x218]
push edx
push ebx
push 0x20
push eax
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x41de95
lea ecx, [ebp - 0x218]
lea edx, [ebp - 0x238]
call fcn.0041e03c
mov edi, eax
mov eax, esi
mov dword [ebp - 4], 1
call fcn.00420863
lea esi, [ebp - 0x238]
call fcn.00420957
jmp 0x41df38
cmp eax, 0xea
jne 0x41df38
mov eax, dword [ebp - 0x21c]
shr eax, 1
inc eax
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x230], ebx
push eax
lea ebx, [ebp - 0x238]
call fcn.00420bec
mov eax, dword [ebp - 0x224]
mov dword [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x41dedc
mov eax, dword [eax]
cmp dword [edi + 0x14], 8
jb 0x41dee4
mov edi, dword [edi]
mov ebx, dword [ebp - 0x238]
lea ecx, [ebp - 0x21c]
push ecx
push ebx
push 0
push 0x20
push eax
push edi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x41df2c
mov ecx, ebx
lea edx, [ebp - 0x24c]
call fcn.0041e03c
mov edi, eax
mov eax, esi
mov byte [ebp - 4], 3
call fcn.00420863
lea esi, [ebp - 0x24c]
call fcn.00420957
test ebx, ebx
je 0x41df38
push ebx
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void__]
pop ecx
mov eax, dword [ebp - 0x220]
call fcn.0048548e
ret 4
Function at 0x41df4b
Capabilities:
Delete registry value
Set registry value

Disassembly:
push 0x2c
mov eax, 0x4864fc
call fcn.004853fc
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
mov esi, ecx
mov edi, edx
jb 0x41df66
mov eax, dword [eax]
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x34]
push ecx
push ebx
push 2
push ebx
push ebx
push ebx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x41dfa0
jle 0x41df8f
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x30], eax
push 0x48d91c
lea eax, [ebp - 0x30]
push eax
call sub.msvcrt.dll__CxxThrowException
mov eax, dword [edi + 4]
sub eax, dword [edi]
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
je 0x41e005
push edi
lea eax, [ebp - 0x2c]
push eax
call fcn.0041e0dc
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 8
mov ecx, dword [ebp - 0x2c]
jae 0x41dfc8
lea ecx, [ebp - 0x2c]
cmp dword [esi + 0x14], 8
jb 0x41dfd0
mov esi, dword [esi]
mov eax, dword [ebp - 0x1c]
lea eax, [eax*2 + 2]
push eax
push ecx
push 7
push ebx
push esi
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x41dff1
jle 0x41df8f
jmp 0x41df85
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
call fcn.0042081b
call fcn.0048548e
ret 4
cmp dword [esi + 0x14], 8
jb 0x41e00d
mov esi, dword [esi]
push esi
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x41dffd
jle 0x41e027
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x38], eax
push 0x48d91c
lea eax, [ebp - 0x38]
jmp 0x41df9a

Function at 0x41e24c
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0x29c
mov eax, 0x486846
call fcn.004853fc
mov ebx, ecx
mov dword [ebp - 0x2a0], ebx
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, ecx
mov dword [ebp - 0x29c], ecx
push ecx
push ecx
push ecx
push ecx
lea ecx, [ebp - 0x2a8]
push ecx
lea ecx, [ebp - 0x260]
push ecx
push eax
push ebx
mov dword [ebp - 0x2a8], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0xea
je 0x41e347
test eax, eax
jne 0x41e370
lea eax, [ebp - 0x2a4]
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push 2
push 0x4012d4
lea eax, [ebp - 0x260]
push eax
push ebx
mov dword [ebp - 0x2a4], 0x4e
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x41e347
lea ecx, [ebp - 0x60]
lea eax, [ebp - 0x298]
call fcn.0041fbc8
lea ecx, [ebp - 0x260]
lea eax, [ebp - 0x27c]
mov byte [ebp - 4], 1
call fcn.0041fbc8
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0x18]
invalid
test ecx, ecx
je 0x41e36b
mov eax, dword [ecx]
lea edx, [ebp - 0x298]
push edx
lea edx, [ebp - 0x27c]
push edx
call dword [eax + 4]
test al, al
sete bl
push 1
xor edi, edi
lea esi, [ebp - 0x27c]
call fcn.0042081b
push 1
lea esi, [ebp - 0x298]
mov byte [ebp - 4], 0
call fcn.0042081b
test bl, bl
jne 0x41e35b
mov ebx, dword [ebp - 0x2a0]
mov eax, dword [ebp - 0x29c]
inc eax
mov dword [ebp - 0x29c], eax
xor ecx, ecx
jmp 0x41e270
or dword [ebp - 4], 0xffffffff
lea esi, [ebp + 8]
call fcn.0042f635
xor al, al
jmp 0x41e37e
call fcn.00483f92
or dword [ebp - 4], 0xffffffff
lea esi, [ebp + 8]
call fcn.0042f635
mov al, 1
call fcn.0048548e
ret 0x18
Function at 0x41f0c9
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0x2c
mov eax, 0x4864fc
call fcn.004853fc
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ebx
test eax, eax
je 0x41f198
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x41f1a9
test byte [0x4a9400], 4
je 0x41f108
mov edx, ebx
mov edi, 0x40b230
call fcn.0041dd64
mov dword [ebp - 0x34], 0x80070057
push 0x48d91c
lea eax, [ebp - 0x34]
push eax
call sub.msvcrt.dll__CxxThrowException
and dword [ebp - 0x1c], 0
push 7
xor edx, edx
pop ecx
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x2c], dx
cmp ebx, eax
je 0x41f142
sub eax, ebx
sar eax, 1
mov ecx, ebx
lea esi, [ebp - 0x2c]
call fcn.0042072d
mov ecx, dword [ebp - 0x18]
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
cmp ecx, 8
jae 0x41f151
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41f185
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x41f168
lea eax, [ebp - 0x2c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41f185
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x41f1af
or dword [ebp - 4], 0xffffffff
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
call fcn.0042081b
push dword [ebp - 0x30]
call dword [sym.imp.SHLWAPI.dll_PathFindNextComponentW]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x41f11d
call fcn.0048548e
ret
test byte [0x4a9400], 8
je 0x41f1c4
mov edx, ebx
mov edi, 0x40b220
call fcn.0041dd64
test esi, esi
jle 0x41f1d4
and esi, 0xffff
or esi, 0x80070000
mov dword [ebp - 0x30], esi
push 0x48d91c
lea eax, [ebp - 0x30]
jmp 0x41f117
Function at 0x41f1e9
Capabilities:
Enumerate files on windows

Disassembly:
push 0x308
mov eax, 0x4864c7
call fcn.004853fc
mov eax, dword [ebp + 8]
mov esi, ecx
lea ecx, [ebp - 0xbc]
push ecx
mov ecx, eax
mov dword [ebp - 0x314], eax
call fcn.00422177
and dword [ebp - 4], 0
push esi
lea ecx, [ebp - 0x44]
push ecx
mov ecx, eax
call fcn.00422126
push 1
xor edi, edi
lea esi, [ebp - 0xbc]
call fcn.0042081b
mov eax, 0x41ee1a
test eax, eax
jne 0x41f23e
and dword [ebp - 0x18], edi
jmp 0x41f24e
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x410c94
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x41f25e
lea eax, [ebp - 0x44]
push 0
push 0
push 0
lea ecx, [ebp - 0x310]
push ecx
push 1
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
push eax
lea ecx, [ebp - 0x28]
lea edi, [ebp - 0x68]
call fcn.0042f5f2
lea esi, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.0042f635
cmp dword [ebp - 0x68], 0xffffffff
je 0x41f31b
mov ecx, dword [ebp - 0x314]
push 0x5c
lea eax, [ebp - 0xa0]
push eax
call fcn.004220c6
push eax
lea eax, [ebp - 0x2e4]
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 6
call fcn.004221d9
push 1
xor edi, edi
lea esi, [ebp - 0xa0]
mov byte [ebp - 4], 8
call fcn.0042081b
test byte [ebp - 0x310], 0x10
jne 0x41f2f0
cmp dword [ebx + 0x10], edi
je 0x41f33c
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
lea edx, [ebp - 0x84]
push edx
call dword [eax + 4]
push 1
xor edi, edi
lea esi, [ebp - 0x84]
mov byte [ebp - 4], 5
call fcn.0042081b
lea eax, [ebp - 0x310]
push eax
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41f296
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 4], 2
call fcn.00435efa
push 1
xor edi, edi
lea esi, [ebp - 0x44]
call fcn.0042081b
call fcn.0048548e
ret 4
call fcn.00483f92
int3