joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405b98
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x1044
push edi
call fcn.0040c6cf
mov esi, eax
xor ebx, ebx
cmp esi, ebx
pop ecx
jne 0x405bbc
mov eax, 0xffffd121
jmp 0x405c5c
push edi
push ebx
push esi
call fcn.0040a340
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x18]
add esp, 0xc
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x20]
push 1
mov dword [esi + 0x81c], eax
mov eax, dword [ebp + 0x24]
push ebx
push ebx
mov dword [esi + 4], edi
mov dword [esi + 0x1020], eax
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push ebx
mov dword [esi + 0x102c], eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push esi
push 0x405802
push edi
push 0x3fc
mov dword [esi + 0x1040], eax
push dword [0x420c4c]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push 0xffffffffffffffff
push dword [esi + 0x102c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x102c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esi + 0x1034]
push esi
call fcn.0040a2a3
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x405c61
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [ebp + 0x24], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 4], eax
je 0x405d02
push ebx
push esi
mov esi, dword [ebp + 0x20]
push edi
mov edi, dword [ebp + 0x1c]
push 4
pop ebx
dec dword [ebp + 0x24]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [0x41a47c]
mov eax, dword [edi]
mov ecx, dword [ebp - 0x20]
xor ecx, eax
mov dword [esi], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
add edi, ebx
mov eax, dword [edi]
xor ecx, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
add esi, ebx
mov dword [esi], ecx
add esi, ebx
add edi, ebx
call dword [0x41a47c]
mov eax, dword [edi]
mov ecx, dword [ebp - 0x18]
xor ecx, eax
mov dword [esi], ecx
mov ecx, dword [ebp - 0x14]
add edi, ebx
mov dword [ebp - 8], eax
mov eax, dword [edi]
add esi, ebx
xor ecx, eax
mov dword [esi], ecx
add esp, 0x18
add esi, ebx
add edi, ebx
cmp dword [ebp + 0x24], 0
mov dword [ebp - 4], eax
jne 0x405c91
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405da6
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x405db6
push 5
jmp 0x405db8
push 0
push 0x3eb
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x406d4b
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
and dword [esp], 0
push ebx
push ebp
push esi
push edi
push 2
pop ebp
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x406d6f
push 3
pop ebp
mov dword [esp + 0x10], 1
mov ebx, dword [esp + 0x18]
mov edi, dword [sym.imp.USER32.dll_GetWindow]
push ebp
push ebx
call edi
mov esi, eax
test esi, esi
jne 0x406d90
push dword [esp + 0x10]
push ebx
call edi
mov esi, eax
test esi, esi
je 0x406dbc
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x10000
je 0x406dab
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x406db5
cmp esi, dword [esp + 0x18]
mov ebx, esi
jne 0x406d79
jmp 0x406dbc
push esi
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x407763
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0xffffffffffffffeb
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov esi, eax
xor ecx, ecx
cmp esi, ecx
je 0x4077e4
cmp dword [esi + 0x620], ecx
jle 0x40779b
lea eax, [esi + 0x1c]
mov dx, word [eax + 0x404]
xor word [eax], dx
inc ecx
inc eax
inc eax
cmp ecx, dword [esi + 0x620]
jl 0x407786
push ebx
mov ebx, dword [ebp + 0xc]
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
lea edi, [esi + 0x1c]
push ebx
push dword [esi + 0x620]
push edi
call fcn.00404cd8
xor ecx, ecx
add esp, 0x14
cmp dword [esi + 0x620], ecx
jle 0x4077db
mov eax, edi
mov dx, word [eax + 0x404]
xor word [eax], dx
inc ecx
inc eax
inc eax
cmp ecx, dword [esi + 0x620]
jl 0x4077c6
mov eax, dword [ebp - 4]
pop edi
mov byte [eax + ebx], 0
pop ebx
pop esi
leave
ret

Function at 0x4077e7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0xffffffffffffffeb
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov esi, eax
test esi, esi
je 0x40785f
xor ecx, ecx
cmp dword [esi + 0x620], ecx
jle 0x40781f
lea eax, [esi + 0x1c]
mov dx, word [eax + 0x404]
xor word [eax], dx
inc ecx
inc eax
inc eax
cmp ecx, dword [esi + 0x620]
jl 0x40780a
push edi
lea eax, [ebp - 4]
push eax
push 0
push 0
push dword [esi + 0x620]
lea edi, [esi + 0x1c]
push edi
call fcn.00404cd8
xor ecx, ecx
add esp, 0x14
cmp dword [esi + 0x620], ecx
jle 0x40785b
mov eax, edi
mov dx, word [eax + 0x404]
xor word [eax], dx
inc ecx
inc eax
inc eax
cmp ecx, dword [esi + 0x620]
jl 0x407846
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
Function at 0x409ed3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41f174]
jne 0x409edd
repz ret
jmp fcn.0040d654

