joyce8/EMBER2024-capa huggingface dataset:
Function at 0x484344
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa8], 0
je 0x4843af
cmp byte [ebx + 0xcf], 0
jne 0x4843af
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406328
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x48439c
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4843bc
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.004061ec
jmp 0x4843bc
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.004061ec
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x485968
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x80]
test esi, esi
je 0x4859d6
mov eax, esi
call fcn.0046c270
test al, al
je 0x4859d6
mov eax, dword [ebx + 0x80]
call fcn.0046bec4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4859d6
mov eax, dword [ebx + 0x80]
mov edx, dword [eax]
call dword [edx + 0xec]
test al, al
je 0x4859ca
push 0
mov eax, dword [ebx + 0x80]
call fcn.0046bec4
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x80]
call fcn.004633fc
jmp 0x4859d6
mov cl, 1
mov edx, dword [ebx + 0x70]
mov eax, ebx
call fcn.004857b4
pop esi
pop ebx
ret
Function at 0x486d38
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb4
xor eax, eax
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x24c], eax
xor eax, eax
push ebp
push 0x486ec4
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
xor edx, edx
mov eax, 2
call fcn.00486bdc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x486ea6
xor eax, eax
push ebp
push 0x486e9f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x244]
xor ecx, ecx
mov edx, 0x22c
call fcn.00403678
mov dword [ebp - 0x244], 0x22c
lea edx, [ebp - 0x244]
mov eax, dword [ebp - 8]
call fcn.00486bfc
mov dword [ebp - 0xc], eax
jmp 0x486e7e
lea eax, [ebp - 0x24c]
lea edx, [ebp - 0x220]
mov ecx, 0x104
call fcn.004063ec
mov eax, dword [ebp - 0x24c]
lea edx, [ebp - 0x248]
call fcn.0040dc74
mov edx, dword [ebp - 0x248]
mov eax, 0x486ee0
call fcn.0040c87c
test al, al
je 0x486e6d
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x23c]
push eax
call sub.Kernel32.dll_ProcessIdToSessionId
test eax, eax
je 0x486e6d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 8
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [0x563430]
push eax
call sub.wtsapi32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x486e6d
xor eax, eax
push ebp
push 0x486e66
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
cmp byte [eax], 0
jne 0x486e4f
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
call fcn.00404d38
call fcn.00404d38
jmp 0x486ea6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x486e6d
mov eax, dword [ebp - 0x14]
push eax
call sub.wtsapi32.dll_WTSFreeMemory
ret
lea edx, [ebp - 0x244]
mov eax, dword [ebp - 8]
call fcn.00486c1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x486dbb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x486ea6
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x486ecb
lea eax, [ebp - 0x24c]
mov edx, 2
call fcn.004061e4
ret
Function at 0x486e6d
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb4
xor eax, eax
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x24c], eax
xor eax, eax
push ebp
push 0x486ec4
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
xor edx, edx
mov eax, 2
call fcn.00486bdc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x486ea6
xor eax, eax
push ebp
push 0x486e9f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x244]
xor ecx, ecx
mov edx, 0x22c
call fcn.00403678
mov dword [ebp - 0x244], 0x22c
lea edx, [ebp - 0x244]
mov eax, dword [ebp - 8]
call fcn.00486bfc
mov dword [ebp - 0xc], eax
jmp 0x486e7e
lea eax, [ebp - 0x24c]
lea edx, [ebp - 0x220]
mov ecx, 0x104
call fcn.004063ec
mov eax, dword [ebp - 0x24c]
lea edx, [ebp - 0x248]
call fcn.0040dc74
mov edx, dword [ebp - 0x248]
mov eax, 0x486ee0
call fcn.0040c87c
test al, al
je 0x486e6d
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x23c]
push eax
call sub.Kernel32.dll_ProcessIdToSessionId
test eax, eax
je 0x486e6d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 8
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [0x563430]
push eax
call sub.wtsapi32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x486e6d
xor eax, eax
push ebp
push 0x486e66
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
cmp byte [eax], 0
jne 0x486e4f
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
call fcn.00404d38
call fcn.00404d38
jmp 0x486ea6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x486e6d
mov eax, dword [ebp - 0x14]
push eax
call sub.wtsapi32.dll_WTSFreeMemory
ret
lea edx, [ebp - 0x244]
mov eax, dword [ebp - 8]
call fcn.00486c1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x486dbb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x486ea6
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x486ecb
lea eax, [ebp - 0x24c]
mov edx, 2
call fcn.004061e4
ret
Function at 0x486efc
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
cmp dword [0x563434], 0
je 0x486f16
call dword [0x563434]
mov dword [ebp - 4], eax
jmp 0x486f1b
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x486f89
cmp dword [ebp - 4], 0xffffffff
je 0x486f89
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 8
mov eax, dword [ebp - 4]
push eax
mov eax, dword [0x563430]
push eax
call sub.wtsapi32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x486f84
xor eax, eax
push ebp
push 0x486f7d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
cmp byte [eax], 0
jne 0x486f61
call fcn.00404d38
jmp 0x486f9d
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x486f89
mov eax, dword [ebp - 8]
push eax
call sub.wtsapi32.dll_WTSFreeMemory
ret
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x486f95
cmp dword [ebp - 4], 0xffffffff
jne 0x486f9d
call fcn.00486d38
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x487438
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7dc
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004061d4
xor eax, eax
push ebp
push 0x487546
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.004061ec
mov edx, dword [ebp - 4]
mov eax, 0x487560
call fcn.00487130
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x487438
xor eax, eax
push ebp
push 0x487431
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
call fcn.0048757c
test al, al
je 0x487410
call fcn.00404d38
jmp 0x487530
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.004061ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487438
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov dword [ebp - 0x10], 0x802
lea eax, [ebp - 0x822]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
call fcn.00403678
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x822]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00406278
push eax
push 0
call sub.advapi32.dll_LookupAccountNameW
cmp dword [ebp - 0x14], 0
jbe 0x487530
mov eax, dword [ebp - 0x14]
call fcn.00403054
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x487529
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov edx, dword [ebp - 0x14]
call fcn.00403678
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x822]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
call fcn.00406278
push eax
push 0
call sub.advapi32.dll_LookupAccountNameW
test eax, eax
jne 0x4874eb
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
call fcn.00403070
xor eax, eax
mov dword [ebp - 0x1c], eax
call fcn.00404d38
jmp 0x487530
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_ConvertSidToStringSidW
test eax, eax
je 0x487510
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.00406398
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LocalFree
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487530
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
call fcn.00403070
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48754d
lea eax, [ebp - 4]
call fcn.004061dc
ret
Function at 0x487890
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.004061ec
cmp byte [0x56f228], 0
je 0x4878cd
xor eax, eax
call fcn.00487328
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x487940
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.00487960
jmp 0x487940
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 5
call fcn.00486efc
push eax
mov eax, dword [0x563430]
push eax
call sub.wtsapi32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x48791d
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00406398
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 0x487950
call fcn.0040c87c
test al, al
je 0x487914
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.004061ec
mov eax, dword [ebp - 8]
push eax
call sub.wtsapi32.dll_WTSFreeMemory
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x487940
xor eax, eax
call fcn.00487328
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x487940
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.00487960
mov esp, ebp
pop ebp
ret
Function at 0x489064
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x4892e2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00406240
lea eax, [ebp - 0x130]
xor ecx, ecx
mov edx, 0x11c
call fcn.00403678
mov dword [ebp - 0x130], 0x11c
lea eax, [ebp - 0x130]
push eax
call sub.kernel32.dll_GetVersionExW
lea eax, [ebp - 0x154]
xor ecx, ecx
mov edx, 0x24
call fcn.00403678
push 0x4892f0
push 0x489318
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.00409194
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4890f4
lea eax, [ebp - 0x154]
push eax
call dword [ebp - 0x10]
jmp 0x489100
lea eax, [ebp - 0x154]
push eax
call sub.kernel32.dll_GetSystemInfo_1
cmp dword [ebp - 0x120], 2
jne 0x4892c1
cmp byte [ebp - 1], 0
je 0x48913e
call fcn.00489490
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x12c]
add eax, 0xfffffffd
sub eax, 2
jae 0x489159
lea eax, [ebp - 0xc]
mov edx, 0x489340
call fcn.00406240
cmp dword [ebp - 0x12c], 5
jne 0x48917d
cmp dword [ebp - 0x128], 0
jne 0x48917d
lea eax, [ebp - 0xc]
mov edx, 0x489364
call fcn.00406240
jmp 0x4892c1
cmp dword [ebp - 0x12c], 5
jne 0x4891a1
cmp dword [ebp - 0x128], 1
jne 0x4891a1
lea eax, [ebp - 0xc]
mov edx, 0x48938c
call fcn.00406240
jmp 0x4892c1
cmp dword [ebp - 0x12c], 5
jne 0x4891e7
cmp dword [ebp - 0x128], 2
jne 0x4891e7
cmp byte [ebp - 0x16], 1
jne 0x4891d5
cmp word [ebp - 0x154], 9
jne 0x4891d5
lea eax, [ebp - 0xc]
mov edx, 0x48938c
call fcn.00406240
jmp 0x4892c1
lea eax, [ebp - 0xc]
mov edx, 0x4893b0
call fcn.00406240
jmp 0x4892c1
cmp dword [ebp - 0x12c], 6
jne 0x48920b
cmp dword [ebp - 0x128], 0
jne 0x48920b
lea eax, [ebp - 0xc]
mov edx, 0x4893e4
call fcn.00406240
jmp 0x4892c1
cmp dword [ebp - 0x12c], 6
jne 0x48922f
cmp dword [ebp - 0x128], 1
jne 0x48922f
lea eax, [ebp - 0xc]
mov edx, 0x48940c
call fcn.00406240
jmp 0x4892c1
cmp dword [ebp - 0x12c], 6
jne 0x489255
mov eax, dword [ebp - 0x128]
add eax, 0xfffffffe
sub eax, 2
jae 0x489255
lea eax, [ebp - 0xc]
mov edx, 0x48942c
call fcn.00406240
jmp 0x4892c1
cmp dword [ebp - 0x12c], 6
jne 0x489278
mov eax, dword [ebp - 0x128]
sub eax, 4
jne 0x489278
lea eax, [ebp - 0xc]
mov edx, 0x48944c
call fcn.00406240
jmp 0x4892c1
cmp dword [ebp - 0x12c], 0xa
jne 0x4892ab
cmp dword [ebp - 0x124], 0x55f0
jae 0x48929c
lea eax, [ebp - 0xc]
mov edx, 0x48944c
call fcn.00406240
jmp 0x4892c1
lea eax, [ebp - 0xc]
mov edx, 0x489470
call fcn.00406240
jmp 0x4892c1
cmp dword [ebp - 0x12c], 0xb
jb 0x4892c1
lea eax, [ebp - 0xc]
mov edx, 0x489470
call fcn.00406240
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.004061ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4892e9
lea eax, [ebp - 0xc]
call fcn.004061dc
ret
Function at 0x4896e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp byte [ebp + 8], 0
je 0x489718
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00406278
push eax
mov eax, dword [ebp - 4]
call fcn.00406278
push eax
push 0
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_ShellExecuteW
jmp 0x489739
push 1
push 0
mov eax, dword [ebp - 0xc]
call fcn.00406278
push eax
mov eax, dword [ebp - 4]
call fcn.00406278
push eax
push 0
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_ShellExecuteW
mov esp, ebp
pop ebp
ret 4

Function at 0x489c6c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
xor ecx, ecx
mov dword [ebp - 0x120], ecx
test dl, dl
je 0x489c89
add esp, 0xfffffff0
call fcn.00404290
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x489d39
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000001
mov eax, dword [ebp - 4]
call fcn.00489e1c
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0xf003f
mov eax, dword [ebp - 4]
mov byte [eax + 0xc], 1
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x1c], edx
mov dword [ebp - 0x11c], 0x114
lea eax, [ebp - 0x11c]
push eax
call sub.kernel32.dll_GetVersionExW
cmp dword [ebp - 0x118], 5
jne 0x489ceb
call fcn.00489814
test al, al
jne 0x489d19
cmp dword [ebp - 0x118], 5
ja 0x489d19
lea edx, [ebp - 0x120]
xor eax, eax
call fcn.00489064
mov eax, dword [ebp - 0x120]
mov edx, 0x489d6c
call fcn.0040c87c
test al, al
jne 0x489d19
xor eax, eax
jmp 0x489d1b
mov al, 1
mov byte [0x56f3d0], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x489d40
lea eax, [ebp - 0x120]
call fcn.004061dc
ret

Function at 0x48a0d8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov edx, 8
call fcn.00403678
mov eax, dword [ebp - 0xc]
add eax, 4
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00406278
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
sete byte [ebp - 0xd]
mov eax, dword [ebp - 0x14]
call fcn.00489c28
mov edx, dword [ebp - 0xc]
mov byte [edx], al
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret
Function at 0x48a210
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
xor ecx, ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48a3de
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
mov byte [ebp - 0x29], 0
lea eax, [ebp - 0x30]
xor edx, edx
call fcn.00406240
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00406278
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x48a384
cmp dword [ebp - 0x14], 4
jne 0x48a2f4
mov dword [ebp - 0x1c], 0xffffffff
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00406278
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x48a2d4
mov eax, dword [ebp - 0x1c]
cdq
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov byte [ebp - 0x29], 1
jmp 0x48a39f
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0x34]
call fcn.0040cee0
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x30]
mov edx, 0x48a3fc
call fcn.004066c0
jmp 0x48a39f
cmp dword [ebp - 0x14], 0xb
jne 0x48a363
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0x24], 0xffffffff
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00406278
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x48a346
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
mov byte [ebp - 0x29], 1
jmp 0x48a39f
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x34]
call fcn.0040cee0
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x30]
mov edx, 0x48a42c
call fcn.004066c0
jmp 0x48a39f
mov eax, dword [ebp - 0x14]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x44]
call fcn.0040d0ec
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x30]
mov edx, 0x48a45c
call fcn.004066c0
jmp 0x48a39f
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x34]
call fcn.0040cee0
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x30]
mov edx, 0x48a484
call fcn.004066c0
cmp byte [ebp - 0x29], 0
jne 0x48a3bb
lea eax, [ebp - 0x4c]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 8]
call fcn.004066c0
mov eax, dword [ebp - 0x4c]
call fcn.00489b1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48a3e5
lea eax, [ebp - 0x4c]
mov edx, 5
call fcn.004061e4
lea eax, [ebp - 0x30]
call fcn.004061dc
ret
Function at 0x48a4e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48a665
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 0xc]
mov al, byte [eax]
call fcn.00489bd8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
xor edx, edx
call fcn.004061ec
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1c], 0
jne 0x48a534
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
jmp 0x48a53d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov al, byte [eax]
dec eax
sub al, 2
jae 0x48a54b
add dword [ebp - 0x18], 2
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x48a4ac]
call fcn.00407c04
add esp, 4
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov edx, dword [ebp - 0x18]
call fcn.00403678
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00406278
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x48a5a9
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00406398
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x48a5c8
mov eax, dword [ebp - 0x24]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x802
jle 0x48a62f
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x48a5f0
mov eax, dword [ebp - 0x2c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
push 0x48a680
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x1c]
call fcn.0040cee0
push dword [ebp - 0x34]
push 0x48a6c0
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0x2c]
call fcn.0040cee0
push dword [ebp - 0x38]
lea eax, [ebp - 0x30]
mov edx, 4
call fcn.004067a4
mov eax, dword [ebp - 0x30]
xor ecx, ecx
mov dl, 1
call fcn.00489ad4
mov eax, dword [ebp - 0x14]
call fcn.00489c28
mov edx, dword [ebp + 0xc]
mov byte [edx], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48a66c
lea eax, [ebp - 0x38]
mov edx, 3
call fcn.004061e4
lea eax, [ebp - 0x10]
mov edx, dword [0x48a4ac]
call fcn.00407c10
ret
Function at 0x493408
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
dec eax
test eax, eax
jl 0x493488
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x10]
and eax, 0xff
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
movzx edx, byte [edx + ecx]
xor eax, edx
mov edx, dword [eax*8 + 0x563a5c]
mov eax, dword [eax*8 + 0x563a58]
push edx
push eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
shrd eax, edx, 8
shr edx, 8
xor eax, dword [esp]
xor edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
inc dword [ebp - 0x14]
dec dword [ebp - 0x18]
jne 0x493433
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8

Function at 0x493494
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jl 0x4934e8
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
movzx eax, byte [eax + edx]
xor eax, dword [ebp - 0x10]
and eax, 0xff
mov eax, dword [eax*4 + 0x563658]
mov edx, dword [ebp - 0x10]
shr edx, 8
xor eax, edx
mov dword [ebp - 0x10], eax
inc dword [ebp - 0x14]
dec dword [ebp - 0x18]
jne 0x4934bc
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret