joyce8/EMBER2024-capa huggingface dataset:
Function at 0x492f82
Capabilities:
Delete file

Disassembly:
push 0x20
mov eax, 0x517bd2
call fcn.004da733
mov esi, ecx
test byte [esi + 0x44], 1
je 0x492fa0
test byte [esi + 0x44], 0x40
je 0x4930e9
mov eax, dword [esi + 0x7c]
xor edi, edi
mov dword [ebp - 0x1c], eax
test eax, eax
jle 0x4930e9
lea eax, [esi + 0x78]
push edi
mov ecx, eax
call fcn.0049462f
mov ebx, eax
cmp byte [ebx + 0x1c], 0
je 0x4930dc
cmp dword [ebx], 1
je 0x492ff9
cmp dword [ebx], 3
je 0x492ff9
cmp dword [ebx], 7
je 0x492ff9
cmp dword [ebx], 8
je 0x492ff9
cmp dword [ebx], 0x64
jb 0x493020
mov eax, dword [esi + 0x90]
cmp eax, 2
je 0x4930dc
cmp eax, 5
jne 0x493020
jmp 0x4930dc
mov eax, dword [esi + 0x90]
cmp eax, 4
je 0x493020
cmp eax, 2
je 0x4930dc
cmp eax, 1
je 0x4930dc
test byte [ebx + 8], 1
jne 0x4930dc
push dword [ebx + 4]
mov ecx, esi
call fcn.00493e6b
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.004071bb
and dword [ebp - 4], 0
mov ecx, dword [ebx + 0x18]
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0041107c
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x493060
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040d75b
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4930ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x4930ab
lea ecx, [ebp - 0x2c]
call fcn.0040cf67
lea ecx, [ebp - 0x28]
call fcn.0040cf67
xor eax, eax
mov word [ebp - 0x24], ax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x2c]
call fcn.0048c06c
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.0045502b
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.00478830
mov edx, dword [ebp - 0x14]
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00479870
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.0040d22d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040d22d
inc edi
lea eax, [esi + 0x78]
cmp edi, dword [ebp - 0x1c]
jl 0x492fb3
call fcn.004da6fc
ret
Function at 0x4930ef
Capabilities:
Read file on windows

Disassembly:
push 0x34
mov eax, 0x517bfd
call fcn.004da733
mov ebx, ecx
xor eax, eax
cmp dword [ebx + 0x10], eax
je 0x493270
mov ecx, dword [ebx + 0x1c]
add ecx, dword [ebx + 0x58]
mov dword [ebp - 0x20], ecx
adc eax, dword [ebx + 0x5c]
xor esi, esi
push esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push ecx
push dword [ebx + 0x88]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x49314f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebx + 0x60]
mov ecx, ebx
push eax
push 0x103
call fcn.00493df5
push 2
pop eax
jmp 0x493270
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x28]
xorps xmm0, xmm0
mov dword [ebp - 0x40], esi
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], esi
call fcn.0040cf67
mov byte [ebp - 0x24], 0
xor esi, esi
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], esi
and dword [ebp - 0x18], esi
mov byte [ebp - 4], 2
cmp dword [ebx + 0x10], esi
jbe 0x49324a
xor edi, edi
push 0
lea eax, [ebp - 0x14]
push eax
push 0x18
lea eax, [ebp - 0x40]
push eax
push dword [ebx + 0x88]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x493296
cmp dword [ebp - 0x14], 0
je 0x493296
test edi, edi
je 0x4931c2
push esi
call fcn.004da275
and dword [ebp - 0x10], 0
pop ecx
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x10]
inc eax
push eax
call fcn.0048b121
mov esi, dword [ebp - 0x10]
test al, al
je 0x493292
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x2c]
add eax, eax
push eax
push esi
push dword [ebx + 0x88]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x493276
cmp dword [ebp - 0x14], 0
je 0x493276
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
mov word [esi + eax*2], cx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebx + 0x78]
call fcn.00494651
push dword [ebp - 0x18]
lea ecx, [ebx + 0x78]
call fcn.0049462f
mov edi, eax
test esi, esi
jne 0x493227
xor eax, eax
jmp 0x49322e
push esi
call fcn.004dfc45
pop ecx
push eax
push esi
lea ecx, [edi + 0x18]
call fcn.0040d9ac
mov eax, dword [ebp - 0x18]
mov edi, esi
inc eax
mov dword [ebp - 0x18], eax
cmp eax, dword [ebx + 0x10]
jb 0x493189
xor edi, edi
push esi
mov byte [ebp - 4], 1
call fcn.004da275
and dword [ebp - 0x10], 0
pop ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 6
call fcn.0040d22d
or dword [ebp - 4], 0xffffffff
mov eax, edi
call fcn.004da6fc
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebx + 0x60]
mov ecx, ebx
push eax
push 0x103
call fcn.00493df5
push 2
pop edi
jmp 0x49324c
push 3
jmp 0x49328f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebx + 0x60]
mov ecx, ebx
push eax
push 0x103
call fcn.00493df5
push 2
pop eax
mov dword [ebp - 0x18], eax
mov edi, eax
jmp 0x49324c
Function at 0x4932bf
Capabilities:
Read file on windows

Disassembly:
push 0x28
mov eax, 0x517c28
call fcn.004da733
mov edi, ecx
xor eax, eax
cmp dword [edi + 0x9c], eax
jg 0x49347c
mov ecx, dword [edi + 0xc]
add ecx, dword [edi + 0x58]
mov dword [ebp - 0x34], ecx
adc eax, dword [edi + 0x5c]
xor ebx, ebx
push ebx
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
push ecx
push dword [edi + 0x88]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x493322
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
mov ecx, edi
push eax
push 0x103
call fcn.00493df5
push 2
pop eax
jmp 0x49347c
mov esi, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], ebx
cmp dword [edi + 8], 0
mov dword [ebp - 0x18], ebx
jbe 0x49346b
push 2
mov dword [ebp - 0x1c], ebx
pop ebx
push 0
lea eax, [ebp - 0x14]
push eax
push 8
lea eax, [ebp - 0x24]
push eax
push dword [edi + 0x88]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x493454
cmp dword [ebp - 0x14], 0
je 0x493454
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0040cf67
cmp dword [ebp - 0x1c], 0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
je 0x493393
push esi
call fcn.004da275
and dword [ebp - 0x10], 0
pop ecx
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x10]
inc eax
push eax
call fcn.0048b121
mov esi, dword [ebp - 0x10]
test al, al
je 0x49343f
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
add eax, eax
push eax
push esi
push dword [edi + 0x88]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x493426
cmp dword [ebp - 0x14], 0
je 0x493426
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov word [esi + eax*2], cx
test esi, esi
jne 0x4933df
xor eax, eax
jmp 0x4933e6
push esi
call fcn.004dfc45
pop ecx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.0040d9ac
lea eax, [ebp - 0x2c]
push eax
lea ecx, [edi + 0x98]
call fcn.00494596
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.0040d22d
mov eax, dword [ebp - 0x18]
inc eax
mov byte [ebp - 4], 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esi
cmp eax, dword [edi + 8]
jb 0x493343
xor ebx, ebx
jmp 0x49346b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
mov ecx, edi
push eax
push 0x103
call fcn.00493df5
jmp 0x493442
push 3
pop ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.0040d22d
mov byte [ebp - 4], 0
jmp 0x49346b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
mov ecx, edi
push eax
push 0x103
call fcn.00493df5
or dword [ebp - 4], 0xffffffff
push esi
call fcn.004da275
and dword [ebp - 0x10], 0
mov eax, ebx
pop ecx
call fcn.004da6fc
ret

Function at 0x494540
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, ecx
push esi
xor esi, esi
push edi
lea edi, [ebx + 0xe0]
cmp dword [ebx + 0xe4], esi
jle 0x49456e
push esi
mov ecx, edi
call fcn.00412720
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc esi
cmp esi, dword [ebx + 0xe4]
jl 0x494555
mov ecx, edi
pop edi
pop esi
pop ebx
jmp fcn.00456e1f
Function at 0x494934
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5065cc
mov eax, dword fs:[0]
push eax
push ecx
push ecx
push ebx
push esi
push edi
mov eax, dword [0x57c074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x2c], 0
je 0x49496c
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edi, [esi + 0xc]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x4949c3
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
mov ebx, str.SoftwareCaphyonSetups
push ebx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp dword [ebp - 0x10], 0
je 0x4949c3
push dword [edi]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
lea ecx, [ebp - 0x14]
call fcn.0040da2c
lea edx, [ebp - 0x14]
call fcn.0049b5b2
lea ecx, [ebp - 0x14]
call fcn.0040d22d
lea ecx, [esi + 0x1c]
call fcn.0040a0d9
lea ecx, [esi + 0x10]
call fcn.0040a0d9
mov ecx, edi
call fcn.0040d22d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x494c56
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x57c074]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push edi
mov edi, ecx
mov eax, dword [edi + 0xc]
cmp dword [eax - 0xc], 0
je 0x494ce8
push 0x104
lea eax, [ebp - 0x7c]
push eax
push dword [0x57e2d8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x494ce8
push esi
lea esi, [eax + eax]
cmp esi, 0x208
jae 0x494cfe
xor eax, eax
and dword [ebp - 0x80], eax
mov word [ebp + esi - 0x7c], ax
lea eax, [ebp - 0x80]
push eax
push str.SoftwareCaphyonSetups
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
cmp dword [ebp - 0x80], 0
je 0x494ce7
lea eax, [esi + 2]
push eax
lea eax, [ebp - 0x7c]
push eax
push 1
push 0
push dword [edi + 0xc]
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
pop edi
call fcn.004d9b30
lea esp, [ebp + 0x190]
pop ebp
ret
call fcn.004da3a6
int3
Function at 0x494e43
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0x3c
mov eax, dword [0x57c074]
xor eax, esp
mov dword [esp + 0x38], eax
movaps xmm0, xmmword [0x54b0b0]
xor eax, eax
and dword [esp + 4], 0
push ebx
push ebp
push esi
movups xmmword [esp + 0x24], xmm0
push edi
movaps xmm0, xmmword [0x54b0b0]
mov edi, ecx
mov byte [esp + 0x13], dl
movups xmmword [esp + 0x38], xmm0
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push 0x53e670
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.GetSystemDefaultUILanguage
push esi
call ebx
test eax, eax
je 0x494ec0
call eax
movzx eax, ax
mov dword [esp + 0x1c], eax
push str.GetUserDefaultUILanguage
push esi
call ebx
test eax, eax
je 0x494ed5
call eax
movzx eax, ax
mov dword [esp + 0x14], eax
mov ebp, dword [edi + 4]
xor esi, esi
test ebp, ebp
jle 0x494f79
mov bl, byte [esp + 0x13]
push esi
mov ecx, edi
call fcn.0040a0b7
movzx edx, bl
movzx ecx, word [eax]
mov eax, dword [esp + 0x20]
cmp cx, ax
jne 0x494f01
mov dword [esp + edx*8 + 0x2c], esi
cmp cl, al
jne 0x494f09
mov dword [esp + edx*8 + 0x3c], esi
mov eax, dword [esp + 0x18]
cmp cx, ax
jne 0x494f29
and dword [esp + 0x24], 0
test bl, bl
push 0xc
pop eax
cmovne eax, dword [esp + 0x24]
mov dword [esp + eax + 0x28], esi
mov eax, dword [esp + 0x18]
cmp cl, al
jne 0x494f37
movzx eax, bl
xor eax, 1
mov dword [esp + eax*8 + 0x3c], esi
mov eax, dword [esp + 0x1c]
cmp cx, ax
jne 0x494f44
mov dword [esp + edx*8 + 0x28], esi
cmp cl, al
jne 0x494f4c
mov dword [esp + edx*8 + 0x38], esi
mov eax, dword [esp + 0x14]
mov dl, bl
xor dl, 1
cmp cx, ax
jne 0x494f65
movzx eax, dl
mov dword [esp + eax*4 + 0x2c], esi
mov eax, dword [esp + 0x14]
cmp cl, al
jne 0x494f70
movzx eax, dl
mov dword [esp + eax*8 + 0x38], esi
inc esi
cmp esi, ebp
jl 0x494ee6
xor eax, eax
mov edx, dword [esp + eax*4 + 0x28]
test edx, edx
jns 0x494f8d
inc eax
cmp eax, 8
jb 0x494f7b
push 0
jmp 0x494f8e
push edx
mov ecx, edi
call fcn.0040a0b7
mov ecx, dword [esp + 0x48]
pop edi
pop esi
mov ax, word [eax]
pop ebp
pop ebx
xor ecx, esp
call fcn.004d9b30
add esp, 0x3c
ret
Function at 0x495039
Capabilities:
Get geographical location

Disassembly:
push 0x14
mov eax, 0x517f53
call fcn.004da733
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x1c], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
call fcn.0040cf67
push 0
push 0x533080
mov dword [ebp - 4], ebx
push 2
movzx ebx, di
push ebx
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [ebp - 0x18], eax
lea ecx, [eax - 1]
push ecx
push 0x78
lea ecx, [ebp - 0x10]
call fcn.00451369
xor eax, eax
inc eax
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
cmp dword [ecx - 4], eax
jle 0x4950a3
push dword [ecx - 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040d75b
mov ecx, dword [ebp - 0x10]
push dword [ebp - 0x18]
push ecx
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push dword [ebp - 0x10]
push edi
push str._d__s
push esi
call fcn.0041186f
add esp, 0x10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0040d22d
mov eax, esi
call fcn.004da6fc
ret

Function at 0x49537f
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x2c
mov eax, dword [0x57c074]
xor eax, esp
mov dword [esp + 0x24], eax
push ebp
push esi
mov ebp, ecx
push 2
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
xorps xmm0, xmm0
lea eax, [esp + 0x1c]
push eax
push esi
movups xmmword [esp + 0x24], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
xor eax, eax
cmp byte [ebp + 0x2c], al
push 5
pop ecx
cmovne eax, ecx
push eax
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push 0
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
push 0x3e9
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [esp + 0xc]
mov dword [esp + 8], eax
push ecx
xorps xmm0, xmm0
push eax
movups xmmword [esp + 0x14], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [ebp + 0x30], 0
jne 0x495403
mov eax, dword [esp + 0x14]
mov dword [ebp + 0x30], eax
cmp byte [ebp + 0x2c], 0
je 0x49540e
mov eax, dword [ebp + 0x30]
jmp 0x495412
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc]
push 0x206
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.00410a4f
mov ecx, dword [esp + 0x2c]
pop esi
pop ebp
xor ecx, esp
call fcn.004d9b30
add esp, 0x2c
ret
Function at 0x495735
Capabilities:
Terminate thread

Disassembly:
push 0x18
mov eax, 0x517fcd
call fcn.004da733
mov eax, dword [ebp + 8]
xor edi, edi
or dword [ebp - 0x1c], 0xffffffff
mov esi, 0x543fd8
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
push edi
push edi
push edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], edi
call fcn.004a6f43
mov ecx, dword [ebp - 0x20]
call fcn.004954ef
mov dword [ebp - 4], 1
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x20], edi
je 0x4957c5
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x1c], 0xffffffff
je 0x4957bc
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x4957bc
cmp dword [ebp + 8], 0x103
jne 0x4957bc
push edi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004da6fc
ret 4
Function at 0x4969cd
Capabilities:
Read file on windows

Disassembly:
push 0x18
mov eax, 0x518206
call fcn.004da733
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x4969ee
xor eax, eax
jmp 0x496ac1
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x1c], 0x532e68
mov dword [ebp - 0x18], esi
and dword [ebp - 4], 0
push 2
pop edi
cmp esi, 0xffffffff
je 0x496aa5
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
mov ebx, dword [ebp + 0x10]
add eax, edi
and dword [ebp - 0x20], 0
sub ebx, edi
push 0
push ecx
push eax
push esi
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x496aa5
mov eax, ebx
lea ecx, [ebp + 8]
shr eax, 1
push eax
push 0x78
call fcn.00451369
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x496a71
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.0040d75b
mov eax, dword [ebp + 8]
push 0
lea ecx, [ebp - 0x10]
push ecx
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x496a99
cmp dword [ebp - 0x10], 0
je 0x496a99
mov ecx, dword [ebp - 0x14]
lea eax, [ebp + 8]
push eax
call fcn.004a17d2
movzx edi, al
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.0040d22d
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], 0x532e68
test esi, esi
je 0x496abf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x18], 0
mov eax, edi
call fcn.004da6fc
ret 0xc

Function at 0x499b9d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov edi, edx
push eax
lea eax, [ebp - 8]
mov ebx, ecx
push eax
push 0
push dword [edi]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, 0xea
jne 0x499c03
push dword [ebp - 4]
mov ecx, dword [ebp + 8]
call fcn.0040d85c
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
mov esi, dword [edi]
push eax
call fcn.00411858
push eax
lea eax, [ebp - 8]
push eax
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0xffffffffffffffff
call fcn.00410dd4
xor eax, eax
test esi, esi
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x499c11
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x294
mov eax, 0x5188ec
call fcn.004da767
mov esi, ecx
mov dword [ebp - 0x294], esi
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x28c], eax
mov dword [ebp - 0x290], edi
and dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00478030
lea ecx, [ebp - 0x288]
call fcn.0040cf67
lea eax, [ebp - 0x288]
xor ebx, ebx
push eax
push dword [ebp - 0x28c]
inc ebx
lea eax, [ebp + 8]
push ecx
mov byte [ebp - 4], bl
mov ecx, esp
mov dword [ebp - 0x280], esp
push eax
call fcn.004071bb
mov byte [ebp - 4], 2
mov byte [ebp - 4], bl
call fcn.00499e8d
test al, al
je 0x499cd2
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x28]
call fcn.00472dd0
push ecx
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x28]
call fcn.004730a0
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.004701a0
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], bl
call fcn.0040d22d
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0049a014
test al, al
je 0x499cd2
xor ebx, ebx
jmp 0x499cd9
mov edi, dword [ebp + 0xc]
cmp edi, ebx
jge 0x499ce0
mov edi, ebx
jmp 0x499e36
push 0x250
lea eax, [ebp - 0x27c]
push 0
push eax
call fcn.004dd970
add esp, 0xc
lea eax, [ebp + 8]
lea ecx, [ebp - 0x284]
push eax
call fcn.004071bb
mov esi, 0x53da28
mov byte [ebp - 4], 4
push esi
call fcn.004dfc45
pop ecx
push eax
push esi
lea ecx, [ebp - 0x284]
call fcn.0041107c
mov eax, dword [ebp - 0x284]
cmp dword [eax - 4], ebx
jle 0x499d41
push dword [eax - 0xc]
lea ecx, [ebp - 0x284]
call fcn.0040d75b
mov eax, dword [ebp - 0x284]
lea ecx, [ebp - 0x27c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x29c], 0x53da34
mov dword [ebp - 0x298], esi
lea eax, [ebp - 0x27c]
mov byte [ebp - 4], 5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp esi, 0xffffffff
je 0x499e06
lea ecx, [ebp - 0x27c]
call fcn.00499e64
test al, al
je 0x499df0
lea eax, [ebp - 0x250]
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0x280]
call fcn.004546de
pop ecx
push dword [ebp - 0x290]
lea eax, [edi - 1]
mov byte [ebp - 4], 6
push dword [ebp - 0x28c]
push eax
push ecx
lea eax, [ebp - 0x280]
mov dword [ebp - 0x2a0], esp
mov ecx, esp
push eax
call fcn.004071bb
mov ecx, dword [ebp - 0x294]
mov byte [ebp - 4], 7
mov byte [ebp - 4], 6
call fcn.00499c11
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x280]
test eax, eax
je 0x499e5b
call fcn.0040d22d
lea eax, [ebp - 0x27c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebx
je 0x499d7c
mov edi, ebx
mov byte [ebp - 4], 4
mov dword [ebp - 0x29c], 0x53da34
test esi, esi
je 0x499e28
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
and dword [ebp - 0x298], 0
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], bl
call fcn.0040d22d
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 0
call fcn.0040d22d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040d22d
mov eax, edi
call fcn.004da711
ret 0x10
call fcn.0040d22d
xor edi, edi
jmp 0x499e08
Function at 0x49a148
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x5189d1
call fcn.004da733
cmp byte [ebp + 0x10], 0
mov ecx, dword [ebp + 8]
jne 0x49a1a3
mov dl, byte [ebp + 0xc]
call fcn.0049a0c2
mov ecx, 0x53f300
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
xor edi, edi
cmp byte [ebp + 0x14], 0
mov dword [ebp - 4], edi
je 0x49a182
test eax, eax
setne bl
jmp 0x49a187
test eax, eax
sete bl
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], ecx
test eax, eax
je 0x49a19c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], edi
mov al, bl
jmp 0x49a269
push 0x5c
push dword [ecx]
call fcn.004dde17
pop ecx
pop ecx
mov esi, eax
push 3
pop ebx
test esi, esi
je 0x49a257
mov eax, dword [ebp + 8]
sub esi, dword [eax]
sar esi, 1
js 0x49a257
push esi
xor edi, edi
lea ecx, [ebp - 0x10]
push edi
push ecx
mov ecx, eax
call fcn.00406ffe
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
mov dl, byte [ebp + 0xc]
call fcn.0049a0c2
mov dword [ebp + 0x10], eax
mov dword [ebp - 0x1c], 0x53f300
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x49a232
mov ecx, dword [ebp + 8]
lea eax, [esi + 1]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.00406ec6
push edi
push edi
push edi
push edi
mov byte [ebp - 4], bl
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
mov ebx, eax
call fcn.0040d22d
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], 0x53f300
test eax, eax
je 0x49a24b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040d22d
cmp byte [ebp + 0x14], 0
je 0x49a264
test ebx, ebx
sete al
jmp 0x49a269
test ebx, ebx
setne al
call fcn.004da6fc
ret 0x10