Function at 0x4145b1
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004128c0
xor ebx, ebx
cmp dword [0x420b5c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x414686
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4145f1
xor eax, eax
jmp 0x41474a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41c7a0
push edi
call esi
cmp eax, ebx
je 0x4145ea
push eax
call fcn.0041285d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x420b5c], eax
call esi
push eax
call fcn.0041285d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x420b60], eax
call esi
push eax
call fcn.0041285d
mov dword [0x420b64], eax
lea eax, [ebp - 8]
push eax
call fcn.0041046a
test eax, eax
pop ecx
pop ecx
je 0x414654
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040d762
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x414686
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0041285d
cmp eax, ebx
pop ecx
mov dword [0x420b6c], eax
je 0x414686
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041285d
pop ecx
mov dword [0x420b68], eax
mov eax, dword [0x420b68]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4146ff
cmp dword [0x420b6c], esi
je 0x4146ff
push eax
call fcn.004128c9
pop ecx
call eax
cmp eax, ebx
je 0x4146cc
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x420b6c]
call fcn.004128c9
pop ecx
call eax
test eax, eax
je 0x4146cc
test byte [ebp - 0x18], 1
jne 0x4146ff
lea eax, [ebp - 0xc]
push eax
call fcn.004104a1
test eax, eax
pop ecx
je 0x4146e7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040d762
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4146f6
or dword [ebp + 0x10], 0x200000
jmp 0x414730
or dword [ebp + 0x10], 0x40000
jmp 0x414730
mov eax, dword [0x420b60]
cmp eax, esi
je 0x414730
push eax
call fcn.004128c9
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x414730
mov eax, dword [0x420b64]
cmp eax, esi
je 0x414730
push dword [ebp - 4]
push eax
call fcn.004128c9
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x420b5c]
call fcn.004128c9
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4039dd
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
and dword [esp + 4], 0
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], edi
mov eax, dword [edi]
mov ebx, dword [edi + 4]
mov dword [esp + 0x18], eax
mov eax, dword [esi]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x2c], eax
call fcn.004030bd
mov ebp, dword [esp + 0x14]
mov eax, dword [esi + 0xc]
add ebp, 0x23f
mov edi, dword [esi + 8]
push 0x20
mov dword [esp + 0x28], eax
pop esi
mov dword [esp + 0x1c], 2
add dword [esp + 0x1c], 3
mov edx, dword [esp + 0x18]
mov eax, edx
shl eax, 4
add eax, edi
mov dword [esp + 0x20], 0xedeb2e40
cmp dword [0x67d804], 0xfa9
mov dword [esp + 0x10], eax
lea ecx, [edx + ebp]
mov eax, dword [0x67d848]
cmove eax, dword [esp + 0x20]
and dword [esp + 0x20], 0
cmp dword [0x67d804], 0x3eb
mov dword [0x67d848], eax
mov eax, dword [0x67d850]
cmove eax, dword [esp + 0x20]
mov dword [0x67d850], eax
mov eax, dword [esp + 0x18]
shr eax, 5
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x24]
xor eax, ecx
mov dword [0x67d84c], 0xf4ea3dee
xor eax, dword [esp + 0x10]
sub ebx, eax
mov dword [esp + 0x14], eax
mov eax, ebx
shl eax, 4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
add dword [esp + 0x10], eax
mov eax, ebx
shr eax, 5
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
add dword [esp + 0x14], eax
lea eax, [ebx + ebp]
xor eax, dword [esp + 0x14]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sub dword [esp + 0x18], eax
lea ebp, [ebp + 0x61c88647]
dec esi
jne 0x403a27
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
mov dword [edi + 4], ebx
mov dword [edi], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x413eff
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4470f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004079b6
mov dword [ebp - 0x14], eax
cmp dword [0x67e9d0], esi
jne 0x413ff2
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x413f7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4140d2
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4140d2
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4140d2
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x67e9d0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x67e9d4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x67e9d8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x67e9e0], eax
test eax, eax
je 0x413fef
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x67e9dc], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x414017
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41400a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x41402c
push 4
pop eax
jmp 0x4140d4
cmp dword [ebp - 0x14], esi
je 0x41402c
push dword [0x67e9d0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x414011
mov eax, dword [0x67e9dc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41408a
cmp dword [0x67e9e0], edi
je 0x41408a
push eax
call ebx
push dword [0x67e9e0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41408a
test eax, eax
je 0x41408a
call ecx
test eax, eax
je 0x41407f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41407f
test byte [ebp - 8], 1
jne 0x41408a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4140ba
mov eax, dword [0x67e9d4]
cmp eax, edi
je 0x4140b7
push eax
call ebx
test eax, eax
je 0x4140b7
call eax
mov esi, eax
test esi, esi
je 0x4140b7
mov eax, dword [0x67e9d8]
cmp eax, edi
je 0x4140b7
push eax
call ebx
test eax, eax
je 0x4140b7
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x67e9d0]
call ebx
test eax, eax
je 0x4140d2
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4140d4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406bf0
mov esp, ebp
pop ebp
ret
Function at 0x405420
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48ab28
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x4c4754]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x254], ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x254]
mov ecx, dword [eax]
mov dword [ebp - 0x240], ecx
mov dword [ebp - 0x234], 0
lea edx, [ebp - 0x234]
push edx
push 0x2001f
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x240]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0
jne 0x4054e1
mov dword [ebp - 0x23c], 0
cmp dword [ebp - 0x1c], 0
je 0x4054cc
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp - 0x234]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x238]
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 0
je 0x405532
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x228], eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x244], 0
cmp dword [ebp - 0x1c], 0
je 0x405527
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x228]
jmp 0x40563c
mov dword [ebp - 0x10], 0x100
lea edx, [ebp - 0x18]
push edx
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x224]
push ecx
push 0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4055c4
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00405420
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4055b8
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x248], 0
cmp dword [ebp - 0x1c], 0
je 0x4055ad
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x22c]
jmp 0x40563c
mov dword [ebp - 0x10], 0x100
jmp 0x405539
mov dword [ebp - 0x24c], 0
cmp dword [ebp - 0x1c], 0
je 0x4055eb
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x1c], 0
xor ecx, ecx
jne 0x4055eb
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x254]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x230], eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x250], 0
cmp dword [ebp - 0x1c], 0
je 0x405636
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.00466b32
mov esp, ebp
pop ebp
ret 4
Function at 0x463940
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
jmp 0x463958
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x100
jae 0x4639b0
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
jmp 0x463979
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 8
jge 0x4639a1
mov eax, dword [ebp - 8]
and eax, 1
je 0x463997
mov ecx, dword [ebp - 8]
shr ecx, 1
xor ecx, 0xedb88320
mov dword [ebp - 8], ecx
jmp 0x46399f
mov edx, dword [ebp - 8]
shr edx, 1
mov dword [ebp - 8], edx
jmp 0x463970
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [eax*4 + 0x4cc560], ecx
jmp 0x46394f
mov esp, ebp
pop ebp
ret

Function at 0x466455
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4c4754]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004663ea
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00466b50
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4664a4
cmp dword [ebp - 0x1c], 5
jb 0x4664bc
jmp 0x4664b8
cmp dword [ebp - 0x10], 1
jne 0x4664bc
cmp dword [ebp - 0x1c], 4
ja 0x4664b8
jne 0x4664bc
cmp dword [ebp - 0x18], 0
jbe 0x4664bc
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4bd07c
call fcn.00402600
test eax, eax
jge 0x4664dd
mov byte [0x4c5c60], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00466b32
add ebp, 0x78
leave
ret

Function at 0x46675c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4cc9f4], 0
push esi
jne 0x4666cf
call fcn.004665fa
test eax, eax
je 0x466712
mov eax, dword [0x4cc9f4]
cmp eax, 1
jne 0x4666f0
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x466712
pop esi
ret
push eax
call dword [0x4cc9fc]
test eax, eax
jne 0x46675a
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x466716
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4cc9f4]
call dword [0x4cc9fc]
mov edi, eax
test edi, edi
je 0x46673d
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x466759
lea edi, [esi + 0xff0]
push esi
push dword [0x4cc9f4]
call dword [0x4cc9f8]
add esi, 0x10
cmp esi, edi
jb 0x466743
mov eax, esi
pop edi
pop esi
ret
jmp 0x4666bc

Function at 0x466b32
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c4754]
jne 0x466b3c
repz ret
jmp fcn.0046d8dc
Function at 0x4767bc
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0046d3a9
xor ebx, ebx
cmp dword [0x4cd58c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x476892
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x476972
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4be1e4
push edi
call esi
cmp eax, ebx
je 0x476972
push eax
call fcn.0046d33b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4cd58c], eax
call esi
push eax
call fcn.0046d33b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4cd590], eax
call esi
push eax
call fcn.0046d33b
mov dword [0x4cd594], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0046a77d
test eax, eax
pop ecx
pop ecx
je 0x476860
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0046e968
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x476892
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0046d33b
cmp eax, ebx
pop ecx
mov dword [0x4cd59c], eax
je 0x476892
push 0x4be18c
push edi
call esi
push eax
call fcn.0046d33b
pop ecx
mov dword [0x4cd598], eax
mov eax, dword [0x4cd598]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x476917
cmp dword [0x4cd59c], ecx
je 0x476917
push eax
call fcn.0046d3b2
push dword [0x4cd59c]
mov esi, eax
call fcn.0046d3b2
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x476917
cmp edi, ebx
je 0x476917
call esi
cmp eax, ebx
je 0x4768e4
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4768e4
test byte [ebp - 0x18], 1
jne 0x476917
lea eax, [ebp - 0x10]
push eax
call fcn.0046a7b4
test eax, eax
pop ecx
je 0x4768ff
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0046e968
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x47690e
or dword [ebp + 0x10], 0x200000
jmp 0x476952
or dword [ebp + 0x10], 0x40000
jmp 0x476952
mov eax, dword [0x4cd590]
cmp eax, dword [ebp - 8]
je 0x476952
push eax
call fcn.0046d3b2
cmp eax, ebx
pop ecx
je 0x476952
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x476952
mov eax, dword [0x4cd594]
cmp eax, dword [ebp - 8]
je 0x476952
push eax
call fcn.0046d3b2
cmp eax, ebx
pop ecx
je 0x476952
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4cd58c]
call fcn.0046d3b2
cmp eax, ebx
pop ecx
je 0x476972
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x476974
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx