joyce8/EMBER2024-capa huggingface dataset:
Function at 0x485b90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, ecx
mov dword [edi], 0
mov eax, dword [esi + 0xa8]
cmp eax, 0x12
je 0x485bc9
cmp eax, 0x79
jne 0x485bbc
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test al, al
jns 0x485bc9
cmp dword [esi + 0xa8], 0x20
jne 0x485c49
cmp dword [ebp + 0xc], 0xf100
jne 0x485c49
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [esi + 4]
jne 0x485c06
mov ecx, esi
call fcn.00484f20
mov eax, dword [esi + 4]
push 0
push 0xffffffffffffffff
push 0x448
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
and byte [esi + 0x84], 0xbf
pop edi
xor eax, eax
pop esi
pop ebp
ret 0x10
mov eax, dword [esi + 0xa8]
cmp eax, 0x20
je 0x485c49
test byte [esi + 0x84], 0x40
jne 0x485c3e
mov al, byte [esi + 0x85]
test al, 2
je 0x485c35
test al, 4
jne 0x485c35
test al, 8
je 0x485c35
push 1
mov ecx, esi
call fcn.00483ff0
mov ecx, esi
call fcn.00483840
jmp 0x485c43
cmp eax, 0x20
je 0x485c49
mov dword [edi], 1
and byte [esi + 0x84], 0xbf
pop edi
xor eax, eax
pop esi
pop ebp
ret 0x10

Function at 0x487570
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
push esi
mov esi, ecx
cmp eax, dword [esi + 4]
je 0x487595
mov ecx, dword [ebp + 0x10]
pop esi
mov dword [ecx], 0
mov eax, 1
pop ebx
pop ebp
ret 0xc
push edi
mov edi, dword [sym.imp.USER32.dll_GetFocus]
call edi
cmp eax, dword [esi + 4]
je 0x4875c4
test byte [esi + 0x58], 4
je 0x4875ba
cmp dword [esi + 0xac], 0
jne 0x4875ba
call edi
mov dword [esi + 0xac], eax
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebx + 0xc]
push 0
push eax
mov eax, dword [esi + 4]
push 0x419
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
and byte [esi + 0x84], 0xcf
push 1
push eax
mov ecx, esi
call fcn.00487220
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc
Function at 0x48b230
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
mov eax, dword [0x4ed310]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 8]
push esi
mov esi, ecx
cmp al, 0x64
jbe 0x48b24f
mov al, 0x64
mov cl, byte [esi + 0x2c0]
cmp cl, al
jbe 0x48b263
test al, al
jne 0x48b323
cmp cl, al
je 0x48b323
push ebx
push edi
movzx edi, al
push 0
push edi
push 0x402
mov byte [esi + 0x2c0], al
mov eax, dword [esi - 0x1c]
lea ebx, [esi - 0x1c]
push 0x3e8
push eax
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push edi
push 0x89
call fcn.004966e0
add esp, 4
push eax
lea ecx, [ebp - 0x44]
push 0x20
push ecx
call fcn.004342c0
add esp, 0x10
lea edx, [ebp - 0x44]
push edx
lea ecx, [esi + 0x234]
call fcn.00453b90
cmp byte [esi + 0x2b8], 0
jne 0x48b31c
cmp dword [esi + 0x2c4], 0
je 0x48b31c
mov ecx, dword [ebx]
push 0x40
lea eax, [ebp - 0xc4]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea edx, [ebp - 0xc4]
push edx
push edi
push str._d______s
lea eax, [ebp - 0x184]
push 0x60
push eax
call fcn.004342c0
add esp, 0x14
lea eax, [esi - 0x20]
neg eax
sbb eax, eax
and eax, ebx
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
lea edx, [ebp - 0x184]
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
call fcn.0043d600
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00499155
mov esp, ebp
pop ebp
ret 4

Function at 0x48b680
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
mov eax, dword [0x4ed310]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
cmp dword [ebx + 0x2c8], 0
jne 0x48b7cf
cmp dword [0x4efe18], 6
jne 0x48b7cf
cmp dword [0x4efe1c], 0
jne 0x48b7cf
cmp byte [0x4ef34e], 0
je 0x48b7cf
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.d3d8thk.dll
call edi
test eax, eax
je 0x48b7ce
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push eax
call esi
push str.d3d9.dll
call edi
test eax, eax
je 0x48b7cd
push eax
call esi
push str.d3dx9_32.dll
call edi
test eax, eax
je 0x48b7cd
push eax
call esi
push str.dwmapi.dll
call edi
test eax, eax
je 0x48b7cd
push eax
call esi
mov ecx, dword [ebx - 0x1c]
lea eax, [ebp - 0x31c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x31c]
mov edx, dword [ebp - 0x314]
mov ecx, dword [ebp - 0x318]
push 0x100
sub edx, eax
push edx
add ecx, 0xffffff19
push ecx
push eax
mov eax, dword [ebx - 0x1c]
cdq
push edx
push eax
lea edx, [ebp - 0x30c]
push str._host_I64x__dim_d__d__d__d
push edx
call fcn.00433830
add esp, 0x20
push 0x103
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00433e00
lea edx, [ebp - 0x20c]
push edx
call fcn.00433850
add esp, 8
push str.smoke.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0xa
push 0
lea ecx, [ebp - 0x30c]
push ecx
lea edx, [ebp - 0x20c]
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00499155
mov esp, ebp
pop ebp
ret
Function at 0x48b7e0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x2d4], 0
je 0x48b800
mov ecx, dword [esi + 0x2d4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 2
push 0x4d5468
call edx
mov eax, dword [esi + 4]
push 0x3fa
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret 0x10

Function at 0x48b870
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, ecx
mov eax, dword [esi + 4]
push 2
push eax
call edi
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x48b8d7
cmp byte [esi + 0x2d9], 0
je 0x48b8ad
mov ecx, dword [esi + 4]
push 0x34
push 1
push 0x10
push ecx
call fcn.00496770
add esp, 0x10
cmp eax, 7
je 0x48b8d7
mov ecx, dword [esi + 0x2d4]
mov byte [esi + 0x2da], 1
test ecx, ecx
je 0x48b8c3
call fcn.00406740
mov edx, dword [esi + 4]
push 0x3fa
push edx
call edi
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
mov eax, 1
pop esi
ret 0x10

Function at 0x48c4e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
test ecx, ecx
je 0x48c4f1
lea edi, [ecx - 0x224]
jmp 0x48c4f3
xor edi, edi
cmp byte [ecx + 0x1c], 0
mov esi, dword [ebp + 0xc]
je 0x48c52a
mov eax, dword [edi + 4]
push 0xe801
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp esi, 2
jne 0x48c51b
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x48c52f
test esi, esi
jne 0x48c52a
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x48c52f
cmp esi, 1
je 0x48c548
mov eax, dword [ebp + 0x10]
mov ecx, eax
shr ecx, 0x10
movsx edx, cx
cwde
push edx
push eax
lea ecx, [edi + 0x224]
call fcn.0048bed0
pop edi
xor eax, eax
pop esi
pop ebp
ret 0x10
Function at 0x4920f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
mov eax, dword [0x4ed310]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
cmp dword [ebx + 0x240], 0
jne 0x49223f
cmp dword [0x4efe18], 6
jne 0x49223f
cmp dword [0x4efe1c], 0
jne 0x49223f
cmp byte [0x4ef34e], 0
je 0x49223f
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.d3d8thk.dll
call edi
test eax, eax
je 0x49223e
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push eax
call esi
push str.d3d9.dll
call edi
test eax, eax
je 0x49223d
push eax
call esi
push str.d3dx9_32.dll
call edi
test eax, eax
je 0x49223d
push eax
call esi
push str.dwmapi.dll
call edi
test eax, eax
je 0x49223d
push eax
call esi
mov ecx, dword [ebx - 0x1c]
lea eax, [ebp - 0x31c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x31c]
mov edx, dword [ebp - 0x314]
mov ecx, dword [ebp - 0x318]
push 0x100
sub edx, eax
push edx
add ecx, 0xffffff19
push ecx
push eax
mov eax, dword [ebx - 0x1c]
cdq
push edx
push eax
lea edx, [ebp - 0x30c]
push str._host_I64x__dim_d__d__d__d
push edx
call fcn.00433830
add esp, 0x20
push 0x103
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00433e00
lea edx, [ebp - 0x20c]
push edx
call fcn.00433850
add esp, 8
push str.smoke.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0xa
push 0
lea ecx, [ebp - 0x30c]
push ecx
lea edx, [ebp - 0x20c]
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00499155
mov esp, ebp
pop ebp
ret

Function at 0x492250
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x254], 0
je 0x492270
mov ecx, dword [esi + 0x254]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 2
push 0x4d5468
call edx
mov eax, dword [esi + 4]
push 0x3fa
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret 0x10

