joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a2f0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x46600c]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x41a355
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41a330
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41a355
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0043b572
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.0043b572
add esp, 8
ret 4

Function at 0x41a420
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub esp, 0x2c
mov eax, dword [0x46600c]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
push edi
xor eax, eax
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x46c6e0], ecx
inc eax
cmp eax, 0x100
jb 0x41a434
cmp eax, 0x800
jae 0x41a503
nop dword [eax + eax]
mov edx, dword [eax*4 + 0x46c2e0]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x46c6e0]
mov dword [eax*4 + 0x46c6e0], edx
inc eax
cmp eax, 0x800
jb 0x41a4e0
lea ecx, [esp + 0x14]
mov dword [0x46a054], 0x44e310
call fcn.0041ae10
test eax, eax
je 0x41a5af
mov edi, dword [esp + 0x24]
xor ecx, ecx
mov ebp, dword [esp + 0x1c]
mov esi, edi
shr esi, 8
mov eax, 0x4668b0
shr edi, 4
and esi, 0xff00f
and edi, 0xf00f
xor edx, edx
mov ebx, dword [esp + 0x18]
cmp dword [eax - 8], ebx
mov ebx, dword [esp + 0x20]
jne 0x41a559
cmp dword [eax - 4], ebp
jne 0x41a559
cmp dword [eax], ebx
je 0x41a568
add edx, 0xc
inc ecx
add eax, 0xc
cmp edx, 0x24
jb 0x41a543
or ecx, 0xffffffff
sub ecx, 0
je 0x41a596
sub ecx, 1
je 0x41a585
sub ecx, 1
jne 0x41a5af
cmp esi, 6
jb 0x41a5af
jne 0x41a5a5
cmp edi, 0xf
jb 0x41a5af
jmp 0x41a5a5
cmp esi, 5
jb 0x41a5af
jne 0x41a5a5
cmp edi, 6
jb 0x41a5af
cmp edi, 0xa
jmp 0x41a5a3
cmp esi, 6
jb 0x41a5af
jne 0x41a5a5
cmp edi, 0x100c
je 0x41a5af
mov dword [0x46a054], 0x44e230
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043b572
add esp, 0x2c
ret
Function at 0x41b710
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x46600c]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, dword [esp + 0x10]
push edi
mov dword [esi], 0
mov dword [esi + 4], 0
mov eax, dword [ecx + 0x10]
cmp eax, 0xffffffff
je 0x41b783
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41b75e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41b783
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, edi
pop edi
adc eax, 0
mov dword [esi], ecx
mov dword [esi + 4], eax
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0043b572
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.0043b572
add esp, 8
ret 4

Function at 0x41bc50
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x46600c]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, dword [esp + 0x10]
push edi
mov dword [esi], 0
mov dword [esi + 4], 0
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x41bcc3
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41bc9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41bcc3
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, edi
pop edi
adc eax, 0
mov dword [esi], ecx
mov dword [esi + 4], eax
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0043b572
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.0043b572
add esp, 8
ret 4
Function at 0x428433
Capabilities:
Encode data using xor
Hash data using crc32b

Disassembly:
push esi
xor edx, edx
push edi
mov esi, edx
push 8
shl esi, 0x18
pop edi
lea ecx, [esi + esi]
mov eax, ecx
xor eax, 0x4c11db7
test esi, esi
cmovs ecx, eax
dec edi
mov esi, ecx
test edi, edi
jg 0x42843f
mov dword [edx*4 + 0x469b58], esi
inc edx
cmp edx, 0x100
jb 0x428437
pop edi
pop esi
ret
Function at 0x433fbc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
test edi, edi
je 0x433fcc
mov dword [edi], esi
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x10], esi
test eax, eax
je 0x434024
push esi
lea ecx, [ebp + 0x10]
push ecx
mov ecx, 0x8000
cmp eax, ecx
cmovae eax, ecx
push eax
push dword [ebp + 8]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test edi, edi
je 0x434001
mov ecx, dword [ebp + 0x10]
add dword [edi], ecx
test eax, eax
jne 0x434024
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x434016
mov esi, 0x80004005
jmp 0x434024
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
ret 0xc

Function at 0x436a5e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
and edx, 0xfffffffe
mov esi, edi
lea ebx, [edi - 4]
add ebx, edx
cmp esi, ebx
ja 0x436ad6
movzx edx, byte [esi + 1]
movzx eax, byte [esi + 3]
xor edx, 8
and eax, edx
add esi, 2
cmp eax, 0xf8
jb 0x436a70
movzx ecx, byte [esi - 2]
movzx eax, byte [esi + 1]
and eax, 7
shl edx, 8
add ecx, edx
lea ecx, [eax + ecx*8]
movzx eax, byte [esi]
add esi, 2
shl ecx, 8
add ecx, eax
mov eax, esi
sub eax, edi
add eax, dword [ebp + 8]
shr eax, 1
sub ecx, eax
mov eax, ecx
mov byte [esi - 2], cl
shr eax, 0xb
mov byte [esi - 4], al
mov eax, ecx
shr eax, 0x13
and al, 7
shr ecx, 8
or al, 0xf0
or cl, 0xf8
mov byte [esi - 3], al
mov byte [esi - 1], cl
jmp 0x436a70
sub esi, edi
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x438070
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, ecx
xor ebx, ebx
mov dword [ebp - 4], eax
mov esi, dword [esi]
and esi, 7
cmp edx, 5
jae 0x438092
xor eax, eax
jmp 0x4381a6
add dword [ebp + 8], 5
add edx, 0xfffffffc
add edx, eax
mov dword [ebp - 8], edx
push edi
lea edi, [ebx + eax]
cmp edi, edx
jae 0x4380b6
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x4380b3
inc edi
cmp edi, edx
jb 0x4380a6
mov eax, dword [ebp - 4]
mov ecx, edi
sub ecx, ebx
mov ebx, edi
sub ecx, eax
sub ebx, eax
cmp edi, edx
jae 0x438194
cmp ecx, 2
jbe 0x43814b
xor esi, esi
movzx edx, byte [edi + 4]
lea eax, [edx + 1]
test al, 0xfe
jne 0x43817f
movzx eax, byte [edi + 3]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 2]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 1]
shl edx, 8
or edx, eax
mov eax, dword [ebp + 8]
add eax, ebx
sub edx, eax
test esi, esi
je 0x438128
and esi, 6
mov eax, edx
shl esi, 2
mov ecx, esi
shr eax, cl
inc eax
test al, 0xfe
jne 0x438126
mov eax, 0x100
shl eax, cl
dec eax
xor edx, eax
mov eax, dword [ebp + 8]
add eax, ebx
sub edx, eax
xor esi, esi
mov eax, edx
mov byte [edi + 1], dl
shr eax, 8
mov byte [edi + 2], al
mov eax, edx
shr edx, 0x18
shr eax, 0x10
and dl, 1
neg dl
mov byte [edi + 3], al
push 5
mov byte [edi + 4], dl
pop eax
jmp 0x438187
shr esi, cl
test esi, esi
je 0x4380cf
cmp esi, 4
ja 0x438174
cmp esi, 3
je 0x438174
mov eax, esi
shr eax, 1
movzx eax, byte [eax + edi + 1]
inc eax
test al, 0xfe
jne 0x4380cf
mov eax, dword [ebp - 4]
or esi, 8
shr esi, 1
inc ebx
jmp 0x43809f
or esi, 8
xor eax, eax
shr esi, 1
inc eax
mov edx, dword [ebp - 8]
add ebx, eax
mov eax, dword [ebp - 4]
jmp 0x43809f
xor eax, eax
shr esi, cl
cmp ecx, 2
pop edi
cmova esi, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x4381aa
Capabilities:
Hash data using sha256

Disassembly:
and dword [ecx + 0x20], 0
and dword [ecx + 0x24], 0
mov dword [ecx], 0x6a09e667
mov dword [ecx + 4], 0xbb67ae85
mov dword [ecx + 8], 0x3c6ef372
mov dword [ecx + 0xc], 0xa54ff53a
mov dword [ecx + 0x10], 0x510e527f
mov dword [ecx + 0x14], 0x9b05688c
mov dword [ecx + 0x18], 0x1f83d9ab
mov dword [ecx + 0x1c], 0x5be0cd19
ret
Function at 0x438f7e
Capabilities:
Check os version
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x46600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x13c], ebx
mov ecx, ebx
movzx eax, byte [ecx + str.cw]
mov byte [eax + 0x46a458], cl
inc ecx
cmp ecx, 0x100
jb 0x438f9e
movzx edi, byte [ebx + str.cw]
mov eax, edi
and al, 0x80
movzx ecx, al
neg ecx
lea eax, [edi + edi]
sbb ecx, ecx
and ecx, 0x1b
xor ecx, eax
movzx esi, cl
mov ecx, edi
mov edx, esi
shl ecx, 8
xor edx, edi
mov eax, edx
shl eax, 8
or eax, edi
shl eax, 8
or eax, edi
shl eax, 8
or eax, esi
mov dword [ebx*4 + 0x46a558], eax
mov eax, ecx
or ecx, esi
or eax, edi
shl eax, 8
or eax, esi
shl ecx, 8
or ecx, edx
shl esi, 8
shl ecx, 8
or esi, edx
or ecx, edi
shl eax, 8
mov dword [ebx*4 + 0x46ad58], ecx
or eax, edx
shl esi, 8
or esi, edi
mov dword [ebx*4 + 0x46a958], eax
shl esi, 8
or esi, edi
mov dword [ebx*4 + 0x46b158], esi
movzx ebx, byte [ebx + 0x46a458]
mov eax, ebx
and al, 0x80
movzx ecx, al
neg ecx
lea eax, [ebx + ebx]
sbb ecx, ecx
and ecx, 0x1b
xor ecx, eax
movzx esi, cl
mov eax, esi
and al, 0x80
movzx ecx, al
neg ecx
lea eax, [esi + esi]
sbb ecx, ecx
and ecx, 0x1b
xor ecx, eax
movzx edx, cl
mov eax, edx
and al, 0x80
movzx ecx, al
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x1b
xor ecx, eax
movzx ecx, cl
mov eax, ecx
mov edi, ecx
xor ecx, edx
xor edi, esi
xor eax, ebx
mov dword [ebp - 0x144], ecx
xor edi, ebx
mov dword [ebp - 0x140], eax
xor ecx, ebx
mov ebx, dword [ebp - 0x144]
xor ebx, esi
mov edx, dword [ebp - 0x140]
mov eax, edi
mov esi, dword [ebp - 0x13c]
shl eax, 8
or eax, ecx
shl eax, 8
or eax, edx
shl eax, 8
or eax, ebx
mov dword [esi*4 + 0x46b558], eax
mov eax, ecx
shl eax, 8
or eax, edx
shl eax, 8
or eax, ebx
shl eax, 8
or eax, edi
mov dword [esi*4 + 0x46b958], eax
mov eax, edx
shl eax, 8
or eax, ebx
shl ebx, 8
or ebx, edi
shl eax, 8
shl ebx, 8
or eax, edi
or ebx, ecx
shl eax, 8
shl ebx, 8
or eax, ecx
or ebx, edx
mov dword [esi*4 + 0x46bd58], eax
mov dword [esi*4 + 0x46c158], ebx
mov ebx, esi
inc ebx
mov dword [ebp - 0x13c], ebx
cmp ebx, 0x100
jb 0x438fb4
lea eax, [ebp - 0x138]
mov dword [0x46c6c8], 0x439799
push eax
mov dword [ebp - 0x138], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
pop edi
pop esi
pop ebx
test eax, eax
je 0x439172
cmp dword [ebp - 0x134], 5
jb 0x439172
lea ecx, [ebp - 0x24]
call fcn.0041ae10
test eax, eax
je 0x439172
mov eax, dword [ebp - 0xc]
mov ecx, 0x43a416
shr eax, 0x19
and eax, 1
mov eax, dword [0x46c6c8]
cmovne eax, ecx
mov dword [0x46c6c8], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b572
leave
ret
Function at 0x43917e
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
xor esi, esi
lea ecx, [edi + 0x1c]
shr edi, 2
mov eax, edi
mov dword [ebp - 0xc], ecx
shr eax, 1
add eax, 3
mov dword [ebx], eax
add ebx, 0x10
test edi, edi
je 0x4391b4
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [ebx + esi*4], eax
inc esi
cmp esi, edi
jb 0x4391a7
cmp esi, ecx
jae 0x439297
mov eax, esi
sub eax, edi
lea eax, [ebx + eax*4]
mov dword [ebp - 4], eax
xor edx, edx
mov ecx, dword [ebx + esi*4 - 4]
mov eax, esi
mov dword [ebp + 8], ecx
div edi
mov dword [ebp - 8], eax
test edx, edx
jne 0x43922d
movzx ecx, cl
movzx edx, byte [ecx + str.cw]
mov ecx, dword [ebp + 8]
shr ecx, 0x18
shl edx, 8
movzx eax, byte [ecx + str.cw]
mov ecx, dword [ebp + 8]
or edx, eax
mov eax, ecx
shl edx, 8
shr eax, 0x10
movzx eax, al
shr ecx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
movzx eax, cl
shl edx, 8
movzx ecx, byte [eax + str.cw]
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x45a288]
xor ecx, eax
or ecx, edx
jmp 0x43927d
cmp edi, 6
jbe 0x43927d
cmp edx, 4
jne 0x43927d
mov edx, dword [ebp + 8]
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add edx, 4
xor eax, ecx
mov dword [ebp - 4], edx
mov dword [ebx + esi*4], eax
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x4391c6
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x43a0c3
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
push edi
mov edi, ecx
push ecx
lea esi, [edi + 4]
mov ecx, esi
call fcn.0040847d
test al, al
je 0x43a0db
pop edi
xor al, al
pop esi
ret
push 0xc
call fcn.0043b783
pop ecx
push edi
push 0x43a074
mov ecx, eax
call fcn.00415d60
push eax
mov ecx, esi
call fcn.004084b6
mov ecx, esi
call fcn.00408412
pop edi
mov ecx, eax
pop esi
jmp fcn.00415f00
Function at 0xdd4058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xdd41a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xdd407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xdd406a
add dl, dl
jne 0xdd4089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xdd40dc
xor eax, eax
add dl, dl
jne 0xdd4096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xdd417d
add dl, dl
jne 0xdd40a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xdd40b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xdd40bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xdd40c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xdd40d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xdd4075
mov eax, 1
add dl, dl
jne 0xdd40ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xdd40f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xdd40e1
sub eax, ebx
mov ebx, 1
jne 0xdd4128
mov ecx, 1
add dl, dl
jne 0xdd410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xdd4119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xdd4105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xdd4075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xdd413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xdd414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xdd4136
cmp eax, 0x7d00
jae 0xdd416d
cmp eax, 0x500
jb 0xdd4168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xdd4075
cmp eax, 0x7f
ja 0xdd4170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xdd4075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xdd419e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xdd4075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4492ac
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4492be
add esp, 0xfffffff0
call fcn.004039f4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419908
mov eax, dword [0x4569c8]
mov dword [eax + 4], ebx
mov dword [eax], 0x449650
mov eax, dword [0x4569d4]
mov dword [eax + 4], ebx
mov dword [eax], 0x44965c
mov eax, ebx
call fcn.00449668
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411acc]
call fcn.004036a4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411acc]
call fcn.004036a4
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411acc]
call fcn.004036a4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411acc]
call fcn.004036a4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411acc]
call fcn.004036a4
mov dword [ebx + 0x7c], 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, 0x445a80
push eax
push 0
push 0
mov eax, dword [0x456b28]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b330]
call fcn.0041c798
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b330]
call fcn.0041c798
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b330]
call fcn.0041c798
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00449adc
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4499a4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4499a4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4499a4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4493fb
call fcn.00403a4c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x449764
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd9c
push ebx
xor edx, edx
mov dword [ebp - 0x264], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x449934
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x449915
mov dl, 1
mov eax, dword [0x411ee8]
call fcn.004036a4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404448
lea eax, [ebp - 0x118]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
mov ebx, eax
call sub.KERNEL32.DLL_GetSystemDefaultLangID
movzx eax, ax
mov dword [ebp - 0x10], eax
dec ebx
test ebx, ebx
jl 0x449904
inc ebx
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x118]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
call fcn.0043768c
test al, al
jne 0x449801
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4498f7
xor edx, edx
push ebp
push 0x4498f0
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x449821
mov ebx, dword [ebp - 0x10]
jmp 0x449823
mov ebx, eax
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov dword [ebp - 0x260], ebx
mov byte [ebp - 0x25c], 0
lea ecx, [ebp - 0x260]
mov edx, 0x449944
lea eax, [ebp - 0x258]
call fcn.00408f0c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4498d9
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x44997c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4498d9
lea eax, [ebp - 0x264]
lea edx, [ebp - 0x218]
mov ecx, pe_nt_image_headers32
call fcn.004046b8
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x18]
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 - 0x18]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4498d9
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x218]
mov ecx, pe_nt_image_headers32
call fcn.004046b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4498f7
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x18], 4
dec dword [ebp - 0x14]
jne 0x4497e2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415a4c
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 0x44993b
lea eax, [ebp - 0x264]
call fcn.00404448
ret
Function at 0x44a27c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x457b44]
cmp byte [eax + 0xa5], 0
jne 0x44a2ed
cmp dword [0x457b5c], 0
jne 0x44a2ae
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x44a238
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x457b5c], eax
cmp dword [0x457b58], 0
jne 0x44a2c9
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x457b58], eax
cmp dword [0x457b60], 0
jne 0x44a2ed
push esp
push 0
push 0
push 0x44a1dc
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x457b60], eax
pop edx
ret

Function at 0x44a980
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x457b44]
cmp dword [eax + 0x30], 0
je 0x44aa2a
cmp dword [ebx + 0x94], 0
jne 0x44aa24
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44a910
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44aa24
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 0x44a9ea
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44aa24
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413e48
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44a9f9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44b588
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44b5bd
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404538
jmp 0x44b5ca
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040449c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44c6dc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44c71d
mov eax, esi
call fcn.00432e44
test al, al
je 0x44c71d
mov eax, dword [ebx + 0x84]
call fcn.00432be4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44c71d
push 0
mov eax, dword [ebx + 0x84]
call fcn.00432be4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret