joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404f78
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, word [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push 2
push eax
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x405015
mov cx, word [eax + 0xe]
cmp cx, 8
ja 0x405015
push 1
pop esi
shl esi, cl
movzx edi, si
lea eax, [edi*4 + 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp + 8]
mov ebx, eax
mov eax, dword [ecx]
add eax, ecx
test ebx, ebx
je 0x405015
test si, si
mov word [ebx], 0x300
mov word [ebx + 2], si
jbe 0x405004
lea ecx, [ebx + 5]
mov dl, byte [eax + 2]
mov byte [ecx - 1], dl
mov dl, byte [eax + 1]
mov byte [ecx], dl
mov dl, byte [eax]
mov byte [ecx + 1], dl
and byte [ecx + 2], 0
add ecx, 4
add eax, 4
dec edi
jne 0x404fe7
push ebx
call dword [sym.imp.GDI32.dll_CreatePalette]
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405084
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push 2
push 0x76
push dword [0x4150d8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x405128
push eax
push dword [0x4150d8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405128
push ebx
push edi
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_GetDC]
push 1
mov cl, byte [esi + 0xe]
pop edi
mov ebx, eax
push 0
push dword [0x4151cc]
shl edi, cl
push ebx
call dword [sym.imp.GDI32.dll_SelectPalette]
push ebx
call dword [sym.imp.GDI32.dll_RealizePalette]
mov ecx, dword [esi]
push 0
movzx eax, di
push esi
lea eax, [ecx + eax*4]
add eax, esi
push eax
push 4
push esi
push ebx
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
push eax
push 0
push 0x172
push 0x85
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push ebx
mov esi, eax
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_ReleaseDC]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop ebx
pop esi
ret

Function at 0x4051cc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, eax
dec eax
test ecx, ecx
je 0x405206
mov ecx, dword [ebp + 8]
push esi
lea edx, [eax + 1]
mov eax, dword [ebp + 0x10]
movzx esi, byte [ecx]
and eax, 0xff
xor eax, esi
mov esi, dword [0x4152e0]
inc ecx
mov eax, dword [esi + eax*4]
mov esi, dword [ebp + 0x10]
shr esi, 8
xor esi, eax
dec edx
mov dword [ebp + 0x10], esi
jne 0x4051e0
pop esi
mov eax, dword [ebp + 0x10]
pop ebp
ret
Function at 0x40520b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
or dword [ebp - 0xc], 0xffffffff
cmp dword [ebp + 8], 0xffffffff
je 0x405289
push ebx
push esi
mov esi, 0x8000
push edi
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
call fcn.00407d3f
pop ecx
mov dword [ebp - 8], eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push eax
push esi
push dword [ebp - 8]
push dword [ebp + 8]
call edi
test eax, eax
je 0x40527d
cmp dword [ebp - 4], ebx
je 0x40527d
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004051cc
add esp, 0xc
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push ebx
push eax
push esi
push dword [ebp - 8]
push dword [ebp + 8]
jmp 0x405250
push dword [ebp - 8]
call fcn.00407d4d
pop ecx
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
not eax
leave
ret

Function at 0x4054f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov byte [ebp - 4], 0x13
mov byte [ebp - 3], 0x35
mov byte [ebp - 2], 0x86
mov byte [ebp - 1], 7
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
push ebx
call fcn.00407d3f
mov esi, eax
pop ecx
test esi, esi
je 0x40553e
xor edx, edx
test ebx, ebx
jbe 0x40553e
sub edi, esi
mov eax, edx
lea ecx, [edx + esi]
and eax, 3
mov al, byte [ebp + eax - 4]
xor al, byte [edi + ecx]
inc edx
cmp edx, ebx
mov byte [ecx], al
jb 0x405528
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405545
Capabilities:
Get file size

Disassembly:
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push 1
push 0xc0000000
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4055c7
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push esi
push esi
push 4
push esi
push edi
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
cmp ebx, esi
je 0x4055bf
push ebp
push esi
push esi
push esi
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
cmp ebp, esi
je 0x4055b7
push dword [esp + 0x18]
push dword [esp + 0x18]
push ebp
call fcn.004055cc
add esp, 0xc
mov esi, eax
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, esi
pop edi
pop esi
ret
Function at 0x4057ce
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x117]
mov byte [ebp - 0x118], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x21b]
mov byte [ebp - 0x21c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.GetDiskFreeSpaceExA
push str.kernel32.dll
stosb byte es:[edi], al
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov cl, byte [eax]
cmp cl, 0x5c
jne 0x40585f
cmp byte [eax + 1], cl
jne 0x40585f
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x21c]
push 0x4141dc
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x40587b
mov al, byte [eax + 1]
mov byte [ebp - 0x118], cl
mov byte [ebp - 0x117], al
mov byte [ebp - 0x116], 0x5c
mov byte [ebp - 0x115], bl
cmp dword [ebp - 0x14], ebx
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
je 0x4058bd
cmp byte [ebp - 0x21c], bl
lea eax, [ebp - 0x21c]
jne 0x40589a
lea eax, [ebp - 0x118]
push esi
push edi
push dword [ebp + 0xc]
push eax
call dword [ebp - 0x14]
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x405953
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x405953
cmp byte [ebp - 0x21c], bl
je 0x4058e4
lea eax, [ebp - 0x118]
push 0x104
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0040595b
add esp, 0xc
test eax, eax
je 0x405956
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x40593e
push dword [ebp - 0xc]
mov dword [edi + 4], ebx
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004059e9
push dword [ebp - 0x10]
mov dword [edi], eax
mov dword [esi + 4], ebx
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004059e9
mov dword [esi], eax
mov ecx, eax
mov eax, dword [ebp + 0xc]
add esp, 0x18
mov dword [eax], ecx
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
cmp byte [ebp - 0x21c], bl
je 0x405953
lea eax, [ebp - 0x118]
push eax
call fcn.00405a12
pop ecx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406026
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x20]
push 0xfffffffffffffff4
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_GetWindowLongA]
mov ebx, dword [eax]
mov esi, dword [eax + 0x30]
push ebx
mov dword [ebp - 4], esi
mov dword [ebp - 0x24], ebx
call edi
test esi, esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
je 0x406088
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1c], 0xffffff37
push eax
push 0
push 0x4e
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebp - 0x18], 0
jne 0x4061bf
mov eax, dword [ebp - 4]
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
cmp dword [esi], eax
jne 0x406147
push esi
push 0x406f2c
push ebx
mov dword [ebp - 0x14], eax
push dword [esi + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0x13d
mov dword [ebp - 8], 0xc1
push dword [esi + 8]
call fcn.00405bd3
add esp, 0x14
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4061c2
push 0xfffffffffffffff0
push eax
call edi
and eax, 0x7b30ff7f
or eax, 0x40000000
push eax
push 0xfffffffffffffff0
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0xffffffffffffffec
push dword [ebp + 0xc]
call edi
and ax, 0xfefe
push eax
push 0xffffffffffffffec
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowLongA]
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetParent]
mov eax, dword [esi + 4]
and eax, 2
test al, al
jne 0x406121
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x10], 0x2c
mov dword [ebp - 8], 0x8f
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.USER32.dll_MapDialogRect]
push 0x214
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1c], 0xffffff38
push eax
push 0
push 0x4e
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebp - 0x18], 0xffffffff
je 0x4061bf
xor edi, edi
cmp dword [ebp - 0x18], edi
je 0x40617a
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.004061ea
pop ecx
pop ecx
jmp 0x4061c2
mov eax, dword [ebp + 8]
push 1
push edi
push ebx
mov dword [eax + 0x30], esi
call dword [sym.imp.USER32.dll_InvalidateRect]
push 5
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
push edi
push edi
push dword [esi]
mov edi, dword [sym.imp.USER32.dll_GetNextDlgTabItem]
call edi
test eax, eax
jne 0x4061b4
push eax
push eax
push ebx
call edi
test eax, eax
je 0x4061b7
push eax
jmp 0x4061b9
push dword [esi]
call dword [sym.imp.USER32.dll_SetFocus]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40623f
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 8]
push 0xe
mov dword [ebp - 0x90], ebx
stosd dword es:[edi], eax
pop ecx
lea edi, [ebp - 0x8c]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
call dword [sym.imp.USER32.dll_GetDC]
push 0xc
mov dword [ebp - 4], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x53]
mov byte [ebp - 0x54], bl
rep stosd dword es:[edi], eax
push ebx
push ebx
push 0x31
push dword [ebp + 8]
stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x90]
push ecx
push 0x3c
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
lea eax, [ebp - 0x90]
mov byte [ebp - 0x75], 0x20
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [ebp - 4]
call edi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x54]
push 0x32
push eax
push 0x3ee
push dword [ebp + 8]
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00407130
pop ecx
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_GetTextExtentPointA]
push dword [ebp - 0x20]
push dword [ebp - 4]
call edi
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 4]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
lea eax, [ebp - 0x1c]
push eax
push 0x3ed
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [ebp - 8]
push 0xfffffffffffffffe
mov eax, ecx
add ecx, 2
cdq
sub eax, edx
pop edx
sar eax, 1
sub edx, eax
mov eax, dword [ebp - 0xc]
add dword [ebp - 0x18], edx
push ebx
add eax, 5
push ecx
push eax
mov dword [ebp - 0x1c], ebx
push dword [ebp - 0x18]
push ebx
push 0x3ee
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b6f1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4146d8
cmp edx, dword [eax]
je 0x40b713
add eax, 8
inc ecx
cmp eax, 0x414768
jl 0x40b704
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4146d8]
jne 0x40b841
mov eax, dword [0x415304]
cmp eax, 1
je 0x40b81b
test eax, eax
jne 0x40b744
cmp dword [0x4142e4], 1
je 0x40b81b
cmp edx, 0xfc
je 0x40b841
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40b77b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407920
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00407130
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40b7be
lea eax, [ebp - 0x1a4]
push eax
call fcn.00407130
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x412740
push edi
call fcn.0040c990
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407920
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407930
lea eax, [ebp - 0xa0]
push 0x4141cc
push eax
call fcn.00407930
push dword [esi + 0x4146dc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407930
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040c8fd
add esp, 0x2c
pop edi
jmp 0x40b841
lea eax, [ebp + 8]
lea esi, [esi + 0x4146dc]
push 0
push eax
push dword [esi]
call fcn.00407130
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x40ee6e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov eax, dword [esp + 0x10]
mov ebp, esp
push esi
push edi
mov esi, dword [ebp + 0xc]
shr esi, 2
mov edx, dword [ebp + 8]
mov ecx, esi
dec esi
test ecx, ecx
jle 0x40eeaf
movzx edi, byte [edx]
inc edx
movzx ecx, byte [edx]
shl ecx, 8
inc edx
or edi, ecx
movzx ecx, byte [edx]
shl ecx, 0x10
inc edx
or edi, ecx
movzx ecx, byte [edx]
shl ecx, 0x18
inc edx
or edi, ecx
mov ecx, esi
xor eax, edi
dec esi
test ecx, ecx
jg 0x40ee87
xor esi, esi
mov ecx, dword [ebp + 0xc]
and ecx, 3
cmp ecx, 1
je 0x40eed6
cmp ecx, 2
je 0x40eecd
cmp ecx, 3
jne 0x40eedb
movzx esi, byte [edx]
shl esi, 0x10
inc edx
movzx ecx, byte [edx]
shl ecx, 8
inc edx
or esi, ecx
movzx ecx, byte [edx]
or esi, ecx
xor eax, esi
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x10012f2b
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10072130
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x10012fbd
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
push dword [eax]
mov eax, dword [ebp - 0x28]
push dword [eax]
lea eax, [ebp - 0x40]
push eax
call fcn.10010d69
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
and dword [ebp - 4], 0
push dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
call fcn.1001344d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10013482
jmp 0x10012fc5
push 0
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x100252c9
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
push 1
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.10024fdf
add esp, 0xc
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x100252f9
xor eax, eax
jmp 0x10025447
push 0x6cc0
push 0
push 0x53cb
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
call fcn.10025141
add esp, 0x18
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x1002532b
xor eax, eax
jmp 0x10025447
push dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
push 0x4f3a
push 1
call fcn.10024c61
add esp, 0x10
cmp dword [ebp - 0xc], 0
jne 0x1002534e
xor eax, eax
jmp 0x10025447
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x429
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.10025027
add esp, 0x1c
push dword [ebp + 8]
push 0
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.1002120e
add esp, 0x10
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 8]
push eax
call fcn.100250ea
add esp, 0x10
cmp dword [ebp - 0x14], 0
je 0x100253c1
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 4]
push eax
push 0x476c
push 0x3d98
push 0x64bb
call fcn.10025141
add esp, 0x18
push dword [ebp - 4]
call fcn.10024b26
pop ecx
test eax, eax
jne 0x100253d2
xor eax, eax
jmp 0x10025447
push 0x7e24
push 0x2860
push 1
lea eax, [ebp - 4]
push eax
call fcn.100251b7
add esp, 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x1002542f
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x18], ecx
jne 0x10025409
xor eax, eax
jmp 0x10025447
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x10025422
xor eax, eax
jmp 0x10025447
push 1
lea eax, [ebp - 4]
push eax
call fcn.1002528b
pop ecx
pop ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x10025440
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
jmp 0x10025444
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x100342cd
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x10034392
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
and dword [ebp - 8], 0
jmp 0x10034329
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add eax, 0x28
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
movzx eax, word [eax + 6]
cmp dword [ebp - 8], eax
jge 0x10034390
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x10]
jb 0x1003438e
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push dword [eax + 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push dword [eax + 8]
call fcn.10034253
pop ecx
pop ecx
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x28]
jae 0x1003438e
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
mov eax, dword [eax + 0x14]
sub eax, dword [ecx + 0xc]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
jmp 0x10034390
jmp 0x10034315
jmp 0x1003439c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov esp, ebp
pop ebp
ret

Function at 0x10034ed0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x10034f40
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
push 0
mov eax, dword [ebp - 0x18]
push dword [eax]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx]
add ecx, dword [eax + 0xc]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
add eax, ecx
push eax
mov ecx, dword [ebp - 0x28]
call fcn.10039b4e
jmp 0x10034f48
push 0
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov esp, ebp
pop ebp
ret