joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f7770
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, edx
test esi, esi
not eax
je 0x4f77a2
lea esp, [esp]
test cl, 3
je 0x4f77a2
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x6076c8]
add ecx, 1
sub esi, 1
jne 0x4f7780
cmp esi, 0x20
push ebx
push edi
jb 0x4f798c
mov edi, esi
shr edi, 5
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x607ac8]
xor edx, dword [ebx*4 + 0x607ec8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x6076c8]
add ecx, 4
xor edx, dword [eax*4 + 0x6082c8]
add ecx, 4
xor edx, dword [ecx - 8]
add ecx, 4
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x607ac8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x607ec8]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x6076c8]
add ecx, 4
xor eax, dword [edx*4 + 0x6082c8]
add ecx, 4
xor eax, dword [ecx - 0x10]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x607ac8]
xor edx, dword [ebx*4 + 0x607ec8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x6076c8]
xor edx, dword [eax*4 + 0x6082c8]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x607ac8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x607ec8]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x6076c8]
xor eax, dword [edx*4 + 0x6082c8]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x607ac8]
xor edx, dword [ebx*4 + 0x607ec8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x6076c8]
xor edx, dword [eax*4 + 0x6082c8]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x607ac8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x607ec8]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x6076c8]
and edx, 0xff
xor eax, dword [edx*4 + 0x6082c8]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x607ac8]
xor edx, dword [ebx*4 + 0x607ec8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x6076c8]
add ecx, 4
xor edx, dword [eax*4 + 0x6082c8]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x607ac8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x607ec8]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x6076c8]
and edx, 0xff
xor eax, dword [edx*4 + 0x6082c8]
sub edi, 1
jne 0x4f77b2
cmp esi, 4
jb 0x4f79d9
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x607ac8]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x607ec8]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x6076c8]
and eax, 0xff
xor edi, dword [eax*4 + 0x6082c8]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x4f7996
test esi, esi
pop edi
pop ebx
je 0x4f79fd
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x6076c8]
add ecx, 1
sub esi, 1
jne 0x4f79e0
not eax
pop esi
ret
Function at 0x4fbd40
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov cl, byte [edi]
test cl, cl
mov esi, 0x811c9dc5
mov edx, edi
je 0x4fbd74
mov al, cl
jmp 0x4fbd60
imul esi, esi, 0x1000193
movzx eax, al
add edx, 1
xor esi, eax
mov al, byte [edx]
test al, al
jne 0x4fbd60
xor eax, eax
test cl, cl
mov edx, edi
je 0x4fbd98
lea esp, [esp]
mov edi, eax
shl edi, 5
movzx ecx, cl
sub edi, eax
add edi, ecx
mov cl, byte [edx + 1]
add edx, 1
test cl, cl
mov eax, edi
jne 0x4fbd80
xor eax, esi
and eax, 0xffff
pop edi
xor eax, esi
pop esi
ret
Function at 0x4fe790
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x5cf806
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65d4e4]
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 0x4fe7dd
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0x14]
xor ecx, ecx
cmp eax, ecx
jbe 0x4fe7f8
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 0x4fe803
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jle 0x4fe9b6
cmp dword [esp + 0xcc], 0
je 0x4fe97e
call sub.KERNEL32.dll_GetCurrentThreadId
xor ecx, ecx
test edi, edi
jle 0x4fe83e
mov edx, dword [esp + 0x18]
cmp dword [edx + ecx*4], eax
je 0x4fe836
add ecx, 1
cmp ecx, edi
jl 0x4fe824
jmp 0x4fe83e
cmp ecx, edi
jl 0x4fe97e
xor esi, esi
test edi, edi
jle 0x4fe97e
mov edi, dword [esp + 0xd0]
nop
mov eax, dword [ebx + esi*4]
test eax, eax
je 0x4fe96d
push edi
push eax
mov dword [esp + 0x24], 0xffffffff
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4fe954
push 1
push 2
lea ecx, [esp + 0x44]
call fcn.0040b040
push edi
lea eax, [esp + 0x40]
push 0x5f405c
push eax
mov dword [esp + 0xd0], 0
call fcn.00409b60
add esp, 8
mov ecx, eax
call fcn.004024e0
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x40]
call fcn.004094f0
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0xc4], 1
jb 0x4fe8c9
mov eax, dword [eax + 4]
jmp 0x4fe8cc
add eax, 4
push eax
push str.BaseLib::CTask::Close
push 0xbf
push str..common_task.cpp
push 0xf0000000
call fcn.00409860
mov ecx, eax
call fcn.004fb930
cmp dword [esp + 0x38], 0x10
jb 0x4fe901
mov edx, dword [esp + 0x24]
push edx
call fcn.00595eb8
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.00409e00
lea eax, [esp + 0x88]
push eax
mov dword [esp + 0x8c], vtable.std::ios_base.0
call fcn.005cdcde
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 0x4fe850
mov edi, dword [esp + 0x14]
xor esi, esi
test edi, edi
jle 0x4fe9a3
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ebx, [ebx]
mov eax, dword [ebx + esi*4]
test eax, eax
je 0x4fe99a
push eax
call edi
add esi, 1
cmp esi, dword [esp + 0x14]
jl 0x4fe990
push ebx
call fcn.00595eb8
mov eax, dword [esp + 0x1c]
push eax
call fcn.00595eb8
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 0x4ff170
Capabilities:
Move file

Disassembly:
mov edx, dword [esp + 4]
test edx, edx
je 0x4ff1a1
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x4ff1a1
cmp dword [esp + 0xc], 0
mov eax, 0xa
jne 0x4ff191
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 0x4ff1d0
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 0x4ff212
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jmp 0x4ff1f0
movzx edi, byte [ecx + esi]
mov ebx, eax
and ebx, 0xff
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x6580d0]
add ecx, 1
cmp ecx, edx
jb 0x4ff1f0
pop edi
pop esi
pop ebx
ret

Function at 0x4ff270
Capabilities:
Check os version

Disassembly:
sub esp, 0xac
mov eax, dword [0x65d4e4]
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.005b5540
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 0x4ff2ef
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], 0x94
call esi
test eax, eax
jne 0x4ff2ef
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.005b1988
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 0x4ff388
cmp ecx, 2
jne 0x4ff388
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 0x4ff2d5
push str.RtlGetNtVersionNumbers
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4ff35b
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 0x4ff373
mov edx, dword [esp + 0x14]
mov dword [edi], edx
jmp 0x4ff388
cmp eax, 0xa
jne 0x4ff2d5
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.005b1988
add esp, 0xac
ret
Function at 0x4ff5f0
Capabilities:
Check os version

Disassembly:
sub esp, 0xac
mov eax, dword [0x65d4e4]
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.005b5540
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 0x4ff666
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], 0x94
call edi
test eax, eax
jne 0x4ff666
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.005b1988
add esp, 0xac
ret
mov eax, dword [esp + 0x24]
sub eax, 0
mov dword [esi], 0
je 0x4ff801
sub eax, 1
je 0x4ff7d7
sub eax, 1
jne 0x4ff807
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.004ff270
add esp, 8
test eax, eax
je 0x4ff64d
cmp dword [esp + 0x18], 4
ja 0x4ff6b3
mov dword [esi], 5
jmp 0x4ff807
mov eax, dword [esp + 0xc]
cmp eax, 5
jne 0x4ff6f4
mov eax, dword [esp + 8]
sub eax, 0
je 0x4ff6e9
sub eax, 1
je 0x4ff6de
sub eax, 1
jne case.default.0x4ff70a
mov dword [esi], 8
jmp 0x4ff807
mov dword [esi], 7
jmp 0x4ff807
mov dword [esi], 6
jmp 0x4ff807
cmp eax, 6
jne 0x4ff807
mov eax, dword [esp + 8]
cmp eax, 4
ja case.default.0x4ff70a
jmp dword [eax*4 + 0x4ff824]
mov dl, byte [esp + 0xae]
sub dl, 1
neg dl
sbb edx, edx
and edx, 3
add edx, 9
mov dword [esi], edx
jmp 0x4ff807
mov al, byte [esp + 0xae]
sub al, 1
neg al
sbb eax, eax
and eax, 3
add eax, 0xa
mov dword [esi], eax
jmp 0x4ff807
xor ecx, ecx
cmp byte [esp + 0xae], 1
setne cl
add ecx, 0xe
mov dword [esi], ecx
jmp 0x4ff807
xor edx, edx
cmp byte [esp + 0xae], 1
setne dl
add edx, 0x10
mov dword [esi], edx
jmp 0x4ff807
lea eax, [esp + 0x10]
push eax
call fcn.004ff3b0
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, 0x55f0
jb 0x4ff794
mov dword [esi], 0x14
jmp 0x4ff807
cmp byte [esp + 0xae], 1
jne 0x4ff7a6
mov dword [esi], 0x12
jmp 0x4ff807
lea ecx, [eax - 0x44d7]
cmp ecx, 0x8c
ja 0x4ff7bc
mov dword [esi], 0x15
jmp 0x4ff807
sub eax, 0x4f7c
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 0x16
mov dword [esi], eax
jmp 0x4ff807
mov dword [esi], 0
jmp 0x4ff807
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4ff7e7
mov dword [esi], 2
jmp 0x4ff807
cmp eax, 0xa
jne 0x4ff7f4
mov dword [esi], 3
jmp 0x4ff807
cmp eax, 0x5a
jne 0x4ff807
mov dword [esi], 4
jmp 0x4ff807
mov dword [esi], 1
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.005b1988
add esp, 0xac
ret
Function at 0x4ffa60
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x635288
push 0x5b6ca0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x65d4e4]
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 0x4ffad9
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 0x4ffb4b
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 0x4ffb4b
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 0x4ffb4b
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push edi
call fcn.004ff940
add esp, 0xc
test eax, eax
je 0x4ffb4b
mov dword [ebp - 0x2c], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.004ffb78
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 0x4ffc70
Capabilities:
Get disk size

Disassembly:
sub esp, 0x120
mov eax, dword [0x65d4e4]
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 0x4ffc91
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 0x4ffce2
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.005b1988
add esp, 0x120
ret
mov ecx, dword [esp + 0x11c]
xor ecx, esp
or eax, 0xffffffff
call fcn.005b1988
add esp, 0x120
ret
Function at 0x4ffd00
Capabilities:
Get disk size

Disassembly:
sub esp, 0x120
mov eax, dword [0x65d4e4]
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 0x4ffd21
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 0x4ffd71
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.005b1988
add esp, 0x120
ret
mov ecx, dword [esp + 0x11c]
xor ecx, esp
or eax, 0xffffffff
call fcn.005b1988
add esp, 0x120
ret

Function at 0x4ffd90
Capabilities:
Get disk size

Disassembly:
sub esp, 0x224
mov eax, dword [0x65d4e4]
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.005b5540
push 0x103
lea ecx, [esp + 0x131]
push 0
push ecx
mov byte [esp + 0x138], 0
call fcn.005b5540
lea edx, [esp + 0x34]
push esi
push edx
call fcn.005b1b4c
movsx eax, byte [esp + 0x3c]
push eax
lea ecx, [esp + 0x144]
push 0x5f4218
push ecx
call fcn.005b1b4c
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 0x4ffe3e
or eax, 0xffffffff
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.005b1988
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 [0x5f4210]
fmul st(1), st(0)
fmulp st(1)
fild dword [esp + 0x22c]
fcompp
fnstsw ax
test ah, 5
jp 0x4ffea2
mov eax, 1
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.005b1988
add esp, 0x224
ret
mov ecx, dword [esp + 0x220]
xor ecx, esp
xor eax, eax
call fcn.005b1988
add esp, 0x224
ret
Function at 0x4fff40
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
cmp dword [esp + 8], 0
push ebx
push ebp
push edi
je 0x500027
mov edi, dword [esp + 0x18]
test edi, edi
je 0x500027
cmp byte [edi], 0
je 0x500027
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x500027
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x500027
cmp dword [esp + 0x2c], 0
push esi
mov esi, 0x20019
jne 0x4fff97
call fcn.004ff5a0
test eax, eax
je 0x4fff97
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 0x4fffde
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 0x4fffe6
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
test edi, edi
je 0x50001c
cmp dword [edi], 7
jne 0x50001c
mov ecx, dword [ebx]
test ecx, ecx
je 0x50001c
xor eax, eax
add ecx, 0xffffffff
je 0x50001c
lea esp, [esp]
cmp eax, dword [esp + 0x18]
jae 0x50001c
cmp byte [eax + ebp], 0
jne 0x500010
mov byte [eax + ebp], 0x20
mov ecx, dword [ebx]
add eax, 1
sub ecx, 1
cmp eax, ecx
jb 0x500000
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 0x500030
Capabilities:
Delete registry value

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
push edi
je 0x5000a4
mov edi, dword [esp + 0x10]
test edi, edi
je 0x5000a4
cmp byte [edi], 0
je 0x5000a4
cmp dword [esp + 0x18], 0
push esi
mov esi, 0xf003f
jne 0x500062
call fcn.004ff5a0
test eax, eax
je 0x500062
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 0x50007c
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 0x5000b0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x40c
mov eax, dword [0x65d4e4]
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 0x5000f8
call fcn.004ff5a0
test eax, eax
je 0x5000f8
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 0x500113
xor eax, eax
jmp 0x5001a1
push 0x3ff
lea ecx, [esp + 0x1d]
push 0
push ecx
mov byte [esp + 0x24], 0
call fcn.005b5540
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 0x500183
lea ebx, [ebx]
mov edx, dword [esp + 0x10]
push ebx
lea ecx, [esp + 0x1c]
push ecx
push edx
add esi, 1
call fcn.005000b0
add esp, 0xc
test eax, eax
je 0x50016d
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 0x500150
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.005b1988
add esp, 0x40c
ret
Function at 0x5004c0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x5cf968
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x65d4e4]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push esi
push edi
mov eax, dword [0x65d4e4]
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 0x500500
mov esi, 0x62b600
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 0x500516
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x50]
call fcn.00409790
push 1
push 0x5f4230
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.00409790
push 1
push 0x5f422c
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.00409790
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.004fc450
mov esi, 0x10
add esp, 0xc
cmp dword [esp + 0x28], esi
jb 0x5005a1
mov eax, dword [esp + 0x14]
push eax
call fcn.00595eb8
add esp, 4
cmp dword [esp + 0x44], esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
jb 0x5005c0
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00595eb8
add esp, 4
cmp dword [esp + 0x60], esi
mov eax, dword [esp + 0x4c]
jae 0x5005ce
lea eax, [esp + 0x4c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x500601
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x500601
cmp dword [esp + 0x60], esi
jb 0x5005fa
mov edx, dword [esp + 0x4c]
push edx
call fcn.00595eb8
add esp, 4
mov eax, 1
jmp 0x500616
cmp dword [esp + 0x60], esi
jb 0x500614
mov eax, dword [esp + 0x4c]
push eax
call fcn.00595eb8
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.005b1988
add esp, 0x64
ret
Function at 0x5007f0
Capabilities:
Set registry value

Disassembly:
push ecx
cmp dword [esp + 0x20], 0
push ebx
push ebp
push esi
push edi
mov ebx, 2
jne 0x50080f
call fcn.004ff5a0
test eax, eax
je 0x50080f
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 0x500858
mov ecx, dword [esp + 0x30]
push ecx
push esi
push edi
call fcn.00500640
add esp, 0xc
test eax, eax
jne 0x500848
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 0x500840
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