joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411640
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x130
mov ebx, dword [ebp + 0xc]
call fcn.00410a70
lea eax, [esp + 0x2c]
mov dword [esp + 8], 0x104
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.00409840
test eax, eax
je 0x41175c
cmp dword [ebp + 8], 1
mov eax, 1
jg 0x411698
jmp 0x411784
add eax, 1
cmp eax, dword [ebp + 8]
je 0x4116d1
mov esi, dword [ebx + eax*4]
mov edi, str.__err2out
mov ecx, 0xa
repe cmpsb byte [esi], byte es:[edi]
jne 0x411690
mov eax, 4
lea ecx, [esp + 0x2c]
mov edi, 1
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.004085c0
test eax, eax
je 0x4116d5
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
jmp 0x4116ae
mov edx, dword [ebp + 8]
lea eax, [edx*4 + 8]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov esi, eax
je 0x41178b
mov eax, dword [ebx]
cmp dword [ebp + 8], 1
mov dword [esi + 4], 0x413096
mov dword [esi], eax
jle 0x41171e
mov ecx, dword [ebp + 8]
mov eax, 1
lea esi, [esi]
mov edx, dword [ebx + eax*4]
mov dword [esi + eax*4 + 4], edx
add eax, 1
cmp eax, ecx
jne 0x411710
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 4], 0
add eax, 1
mov dword [esp + 8], eax
mov dword [esp], 0
call fcn.00408c80
mov edi, eax
call fcn.00408550
mov dword [esp], esi
call sub.msvcrt.dll_free
jmp 0x4116c7
mov eax, dword [ebx]
mov edi, 1
mov dword [esp + 4], str.Panic:_Cannot_determine_full_path_of__s
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x4116c7
xor al, al
jmp 0x4116ae
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1d
mov dword [esp + 4], 1
mov dword [esp], str.Panic:_Cannot_reallocate_argv
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
jmp 0x4116c7
Function at 0x402000
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
mov eax, dword [0x440ed0]
cmp word [eax + 0x72], 1
jne 0x402033
lea ecx, [esp + 0x24]
push 0
push ecx
lea edx, [esp + 0x18]
push 1
push edx
push ebp
mov byte [esp + 0x24], 2
call ebx
mov edi, dword [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x402074
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x24]
push 0
push edx
mov cl, byte [esi + eax]
lea eax, [esp + 0x18]
push 1
push eax
push ebp
mov byte [esp + 0x24], cl
call ebx
mov edi, dword [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
inc esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
jb 0x402045
mov ecx, dword [0x440ed0]
mov esi, 1
cmp word [ecx + 0x72], si
jne 0x40209a
lea edx, [esp + 0x24]
push 0
push edx
lea eax, [esp + 0x18]
push esi
push eax
push ebp
mov byte [esp + 0x24], 3
call ebx
lea ecx, [esp + 0x24]
push 0
push ecx
lea edx, [esp + 0x18]
push esi
push edx
push ebp
mov byte [esp + 0x24], 0xd
call ebx
lea eax, [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x18]
push esi
push ecx
push ebp
mov byte [esp + 0x24], 0xa
call ebx
mov eax, dword [0x440ed0]
cmp word [eax + 0x72], si
jne 0x402104
cmp dword [eax + 0x7c], esi
jne 0x402104
lea edx, [esp + 0x24]
push 0
push edx
lea eax, [esp + 0x18]
push 3
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402128
cmp dword [esp + 0x24], 3
jb 0x402146
cmp byte [esp + 0x10], 6
je 0x40218a
jmp 0x402011
cmp word [eax + 0x72], 2
jne 0x40217d
cmp dword [eax + 0x7c], esi
jne 0x40217d
lea ecx, [esp + 0x24]
push 0
push ecx
lea edx, [esp + 0x18]
push esi
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x402140
push 0
push 0
push 0x43f220
call fcn.0042288f
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret
cmp dword [esp + 0x24], esi
jae 0x40215e
push 0
push 0
push 0x43f210
call fcn.0042288f
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret
cmp byte [esp + 0x10], 6
je 0x40218a
push 0
push 0
push 0x43f200
call fcn.0042288f
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret
mov eax, dword [eax + 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xc
ret
Function at 0x40a4e9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x440420
cmp edx, dword [eax]
je 0x40a50b
add eax, 8
inc ecx
cmp eax, 0x4404b0
jl 0x40a4fc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x440420]
jne 0x40a639
mov eax, dword [0x442f00]
cmp eax, 1
je 0x40a613
test eax, eax
jne 0x40a53c
cmp dword [0x43fdc8], 1
je 0x40a613
cmp edx, 0xfc
je 0x40a639
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40a573
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040b460
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00409640
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40a5b6
lea eax, [ebp - 0x1a4]
push eax
call fcn.00409640
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4383a0
push edi
call fcn.0040d5c0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040b460
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040b470
lea eax, [ebp - 0xa0]
push 0x438380
push eax
call fcn.0040b470
push dword [esi + 0x440424]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040b470
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040d536
add esp, 0x2c
pop edi
jmp 0x40a639
lea eax, [ebp + 8]
lea esi, [esi + 0x440424]
push 0
push eax
push dword [esi]
call fcn.00409640
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 0x411cb0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00406bf0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x411d7b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x411d7b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x411d2e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x411d39
or bh, 8
and edi, 0x8000000
je 0x411d54
mov eax, dword [0x44469c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x411d7b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412150
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41217b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41219f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4121ba
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x41477f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x4147a1
cmp dword [edi + 0x3c], 0
jne 0x4147a1
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0042c9ad
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.004147ce
pop edi
pop esi
pop ebx
ret 8

Function at 0x41481c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.0042c9ad
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41484d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.00414860
pop edi
pop esi
pop ebx
ret 8

Function at 0x415e1c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x415e54
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.004197fe
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004197d6
jmp 0x415e60
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4179ed
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 0x417a2f
call fcn.0042c9ad
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x417a2f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x417a26
xor eax, eax
jmp 0x417a37
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00417a3d
pop edi
pop esi
pop ebx
ret 4
Function at 0x42b58b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.0042c9ad
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42b5c8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42b5c8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x42b5cc
xor eax, eax
jmp 0x42b64a
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.004189fa
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x42b604
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x42b5ee
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.0042b73b
push ebx
mov edi, eax
call fcn.00418a23
test edi, edi
pop ecx
je 0x42b646
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.0042b504
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.0042b64f
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x42d117
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 0x42d145
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42d163
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042d07d
jmp 0x42d163
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42d163
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0042d07d
test edi, edi
mov eax, edi
jne 0x42d14d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10002690
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
push 0xff000000
push 0x82
push 0xc8
push 0x1e
push 0x1f4
call fcn.100012e0
cmp dword [0x101549a0], 1
push edi
mov esi, 0xff00ff51
mov eax, esi
mov ebx, 0xff00aeff
cmove eax, ebx
push eax
push 0x1e
push 0x32
push 0x28
push 0x1fe
call fcn.100012e0
push edi
push esi
push 0x1e
push 0x78
push 0x28
push 0x23a
call fcn.100012e0
cmp dword [0x101549a0], 2
push edi
cmove esi, ebx
push esi
push 0x1e
push 0x32
push 0x50
push 0x1fe
call fcn.100012e0
push edi
push 0xff00ff51
push 0x1e
push 0x78
push 0x50
push 0x23a
call fcn.100012e0
push edi
push 0xff00ff51
push 0x1e
push 0x3c
push 0x78
push 0x276
call fcn.100012e0
push 0x1007839c
push 0xffff0000
push 0x7d
push 0x27b
push ecx
call fcn.100014c0
push 0x1008e89c
push 0xffff0000
push 0x2d
push 0x203
push ecx
call fcn.100014c0
push 0x1008e890
push 0xffff0000
push 0x55
push 0x203
push ecx
call fcn.100014c0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
push 1
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
call ebx
test ax, ax
jns 0x10002804
mov ecx, dword [ebp - 0xc]
cmp ecx, 0x1fe
jle 0x100027f8
mov eax, dword [ebp - 8]
cmp ecx, 0x230
jge 0x100027f8
cmp eax, 0x28
jle 0x100027da
cmp eax, 0x46
jge 0x100027da
mov dword [0x101549a0], 1
mov ecx, 0x1008e89c
jmp 0x1000281f
cmp ecx, 0x230
jge 0x100027f8
cmp eax, 0x50
jle 0x100027f8
cmp eax, 0x6e
jge 0x100027f8
mov dword [0x101549a0], 2
jmp 0x1000281a
mov dword [0x101549a0], 0
jmp 0x10002824
mov eax, dword [0x101549a0]
cmp eax, 1
jne 0x10002815
mov ecx, 0x1008e89c
jmp 0x1000281f
cmp eax, 2
jne 0x10002824
mov ecx, 0x1008e890
call fcn.10002640
mov eax, dword [0x1015499c]
test eax, eax
jne 0x10002869
sub esp, 8
push str.00____00000
push 0x100783ac
push dword [0x10094300]
call fcn.10008660
mov dword [0x1015499c], eax
test eax, eax
je 0x10002869
lea esi, [eax + 2]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10002862
mov eax, dword [esi]
jmp 0x10002864
xor eax, eax
mov dword [0x1015499c], eax
mov esi, dword [eax]
test esi, esi
je 0x100028f3
mov ecx, 0x1008e89c
call fcn.100025d0
mov ecx, 0x1008e890
lea edi, [esi + eax*4]
call fcn.100025d0
lea esi, [esi + eax*4]
mov eax, dword [edi]
test eax, eax
je 0x100028f3
cmp dword [esi], 0
je 0x100028f3
add eax, 0xe
push eax
push 0xffff0000
push 0x2d
push 0x23f
push ecx
call fcn.100014c0
mov eax, dword [esi]
add eax, 0xe
push eax
push 0xffff0000
push 0x55
push 0x23f
push ecx
call fcn.100014c0
mov eax, dword [ebp - 0xc]
cmp eax, 0x276
jle 0x100028f3
cmp eax, 0x2b2
jge 0x100028f3
mov eax, dword [ebp - 8]
cmp eax, 0x78
jle 0x100028f3
cmp eax, 0x96
jge 0x100028f3
push 1
call ebx
test ax, ax
jns 0x100028f3
mov eax, dword [esi]
mov dword [edi], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10003810
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x100944a0], 0
je 0x10003847
mov eax, dword [0x10094300]
cmp dword [eax + 0x15cecfc], 2
jne 0x10003847
cmp dword [eax + 0x1643d34], 0xb
jne 0x10003847
mov ecx, dword [0x10093edc]
mov ax, word [0x1007874c]
mov word [ecx + 4], ax
mov al, byte [0x1007874e]
jmp 0x1000385c
mov ecx, dword [0x10093edc]
mov ax, word [0x10078750]
mov word [ecx + 4], ax
mov al, byte [0x10078752]
mov byte [ecx + 6], al
mov eax, dword [0x10094300]
cmp dword [eax + 0x1643d34], 0xb
jne 0x100038b0
mov eax, dword [0x1009442c]
test eax, eax
je 0x100038b0
cmp eax, 1
jne 0x1000389f
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, dword [0x10093f2c]
test ax, ax
setns al
lea eax, [eax*4 + 0x50]
mov byte [ecx], al
mov eax, dword [0x1009442c]
jmp 0x100038a5
mov ecx, dword [0x10093f2c]
cmp eax, 2
jne 0x100038b8
mov byte [ecx], 0x50
xor al, al
ret
mov eax, dword [0x10093f2c]
mov byte [eax], 0x54
xor al, al
ret
Function at 0x10006c60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
dec dword [ebp + 0xc]
jne 0x10006c87
push 0
push 0
push dword [ebp + 8]
push 0x10006bb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc

Function at 0x10007000
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005ac32
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x1008c3cc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x10078cfc
mov dword [edi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov eax, dword [edi]
lea esi, [edi + 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], 1
mov dword [edi + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push ecx
lea eax, [ecx - 0x18]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [eax + 4]
push esi
add ecx, edi
call fcn.10007c90
mov dword [ebp - 4], 2
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.10008280
lea eax, [esi + 4]
mov dword [esi + 0xc], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x4c], 0
mov byte [esi + 0x45], 0
lea ecx, [esi + 8]
mov dword [esi + 0x10], ecx
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [0x101549a4]
mov dword [esi + 0x50], 0
mov dword [esi + 0x48], eax
mov dword [esi + 0x40], 0
sub esp, 8
mov ecx, esi
push dword [ebp + 8]
mov byte [ebp - 4], 3
call fcn.10007d80
test eax, eax
jne 0x10007159
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi + 0xc]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x10007152
or eax, 4
push ecx
push eax
call fcn.10005a30
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10007f90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1005adb8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1008c3cc]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x1008c3cc]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x100080e4
cmp byte [ebx + 0x45], 0
je 0x100080e4
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x10007ff0
xor al, al
jmp 0x100080e6
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
cmp ecx, 0x10
cmovae eax, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 8
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x10008030
cmp dword [esp + 0x2c], 0x10
mov ecx, dword [ebx + 0x40]
lea eax, [esp + 0x14]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x2c]
lea edi, [esp + 0x1c]
cmovae edi, dword [esp + 0x1c]
lea esi, [esp + 0x1c]
cmovae esi, dword [esp + 0x1c]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x10008071
dec eax
je 0x10008075
sub eax, 2
je 0x100080cb
xor bl, bl
jmp 0x100080cd
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp ecx, 0x10
lea eax, [esp + 0x18]
cmovae eax, edx
sub esi, eax
je 0x100080ac
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [esp + 0x20]
cmovae eax, edx
push 1
push eax
call fcn.1003e3f3
add esp, 0x10
cmp esi, eax
jne 0x1000806d
cmp byte [ebx + 0x45], 0
je 0x100080cb
test esi, esi
jne 0x10008030
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.10007ba0
jmp 0x10008030
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x100080e0
push dword [esp + 0x18]
call fcn.1003d653
add esp, 4
mov al, bl
jmp 0x100080e6
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1003cd0a
mov esp, ebp
pop ebp
ret