joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48abe0
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x537416
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.004a09c0
mov ecx, eax
call fcn.004a0a20
test al, al
jne 0x48ac2d
mov esi, dword [esp + 0x134]
push 0x5a17b0
mov ecx, esi
call fcn.00511f59
jmp 0x48adc7
mov eax, dword [0x598d50]
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 0x48acaf
lea edx, [esp + 0x10]
push edx
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x48ac96
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x48ac96
lea edx, [esp + 0x20]
lea ecx, [esp + 8]
push edx
call fcn.00512074
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 0x48acd6
mov esi, dword [esp + 0x134]
push 0x5a17b0
mov ecx, esi
call fcn.00511f59
mov dword [esp + 0xc], ebx
jmp 0x48adb6
call fcn.005269f5
mov esi, dword [eax + 4]
push 0x5909e8
lea ecx, [esp + 0x18]
call fcn.00511f59
mov ecx, dword [esi + 0x78]
lea edx, [esp + 0x1c]
push ecx
push eax
push edx
mov byte [esp + 0x138], 2
call fcn.00512180
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x130], 3
call fcn.00512303
lea ecx, [esp + 0x1c]
mov byte [esp + 0x12c], 2
call fcn.00511eeb
lea ecx, [esp + 0x14]
mov byte [esp + 0x12c], bl
call fcn.00511eeb
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 0x48ad57
test al, 0x10
jne 0x48ad70
mov esi, dword [esp + 0x134]
push 0x5a17b0
mov ecx, esi
call fcn.00511f59
mov dword [esp + 0xc], ebx
jmp 0x48adb6
lea edx, [esp + 8]
push 0x5909e8
lea eax, [esp + 0x18]
push edx
push eax
call fcn.00512180
mov ecx, dword [esp + 0x138]
mov esi, dword [esp + 0x134]
push ecx
push eax
push esi
mov byte [esp + 0x138], 4
call fcn.0051211a
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], ebx
mov byte [esp + 0x12c], bl
call fcn.00511eeb
lea ecx, [esp + 8]
mov byte [esp + 0x12c], 0
call fcn.00511eeb
mov ecx, dword [esp + 0x124]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret 8
Function at 0x48b330
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5374ae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb8
mov eax, dword [esp + 0xc8]
push ebx
push esi
xor ebx, ebx
push edi
push ebx
mov esi, ecx
push 0x1000
push 1
push eax
lea ecx, [esp + 0x90]
call fcn.00518ffa
lea ecx, [esp + 0x80]
mov dword [esp + 0xcc], ebx
push ecx
lea ecx, [esp + 0x44]
call fcn.004db360
mov edi, dword [esp + 0xd8]
lea ecx, [esp + 0xc]
mov byte [esp + 0xcc], 1
mov dword [esp + 0x5c], edi
call fcn.005116fb
mov dword [esp + 0x2c], 0x5504f8
mov dword [esp + 0x30], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0xc], 0x550504
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 + 0xd4], 2
call dword [edx + 0x84]
test eax, eax
je 0x48b3f9
mov eax, dword [edi + 8]
mov edx, dword [esi]
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
call dword [edx + 0x8c]
lea ecx, [esp + 0x80]
call fcn.0051915e
lea ecx, [esp + 0xc]
mov byte [esp + 0xcc], 1
call fcn.0047b590
lea ecx, [esp + 0x40]
mov byte [esp + 0xcc], bl
call fcn.004d9eb0
lea ecx, [esp + 0x80]
mov dword [esp + 0xcc], 0xffffffff
call fcn.005190d6
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xc4
ret 8

Function at 0x48e890
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x38
mov eax, dword [esp + 0x3c]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x48e91a
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x44]
push 0
push ecx
lea edx, [esp + 0x10]
push 0xe
push edx
push esi
call edi
test eax, eax
je 0x48e913
cmp dword [esp + 0x44], 0xe
jne 0x48e913
lea eax, [esp + 0x44]
push 0
push eax
lea ecx, [esp + 0x20]
push 0x28
push ecx
push esi
call edi
test eax, eax
je 0x48e913
cmp dword [esp + 0x44], 0x28
jne 0x48e913
xor edx, edx
cmp word [esp + 0x26], 0x20
push esi
sete dl
mov edi, edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x38
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x38
ret
Function at 0x48e930
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push ebp
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x48e9c4
lea ecx, [esp + 4]
push 0
push ecx
lea edx, [esp + 0x10]
push 4
push edx
push ebp
mov byte [esp + 0x24], 0x89
mov byte [esp + 0x25], 0x50
mov byte [esp + 0x26], 0x4e
mov byte [esp + 0x27], 0x47
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48e9bd
cmp dword [esp + 4], 4
jne 0x48e9bd
push ebx
push esi
push edi
mov ecx, 4
lea edi, [esp + 0x1c]
lea esi, [esp + 0x14]
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x48e9a7
sbb ebx, ebx
sbb ebx, 0xffffffff
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
test ebx, ebx
pop esi
pop ebx
sete al
pop ebp
add esp, 8
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop ebp
add esp, 8
ret

Function at 0x48eb20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push 0x59d88c
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 0x48eb52
pop esi
pop ecx
ret
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x48eb61
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 0x48eb80
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 0x48eb99
pop esi
ret
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x48eba7
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x48ebb4
pop esi
ret
xor ecx, ecx
cmp word [eax + 0xe], 0x20
pop esi
sete cl
mov eax, ecx
ret
Function at 0x48eea0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5377c8
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0x14
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
push 2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x48eee5
pop edi
pop esi
pop ebp
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 0x48ef03
pop edi
pop esi
pop ebp
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 0x48ef22
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
push ebx
mov ebx, dword [ebp + 8]
imul ebx, dword [ebp + 4]
shl ebx, 2
cmp word [ebp + 0xe], 0x20
mov dword [esp + 0x34], 0
jne 0x48f002
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [ebx + 0x28]
cmp eax, ecx
jb 0x48f002
lea ecx, [esp + 0x14]
call fcn.005150d2
push 0
mov dword [esp + 0x30], 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x18]
call fcn.00515189
push 0x34
call fcn.00461c33
mov edx, eax
mov ecx, 0xa
mov esi, ebp
mov edi, edx
add esp, 4
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 + 0x28], edx
mov dword [esp + 0x50], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
test eax, eax
je 0x48efe0
mov edi, dword [esp + 0x38]
test edi, edi
je 0x48efe0
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]
test eax, eax
je 0x48eff1
push eax
call fcn.0046185f
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00515207
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x34]
pop ebx
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x48fad0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x537848
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
lea ecx, [esp + 0x14]
call fcn.005150d2
xor ebx, ebx
push ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x18]
call fcn.00515189
lea eax, [esp + 0x10]
lea ecx, [esp + 4]
push eax
mov eax, dword [esp + 0x38]
lea edx, [esp + 0xc]
push ecx
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call fcn.0048f980
add esp, 0x14
test eax, eax
jne 0x48fb59
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00515207
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
mov ecx, dword [esp + 8]
push ebp
neg eax
sbb eax, eax
push edi
and eax, edx
push ebx
lea edx, [esp + 0x18]
push ebx
push edx
push ebx
push ecx
push eax
mov dword [esp + 0x2c], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov edi, dword [esp + 0x14]
mov ebp, eax
cmp edi, ebx
je 0x48fba7
cmp ebp, ebx
je 0x48fba7
mov ecx, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x10]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x48fbbc
push eax
call fcn.0046185f
add esp, 4
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x48fbd1
push eax
call fcn.0046185f
add esp, 4
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xffffffff
call fcn.00515207
mov ecx, dword [esp + 0x2c]
mov eax, ebp
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x492630
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
call fcn.005269f5
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 8]
and eax, 0xffff
push 0xf1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x492657
pop esi
ret 0x10
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x492667
pop esi
ret 0x10
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x492678
pop esi
ret 0x10
xor ecx, ecx
push ebx
mov cx, word [esi + 6]
push ebp
shl ecx, 2
push edi
push ecx
call fcn.00511c2c
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
xor edi, edi
add esp, 4
mov dword [ebp], eax
mov dword [ebx], 0
cmp word [esi + 6], di
jbe 0x4926d9
mov ecx, esi
call fcn.004864c0
cmp word [eax + edi*2], 0
je 0x4926ce
mov ecx, esi
call fcn.004864c0
mov ecx, dword [ebp]
xor edx, edx
mov dx, word [eax + edi*2]
mov eax, dword [ebx]
mov dword [ecx + eax*4], edx
mov eax, dword [ebx]
inc eax
mov dword [ebx], eax
xor edx, edx
inc edi
mov dx, word [esi + 6]
cmp edi, edx
jl 0x4926a6
mov edx, dword [esp + 0x20]
xor eax, eax
mov ax, word [esi + 2]
xor ecx, ecx
mov cx, word [esi + 4]
pop edi
pop ebp
mov dword [edx], eax
pop ebx
mov dword [edx + 4], ecx
mov eax, 1
pop esi
ret 0x10
Function at 0x4933a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x537d28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
mov dword [esp + 4], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x545e38
mov ecx, dword [esp + 0x20]
lea eax, [esp + 4]
push eax
push ecx
mov dword [esp + 0x20], 0
call fcn.0048ebd0
add esp, 8
test eax, eax
jne 0x49341e
mov dword [esp + 8], 0x53eeb0
lea ecx, [esp + 8]
mov dword [esp + 0x18], 1
call fcn.00515dce
xor eax, eax
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 0x18
push eax
lea ecx, [esp + 0xc]
call fcn.00515d77
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, esi
call fcn.00493040
mov esi, eax
mov dword [esp + 8], 0x53eeb0
lea ecx, [esp + 8]
mov dword [esp + 0x18], 2
call fcn.00515dce
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 0x18
Function at 0x493490
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x537d52
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov esi, ecx
lea eax, [esp + 0x18]
xor edi, edi
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], edi
call fcn.0048f4b0
mov ebp, dword [esi + 0x50]
push 0x40
inc ebp
mov dword [esi + 0x50], ebp
call fcn.00511c2c
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, edi
mov byte [esp + 0x28], 1
je 0x4934f2
mov ecx, dword [esi + 0x50]
push esi
push ecx
mov ecx, eax
call fcn.00491c60
mov dword [esp + 0x10], eax
jmp 0x4934f6
mov dword [esp + 0x10], edi
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x30]
push edx
mov byte [esp + 0x2c], 0
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.0048f330
mov ecx, dword [esp + 0x24]
call fcn.00491f30
mov edi, dword [esi + 0x50]
mov ebx, dword [esi + 0x28]
mov eax, edi
xor edx, edx
shr eax, 4
div ebx
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x14], edi
test ecx, ecx
mov ebp, edx
je 0x493558
mov eax, dword [ecx + ebp*4]
test eax, eax
je 0x493554
cmp dword [eax + 8], edi
je 0x49354c
mov eax, dword [eax]
test eax, eax
jne 0x49353f
jmp 0x493554
test eax, eax
jne 0x4935e9
test ecx, ecx
jne 0x493588
lea edi, [ebx*4]
push edi
call fcn.00511c2c
mov edx, eax
mov ecx, edi
mov dword [esi + 0x24], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x14]
mov dword [esi + 0x28], ebx
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x4935be
mov eax, dword [esi + 0x38]
push 0x10
lea ecx, [esi + 0x34]
push eax
push ecx
call fcn.0050cde6
mov ecx, dword [esi + 0x38]
mov edx, ecx
shl edx, 4
dec ecx
test ecx, ecx
lea eax, [edx + eax - 0xc]
jl 0x4935be
inc ecx
mov edx, dword [esi + 0x30]
mov dword [eax], edx
mov dword [esi + 0x30], eax
sub eax, 0x10
dec ecx
jne 0x4935b0
mov eax, dword [esi + 0x30]
mov ecx, dword [eax]
mov dword [esi + 0x30], ecx
mov ecx, dword [esi + 0x2c]
inc ecx
mov dword [esi + 0x2c], ecx
xor ecx, ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 4], ebp
mov dword [eax + 8], edi
mov edx, dword [esi + 0x24]
mov ecx, dword [edx + ebp*4]
mov dword [eax], ecx
mov edx, dword [esi + 0x24]
mov dword [edx + ebp*4], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
mov dword [eax + 0xc], ecx
mov esi, dword [esi + 0x50]
lea ecx, [esp + 0x30]
call fcn.0048f400
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret 0x10
Function at 0x493620
Capabilities:
Write clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x537d70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push ebp
push esi
mov esi, ecx
push 0x400
lea ecx, [esp + 0x10]
call fcn.0051cc90
push 0
push 0x1000
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x90], 0
call fcn.00518ffa
mov edx, dword [esp + 0x88]
lea ecx, [esp + 0x34]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x88], 1
call fcn.00493fa0
lea ecx, [esp + 0x34]
call fcn.0051930b
lea ecx, [esp + 0xc]
call fcn.0051cdf2
lea ecx, [esp + 0xc]
mov esi, eax
call fcn.0051cd43
push esi
push 2
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x4936ef
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, esi
mov edi, eax
mov eax, ecx
mov esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [0x5a4598]
push ebp
and ecx, 0xffff
push ecx
call dword [sym.imp.USER32.dll_SetClipboardData]
pop edi
lea ecx, [esp + 0x34]
call fcn.0051915e
lea ecx, [esp + 0xc]
call fcn.0051cf3c
push ebx
call fcn.0046185f
add esp, 4
lea ecx, [esp + 0x34]
mov byte [esp + 0x80], 0
call fcn.005190d6
lea ecx, [esp + 0xc]
mov dword [esp + 0x80], 0xffffffff
call fcn.0051cd55
mov ecx, dword [esp + 0x78]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x78
ret 4

Function at 0x496a60
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 0x496aa5
cmp esi, 0x21
jb 0x496a7a
cmp esi, 0x2e
jbe 0x496aa5
cmp esi, 0x43
je 0x496a8e
cmp esi, 0x56
je 0x496a8e
cmp esi, 0x58
je 0x496a8e
cmp esi, 0x5a
jne 0x496a9b
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x496aa5
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.005113ab
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
add esp, 0x1c
ret 8

Function at 0x496cc0
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 0x496cd8
pop edi
xor eax, eax
pop ebx
add esp, 0x1c
ret 8
mov ebx, dword [esp + 0x28]
cmp ebx, 0x26
je 0x496cf0
cmp ebx, 0x28
je 0x496cf0
cmp ebx, 0x22
je 0x496cf0
cmp ebx, 0x21
jne 0x496cfd
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x496d07
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 0x49b580
Capabilities:
Resolve function by parsing pe exports

Disassembly:
call fcn.0049a6c0
mov ecx, eax
jmp fcn.0049b610
Function at 0x4ab780
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x539200
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, 0xaa
mov ecx, 0x55
xor esi, esi
mov word [esp + 0x20], cx
mov word [esp + 0x22], ax
mov word [esp + 0x24], cx
mov word [esp + 0x26], ax
mov word [esp + 0x28], cx
mov word [esp + 0x2a], ax
mov word [esp + 0x2c], cx
mov word [esp + 0x2e], ax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], 0x545e38
lea eax, [esp + 0x20]
mov dword [esp + 0x38], esi
push eax
push 1
push 1
push 8
push 8
call dword [sym.imp.GDI32.dll_CreateBitmap]
push eax
lea ecx, [esp + 0x1c]
call fcn.00515d77
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0x53eea0
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
neg eax
sbb eax, eax
mov byte [esp + 0x38], 1
and eax, ecx
push eax
call dword [sym.imp.GDI32.dll_CreatePatternBrush]
push eax
lea ecx, [esp + 0x14]
call fcn.00515d77
mov esi, dword [esp + 0x40]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.0051531d
mov ebp, dword [esi]
push 0xf
mov ecx, edi
mov ebx, eax
call fcn.0046e3b0
push eax
mov ecx, esi
call dword [ebp + 0x2c]
mov edx, dword [esi]
push 0x14
mov ecx, edi
mov ebp, eax
mov dword [esp + 0x44], edx
call fcn.0046e3b0
mov edx, dword [esp + 0x40]
push eax
mov ecx, esi
call dword [edx + 0x30]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x44]
push 0xf00021
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0xc]
mov edi, dword [eax]
mov eax, dword [eax + 8]
sub ecx, edx
sub eax, edi
push ecx
push eax
mov eax, dword [esi + 4]
push edx
push edi
push eax
call dword [sym.imp.GDI32.dll_PatBlt]
push ebx
mov ecx, esi
call fcn.0051531d
mov edx, dword [esi]
push ebp
mov ecx, esi
call dword [edx + 0x2c]
mov ecx, dword [esp + 0x40]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x30]
lea ecx, [esp + 0x10]
call fcn.00515dce
mov esi, 0x53eeb0
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 2
call fcn.00515dce
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], 3
call fcn.00515dce
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 8