joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c230
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dcdcb
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x51938c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x20], 8
lea edi, [esi + 0xc]
lea ebx, [esi + 0x24]
jb 0x40c26e
mov edi, dword [edi]
push 0x180
push 0x40
push 0x8101
push edi
push ebx
call fcn.004bd390
add esp, 0x14
mov dword [ebp - 0xc4], eax
test eax, eax
je 0x40c397
push 0x98
lea eax, [ebp - 0xa8]
push 0
push eax
call fcn.004b5160
add esp, 4
lea ecx, [ebp - 0xa8]
call fcn.00407900
push str._error.__
push ecx
push edi
push ecx
lea eax, [ebp - 0xa8]
mov dword [ebp - 4], 0
push str.open
push eax
call fcn.004093f0
add esp, 0xc
push eax
call fcn.004093f0
add esp, 0xc
push eax
call fcn.004093f0
add esp, 8
push 0x508fb8
push ecx
push dword [ebp - 0xc4]
mov ecx, eax
call fcn.0040cfe0
add esp, 4
push eax
call fcn.004093f0
add esp, 8
lea eax, [ebp - 0xc0]
lea ecx, [ebp - 0xa8]
push eax
call fcn.0040cf20
cmp dword [eax + 0x14], 8
jb 0x40c321
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0xac]
cmp edx, 8
jb 0x40c368
mov ecx, dword [ebp - 0xc0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c35e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c474
push edx
push ecx
call fcn.00489027
add esp, 8
xor eax, eax
mov dword [ebp - 0xb0], 0
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0xac], 7
mov word [ebp - 0xc0], ax
mov dword [ebp - 4], 0xffffffff
call fcn.00405cf0
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x40c3ad
push 2
push 0
push eax
call fcn.004bd5f7
add esp, 0xc
jmp 0x40c3b0
or eax, 0xffffffff
mov dword [esi + 4], eax
test eax, eax
jne 0x40c458
push 3
push 0x508fe0
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], 0xf
mov byte [ebp - 0xc0], al
call fcn.00408b70
mov eax, dword [ebp - 0xac]
lea edx, [ebp - 0xc0]
mov ecx, dword [ebp - 0xc0]
cmp eax, 0x10
mov edi, dword [ebx]
cmovae edx, ecx
cmp edi, 0xffffffff
je 0x40c422
push dword [ebp - 0xb0]
push edx
push edi
call fcn.004bc766
mov ecx, dword [ebp - 0xc0]
mov edi, eax
mov eax, dword [ebp - 0xac]
add esp, 0xc
jmp 0x40c425
or edi, 0xffffffff
cmp eax, 0x10
jb 0x40c451
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c447
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c479
push edx
push ecx
call fcn.00489027
add esp, 8
test edi, edi
jle 0x40c458
add dword [esi + 4], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00488adc
mov esp, ebp
pop ebp
ret
call fcn.004b8ab4
call fcn.004b8ab4
int3
Function at 0x410280
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x51938c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 4], 0xffffffff
je 0x4102e7
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4102c3
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi]
call edi
mov dword [esi], 0xffffffff
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x4102d5
push eax
call edi
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x4102e7
push eax
call edi
mov dword [esi + 8], 0xffffffff
push 0
push 0x40000000
push 3
push 0
push 0
push 0xc0000000
push str..PIPE4C6B6BDC_A47D_6B44_E687_2CB6CE2F0F59
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x410326
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488adc
mov esp, ebp
pop ebp
ret 4
mov ecx, str..PIPE4C6B6BDC_A47D_6B44_E687_2CB6CE2F0F59
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410330
sub ecx, edx
sar ecx, 1
push ecx
push str..PIPE4C6B6BDC_A47D_6B44_E687_2CB6CE2F0F59
lea ecx, [esi + 0x10]
call fcn.00408a10
push 0
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 2
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x410373
mov eax, dword [ecx]
push 0
push esi
call dword [eax]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp byte [esi + 0x28], 0
mov dword [esi + 8], eax
jne 0x4103ce
lea eax, [ebp - 0xc]
push eax
push 0
push esi
push 0x4103f0
push 0
push 0
call fcn.004bd8a6
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x4103ce
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x4103ba
push eax
call edi
mov dword [esi + 4], 0xffffffff
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488adc
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00488adc
mov esp, ebp
pop ebp
ret 4
Function at 0x4108b0
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
imul esi, ebx, 0x4058
push edi
mov edi, ecx
add esi, edi
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push esi
push dword [esi + 0x28]
mov dword [esi + 0x4038], 0
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x410904
mov byte [esi + 0x2c], 0
mov dword [esi + 0x4038], 1
mov ecx, dword [edi + 0x80ec]
test ecx, ecx
je 0x410904
mov eax, dword [ecx]
push 0
push ebx
push edi
call dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x410932
cmp eax, 0x3e5
je 0x410921
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 4
pop edi
mov byte [esi + 0x2c], 1
mov al, 1
mov byte [esi + 0x2d], 0
pop esi
pop ebx
pop ebp
ret 4
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
mov byte [esi + 0x2d], 0
mov al, 1
pop esi
pop ebx
pop ebp
ret 4
Function at 0x410950
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x51938c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
imul edi, ebx, 0x4058
mov esi, ecx
mov dword [ebp - 8], 0
add edi, esi
cmp byte [edi + 0x2c], 0
je 0x410a25
push 0
lea eax, [ebp - 8]
push eax
push edi
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov ecx, dword [edi + 0x4038]
sub ecx, 0
je 0x410a01
sub ecx, 1
jne 0x410a25
test eax, eax
je 0x4109cd
mov eax, dword [ebp - 8]
test eax, eax
je 0x4109cd
mov dword [edi + 0x30], eax
mov ecx, dword [esi + 0x80ec]
test ecx, ecx
je 0x410a25
mov edx, dword [ecx]
push 0
push eax
lea eax, [edi + 0x38]
push eax
push ebx
push esi
call dword [edx + 8]
jmp 0x410a25
push ebx
mov ecx, esi
call fcn.004108b0
mov ecx, dword [esi + 0x80ec]
test ecx, ecx
je 0x410a87
mov eax, dword [ecx]
push 0
push ebx
push esi
call dword [eax + 4]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488adc
mov esp, ebp
pop ebp
ret 4
test eax, eax
je 0x410ab7
mov dword [edi + 0x4038], 1
mov ecx, dword [esi + 0x80ec]
test ecx, ecx
je 0x410a25
mov eax, dword [ecx]
push 0
push ebx
push esi
call dword [eax]
push 0x2000
lea eax, [edi + 0x38]
push 0
push eax
call fcn.004b5160
add esp, 0xc
lea eax, [edi + 0x30]
push edi
push eax
push 0x2000
lea eax, [edi + 0x38]
push eax
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x410a57
xor al, al
jmp 0x410a66
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x410a9c
mov al, 1
mov byte [edi + 0x2c], al
test al, al
jne 0x410a87
mov ecx, dword [esi + 0x80ec]
test ecx, ecx
je 0x410a87
mov eax, dword [ecx]
lea edx, [edi + 0x38]
push 0
push dword [edi + 0x30]
push edx
push ebx
push esi
call dword [eax + 8]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488adc
mov esp, ebp
pop ebp
ret 4
push ebx
mov ecx, esi
call fcn.004108b0
mov ecx, dword [esi + 0x80ec]
test ecx, ecx
je 0x410ab7
mov eax, dword [ecx]
push 0
push ebx
push esi
call dword [eax + 4]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00488adc
mov esp, ebp
pop ebp
ret 4
Function at 0x412d50
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd50b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x51938c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004b5160
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.config.ini
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x412f2a
mov dword [ebp - 4], 0
call fcn.004049b0
mov ecx, eax
test ecx, ecx
je 0x412f45
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x21c], esi
mov dword [ebp - 4], 1
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x412e30
push 0x104
lea ecx, [ebp - 0x21c]
call fcn.00409280
mov esi, dword [ebp - 0x21c]
cmp dword [esi - 8], 0x104
lea edi, [esi - 0x10]
jl 0x412f4f
xor eax, eax
mov dword [edi + 4], 0x104
mov word [esi + 0x208], ax
lea eax, [ebp - 0x218]
push eax
push 0x104
push esi
push 0x508ce4
push str.state
push str.update
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [edi + 8]
push esi
call fcn.004bda59
add esp, 8
test eax, eax
js 0x412f4f
cmp eax, dword [edi + 8]
jg 0x412f4f
xor ecx, ecx
mov dword [edi + 4], eax
mov word [esi + eax*2], cx
mov ecx, str.ADBlockMasterUpdate
mov eax, esi
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x412ec6
test dx, dx
je 0x412ec2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x412ec6
add eax, 4
add ecx, 4
test dx, dx
jne 0x412ea0
xor eax, eax
jmp 0x412ecb
sbb eax, eax
or eax, 1
test eax, eax
je 0x412f07
mov eax, str.bigupdate
mov cx, word [esi]
cmp cx, word [eax]
jne 0x412efa
test cx, cx
je 0x412ef6
mov cx, word [esi + 2]
cmp cx, word [eax + 2]
jne 0x412efa
add esi, 4
add eax, 4
test cx, cx
jne 0x412ed4
xor eax, eax
jmp 0x412eff
sbb eax, eax
or eax, 1
test eax, eax
je 0x412f07
xor esi, esi
jmp 0x412f0c
mov esi, 1
mov dword [ebp - 4], 4
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x412f28
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00488adc
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404780
push 0x80070057
call fcn.00404780
int3
Function at 0x417980
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dda13
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x51938c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], 0
test esi, esi
je 0x417a25
cmp word [esi], di
je 0x417a25
test eax, eax
je 0x4179e1
cmp word [eax], di
je 0x4179e1
push edi
push edi
push eax
push esi
push edi
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
js 0x417a25
jmp 0x417a20
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004b5160
add esp, 0xc
lea eax, [ebp - 0x420]
push 0
push 0
push 0x104
push eax
push esi
push 0
call sub.urlmon.dll_URLDownloadToCacheFileW
test eax, eax
js 0x417a25
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 1
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x417a8b
lea esi, [ebx + 0x38]
mov dword [ebp - method._BaseModule::CAutoLocker.virtual_0], vtable._BaseModule::CAutoLocker.0
mov dword [ebp - 0x428], esi
test esi, esi
je 0x417a4b
mov eax, dword [esi]
push esi
call dword [eax]
mov ecx, dword [ebp + 0x34]
mov byte [ebp - 4], 1
mov dword [ebp - 0x424], edi
test ecx, ecx
je 0x417aab
mov eax, dword [ecx]
lea edx, [ebp - 0x424]
push edx
call dword [eax + 8]
mov byte [ebp - 4], 2
test esi, esi
je 0x417a73
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x417a8b
mov edx, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00488adc
mov esp, ebp
pop ebp
ret 0x30
call fcn.004138be
int3

Function at 0x419ab0
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
test ax, ax
mov ecx, 8
push 2
cmovs esi, ecx
call edi
test ax, ax
jns 0x419ad5
or esi, 1
push 1
call edi
test ax, ax
jns 0x419ae1
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x419aed
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x419af9
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x41cab0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, ecx
push esi
push edi
xor esi, esi
lea ecx, [ebx + 0xe0]
call fcn.0041e3d0
mov edi, dword [ebp + 8]
test eax, eax
jle 0x41cb0b
nop
push esi
lea ecx, [ebx + 0xe0]
mov byte [ebp + 0xb], 0
call fcn.0041f2b0
lea ecx, [ebp + 0xb]
push ecx
push dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, eax
push dword [ebp + 0xc]
push edi
call dword [edx]
cmp byte [ebp + 0xb], 0
jne 0x41cc3c
lea ecx, [ebx + 0xe0]
inc esi
call fcn.0041e3d0
cmp esi, eax
jl 0x41cad0
sub edi, 0x100
je 0x41cbd1
sub edi, 4
je 0x41cb72
sub edi, 2
jne 0x41cbc6
push dword [ebp + 0xc]
mov dword [ebp + 8], edi
call fcn.004c3f20
mov ecx, dword [ebx + 0x58]
lea edx, [ebp + 8]
add esp, 4
mov word [ebp + 8], ax
mov eax, dword [ecx]
push 0x8000000a
push edx
push 0x41e290
call dword [eax + 0x14c]
mov esi, eax
test esi, esi
je 0x41cbc6
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x13c]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x1c]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebx + 0x5c], 0
je 0x41cbc6
xor eax, eax
mov dword [ebp - 0x20], 6
mov word [ebp - 2], ax
xorps xmm0, xmm0
mov eax, dword [ebp + 0xc]
mov word [ebp - 0xc], ax
mov eax, dword [ebx + 0x70]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x74]
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0xa], xmm0
mov dword [ebp - 0x10], eax
call fcn.00419ab0
mov word [ebp - 0xa], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x5c]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x158]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x41cbc6
mov ecx, dword [ebx + 0x5c]
test ecx, ecx
je 0x41cc23
mov eax, dword [ecx]
mov eax, dword [eax + 0x110]
call eax
test al, al
je 0x41cc23
mov ecx, dword [ebx + 0x5c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x11c]
call eax
test al, al
je 0x41cc23
mov ecx, dword [ebx + 0x5c]
push str.RichEditUI
mov eax, dword [ecx]
call dword [eax + 0x10]
push eax
call fcn.004b6911
add esp, 8
test eax, eax
je 0x41cc23
mov ecx, dword [ebx + 0x5c]
call fcn.00432dc0
test al, al
jne 0x41cbc6
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov ecx, ebx
setns al
movzx eax, al
push eax
call fcn.0041dbc0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x41eac0
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 0x41eb05
cmp byte [ebp + 8], 0
je 0x41eaf9
cmp byte [ebp + 0xc], 0
mov ecx, 1
mov eax, 4
cmovne eax, ecx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
xor eax, eax
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
Function at 0x430770
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
movzx eax, word [edi + 0xc]
sub eax, 0x41
je 0x4307d2
sub eax, 2
je 0x4307b3
sub eax, 0x15
jne 0x430822
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x430822
push 0
push edi
push dword [ebp + 0xc]
push str.cutkey
jmp 0x430817
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x430822
push 0
push edi
push dword [ebp + 0xc]
push str.copykey
jmp 0x430817
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x430822
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x2c], 2
push eax
mov eax, dword [esi + 0x14]
push 0xffffffffffffffff
push 0x102b
mov dword [ebp - 0x30], 2
push dword [eax + 0x558]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push edi
push dword [ebp + 0xc]
push str.selectallkey
push dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
call fcn.0041d220
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x431310
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push dword [ebp + 8]
mov ebx, ecx
call fcn.00424ef0
push dword [ebx + 0x558]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x43135e
mov ecx, dword [ebx + 0x55c]
mov eax, 5
push edi
xor edi, edi
cmp byte [ebp + 8], 0
cmovne edi, eax
push edi
call fcn.0041e3d0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
push dword [ebx + 0x558]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop ebx
pop ebp
ret 4

Function at 0x434820
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x594], 0
je 0x43488d
cmp dword [ebp + 8], 0x100
jne 0x43487d
cmp word [ebp + 0xc], 0xd
jne 0x43487d
cmp byte [esi + 0x59a], 0
je 0x43485e
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x43487d
cmp byte [esi + 0x59b], 0
jne 0x43487d
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x434876
push 0
push 0
push 0
push str.return
push esi
call fcn.0041d220
xor eax, eax
pop esi
pop ebp
ret 0x10
mov eax, dword [esi + 0x594]
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
mov eax, 1
pop esi
pop ebp
ret 0x10
Function at 0x4357d0
Capabilities:
Check if file exists
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x4f7bec
push 0x34
call fcn.0048969d
mov esi, eax
add esp, 8
mov dword [ebp - 4], esi
test esi, esi
je 0x435849
mov dword [esi], 2
mov dword [esi + 4], 0xffffffff
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
jmp 0x43584b
xor esi, esi
push ebx
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 8
jb 0x435858
mov edi, dword [edi]
xor ebx, ebx
test edi, edi
je 0x4358cf
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4358cf
push ebx
push 0x80
push 3
push ebx
push 1
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x4358cf
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x14], eax
cmp eax, 0x16
jb 0x4358cf
push ebx
push ebx
push ebx
push 2
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
test eax, eax
je 0x4358cf
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0xc], eax
test eax, eax
je 0x4358cf
push dword [esi + 0x14]
mov ecx, esi
push eax
call fcn.00435150
mov ebx, eax
test ebx, ebx
jne 0x4358fd
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4358e4
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0xc], 0
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x435903
push eax
call edi
mov dword [esi + 8], 0
jmp 0x435903
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x435915
push eax
call edi
mov dword [esi + 4], 0xffffffff
pop edi
test ebx, ebx
pop ebx
jne 0x435934
mov ecx, esi
call fcn.00434e10
push 0x34
push esi
call fcn.00489027
add esp, 8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43ad00
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
push 0x4f7bec
cmp al, 6
jb 0x43ad3d
push 0x18
call fcn.0048969d
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x43ad79
mov ecx, eax
call fcn.0043ad90
mov dword [esi], eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0x14
call fcn.0048969d
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x43ad79
mov dword [eax], vtable.CGDIPlusImageImpl.0
mov dword [eax + 4], 6
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [esi], eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [esi], eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret