joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415789
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
push ebx
push esi
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_StrChrW]
mov esi, ecx
push 0x2a
mov ebx, edx
push esi
mov dword [ebp - 0x10], ebx
call edi
test eax, eax
je 0x415894
push 0x5c
push eax
call edi
mov edi, eax
test edi, edi
je 0x415894
mov ecx, edi
sub ecx, esi
sar ecx, 1
push ecx
push esi
lea ecx, [ebp + 8]
call fcn.0043b96c
lea eax, [ebp - 0x284]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push 0x5c
push dword [ebp + 8]
mov ebx, eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
jne 0x4157f6
or eax, 0xffffffff
jmp 0x4157fb
sub eax, dword [ebp + 8]
sar eax, 1
inc eax
lea ecx, [ebp + 8]
push eax
call fcn.0043c894
cmp ebx, 0xffffffff
je 0x415931
test dword [ebp - 0x284], 0x400
je 0x415826
test dword [ebp - 0x260], 0x20000000
jne 0x415876
test byte [ebp - 0x284], 0x10
je 0x415876
lea ecx, [ebp - 0x258]
call fcn.0044bd7f
test al, al
jne 0x415876
push ecx
mov esi, esp
lea edx, [ebp + 8]
mov eax, ecx
lea ecx, [ebp - 0x14]
push 0x498824
push eax
call fcn.0043ab55
pop ecx
mov edx, eax
mov ecx, esi
call fcn.0043ab55
mov edx, dword [ebp - 0x10]
pop ecx
lea ecx, [edi + 2]
call fcn.00415789
pop ecx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.0043c924
lea eax, [ebp - 0x284]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41580e
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x415931
push esi
lea ecx, [ebp + 8]
call fcn.0043b9f9
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
test esi, esi
je 0x415931
movzx edi, word [esi]
xor eax, eax
push eax
push eax
mov word [esi], ax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
je 0x415931
mov word [esi], di
xor eax, eax
mov word [ebp - 0xc], ax
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, ebx
mov dword [ebp - 8], esi
mov dword [ebp - 0x34], 0x18
push 6
mov ecx, dword [eax - 0xc]
add ecx, ecx
mov dword [ebp - 0x28], 0x40
sub ecx, esi
lea esi, [ebp - 0x34]
add ecx, eax
lea eax, [ebp - 0x1c]
and ecx, 0xfffffffe
mov dword [ebp - 0x2c], eax
mov word [ebp - 0xc], cx
mov word [ebp - 0xa], cx
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0xc]
call fcn.0041565f
add esp, 0x18
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0043c924
pop edi
pop esi
pop ebx
leave
ret
Function at 0x415d5a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ecx + 0x48]
lea edx, [ebp - 8]
push esi
push edx
push 0x2000000
xor esi, esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWOF
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov ecx, dword [eax]
push 0x80000002
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x415dbe
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push str.ForceAlgorithm
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x415db2
cmp dword [ebp - 4], 3
jbe 0x415db5
mov dword [ebp - 4], esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop esi
leave
ret
Function at 0x416511
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor ebx, ebx
push ebx
push 0x2000000
push 3
push ebx
push 5
push 0x80000000
push ecx
mov dword [ebp - 0xc], edx
call edi
mov esi, eax
mov dword [ebp - 0x28], esi
cmp esi, 0xffffffff
je 0x4166c2
lea eax, [ebp - 4]
mov dword [ebp - 8], ebx
push eax
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], ebx
jne 0x4166c2
test eax, eax
je 0x4166c2
add eax, 0xfffff000
cmp eax, 0x31ff000
ja 0x4166c2
push ebx
push 0x2000000
push 3
push ebx
push 5
push 0x80000000
push dword [ebp - 0xc]
call edi
mov edi, eax
mov dword [ebp - 0x24], edi
cmp edi, 0xffffffff
je 0x4166ba
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
push eax
push edi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x18], ebx
jne 0x4166ba
test eax, eax
je 0x4166ba
cmp dword [ebp - 8], eax
jne 0x4166ba
push ebx
push dword [ebp - 8]
push ebx
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
mov dword [ebp - 0x20], esi
test esi, esi
je 0x4166b2
push ebx
push dword [ebp - 8]
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
je 0x4166aa
push dword [ebp - 8]
push ebx
push ebx
push 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
call esi
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4166aa
lea eax, [ebp - 0x14]
mov dword [ebp - 0x50], 0x491634
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0xa0]
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x2c], eax
call fcn.0043aa99
lea ecx, [ebp - 0x50]
call fcn.0043aa7b
push dword [ebp - 8]
push ebx
push ebx
push 4
push edi
call esi
mov dword [ebp - 0x10], eax
test eax, eax
je 0x41669f
lea eax, [ebp - 0x10]
mov dword [ebp - 0x50], 0x49161c
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x78]
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x2c], eax
call fcn.0043aa99
lea ecx, [ebp - 0x50]
call fcn.0043aa7b
push dword [ebp - 8]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.msvcrt.dll_memcmp]
add esp, 0xc
lea ecx, [ebp - 0x78]
neg eax
sbb al, al
lea ebx, [eax + 1]
call fcn.0043aa5e
lea ecx, [ebp - 0xa0]
call fcn.0043aa5e
lea ecx, [ebp - 0xc]
call fcn.0043ab9a
lea ecx, [ebp - 0x20]
call fcn.0043ab9a
lea ecx, [ebp - 0x24]
call fcn.0043ab9a
lea ecx, [ebp - 0x28]
call fcn.0043ab9a
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x418899
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
push ebx
push esi
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_StrChrW]
mov esi, ecx
push 0x2a
push esi
call edi
test eax, eax
je 0x41897e
push 0x5c
push eax
call edi
mov edi, eax
test edi, edi
je 0x41897e
mov ecx, edi
sub ecx, esi
sar ecx, 1
push ecx
push esi
lea ecx, [ebp + 8]
call fcn.0043b96c
lea eax, [ebp - 0x25c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push 0x5c
push dword [ebp + 8]
mov ebx, eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
jne 0x418901
or eax, 0xffffffff
jmp 0x418906
sub eax, dword [ebp + 8]
sar eax, 1
inc eax
lea ecx, [ebp + 8]
push eax
call fcn.0043c894
cmp ebx, 0xffffffff
je 0x418a49
test byte [ebp - 0x25c], 0x10
je 0x418966
lea ecx, [ebp - 0x230]
call fcn.0044bd7f
test al, al
jne 0x418966
push ecx
mov esi, esp
lea edx, [ebp + 8]
mov eax, ecx
lea ecx, [ebp - 8]
push 0x498824
push eax
call fcn.0043ab55
pop ecx
mov edx, eax
mov ecx, esi
call fcn.0043ab55
pop ecx
lea ecx, [edi + 2]
call fcn.00418899
pop ecx
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.0043c924
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x418919
push ebx
jmp 0x418a43
push esi
lea ecx, [ebp + 8]
call fcn.0043b9f9
lea eax, [ebp - 0x25c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push 0x5c
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
jne 0x4189af
or eax, 0xffffffff
jmp 0x4189b4
sub eax, dword [ebp + 8]
sar eax, 1
inc eax
lea ecx, [ebp + 8]
push eax
call fcn.0043c894
cmp edi, 0xffffffff
je 0x418a49
test byte [ebp - 0x25c], 0x10
je 0x418a0b
lea ecx, [ebp - 0x230]
call fcn.0044bd7f
test al, al
jne 0x418a30
push ecx
mov esi, esp
lea edx, [ebp + 8]
mov eax, ecx
lea ecx, [ebp - 8]
push 0x4933cc
push eax
call fcn.0043ab55
pop ecx
mov edx, eax
mov ecx, esi
call fcn.0043ab55
pop ecx
call fcn.0044cb92
pop ecx
mov ecx, dword [ebp - 8]
jmp 0x418a28
lea eax, [ebp - 0x230]
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.0043ab55
pop ecx
mov ecx, dword [eax]
call fcn.0044ca9c
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.0043c924
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4189c7
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0043c924
pop edi
pop esi
pop ebx
leave
ret
Function at 0x418a59
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov eax, dword [eax - 0xc]
xor ebx, ebx
dec eax
mov dword [ebp - 0x18], ebx
mov edi, ecx
mov esi, edx
push eax
lea ecx, [ebp + 8]
call fcn.0043a8ec
push 0x5c
pop ecx
cmp ax, cx
je 0x418a8f
push ecx
lea ecx, [ebp + 8]
call fcn.0043b93f
push 0x492a04
lea edx, [ebp + 8]
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
call fcn.0043ab55
pop ecx
push ebx
lea edx, [ebp - 0x14]
mov ecx, dword [eax]
call fcn.0044c96a
pop ecx
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.0043c924
test edi, edi
je 0x418acd
mov ecx, dword [ebp + 8]
mov edx, edi
push esi
call fcn.00415941
pop ecx
mov cl, bl
mov byte [ebp - 5], cl
push 1
pop eax
mov dword [ebp - 0xc], eax
sub esi, 1
je 0x418af1
sub esi, eax
jne 0x418aff
cmp dword [ebp - 0x10], 0x60004
jb 0x418aff
mov cl, al
mov byte [ebp - 5], cl
jmp 0x418aff
cmp dword [ebp - 0x10], 0x60003
jb 0x418aff
mov cl, al
mov byte [ebp - 5], al
test cl, cl
je 0x418b28
push str.WindowsSystem32WimBootCompress.ini
lea edx, [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.0043ab55
pop ecx
xor ecx, ecx
inc ecx
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax]
call fcn.0044c9a8
test eax, eax
jne 0x418b28
inc eax
jmp 0x418b2e
mov eax, dword [ebp - 0x18]
mov byte [ebp - 0xc], bl
test al, 1
je 0x418b3d
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.0043c924
mov ecx, dword [ebp - 0xc]
test cl, cl
setne al
dec al
and al, byte [ebp - 5]
mov byte [ebp - 5], al
mov edi, dword [ebx + 0x489928]
push ecx
mov ecx, dword [ebp + 8]
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.0043baa0
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.00418899
cmp byte [ebp - 5], 0
pop ecx
je 0x418b84
push str.Boot
push edi
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x418b8f
add ebx, 4
cmp ebx, 0x9c
jne 0x418b4d
push 0x48d254
lea edx, [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.0043ab55
pop ecx
lea ecx, [ebp - 0x26c]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x10]
mov esi, eax
add ecx, 0xfffffff0
call fcn.0043c924
cmp esi, 0xffffffff
je 0x418c08
test byte [ebp - 0x26c], 0x10
jne 0x418bef
lea eax, [ebp - 0x240]
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.0043ab55
pop ecx
mov ecx, dword [eax]
call fcn.0044ca9c
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.0043c924
lea eax, [ebp - 0x26c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x418bc1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0043c924
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x4192cc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x419499
xor ecx, ecx
cmp word [edi], cx
je 0x419499
mov ebx, dword [ebp + 0x10]
mov edx, 0x6000
mov eax, ebx
and eax, edx
cmp eax, edx
jne 0x41930b
mov eax, 0xa0020005
jmp 0x41949c
push ecx
push ecx
push ecx
mov ecx, dword [ebp + 8]
mov edx, 0x80000000
push 3
call fcn.0041769b
mov esi, eax
add esp, 0x10
mov dword [esp + 0x1c], esi
test esi, esi
jne 0x419336
call fcn.0044bc4b
mov ebx, eax
jmp 0x41948c
push edi
lea ecx, [esp + 0x10]
call fcn.0043b487
mov edi, dword [esp + 0xc]
lea ecx, [esp + 0xc]
mov eax, dword [edi - 0xc]
dec eax
push eax
call fcn.0043a8ec
push 0x5c
pop ecx
cmp ax, cx
je 0x419368
push ecx
lea ecx, [esp + 0x10]
call fcn.0043b93f
mov edi, dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0x20], eax
mov eax, dword [edi - 0xc]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x2c], eax
mov eax, 0x41a0d3
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
inc eax
push eax
push esi
call dword [sym.imp.WIMGAPI.DLL_WIMLoadImage]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4193b0
call fcn.0044bc4b
mov ebx, eax
jmp 0x419484
test ebx, 0x4000
je 0x4193c3
mov eax, 0x41880e
mov dword [esp + 0x10], eax
jmp 0x4193ff
test ebx, 0x2000
je 0x4193fa
push 0x230
lea eax, [esp + 0x34]
push eax
push esi
call dword [sym.imp.WIMGAPI.DLL_WIMGetAttributes]
cmp dword [esp + 0x24c], 3
je 0x4193f0
cmp dword [esp + 0x24c], 0
jne 0x4193b8
mov ebx, 0x80004002
jmp 0x41947a
mov eax, 0x41a0d3
lea ecx, [esp + 0x20]
push ecx
push eax
push esi
call dword [sym.imp.WIMGAPI.DLL_WIMRegisterMessageCallback]
mov ecx, dword [esp + 0x14]
mov eax, ebx
and eax, 0xfffffff
mov edx, edi
push eax
call fcn.00419242
test eax, eax
jne 0x41942c
call fcn.0044bc4b
mov ebx, eax
jmp 0x41946e
push str.Windows_bootstat.dat
lea edx, [esp + 0x10]
lea ecx, [esp + 0x1c]
call fcn.0043ab55
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.0043c924
push ecx
lea ecx, [edi - 0x10]
mov ebx, esp
call fcn.0043baa0
mov ecx, dword [ebp + 0x10]
add eax, 0x10
mov dword [ebx], eax
call fcn.00419061
pop ecx
xor ebx, ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call dword [sym.imp.WIMGAPI.DLL_WIMUnregisterMessageCallback]
push dword [esp + 0x14]
call dword [sym.imp.WIMGAPI.DLL_WIMCloseHandle]
lea ecx, [edi - 0x10]
call fcn.0043c924
lea ecx, [esp + 0x1c]
call fcn.00438772
mov eax, ebx
jmp 0x41949c
push 2
pop eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x419f20
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push ebx
push esi
push edi
push eax
mov ebx, edx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.00438546
pop ecx
call fcn.0043c5cd
push eax
lea ecx, [ebp - 4]
call fcn.0043ac50
push 4
mov edx, str.WINDOWS
mov ecx, esi
call fcn.004385f1
lea ecx, [ebx + 0x218]
mov esi, eax
push ecx
mov edx, str.EDITIONID
mov ecx, esi
call fcn.00438709
lea ecx, [ebx + 0x418]
mov edx, str.INSTALLATIONTYPE
push ecx
mov ecx, esi
call fcn.00438709
mov eax, dword [ebx + 0xc]
add esp, 0xc
sub eax, 1
je 0x419faa
sub eax, 1
je 0x419fa3
sub eax, 1
jne 0x419fbc
push str.ServerNT
jmp 0x419faf
push str.LanmanNT
jmp 0x419faf
push str.WinNT
mov edx, str.PRODUCTTYPE
mov ecx, esi
call fcn.00438709
pop ecx
push 0x486104
mov edx, str.PRODUCTSUITE
mov ecx, esi
call fcn.00438709
push 2
mov edx, str.LANGUAGES
mov ecx, esi
call fcn.004385f1
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41a0c1
mov eax, 0x104
lea ecx, [ebp - 4]
push eax
push eax
call fcn.0043c822
push eax
push 0x5c
push dword [ebx + 0x46c]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41a078
mov esi, dword [ebp - 4]
cmp dword [esi - 4], 1
jle 0x41a020
push dword [esi - 0xc]
lea ecx, [ebp - 4]
call fcn.0043c727
mov esi, dword [ebp - 4]
push esi
mov edx, str.LANGUAGE
mov ecx, edi
call fcn.00438709
lea eax, [ebx + 0x470]
mov edx, str.FALLBACK
push eax
mov ecx, edi
call fcn.00438709
mov dword [ebp - 8], eax
pop ecx
pop ecx
test eax, eax
je 0x41a078
push ecx
push dword [esi - 0xc]
mov ecx, dword [eax + 0x14]
push dword [esi - 0xc]
add ecx, 0x34
push esi
call fcn.004386b5
mov esi, dword [ebp - 8]
push eax
push str.LANGUAGE
mov ecx, dword [esi + 0x14]
add ecx, 0x34
call fcn.00438e28
push eax
mov ecx, esi
call fcn.00437a99
mov eax, 0x104
lea ecx, [ebp - 4]
push eax
push eax
call fcn.0043c822
push eax
push 0x5c
push dword [ebx + 0x468]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41a0c1
mov esi, dword [ebp - 4]
cmp dword [esi - 4], 1
jle 0x41a0b1
push dword [esi - 0xc]
lea ecx, [ebp - 4]
call fcn.0043c727
mov esi, dword [ebp - 4]
push esi
mov edx, str.DEFAULT
mov ecx, edi
call fcn.00438709
pop ecx
jmp 0x41a0c4
mov esi, dword [ebp - 4]
lea ecx, [esi - 0x10]
call fcn.0043c924
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x41b783
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x41b94c
xor edi, edi
cmp word [esi], di
je 0x41b94c
push ebx
call fcn.0043c5cd
push eax
lea ecx, [ebp + 8]
call fcn.0043ac50
lea edx, [ebp + 8]
mov ecx, esi
call fcn.0044bb25
mov esi, dword [ebp + 8]
test eax, eax
jne 0x41b93f
mov eax, dword [esi - 0xc]
lea ecx, [ebp + 8]
dec eax
push eax
call fcn.0043a8ec
push 0x5c
pop ebx
cmp ax, bx
jne 0x41b7ea
mov eax, dword [esi - 0xc]
lea ecx, [ebp + 8]
dec eax
push eax
call fcn.0043c894
mov ecx, esi
call fcn.004125c5
test eax, eax
je 0x41b7fd
xor edi, edi
inc edi
jmp 0x41b93f
push 0x2f
push ebx
lea ecx, [ebp + 8]
call fcn.0043ba25
lea eax, [ebp + 8]
mov edx, str.bf1a281b_ad7b_4476_ac95_f47682990ce7
push eax
lea ecx, [ebp - 8]
call fcn.00430fb9
pop ecx
push eax
lea ecx, [ebp + 8]
call fcn.0043b599
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.0043c924
push str._Users_default_ntuser.dat
lea edx, [ebp + 8]
lea ecx, [ebp - 8]
call fcn.0043ab55
mov ebx, dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
mov esi, 0x80000002
pop ecx
push dword [eax]
push esi
call ebx
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.0043c924
push str._Boot_BCD
lea edx, [ebp + 8]
lea ecx, [ebp - 8]
call fcn.0043ab55
pop ecx
push dword [eax]
push esi
call ebx
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.0043c924
mov esi, str._Windows_System32_
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
push eax
push esi
lea ecx, [ebp + 8]
call fcn.0043b96c
push edi
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push edi
push edi
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [ebp - 4]
xor edi, edi
mov esi, dword [ebp + 8]
dec eax
inc edi
jmp 0x41b933
push 0x103
lea ecx, [ebp - 0x210]
push ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x41b92f
push dword [esi - 0xc]
lea eax, [ebp - 0x210]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x41b92f
lea eax, [ebp - 0x210]
push eax
push 0x80000002
call ebx
test eax, eax
je 0x41b92f
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp + 8]
push 0x493c2c
push eax
call fcn.00449eea
add esp, 0x10
push dword [eax]
push str.kb__
push edi
call dword [sym.imp.CBSHost.dll_DismWriteLog]
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0043c924
mov eax, dword [ebp - 4]
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x41b8ba
lea ecx, [esi - 0x10]
call fcn.0043c924
mov eax, edi
pop ebx
jmp 0x41b94e
xor eax, eax
pop edi
pop esi
leave
ret 4
Function at 0x41ba22
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x41ba6a
push edi
push edi
push 0x12
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push 0x4e20
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, 0x102
cmp eax, ecx
jne 0x41ba5b
push ecx
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
pop edi
pop esi
ret
Function at 0x41c155
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push dword [ebp + 8]
mov edi, edx
mov dword [ebp - 4], ecx
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x200
push eax
lea ebx, [esi + 0x20c]
push ebx
push 0
push 0
push str.DisplayName
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0x40
pop ecx
test eax, eax
jne 0x41c1b6
cmp word [ebx], cx
jne 0x41c1ab
mov ecx, dword [ebp - 4]
mov edx, ebx
call fcn.0041c00f
jmp 0x41c1b6
cmp dword [esi], 0
jne 0x41c1b6
mov dword [esi], 1
and dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
push eax
mov edx, str.LaunchProtected
mov ecx, edi
call fcn.0044cc98
pop ecx
test eax, eax
jne 0x41c1d4
cmp dword [ebp + 0xc], eax
jne 0x41c1df
mov ecx, edi
call fcn.00413cf2
test eax, eax
jne 0x41c1e3
or dword [esi + 8], 1
xor ecx, ecx
lea eax, [ebp + 8]
push eax
push ecx
push ecx
push ecx
push str.Group
push edi
mov dword [ebp + 8], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41c203
or dword [esi + 8], 2
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x400
push eax
lea ebx, [esi + 0x40c]
push ebx
push 0
push 0
push str.Description
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41c23f
push 0x40
pop eax
cmp word [ebx], ax
jne 0x41c23f
mov ecx, dword [ebp - 4]
mov edx, ebx
or dword [esi + 8], 4
call fcn.0041c00f
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp + 8]
push eax
lea eax, [esi + 0x80c]
mov dword [ebp + 8], 0x208
push eax
push 0
push 0
push str.ImagePath
push edi
call ebx
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x200
push eax
lea eax, [esi + 0xa14]
push eax
push 0
push 0
push str.ObjectName
push edi
call ebx
add esi, 4
mov edx, str.Start
push esi
mov ecx, edi
and dword [esi], 0
call fcn.0044cc98
cmp dword [esi], 2
pop ecx
jne 0x41c2ba
lea eax, [ebp - 4]
mov edx, str.DelayedAutoStart
push eax
mov ecx, edi
call fcn.0044cc98
pop ecx
test eax, eax
jne 0x41c2ba
cmp dword [ebp - 4], eax
je 0x41c2ba
mov dword [esi], 5
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 8