joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43cc40
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43cc73
push esi
call fcn.0043fd50
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43cc6c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43ccf9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43cce2
mov eax, dword [esi + 8]
test eax, eax
je 0x43cc97
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43ccde
cmp eax, 2
je 0x43cce2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43cc8a
cmp eax, 3
je 0x43ccbd
cmp eax, 1
jne 0x43cc8a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43cc8a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43cc8a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043cd20
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43cd08
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043cd20
add esp, 4
pop esi
ret

Function at 0x47064a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x470682
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046e701
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046e6d9
jmp 0x47068e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x471d3b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x471d7d
call fcn.00477a2b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x471d7d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x471d74
xor eax, eax
jmp 0x471d85
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00471d8b
pop edi
pop esi
pop ebx
ret 4

Function at 0x477f5b
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x477f89
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x477fa7
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00477ec1
jmp 0x477fa7
mov eax, dword [esi + 0x14]
test eax, eax
je 0x477fa7
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00477ec1
test edi, edi
mov eax, edi
jne 0x477f91
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x14000
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push str.Enter_DriverEntry_n
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov eax, dword [ebp + 8]
mov dword [eax + 0x34], 0x13000
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x38], 0x13070
mov edx, dword [ebp + 8]
mov dword [edx + 0x40], 0x13110
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], 0x13280
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x44], 0x131a0
mov edx, dword [ebp + 8]
push edx
call fcn.00014070
mov dword [ebp - 4], eax
push str.DriverEntry_end_n
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x14070
Capabilities:
Create device object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push str.DeviceMyGPIODevice
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x20], edx
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x22
lea ecx, [ebp - 0x24]
push ecx
push 0xa0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x140bf
mov eax, dword [ebp - 0x18]
jmp 0x14157
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
or ecx, 4
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x28]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov dword [edx], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 8]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x68
push ecx
call dword [sym.imp.ntoskrnl.exe_KeInitializeTimer]
mov edx, dword [ebp - 4]
push edx
push section..text
mov eax, dword [ebp - 0x1c]
add eax, 0x44
push eax
call dword [sym.imp.ntoskrnl.exe_KeInitializeDpc]
push str.__GPIO
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [edx + 0x14], ecx
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x14155
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, dword [ebp - 0x18]
jmp 0x14157
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x401000
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push 0x44
xor esi, esi
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.00401080
push 0x10
lea eax, [ebp - 0x14]
push esi
push eax
mov dword [ebp - 0x58], 0x44
call fcn.00401080
add esp, 0x18
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push 0x8000008
push 1
push esi
push esi
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401053
push 0xff
jmp 0x401072
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40104c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401129
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x60
push 0x4060f8
call fcn.004021ec
mov edi, 0x94
mov eax, edi
call fcn.00402350
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x408910], ecx
mov eax, dword [esi + 4]
mov dword [0x40891c], eax
mov edx, dword [esi + 8]
mov dword [0x408920], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x408914], esi
cmp ecx, 2
je 0x401189
or esi, 0x8000
mov dword [0x408914], esi
shl eax, 8
add eax, edx
mov dword [0x408918], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4011c4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4011c4
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4011dc
cmp eax, 0x20b
je 0x4011c9
mov dword [ebp - 0x1c], esi
jmp 0x4011f0
cmp dword [ecx + 0x84], 0xe
jbe 0x4011c4
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4011ea
cmp dword [ecx + 0x74], 0xe
jbe 0x4011c4
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0040219a
pop ecx
test eax, eax
jne 0x401204
push 0x1c
call fcn.00401105
pop ecx
call fcn.00402091
test eax, eax
jne 0x401215
push 0x10
call fcn.00401105
pop ecx
call fcn.00401e2b
mov dword [ebp - 4], esi
call fcn.00401c2d
test eax, eax
jge 0x40122e
push 0x1b
call fcn.004010e0
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x409134], eax
call fcn.00401b0b
mov dword [0x408900], eax
call fcn.00401a69
test eax, eax
jge 0x401254
push 8
call fcn.004010e0
pop ecx
call fcn.00401836
test eax, eax
jge 0x401265
push 9
call fcn.004010e0
pop ecx
push 1
call fcn.00401358
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40127b
push eax
call fcn.004010e0
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004017d9
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40129c
movzx eax, word [ebp - 0x40]
jmp 0x40129f
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call section..text
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4012bd
push edi
call fcn.00401485
call fcn.004014a7
jmp 0x4012ef
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00402227
ret
Function at 0x4013c2
Capabilities:
Terminate process

Disassembly:
push 8
push 0x406120
call fcn.004021ec
push 8
call fcn.004024e0
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x408950], esi
jne 0x4013f6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x40894c], esi
mov al, byte [ebp + 0x10]
mov byte [0x408948], al
cmp dword [ebp + 0xc], edi
jne 0x401440
cmp dword [0x409128], edi
je 0x401430
mov eax, dword [0x409124]
sub eax, 4
mov dword [0x409124], eax
cmp eax, dword [0x409128]
jb 0x401430
mov eax, dword [eax]
cmp eax, edi
je 0x401411
call eax
jmp 0x401411
push 0x408020
mov eax, 0x40801c
call fcn.00401340
pop ecx
push 0x408028
mov eax, 0x408024
call fcn.00401340
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x401471
cmp dword [ebp + 0x10], edi
jne 0x40147f
mov dword [0x408950], esi
push dword [ebp + 8]
call fcn.004012fe
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40147e
push 8
call fcn.0040242b
pop ecx
ret
call fcn.00402227
ret

Function at 0x4014c5
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4082b0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x408038]
je 0x4014fa
inc eax
cmp eax, 0x13
jb 0x4014eb
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x408038]
jne 0x401620
mov eax, dword [0x408908]
cmp eax, 1
je 0x4015f8
cmp eax, edx
jne 0x40152a
cmp dword [0x408034], 1
je 0x4015f8
cmp ecx, 0xfc
je 0x401620
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401560
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00402700
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00402930
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x401594
mov eax, edi
push eax
call fcn.00402930
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x406518
push edi
call fcn.00402800
add esp, 0x10
push edi
call fcn.00402930
push dword [esi + 0x40803c]
mov ebx, eax
call fcn.00402930
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00402350
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00402700
push edi
push ebx
call fcn.00402710
push 0x4064f8
push ebx
call fcn.00402710
push dword [esi + 0x40803c]
push ebx
call fcn.00402710
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00402603
add esp, 0x2c
jmp 0x401620
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40803c]
push dword [esi]
call fcn.00402930
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.004029ec
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x402603
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x408bc8], ebx
push esi
push edi
jne 0x402683
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4026be
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x408bc8], eax
je 0x4026be
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x408bcc], eax
call esi
cmp dword [0x408910], 2
mov dword [0x408bd0], eax
jne 0x402683
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x408bd8], eax
je 0x402683
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x408bd4], eax
mov eax, dword [0x408bd4]
test eax, eax
je 0x4026c8
call eax
test eax, eax
je 0x4026af
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x408bd8]
test eax, eax
je 0x4026af
test byte [ebp - 8], 1
jne 0x4026c8
cmp dword [0x40891c], 4
jb 0x4026c2
or byte [ebp + 0x12], 0x20
jmp 0x4026e7
xor eax, eax
jmp 0x4026f7
or byte [ebp + 0x12], 4
jmp 0x4026e7
mov eax, dword [0x408bcc]
test eax, eax
je 0x4026e7
call eax
mov ebx, eax
test ebx, ebx
je 0x4026e7
mov eax, dword [0x408bd0]
test eax, eax
je 0x4026e7
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x408bc8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4042c2
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4042f0
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4042f7
cmp ebx, dword [eax + 4]
jae 0x4042f7
xor eax, eax
jmp 0x4044e7
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x404308
xor eax, eax
inc eax
jmp 0x4044e6
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40431e
cmp ecx, edx
jae 0x404463
cmp dword [eax + 4], 0
je 0x404327
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40430f
cmp dword [ebp + 8], 0
je 0x404349
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x404463
cmp eax, esi
jae 0x404463
mov eax, dword [0x408bf0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40436e
cmp dword [esi*4 + 0x408bf8], edi
je 0x404467
inc esi
cmp esi, eax
jl 0x40435c
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4044e3
cmp dword [ebp - 8], 0x1000000
jne 0x4044e3
test byte [ebp - 0xc], 0xcc
je 0x4043ec
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4044e3
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4044e3
cmp word [eax + 0x18], 0x10b
jne 0x4044e3
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4044e3
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4043ec
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4043ec
test byte [ecx + 0x27], 0x80
jne 0x404463
push 1
push 0x408c38
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x404300
mov ecx, dword [0x408bf0]
test ecx, ecx
mov edx, ecx
jle 0x404420
lea eax, [ecx*4 + 0x408bf4]
cmp dword [eax], edi
je 0x404420
dec edx
sub eax, 4
test edx, edx
jg 0x404414
test edx, edx
jne 0x404451
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40442d
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x404445
lea eax, [edx*4 + 0x408bf8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x404433
cmp ecx, 0x10
jge 0x404451
inc ecx
mov dword [0x408bf0], ecx
push 0
push 0x408c38
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x404300
xor eax, eax
jmp 0x4044e6
test esi, esi
jle 0x404300
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x408c38
call ebx
test eax, eax
jne 0x404300
cmp dword [esi*4 + 0x408bf8], edi
je 0x4044bd
mov eax, dword [0x408bf0]
lea esi, [eax - 1]
test esi, esi
jl 0x4044ab
cmp dword [esi*4 + 0x408bf8], edi
je 0x4044a7
dec esi
jns 0x40449b
test esi, esi
jge 0x4044bb
cmp eax, 0x10
jge 0x4044b6
inc eax
mov dword [0x408bf0], eax
lea esi, [eax - 1]
jmp 0x4044bd
je 0x4044d5
xor ecx, ecx
test esi, esi
jl 0x4044d5
lea eax, [ecx*4 + 0x408bf8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4044c3
push 0
push 0x408c38
call ebx
jmp 0x404300
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405889
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00402350
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405924
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x408910]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x405924
cmp eax, 1
je 0x405945
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405924
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4058f1
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x405920
xor eax, eax
inc eax
jmp 0x405964
cmp edi, eax
jae 0x405928
xor eax, eax
jmp 0x405964
cmp eax, esi
jae 0x40592f
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x408910]
jmp 0x405948
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40764b
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [0x401668]
push edi
push 0x11
mov edi, eax
call esi
xor ebx, ebx
test ax, ax
push 0x10
setl bl
call esi
mov esi, dword [0x41310c]
xor ecx, ecx
test ax, ax
setl cl
cmp edi, 0x26
mov dword [ebp - 4], ecx
ja 0x407759
je 0x407741
cmp edi, 0x21
jb 0x4077fd
cmp edi, 0x22
jbe 0x407711
cmp edi, 0x23
je 0x4076dd
cmp edi, 0x24
je 0x4076b8
cmp edi, 0x25
jne 0x4077fd
and dword [0x4130d0], 0xffffffef
dec esi
jmp 0x40774c
test ebx, ebx
je 0x4076c0
xor esi, esi
jmp 0x4076d1
test byte [0x4130d0], 0x10
je 0x4076ce
sub esi, 8
jmp 0x4076d1
and esi, 0xfffffff8
and dword [0x4130d0], 0xffffffef
jmp 0x4077f0
test ebx, ebx
jne 0x4077ce
test byte [0x4130d0], 0x10
jne 0x4077fd
mov eax, dword [0x4130d8]
and esi, 0xfffffff8
add esi, 8
cmp esi, eax
jg 0x4077ee
or dword [0x4130d0], 0x10
jmp 0x4077f0
mov eax, dword [0x4130fc]
imul eax, eax, 0xfffffff8
xor ecx, ecx
add esi, eax
cmp edi, 0x21
setne cl
push 0
push dword [ebp + 8]
inc ecx
inc ecx
call fcn.0040708c
cmp edi, 0x21
mov eax, dword [0x4130fc]
lea esi, [esi + eax*8]
je 0x40774c
jmp 0x4077e5
test ebx, ebx
jne 0x4077fd
sub esi, 8
test esi, esi
jl 0x4077fd
jmp 0x4077f0
sub edi, 0x27
je 0x4077dd
dec edi
je 0x4077ab
sub edi, 5
je 0x40778b
dec edi
jne 0x4077fd
test ebx, ebx
jne 0x4077fd
test ecx, ecx
je 0x40777f
mov ax, 0x18
jmp 0x4077a1
push 0x2e
push dword [ebp + 8]
call fcn.00407c38
jmp 0x4077fd
test ecx, ecx
je 0x407799
test ebx, ebx
jne 0x4077fd
mov ax, 0x16
jmp 0x4077a1
test ebx, ebx
je 0x4077fd
mov ax, 3
mov edi, dword [ebp + 8]
call fcn.00407804
jmp 0x4077fd
test ebx, ebx
jne 0x4077fd
add esi, 8
mov eax, esi
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, dword [0x4130f8]
jle 0x4077e5
test byte [0x4130d0], 0x10
je 0x4077fd
and dword [0x4130d0], 0xffffffef
mov esi, dword [0x4130d8]
jmp 0x4077f0
and dword [0x4130d0], 0xffffffef
inc esi
mov eax, dword [0x4130d8]
cmp esi, eax
jle 0x4077f0
mov esi, eax
push dword [ebp - 4]
mov eax, esi
push dword [ebp + 8]
call fcn.00407aa5
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x407d0d
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x413110]
push esi
mov esi, dword [0x413114]
push edi
xor edi, edi
sub esi, eax
je 0x407d91
mov ecx, dword [0x4130d4]
push dword [ebp + 8]
add ecx, eax
mov dword [ebp - 4], ecx
call dword [fcn.00401680]
test eax, eax
je 0x407d91
push ebx
lea eax, [esi + 7]
push eax
push 0x2002
call dword [fcn.00401074]
mov ebx, eax
test ebx, ebx
je 0x407d8a
push ebx
call dword [fcn.00401070]
push esi
push dword [ebp - 4]
mov edi, eax
lea eax, [edi + 4]
push eax
call fcn.0040ee30
add esp, 0xc
push ebx
mov dword [edi], esi
call dword [fcn.0040106c]
call dword [fcn.004015cc]
push ebx
push dword [0x4128ac]
call dword [fcn.00401688]
xor edi, edi
inc edi
call dword [fcn.0040168c]
pop ebx
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x407d99
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
test byte [0x4130d0], 8
push edi
je 0x407db8
and dword [0x4130d0], 0xfffffff7
inc dword [0x41310c]
push dword [ebp + 8]
call dword [fcn.00401680]
test eax, eax
je 0x407e78
push dword [0x4128ac]
call dword [0x401690]
test eax, eax
mov dword [ebp - 4], eax
je 0x407e72
push eax
call dword [fcn.00401070]
mov ecx, dword [0x4130dc]
mov ebx, eax
mov edx, dword [ebx]
mov eax, dword [0x4130d8]
lea edi, [edx + eax]
cmp edi, ecx
ja 0x407e69
cmp eax, ecx
jg 0x407e69
cmp edx, ecx
ja 0x407e69
mov ecx, dword [0x413110]
cmp ecx, dword [0x413114]
je 0x407e22
push 8
push dword [ebp + 8]
call fcn.00407c38
mov eax, dword [0x4130d8]
mov ecx, dword [0x41310c]
sub eax, ecx
mov edx, dword [0x4130d4]
mov esi, dword [ebx]
lea edi, [edx + ecx]
jns 0x407e3b
xor eax, eax
jmp 0x407e7a
push edi
lea ecx, [esi + edi]
call fcn.00406ba8
push esi
add ebx, 4
push ebx
push edi
call fcn.0040ee30
add dword [0x4130d8], esi
add dword [0x41310c], esi
add esp, 0xc
push dword [ebp + 8]
call fcn.00407037
xor esi, esi
inc esi
push dword [ebp - 4]
call dword [fcn.0040106c]
call dword [fcn.0040168c]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40ead0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x40eae3
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40eadf
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x40eb00
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x40eb3f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x40eb35
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x40eb41
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x40eb25
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret