joyce8/EMBER2024-capa huggingface dataset:
Function at 0x493c06
Capabilities:
Read file on windows

Disassembly:
push 0x34
mov eax, 0x5188cb
call fcn.004db733
mov ebx, ecx
xor eax, eax
cmp dword [ebx + 0x10], eax
je 0x493d87
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 0x493c66
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebx + 0x60]
mov ecx, ebx
push eax
push 0x103
call fcn.0049491d
push 2
pop eax
jmp 0x493d87
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.0040ce82
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 0x493d61
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 0x493dad
cmp dword [ebp - 0x14], 0
je 0x493dad
test edi, edi
je 0x493cd9
push esi
call fcn.004db27c
and dword [ebp - 0x10], 0
pop ecx
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x10]
inc eax
push eax
call fcn.0048ba1c
mov esi, dword [ebp - 0x10]
test al, al
je 0x493da9
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 0x493d8d
cmp dword [ebp - 0x14], 0
je 0x493d8d
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.0049518e
push dword [ebp - 0x18]
lea ecx, [ebx + 0x78]
call fcn.0049516c
mov edi, eax
test esi, esi
jne 0x493d3e
xor eax, eax
jmp 0x493d45
push esi
call fcn.004e0c26
pop ecx
push eax
push esi
lea ecx, [edi + 0x18]
call fcn.0040d8ae
mov eax, dword [ebp - 0x18]
mov edi, esi
inc eax
mov dword [ebp - 0x18], eax
cmp eax, dword [ebx + 0x10]
jb 0x493ca0
xor edi, edi
push esi
mov byte [ebp - 4], 1
call fcn.004db27c
and dword [ebp - 0x10], 0
pop ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 6
call fcn.0040d148
or dword [ebp - 4], 0xffffffff
mov eax, edi
call fcn.004db6fc
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebx + 0x60]
mov ecx, ebx
push eax
push 0x103
call fcn.0049491d
push 2
pop edi
jmp 0x493d63
push 3
jmp 0x493da6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebx + 0x60]
mov ecx, ebx
push eax
push 0x103
call fcn.0049491d
push 2
pop eax
mov dword [ebp - 0x18], eax
mov edi, eax
jmp 0x493d63
Function at 0x493dd6
Capabilities:
Read file on windows

Disassembly:
push 0x28
mov eax, 0x5188f6
call fcn.004db733
mov edi, ecx
xor eax, eax
cmp dword [edi + 0x9c], eax
jg 0x493f93
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 0x493e39
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
mov ecx, edi
push eax
push 0x103
call fcn.0049491d
push 2
pop eax
jmp 0x493f93
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 0x493f82
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 0x493f6b
cmp dword [ebp - 0x14], 0
je 0x493f6b
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0040ce82
cmp dword [ebp - 0x1c], 0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
je 0x493eaa
push esi
call fcn.004db27c
and dword [ebp - 0x10], 0
pop ecx
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x10]
inc eax
push eax
call fcn.0048ba1c
mov esi, dword [ebp - 0x10]
test al, al
je 0x493f56
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 0x493f3d
cmp dword [ebp - 0x14], 0
je 0x493f3d
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov word [esi + eax*2], cx
test esi, esi
jne 0x493ef6
xor eax, eax
jmp 0x493efd
push esi
call fcn.004e0c26
pop ecx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.0040d8ae
lea eax, [ebp - 0x2c]
push eax
lea ecx, [edi + 0x98]
call fcn.004950d3
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.0040d148
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 0x493e5a
xor ebx, ebx
jmp 0x493f82
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
mov ecx, edi
push eax
push 0x103
call fcn.0049491d
jmp 0x493f59
push 3
pop ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.0040d148
mov byte [ebp - 4], 0
jmp 0x493f82
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
mov ecx, edi
push eax
push 0x103
call fcn.0049491d
or dword [ebp - 4], 0xffffffff
push esi
call fcn.004db27c
and dword [ebp - 0x10], 0
mov eax, ebx
pop ecx
call fcn.004db6fc
ret

Function at 0x49507d
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 0x4950ab
push esi
mov ecx, edi
call fcn.004125d0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc esi
cmp esi, dword [ebx + 0xe4]
jl 0x495092
mov ecx, edi
pop edi
pop esi
pop ebx
jmp fcn.004571eb
Function at 0x49546b
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507469
mov eax, dword fs:[0]
push eax
push ecx
push ecx
push ebx
push esi
push edi
mov eax, dword [0x57c080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x2c], 0
je 0x4954a3
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 0x4954fa
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 0x4954fa
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.0040d92c
lea edx, [ebp - 0x14]
call fcn.0049c11b
lea ecx, [ebp - 0x14]
call fcn.0040d148
lea ecx, [esi + 0x1c]
call fcn.00409ff3
lea ecx, [esi + 0x10]
call fcn.00409ff3
mov ecx, edi
call fcn.0040d148
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x49578e
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x57c080]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push edi
mov edi, ecx
mov eax, dword [edi + 0xc]
cmp dword [eax - 0xc], 0
je 0x495820
push 0x104
lea eax, [ebp - 0x7c]
push eax
push dword [0x57e2d8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x495820
push esi
lea esi, [eax + eax]
cmp esi, 0x208
jae 0x495836
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 0x49581f
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.004dab24
add ebp, 0x190
leave
ret
call fcn.004db3ad
int3
Function at 0x49597b
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0x3c
mov eax, dword [0x57c080]
xor eax, esp
mov dword [esp + 0x38], eax
movaps xmm0, xmmword [0x54c140]
xor eax, eax
and dword [esp + 4], 0
push ebx
push ebp
push esi
movups xmmword [esp + 0x24], xmm0
push edi
movaps xmm0, xmmword [0x54c140]
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 str.kernel32.dll
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 0x4959f8
call eax
movzx eax, ax
mov dword [esp + 0x1c], eax
push str.GetUserDefaultUILanguage
push esi
call ebx
test eax, eax
je 0x495a0d
call eax
movzx eax, ax
mov dword [esp + 0x14], eax
mov ebp, dword [edi + 4]
xor esi, esi
test ebp, ebp
jle 0x495ab1
mov bl, byte [esp + 0x13]
push esi
mov ecx, edi
call fcn.00409fd1
movzx edx, bl
movzx ecx, word [eax]
mov eax, dword [esp + 0x20]
cmp cx, ax
jne 0x495a39
mov dword [esp + edx*8 + 0x2c], esi
cmp cl, al
jne 0x495a41
mov dword [esp + edx*8 + 0x3c], esi
mov eax, dword [esp + 0x18]
cmp cx, ax
jne 0x495a61
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 0x495a6f
movzx eax, bl
xor eax, 1
mov dword [esp + eax*8 + 0x3c], esi
mov eax, dword [esp + 0x1c]
cmp cx, ax
jne 0x495a7c
mov dword [esp + edx*8 + 0x28], esi
cmp cl, al
jne 0x495a84
mov dword [esp + edx*8 + 0x38], esi
mov eax, dword [esp + 0x14]
mov dl, bl
xor dl, 1
cmp cx, ax
jne 0x495a9d
movzx eax, dl
mov dword [esp + eax*4 + 0x2c], esi
mov eax, dword [esp + 0x14]
cmp cl, al
jne 0x495aa8
movzx eax, dl
mov dword [esp + eax*8 + 0x38], esi
inc esi
cmp esi, ebp
jl 0x495a1e
xor eax, eax
mov edx, dword [esp + eax*4 + 0x28]
test edx, edx
jns 0x495ac5
inc eax
cmp eax, 8
jb 0x495ab3
push 0
jmp 0x495ac6
push edx
mov ecx, edi
call fcn.00409fd1
mov ecx, dword [esp + 0x48]
pop edi
pop esi
mov ax, word [eax]
pop ebp
pop ebx
xor ecx, esp
call fcn.004dab24
add esp, 0x3c
ret
Function at 0x495b71
Capabilities:
Get geographical location

Disassembly:
push 0x14
mov eax, 0x518c21
call fcn.004db733
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.0040ce82
push 0
push 0x534080
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.0045170d
xor eax, eax
inc eax
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
cmp dword [ecx - 4], eax
jle 0x495bdb
push dword [ecx - 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040d65d
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.00411724
add esp, 0x10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0040d148
mov eax, esi
call fcn.004db6fc
ret

Function at 0x495eb5
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x2c
mov eax, dword [0x57c080]
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 0x495f39
mov eax, dword [esp + 0x14]
mov dword [ebp + 0x30], eax
cmp byte [ebp + 0x2c], 0
je 0x495f44
mov eax, dword [ebp + 0x30]
jmp 0x495f48
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.00410920
mov ecx, dword [esp + 0x2c]
pop esi
pop ebp
xor ecx, esp
call fcn.004dab24
add esp, 0x2c
ret
Function at 0x49626b
Capabilities:
Terminate thread

Disassembly:
push 0x18
mov eax, 0x518c9b
call fcn.004db733
mov eax, dword [ebp + 8]
xor edi, edi
or dword [ebp - 0x1c], 0xffffffff
mov esi, 0x545068
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.004a7bc2
mov ecx, dword [ebp - 0x20]
call fcn.00496025
mov dword [ebp - 4], 1
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x20], edi
je 0x4962fb
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x1c], 0xffffffff
je 0x4962f2
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 0x4962f2
cmp dword [ebp + 8], 0x103
jne 0x4962f2
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.004db6fc
ret 4
Function at 0x497514
Capabilities:
Read file on windows

Disassembly:
push 0x18
mov eax, 0x518ed4
call fcn.004db733
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x497535
xor eax, eax
jmp 0x497608
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], 0x533e68
mov dword [ebp - 0x18], esi
and dword [ebp - 4], 0
push 2
pop edi
cmp esi, 0xffffffff
je 0x4975ec
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 0x4975ec
mov eax, ebx
lea ecx, [ebp + 8]
shr eax, 1
push eax
push 0x78
call fcn.0045170d
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x4975b8
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.0040d65d
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 0x4975e0
cmp dword [ebp - 0x10], 0
je 0x4975e0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp + 8]
push eax
call fcn.004a23e9
movzx edi, al
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.0040d148
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], 0x533e68
test esi, esi
je 0x497606
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x18], 0
mov eax, edi
call fcn.004db6fc
ret 0xc

Function at 0x49a633
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x51953d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x57c080]
xor eax, ebp
mov dword [ebp + 0x208], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x218]
xor ecx, ecx
mov esi, dword [ebp + 0x214]
mov edi, ecx
push ecx
push ecx
push ecx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push ecx
push eax
lea eax, [ebp]
push eax
push ecx
jmp 0x49a6c5
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040d92c
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
and dword [ebp - 4], 0
push eax
call fcn.00470350
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
inc edi
call fcn.0040d148
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
push edi
push esi
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x49a68d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.004dab24
add ebp, 0x20c
leave
ret 8
Function at 0x49a6fb
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 0x49a761
push dword [ebp - 4]
mov ecx, dword [ebp + 8]
call fcn.0040d75e
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
mov esi, dword [edi]
push eax
call fcn.0041170d
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.00410c99
xor eax, eax
test esi, esi
pop edi
pop esi
setne al
pop ebx
leave
ret
Function at 0x49a76d
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x294
mov eax, 0x5195ba
call fcn.004db767
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.00478390
lea ecx, [ebp - 0x288]
call fcn.0040ce82
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.0040713a
mov byte [ebp - 4], 2
mov byte [ebp - 4], bl
call fcn.0049a9e9
test al, al
je 0x49a82e
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x28]
call fcn.00473140
push ecx
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x28]
call fcn.00473410
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.00470350
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], bl
call fcn.0040d148
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0049ab70
test al, al
je 0x49a82e
xor ebx, ebx
jmp 0x49a835
mov edi, dword [ebp + 0xc]
cmp edi, ebx
jge 0x49a83c
mov edi, ebx
jmp 0x49a992
push 0x250
lea eax, [ebp - 0x27c]
push 0
push eax
call fcn.004de980
add esp, 0xc
lea eax, [ebp + 8]
lea ecx, [ebp - 0x284]
push eax
call fcn.0040713a
mov esi, 0x53ea28
mov byte [ebp - 4], 4
push esi
call fcn.004e0c26
pop ecx
push eax
push esi
lea ecx, [ebp - 0x284]
call fcn.00410f3f
mov eax, dword [ebp - 0x284]
cmp dword [eax - 4], ebx
jle 0x49a89d
push dword [eax - 0xc]
lea ecx, [ebp - 0x284]
call fcn.0040d65d
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], 0x53ea34
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 0x49a962
lea ecx, [ebp - 0x27c]
call fcn.0049a9c0
test al, al
je 0x49a94c
lea eax, [ebp - 0x250]
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0x280]
call fcn.00454ab0
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.0040713a
mov ecx, dword [ebp - 0x294]
mov byte [ebp - 4], 7
mov byte [ebp - 4], 6
call fcn.0049a76d
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x280]
test eax, eax
je 0x49a9b7
call fcn.0040d148
lea eax, [ebp - 0x27c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebx
je 0x49a8d8
mov edi, ebx
mov byte [ebp - 4], 4
mov dword [ebp - 0x29c], 0x53ea34
test esi, esi
je 0x49a984
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.0040d148
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 0
call fcn.0040d148
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040d148
mov eax, edi
call fcn.004db711
ret 0x10
call fcn.0040d148
xor edi, edi
jmp 0x49a964
Function at 0x49aca1
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x51969f
call fcn.004db733
cmp byte [ebp + 0x10], 0
mov ecx, dword [ebp + 8]
jne 0x49acfc
mov dl, byte [ebp + 0xc]
call fcn.0049ac1b
mov ecx, 0x540310
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
xor edi, edi
cmp byte [ebp + 0x14], 0
mov dword [ebp - 4], edi
je 0x49acdb
test eax, eax
setne bl
jmp 0x49ace0
test eax, eax
sete bl
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], ecx
test eax, eax
je 0x49acf5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], edi
mov al, bl
jmp 0x49adc2
push 0x5c
push dword [ecx]
call fcn.004dee27
pop ecx
pop ecx
mov esi, eax
push 3
pop ebx
test esi, esi
je 0x49adb0
mov eax, dword [ebp + 8]
sub esi, dword [eax]
sar esi, 1
js 0x49adb0
push esi
xor edi, edi
lea ecx, [ebp - 0x10]
push edi
push ecx
mov ecx, eax
call fcn.00406f8c
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
mov dl, byte [ebp + 0xc]
call fcn.0049ac1b
mov dword [ebp + 0x10], eax
mov dword [ebp - 0x1c], 0x540310
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x49ad8b
mov ecx, dword [ebp + 8]
lea eax, [esi + 1]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.00406e54
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.0040d148
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], 0x540310
test eax, eax
je 0x49ada4
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.0040d148
cmp byte [ebp + 0x14], 0
je 0x49adbd
test ebx, ebx
sete al
jmp 0x49adc2
test ebx, ebx
setne al
call fcn.004db6fc
ret 0x10
Function at 0x49b2cb
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x41c
mov eax, dword [0x57c080]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push esi
push edi
test ecx, ecx
je 0x49b410
movzx eax, word [ecx]
lea esi, [esp + 0x20]
test ax, ax
je 0x49b30f
mov edx, esi
sub ecx, edx
mov word [esi], ax
add esi, 2
movzx eax, word [ecx + esi]
test ax, ax
jne 0x49b300
xor eax, eax
mov dword [esp + 0x10], esi
mov word [esi], ax
xor cl, cl
push 0x5c
xor al, al
sub esi, 2
pop edi
mov byte [esp + 0xf], al
cmp word [esp + 0x20], di
jne 0x49b343
cmp word [esp + 0x22], di
jne 0x49b343
xor ebx, ebx
inc ebx
cmp word [esi], di
mov byte [esp + 0xf], bl
setne cl
jmp 0x49b34f
xor ebx, ebx
movzx eax, al
inc ebx
cmp word [esi], di
cmove eax, ebx
push 0x5c
pop edx
cmp word [esp + 0x24], dx
lea edi, [esp + 0x24]
mov edx, dword [esp + 0x10]
je 0x49b370
push 0x5c
pop edx
add edi, 2
cmp word [edi], dx
jne 0x49b364
mov edx, dword [esp + 0x10]
test cl, cl
jne 0x49b37a
test al, al
je 0x49b38d
jmp 0x49b385
mov esi, edx
push 0x5c
pop eax
mov word [esi], ax
add esi, 2
xor eax, eax
mov word [esi], ax
sub esi, 2
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
and dword [esp + 0x14], 0
push eax
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x49b3f6
push 0x5c
pop ecx
cmp word [esi], cx
lea eax, [esi - 2]
cmovne eax, esi
mov esi, eax
jmp 0x49b3d2
cmp word [esi], cx
je 0x49b3da
sub esi, 2
lea eax, [esp + 0x20]
cmp esi, eax
ja 0x49b3ca
cmp esi, edi
jb 0x49b410
cmp byte [esp + 0xf], 0
jne 0x49b3e9
cmp esi, edi
jne 0x49b3ec
add esi, 2
xor eax, eax
mov word [esi], ax
sub esi, 2
jmp 0x49b396
mov eax, dword [ebp + 0xc]
cmp eax, dword [esp + 0x1c]
ja 0x49b40a
jb 0x49b40c
mov eax, dword [ebp + 8]
cmp eax, dword [esp + 0x18]
jb 0x49b40c
xor bl, bl
mov al, bl
jmp 0x49b412
xor al, al
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004dab24
mov esp, ebp
pop ebp
ret