joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4184b0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4c0760]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, dword [ebp - 8]
mov dword [ebp - 0xc], eax
test esi, esi
je 0x41852d
cmp dword [edi + 0x14], 8
mov dword [ebp - 8], 0
jb 0x4184fe
mov edi, dword [edi]
push 0x4aaeec
lea eax, [ebp - 8]
push edi
push eax
call fcn.00461a1b
add esp, 0xc
test eax, eax
jne 0x41852d
push dword [ebp - 8]
push 1
push dword [ebp - 0xc]
push esi
call fcn.00461445
push dword [ebp - 8]
call fcn.00461533
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045fbcc
mov esp, ebp
pop ebp
ret
Function at 0x418ec0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push str.click
push dword [edi]
call fcn.0046352b
add esp, 8
test eax, eax
jne 0x418fac
mov ecx, dword [edi + 0x108]
test ecx, ecx
je 0x418fac
mov eax, dword [ecx]
lea edx, [ebp - 0x210]
push esi
push edx
call dword [eax + 4]
mov esi, eax
mov ecx, edi
push 0x4a935c
lea eax, [ebp - 0x108]
push eax
call fcn.00420f7a
push esi
lea ecx, [ebp - 0x84]
push ecx
mov ecx, eax
call fcn.00420f5a
push 0x4a9364
lea ecx, [ebp - 0x18c]
push ecx
mov ecx, eax
call fcn.00420f7a
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x18c]
lea ecx, [ebp - 0x188]
pop esi
cmp eax, ecx
je 0x418f5b
push eax
call fcn.00460424
add esp, 4
mov eax, dword [ebp - 0x84]
lea ecx, [ebp - 0x80]
cmp eax, ecx
je 0x418f71
push eax
call fcn.00460424
add esp, 4
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
cmp eax, ecx
je 0x418f8a
push eax
call fcn.00460424
add esp, 4
mov eax, dword [ebp - 0x210]
lea ecx, [ebp - 0x20c]
cmp eax, ecx
je 0x418fa3
push eax
call fcn.00460424
add esp, 4
push edi
lea ecx, [ebx - 0x20]
call fcn.004193e0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x419980
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push str.click
push dword [edi]
call fcn.0046352b
add esp, 8
test eax, eax
jne 0x419a6c
mov ecx, dword [edi + 0x108]
test ecx, ecx
je 0x419a6c
mov eax, dword [ecx]
lea edx, [ebp - 0x210]
push esi
push edx
call dword [eax + 4]
mov esi, eax
mov ecx, edi
push 0x4a935c
lea eax, [ebp - 0x108]
push eax
call fcn.00420f7a
push esi
lea ecx, [ebp - 0x84]
push ecx
mov ecx, eax
call fcn.00420f5a
push 0x4a9364
lea ecx, [ebp - 0x18c]
push ecx
mov ecx, eax
call fcn.00420f7a
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x18c]
lea ecx, [ebp - 0x188]
pop esi
cmp eax, ecx
je 0x419a1b
push eax
call fcn.00460424
add esp, 4
mov eax, dword [ebp - 0x84]
lea ecx, [ebp - 0x80]
cmp eax, ecx
je 0x419a31
push eax
call fcn.00460424
add esp, 4
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
cmp eax, ecx
je 0x419a4a
push eax
call fcn.00460424
add esp, 4
mov eax, dword [ebp - 0x210]
lea ecx, [ebp - 0x20c]
cmp eax, ecx
je 0x419a63
push eax
call fcn.00460424
add esp, 4
push edi
lea ecx, [ebx - 0x20]
call fcn.0041a280
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41a730
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push str.click
push dword [edi]
call fcn.0046352b
add esp, 8
test eax, eax
jne 0x41a81c
mov ecx, dword [edi + 0x108]
test ecx, ecx
je 0x41a81c
mov eax, dword [ecx]
lea edx, [ebp - 0x210]
push esi
push edx
call dword [eax + 4]
mov esi, eax
mov ecx, edi
push 0x4a935c
lea eax, [ebp - 0x108]
push eax
call fcn.00420f7a
push esi
lea ecx, [ebp - 0x84]
push ecx
mov ecx, eax
call fcn.00420f5a
push 0x4a9364
lea ecx, [ebp - 0x18c]
push ecx
mov ecx, eax
call fcn.00420f7a
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x18c]
lea ecx, [ebp - 0x188]
pop esi
cmp eax, ecx
je 0x41a7cb
push eax
call fcn.00460424
add esp, 4
mov eax, dword [ebp - 0x84]
lea ecx, [ebp - 0x80]
cmp eax, ecx
je 0x41a7e1
push eax
call fcn.00460424
add esp, 4
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
cmp eax, ecx
je 0x41a7fa
push eax
call fcn.00460424
add esp, 4
mov eax, dword [ebp - 0x210]
lea ecx, [ebp - 0x20c]
cmp eax, ecx
je 0x41a813
push eax
call fcn.00460424
add esp, 4
push edi
lea ecx, [ebx - 0x20]
call fcn.0041ac10
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41e720
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4c0760]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x4abdbc
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x41e78e
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x4c2c033
push eax
push 0x40
push 5
push edi
mov byte [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0
push 5
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
push 5
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0045fbcc
mov esp, ebp
pop ebp
ret

Function at 0x41eaf0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497298
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x4c0760]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x4c7968]
mov dword [ebp - 0x10], 0
test al, 1
jne 0x41eb5b
or eax, 1
mov dword [0x4c7980], 7
mov dword [0x4c7968], eax
xor eax, eax
push 0x49a490
mov dword [0x4c797c], 0
mov word [0x4c796c], ax
call fcn.004607a9
add esp, 4
cmp dword [0x4c797c], 0
jne 0x41ec3d
lea ecx, [ebp - 0x40]
call fcn.0041f000
push str.data_
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00410850
mov ebx, eax
mov edi, 0x4c796c
add esp, 4
cmp ebx, edi
je 0x41ebcf
cmp dword [0x4c7980], 8
jb 0x41ebab
push dword [0x4c796c]
call fcn.0046080a
add esp, 4
xor eax, eax
mov dword [0x4c7980], 7
push ebx
mov ecx, edi
mov dword [0x4c797c], 0
mov word [0x4c796c], ax
call fcn.0040c2e0
cmp dword [ebp - 0x14], 8
jb 0x41ebe0
push dword [ebp - 0x28]
call fcn.0046080a
add esp, 4
xor eax, eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x41ec0c
push dword [ebp - 0x40]
call fcn.0046080a
add esp, 4
cmp dword [0x4c7980], 8
mov eax, edi
cmovae eax, dword [0x4c796c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41ec3d
cmp dword [0x4c7980], 8
push eax
cmovae edi, dword [0x4c796c]
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0xffffffffffffffff
push 0
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x4c796c
mov word [esi], ax
call fcn.0040e1b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41f000
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49733a
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x4c0760]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x4c79bc]
mov dword [ebp - 0x27c], 0
test al, 1
jne 0x41f090
or eax, 1
mov dword [0x4c79bc], eax
xor eax, eax
mov dword [ebp - 4], 0
push eax
push 0x4a906c
mov ecx, 0x4c79c0
mov dword [0x4c79d4], 7
mov dword [0x4c79d0], 0
mov word [0x4c79c0], ax
call fcn.0040e3a0
push 0x49a5b0
call fcn.004607a9
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [0x4c79d0], 0
jne 0x41f211
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x41f0c7
push 0x4a906c
mov ecx, esi
call fcn.0040e040
jmp 0x41f233
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x260]
call fcn.0040e040
push 0x4ab128
mov edx, eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x278]
call fcn.00410850
push 0x4c16cc
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x248]
call fcn.00410770
push 0x4ab128
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x230]
call fcn.00410850
add esp, 0xc
cmp dword [ebp - 0x234], 8
jb 0x41f138
push dword [ebp - 0x248]
call fcn.0046080a
add esp, 4
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
cmp dword [ebp - 0x264], 8
jb 0x41f16c
push dword [ebp - 0x278]
call fcn.0046080a
add esp, 4
xor eax, eax
mov dword [ebp - 0x264], 7
mov dword [ebp - 0x268], 0
mov word [ebp - 0x278], ax
mov byte [ebp - 4], 7
cmp dword [ebp - 0x24c], 8
jb 0x41f1a4
push dword [ebp - 0x260]
call fcn.0046080a
add esp, 4
xor eax, eax
mov dword [ebp - 0x24c], 7
cmp dword [ebp - 0x21c], 8
mov word [ebp - 0x260], ax
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push 0
push eax
mov dword [ebp - 0x250], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x230]
mov ecx, 0x4c79c0
push eax
call fcn.0040e1b0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x21c], 8
jb 0x41f211
push dword [ebp - 0x230]
call fcn.0046080a
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x4c79c0
mov word [esi], ax
call fcn.0040e1b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045fbcc
mov esp, ebp
pop ebp
ret
Function at 0x41f250
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4c0760]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 0
push eax
push 0x104
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
test eax, eax
jne 0x41f29f
push eax
mov word [esi], ax
push 0x4a906c
jmp 0x41f2d7
xor eax, eax
mov word [esi], ax
cmp word [ebp - 0x20c], ax
jne 0x41f2b1
xor ecx, ecx
jmp 0x41f2cf
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f2c0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.0040e3a0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0045fbcc
mov esp, ebp
pop ebp
ret

Function at 0x41f2f0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497386
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x4c0760]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x4c79d8]
mov edi, 0x4c79dc
mov dword [ebp - 0x10], 0
test al, 1
jne 0x41f37b
or eax, 1
mov dword [0x4c79d8], eax
xor eax, eax
mov dword [ebp - 4], 0
push eax
push 0x4a906c
mov ecx, edi
mov dword [0x4c79f0], 7
mov dword [0x4c79ec], 0
mov word [0x4c79dc], ax
call fcn.0040e3a0
push 0x49a610
call fcn.004607a9
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [0x4c79ec], 0
jne 0x41f45c
lea ecx, [ebp - 0x40]
call fcn.0041f000
push str.Configs_
mov edx, eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00410850
mov ebx, eax
add esp, 4
cmp ebx, 0x4c79dc
je 0x41f3ee
cmp dword [0x4c79f0], 8
jb 0x41f3ca
push dword [0x4c79dc]
call fcn.0046080a
add esp, 4
xor eax, eax
mov dword [0x4c79f0], 7
push ebx
mov ecx, edi
mov dword [0x4c79ec], 0
mov word [0x4c79dc], ax
call fcn.0040c2e0
cmp dword [ebp - 0x14], 8
jb 0x41f3ff
push dword [ebp - 0x28]
call fcn.0046080a
add esp, 4
xor eax, eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x41f42b
push dword [ebp - 0x40]
call fcn.0046080a
add esp, 4
cmp dword [0x4c79f0], 8
mov eax, edi
cmovae eax, dword [0x4c79dc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41f45c
cmp dword [0x4c79f0], 8
push eax
cmovae edi, dword [0x4c79dc]
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0xffffffffffffffff
push 0
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x4c79dc
mov word [esi], ax
call fcn.0040e1b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41f4a0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497298
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x4c0760]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x4c79f4]
mov dword [ebp - 0x10], 0
test al, 1
jne 0x41f50b
or eax, 1
mov dword [0x4c7a0c], 7
mov dword [0x4c79f4], eax
xor eax, eax
push 0x49a670
mov dword [0x4c7a08], 0
mov word [0x4c79f8], ax
call fcn.004607a9
add esp, 4
cmp dword [0x4c7a08], 0
jne 0x41f5ed
lea ecx, [ebp - 0x40]
call fcn.0041f000
push str.Log_
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00410850
mov ebx, eax
mov edi, 0x4c79f8
add esp, 4
cmp ebx, edi
je 0x41f57f
cmp dword [0x4c7a0c], 8
jb 0x41f55b
push dword [0x4c79f8]
call fcn.0046080a
add esp, 4
xor eax, eax
mov dword [0x4c7a0c], 7
push ebx
mov ecx, edi
mov dword [0x4c7a08], 0
mov word [0x4c79f8], ax
call fcn.0040c2e0
cmp dword [ebp - 0x14], 8
jb 0x41f590
push dword [ebp - 0x28]
call fcn.0046080a
add esp, 4
xor eax, eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x41f5bc
push dword [ebp - 0x40]
call fcn.0046080a
add esp, 4
cmp dword [0x4c7a0c], 8
mov eax, edi
cmovae eax, dword [0x4c79f8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41f5ed
cmp dword [0x4c7a0c], 8
push eax
cmovae edi, dword [0x4c79f8]
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0xffffffffffffffff
push 0
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x4c79f8
mov word [esi], ax
call fcn.0040e1b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41f630
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497298
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x4c0760]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x4c7a10]
mov dword [ebp - 0x10], 0
test al, 1
jne 0x41f69b
or eax, 1
mov dword [0x4c7a28], 7
mov dword [0x4c7a10], eax
xor eax, eax
push 0x49a6d0
mov dword [0x4c7a24], 0
mov word [0x4c7a14], ax
call fcn.004607a9
add esp, 4
cmp dword [0x4c7a24], 0
jne 0x41f77d
lea ecx, [ebp - 0x40]
call fcn.0041f000
push str.dump_
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00410850
mov ebx, eax
mov edi, 0x4c7a14
add esp, 4
cmp ebx, edi
je 0x41f70f
cmp dword [0x4c7a28], 8
jb 0x41f6eb
push dword [0x4c7a14]
call fcn.0046080a
add esp, 4
xor eax, eax
mov dword [0x4c7a28], 7
push ebx
mov ecx, edi
mov dword [0x4c7a24], 0
mov word [0x4c7a14], ax
call fcn.0040c2e0
cmp dword [ebp - 0x14], 8
jb 0x41f720
push dword [ebp - 0x28]
call fcn.0046080a
add esp, 4
xor eax, eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x41f74c
push dword [ebp - 0x40]
call fcn.0046080a
add esp, 4
cmp dword [0x4c7a28], 8
mov eax, edi
cmovae eax, dword [0x4c7a14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41f77d
cmp dword [0x4c7a28], 8
push eax
cmovae edi, dword [0x4c7a14]
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0xffffffffffffffff
push 0
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x4c7a14
mov word [esi], ax
call fcn.0040e1b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push esi
mov esi, edx
or eax, 0xffffffff
test esi, esi
je 0x4216a6
movzx edx, byte [ecx]
xor edx, eax
shr eax, 8
and edx, 0xff
inc ecx
xor eax, dword [edx*4 + 0x4a7040]
dec esi
jne 0x42168d
not eax
pop esi
ret

Function at 0x4216aa
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
call edi
push 8
pop ecx
test ax, ax
push 2
cmovs esi, ecx
call edi
test ax, ax
jns 0x4216cd
or esi, 2
push 1
call edi
test ax, ax
jns 0x4216d9
or esi, 1
push 0x10
call edi
test ax, ax
jns 0x4216e5
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x4216f1
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x4221a1
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
cmp dword [esi + 0x110], ebx
jle 0x4221e4
mov eax, dword [esi + 0x10c]
lea edx, [ebp + 0xb]
mov byte [ebp + 0xb], 0
push edx
push dword [ebp + 0x10]
mov ecx, dword [eax + ebx*4]
push dword [ebp + 0xc]
push edi
mov eax, dword [ecx]
call dword [eax]
cmp byte [ebp + 0xb], 0
jne 0x422242
inc ebx
cmp ebx, dword [esi + 0x110]
jl 0x4221b9
sub edi, 0x100
je 0x4222a8
sub edi, 4
je 0x422246
dec edi
dec edi
jne 0x42229d
push dword [ebp + 0xc]
xor eax, eax
mov dword [ebp + 8], eax
call fcn.00463e38
pop ecx
mov ecx, dword [esi + 0x8c]
lea edx, [ebp + 8]
push 0x80000012
mov word [ebp + 8], ax
push edx
mov eax, dword [ecx]
push 0x425222
call dword [eax + 0xfc]
mov esi, eax
test esi, esi
je 0x42229d
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xf0]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov al, 1
jmp 0x42229f
cmp dword [esi + 0x90], 0
je 0x42229d
xor eax, eax
lea edi, [ebp - 0x1c]
push 7
pop ecx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov word [ebp - 0xc], ax
mov eax, dword [esi + 0xa0]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0xa4]
mov dword [ebp - 0x20], 6
mov dword [ebp - 0x10], eax
call fcn.004216aa
mov word [ebp - 0xa], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x90]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + pe_nt_image_headers32]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x42229d
mov ecx, dword [esi + 0x90]
test ecx, ecx
je 0x422301
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x422301
mov ecx, dword [esi + 0x90]
mov eax, dword [ecx]
call dword [eax + 0xd4]
test al, al
je 0x422301
mov ecx, dword [esi + 0x90]
push str.RichEditUI
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.004639bb
pop ecx
pop ecx
test eax, eax
je 0x422301
mov eax, dword [esi + 0x90]
cmp byte [eax + 0x671], 0
jne 0x42229d
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
jmp 0x422242
Function at 0x423d73
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
push edi
mov ebx, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, dword [ebp + 8]
cmp eax, dword [ebx]
je 0x423d9e
cmp esi, dword [ebx + 0x90]
je 0x423d9e
push dword [ebx]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebx + 0x90]
cmp esi, eax
je 0x423e7d
test eax, eax
je 0x423e01
push 7
pop ecx
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0x15
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x90]
lea edx, [esp + 0x10]
mov dword [esp + 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + pe_nt_image_headers32]
push ecx
xor edi, edi
mov ecx, ebx
push edi
push edi
push str.killfocus
push dword [ebx + 0x90]
call fcn.004241da
mov dword [ebx + 0x90], edi
test esi, esi
je 0x423e7d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
cmp eax, ebx
jne 0x423e7d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc8]
test al, al
je 0x423e7d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xd4]
test al, al
je 0x423e7d
push 7
pop ecx
xor eax, eax
mov dword [ebx + 0x90], esi
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0x16
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x90]
lea edx, [esp + 0x10]
mov dword [esp + 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + pe_nt_image_headers32]
push ecx
push 0
push 0
push str.setfocus
push dword [ebx + 0x90]
mov ecx, ebx
call fcn.004241da
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x426567
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x426599
xor eax, eax
inc eax
cmp byte [ebp + 0xc], 0
push 4
pop edx
cmovne edx, eax
xor eax, eax
cmp byte [ebp + 8], al
cmovne eax, edx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8