joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453840
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
cmp dword [edi + 0x10], esi
je 0x4539c1
cmp dword [edi + 0x14], esi
je 0x4539c1
lea eax, [esp + 0x30]
push eax
push edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
call fcn.00453c70
cmp dword [edi + 0x18], 0x5a
jge 0x45388d
mov eax, dword [edi + 0x10]
mov dword [esp + 0x10], eax
jmp 0x453896
mov ecx, dword [edi + 0x14]
mov dword [esp + 0x10], ecx
mov eax, ecx
mov ecx, dword [eax + 0x28]
sub ecx, dword [eax + 0x20]
mov edx, dword [ebp + 8]
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
sub edi, dword [esp + 0x30]
sub ebx, dword [esp + 0x34]
mov dword [esp + 0x48], ecx
mov ecx, dword [eax + 0x2c]
sub ecx, dword [eax + 0x24]
mov eax, dword [edx + 4]
push eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x60], esi
call dword [sym.imp.USER32.dll_GetDC]
push 0x20
push ebx
push edi
lea esi, [esp + 0x5c]
mov dword [esp + 0x20], eax
call fcn.004431b0
add esp, 0xc
test al, al
mov eax, dword [esp + 0x14]
push eax
jne 0x45391b
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
call fcn.00448ec0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0xc]
mov ecx, dword [esp + 0x4c]
mov eax, dword [eax]
push edx
mov edx, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x58]
push edx
push 0
push 0
push eax
push ebx
push edi
push 0
push 0
push ecx
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
xor edx, edx
push edx
push ebx
push edi
push ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
mov edx, dword [esi + 4]
push eax
push edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ebx
call dword [sym.imp.USER32.dll_MoveWindow]
mov edx, dword [esp + 0x50]
push 2
lea eax, [esp + 0x60]
push eax
push 0
lea ecx, [esp + 0x24]
push ecx
push edx
mov edx, dword [esi + 4]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x40]
push ecx
push 0
push edx
call dword [sym.imp.USER32.dll_UpdateLayeredWindow]
mov eax, dword [esi + 4]
push 8
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea esi, [esp + 0x50]
call fcn.00448ec0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4539d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x70
push esi
push edi
mov edi, dword [ebx + 0x10]
xor edx, edx
cmp edi, edx
je 0x453b28
mov eax, dword [edi + 0x20]
mov esi, dword [edi + 0x24]
mov ecx, dword [edi + 0x2c]
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0x28]
sub eax, dword [esp + 0x38]
sub ecx, esi
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x28]
sub eax, dword [edi + 0x20]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x50], eax
mov eax, dword [edi + 0x2c]
sub eax, dword [edi + 0x24]
mov esi, ecx
mov dword [esp + 0x54], eax
mov eax, dword [ebx + 4]
push eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], edx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], edx
mov dword [esp + 0x68], edx
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [esp + 0x30]
push 0x20
push esi
push ecx
lea esi, [esp + 0x64]
mov dword [esp + 0x18], eax
call fcn.004431b0
add esp, 0xc
test al, al
jne 0x453a7c
mov edx, dword [esp + 0xc]
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
call fcn.00448ec0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xc]
mov edx, dword [ebx + 4]
push ecx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [edi + 0xc]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov esi, dword [esp + 0x34]
push eax
mov eax, dword [edi]
mov edi, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x60]
push edx
push 0
push 0
push eax
push esi
push edi
push 0
push 0
push ecx
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
xor edx, edx
push edx
push esi
push edi
push ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
mov edx, dword [ebx + 4]
push eax
push edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], esi
call dword [sym.imp.USER32.dll_MoveWindow]
mov edx, dword [esp + 0x58]
push 2
lea eax, [esp + 0x68]
push eax
push 0
lea ecx, [esp + 0x1c]
push ecx
push edx
mov edx, dword [ebx + 4]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x38]
push ecx
push 0
push edx
call dword [sym.imp.USER32.dll_UpdateLayeredWindow]
mov eax, dword [ebx + 4]
push 8
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea esi, [esp + 0x58]
call fcn.00448ec0
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x455170
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [esi]
mov edx, dword [eax + 0xa8]
push 0
mov ecx, esi
mov byte [esi + 0x202], 0
mov byte [esi + 0x38], 0
mov byte [esi + 0x200], 0
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x78]
push 0
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x84]
push 1
mov ecx, esi
call edx
mov ecx, esi
call fcn.00453440
mov eax, dword [esi + 0x1e0]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret
Function at 0x459290
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51dab8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x589560]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
push 1
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x14], bl
call dword [sym.imp.GDI32.dll_SetBkMode]
mov dword [esp + 0x20], ebx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x30], ebx
mov eax, dword [esi]
mov eax, dword [eax]
push ecx
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call eax
lea esi, [esp + 0xc]
call fcn.00442340
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x45d270
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push 0x10
mov esi, ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and eax, 0xffffff01
push eax
mov eax, dword [esp + 0xc]
call fcn.0045d190
add esp, 4
test eax, eax
je 0x45d29f
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, 1
pop esi
ret 8