Function at 0x4922e0
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, ecx
mov eax, dword [esi + 4]
push 2
push eax
call edi
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x492347
cmp byte [esi + 0x259], 0
je 0x49231d
mov ecx, dword [esi + 4]
push 0x34
push 1
push 0x10
push ecx
call fcn.00496770
add esp, 0x10
cmp eax, 7
je 0x492347
mov ecx, dword [esi + 0x254]
mov byte [esi + 0x25a], 1
test ecx, ecx
je 0x492333
call fcn.00406740
mov edx, dword [esi + 4]
push 0x3fa
push edx
call edi
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
mov eax, 1
pop esi
ret 0x10
Function at 0x493120
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
test ecx, ecx
je 0x493131
lea edi, [ecx - 0x22c]
jmp 0x493133
xor edi, edi
cmp byte [ecx + 0x1c], 0
mov esi, dword [ebp + 0xc]
je 0x49316a
mov eax, dword [edi + 4]
push 0xe801
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp esi, 2
jne 0x49315b
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x49316f
test esi, esi
jne 0x49316a
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x49316f
cmp esi, 1
je 0x493188
mov eax, dword [ebp + 0x10]
mov ecx, eax
shr ecx, 0x10
movsx edx, cx
cwde
push edx
push eax
lea ecx, [edi + 0x22c]
call fcn.00492b10
pop edi
xor eax, eax
pop esi
pop ebp
ret 0x10

Function at 0x4950b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x28
cmp word [eax + 0xc], 0x41
push ebx
mov ebx, ecx
jne 0x49514e
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x49514e
mov edx, dword [ebx + 0x30]
push esi
push edi
push 0
push 0
push 0x1004
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
xor esi, esi
test edi, edi
jle 0x49513a
mov ecx, dword [ebx + 0x30]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, 2
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
push eax
push esi
push 0x102b
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
inc esi
cmp esi, edi
jl 0x4950f6
mov edx, dword [ebp + 0x10]
pop edi
pop esi
mov dword [edx], 1
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x495880
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b9c48
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push esi
push edi
mov eax, dword [0x4ed310]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x38]
call fcn.00491950
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x38]
call fcn.00495230
cmp eax, 1
jne 0x4959f6
mov eax, dword [esi + 0x2c]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x147
push eax
call edi
mov ecx, dword [esi + 0x2c]
push 0
push eax
push 0x150
push ecx
call edi
mov edx, dword [esi + 4]
push 0
push edx
mov edi, eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [0x4ef2ac]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x495926
mov edx, dword [esi + 4]
mov ecx, dword [0x4ef2ac]
push eax
push edx
call fcn.00439170
mov eax, dword [0x4ef2ac]
mov ecx, dword [eax + 4]
push 1
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xa8
call fcn.004966e0
mov edx, dword [0x4ef2ac]
add esp, 4
push eax
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [0x4ef2ac]
call fcn.0048b010
mov ecx, dword [0x4ef2ac]
push 0x4efe40
call fcn.0048af00
mov ecx, dword [esi + 4]
push ecx
mov ecx, dword [0x4ef2ac]
call fcn.0048af10
call fcn.0043d600
mov ecx, dword [0x4ef2ac]
push edi
call fcn.0048cd60
mov edx, dword [0x4ef2ac]
mov edi, dword [edx + 0x20]
push 0x8a
call fcn.004966e0
mov ecx, dword [edi + 0xc]
push eax
mov eax, dword [0x4ef2ac]
add eax, 0x20
push eax
call ecx
add esp, 0xc
push 0x4e92f4
lea edx, [esi + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0x38]
call fcn.00491590
mov dword [esi + 0x240], eax
lea eax, [ebp - 0x10]
push eax
push 0
push esi
push 0x494770
push 0
push 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.00491900
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x495a30
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
mov esi, ecx
mov eax, dword [esi + 0x2c]
push 0x147
push eax
call edi
mov ecx, dword [esi + 0x2c]
push 0
push eax
push 0x150
push ecx
call edi
mov edx, dword [esi + 4]
push 0
push edx
mov edi, eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [0x4ef2ac]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x495a8c
mov edx, dword [esi + 4]
mov ecx, dword [0x4ef2ac]
push eax
push edx
call fcn.00439170
mov eax, dword [0x4ef2ac]
mov ecx, dword [eax + 4]
push 1
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xa9
call fcn.004966e0
mov edx, dword [0x4ef2ac]
add esp, 4
push eax
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [0x4ef2ac]
call fcn.0048b010
mov ecx, dword [0x4ef2ac]
push 0x4efe40
call fcn.0048af00
mov ecx, dword [esi + 4]
push ecx
mov ecx, dword [0x4ef2ac]
call fcn.0048af10
call fcn.0043d600
mov ecx, dword [0x4ef2ac]
push edi
call fcn.0048cd60
mov edx, dword [0x4ef2ac]
mov edi, dword [edx + 0x20]
push 0x8a
call fcn.004966e0
mov ecx, dword [edi + 0xc]
push eax
mov eax, dword [0x4ef2ac]
add eax, 0x20
push eax
call ecx
add esp, 0xc
lea edx, [ebp - 4]
push edx
push 0
push esi
push 0x494e60
push 0
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x14]
pop edi
mov dword [eax], 0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x497437
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4ed310]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SHChangeNotifyRegister
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x49750c
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4974fb
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x4974e5
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x4974fb
push eax
push edi
push dword [ebp - 0x110]
call fcn.004973d4
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x49750e
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00499155
leave
ret 4
Function at 0x4977b8
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4efffc], 0
push esi
push edi
jne 0x49772e
call fcn.0049769a
test eax, eax
je 0x497773
mov eax, dword [0x4efffc]
cmp eax, 1
jne 0x49774f
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x497773
jmp 0x4977b5
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x4977b5
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 0x497777
xor eax, eax
jmp 0x4977b5
mov eax, dword [esi]
push dword [0x4efffc]
call edi
mov edi, eax
test edi, edi
je 0x497799
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4977b5
lea edi, [esi + 0xff0]
push esi
push dword [0x4efffc]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x49779f
mov eax, esi
pop edi
pop esi
ret
jmp 0x49771a

Function at 0x499155
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ed310]
jne 0x49915f
repz ret
jmp fcn.004a107c
Function at 0x4b02ac
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4ed310]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004a0b1c
and dword [ebp - 0x14], 0
cmp dword [0x4f10ec], 0
mov dword [ebp - 0x18], eax
jne 0x4b035f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4b0407
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4cc8e4
push ebx
call edi
test eax, eax
je 0x4b0407
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4cc8d4
push ebx
mov dword [0x4f10ec], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4f10f0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4f10f4], eax
call edi
push eax
call esi
mov dword [0x4f10fc], eax
test eax, eax
je 0x4b035f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4f10f8], eax
mov eax, dword [0x4f10f8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4b03b8
cmp dword [0x4f10fc], ecx
je 0x4b03b8
push eax
call esi
push dword [0x4f10fc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4b03b8
test ebx, ebx
je 0x4b03b8
call edi
test eax, eax
je 0x4b03af
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4b03af
test byte [ebp - 8], 1
jne 0x4b03b8
or dword [ebp + 0x10], 0x200000
jmp 0x4b03eb
mov eax, dword [0x4f10f0]
cmp eax, dword [ebp - 0x18]
je 0x4b03eb
push eax
call esi
test eax, eax
je 0x4b03eb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4b03eb
mov eax, dword [0x4f10f4]
cmp eax, dword [ebp - 0x18]
je 0x4b03eb
push eax
call esi
test eax, eax
je 0x4b03eb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4f10ec]
call esi
test eax, eax
je 0x4b0407
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4b0409
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00499155
leave
ret
Function at 0x408ab0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov edx, dword [esp + 8]
mov dword [0x442298], edx
mov eax, 0xfffffd92
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
mov edx, ecx
and edx, 0x6c078965
mov esi, ecx
or ecx, 0x6c078965
imul ecx, edx
xor edx, 0x6c078965
and esi, 0x93f8769a
imul esi, edx
add ecx, esi
lea edx, [eax + ecx]
add edx, 0x26f
mov dword [eax*4 + 0x442c54], edx
test eax, eax
je 0x408b3f
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
mov edx, ecx
and edx, 0x6c078965
mov esi, ecx
or ecx, 0x6c078965
imul ecx, edx
xor edx, 0x6c078965
and esi, 0x93f8769a
imul esi, edx
add ecx, esi
lea edx, [eax + ecx]
add edx, 0x270
mov dword [eax*4 + 0x442c58], edx
add eax, 2
jmp 0x408ac0
mov dword [0x442294], 0x270
pop esi
ret
Function at 0x408b80
Capabilities:
Terminate process

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
call fcn.00436c30
test al, al
je 0x408d59
call fcn.00430e70
test al, al
je 0x408d54
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
mov ebp, 0xb4a39d8c
mov esi, 0xbb345922
shrd esi, ebp, cl
shr ebp, cl
test cl, 0x20
je 0x408bcb
mov esi, ebp
xor ebp, ebp
xor esi, 0xbb345922
xor ebp, 0xb4a39d8c
mov eax, esi
and eax, 0x2aa71643
mov dword [esp], eax
mov ecx, ebp
and ecx, 0xeb315c10
mov ebx, esi
and ebx, 0xd558e9bc
mov edi, ebx
xor edi, 0xd558e9bc
mov eax, edi
imul edi, ecx
mul dword [esp]
mov dword [esp + 4], eax
mov ecx, ebp
and ecx, 0x14cea3ef
or esi, 0xd558e9bc
mov eax, esi
imul esi, ecx
xor ecx, 0x14cea3ef
imul ecx, dword [esp]
add ecx, edx
add ecx, edi
or ebp, 0x14cea3ef
mul ebx
add esi, edx
imul ebp, ebx
add ebp, esi
add eax, dword [esp + 4]
adc ebp, ecx
mov ecx, ebp
shld ecx, eax, 0xb
mov dword [esp + 4], ecx
mov ebx, ebp
shl ebx, 0xb
mov ecx, ebp
shr ecx, 0x15
mov dword [esp], ecx
mov ecx, eax
add ecx, 0xfffffffe
mov esi, ebp
adc esi, 0x7ff
mov edi, ebp
shld edi, eax, 1
lea edx, [eax + eax]
sub ecx, edx
sbb esi, edi
not esi
xor ecx, 0xfffffffe
mov edi, dword [esp]
and esi, edi
mov edx, dword [esp + 4]
and ecx, edx
shrd ebx, edi, 0x1f
lea edi, [edx + edx]
not edi
add edi, edx
not ebx
adc ebx, dword [esp]
not ebp
and ebx, ebp
or ebx, esi
not eax
and edi, eax
or edi, ecx
mov ebp, ebx
shld ebp, edi, 1
lea esi, [edi + edi]
not ebp
not esi
add esi, edi
adc ebp, ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x408d30
mov eax, edi
and eax, 0x4f381717
mov edx, eax
mov ecx, ebx
and ecx, 0xc76e43ef
not edi
and edi, 0xb0c7e8e8
imul ecx, edi
mov eax, edi
mov edi, edx
mul edx
mov dword [esp], eax
not ebx
and ebx, 0x3891bc10
add edx, ecx
imul ebx, edi
add ebx, edx
mov edi, ebp
and edi, 0xc76e43ef
mov ecx, esi
and ecx, 0x4f381717
or esi, 0x4f381717
mov eax, esi
mul ecx
imul esi, edi
add esi, edx
or ebp, 0xc76e43ef
imul ebp, ecx
add ebp, esi
add eax, dword [esp]
adc ebp, ebx
mov esi, eax
mov ecx, dword [esp + 8]
shrd esi, ebp, cl
mov edx, ebp
shr edx, cl
test cl, 0x20
je 0x408d2c
mov esi, edx
xor edx, edx
xor ebp, edx
xor esi, eax
or ebp, 0x1010101
or esi, 0x1010101
push ebp
push esi
call fcn.00409e80
add esp, 8
test al, al
je 0x408d54
call fcn.0040cc40
call fcn.0040b880
call fcn.00437170
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]