joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46d980
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x24
push esi
push edi
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
test esi, esi
je 0x46d9bb
mov edi, dword [esp + 0x30]
push edi
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
push edi
push 0x46d8d0
push esi
call dword [sym.imp.USER32.dll_EnumChildWindows]
pop edi
mov al, 1
pop esi
add esp, 0x24
ret 4
mov ecx, 9
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x24
push eax
push 5
call dword [sym.imp.SHELL32.dll_SHAppBarMessage]
test eax, eax
je 0x46da47
mov eax, dword [esp + 0x14]
cmp eax, 3
ja case.default.0x46d9ea
jmp dword [eax*4 + 0x46da84]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
pop edi
pop esi
lea edx, [ecx - 0x64]
add ecx, 0xfffffff0
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov dword [eax + 8], edx
mov al, 1
add esp, 0x24
ret 4
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 0xc], edx
lea edx, [ecx - 0x64]
add ecx, 0xfffffff0
mov dword [eax], edx
mov dword [eax + 8], ecx
pop edi
mov al, 1
pop esi
add esp, 0x24
ret 4
mov esi, dword [esp + 0x30]
push 0
push esi
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
je 0x46da79
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
sub eax, 0x96
sub ecx, 0x1e
mov dword [esi], eax
mov dword [esi + 4], ecx
pop edi
mov al, 1
pop esi
add esp, 0x24
ret 4
pop edi
xor al, al
pop esi
add esp, 0x24
ret 4
Function at 0x478250
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x599b09
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.0057333a
mov eax, dword [0x5f2384]
lea edi, [esi + 0x3c]
mov dword [esp + 0x14], 0
mov dword [edi], eax
mov edx, dword [0x5f2384]
lea ecx, [esi + 0x40]
mov dword [ecx], edx
mov eax, dword [0x5f2384]
mov dword [esi + 0x44], eax
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push eax
mov byte [esp + 0x18], 3
mov dword [esi], method.CWnd.virtual_0
mov dword [esi + 0x48], edx
call fcn.00577439
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x4c], edx
mov ecx, edi
mov dword [esi + 0x50], eax
call fcn.0057723b
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov dword [esi + 0x54], ecx
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x60], edx
mov dword [esi + 0x58], 1
mov dword [esi + 0x64], 0
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x1c
Function at 0x479590
Capabilities:
Log keystrokes

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x70]
cmp dword [eax + 0x5c], 2
je 0x4796e4
mov ecx, dword [esp + 0x14]
cmp ecx, 0x60
jb 0x4795bc
cmp ecx, 0x69
ja 0x4795bc
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x4796e4
push 2
push ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
test eax, eax
je 0x4796e4
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x50]
mov ebp, eax
push ebp
call fcn.00477610
mov esi, eax
mov eax, dword [edi + 0x80]
add esp, 4
neg esi
sbb esi, esi
xor ebx, ebx
and esi, ebp
test eax, eax
jle 0x479632
push ebx
mov ecx, edi
call fcn.00479eb0
mov ebp, eax
mov eax, dword [ebp + 0x88]
test eax, eax
jne 0x479630
mov ecx, dword [edi + 0x70]
test byte [ecx + 0x5c], 1
je 0x479623
test esi, esi
jne 0x479623
push ebp
call fcn.00477610
add esp, 4
test eax, eax
je 0x479623
mov esi, ebp
mov eax, dword [edi + 0x80]
inc ebx
cmp ebx, eax
jl 0x4795f3
jmp 0x479632
mov esi, ebp
test esi, esi
je 0x4796e4
push esi
call fcn.00477610
add esp, 4
test eax, eax
je 0x4796e4
mov ebx, dword [esp + 0x14]
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x170]
test eax, eax
je 0x47966a
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 4
lea eax, [esp + 0x14]
mov ecx, edi
push eax
push ebx
push esi
call fcn.00479320
mov ebp, eax
test ebp, ebp
je 0x4796e4
mov esi, dword [ebp + 0xbc]
mov ebx, dword [ebp + 0x3c]
mov eax, dword [esi + 0x88]
test eax, eax
jne 0x479698
mov ecx, edi
call fcn.00479560
push 1
mov ecx, edi
call fcn.00479140
mov dword [edi + 0x40], 1
mov edx, dword [esi]
push 1
push 0
push 1
mov ecx, esi
call dword [edx + 0xbc]
mov eax, dword [esi]
push 1
push ebx
mov ecx, esi
call dword [eax + 0xc4]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4796d8
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0xac]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
Function at 0x4796f0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
cmp dword [edi + 4], 0x104
jne 0x4797ac
mov eax, dword [edi + 0xc]
shr eax, 0x10
test ah, 0x20
je 0x4797ac
call fcn.00479210
mov ecx, dword [eax + 4]
test ecx, ecx
jg 0x4797ac
push 0
mov ecx, esi
call fcn.00479210
mov ecx, eax
call fcn.004c8860
test eax, eax
jne 0x4797ac
mov ecx, esi
call fcn.00479210
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x479750
mov eax, dword [eax + 0x1c]
push eax
call fcn.004c8510
add esp, 4
test eax, eax
je 0x4797ac
cmp dword [edi + 8], 0x12
jne 0x479777
push 1
mov ecx, esi
call fcn.00479140
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x20
ret 4
mov eax, dword [esi + 0x20]
test eax, eax
je 0x47978b
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
jne 0x4797ac
mov eax, dword [edi + 8]
test eax, eax
je 0x4797ac
push eax
mov ecx, esi
call fcn.00479590
test eax, eax
je 0x4797ac
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x20
ret 4
mov eax, dword [edi + 4]
cmp eax, 0x105
je 0x4797bd
cmp eax, 0x101
jne 0x4797ed
mov eax, dword [esi + 0xc0]
test eax, eax
je 0x4797ed
mov eax, dword [esi + 0xac]
test eax, eax
je 0x4797ed
push 0
mov ecx, esi
call fcn.00479210
mov ecx, eax
call fcn.004c8860
test eax, eax
jne 0x4797ed
push eax
mov ecx, esi
call fcn.00479140
mov eax, dword [edi + 4]
cmp eax, 0x7b
je 0x4797fc
cmp eax, 0x105
jne 0x47983e
push 0
mov ecx, esi
call fcn.00479210
mov ecx, eax
call fcn.004c8860
test eax, eax
je 0x47983e
push 0x47b290
mov ecx, 0x60f024
call fcn.0058dac3
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 8]
push ecx
push edx
push 0x7b
mov ecx, eax
call fcn.004f8460
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x20
ret 4
cmp dword [edi + 4], 0x20a
jne 0x4798fb
push 0x47b290
mov ecx, 0x60f024
call fcn.0058dac3
mov ecx, dword [eax + 0x1c]
test ecx, ecx
jle 0x47988d
push 0x47b290
mov ecx, 0x60f024
call fcn.0058dac3
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 8]
push ecx
push edx
push 0x20a
mov ecx, eax
call fcn.004f8460
pop edi
pop esi
pop ebx
add esp, 0x20
ret 4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x50]
lea ecx, [esp + 0xc]
mov ebx, eax
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
test ebx, ebx
je 0x4798fb
cmp dword [ebx + 0xa0], 3
jne 0x4798fb
mov edx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
push ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], edx
call fcn.0048fc10
mov ecx, dword [esp + 0x1c]
push ecx
push ebp
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
pop ebp
je 0x4798fb
mov edx, dword [edi + 8]
xor eax, eax
shr edx, 0x10
test dx, dx
setle al
push eax
mov ecx, ebx
call fcn.0048d790
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x20
ret 4
mov eax, dword [edi + 4]
cmp eax, 0x100
jb 0x47976c
cmp eax, 0x108
ja 0x47976c
push edi
mov ecx, esi
call fcn.00477b50
mov ecx, eax
call fcn.00492930
test eax, eax
je 0x47976c
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x20
ret 4
Function at 0x47c170
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, ecx
push edi
push ebp
mov ecx, dword [esi + 0xa4]
push eax
call fcn.004c1e90
mov ebx, eax
mov eax, dword [esi + 0x78]
cmp eax, 0xffffffff
je 0x47c1ce
cmp dword [esi + 0xa8], 5
jne 0x47c1ce
cmp dword [esi + 0xa0], 1
jne 0x47c1ce
test ebx, ebx
je 0x47c1b0
cmp dword [ebx + 0x3c], eax
je 0x47c1ce
cmp eax, dword [esi + 0x74]
jne 0x47c1c3
mov edx, dword [esi]
push 0
push 0xffffffffffffffff
mov ecx, esi
call dword [edx + 0xc4]
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.0047c530
test ebx, ebx
mov ecx, esi
je 0x47c29d
call fcn.0047e480
test eax, eax
jne 0x47c286
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x130]
test eax, eax
je 0x47c286
push esi
push 0x5f9508
call fcn.00578afd
add esp, 8
test eax, eax
je 0x47c286
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x47c286
mov ecx, esi
call fcn.0047e450
mov edi, eax
test edi, edi
je 0x47c286
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x47c286
mov ecx, dword [edi + 0x70]
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x47c286
push 1
mov ecx, edi
call fcn.0047a290
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.0047c530
mov edx, dword [esi]
push 0
push 0xffffffffffffffff
mov ecx, esi
call dword [edx + 0xc4]
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx]
push ebp
push ecx
mov ecx, ebx
call dword [eax + pe_nt_image_headers32]
push 0
mov ecx, edi
call fcn.0047a290
mov edx, dword [edi]
push 0
mov ecx, edi
call dword [edx + 0x54]
mov ecx, edi
call fcn.00479560
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx]
push ebp
push ecx
mov ecx, ebx
call dword [eax + 0xec]
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
call fcn.005736cc
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x48faf8
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x59ad28
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x48fbb3
call fcn.0048fa90
mov ecx, dword [esi]
mov edi, eax
lea eax, [esp + 0x10]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
je 0x48fbb3
mov eax, dword [esp + 0x18]
test eax, eax
je 0x48fbb3
mov eax, dword [esp + 0x14]
test eax, eax
je 0x48fbb3
lea ecx, [esp + 8]
call fcn.0057112c
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push 1
push 0
push 0x19
push edx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x44], 0
call fcn.005711f1
mov esi, dword [esi]
push esi
call fcn.0057c676
test eax, eax
je 0x48fb71
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0xc]
push edi
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
mov edx, dword [esp + 0xc]
push 0
push 0
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_GetIcon]
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x30], 0xffffffff
call fcn.00571155
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov ecx, dword [esp + 0x28]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x4935d0
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x59b1d7
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
mov ebx, dword [esp + 0x138]
push ebp
push esi
cmp ebx, 0x60
push edi
jb 0x493619
cmp ebx, 0x69
ja 0x493619
movsx eax, byte [esp + 0x140]
add ebx, 0xffffffd0
xor ecx, ecx
cmp eax, ebx
sete cl
mov eax, ecx
jmp 0x493809
push 2
push ebx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
test al, al
je 0x4937e0
mov edx, dword [esp + 0x140]
push edx
call fcn.00493960
mov cl, byte [esp + 0x144]
add esp, 4
cmp cl, bl
mov byte [esp + 0x13], al
je 0x493804
cmp al, bl
je 0x493804
mov ebp, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
xor esi, esi
push esi
push esi
call ebp
mov edi, eax
cmp edi, 1
jl 0x4937e0
xor ebx, ebx
mov dword [esp + 0x18], 0x5b9d98
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
cmp edi, esi
mov dword [esp + 0x138], esi
jne 0x49369b
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
jmp 0x4936c2
lea eax, [edi*4]
push eax
call fcn.0057284c
add esp, 4
mov dword [esp + 0x1c], eax
push edi
push eax
call fcn.00532880
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
push ebx
push edi
call ebp
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
jne 0x4936ed
mov dword [esp + 0x18], method.CCommandLineInfo.virtual_0
mov dword [esp + 0x138], 1
jmp 0x4937d3
cmp edi, esi
mov dword [esp + 0x2c], esi
jle 0x4937c0
mov ebp, dword [sym.imp.USER32.dll_ToAsciiEx]
mov esi, ebx
mov dword [esp + 0x14], 0
mov edx, dword [esi]
push edx
mov edx, dword [esp + 0x148]
lea eax, [esp + 0x18]
push 0
lea ecx, [esp + 0x38]
push eax
push ecx
push 0
push edx
call ebp
cmp eax, 1
jne 0x493751
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0x140]
cmp cl, al
je 0x4937e4
push eax
call fcn.00493960
mov cl, byte [esp + 0x17]
add esp, 4
cmp cl, al
je 0x4937e4
mov bl, byte [esp + 0x40]
mov byte [esp + 0x40], 0x81
mov eax, dword [esi]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x148]
push 0
lea edx, [esp + 0x38]
push ecx
push edx
push 0
push eax
call ebp
cmp eax, 1
jne 0x4937a2
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0x140]
cmp cl, al
je 0x493822
push eax
call fcn.00493960
mov cl, byte [esp + 0x17]
add esp, 4
cmp cl, al
je 0x493822
mov eax, dword [esp + 0x2c]
add esi, 4
inc eax
mov byte [esp + 0x40], bl
mov ebx, dword [esp + 0x1c]
cmp eax, edi
mov dword [esp + 0x2c], eax
jl 0x493701
xor esi, esi
mov dword [esp + 0x18], method.CCommandLineInfo.virtual_0
mov dword [esp + 0x138], 4
cmp ebx, esi
je 0x4937e0
push ebx
call fcn.00572875
add esp, 4
xor eax, eax
jmp 0x493809
mov dword [esp + 0x18], method.CCommandLineInfo.virtual_0
test ebx, ebx
mov dword [esp + 0x138], 2
je 0x493804
push ebx
call fcn.00572875
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x12c
ret
mov dword [esp + 0x18], method.CCommandLineInfo.virtual_0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x138], 3
test eax, eax
je 0x493804
push eax
jmp 0x4937fc
Function at 0x495710
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x59b456
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push esi
mov dword [esp + 0xc], 0
call fcn.004b8ff0
mov ecx, eax
call fcn.004b90f0
test al, al
jne 0x49575d
mov esi, dword [esp + 0x134]
push 0x5a7b30
mov ecx, esi
call fcn.0057731e
jmp 0x4958f7
mov eax, dword [0x5f2384]
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
mov dword [esp + 8], eax
lea ecx, [esp + 0x18]
mov ebx, 1
push ecx
mov dword [esp + 0x130], ebx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x4957df
lea edx, [esp + 0x10]
push edx
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4957c6
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x4957c6
lea edx, [esp + 0x20]
lea ecx, [esp + 8]
push edx
call fcn.00577439
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov edx, dword [esp + 8]
mov eax, dword [edx - 8]
test eax, eax
jne 0x495806
mov esi, dword [esp + 0x134]
push 0x5a7b30
mov ecx, esi
call fcn.0057731e
mov dword [esp + 0xc], ebx
jmp 0x4958e6
call fcn.0058b5c7
mov esi, dword [eax + 4]
push 0x5a825c
lea ecx, [esp + 0x18]
call fcn.0057731e
mov ecx, dword [esi + 0x78]
lea edx, [esp + 0x1c]
push ecx
push eax
push edx
mov byte [esp + 0x138], 2
call fcn.00577545
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x130], 3
call fcn.005776c8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x12c], 2
call fcn.005772b0
lea ecx, [esp + 0x14]
mov byte [esp + 0x12c], bl
call fcn.005772b0
mov eax, dword [esp + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x495887
test al, 0x10
jne 0x4958a0
mov esi, dword [esp + 0x134]
push 0x5a7b30
mov ecx, esi
call fcn.0057731e
mov dword [esp + 0xc], ebx
jmp 0x4958e6
lea edx, [esp + 8]
push 0x5a825c
lea eax, [esp + 0x18]
push edx
push eax
call fcn.00577545
mov ecx, dword [esp + 0x138]
mov esi, dword [esp + 0x134]
push ecx
push eax
push esi
mov byte [esp + 0x138], 4
call fcn.005774df
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], ebx
mov byte [esp + 0x12c], bl
call fcn.005772b0
lea ecx, [esp + 8]
mov byte [esp + 0x12c], 0
call fcn.005772b0
mov ecx, dword [esp + 0x124]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret 8
Function at 0x495dd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x59b4fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbc
mov eax, dword [esp + 0xcc]
push ebx
push esi
xor ebx, ebx
push edi
push ebx
mov esi, ecx
push 0x1000
push 1
push eax
lea ecx, [esp + 0x94]
call fcn.0057b603
lea ecx, [esp + 0x84]
mov dword [esp + 0xd0], ebx
push ecx
lea ecx, [esp + 0x44]
call fcn.004ca330
mov edi, dword [esp + 0xdc]
lea ecx, [esp + 0xc]
mov byte [esp + 0xd0], 1
mov dword [esp + 0x5c], edi
call fcn.00576b13
mov dword [esp + 0x2c], 0x5b7490
mov dword [esp + 0x30], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0xc], 0x5b7878
mov dword [esp + 0x28], esi
mov edx, dword [esi]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x40]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0xd8], 2
call dword [edx + 0x88]
test eax, eax
je 0x495e99
mov eax, dword [edi + 8]
mov edx, dword [esi]
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
call dword [edx + 0x90]
lea ecx, [esp + 0x84]
call fcn.0057b767
lea ecx, [esp + 0xc]
mov byte [esp + 0xd0], 1
call fcn.0047b620
lea ecx, [esp + 0x40]
mov byte [esp + 0xd0], bl
call fcn.004c8e20
lea ecx, [esp + 0x84]
mov dword [esp + 0xd0], 0xffffffff
call fcn.0057b6df
mov ecx, dword [esp + 0xc8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xc8
ret 8

Function at 0x498a20
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x1c
push esi
mov esi, dword [esp + 0x24]
push edi
cmp esi, 8
mov edi, ecx
je 0x498a65
cmp esi, 0x21
jb 0x498a3a
cmp esi, 0x2e
jbe 0x498a65
cmp esi, 0x43
je 0x498a4e
cmp esi, 0x56
je 0x498a4e
cmp esi, 0x58
je 0x498a4e
cmp esi, 0x5a
jne 0x498a5b
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x498a65
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret 8
mov ecx, dword [esp + 0x2c]
mov eax, dword [edi + 0x1c]
lea edx, [esp + 8]
mov dword [esp + 0x14], ecx
push edx
mov ecx, edi
mov dword [esp + 0x10], 0x100
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], esi
call fcn.005767a8
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
add esp, 0x1c
ret 8

Function at 0x498c80
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x1c
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 8]
test eax, eax
jne 0x498c98
pop edi
xor eax, eax
pop ebx
add esp, 0x1c
ret 8
mov ebx, dword [esp + 0x28]
cmp ebx, 0x26
je 0x498cb0
cmp ebx, 0x28
je 0x498cb0
cmp ebx, 0x22
je 0x498cb0
cmp ebx, 0x21
jne 0x498cbd
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x498cc7
pop edi
xor eax, eax
pop ebx
add esp, 0x1c
ret 8
mov eax, dword [edi + 8]
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindow]
push 5
push eax
call esi
push 1
push eax
call esi
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 8]
lea edx, [esp + 0xc]
push edx
push eax
mov dword [esp + 0x18], 0x100
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ecx
call dword [sym.imp.USER32.dll_IsDialogMessageA]
neg eax
sbb eax, eax
pop esi
pop edi
pop ebx
neg eax
add esp, 0x1c
ret 8
Function at 0x4a1640
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push 0x5f798c
push eax
push esi
mov byte [esp + 0x10], 0x89
mov byte [esp + 0x11], 0x50
mov byte [esp + 0x12], 0x4e
mov byte [esp + 0x13], 0x47
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x4a1672
pop esi
pop ecx
ret
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4a1681
pop esi
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [eax]
lea ecx, [esp + 4]
xor eax, eax
mov esi, dword [ecx]
cmp edx, esi
pop esi
sete al
pop ecx
ret

Function at 0x4a16a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x4a16b9
pop esi
ret
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4a16c7
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x4a16d4
pop esi
ret
xor ecx, ecx
cmp word [eax + 0xe], 0x20
pop esi
sete cl
mov eax, ecx
ret
Function at 0x4a19c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x59c058
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x34]
push 2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x4a1a07
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4a1a26
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
jne 0x4a1a46
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov ebx, dword [ebp + 8]
mov dword [esp + 0x34], 0
imul ebx, dword [ebp + 4]
shl ebx, 2
cmp word [ebp + 0xe], 0x20
jne 0x4a1b4b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [ebx + 0x28]
cmp eax, ecx
jb 0x4a1b4b
lea ecx, [esp + 0x14]
call fcn.0057bab0
push 0
mov dword [esp + 0x30], 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x18]
call fcn.0057bb67
push 0x34
call fcn.00451564
mov edx, eax
add esp, 4
test edx, edx
mov dword [esp + 0x10], edx
jne 0x4a1ad3
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0057bbe5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov ecx, 0xa
mov esi, ebp
mov edi, edx
lea eax, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
neg eax
mov dword [edx + 0x14], ebx
mov esi, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x3c]
sbb eax, eax
push 0
push ecx
and eax, esi
push 0
push edx
push eax
mov dword [esp + 0x50], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
test eax, eax
je 0x4a1b2d
mov edi, dword [esp + 0x38]
test edi, edi
je 0x4a1b2d
mov ecx, ebx
lea esi, [ebp + 0x28]
mov edx, ecx
mov dword [esp + 0x34], eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
push eax
call fcn.0045147b
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0057bbe5
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret