joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fd770
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x5ce7e6
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65b4e4]
xor eax, esp
push eax
lea eax, [esp + 0xbc]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor edi, edi
lea esi, [ebp + 0x18]
test esi, esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
je 0x4fd7bd
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0x14]
xor ecx, ecx
cmp eax, ecx
jbe 0x4fd7d8
mov dword [esp + 0x14], eax
mov dword [ebp + 4], ecx
mov dword [ebp + 0x14], ecx
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], ecx
mov edi, eax
cmp esi, ecx
je 0x4fd7e3
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jle 0x4fd996
cmp dword [esp + 0xcc], 0
je 0x4fd95e
call sub.KERNEL32.dll_GetCurrentThreadId
xor ecx, ecx
test edi, edi
jle 0x4fd81e
mov edx, dword [esp + 0x18]
cmp dword [edx + ecx*4], eax
je 0x4fd816
add ecx, 1
cmp ecx, edi
jl 0x4fd804
jmp 0x4fd81e
cmp ecx, edi
jl 0x4fd95e
xor esi, esi
test edi, edi
jle 0x4fd95e
mov edi, dword [esp + 0xd0]
nop
mov eax, dword [ebx + esi*4]
test eax, eax
je 0x4fd94d
push edi
push eax
mov dword [esp + 0x24], 0xffffffff
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4fd934
push 1
push 2
lea ecx, [esp + 0x44]
call fcn.0040b160
push edi
lea eax, [esp + 0x40]
push 0x5f305c
push eax
mov dword [esp + 0xd0], 0
call fcn.00409c80
add esp, 8
mov ecx, eax
call fcn.004024e0
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x40]
call fcn.00409610
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0xc4], 1
jb 0x4fd8a9
mov eax, dword [eax + 4]
jmp 0x4fd8ac
add eax, 4
push eax
push str.BaseLib::CTask::Close
push 0xbf
push str..common_task.cpp
push 0xf0000000
call fcn.00409980
mov ecx, eax
call fcn.004fa910
cmp dword [esp + 0x38], 0x10
jb 0x4fd8e1
mov edx, dword [esp + 0x24]
push edx
call fcn.00594e98
add esp, 4
lea ecx, [esp + 0x88]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
mov dword [esp + 0xc4], 0xffffffff
call fcn.00409f20
lea eax, [esp + 0x88]
push eax
mov dword [esp + 0x8c], vtable.std::ios_base.0
call fcn.005cccbe
mov ecx, dword [ebx + esi*4]
add esp, 4
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebx + esi*4]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x1c]
mov dword [ecx + esi*4], edx
add esi, 1
cmp esi, dword [esp + 0x14]
jl 0x4fd830
mov edi, dword [esp + 0x14]
xor esi, esi
test edi, edi
jle 0x4fd983
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ebx, [ebx]
mov eax, dword [ebx + esi*4]
test eax, eax
je 0x4fd97a
push eax
call edi
add esi, 1
cmp esi, dword [esp + 0x14]
jl 0x4fd970
push ebx
call fcn.00594e98
mov eax, dword [esp + 0x1c]
push eax
call fcn.00594e98
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0xbc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb4
ret 8
Function at 0x4fe150
Capabilities:
Move file

Disassembly:
mov edx, dword [esp + 4]
test edx, edx
je 0x4fe181
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x4fe181
cmp dword [esp + 0xc], 0
mov eax, 0xa
jne 0x4fe171
mov eax, 0xb
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
neg eax
sbb eax, eax
neg eax
ret
xor eax, eax
ret

Function at 0x4fe1b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
xor ecx, ecx
test edx, edx
jbe 0x4fe1f2
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jmp 0x4fe1d0
movzx edi, byte [ecx + esi]
mov ebx, eax
and ebx, 0xff
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x6560d0]
add ecx, 1
cmp ecx, edx
jb 0x4fe1d0
pop edi
pop esi
pop ebx
ret

Function at 0x4fe250
Capabilities:
Check os version

Disassembly:
sub esp, 0xac
mov eax, dword [0x65b4e4]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
mov ebx, dword [esp + 0xb4]
push esi
push edi
mov edi, dword [esp + 0xc0]
push 0x9c
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.005b4520
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], 0x9c
call esi
test eax, eax
jne 0x4fe2cf
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], 0x94
call esi
test eax, eax
jne 0x4fe2cf
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.005b0968
add esp, 0xac
ret
mov eax, dword [esp + 0x1c]
cmp eax, 6
mov ecx, dword [esp + 0x20]
mov dword [ebx], eax
mov dword [edi], ecx
jne 0x4fe368
cmp ecx, 2
jne 0x4fe368
push str.ntdll.dll
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4fe2b5
push str.RtlGetNtVersionNumbers
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4fe33b
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
push ecx
call eax
and dword [esp + 0xc], 0xffff
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x10]
cmp eax, 6
jne 0x4fe353
mov edx, dword [esp + 0x14]
mov dword [edi], edx
jmp 0x4fe368
cmp eax, 0xa
jne 0x4fe2b5
mov dword [ebx], 6
mov dword [edi], 4
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.005b0968
add esp, 0xac
ret
Function at 0x4fe5d0
Capabilities:
Check os version

Disassembly:
sub esp, 0xac
mov eax, dword [0x65b4e4]
xor eax, esp
mov dword [esp + 0xa8], eax
push esi
mov esi, dword [esp + 0xb4]
push edi
push 0x9c
lea eax, [esp + 0x18]
push 0
push eax
call fcn.005b4520
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 0x9c
call edi
test eax, eax
jne 0x4fe646
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], 0x94
call edi
test eax, eax
jne 0x4fe646
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.005b0968
add esp, 0xac
ret
mov eax, dword [esp + 0x24]
sub eax, 0
mov dword [esi], 0
je 0x4fe7e1
sub eax, 1
je 0x4fe7b7
sub eax, 1
jne 0x4fe7e7
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.004fe250
add esp, 8
test eax, eax
je 0x4fe62d
cmp dword [esp + 0x18], 4
ja 0x4fe693
mov dword [esi], 5
jmp 0x4fe7e7
mov eax, dword [esp + 0xc]
cmp eax, 5
jne 0x4fe6d4
mov eax, dword [esp + 8]
sub eax, 0
je 0x4fe6c9
sub eax, 1
je 0x4fe6be
sub eax, 1
jne case.default.0x4fe6ea
mov dword [esi], 8
jmp 0x4fe7e7
mov dword [esi], 7
jmp 0x4fe7e7
mov dword [esi], 6
jmp 0x4fe7e7
cmp eax, 6
jne 0x4fe7e7
mov eax, dword [esp + 8]
cmp eax, 4
ja case.default.0x4fe6ea
jmp dword [eax*4 + 0x4fe804]
mov dl, byte [esp + 0xae]
sub dl, 1
neg dl
sbb edx, edx
and edx, 3
add edx, 9
mov dword [esi], edx
jmp 0x4fe7e7
mov al, byte [esp + 0xae]
sub al, 1
neg al
sbb eax, eax
and eax, 3
add eax, 0xa
mov dword [esi], eax
jmp 0x4fe7e7
xor ecx, ecx
cmp byte [esp + 0xae], 1
setne cl
add ecx, 0xe
mov dword [esi], ecx
jmp 0x4fe7e7
xor edx, edx
cmp byte [esp + 0xae], 1
setne dl
add edx, 0x10
mov dword [esi], edx
jmp 0x4fe7e7
lea eax, [esp + 0x10]
push eax
call fcn.004fe390
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, 0x55f0
jb 0x4fe774
mov dword [esi], 0x14
jmp 0x4fe7e7
cmp byte [esp + 0xae], 1
jne 0x4fe786
mov dword [esi], 0x12
jmp 0x4fe7e7
lea ecx, [eax - 0x44d7]
cmp ecx, 0x8c
ja 0x4fe79c
mov dword [esi], 0x15
jmp 0x4fe7e7
sub eax, 0x4f7c
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 0x16
mov dword [esi], eax
jmp 0x4fe7e7
mov dword [esi], 0
jmp 0x4fe7e7
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4fe7c7
mov dword [esi], 2
jmp 0x4fe7e7
cmp eax, 0xa
jne 0x4fe7d4
mov dword [esi], 3
jmp 0x4fe7e7
cmp eax, 0x5a
jne 0x4fe7e7
mov dword [esi], 4
jmp 0x4fe7e7
mov dword [esi], 1
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.005b0968
add esp, 0xac
ret
Function at 0x4fea40
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x6340e8
push 0x5b5c80
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x65b4e4]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push esi
lea edx, [ebp - 0x20]
push edx
push esi
mov eax, dword [ebp + 8]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x4feab9
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], esi
mov ecx, dword [ebp - 0x20]
push ecx
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x4feb2b
mov edx, dword [ebp - 0x1c]
push edx
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x28], esi
test esi, esi
je 0x4feb2b
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push esi
lea edx, [ebp - 0x20]
push edx
push edi
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
je 0x4feb2b
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push edi
call fcn.004fe920
add esp, 0xc
test eax, eax
je 0x4feb2b
mov dword [ebp - 0x2c], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.004feb58
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4fec50
Capabilities:
Get disk size

Disassembly:
sub esp, 0x120
mov eax, dword [0x65b4e4]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x124]
lea edx, [esp + 0x18]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x4fec71
lea eax, [esp + 8]
push eax
mov byte [esp + 0x1e], cl
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x4fecc2
mov eax, dword [esp]
mov ecx, dword [esp + 4]
shrd eax, ecx, 0x14
shr ecx, 0x14
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.005b0968
add esp, 0x120
ret
mov ecx, dword [esp + 0x11c]
xor ecx, esp
or eax, 0xffffffff
call fcn.005b0968
add esp, 0x120
ret
Function at 0x4fece0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x120
mov eax, dword [0x65b4e4]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x124]
lea edx, [esp + 0x18]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x4fed01
lea eax, [esp]
push eax
mov byte [esp + 0x1e], cl
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x4fed51
mov eax, dword [esp]
mov ecx, dword [esp + 4]
shrd eax, ecx, 0x14
shr ecx, 0x14
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.005b0968
add esp, 0x120
ret
mov ecx, dword [esp + 0x11c]
xor ecx, esp
or eax, 0xffffffff
call fcn.005b0968
add esp, 0x120
ret

Function at 0x4fed70
Capabilities:
Get disk size

Disassembly:
sub esp, 0x224
mov eax, dword [0x65b4e4]
xor eax, esp
mov dword [esp + 0x220], eax
push esi
mov esi, dword [esp + 0x22c]
push 0x103
lea eax, [esp + 0x21]
push 0
push eax
mov byte [esp + 0x28], 0
call fcn.005b4520
push 0x103
lea ecx, [esp + 0x131]
push 0
push ecx
mov byte [esp + 0x138], 0
call fcn.005b4520
lea edx, [esp + 0x34]
push esi
push edx
call fcn.005b0b2c
movsx eax, byte [esp + 0x3c]
push eax
lea ecx, [esp + 0x144]
push 0x5f3218
push ecx
call fcn.005b0b2c
add esp, 0x2c
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x12c]
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
pop esi
jne 0x4fee1e
or eax, 0xffffffff
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.005b0968
add esp, 0x224
ret
mov ecx, dword [esp]
mov eax, dword [esp + 4]
mov dword [esp], ecx
mov ecx, eax
and eax, 0x7fffffff
mov dword [esp + 4], eax
fild qword [esp]
and ecx, 0x80000000
mov dword [esp + 4], ecx
mov dword [esp], 0
fild qword [esp]
fchs
faddp st(1)
fld qword [0x5f3210]
fmul st(1), st(0)
fmulp st(1)
fild dword [esp + 0x22c]
fcompp
fnstsw ax
test ah, 5
jp 0x4fee82
mov eax, 1
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.005b0968
add esp, 0x224
ret
mov ecx, dword [esp + 0x220]
xor ecx, esp
xor eax, eax
call fcn.005b0968
add esp, 0x224
ret
Function at 0x4fef20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
cmp dword [esp + 8], 0
push ebx
push ebp
push edi
je 0x4ff007
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4ff007
cmp byte [edi], 0
je 0x4ff007
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x4ff007
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x4ff007
cmp dword [esp + 0x2c], 0
push esi
mov esi, 0x20019
jne 0x4fef77
call fcn.004fe580
test eax, eax
je 0x4fef77
mov esi, 0x20119
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push esi
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4fefbe
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx]
push ebx
push ebp
push edi
push eax
mov eax, dword [esp + 0x30]
push eax
push ecx
mov dword [esp + 0x30], edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x10]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4fefc6
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
test edi, edi
je 0x4feffc
cmp dword [edi], 7
jne 0x4feffc
mov ecx, dword [ebx]
test ecx, ecx
je 0x4feffc
xor eax, eax
add ecx, 0xffffffff
je 0x4feffc
lea esp, [esp]
cmp eax, dword [esp + 0x18]
jae 0x4feffc
cmp byte [eax + ebp], 0
jne 0x4feff0
mov byte [eax + ebp], 0x20
mov ecx, dword [ebx]
add eax, 1
sub ecx, 1
cmp eax, ecx
jb 0x4fefe0
pop esi
pop edi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
pop edi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x4ff010
Capabilities:
Delete registry value

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
push edi
je 0x4ff084
mov edi, dword [esp + 0x10]
test edi, edi
je 0x4ff084
cmp byte [edi], 0
je 0x4ff084
cmp dword [esp + 0x18], 0
push esi
mov esi, 0xf003f
jne 0x4ff042
call fcn.004fe580
test eax, eax
je 0x4ff042
mov esi, 0xf013f
lea eax, [esp + 0x10]
push eax
push esi
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4ff05c
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop esi
pop edi
sete al
pop ebx
ret
pop edi
xor eax, eax
pop ebx
ret
Function at 0x4ff090
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x40c
mov eax, dword [0x65b4e4]
xor eax, esp
mov dword [esp + 0x408], eax
push ebx
mov ebx, dword [esp + 0x41c]
test ebx, ebx
push ebp
mov ebp, dword [esp + 0x418]
push esi
push edi
mov edi, dword [esp + 0x424]
mov dword [esp + 0x14], edi
mov esi, 0xf003f
jne 0x4ff0d8
call fcn.004fe580
test eax, eax
je 0x4ff0d8
mov esi, 0xf013f
lea eax, [esp + 0x10]
push eax
push esi
push 0
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4ff0f3
xor eax, eax
jmp 0x4ff181
push 0x3ff
lea ecx, [esp + 0x1d]
push 0
push ecx
mov byte [esp + 0x24], 0
call fcn.005b4520
mov eax, dword [esp + 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
add esp, 0xc
push 0x3ff
lea edx, [esp + 0x1c]
push edx
xor esi, esi
push esi
push eax
call edi
test eax, eax
jne 0x4ff163
lea ebx, [ebx]
mov edx, dword [esp + 0x10]
push ebx
lea ecx, [esp + 0x1c]
push ecx
push edx
add esi, 1
call fcn.004ff090
add esp, 0xc
test eax, eax
je 0x4ff14d
sub esi, 1
mov ecx, dword [esp + 0x10]
push 0x3ff
lea eax, [esp + 0x1c]
push eax
push esi
push ecx
call edi
test eax, eax
je 0x4ff130
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
sbb eax, eax
add eax, 1
mov ecx, dword [esp + 0x418]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005b0968
add esp, 0x40c
ret
Function at 0x4ff4a0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x5ce908
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x65b4e4]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push esi
push edi
mov eax, dword [0x65b4e4]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, dword [esp + 0x78]
xor ebx, ebx
cmp esi, ebx
jne 0x4ff4e0
mov esi, 0x62a4a0
mov edi, 0xf
mov eax, esi
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4ff4f6
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x50]
call fcn.004098b0
push 1
push 0x5f3230
lea ecx, [esp + 0x34]
mov dword [esp + 0x78], ebx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
call fcn.004098b0
push 1
push 0x5f322c
lea ecx, [esp + 0x18]
mov byte [esp + 0x78], 1
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.004098b0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x50]
push edx
mov byte [esp + 0x7c], 2
call fcn.004fb430
mov esi, 0x10
add esp, 0xc
cmp dword [esp + 0x28], esi
jb 0x4ff581
mov eax, dword [esp + 0x14]
push eax
call fcn.00594e98
add esp, 4
cmp dword [esp + 0x44], esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
jb 0x4ff5a0
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00594e98
add esp, 4
cmp dword [esp + 0x60], esi
mov eax, dword [esp + 0x4c]
jae 0x4ff5ae
lea eax, [esp + 0x4c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4ff5e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4ff5e1
cmp dword [esp + 0x60], esi
jb 0x4ff5da
mov edx, dword [esp + 0x4c]
push edx
call fcn.00594e98
add esp, 4
mov eax, 1
jmp 0x4ff5f6
cmp dword [esp + 0x60], esi
jb 0x4ff5f4
mov eax, dword [esp + 0x4c]
push eax
call fcn.00594e98
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.005b0968
add esp, 0x64
ret
Function at 0x4ff7d0
Capabilities:
Set registry value

Disassembly:
push ecx
cmp dword [esp + 0x20], 0
push ebx
push ebp
push esi
push edi
mov ebx, 2
jne 0x4ff7ef
call fcn.004fe580
test eax, eax
je 0x4ff7ef
mov ebx, 0x102
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x10]
push eax
push ebx
push 0
push esi
push edi
call ebp
test eax, eax
je 0x4ff838
mov ecx, dword [esp + 0x30]
push ecx
push esi
push edi
call fcn.004ff620
add esp, 0xc
test eax, eax
jne 0x4ff828
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
lea edx, [esp + 0x10]
push edx
push ebx
push 0
push esi
push edi
call ebp
test eax, eax
jne 0x4ff820
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x10]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
test esi, esi
pop esi
pop ebp
sete al
pop ebx
pop ecx
ret
Function at 0x500530
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x5cea86
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x65b4e4]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65b4e4]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x230]
xor ebx, ebx
cmp ecx, ebx
je 0x5006c8
cmp byte [ecx], bl
je 0x5006c8
mov edi, 0xf
mov eax, ecx
mov dword [esp + 0xd8], edi
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xc4], bl
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x5005a7
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0xc8]
call fcn.004098b0
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0xc4]
mov dword [esp + 0x22c], ebx
call fcn.00425330
mov ecx, eax
call fcn.004258b0
cmp byte [eax], 0x5c
je 0x5005f4
push 0x5c
push 1
lea ecx, [esp + 0xc8]
call fcn.00407090
push 1
push 2
lea ecx, [esp + 0x48]
call fcn.0040b160
push 0x5f32d8
lea ecx, [esp + 0xc4]
push ecx
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0x234], 1
call fcn.00409360
add esp, 8
push eax
call fcn.00409c80
add esp, 8
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x44]
call fcn.00409610
mov ebp, 0x10
cmp dword [eax + 0x18], ebp
jb 0x500649
mov eax, dword [eax + 4]
jmp 0x50064c
add eax, 4
lea ecx, [esp + 0xdc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp dword [esp + 0x30], ebp
mov esi, eax
jb 0x500670
mov edx, dword [esp + 0x1c]
push edx
call fcn.00594e98
add esp, 4
cmp esi, 0xffffffff
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
jne 0x5006f4
lea ecx, [esp + 0x8c]
mov byte [esp + 0x228], bl
call fcn.00409f20
lea eax, [esp + 0x8c]
push eax
mov dword [esp + 0x90], vtable.std::ios_base.0
call fcn.005cccbe
add esp, 4
cmp dword [esp + 0xd8], ebp
jb 0x5006c8
mov ecx, dword [esp + 0xc4]
push ecx
call fcn.00594e98
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.005b0968
add esp, 0x218
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea ebx, [ebx]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov edx, dword [edx]
lea eax, [esp + 0xdc]
push eax
call edx
lea eax, [esp + 0xdc]
push eax
push esi
call edi
test eax, eax
jne 0x500700
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x8c]
mov byte [esp + 0x228], bl
call fcn.00409f20
lea ecx, [esp + 0x8c]
push ecx
mov dword [esp + 0x90], vtable.std::ios_base.0
call fcn.005cccbe
add esp, 4
cmp dword [esp + 0xd8], ebp
jb 0x50076f
mov edx, dword [esp + 0xc4]
push edx
call fcn.00594e98
add esp, 4
mov eax, 1
jmp 0x5006ca