joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4224ca
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x4224d5
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 0x422590
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 + 0x4af540]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4af540]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4af540]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4af540]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4af540]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4af540]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4af540]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4af540]
inc edx
sub edi, 8
dec esi
jne 0x4224f5
pop ebx
test edi, edi
je 0x4225a9
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x4af540]
inc edx
dec edi
jne 0x422594
pop edi
not eax
pop esi
ret

Function at 0x422a57
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 0x422a8b
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 0x422a86
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x422ab3
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x422a9c
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x10]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.004727d0
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 0x424e17
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
cmp dword [ebx], 0
jne 0x424e94
cmp dword [ebx + 4], 0xffffffff
jne 0x424e94
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.00424da7
cmp dword [ebp + 0x10], 1
pop edi
pop esi
jne 0x424e66
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x424e66
mov eax, 0x2000000
jmp 0x424e99
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042286d
add esp, 0x10
test eax, eax
jne 0x424e84
mov eax, dword [ebp + 0x10]
jmp 0x424e99
push eax
call fcn.0042489a
mov dword [ebx], eax
mov eax, dword [0x4d7870]
pop ecx
jmp 0x424e99
mov eax, 0x1000000
pop ebx
pop ebp
ret 0xc
Function at 0x42529e
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 0x425350
movzx ecx, word [esi]
test cx, cx
je 0x425350
mov eax, esi
mov edx, esi
movzx ecx, cx
cmp cx, 0x2f
je 0x4252e0
cmp cx, 0x5c
jne 0x4252e2
mov eax, edx
inc edx
inc edx
movzx ecx, word [edx]
test cx, cx
jne 0x4252d4
push edi
cmp eax, esi
je 0x42531f
sub eax, esi
mov edi, eax
sar edi, 1
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004789be
xor eax, eax
mov word [ebp + edi*2 - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.0042529e
add esp, 0x14
push ebx
mov edi, 0x208
push edi
lea eax, [ebp - 0x414]
push eax
call fcn.00424d74
push esi
push edi
lea eax, [ebp - 0x414]
push eax
call fcn.00424da7
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.00471f7b
leave
ret
Function at 0x427022
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x42702d
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 0x4270e8
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 + 0x4b0020]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4b0020]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4b0020]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4b0020]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4b0020]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4b0020]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4b0020]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4b0020]
inc edx
sub edi, 8
dec esi
jne 0x42704d
pop ebx
test edi, edi
je 0x427101
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x4b0020]
inc edx
dec edi
jne 0x4270ec
pop edi
not eax
pop esi
ret

Function at 0x427332
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 0x4273ec
mov eax, dword [esi + 0x1c]
mov ebx, dword [ebp + 0xc]
lea ecx, [ebx + eax]
mov eax, dword [esi + 0x20]
cmp ecx, eax
jb 0x4273d2
add eax, eax
mov dword [ebp - 4], eax
cmp eax, ecx
ja 0x427362
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 0x427382
mov eax, 0x300
jmp 0x427415
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 0x4273a2
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x427378
push dword [esi + 0x20]
push dword [esi + 0x18]
push edi
call fcn.004727d0
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.004727d0
add esp, 0xc
add dword [esi + 0x1c], ebx
mov eax, ebx
jmp 0x427415
mov eax, dword [esi]
cmp eax, edi
je 0x42740c
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 0x427415
mov dword [esi + 0xc], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x42746f
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 0x4274b9
mov eax, dword [esi + 0x6c]
mov edi, dword [esi + 0x68]
cmp eax, edi
jae 0x4274f5
sub edi, eax
cmp edi, dword [ebp + 0xc]
jbe 0x427491
mov edi, dword [ebp + 0xc]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.004727d0
add dword [esi + 0x6c], edi
add dword [esi + 0x54], edi
push edi
push dword [ebp + 8]
push dword [esi + 0x58]
call fcn.00427022
add esp, 0x18
mov dword [esi + 0x58], eax
mov eax, edi
jmp 0x4274f7
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x4274ee
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 0x4274f5
mov edi, dword [ebp + 0xc]
add dword [esi + 0x54], edi
push edi
push dword [ebp + 8]
push dword [esi + 0x58]
call fcn.00427022
add esp, 0xc
jmp 0x4274b2
mov dword [esi + 0xc], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebp
ret 8

Function at 0x427e19
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.00425c69
xor ebx, ebx
lea ecx, [esi + 0x6af70]
add esp, 0xc
lea eax, [esi + 0x6af78]
mov dword [eax], ebx
cmp dword [ecx], ebx
jne 0x427e5f
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.00472b80
mov eax, edi
shl eax, 3
movzx ecx, word [eax + 0x4affd2]
mov dword [esi + 0x6af98], ecx
movzx ecx, word [eax + 0x4affd0]
mov dword [esi + 0x6af9c], ecx
movzx ecx, word [eax + 0x4affd4]
mov dword [esi + 0x6afa0], ecx
movzx eax, word [eax + 0x4affd6]
add esp, 0xc
cmp edi, 2
mov dword [esi + 0x6af94], eax
jg 0x427ec2
mov eax, dword [esp + 0x18]
or word [eax], 4
jmp 0x427ecf
cmp edi, 8
jl 0x427ecf
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 0x427f39
cmp eax, 0xffffffff
je 0x427f39
mov dword [esi + 0x6af8c], ebx
cmp eax, 0x106
jae 0x427f11
push esi
call fcn.0042672d
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 0x427f17
jmp 0x427f49
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4289f7
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 0x428c0c
push edi
mov edi, 0x7fff
cmp dword [esi + 0x6af90], 3
jb 0x428a71
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 0x428ab2
mov eax, dword [esi + 0x6af84]
sub eax, dword [ebp - 4]
cmp eax, 0x7efa
ja 0x428ab2
mov ecx, dword [esi + 0x6af90]
lea eax, [esi + 0x6afa0]
cmp dword [eax], ecx
jbe 0x428a99
mov dword [eax], ecx
push dword [ebp - 4]
push esi
call fcn.0042656b
mov ebx, eax
mov eax, dword [esi + 0x6af90]
pop ecx
pop ecx
cmp ebx, eax
jbe 0x428ab2
mov ebx, eax
cmp ebx, 3
jb 0x428b86
lea eax, [ebx - 3]
push eax
mov eax, dword [esi + 0x6af84]
sub eax, dword [esi + 0x6af88]
push eax
push esi
call fcn.0042604c
sub dword [esi + 0x6af90], ebx
add esp, 0xc
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x6af90]
cmp ebx, dword [esi + 0x6af98]
ja 0x428b44
cmp eax, 3
jb 0x428b44
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 0x428af2
jmp 0x428ba9
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.00425c69
add esp, 0xc
jmp 0x428baf
mov eax, dword [esi + 0x6af84]
movzx eax, byte [eax + esi + 0x1af70]
push eax
push 0
push esi
call fcn.0042604c
add esp, 0xc
dec dword [esi + 0x6af90]
mov dword [ebp + 8], eax
inc dword [esi + 0x6af84]
cmp dword [ebp + 8], 0
je 0x428beb
mov eax, dword [esi + 0x6af74]
test eax, eax
jl 0x428bc8
lea ecx, [eax + esi + 0x1af70]
jmp 0x428bca
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 0
sub edx, eax
push edx
push ecx
push esi
call fcn.0042884b
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x428bfe
push esi
call fcn.0042672d
pop ecx
cmp dword [esi + 0x6af90], 0
jne 0x428a21
pop edi
mov eax, dword [esi + 0x6af74]
test eax, eax
jl 0x428c1f
lea ecx, [eax + esi + 0x1af70]
jmp 0x428c21
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 1
sub edx, eax
push edx
push ecx
push esi
call fcn.0042884b
add esp, 0x10
pop esi
pop ebx
leave
ret
Function at 0x429707
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
lea ebp, [esp - 0x7fc]
sub esp, 0x87c
mov eax, dword [0x4d4268]
xor eax, ebp
mov dword [ebp + 0x7f8], eax
mov eax, dword [ebp + 0x808]
push ebx
mov ebx, dword [ebp + 0x80c]
push esi
push edi
mov edi, dword [ebp + 0x804]
mov dword [ebp - 0x78], eax
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp + 0x3e8], ax
lea eax, [ebp + 0x3ea]
push eax
mov dword [ebp - 0x80], edi
call fcn.00472b80
add esp, 0xc
test ebx, ebx
je 0x429770
push 4
push 0
push 0
push ebx
push edi
call fcn.004295c7
add esp, 0x14
push dword [ebp - 0x78]
lea eax, [ebp + 0x3e8]
push eax
call fcn.00478e5f
mov edi, 0x4ab8dc
lea eax, [ebp + 0x3e8]
push edi
push eax
call fcn.00478e31
lea eax, [ebp + 0x3e8]
push ebx
push eax
call fcn.00478e31
lea eax, [ebp + 0x3e8]
push 0x4b05f8
push eax
call fcn.00478e31
add esp, 0x20
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x3e8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x7c], eax
cmp eax, 0xffffffff
jne 0x4297e5
xor eax, eax
mov ecx, dword [ebp + 0x7f8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00471f7b
add ebp, 0x7fc
leave
ret
mov byte [ebp - 0x71], 1
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x42991c
lea eax, [ebp - 0x44]
push 0x4b05f4
push eax
call fcn.00472202
pop ecx
pop ecx
test eax, eax
je 0x42992b
lea eax, [ebp - 0x44]
push 0x4b05ec
push eax
call fcn.00472202
pop ecx
pop ecx
test eax, eax
je 0x42992b
xor eax, eax
push esi
push eax
mov word [ebp + 0x5f0], ax
lea eax, [ebp + 0x5f2]
push eax
call fcn.00472b80
test byte [ebp - 0x70], 0x10
push ebx
lea eax, [ebp + 0x5f0]
push eax
je 0x429897
call fcn.00478e31
lea eax, [ebp + 0x5f0]
push edi
push eax
call fcn.00478e31
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp + 0x5f0]
push eax
call fcn.00478e31
lea eax, [ebp + 0x5f0]
push eax
push dword [ebp - 0x78]
push dword [ebp - 0x80]
call fcn.00429707
add esp, 0x30
test eax, eax
je 0x4297cb
jmp 0x42992b
call fcn.00478e5f
lea eax, [ebp + 0x5f0]
push edi
push eax
call fcn.00478e31
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp + 0x5f0]
push eax
call fcn.00478e31
xor eax, eax
push esi
push eax
mov word [ebp + 0x1e0], ax
lea eax, [ebp + 0x1e2]
push eax
call fcn.00472b80
push dword [ebp - 0x78]
lea eax, [ebp + 0x1e0]
push eax
call fcn.00478e31
lea eax, [ebp + 0x5f0]
push eax
lea eax, [ebp + 0x1e0]
push eax
call fcn.00478e31
add esp, 0x40
push 2
push 0
lea eax, [ebp + 0x1e0]
push eax
lea eax, [ebp + 0x5f0]
push eax
push dword [ebp - 0x80]
call fcn.004295c7
add esp, 0x14
test eax, eax
jne 0x4297cb
jmp 0x42992b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x42993a
mov byte [ebp - 0x71], 0
cmp byte [ebp - 0x71], 0
jne 0x4297e9
xor esi, esi
inc esi
jmp 0x42993c
xor esi, esi
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
jmp 0x4297cd
Function at 0x42c11c
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 0x42c132
push 8
pop edi
push 2
call esi
test ax, ax
jge 0x42c13e
or edi, 1
push 1
call esi
test ax, ax
jge 0x42c14a
or edi, 2
push 0x10
call esi
test ax, ax
jge 0x42c156
or edi, 4
push 0x12
call esi
test ax, ax
jge 0x42c162
or edi, 0x20
mov eax, edi
pop edi
pop esi
ret

Function at 0x42c2ea
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 0x42c371
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x42c370
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x42c369
lea eax, [esi + 2]
push edi
push eax
call fcn.00471ed2
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.004727d0
mov eax, dword [0x4d789c]
add esp, 0xc
test eax, eax
je 0x42c35c
push eax
call fcn.004736f7
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 0x42e594
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 0x42e5c2
cmp ebx, dword [esi + 0x50]
je 0x42e5c2
cmp byte [esi + 0xb4], 0
jne 0x42e5c2
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0x50]
cmp ebx, eax
je 0x42e684
push edi
test eax, eax
je 0x42e615
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.0042ddab
mov dword [esi + 0x50], edi
test ebx, ebx
je 0x42e683
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
cmp eax, esi
jne 0x42e683
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc4]
test al, al
je 0x42e683
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xd0]
test al, al
je 0x42e683
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.0042ddab
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x42e890
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.0042aafd
test eax, eax
jle 0x42e8df
push ebx
mov ecx, edi
mov byte [ebp - 1], 0
call fcn.0042ab1d
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 0x42e940
mov ecx, edi
inc ebx
call fcn.0042aafd
cmp ebx, eax
jl 0x42e8ae
mov eax, dword [ebp + 8]
sub eax, 0x100
je 0x42e999
sub eax, 4
je 0x42e944
dec eax
dec eax
jne 0x42e990
push dword [ebp + 0xc]
mov word [ebp + 8], ax
lea edi, [ebp + 0xa]
stosw word es:[edi], ax
call fcn.00479a7a
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 0x42d6a5
call dword [eax + pe_nt_image_headers32]
mov esi, eax
test esi, esi
je 0x42e990
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 0x42e992
cmp dword [esi + 0x50], 0
je 0x42e990
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.0042c11c
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 0x42e990
cmp dword [esi + 0x50], 0
je 0x42e9e8
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
call dword [eax + 0xc4]
test al, al
je 0x42e9e8
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
call dword [eax + 0xd0]
test al, al
je 0x42e9e8
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
push str.RichEditUI
call dword [eax + 0xc]
push eax
call fcn.00478537
pop ecx
pop ecx
test eax, eax
je 0x42e9e8
mov ecx, dword [esi + 0x50]
call fcn.0044b18d
test al, al
jne 0x42e990
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setge al
movzx eax, al
push eax
mov ecx, esi
call fcn.0042e744
jmp 0x42e940
Function at 0x430176
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.00472b80
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.00430106
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x430225
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x430225
lea eax, [ebp - 0x20c]
push eax
call fcn.0040c5f3
mov ebx, eax
test ebx, ebx
je 0x430225
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 0x430262
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.00471f7b
leave
ret