joyce8/EMBER2024-capa huggingface dataset:
Function at 0x495281
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507209
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 0x4952b9
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 0x495310
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 0x495310
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.0049bf30
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 0x4955a4
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 0x495636
push 0x104
lea eax, [ebp - 0x7c]
push eax
push dword [0x57e2d8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x495636
push esi
lea esi, [eax + eax]
cmp esi, 0x208
jae 0x49564c
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 0x495635
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.004da8b4
add ebp, 0x190
leave
ret
call fcn.004db13d
int3
Function at 0x495791
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 [0x54c100]
xor eax, eax
and dword [esp + 4], 0
push ebx
push ebp
push esi
movups xmmword [esp + 0x24], xmm0
push edi
movaps xmm0, xmmword [0x54c100]
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 0x49580e
call eax
movzx eax, ax
mov dword [esp + 0x1c], eax
push str.GetUserDefaultUILanguage
push esi
call ebx
test eax, eax
je 0x495823
call eax
movzx eax, ax
mov dword [esp + 0x14], eax
mov ebp, dword [edi + 4]
xor esi, esi
test ebp, ebp
jle 0x4958c7
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 0x49584f
mov dword [esp + edx*8 + 0x2c], esi
cmp cl, al
jne 0x495857
mov dword [esp + edx*8 + 0x3c], esi
mov eax, dword [esp + 0x18]
cmp cx, ax
jne 0x495877
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 0x495885
movzx eax, bl
xor eax, 1
mov dword [esp + eax*8 + 0x3c], esi
mov eax, dword [esp + 0x1c]
cmp cx, ax
jne 0x495892
mov dword [esp + edx*8 + 0x28], esi
cmp cl, al
jne 0x49589a
mov dword [esp + edx*8 + 0x38], esi
mov eax, dword [esp + 0x14]
mov dl, bl
xor dl, 1
cmp cx, ax
jne 0x4958b3
movzx eax, dl
mov dword [esp + eax*4 + 0x2c], esi
mov eax, dword [esp + 0x14]
cmp cl, al
jne 0x4958be
movzx eax, dl
mov dword [esp + eax*8 + 0x38], esi
inc esi
cmp esi, ebp
jl 0x495834
xor eax, eax
mov edx, dword [esp + eax*4 + 0x28]
test edx, edx
jns 0x4958db
inc eax
cmp eax, 8
jb 0x4958c9
push 0
jmp 0x4958dc
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.004da8b4
add esp, 0x3c
ret
Function at 0x495987
Capabilities:
Get geographical location

Disassembly:
push 0x14
mov eax, 0x5188f3
call fcn.004db4c3
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.00451700
xor eax, eax
inc eax
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
cmp dword [ecx - 4], eax
jle 0x4959f1
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.004db48c
ret

Function at 0x495ccb
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 0x495d4f
mov eax, dword [esp + 0x14]
mov dword [ebp + 0x30], eax
cmp byte [ebp + 0x2c], 0
je 0x495d5a
mov eax, dword [ebp + 0x30]
jmp 0x495d5e
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.004da8b4
add esp, 0x2c
ret
Function at 0x496081
Capabilities:
Terminate thread

Disassembly:
push 0x18
mov eax, 0x51896d
call fcn.004db4c3
mov eax, dword [ebp + 8]
xor edi, edi
or dword [ebp - 0x1c], 0xffffffff
mov esi, 0x545038
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.004a79d7
mov ecx, dword [ebp - 0x20]
call fcn.00495e3b
mov dword [ebp - 4], 1
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x20], edi
je 0x496111
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x1c], 0xffffffff
je 0x496108
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 0x496108
cmp dword [ebp + 8], 0x103
jne 0x496108
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.004db48c
ret 4
Function at 0x49732a
Capabilities:
Read file on windows

Disassembly:
push 0x18
mov eax, 0x518ba6
call fcn.004db4c3
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x49734b
xor eax, eax
jmp 0x49741e
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 0x497402
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 0x497402
mov eax, ebx
lea ecx, [ebp + 8]
shr eax, 1
push eax
push 0x78
call fcn.00451700
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x4973ce
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 0x4973f6
cmp dword [ebp - 0x10], 0
je 0x4973f6
mov ecx, dword [ebp - 0x14]
lea eax, [ebp + 8]
push eax
call fcn.004a21fe
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 0x49741c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x18], 0
mov eax, edi
call fcn.004db48c
ret 0xc

Function at 0x49a449
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x51920f
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 0x49a4db
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.00470330
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 0x49a4a3
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.004da8b4
add ebp, 0x20c
leave
ret 8
Function at 0x49a511
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 0x49a577
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 0x49a583
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x294
mov eax, 0x51928c
call fcn.004db4f7
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.00478370
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.0049a7ff
test al, al
je 0x49a644
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x28]
call fcn.00473120
push ecx
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x28]
call fcn.004733f0
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.00470330
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], bl
call fcn.0040d148
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0049a986
test al, al
je 0x49a644
xor ebx, ebx
jmp 0x49a64b
mov edi, dword [ebp + 0xc]
cmp edi, ebx
jge 0x49a652
mov edi, ebx
jmp 0x49a7a8
push 0x250
lea eax, [ebp - 0x27c]
push 0
push eax
call fcn.004de710
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.004e09b6
pop ecx
push eax
push esi
lea ecx, [ebp - 0x284]
call fcn.00410f3f
mov eax, dword [ebp - 0x284]
cmp dword [eax - 4], ebx
jle 0x49a6b3
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 0x49a778
lea ecx, [ebp - 0x27c]
call fcn.0049a7d6
test al, al
je 0x49a762
lea eax, [ebp - 0x250]
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0x280]
call fcn.00454aa5
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.0049a583
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x280]
test eax, eax
je 0x49a7cd
call fcn.0040d148
lea eax, [ebp - 0x27c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebx
je 0x49a6ee
mov edi, ebx
mov byte [ebp - 4], 4
mov dword [ebp - 0x29c], 0x53ea34
test esi, esi
je 0x49a79a
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.004db4a1
ret 0x10
call fcn.0040d148
xor edi, edi
jmp 0x49a77a
Function at 0x49aab7
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x519371
call fcn.004db4c3
cmp byte [ebp + 0x10], 0
mov ecx, dword [ebp + 8]
jne 0x49ab12
mov dl, byte [ebp + 0xc]
call fcn.0049aa31
mov ecx, 0x540320
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
xor edi, edi
cmp byte [ebp + 0x14], 0
mov dword [ebp - 4], edi
je 0x49aaf1
test eax, eax
setne bl
jmp 0x49aaf6
test eax, eax
sete bl
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], ecx
test eax, eax
je 0x49ab0b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], edi
mov al, bl
jmp 0x49abd8
push 0x5c
push dword [ecx]
call fcn.004debb7
pop ecx
pop ecx
mov esi, eax
push 3
pop ebx
test esi, esi
je 0x49abc6
mov eax, dword [ebp + 8]
sub esi, dword [eax]
sar esi, 1
js 0x49abc6
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.0049aa31
mov dword [ebp + 0x10], eax
mov dword [ebp - 0x1c], 0x540320
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x49aba1
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], 0x540320
test eax, eax
je 0x49abba
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 0x49abd3
test ebx, ebx
sete al
jmp 0x49abd8
test ebx, ebx
setne al
call fcn.004db48c
ret 0x10
Function at 0x49b0e1
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 0x49b226
movzx eax, word [ecx]
lea esi, [esp + 0x20]
test ax, ax
je 0x49b125
mov edx, esi
sub ecx, edx
mov word [esi], ax
add esi, 2
movzx eax, word [ecx + esi]
test ax, ax
jne 0x49b116
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 0x49b159
cmp word [esp + 0x22], di
jne 0x49b159
xor ebx, ebx
inc ebx
cmp word [esi], di
mov byte [esp + 0xf], bl
setne cl
jmp 0x49b165
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 0x49b186
push 0x5c
pop edx
add edi, 2
cmp word [edi], dx
jne 0x49b17a
mov edx, dword [esp + 0x10]
test cl, cl
jne 0x49b190
test al, al
je 0x49b1a3
jmp 0x49b19b
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 0x49b20c
push 0x5c
pop ecx
cmp word [esi], cx
lea eax, [esi - 2]
cmovne eax, esi
mov esi, eax
jmp 0x49b1e8
cmp word [esi], cx
je 0x49b1f0
sub esi, 2
lea eax, [esp + 0x20]
cmp esi, eax
ja 0x49b1e0
cmp esi, edi
jb 0x49b226
cmp byte [esp + 0xf], 0
jne 0x49b1ff
cmp esi, edi
jne 0x49b202
add esi, 2
xor eax, eax
mov word [esi], ax
sub esi, 2
jmp 0x49b1ac
mov eax, dword [ebp + 0xc]
cmp eax, dword [esp + 0x1c]
ja 0x49b220
jb 0x49b222
mov eax, dword [ebp + 8]
cmp eax, dword [esp + 0x18]
jb 0x49b222
xor bl, bl
mov al, bl
jmp 0x49b228
xor al, al
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004da8b4
mov esp, ebp
pop ebp
ret
Function at 0x49b910
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x8004]
mov eax, 0x8004
call fcn.004dbbf0
push 0xffffffffffffffff
push 0x519575
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x57c080]
xor eax, ebp
mov dword [ebp + 0x8000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], esi
cmp dword [esi + 4], 0
mov eax, dword [ebp + 0x800c]
mov dword [ebp - 0x18], eax
jne 0x49b965
xor al, al
jmp 0x49b9dd
mov ecx, eax
call fcn.004571e0
xor edi, edi
push 0
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x10], 0x3fff
push eax
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
push edi
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
test ebx, ebx
jne 0x49b9cf
mov esi, dword [ebp - 0x10]
call fcn.0040d33d
push eax
push esi
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040707c
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 1
call fcn.00470330
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040d148
mov esi, dword [ebp - 0x1c]
inc edi
test ebx, ebx
je 0x49b96e
cmp ebx, 0x103
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8000]
xor ecx, ebp
call fcn.004da8b4
add ebp, 0x8004
leave
ret 4
Function at 0x49bbe4
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x5195f9
call fcn.004db4c3
mov edi, edx
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
push eax
mov dword [ebp - 0x10], 0xc8
call fcn.004db00c
xor edx, edx
mov dword [ebp - 0x14], edx
jmp 0x49bc1f
add dword [ebp - 0x10], 2
push esi
call fcn.004db00c
xor eax, eax
mov dword [ebp - 0x14], eax
pop ecx
push dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
call fcn.0048ba0c
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
xor eax, eax
push eax
push dword [edi]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x49bc10
test eax, eax
je 0x49bc57
xor eax, eax
mov bl, al
jmp 0x49bd14
mov eax, dword [ebp - 0x18]
xor ebx, ebx
inc ebx
cmp eax, ebx
je 0x49bc87
cmp eax, 2
je 0x49bc87
cmp eax, 7
je 0x49bc87
cmp eax, 4
jne 0x49bc4e
push dword [esi]
push 0x542598
push dword [ebp + 8]
call fcn.00411724
add esp, 0xc
jmp 0x49bd14
mov eax, dword [ebp - 0x10]
xor ecx, ecx
shr eax, 1
mov dword [ebp - 0x10], eax
mov word [esi + eax*2], cx
xor eax, eax
mov edi, dword [ebp - 0x10]
jmp 0x49bca0
dec edi
mov dword [ebp - 0x10], edi
cmp word [esi + edi*2], ax
je 0x49bc9c
inc edi
mov dword [ebp - 0x10], edi
call fcn.0040d33d
push eax
push edi
push esi
lea ecx, [ebp - 0x1c]
call fcn.0040707c
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ecx]
sub ecx, 0x10
lea edi, [eax - 0x10]
mov dword [ebp - 0x20], ecx
cmp edi, ecx
je 0x49bd07
xor edx, edx
cmp dword [ecx + 0xc], edx
jl 0x49bcfb
mov edx, dword [edi]
cmp edx, dword [ecx]
jne 0x49bcfb
mov ecx, edi
call fcn.004070e1
mov ecx, dword [ebp - 0x20]
mov edi, eax
call fcn.0040d645
mov ecx, dword [ebp + 8]
lea eax, [edi + 0x10]
mov dword [ecx], eax
jmp 0x49bd07
push dword [eax - 0xc]
mov ecx, dword [ebp + 8]
push eax
call fcn.0040d8ae
xor eax, eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], al
call fcn.0040d148
or dword [ebp - 4], 0xffffffff
push esi
call fcn.004db00c
xor eax, eax
mov dword [ebp - 0x14], eax
mov al, bl
pop ecx
call fcn.004db48c
ret

Function at 0x49be0e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
mov ecx, 0x57f524
call fcn.0040dd59
cmp byte [0x57f52c], 0
je 0x49be35
push dword [0x57f528]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x49be65
cmp dword [0x57f528], 0
je 0x49be65
xor ecx, ecx
lea eax, [ebp + 8]
push eax
push ecx
push 0x57f520
push 0x49be87
push ecx
push ecx
mov dword [ebp + 8], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
mov ecx, 0x57f530
call fcn.0040e086
pop ebp
ret 4