joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420a74
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0x14
mov eax, 0x4a9118
call fcn.0047276e
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], esi
call fcn.0040bf81
pop ecx
push eax
push 0x4abbbc
push 1
push esi
push 0x4b195c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
cmp ebx, esi
jl 0x420bd2
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
lea esi, [edi + 4]
mov eax, dword [esi]
push eax
push ecx
call dword [edx + 0x50]
mov ebx, eax
test ebx, ebx
jl 0x420bd2
push esi
lea ecx, [ebp - 0x18]
call fcn.0040d4e4
push 0x5c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0041e3ac
xor esi, esi
cmp eax, esi
jle 0x420b1d
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
call fcn.0041675d
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00416918
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.0040c248
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [edi + 8]
cmp dword [eax - 0xc], esi
jle 0x420b2f
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x2c]
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push 0x4b1e4c
push eax
mov byte [ebp - 4], 3
call dword [ecx]
mov ebx, eax
cmp ebx, esi
jl 0x420bb6
push edi
lea ecx, [ebp - 0x14]
call fcn.0040d4e4
push 0x5c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.0041e3ac
cmp eax, esi
jle 0x420b9b
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
call fcn.0041675d
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.00416918
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov byte [ebp - 4], 4
call fcn.0040c248
push dword [ebp - 0x14]
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov edi, dword [edi]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push 1
push edi
push eax
call dword [ecx + 0x18]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov ebx, eax
call fcn.0040c248
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 1
cmp eax, esi
je 0x420bc7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040c248
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x420be3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
call fcn.00472846
ret

Function at 0x421a0f
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
mov esi, ecx
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x20], eax
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x24], eax
call edi
mov dword [esi + 0x18], eax
lea eax, [esi + 0x1c]
push eax
push ebx
push esi
push 0x4219fd
push ebx
push ebx
call fcn.00478033
mov dword [esi + 0x14], eax
mov esi, dword [esi + 0x18]
add esp, 0x18
cmp esi, ebx
je 0x421a62
push 1
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
pop ebx
ret
Function at 0x42257e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x422589
xor eax, eax
ret
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x14]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x422644
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4af5c8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4af5c8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4af5c8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4af5c8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4af5c8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4af5c8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4af5c8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4af5c8]
inc edx
sub edi, 8
dec esi
jne 0x4225a9
pop ebx
test edi, edi
je 0x42265d
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x4af5c8]
inc edx
dec edi
jne 0x422648
pop edi
not eax
pop esi
ret

Function at 0x422b0b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x422b3f
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x422b3a
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x422b67
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x422b50
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x10]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.00472880
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x424ecb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
cmp dword [ebx], 0
jne 0x424f48
cmp dword [ebx + 4], 0xffffffff
jne 0x424f48
push esi
push edi
lea edi, [ebx + 0x138]
push edi
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x4ab8dc
push esi
push edi
call fcn.00424e5b
cmp dword [ebp + 0x10], 1
pop edi
pop esi
jne 0x424f1a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x424f1a
mov eax, 0x2000000
jmp 0x424f4d
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00422921
add esp, 0x10
test eax, eax
jne 0x424f38
mov eax, dword [ebp + 0x10]
jmp 0x424f4d
push eax
call fcn.0042494e
mov dword [ebx], eax
mov eax, dword [0x4d7870]
pop ecx
jmp 0x424f4d
mov eax, 0x1000000
pop ebx
pop ebp
ret 0xc
Function at 0x425352
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4d4268]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x425404
movzx ecx, word [esi]
test cx, cx
je 0x425404
mov eax, esi
mov edx, esi
movzx ecx, cx
cmp cx, 0x2f
je 0x425394
cmp cx, 0x5c
jne 0x425396
mov eax, edx
inc edx
inc edx
movzx ecx, word [edx]
test cx, cx
jne 0x425388
push edi
cmp eax, esi
je 0x4253d3
sub eax, esi
mov edi, eax
sar edi, 1
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00478abe
xor eax, eax
mov word [ebp + edi*2 - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.00425352
add esp, 0x14
push ebx
mov edi, 0x208
push edi
lea eax, [ebp - 0x414]
push eax
call fcn.00424e28
push esi
push edi
lea eax, [ebp - 0x414]
push eax
call fcn.00424e5b
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00472031
leave
ret
Function at 0x4270d6
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x4270e1
xor eax, eax
ret
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x14]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x42719c
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4b00a8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4b00a8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4b00a8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4b00a8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4b00a8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4b00a8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4b00a8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4b00a8]
inc edx
sub edi, 8
dec esi
jne 0x427101
pop ebx
test edi, edi
je 0x4271b5
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x4b00a8]
inc edx
dec edi
jne 0x4271a0
pop edi
not eax
pop esi
ret

Function at 0x4273e6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x18], edi
je 0x4274a0
mov eax, dword [esi + 0x1c]
mov ebx, dword [ebp + 0xc]
lea ecx, [ebx + eax]
mov eax, dword [esi + 0x20]
cmp ecx, eax
jb 0x427486
add eax, eax
mov dword [ebp - 4], eax
cmp eax, ecx
ja 0x427416
mov dword [ebp - 4], ecx
push edi
push dword [ebp - 4]
push edi
push 4
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
cmp ebx, edi
jne 0x427436
mov eax, 0x300
jmp 0x4274c9
push dword [ebp - 4]
push edi
push edi
push 0xf001f
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x427456
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42742c
push dword [esi + 0x20]
push dword [esi + 0x18]
push edi
call fcn.00472880
add esp, 0xc
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [esi + 4], ebx
mov ebx, dword [ebp + 0xc]
mov dword [esi + 0x20], eax
mov dword [esi + 0x18], edi
mov eax, dword [esi + 0x1c]
add eax, dword [esi + 0x18]
push ebx
push dword [ebp + 8]
push eax
call fcn.00472880
add esp, 0xc
add dword [esi + 0x1c], ebx
mov eax, ebx
jmp 0x4274c9
mov eax, dword [esi]
cmp eax, edi
je 0x4274c0
push edi
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
jmp 0x4274c9
mov dword [esi + 0xc], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x427523
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [esi + 0x64]
push edi
test ecx, ecx
je 0x42756d
mov eax, dword [esi + 0x6c]
mov edi, dword [esi + 0x68]
cmp eax, edi
jae 0x4275a9
sub edi, eax
cmp edi, dword [ebp + 0xc]
jbe 0x427545
mov edi, dword [ebp + 0xc]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.00472880
add dword [esi + 0x6c], edi
add dword [esi + 0x54], edi
push edi
push dword [ebp + 8]
push dword [esi + 0x58]
call fcn.004270d6
add esp, 0x18
mov dword [esi + 0x58], eax
mov eax, edi
jmp 0x4275ab
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x4275a2
push 0
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4275a9
mov edi, dword [ebp + 0xc]
add dword [esi + 0x54], edi
push edi
push dword [ebp + 8]
push dword [esi + 0x58]
call fcn.004270d6
add esp, 0xc
jmp 0x427566
mov dword [esi + 0xc], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebp
ret 8

Function at 0x427ecd
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
push 7
pop ecx
lea eax, [edi - 1]
cmp ecx, eax
sbb al, al
inc al
push str.bad_pack_level
push eax
push esi
call fcn.00425d1d
xor ebx, ebx
lea ecx, [esi + 0x6af70]
add esp, 0xc
lea eax, [esi + 0x6af78]
mov dword [eax], ebx
cmp dword [ecx], ebx
jne 0x427f13
mov dword [eax], 1
mov dword [ecx], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
push ebx
push eax
mov dword [esi + 0x6af6c], ebx
call fcn.00472c30
mov eax, edi
shl eax, 3
movzx ecx, word [eax + 0x4b005a]
mov dword [esi + 0x6af98], ecx
movzx ecx, word [eax + 0x4b0058]
mov dword [esi + 0x6af9c], ecx
movzx ecx, word [eax + 0x4b005c]
mov dword [esi + 0x6afa0], ecx
movzx eax, word [eax + 0x4b005e]
add esp, 0xc
cmp edi, 2
mov dword [esi + 0x6af94], eax
jg 0x427f76
mov eax, dword [esp + 0x18]
or word [eax], 4
jmp 0x427f83
cmp edi, 8
jl 0x427f83
mov eax, dword [esp + 0x18]
or word [eax], 2
push 0x10000
lea edi, [esi + 0x1af70]
push edi
push esi
mov dword [esi + 0x6af84], ebx
mov dword [esi + 0x6af74], ebx
call dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x6af90], eax
cmp eax, ebx
je 0x427fed
cmp eax, 0xffffffff
je 0x427fed
mov dword [esi + 0x6af8c], ebx
cmp eax, 0x106
jae 0x427fc5
push esi
call fcn.004267e1
pop ecx
mov dword [esi + 0x6af7c], ebx
movzx eax, byte [edi + ebx]
mov ecx, dword [esi + 0x6af7c]
shl ecx, 5
xor eax, ecx
and eax, 0x7fff
inc ebx
mov dword [esi + 0x6af7c], eax
cmp ebx, 2
jb 0x427fcb
jmp 0x427ffd
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], ebx
pop edi
pop esi
pop ebx
ret
Function at 0x428aab
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x428cc0
push edi
mov edi, 0x7fff
cmp dword [esi + 0x6af90], 3
jb 0x428b25
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, edi
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, edi
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
cmp dword [ebp - 4], 0
je 0x428b66
mov eax, dword [esi + 0x6af84]
sub eax, dword [ebp - 4]
cmp eax, 0x7efa
ja 0x428b66
mov ecx, dword [esi + 0x6af90]
lea eax, [esi + 0x6afa0]
cmp dword [eax], ecx
jbe 0x428b4d
mov dword [eax], ecx
push dword [ebp - 4]
push esi
call fcn.0042661f
mov ebx, eax
mov eax, dword [esi + 0x6af90]
pop ecx
pop ecx
cmp ebx, eax
jbe 0x428b66
mov ebx, eax
cmp ebx, 3
jb 0x428c3a
lea eax, [ebx - 3]
push eax
mov eax, dword [esi + 0x6af84]
sub eax, dword [esi + 0x6af88]
push eax
push esi
call fcn.00426100
sub dword [esi + 0x6af90], ebx
add esp, 0xc
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x6af90]
cmp ebx, dword [esi + 0x6af98]
ja 0x428bf8
cmp eax, 3
jb 0x428bf8
dec ebx
inc dword [esi + 0x6af84]
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [esi + ecx + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, edi
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, edi
dec ebx
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
jne 0x428ba6
jmp 0x428c5d
add dword [esi + 0x6af84], ebx
mov eax, dword [esi + 0x6af84]
lea ecx, [eax + esi]
movzx eax, byte [ecx + 0x1af70]
lea edx, [esi + 0x6af7c]
mov dword [edx], eax
movzx ecx, byte [ecx + 0x1af71]
shl eax, 5
push str.Call_UPDATE_HASH___MIN_MATCH_3_more_times
xor ecx, eax
and ecx, edi
push 1
push esi
xor ebx, ebx
mov dword [edx], ecx
call fcn.00425d1d
add esp, 0xc
jmp 0x428c63
mov eax, dword [esi + 0x6af84]
movzx eax, byte [eax + esi + 0x1af70]
push eax
push 0
push esi
call fcn.00426100
add esp, 0xc
dec dword [esi + 0x6af90]
mov dword [ebp + 8], eax
inc dword [esi + 0x6af84]
cmp dword [ebp + 8], 0
je 0x428c9f
mov eax, dword [esi + 0x6af74]
test eax, eax
jl 0x428c7c
lea ecx, [eax + esi + 0x1af70]
jmp 0x428c7e
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 0
sub edx, eax
push edx
push ecx
push esi
call fcn.004288ff
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x428cb2
push esi
call fcn.004267e1
pop ecx
cmp dword [esi + 0x6af90], 0
jne 0x428ad5
pop edi
mov eax, dword [esi + 0x6af74]
test eax, eax
jl 0x428cd3
lea ecx, [eax + esi + 0x1af70]
jmp 0x428cd5
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 1
sub edx, eax
push edx
push ecx
push esi
call fcn.004288ff
add esp, 0x10
pop esi
pop ebx
leave
ret
Function at 0x42c1d0
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
xor edi, edi
call esi
test ax, ax
jge 0x42c1e6
push 8
pop edi
push 2
call esi
test ax, ax
jge 0x42c1f2
or edi, 1
push 1
call esi
test ax, ax
jge 0x42c1fe
or edi, 2
push 0x10
call esi
test ax, ax
jge 0x42c20a
or edi, 4
push 0x12
call esi
test ax, ax
jge 0x42c216
or edi, 0x20
mov eax, edi
pop edi
pop esi
ret

Function at 0x42c39e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x42c425
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x42c424
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x42c41d
lea eax, [esi + 2]
push edi
push eax
call fcn.00471f88
pop ecx
mov edi, eax
push esi
push ebx
mov byte [edi + esi], 0
mov byte [edi + esi + 1], 0
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push edi
call fcn.00472880
mov eax, dword [0x4d789c]
add esp, 0xc
test eax, eax
je 0x42c410
push eax
call fcn.004737a7
pop ecx
mov dword [0x4d789c], edi
mov dword [0x4d78a0], esi
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop esi
pop ebp
ret

Function at 0x42e648
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esi]
mov ebx, dword [ebp + 8]
cmp eax, ecx
je 0x42e676
cmp ebx, dword [esi + 0x50]
je 0x42e676
cmp byte [esi + 0xb4], 0
jne 0x42e676
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0x50]
cmp ebx, eax
je 0x42e738
push edi
test eax, eax
je 0x42e6c9
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x14
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x50]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0xfc]
xor edi, edi
push edi
push edi
push edi
push str.killfocus
push dword [esi + 0x50]
mov ecx, esi
call fcn.0042de5f
mov dword [esi + 0x50], edi
test ebx, ebx
je 0x42e737
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
cmp eax, esi
jne 0x42e737
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc4]
test al, al
je 0x42e737
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xd0]
test al, al
je 0x42e737
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [esi + 0x50], ebx
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x50]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0xfc]
xor eax, eax
push eax
push eax
push eax
push str.setfocus
push dword [esi + 0x50]
mov ecx, esi
call fcn.0042de5f
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x42e944
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xd0]
mov ecx, edi
xor ebx, ebx
call fcn.0042abb1
test eax, eax
jle 0x42e993
push ebx
mov ecx, edi
mov byte [ebp - 1], 0
call fcn.0042abd1
mov edx, dword [eax]
lea ecx, [ebp - 1]
push ecx
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [edx]
cmp byte [ebp - 1], 0
jne 0x42e9f4
mov ecx, edi
inc ebx
call fcn.0042abb1
cmp ebx, eax
jl 0x42e962
mov eax, dword [ebp + 8]
sub eax, 0x100
je 0x42ea4d
sub eax, 4
je 0x42e9f8
dec eax
dec eax
jne 0x42ea44
push dword [ebp + 0xc]
mov word [ebp + 8], ax
lea edi, [ebp + 0xa]
stosw word es:[edi], ax
call fcn.00479b7a
pop ecx
mov ecx, dword [esi + 0x4c]
push 0x8000000a
lea edx, [ebp + 8]
push edx
mov word [ebp + 8], ax
mov eax, dword [ecx]
push 0x42d759
call dword [eax + pe_nt_image_headers32]
mov esi, eax
test esi, esi
je 0x42ea44
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xe4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov al, 1
jmp 0x42ea46
cmp dword [esi + 0x50], 0
je 0x42ea44
xor eax, eax
push 7
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x10], ax
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x64]
mov dword [ebp - 0x24], 6
mov dword [ebp - 0x14], eax
call fcn.0042c1d0
mov word [ebp - 0xe], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x50]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0xfc]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x42ea44
cmp dword [esi + 0x50], 0
je 0x42ea9c
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
call dword [eax + 0xc4]
test al, al
je 0x42ea9c
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
call dword [eax + 0xd0]
test al, al
je 0x42ea9c
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
push str.RichEditUI
call dword [eax + 0xc]
push eax
call fcn.00478637
pop ecx
pop ecx
test eax, eax
je 0x42ea9c
mov ecx, dword [esi + 0x50]
call fcn.0044b23c
test al, al
jne 0x42ea44
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setge al
movzx eax, al
push eax
mov ecx, esi
call fcn.0042e7f8
jmp 0x42e9f4
Function at 0x43022a
Capabilities:
Check if file exists
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4d4268]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov edi, ecx
call fcn.00472c30
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.Shcore.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, edi
call fcn.004301ba
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4302d9
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4302d9
lea eax, [ebp - 0x20c]
push eax
call fcn.0040c5f3
mov ebx, eax
test ebx, ebx
je 0x4302d9
push str.SetProcessDpiAwareness
push ebx
call esi
push str.GetProcessDpiAwareness
push ebx
mov dword [edi + 0x18], eax
call esi
push str.GetDpiForMonitor
push ebx
mov dword [edi + 0x1c], eax
call esi
mov dword [edi + 0x20], eax
push str.User32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x430316
push str.SetProcessDPIAware
push ebx
call esi
push str.IsProcessDPIAware
push ebx
mov dword [edi + 0x24], eax
call esi
push str.LogicalToPhysicalPoint
push ebx
mov dword [edi + 0x28], eax
call esi
push str.PhysicalToLogicalPoint
push ebx
mov dword [edi + 0x2c], eax
call esi
mov dword [edi + 0x30], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00472031
leave
ret