joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41861c
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x478bd0]
push esi
test eax, eax
jne 0x418641
push fcn.00418749
push 0x10
push 0x258
call fcn.0041ec05
mov dword [0x478bd0], eax
push dword [esp + 0xc]
push eax
call fcn.0041eb71
mov esi, eax
test esi, esi
je 0x418742
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x418663
mov edi, 0x45806c
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x418673
xor eax, eax
cmp word [ebx], ax
jne 0x418678
mov ebx, 0x458268
push edi
call sub.MSVCRT.dll_wcslen
push ebx
mov dword [esp + 0x24], eax
call sub.MSVCRT.dll_wcslen
add eax, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x476928]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x418729
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x4186d9
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x4186dd
push 0x458284
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x4186dd
mov edi, dword [esp + 0x18]
push ebx
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x418701
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x418717
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x418715
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x476928]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x418740
cmp dword [esp + 0x14], 0xffffffff
je 0x418734
mov esi, dword [esp + 0x14]
push esi
push dword [0x478bd0]
call fcn.0041eae3
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc

Function at 0x41acbc
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x478be4], eax
test eax, eax
je 0x41acea
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x478be0], eax
lea eax, [ebp - 0x114]
mov dword [0x478be8], 1
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41ad4c
cmp dword [ebp - 0x104], 1
jne 0x41ad21
and dword [0x478be8], 0
jmp 0x41ad64
cmp dword [ebp - 0x104], 2
jne 0x41ad4c
cmp dword [ebp - 0x110], 5
jb 0x41ad18
jne 0x41ad4c
mov eax, dword [ebp - 0x10c]
neg eax
sbb eax, eax
and eax, dword [0x478be8]
mov dword [0x478be8], eax
jmp 0x41ad51
mov eax, dword [0x478be8]
test eax, eax
je 0x41ad64
call fcn.0041a9bf
neg eax
sbb eax, eax
and dword [0x478be8], eax
mov esp, ebp
pop ebp
ret
Function at 0x41bdd0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x41be02
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41bdfd
cmp dword [esp + 0xc], esi
je 0x41be19
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [edi + 8], esi
pop edi
mov eax, 1
pop esi
ret

Function at 0x41e9c1
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0x478c88]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x41ea22
push esi
push dword [0x478c84]
push 8
push dword [0x476928]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x478c88]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x478c80]
jmp 0x41ea12
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x41ea10
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x41ea00
push edi
push 0x41e95f
call fcn.00450730
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4

Function at 0x41ea2c
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ecx, esi
push edi
and ecx, 3
je 0x41ea42
push 4
pop eax
sub eax, ecx
add esi, eax
mov eax, dword [0x478c84]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x41ea79
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
push 8
push dword [0x476928]
mov dword [0x478c88], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x478c88]
call ebx
mov eax, dword [0x478c84]
mov edi, eax
add eax, esi
push eax
push dword [0x478c88]
mov dword [0x478c84], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x476928]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0x478c88]
call ebx
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test esi, esi
jne 0x41eab9
test ebx, ebx
je 0x41eada
push 0x14
push 0x478c80
call fcn.0041f33f
pop ecx
pop ecx
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
test esi, esi
je 0x41eada
lea ecx, [edi + ebp]
push ecx
call esi
pop ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x41f450
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4748d8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
sub edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x41f496
mov ecx, dword [ebp - 4]
add ecx, 0xa
push ecx
push 0
mov edx, dword [0x479204]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x41f4b7
mov edx, dword [ebp - 4]
add edx, 0xa
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [0x479204]
push edx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
shr edx, 1
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.0041fb20
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
mov esp, ebp
pop ebp
ret 8

Function at 0x41f540
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4748d8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
add edx, 2
mov eax, dword [ebp - 4]
mov dword [eax + 8], edx
mov esp, ebp
pop ebp
ret

Function at 0x41f770
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4748d8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0xffffffff
jne 0x41f794
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
lea eax, [ecx + edx*2]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
sub edx, 4
cmp dword [ebp - 8], edx
jl 0x41f7e4
mov eax, dword [ebp - 8]
add eax, 0x4000
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
add eax, 0xa
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x479204]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x41f82c
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0x100000
jle 0x41f82c
cmp dword [ebp - 8], 0x100000
jge 0x41f800
mov dword [ebp - 8], 0x100000
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
add eax, 0xa
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x479204]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx*2]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8
Function at 0x41f850
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4748d8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
shl ecx, 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
sub eax, ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov esp, ebp
pop ebp
ret 4

Function at 0x41fa00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4748d8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx]
jb 0x41fa3e
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
cmp dword [ebp + 8], ecx
ja 0x41fa3e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
sub ecx, dword [eax]
add ecx, 1
mov eax, ecx
jmp 0x41fa40
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x41fbb0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4748d8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x432130
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
cmp edi, 8
jl 0x4321e9
push ebx
mov ebx, edi
shr ebx, 3
mov eax, ebx
neg eax
lea edi, [edi + eax*8]
mov eax, dword [esp + 0x10]
movzx edx, byte [esi]
movzx ecx, byte [esi + 1]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 3]
shl edx, 8
or edx, ecx
xor eax, edx
mov edx, eax
mov ecx, eax
shr edx, 0x10
and edx, 0xff
shr ecx, 8
and ecx, 0xff
mov edx, dword [edx*4 + 0x468290]
xor edx, dword [ecx*4 + 0x467e90]
mov ecx, eax
shr ecx, 0x18
movzx eax, al
xor edx, dword [ecx*4 + 0x468690]
movzx ecx, byte [esi + 6]
xor edx, dword [ecx*4 + 0x466e90]
movzx ecx, byte [esi + 5]
xor edx, dword [ecx*4 + 0x467290]
movzx ecx, byte [esi + 7]
xor edx, dword [ecx*4 + 0x466a90]
movzx ecx, byte [esi + 4]
add esi, 8
xor edx, dword [ecx*4 + 0x467690]
xor edx, dword [eax*4 + 0x467a90]
mov eax, edx
dec ebx
jne 0x432154
pop ebx
jmp 0x4321ed
mov eax, dword [esp + 0xc]
test edi, edi
je 0x43220b
movzx ecx, byte [esi]
lea esi, [esi + 1]
mov edx, eax
shl eax, 8
shr edx, 0x18
xor edx, ecx
xor eax, dword [edx*4 + 0x466a90]
dec edi
jne 0x4321f1
pop edi
pop esi
ret
Function at 0x437899
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.0043839c
cmp dword [esi + 0x14], 0
pop ecx
je 0x437900
mov ecx, dword [esi + 0x10]
mov eax, dword [esi]
push ebx
mov ebx, dword [esi + 0x20]
push ebp
mov ebp, dword [eax + ecx*4]
cmp ebx, dword [esi + 0x14]
jae 0x4378fe
mov eax, dword [esi + 0x18]
mov dword [esp + 0x10], eax
push 0x18
pop ecx
sub ecx, ebx
shr eax, 8
mov edx, ebp
add ebx, 8
shr edx, cl
and edx, 0xff
xor edx, eax
mov eax, dword [esp + 0x10]
movzx eax, al
shl eax, 8
movzx ecx, word [edx*2 + 0x469e18]
xor eax, ecx
mov dword [esi + 0x20], ebx
mov dword [esp + 0x10], eax
mov dword [esi + 0x18], eax
cmp ebx, dword [esi + 0x14]
jb 0x4378c4
pop ebp
pop ebx
mov ax, word [esi + 0x18]
pop esi
ret

Function at 0x43b9f2
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
cmp edi, 2
jb 0x43ba8a
push ebp
mov ebp, edi
shr ebp, 1
mov eax, dword [esi]
sub edi, 2
mov edx, dword [esi + 4]
shr eax, 0x10
xor ecx, eax
movzx ebx, cx
mov ecx, edx
shr ecx, 0x18
mov eax, ebx
shr eax, 8
mov cx, word [ecx*2 + 0x46a418]
xor cx, word [eax*2 + 0x46ac18]
movzx eax, byte [esi + 5]
xor cx, word [eax*2 + 0x46a018]
movzx eax, byte [esi + 6]
xor cx, word [eax*2 + 0x46a218]
movzx eax, byte [esi + 1]
xor cx, word [eax*2 + 0x46a818]
movzx eax, dl
xor cx, word [eax*2 + 0x469e18]
movzx eax, bl
xor cx, word [eax*2 + 0x46aa18]
mov eax, dword [esi]
add esi, 8
movzx eax, al
xor cx, word [eax*2 + 0x46a618]
movzx ecx, cx
dec ebp
jne 0x43ba0f
pop ebp
test edi, edi
je 0x43bacc
mov ebx, dword [esi]
mov eax, ebx
shr eax, 0x10
xor ecx, eax
movzx eax, byte [esi + 1]
movzx edx, cx
mov ecx, edx
shr ecx, 8
mov cx, word [ecx*2 + 0x46a418]
xor cx, word [eax*2 + 0x46a018]
movzx eax, bl
xor cx, word [eax*2 + 0x469e18]
movzx eax, dl
xor cx, word [eax*2 + 0x46a218]
movzx ecx, cx
pop edi
pop esi
mov ax, cx
pop ebx
ret

Function at 0x43bad3
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
xor al, al
test edx, edx
je 0x43baf5
push esi
mov esi, dword [esp + 8]
movzx ecx, byte [esi]
movzx eax, al
xor ecx, eax
inc esi
mov al, byte [ecx + 0x46ae18]
dec edx
jne 0x43bae2
pop esi
ret
Function at 0x450730
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x478cc8], 0
push ebx
push esi
mov esi, 0x478cd0
jne 0x45075c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x478ce8], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x478cc8], 1
push dword [0x478ce8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4507f9
push 0x14
push 8
push dword [0x476928]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x450823
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x478ccc]
test eax, eax
je 0x45079e
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x478ccc], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x450828
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x478ce8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x476928]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x450823
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8
Function at 0x40c35a
Capabilities:
Delete file
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x41d0e8]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
push 0x80
push 2
mov ebx, ecx
mov dword [ebp - 0x240], edi
push ecx
mov dword [ebp - 0x22c], ebx
call fcn.0040549e
pop ecx
push eax
push esi
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40c56e
mov eax, 0xfeff
mov ecx, ebx
mov word [ebp - 0x228], ax
mov eax, dword [0x402b7c]
mov dword [ebp - 0x18], eax
mov ax, word [0x402b80]
mov word [ebp - 0x14], ax
mov eax, dword [0x402b84]
mov dword [ebp - 0x10], eax
mov ax, word [0x402b88]
mov word [ebp - 0xc], ax
call fcn.0040ec0f
push esi
push esi
push esi
push edi
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp - 0x220]
push eax
push 2
lea eax, [ebp - 0x228]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, esi
mov dword [ebp - 0x224], esi
cmp dword [ebp - 0x234], eax
jbe 0x40c56b
push eax
mov ecx, ebx
call fcn.0040ee73
test al, 4
jne 0x40c552
lea eax, [ebp - 0x230]
mov ecx, ebx
push eax
push 2
push dword [ebp - 0x224]
call fcn.0040ed65
test eax, eax
je 0x40c552
mov ebx, dword [ebp - 0x230]
test ebx, ebx
je 0x40c54c
mov ecx, 0x100
cmp ebx, ecx
jb 0x40c46f
push 0xffffffffffffffff
jmp 0x40c470
push ebx
push eax
push ecx
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy_s]
mov eax, 0xff
add esp, 0x10
cmp ebx, eax
ja 0x40c48d
mov eax, ebx
add eax, eax
cmp eax, 0x200
jae 0x40c59c
xor ecx, ecx
mov word [ebp + eax - 0x21c], cx
lea eax, [ebp - 0x23c]
mov ecx, dword [ebp - 0x22c]
push eax
push 3
push dword [ebp - 0x224]
call fcn.0040ed65
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x220]
push esi
push eax
lea eax, [ebx + ebx]
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40c500
push esi
lea eax, [ebp - 0x220]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40c500
xor eax, eax
inc eax
jmp 0x40c502
mov eax, esi
mov ecx, dword [ebp - 0x238]
test ecx, ecx
je 0x40c52f
test eax, eax
je 0x40c52d
push esi
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x23c]
add eax, eax
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40c533
mov eax, esi
test eax, eax
je 0x40c56e
push esi
lea eax, [ebp - 0x220]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40c56e
mov ebx, dword [ebp - 0x22c]
mov eax, dword [ebp - 0x224]
inc eax
mov dword [ebp - 0x224], eax
cmp eax, dword [ebp - 0x234]
jb 0x40c426
xor esi, esi
inc esi
test edi, edi
je 0x40c589
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x40c589
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b570
leave
ret 4
call fcn.0041b84a
int3
Function at 0x40f4cf
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
sub eax, 0x2b
je 0x40f61a
sub eax, 1
je 0x40f5ff
sub eax, 0x22
jne 0x40f634
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebx + 0xc]
jne 0x40f634
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 8]
cmp eax, 0xffffff9b
ja 0x40f590
je 0x40f581
cmp eax, 0xffffff64
je 0x40f576
cmp eax, 0xffffff65
je 0x40f54d
cmp eax, 0xffffff8e
je 0x40f5a3
cmp eax, 0xffffff94
jne 0x40f634
mov eax, dword [ebx]
push dword [esi + 0x10]
mov esi, dword [eax + 0x38]
mov ecx, esi
call dword [0x41e42c]
mov ecx, ebx
call esi
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
jmp 0x40f5fa
mov eax, dword [ebp + 0x14]
push 0x11
mov dword [eax], edi
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
je 0x40f564
xor eax, eax
inc eax
jmp 0x40f566
mov eax, edi
mov ecx, dword [ebx]
push eax
movzx eax, word [esi + 0xc]
push eax
mov esi, dword [ecx + 0x84]
jmp 0x40f5ea
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
jmp 0x40f5fa
push edi
push edi
push 0x14
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x40f543
cmp eax, 0xfffffffb
je 0x40f5df
cmp eax, 0xfffffffd
je 0x40f5bf
cmp eax, 0xfffffffe
jne 0x40f634
cmp dword [ebx + 0x3c], edi
jne 0x40f543
cmp dword [esi + 0xc], edi
jl 0x40f543
cmp dword [esi + 0x10], edi
jl 0x40f543
push dword [esi + 0x10]
push dword [esi + 0xc]
call fcn.0040f648
jmp 0x40f543
cmp dword [esi + 0xc], edi
jl 0x40f634
cmp dword [esi + 0x10], edi
jl 0x40f634
mov eax, dword [ebx]
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x41e42c]
mov ecx, ebx
call esi
jmp 0x40f543
mov eax, dword [ebx]
push dword [esi + 0x24]
push dword [esi + 0x20]
mov esi, dword [eax + 0x68]
mov ecx, esi
call dword [0x41e42c]
mov ecx, ebx
call esi
test eax, eax
je 0x40f634
xor edi, edi
inc edi
jmp 0x40f634
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebx + 0xc]
jne 0x40f634
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0x66
jne 0x40f634
mov eax, dword [ebx + 0x28]
add eax, 6
mov dword [ecx + 0x10], eax
jmp 0x40f62a
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebx + 0xc]
jne 0x40f634
push dword [ebp + 0x10]
call fcn.0040f0fa
mov eax, dword [ebp + 0x14]
xor ecx, ecx
inc ecx
mov edi, ecx
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x10
Function at 0x40f820
Capabilities:
Get graphical window text
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi + 0x3c], 0
je 0x40f924
cmp dword [edi + 0x44], 0
je 0x40f924
and dword [edi + 0x3c], 0
push ebx
push 0
push 0
push 0xb8
push dword [edi + 0x44]
xor ebx, ebx
inc ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x40f914
push 0
push 0
push 0xe
push dword [edi + 0x44]
call dword [sym.imp.USER32.dll_SendMessageW]
inc eax
mov ecx, edi
push eax
call fcn.0040ede3
test eax, eax
je 0x40f914
mov eax, dword [edi + 0x30]
xor ecx, ecx
push esi
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041b21c
mov esi, eax
mov dword [ebp - 4], esi
pop ecx
test esi, esi
je 0x40f913
push esi
push dword [edi + 0x30]
push 0xd
push dword [edi + 0x44]
call dword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
push eax
push esi
mov word [esi + eax*2], cx
mov ecx, dword [edi]
push dword [edi + 0x38]
push dword [edi + 0x34]
mov esi, dword [ecx + 0x7c]
mov ecx, esi
call dword [0x41e42c]
mov ecx, edi
call esi
test eax, eax
jne 0x40f8fd
push dword [ebp - 4]
mov ecx, edi
push dword [edi + 0x38]
push dword [edi + 0x34]
call fcn.0040ed1f
mov eax, dword [edi]
push dword [edi + 0x34]
mov esi, dword [eax + 0x80]
mov ecx, esi
call dword [0x41e42c]
mov ecx, edi
call esi
jmp 0x40f909
js 0x40f909
push eax
mov ecx, edi
call fcn.0040fe33
xor ebx, ebx
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
pop esi
push 0
push dword [edi + 0x44]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, ebx
pop ebx
jmp 0x40f927
xor eax, eax
inc eax
pop edi
leave
ret 4
Function at 0x410454
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push ebx
push 3
push ecx
call fcn.0040549e
pop ecx
push eax
xor edi, edi
inc edi
push edi
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x410555
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 8], eax
cmp eax, 2
jae 0x4104b2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x20], ebx
jmp 0x4104d6
push ebx
push ebx
push ebx
push 2
call fcn.0040549e
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 4], eax
test eax, eax
jne 0x4104dd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, ebx
or dword [esi], 0xffffffff
mov eax, edi
jmp 0x410557
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [esi + 0xc], edx
test edx, edx
je 0x41054e
mov eax, dword [esi + 8]
lea ecx, [eax + edx]
mov dword [esi + 0x10], ecx
mov cl, byte [edx]
cmp cl, 0xff
jne 0x410519
cmp byte [edx + 1], 0xfe
jne 0x410519
test al, 1
je 0x410510
dec eax
mov dword [esi + 8], eax
mov eax, edi
mov ecx, ebx
add edx, 2
jmp 0x410540
cmp cl, 0xfe
jne 0x410524
cmp byte [edx + 1], 0xff
je 0x41054e
cmp eax, 3
jb 0x41053a
cmp cl, 0xef
jne 0x41053a
cmp byte [edx + 1], 0xbb
jne 0x41053a
cmp byte [edx + 2], 0xbf
je 0x410555
mov ecx, edx
mov eax, ebx
mov edx, ebx
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], ebx
jmp 0x4104d9
mov ecx, esi
call fcn.0041055e
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4