joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46a6f8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, ebx
call fcn.004054bc
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov eax, edi
call fcn.00405b78
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x46a7bd
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405b78
mov edi, eax
push edi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
cmp dword [ebp - 0xc], 0
je 0x46a7b4
mov eax, dword [ebp - 0xc]
add eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0
push edi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x46a7ae
cmp dword [ebp - 0x10], 1
jne 0x46a7a0
mov eax, ebx
mov edx, esi
mov ecx, 0
call fcn.00405770
jmp 0x46a7ae
push 0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov edx, esi
call fcn.004055f4
push esi
call sub.kernel32.dll_LocalFree
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x46ca20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x555da0
push 0xa
push 0x46cab4
mov eax, dword [0x554b20]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x46ca44
call fcn.00478320
push ebx
mov eax, dword [0x554b20]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x46ca5b
call fcn.00478320
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x46ca6d
call fcn.00478320
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x555da4], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x555da8], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x555dac], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x555db0], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x555db4], ecx
add edx, dword [eax + 0x14]
mov dword [0x555db8], edx
pop esi
pop ebx
ret

Function at 0x46e398
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x46e441
test eax, edx
je 0x46e444
push 0
push 0
cmp word [eax - 0xa], 2
je 0x46e3c1
push edx
mov edx, eax
mov eax, esp
call fcn.004064d8
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x46e3d7
push eax
lea eax, [esp + 8]
call fcn.004064d8
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x46e3e6
movzx eax, word [eax]
sub eax, ecx
jmp 0x46e40d
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x46e427
add ecx, 4
js 0x46e3fe
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x46e424
push eax
mov eax, ecx
mov edx, 2
call fcn.004054e0
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x46e40b
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x46e40d
xor eax, eax
ret
test eax, eax
je 0x46e454
test edx, edx
jne 0x46e3a8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x46f32c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00406348
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x46f34a
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x46f36b
cmp ebx, 3
je 0x46f36b
cmp ebx, 0x7b
je 0x46f36b
mov eax, esi
call fcn.0046f2ec
test al, al
jne 0x46f36f
xor eax, eax
jmp 0x46f371
mov al, 1
pop esi
pop ebx
ret

Function at 0x46f374
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00406348
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x46f38d
test al, 0x10
jne 0x46f391
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x46f4ac
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00406348
push eax
call sub.kernel32.dll_GetFileAttributesW
pop ebx
ret
Function at 0x46f4c0
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00406348
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x46f4e2
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x475268
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4752a1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004063f8
jmp 0x4752aa
mov eax, ebx
mov edx, esi
call fcn.004062bc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4752b4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4752d6
movzx eax, word [esp]
jmp 0x4752d8
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x475b88
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffff004
push eax
add esp, 0xffffff7c
push 0x800
lea ecx, [esp + 0x88]
call fcn.004759c0
mov eax, dword [0x5511fc]
cmp byte [eax], 0
je 0x475c1a
mov eax, dword [0x550d2c]
call fcn.00403834
call fcn.004031e0
lea eax, [esp + 0x884]
push eax
lea eax, [esp + 0x88]
push eax
call sub.user32.dll_CharToOemW
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x88c]
call fcn.0046fa30
push eax
lea eax, [esp + 0x890]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x475c68
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x475c53
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x550c8c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x554b20]
call fcn.00407c04
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x8c]
push eax
push 0
call sub.user32.dll_MessageBoxW
add esp, 0x1084
ret
Function at 0x476878
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x47694e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406310
lea eax, [ebp - 4]
call fcn.00406c2c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00406348
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x476938
mov eax, ebx
call fcn.00403048
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x476931
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00406348
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x47691b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x476960
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x47691b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x476938
mov eax, dword [ebp - 0x10]
call fcn.00403064
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x476955
lea eax, [ebp - 4]
call fcn.004062ac
ret

Function at 0x4781c8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.0040585c
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x478172
mov eax, edi
add eax, eax
call fcn.00403048
mov esi, eax
jmp 0x478174
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4781ad
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x478197
mov eax, esp
cmp esi, eax
je 0x4781ba
mov eax, esi
call fcn.00403064
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x4781f4
cmp bl, 0
je 0x4781f0
cmp bl, 0x41
jl 0x4781eb
cmp bl, 0x5a
jg 0x4781eb
or bl, 0x20
xor al, bl
inc esi
jmp 0x4781cf
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x478134

Function at 0x48c168
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0048be6c
dec esi
jne 0x48c18a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x48d334
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x5580d4
cmp dword [edi], 0
jne 0x48d3b0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x5580d0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x54a58c
mov ecx, 2
call fcn.00403230
mov edx, 0x48d30c
lea eax, [esi + 5]
call fcn.0048d32c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0048d32c
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x48d385
mov dword [0x5580d0], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x492a24
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.00492068
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00406348
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x492a83
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x550fc8]
mov dl, 1
mov eax, dword [0x491ee0]
call fcn.00475d64
call fcn.00404cc4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x492a8c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00406348
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x492ae4
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5514ac]
mov dl, 1
mov eax, dword [0x491ee0]
call fcn.00475d64
call fcn.00404cc4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00492098
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x493b44
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x493b4a
ret
Function at 0x4a43a8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
mov edi, eax
test bl, bl
je 0x4a43c9
test edi, 0x40000
je 0x4a43e3
test bl, bl
jne 0x4a4464
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x4a4464
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.user32.dll_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x4a4416
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x4a442b
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
jmp 0x4a443a
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x4a444b
cmp byte [esp + 2], 0
je 0x4a4464
cmp byte [esp + 2], 0
je 0x4a445c
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x4a4464
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4a470c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x4a4732
mov eax, esp
push eax
push 0x4a46d4
call sub.user32.dll_EnumWindows
jmp 0x4a4745
mov eax, esp
push eax
push 0x4a46b4
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x4a4808
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x4a485c]
test si, 4
je 0x4a481d
or bl, 1
test si, 8
je 0x4a4827
or bl, 4
test si, 1
je 0x4a4831
or bl, 8
test si, 2
je 0x4a483b
or bl, 0x10
test si, 0x10
je 0x4a4845
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4a4854
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4a4860
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x4a489c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4a487a
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4a4889
or bl, 4
test esi, 0x20000000
je 0x4a4894
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4acbd4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4acbe6
add esp, 0xfffffff0
call fcn.0040465c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0048c274
mov eax, dword [0x550c98]
mov dword [eax + 4], ebx
mov dword [eax], 0x4acfe8
mov eax, dword [0x550ca8]
mov dword [eax + 4], ebx
mov dword [eax], 0x4acff4
mov eax, ebx
call fcn.004ad000
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x482488]
call fcn.004041f4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x482488]
call fcn.004041f4
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x482488]
call fcn.004041f4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x482488]
call fcn.004041f4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x482488]
call fcn.004041f4
mov dword [ebx + 0x74], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x4a8024
push eax
push 0
push 0
mov eax, dword [0x550fc0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4930fc]
call fcn.00494b7c
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x4930fc]
call fcn.00494b7c
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x4930fc]
call fcn.00494b7c
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x4930fc]
call fcn.00494b7c
mov dword [ebx + 0x84], eax
mov eax, ebx
call fcn.004ad4f8
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4ad3d0
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4ad3d0
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4ad3d0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4ad3d0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4acd39
call fcn.004046b4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4ad170
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ad31d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4ad2fe
mov dl, 1
mov eax, dword [0x482900]
call fcn.0048724c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
xor edx, edx
call fcn.004062bc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4ad2ed
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004d1730
test al, al
je 0x4ad2e0
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x4ad32c
lea eax, [ebp - 0x394]
call fcn.004703f4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4ad2e0
xor eax, eax
push ebp
push 0x4ad2d9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x4ad39c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4ad2c2
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.004064bc
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4ad2c2
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.004064bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ad2e0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4ad1e3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x29], 0
mov dl, 1
call fcn.00487038
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ad324
lea eax, [ebp - 0x3a0]
call fcn.004062ac
ret

Function at 0x4add0c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x558344]
cmp byte [eax + 0xa9], 0
jne 0x4add7e
cmp dword [0x55835c], 0
jne 0x4add3e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x54b0e4]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x55835c], eax
cmp dword [0x558358], 0
jne 0x4add59
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x558358], eax
cmp dword [0x558360], 0
jne 0x4add7e
push esp
push 0
push 0
mov eax, dword [0x54b0e0]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x558360], eax
pop edx
ret
Function at 0x4adf94
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x4adfab
add esp, 0xfffffff0
call fcn.0040465c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0048c274
mov eax, dword [0x550b04]
cmp byte [eax], 0
jne 0x4adfd8
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x550f88]
cmp word [eax + 2], 0
jne 0x4adff2
mov eax, dword [0x550f88]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004afc14
mov eax, dword [0x55112c]
cmp word [eax + 2], 0
jne 0x4ae00c
mov eax, dword [0x55112c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004afe24
mov byte [ebx + 0x31], 0
mov dl, 1
mov eax, dword [0x4930fc]
call fcn.00494b7c
mov esi, eax
mov dword [ebx + 0x38], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x4b02b8
mov dl, 1
mov eax, dword [0x482488]
call fcn.004041f4
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x482488]
call fcn.004041f4
mov dword [ebx + 0xac], eax
xor eax, eax
mov dword [ebx + 0x5c], eax
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x58], 0xff000018
mov dword [ebx + 0x74], 0x1f4
mov byte [ebx + 0x78], 1
xor eax, eax
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x70], 0x9c4
mov byte [ebx + 0x84], 0
mov byte [ebx + 0xa1], 1
mov byte [ebx + 0xb8], 1
mov dl, 1
mov eax, dword [0x493954]
call fcn.0049a5a0
mov esi, eax
mov dword [ebx + 0x9c], esi
push 0x4ae1e8
mov eax, dword [0x550d70]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.0049a9a4
mov eax, dword [ebx + 0x9c]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4b0568
mov dl, 1
mov eax, dword [0x482488]
call fcn.004041f4
mov dword [ebx + 0x94], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x550d70]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0046fdfc
test eax, eax
je 0x4ae11a
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.0046faac
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.0046fde4
test eax, eax
je 0x4ae132
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x88]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.004064bc
push ebx
push 0x4af898
call fcn.004a47ec
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xcc], 0
mov eax, dword [0x550b04]
cmp byte [eax], 0
jne 0x4ae183
mov eax, ebx
call fcn.004ae35c
mov byte [ebx + 0x55], 1
mov byte [ebx + 0x56], 1
mov byte [ebx + 0x57], 1
mov byte [ebx + 0xa2], 1
mov byte [ebx + 0xcd], 0
mov byte [ebx + 0xd8], 0
xor eax, eax
mov dword [ebx + 0xd0], eax
mov byte [ebx + 0xcf], 0
xor eax, eax
mov dword [ebx + 0xa4], eax
mov eax, ebx
call fcn.004b0790
mov eax, ebx
call fcn.004b1354
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4ae1e0
call fcn.004046b4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret