joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10061270
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100aa040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x24], edx
push edi
xor ebx, ebx
push ebx
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x100613ec
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10061387
mov ebx, 1
cmp dword [ebp - 0x20], 0x10
jb 0x1006134a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x1006134a
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1006134a
mov edx, dword [esi]
test edx, edx
jne 0x10061316
push 0x200
push edx
push dword [0x100ab050]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x1006136f
jmp 0x1006133e
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x1006133e
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x100ab050]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x1006136f
mov dword [esi], edx
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x100612d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x10061387
mov eax, dword [esi]
xor ebx, ebx
test eax, eax
je 0x10061387
push eax
push ebx
push dword [0x100ab050]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x100613ec
cmp dword [esi], 0
je 0x100613d9
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x100613d9
nop
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x100613d3
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 0x24]
mov ecx, ebx
call fcn.10061100
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x100613a0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10075ccd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 9
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10075ccd
mov esp, ebp
pop ebp
ret
Function at 0x10061410
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100aa040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
push edi
add esi, dword [0x100ab820]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp - 8]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10061471
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10075ccd
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x10061492
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x100614b3
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x100614b3
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x100614ad
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x100614b3
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, bl
xor eax, eax
add cl, cl
shl bl, 2
xor cl, byte [esi + 0x14]
and cl, 2
xor cl, byte [esi + 0x14]
xor bl, cl
and bl, 4
xor bl, cl
mov ecx, dword [ebp - 4]
pop edi
mov byte [esi + 0x14], bl
xor ecx, ebp
pop esi
pop ebx
call fcn.10075ccd
mov esp, ebp
pop ebp
ret
Function at 0x10061510
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [0x100ab828]
sub esp, 0x10
push ebx
push esi
xor esi, esi
mov ebx, ecx
test edx, edx
je 0x10061544
mov eax, dword [0x100ab820]
add eax, 0x14
nop
movzx ecx, byte [eax]
shr ecx, 1
and ecx, 1
cmp ecx, ebx
jne 0x1006154c
inc esi
add eax, 0x2c
cmp esi, edx
jb 0x10061530
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp esi, 0xffffffff
je 0x10061602
test ebx, ebx
lea ecx, [ebp - 0x10]
setne al
or edx, 0xffffffff
push eax
call fcn.10061270
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jne 0x10061602
mov ecx, dword [0x100ab828]
push edi
cmp esi, ecx
jae 0x100615ba
imul edi, esi, 0x2c
mov eax, dword [0x100ab820]
movzx eax, byte [edi + eax + 0x14]
shr eax, 1
and eax, 1
cmp eax, ebx
je 0x100615af
mov edx, ebx
mov ecx, esi
call fcn.10061410
mov dword [ebp - 4], eax
test eax, eax
jne 0x100615ba
mov ecx, dword [0x100ab828]
jmp 0x100615b2
mov eax, dword [ebp - 4]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x10061584
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10061601
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x100615ef
push dword [ebx + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x100615e9
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x100615c8
push ebx
push 0
push dword [0x100ab050]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10067720
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1fffffff
sub esp, 0x10
bsr ecx, eax
push ebx
push esi
push edi
mov edi, 1
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
jbe 0x1006774c
push str.invalid_hash_bucket_count
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [ecx - 1]
mov esi, dword [0x100ab200]
or eax, 1
mov dword [ebp - 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
mov ecx, 0x100ab208
lea eax, [edi + edi]
push eax
call fcn.1000dfd0
mov eax, dword [0x100ab200]
lea ebx, [edi - 1]
mov dword [0x100ab214], ebx
mov dword [0x100ab218], edi
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x10067886
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
mov edx, dword [0x100ab208]
imul edi, edi, 0x1000193
and edi, ebx
mov ebx, dword [edx + edi*8]
lea edx, [edx + edi*8]
mov dword [ebp - 0xc], edx
cmp ebx, esi
jne 0x100677e4
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x10067851
mov edx, dword [edx + 4]
mov edi, dword [eax + 8]
cmp edi, dword [edx + 8]
jne 0x1006781e
mov edx, dword [edx]
mov dword [ebp - 4], edx
cmp edx, eax
je 0x10067816
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 4]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], eax
jmp 0x10067851
cmp ebx, edx
je 0x1006782e
mov edx, dword [edx + 4]
cmp edi, dword [edx + 8]
je 0x10067862
cmp ebx, edx
jne 0x10067822
mov ebx, dword [eax + 4]
mov dword [ebp - 4], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 4]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], edi
mov dword [edx], eax
mov eax, ecx
cmp ecx, esi
je 0x10067886
mov ebx, dword [0x100ab214]
jmp 0x10067792
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 4], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x10067851
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10067b30
Capabilities:
Hash data using fnv

Disassembly:
mov al, byte [ecx]
test al, al
jne 0x10067b39
mov eax, edx
ret
movsx eax, al
xor eax, edx
imul edx, eax, 0x1000193
inc ecx
jmp fcn.10067b30
Function at 0x1006bcd0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1fffffff
sub esp, 0x10
bsr ecx, eax
push ebx
push esi
push edi
mov edi, 1
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
jbe 0x1006bcfc
push str.invalid_hash_bucket_count
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [ecx - 1]
mov esi, dword [0x100aa4a8]
or eax, 1
mov dword [ebp - 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
mov ecx, 0x100aa4b0
lea eax, [edi + edi]
push eax
call fcn.1000dfd0
mov eax, dword [0x100aa4a8]
lea ebx, [edi - 1]
mov dword [0x100aa4bc], ebx
mov dword [0x100aa4c0], edi
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x1006be36
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
mov edx, dword [0x100aa4b0]
imul edi, edi, 0x1000193
and edi, ebx
mov ebx, dword [edx + edi*8]
lea edx, [edx + edi*8]
mov dword [ebp - 0xc], edx
cmp ebx, esi
jne 0x1006bd94
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x1006be01
mov edx, dword [edx + 4]
mov edi, dword [eax + 8]
cmp edi, dword [edx + 8]
jne 0x1006bdce
mov edx, dword [edx]
mov dword [ebp - 4], edx
cmp edx, eax
je 0x1006bdc6
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 4]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], eax
jmp 0x1006be01
cmp ebx, edx
je 0x1006bdde
mov edx, dword [edx + 4]
cmp edi, dword [edx + 8]
je 0x1006be12
cmp ebx, edx
jne 0x1006bdd2
mov ebx, dword [eax + 4]
mov dword [ebp - 4], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 4]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], edi
mov dword [edx], eax
mov eax, ecx
cmp ecx, esi
je 0x1006be36
mov ebx, dword [0x100aa4bc]
jmp 0x1006bd42
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 4], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x1006be01
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1007505e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x10075085
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x10075088
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.1007503a
pop esi
leave
ret 8
Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x3fe4bcf
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
mov ecx, 0x3ec51c19
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x465b3c
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004659b3

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..idata
nop
mov ebx, 0x408ecc
mov ecx, 0x5186d65
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
mov ecx, 0x3e34108d
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x53966569
nop
nop
nop
nop
test eax, eax
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x464f5890
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
jmp 0x401219

Function at 0x422082
Capabilities:
Check for trap flag exception

Disassembly:
push ebx
pushal
mov ebp, sub.kernel32.dll_LoadLibraryA
lea eax, [ebp + 0x33]
lea ebx, [ebp + 0x59]
call fcn.004221b0
lea eax, [ebp + 0x33]
lea ebx, [ebp + 0x4c]
call fcn.004221b0
lea eax, [ebp + 0x28]
lea ebx, [ebp + 0x40]
call fcn.004221b0
lea eax, [ebp + 0x16c]
push eax
call dword [ebp + 0x5a]
mov dword [ebp + 0x75], eax
mov edi, 0x648aa46f
mov ecx, 0x3e8
xor ebx, ebx
mov esi, 0x312e1fcf
pushfd
or dword [esp], 0x100
popfd
rol ebx, 1
jb 0x4220dc
mov dword [ebp + 0x7a], 0xa4
ror esi, 1
jb 0x4220e7
mov dword [ebp + 0x7a], 0xa0
ror ebx, 1
jb 0x4220ee
inc dword [ebp + 0x7e]
ror esi, 1
jb 0x4220f5
dec dword [ebp + 0x7e]
loop 0x4220d1
mov byte [ebp + 0x79], 0
push dword [ebp + 0x75]
call dword [ebp + 0x5a]
xor edi, ebx
add edi, esi
xor ebx, ebx
mov ecx, 0x5a
lea esi, [ebp + 0x82]
cld
lodsd eax, dword [esi]
add ebx, eax
loop 0x422113
add ebx, dword [ebp + 0x1ec]
mov dword [esp + 0x20], ebx
lea eax, [ebp + 0x33]
lea ebx, [ebp + 0xc]
call fcn.004221b0
push eax
lea eax, [ebp + 0x33]
lea ebx, [ebp + 0x19]
call fcn.004221b0
jb 0x422140
mov edx, dword [ebp + 8]
mov dword [edx], eax
pop ecx
jecxz 0x422148
mov edx, dword [ebp + 2]
mov dword [edx], ecx
mov edx, section..grand
mov ecx, 0x600
mov eax, edi
xor byte [edx], al
rol eax, 1
jae 0x42215c
add al, cl
bt ecx, 0xc
jb 0x422166
ror ax, 3
inc edx
loop 0x422154
popal
clc
ret
Function at 0x402b7a
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x434f70]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402c0e
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402bcb
cmp dword [ebp + 0x10], ebx
jne 0x402c02
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402b7a
test eax, eax
jne 0x402bdd
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402bb2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004061b2
cmp eax, ebx
je 0x402c15
push ebx
push dword [0x434f70]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402c0e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x434f70], ebx
jne 0x402c0b
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402c0b
jmp 0x402c0e
Function at 0x4055bf
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x430220], 0x44
push eax
xor eax, eax
push 0x430220
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4055fe
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405688
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405a8f
mov edi, eax
cmp edi, 0xffffffff
je 0x4056c9
test byte [esp + 0x10], 1
push esi
je 0x4056ab
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4056b1
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4056ba
xor eax, eax
inc eax
jmp 0x4056cb
test byte [esp + 0x10], 4
jne 0x4056c9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x4056d0
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.0040599b
test bl, 8
mov dword [ebp - 8], eax
je 0x40570f
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x434f48], eax
jmp 0x40588c
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405729
test eax, eax
je 0x40583a
test bl, 2
je 0x40583a
mov esi, 0x42f220
push edi
push esi
call fcn.00405e48
cmp dword [ebp + 8], 0
je 0x405748
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x40574e
push edi
call fcn.004058df
cmp word [edi], 0
jne 0x40575e
cmp word [0x42f220], 0x5c
jne 0x405769
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40582f
cmp word [ebp - 0x22c], 0x2e
jne 0x4057b3
cmp word [ebp - 0x22a], 0
je 0x405812
cmp word [ebp - 0x22a], 0x2e
jne 0x4057b3
cmp word [ebp - 0x228], 0
je 0x405812
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00405e48
test byte [ebp - 0x258], 0x10
je 0x4057de
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405812
push dword [ebp + 0xc]
push edi
call fcn.004056d0
jmp 0x405812
push dword [ebp - 4]
push edi
call fcn.00405688
test eax, eax
jne 0x40580a
cmp dword [ebp - 4], eax
je 0x405802
push edi
push 0xfffffffffffffff1
call fcn.004050f0
push 0
push edi
call fcn.00405ce2
jmp 0x405812
inc dword [0x434f48]
jmp 0x405812
push edi
push 0xfffffffffffffff2
call fcn.004050f0
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40578b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x40583a
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40588c
cmp dword [ebp - 8], esi
jne 0x40584e
inc dword [0x434f48]
jmp 0x40588c
push edi
call fcn.0040618b
test eax, eax
je 0x40588c
push edi
call fcn.00405893
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405688
test eax, eax
jne 0x405884
cmp dword [ebp - 4], esi
je 0x405846
push edi
push 0xfffffffffffffff1
call fcn.004050f0
push esi
push edi
call fcn.00405ce2
jmp 0x40588c
push edi
push 0xffffffffffffffe5
call fcn.004050f0
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40599b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42fa20
push esi
call fcn.00405e48
push esi
call fcn.0040593e
mov edi, eax
test edi, edi
jne 0x4059bc
xor eax, eax
jmp 0x405a14
push edi
call fcn.004060dc
test byte [0x434ed8], 0x80
je 0x4059d9
mov ax, word [edi]
test ax, ax
je 0x4059b8
cmp ax, 0x5c
je 0x4059b8
sub edi, esi
sar edi, 1
jmp 0x4059f3
call fcn.0040618b
test eax, eax
je 0x4059ed
test byte [eax], 0x10
je 0x4059b8
push esi
call fcn.004058df
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x4059df
call fcn.00405893
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405a8f
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405aae
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405ab4
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x405ae3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a528]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a52c]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405b33
test edi, edi
jne 0x405af0
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405b2d