joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5023f0
Capabilities:
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x5023f7
xor eax, eax
ret
mov eax, dword [esp + 4]
jmp fcn.00502400
Function at 0x502400
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, edx
test esi, esi
not eax
je 0x502432
lea esp, [esp]
test cl, 3
je 0x502432
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x6148a8]
add ecx, 1
sub esi, 1
jne 0x502410
cmp esi, 0x20
push ebx
push edi
jb 0x50261c
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 + 0x614ca8]
xor edx, dword [ebx*4 + 0x6150a8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x6148a8]
add ecx, 4
xor edx, dword [eax*4 + 0x6154a8]
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 + 0x614ca8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x6150a8]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x6148a8]
add ecx, 4
xor eax, dword [edx*4 + 0x6154a8]
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 + 0x614ca8]
xor edx, dword [ebx*4 + 0x6150a8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x6148a8]
xor edx, dword [eax*4 + 0x6154a8]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x614ca8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x6150a8]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x6148a8]
xor eax, dword [edx*4 + 0x6154a8]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x614ca8]
xor edx, dword [ebx*4 + 0x6150a8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x6148a8]
xor edx, dword [eax*4 + 0x6154a8]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x614ca8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x6150a8]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x6148a8]
and edx, 0xff
xor eax, dword [edx*4 + 0x6154a8]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x614ca8]
xor edx, dword [ebx*4 + 0x6150a8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x6148a8]
add ecx, 4
xor edx, dword [eax*4 + 0x6154a8]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x614ca8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x6150a8]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x6148a8]
and edx, 0xff
xor eax, dword [edx*4 + 0x6154a8]
sub edi, 1
jne 0x502442
cmp esi, 4
jb 0x502669
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 + 0x614ca8]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x6150a8]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x6148a8]
and eax, 0xff
xor edi, dword [eax*4 + 0x6154a8]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x502626
test esi, esi
pop edi
pop ebx
je 0x50268d
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x6148a8]
add ecx, 1
sub esi, 1
jne 0x502670
not eax
pop esi
ret
Function at 0x506620
Capabilities:
Move file

Disassembly:
mov edx, dword [esp + 4]
test edx, edx
je 0x506651
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x506651
cmp dword [esp + 0xc], 0
mov eax, 0xa
jne 0x506641
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 0x506680
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 0x5066c2
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jmp 0x5066a0
movzx edi, byte [ecx + esi]
mov ebx, eax
and ebx, 0xff
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x6680c0]
add ecx, 1
cmp ecx, edx
jb 0x5066a0
pop edi
pop esi
pop ebx
ret

Function at 0x506720
Capabilities:
Check os version

Disassembly:
sub esp, 0xac
mov eax, dword [0x66d4f4]
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.005c0cf0
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 0x50679f
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], 0x94
call esi
test eax, eax
jne 0x50679f
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.005bd2d7
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 0x506838
cmp ecx, 2
jne 0x506838
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 0x506785
push str.RtlGetNtVersionNumbers
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x50680b
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 0x506823
mov edx, dword [esp + 0x14]
mov dword [edi], edx
jmp 0x506838
cmp eax, 0xa
jne 0x506785
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.005bd2d7
add esp, 0xac
ret
Function at 0x506aa0
Capabilities:
Check os version

Disassembly:
sub esp, 0xac
mov eax, dword [0x66d4f4]
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.005c0cf0
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 0x506b16
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], 0x94
call edi
test eax, eax
jne 0x506b16
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.005bd2d7
add esp, 0xac
ret
mov eax, dword [esp + 0x24]
sub eax, 0
mov dword [esi], 0
je 0x506cb1
sub eax, 1
je 0x506c87
sub eax, 1
jne 0x506cb7
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.00506720
add esp, 8
test eax, eax
je 0x506afd
cmp dword [esp + 0x18], 4
ja 0x506b63
mov dword [esi], 5
jmp 0x506cb7
mov eax, dword [esp + 0xc]
cmp eax, 5
jne 0x506ba4
mov eax, dword [esp + 8]
sub eax, 0
je 0x506b99
sub eax, 1
je 0x506b8e
sub eax, 1
jne case.default.0x506bba
mov dword [esi], 8
jmp 0x506cb7
mov dword [esi], 7
jmp 0x506cb7
mov dword [esi], 6
jmp 0x506cb7
cmp eax, 6
jne 0x506cb7
mov eax, dword [esp + 8]
cmp eax, 4
ja case.default.0x506bba
jmp dword [eax*4 + 0x506cd4]
mov dl, byte [esp + 0xae]
sub dl, 1
neg dl
sbb edx, edx
and edx, 3
add edx, 9
mov dword [esi], edx
jmp 0x506cb7
mov al, byte [esp + 0xae]
sub al, 1
neg al
sbb eax, eax
and eax, 3
add eax, 0xa
mov dword [esi], eax
jmp 0x506cb7
xor ecx, ecx
cmp byte [esp + 0xae], 1
setne cl
add ecx, 0xe
mov dword [esi], ecx
jmp 0x506cb7
xor edx, edx
cmp byte [esp + 0xae], 1
setne dl
add edx, 0x10
mov dword [esi], edx
jmp 0x506cb7
lea eax, [esp + 0x10]
push eax
call fcn.00506860
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, 0x55f0
jb 0x506c44
mov dword [esi], 0x14
jmp 0x506cb7
cmp byte [esp + 0xae], 1
jne 0x506c56
mov dword [esi], 0x12
jmp 0x506cb7
lea ecx, [eax - 0x44d7]
cmp ecx, 0x8c
ja 0x506c6c
mov dword [esi], 0x15
jmp 0x506cb7
sub eax, 0x4f7c
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 0x16
mov dword [esi], eax
jmp 0x506cb7
mov dword [esi], 0
jmp 0x506cb7
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x506c97
mov dword [esi], 2
jmp 0x506cb7
cmp eax, 0xa
jne 0x506ca4
mov dword [esi], 3
jmp 0x506cb7
cmp eax, 0x5a
jne 0x506cb7
mov dword [esi], 4
jmp 0x506cb7
mov dword [esi], 1
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.005bd2d7
add esp, 0xac
ret
Function at 0x506f10
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x644458
push 0x5c1ef0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x66d4f4]
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 0x506f89
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 0x506ffb
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 0x506ffb
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 0x506ffb
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push edi
call fcn.00506df0
add esp, 0xc
test eax, eax
je 0x506ffb
mov dword [ebp - 0x2c], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.00507028
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 0x507120
Capabilities:
Get disk size

Disassembly:
sub esp, 0x120
mov eax, dword [0x66d4f4]
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 0x507141
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 0x507192
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.005bd2d7
add esp, 0x120
ret
mov ecx, dword [esp + 0x11c]
xor ecx, esp
or eax, 0xffffffff
call fcn.005bd2d7
add esp, 0x120
ret
Function at 0x5071b0
Capabilities:
Get disk size

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

Function at 0x507240
Capabilities:
Get disk size

Disassembly:
sub esp, 0x224
mov eax, dword [0x66d4f4]
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.005c0cf0
push 0x103
lea ecx, [esp + 0x131]
push 0
push ecx
mov byte [esp + 0x138], 0
call fcn.005c0cf0
lea edx, [esp + 0x34]
push esi
push edx
call fcn.005bd49b
movsx eax, byte [esp + 0x3c]
push eax
lea ecx, [esp + 0x144]
push 0x601038
push ecx
call fcn.005bd49b
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 0x5072ee
or eax, 0xffffffff
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.005bd2d7
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 [0x601030]
fmul st(1), st(0)
fmulp st(1)
fild dword [esp + 0x22c]
fcompp
fnstsw ax
test ah, 5
jp 0x507352
mov eax, 1
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.005bd2d7
add esp, 0x224
ret
mov ecx, dword [esp + 0x220]
xor ecx, esp
xor eax, eax
call fcn.005bd2d7
add esp, 0x224
ret
Function at 0x5073a0
Capabilities:
Check os version

Disassembly:
sub esp, 0xac
mov eax, dword [0x66d4f4]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
mov ebx, dword [esp + 0xb8]
push esi
push edi
mov edi, dword [esp + 0xbc]
push 0x9c
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.005c0cf0
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 0x50741f
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], 0x94
call esi
test eax, eax
jne 0x50741f
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.005bd2d7
add esp, 0xac
ret
mov eax, dword [esp + 0x1c]
cmp eax, 6
mov ecx, dword [esp + 0x20]
mov dword [edi], eax
mov dword [ebx], ecx
jne 0x50749a
cmp ecx, 2
jne 0x50749a
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 0x507405
push str.RtlGetNtVersionNumbers
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x507487
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 edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [edi], edx
mov dword [ebx], eax
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.005bd2d7
add esp, 0xac
ret

Function at 0x507510
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
cmp dword [esp + 8], 0
push ebx
push ebp
push edi
je 0x5075f7
mov edi, dword [esp + 0x18]
test edi, edi
je 0x5075f7
cmp byte [edi], 0
je 0x5075f7
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x5075f7
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x5075f7
cmp dword [esp + 0x2c], 0
push esi
mov esi, 0x20019
jne 0x507567
call fcn.00506a50
test eax, eax
je 0x507567
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 0x5075ae
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 0x5075b6
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
test edi, edi
je 0x5075ec
cmp dword [edi], 7
jne 0x5075ec
mov ecx, dword [ebx]
test ecx, ecx
je 0x5075ec
xor eax, eax
add ecx, 0xffffffff
je 0x5075ec
lea esp, [esp]
cmp eax, dword [esp + 0x18]
jae 0x5075ec
cmp byte [eax + ebp], 0
jne 0x5075e0
mov byte [eax + ebp], 0x20
mov ecx, dword [ebx]
add eax, 1
sub ecx, 1
cmp eax, ecx
jb 0x5075d0
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 0x507600
Capabilities:
Delete registry value

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
push edi
je 0x507674
mov edi, dword [esp + 0x10]
test edi, edi
je 0x507674
cmp byte [edi], 0
je 0x507674
cmp dword [esp + 0x18], 0
push esi
mov esi, 0xf003f
jne 0x507632
call fcn.00506a50
test eax, eax
je 0x507632
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 0x50764c
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 0x507680
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x40c
mov eax, dword [0x66d4f4]
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 0x5076c8
call fcn.00506a50
test eax, eax
je 0x5076c8
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 0x5076e3
xor eax, eax
jmp 0x507771
push 0x3ff
lea ecx, [esp + 0x1d]
push 0
push ecx
mov byte [esp + 0x24], 0
call fcn.005c0cf0
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 0x507753
lea ebx, [ebx]
mov edx, dword [esp + 0x10]
push ebx
lea ecx, [esp + 0x1c]
push ecx
push edx
add esi, 1
call fcn.00507680
add esp, 0xc
test eax, eax
je 0x50773d
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 0x507720
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.005bd2d7
add esp, 0x40c
ret
Function at 0x507e40
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x5daee8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x66d4f4]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push esi
push edi
mov eax, dword [0x66d4f4]
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 0x507e80
mov esi, 0x63a990
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 0x507e96
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x50]
call fcn.00408ea0
push 1
push 0x60114c
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.00408ea0
push 1
push 0x601148
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.00408ea0
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.00510470
mov esi, 0x10
add esp, 0xc
cmp dword [esp + 0x28], esi
jb 0x507f21
mov eax, dword [esp + 0x14]
push eax
call fcn.005a1b1d
add esp, 4
cmp dword [esp + 0x44], esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
jb 0x507f40
mov ecx, dword [esp + 0x30]
push ecx
call fcn.005a1b1d
add esp, 4
cmp dword [esp + 0x60], esi
mov eax, dword [esp + 0x4c]
jae 0x507f4e
lea eax, [esp + 0x4c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x507f81
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x507f81
cmp dword [esp + 0x60], esi
jb 0x507f7a
mov edx, dword [esp + 0x4c]
push edx
call fcn.005a1b1d
add esp, 4
mov eax, 1
jmp 0x507f96
cmp dword [esp + 0x60], esi
jb 0x507f94
mov eax, dword [esp + 0x4c]
push eax
call fcn.005a1b1d
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.005bd2d7
add esp, 0x64
ret
Function at 0x508170
Capabilities:
Set registry value

Disassembly:
push ecx
cmp dword [esp + 0x20], 0
push ebx
push ebp
push esi
push edi
mov ebx, 2
jne 0x50818f
call fcn.00506a50
test eax, eax
je 0x50818f
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 0x5081d8
mov ecx, dword [esp + 0x30]
push ecx
push esi
push edi
call fcn.00507fc0
add esp, 0xc
test eax, eax
jne 0x5081c8
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 0x5081c0
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 0x508ed0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x5db066
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x66d4f4]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x66d4f4]
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 0x509068
cmp byte [ecx], bl
je 0x509068
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 0x508f47
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0xc8]
call fcn.00408ea0
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0xc4]
mov dword [esp + 0x22c], ebx
call fcn.004252f0
mov ecx, eax
call fcn.00425780
cmp byte [eax], 0x5c
je 0x508f94
push 0x5c
push 1
lea ecx, [esp + 0xc8]
call fcn.00406640
push 1
push 2
lea ecx, [esp + 0x48]
call fcn.0040a750
push 0x60123c
lea ecx, [esp + 0xc4]
push ecx
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0x234], 1
call fcn.00408950
add esp, 8
push eax
call fcn.00409270
add esp, 8
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x44]
call fcn.00408c00
mov ebp, 0x10
cmp dword [eax + 0x18], ebp
jb 0x508fe9
mov eax, dword [eax + 4]
jmp 0x508fec
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 0x509010
mov edx, dword [esp + 0x1c]
push edx
call fcn.005a1b1d
add esp, 4
cmp esi, 0xffffffff
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
jne 0x509094
lea ecx, [esp + 0x8c]
mov byte [esp + 0x228], bl
call fcn.00409510
lea eax, [esp + 0x8c]
push eax
mov dword [esp + 0x90], vtable.std::ios_base.0
call fcn.005d9cc4
add esp, 4
cmp dword [esp + 0xd8], ebp
jb 0x509068
mov ecx, dword [esp + 0xc4]
push ecx
call fcn.005a1b1d
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.005bd2d7
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 0x5090a0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x8c]
mov byte [esp + 0x228], bl
call fcn.00409510
lea ecx, [esp + 0x8c]
push ecx
mov dword [esp + 0x90], vtable.std::ios_base.0
call fcn.005d9cc4
add esp, 4
cmp dword [esp + 0xd8], ebp
jb 0x50910f
mov edx, dword [esp + 0xc4]
push edx
call fcn.005a1b1d
add esp, 4
mov eax, 1
jmp 0x50906a