Function at 0x45d2c0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
mov esi, ecx
call dword [sym.imp.USER32.dll_VkKeyScanW]
movzx eax, ax
mov ecx, eax
shr ecx, 8
and ecx, 0xffffff01
movzx eax, al
push ecx
call fcn.0045d190
add esp, 4
test eax, eax
je 0x45d2f7
mov edx, dword [esi + 4]
push eax
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, 1
pop esi
ret 8

Function at 0x45e080
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x51fe53
mov eax, dword fs:[0]
push eax
mov eax, dword [0x589560]
push ecx
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], fcn.004fdc99
mov dword [eax + 0x20], fcn.004fca61
mov dword [eax + 0x24], fcn.004fdda1
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 4], ecx
mov byte [eax + 8], cl
mov byte [eax + 0x30], cl
mov dword [eax], vtable.t_dlgImeAdder.0
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov edx, dword [esp + 0x20]
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0x34], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 0x38], edx
mov dword [eax + 0x3c], ecx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret 0x10
Function at 0x45e270
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x520f30
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x589560]
xor eax, esp
mov dword [esp + 0x5c], eax
push esi
push edi
mov eax, dword [0x589560]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
movzx eax, word [eax + 0x34]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
xor esi, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push edx
mov edi, eax
mov byte [esp + 0x80], 1
call fcn.00466000
add esp, 8
mov ecx, ebx
mov dword [esp + 0x10], esi
call fcn.0045c1d0
test eax, eax
jbe 0x45e407
mov dword [esp + 0xc], esi
jmp 0x45e312
xor esi, esi
mov eax, dword [ebx + 4]
cmp eax, esi
je 0x45e335
mov ecx, dword [ebx + 8]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x10], eax
jb 0x45e33a
call fcn.004fed81
mov esi, dword [ebx + 4]
add esi, dword [esp + 0xc]
mov ecx, 0xc
lea edi, [esp + 0x38]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x45e364
and eax, 0xf0000000
cmp eax, 0xe0000000
jne 0x45e3e6
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edi, [esp + 0x40]
call fcn.0045dad0
test al, al
jne 0x45e38e
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.0045dad0
test al, al
je 0x45e3e6
mov esi, dword [ebx + 4]
cmp esi, dword [ebx + 8]
jbe 0x45e39b
call fcn.004fed81
mov ecx, dword [esp + 0xc]
add esi, ecx
cmp esi, dword [ebx + 8]
ja 0x45e3ab
cmp esi, dword [ebx + 4]
jae 0x45e3b0
call fcn.004fed81
mov ecx, dword [ebx + 8]
lea eax, [esi + 0x30]
cmp eax, ecx
mov dword [esp + 0x14], ecx
je 0x45e3d8
lea edx, [eax - 0x30]
mov esi, eax
mov edi, edx
add eax, 0x30
mov ecx, 0xc
add edx, 0x30
cmp eax, dword [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
jne 0x45e3c1
add dword [ebx + 8], 0xffffffd0
sub dword [esp + 0x10], 1
sub dword [esp + 0xc], 0x30
mov esi, dword [esp + 0x10]
add dword [esp + 0xc], 0x30
add esi, 1
mov ecx, ebx
mov dword [esp + 0x10], esi
call fcn.0045c1d0
cmp esi, eax
jb 0x45e310
xor esi, esi
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x45e418
push eax
call fcn.004fc79f
add esp, 4
mov eax, dword [esp + 0x2c]
cmp eax, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
je 0x45e435
push eax
call fcn.004fc79f
add esp, 4
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.004fe05a
mov esp, ebp
pop ebp
ret 4
Function at 0x45e660
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x41c
mov eax, dword [0x589560]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push ebp
mov ebp, dword [esp + 0x428]
push esi
push edi
push 0
push 0x14
push 0x1701
mov edi, ecx
push ebp
mov dword [esp + 0x24], edi
mov esi, edx
call ebx
push 0
push 0
push 0x14b
push ebp
call ebx
push 0x206
lea eax, [esp + 0x226]
push 0
push eax
mov word [esp + 0x22c], 0
call fcn.005002f0
add esp, 0xc
cmp dword [esi + 4], 0
mov dword [esp + 0x10], 0
jle 0x45e77a
jmp 0x45e6e0
push 0x206
lea ecx, [esp + 0x1e]
push 0
push ecx
mov word [esp + 0x24], 0
call fcn.005002f0
mov edi, dword [esp + 0x1c]
mov eax, dword [esi]
add esp, 0xc
push 0x104
add edi, edi
add eax, edi
movzx eax, word [eax]
lea edx, [esp + 0x1c]
push edx
push 2
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x45e762
mov ecx, dword [esi]
cmp word [edi + ecx], 0x804
jne 0x45e743
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x224]
push 0x104
push eax
call fcn.004fe07f
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push 0
push 0x143
push ebp
call ebx
mov edx, dword [esi]
movzx ecx, word [edx + edi]
push ecx
push eax
push 0x151
push ebp
call ebx
mov eax, dword [esp + 0x10]
add eax, 1
cmp eax, dword [esi + 4]
mov dword [esp + 0x10], eax
jl 0x45e6e0
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x220]
push edx
push 0xffffffffffffffff
push 0x158
push ebp
call ebx
test eax, eax
push 0
jl 0x45e795
push eax
jmp 0x45e797
push 0
push 0x14e
push ebp
call ebx
movzx eax, word [edi + 0x38]
mov ecx, dword [edi + 0x28]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0
mov esi, eax
push 0x147
push esi
call ebx
test eax, eax
jge 0x45e7c6
mov word [edi + 0x60], 0xffff
push 0
push eax
push 0x150
push esi
call ebx
mov ecx, dword [esp + 0x428]
mov word [edi + 0x60], ax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004fe05a
add esp, 0x41c
ret 4
Function at 0x45ef60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x520ef0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x589560]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x589560]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov esi, ecx
movzx ecx, word [esi + 0x34]
mov eax, dword [esi + 0x2c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
xor ecx, ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x34]
push ecx
mov edi, eax
mov byte [esp + 0x88], 1
call fcn.00466000
movzx edx, word [esi + 0x60]
add esp, 8
add esi, 0x50
push esi
mov eax, ebx
mov dword [esp + 0x30], edx
call fcn.0045c040
xor esi, esi
mov ecx, ebx
mov dword [esp + 0x14], esi
call fcn.0045c1d0
test eax, eax
jbe 0x45f106
mov dword [esp + 0x10], esi
jmp 0x45f018
xor esi, esi
mov eax, dword [ebx + 4]
cmp eax, esi
je 0x45f03b
mov ecx, dword [ebx + 8]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x14], eax
jb 0x45f040
call fcn.004fed81
mov esi, dword [ebx + 4]
add esi, dword [esp + 0x10]
mov ax, word [esp + 0x2c]
mov ecx, 0xc
lea edi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x34]
push edx
lea edi, [esp + 0x48]
mov word [esp + 0x54], ax
call fcn.0045dad0
test al, al
jne 0x45f086
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.0045dad0
test al, al
je 0x45f0e5
mov esi, dword [ebx + 4]
cmp esi, dword [ebx + 8]
jbe 0x45f093
call fcn.004fed81
mov edx, dword [esp + 0x10]
add esi, edx
cmp esi, dword [ebx + 8]
ja 0x45f0a3
cmp esi, dword [ebx + 4]
jae 0x45f0a8
call fcn.004fed81
mov ecx, dword [ebx + 8]
lea eax, [esi + 0x30]
cmp eax, ecx
mov dword [esp + 0x18], ecx
je 0x45f0d7
lea edx, [eax - 0x30]
lea esp, [esp]
mov esi, eax
mov edi, edx
add eax, 0x30
mov ecx, 0xc
add edx, 0x30
cmp eax, dword [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
jne 0x45f0c0
add dword [ebx + 8], 0xffffffd0
sub dword [esp + 0x14], 1
sub dword [esp + 0x10], 0x30
mov esi, dword [esp + 0x14]
add dword [esp + 0x10], 0x30
add esi, 1
mov ecx, ebx
mov dword [esp + 0x14], esi
call fcn.0045c1d0
cmp esi, eax
jb 0x45f016
xor esi, esi
mov eax, dword [esp + 0x20]
cmp eax, esi
je 0x45f117
push eax
call fcn.004fc79f
add esp, 4
mov eax, dword [esp + 0x34]
cmp eax, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
je 0x45f134
push eax
call fcn.004fc79f
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.004fe05a
mov esp, ebp
pop ebp
ret 8
Function at 0x45fa60
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x210
mov eax, dword [0x589560]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
mov edi, ecx
cmp word [edi], 0x40
jne 0x45fa89
add edi, 2
push 0x2c
push edi
call fcn.004fe7a6
mov esi, eax
add esp, 8
test esi, esi
jne 0x45fab4
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004fe05a
add esp, 0x210
ret
push 0xa
lea eax, [esp + 0x10]
push eax
lea ecx, [esi + 2]
push ecx
mov dword [esp + 0x18], 0
call fcn.00501e70
push 0x206
lea edx, [esp + 0x22]
push 0
push edx
mov dword [ebp], eax
mov word [esp + 0x28], 0
call fcn.005002f0
sub esi, edi
sar esi, 1
push esi
push edi
lea eax, [esp + 0x30]
push 0x104
push eax
call fcn.004fe994
add esp, 0x28
push 0x104
push ebx
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, dword [esp + 0x218]
pop edi
test eax, eax
pop esi
setne al
pop ebp
xor ecx, esp
call fcn.004fe05a
add esp, 0x210
ret

Function at 0x460820
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x20c
mov eax, dword [0x589560]
xor eax, esp
mov dword [esp + 0x208], eax
push ebp
mov ebp, dword [esp + 0x214]
push esi
push edi
push 0x206
lea eax, [esp + 0x12]
push 0
push eax
mov esi, ecx
mov edi, edx
mov word [esp + 0x18], 0
call fcn.005002f0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x10]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x4608d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov edi, eax
call fcn.00470820
mov esi, eax
call fcn.00471650
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, ebx
call fcn.00470820
push 0x561dec
mov esi, eax
push 0x551604
push esi
call fcn.0046adf0
push ebp
push 0x551604
push esi
call fcn.0046adf0
add esp, 0x18
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004fe05a
add esp, 0x20c
ret
push 2
push 0
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
jne 0x460923
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov edi, eax
call fcn.00470820
mov esi, eax
call fcn.00471650
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, ebx
call fcn.00470820
push 0x561e18
mov esi, eax
push 0x551604
push esi
call fcn.0046adf0
lea eax, [esp + 0x18]
push eax
jmp 0x4608aa
test esi, esi
jl 0x460932
push esi
call fcn.00468fc0
add esp, 4
jmp 0x460941
mov ecx, esi
neg ecx
movzx edx, cx
push edx
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
mov dword [edi], eax
jne 0x460973
push esi
lea eax, [esp + 0x10]
push eax
push 0x561e44
push ebx
call fcn.004708d0
add esp, 0x10
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004fe05a
add esp, 0x20c
ret
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebp
xor ecx, esp
mov al, 1
call fcn.004fe05a
add esp, 0x20c
ret
Function at 0x4618c0
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x38
mov eax, dword [0x589560]
xor eax, esp
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x3c]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
push edi
push 0
push 0
mov dword [esp + 0x18], eax
call esi
mov ebx, eax
lea ecx, [ebx*4]
push ecx
call fcn.004fdc99
add esp, 4
mov ebp, eax
push ebp
push ebx
call esi
xor edi, edi
test ebx, ebx
jle 0x461979
push 0x2c
lea edx, [esp + 0x1c]
push 0
push edx
call fcn.005002f0
mov esi, dword [ebp + edi*4]
mov eax, esi
and eax, 0xf0000000
add esp, 0xc
cmp eax, 0xe0000000
mov dword [esp + 0x14], esi
jne 0x461931
mov dword [esp + 0x1c], esi
jmp 0x461960
cmp eax, 0xf0000000
je 0x461943
mov eax, esi
shr eax, 0x10
mov dword [esp + 0x1c], eax
jmp 0x461960
mov ecx, esi
shr ecx, 0x10
and ecx, 0xfff
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.004670f0
add esp, 8
test al, al
je 0x461965
mov word [esp + 0x20], si
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
call fcn.0045da50
add edi, 1
cmp edi, ebx
jl 0x461904
push ebp
call fcn.004fdda1
mov ecx, dword [esp + 0x48]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov al, 1
call fcn.004fe05a
add esp, 0x38
ret
Function at 0x462ba0
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x523306
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x589560]
xor eax, esp
mov dword [esp + 0x150], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x589560]
xor eax, esp
push eax
lea eax, [esp + 0x168]
mov dword fs:[0], eax
push str.Keyboard_LayoutPreload
mov ebx, ecx
push 0x80000001
mov dword [esp + 0x28], ebx
mov esi, edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebp, vtable.t_reg.0
lea ecx, [esp + 0x40]
mov dword [esp + 0x34], ebp
call fcn.0046a650
xor edi, edi
mov eax, str.HKEY_CURRENT_USER
lea edx, [esp + 0x40]
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], 0x80000001
call fcn.0046a7f0
push 1
push 1
push str.Keyboard_LayoutPreload
push ebx
lea ecx, [esp + 0x44]
mov dword [esp + 0x180], edi
call fcn.00473f60
test al, al
jne 0x462c9e
mov ecx, ebx
call fcn.00470820
push 0x562034
push 0x551604
push eax
call fcn.0046adf0
mov eax, dword [esp + 0x44]
add esp, 0xc
cmp eax, edi
mov dword [esp + 0x34], ebp
je 0x462c6c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0x15c], 0
mov dword [esp + 0x38], edi
mov dword [esp + 0x40], vtable.t_str.0
jne 0x462c97
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x4c]
cmp eax, ecx
je 0x462c97
push eax
call fcn.004fdda1
add esp, 4
xor al, al
jmp 0x462d95
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.004656e0
mov byte [esp + 0x170], 1
mov ebp, dword [esp + 0x28]
cmp ebp, edi
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x18], 1
je 0x462cdb
mov ecx, ebx
sub ecx, ebp
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov edi, edx
shr edi, 0x1f
add edi, edx
xor esi, esi
test edi, edi
jle 0x462d35
mov dword [esp + 0x1c], ebp
test ebp, ebp
je 0x462d02
mov ecx, ebx
sub ecx, ebp
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x462d07
call fcn.004fed81
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x38]
call fcn.00462b20
add esp, 4
test al, al
je 0x462d29
add dword [esp + 0x18], 1
add dword [esp + 0x1c], 0x30
add esi, 1
cmp esi, edi
jl 0x462ce5
mov ecx, dword [esp + 0x38]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
test ebp, ebp
je 0x462d4d
push ebp
call fcn.004fc79f
add esp, 4
mov eax, dword [esp + 0x38]
test eax, eax
mov dword [esp + 0x34], vtable.t_reg.0
je 0x462d64
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0x15c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x40], vtable.t_str.0
jne 0x462d93
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x4c]
cmp eax, edx
je 0x462d93
push eax
call fcn.004fdda1
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x168]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.004fe05a
add esp, 0x160
ret