joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000bec0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
lea ebp, [esp - 0xc8]
sub esp, 0xc8
push 0xffffffffffffffff
push 0x1001b83b
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x100261c0]
xor eax, ebp
mov dword [ebp + 0xc4], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [0x10029398], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.1830B7BD_F7A3_4c4d_989B_C004DE465EDE
push str._s__u
lea eax, [ebp]
push 0x40
push eax
call fcn.1000e54b
add esp, 0x14
lea edx, [ebp]
push edx
push 1
xor ecx, ecx
push esi
mov word [ebp + 0x80], cx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
mov dword [ebp - 0x18], ebx
cmp ebx, esi
je 0x1000c0ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1000bf5e
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x3e
lea ecx, [ebp + 0x86]
xor eax, eax
push esi
mov dword [ebp - 4], esi
push ecx
mov word [ebp + 0x84], ax
call fcn.1000de40
add esp, 0xc
push 0x1f
lea edx, [ebp + 0x84]
push edx
call fcn.1000bbb0
mov dword [ebp - 0x14], esi
cmp eax, esi
je 0x1000bfc5
lea edx, [ebp - 0x14]
xor ecx, ecx
push edx
mov word [ebp + eax*2 + 0x84], cx
lea eax, [ebp + 0x84]
push 0x10023610
push eax
call fcn.1000e197
add esp, 0xc
cmp eax, 1
jne 0x1000bfc5
mov eax, dword [ebp - 0x14]
mov dword [0x10029398], eax
jmp 0x1000c095
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x1000bfdf
push 0x5c0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x1000bff3
push ebx
push esi
call fcn.1000c310
jmp 0x1000bff5
xor eax, eax
mov byte [ebp - 4], 0
mov dword [0x10029398], eax
test eax, eax
jne 0x1000c017
push 0x10024404
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x20], 1
call fcn.1000d99b
push eax
lea edx, [ebp + 0x84]
push 0x10023610
push edx
mov edi, 1
call fcn.1000d5a7
add esp, 0xc
lea esi, [ebp + 0x84]
call fcn.1000bcf0
test eax, eax
jne 0x1000c08e
push 0x10024404
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 3
call fcn.1000d99b
call fcn.1000bd90
mov edi, dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov esi, dword [0x10029398]
test esi, esi
je 0x1000c07f
call fcn.1000c3f0
mov dword [0x10029398], 0
jmp 0x1000c086
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x1000c08c
ret
mov eax, dword [0x10029398]
xor esi, esi
inc dword [eax + 0x5bc]
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp edi, esi
jne 0x1000c0ad
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x10029398
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc4]
xor ecx, ebp
call fcn.1000c9cb
add ebp, 0xc8
mov esp, ebp
pop ebp
ret
Function at 0x1000c0e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001b7b0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x100261c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [0x10029398]
xor edi, edi
cmp ecx, edi
jne 0x1000c12b
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jne 0x1000c138
mov dword [ebp - 0x14], edi
jmp 0x1000c150
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x1000c1e6
mov ecx, dword [0x10029398]
mov eax, dword [ecx]
cmp eax, edi
je 0x1000c117
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1000c117
mov ebx, 0x10029398
mov dword [ebp - 4], edi
call fcn.1000c200
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, edi
jne 0x1000c18e
push 0x10024404
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], 1
call fcn.1000d99b
mov ecx, dword [0x10029398]
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x1000c1a8
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, edi
jne 0x1000c1d2
push 0x10024404
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], 4
call fcn.1000d99b
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x1000c1c9
call fcn.1000c510
mov eax, 0x1000c1cf
ret
mov eax, dword [0x10029398]
mov eax, dword [eax]
test eax, eax
je 0x1000c1e4
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000c200
Capabilities:
Print debug messages

Disassembly:
sub esp, 8
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x5b0]
add eax, 8
mov dword [eax + 0x5b0], ecx
cmp ecx, eax
jne 0x1000c22d
xor ecx, ecx
jmp 0x1000c239
mov edx, dword [ecx + 0x5a8]
mov dword [eax + 0x5b0], edx
push esi
mov esi, ecx
test ecx, ecx
je 0x1000c2ed
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenThread]
mov eax, dword [esi]
cmp dword [esp + 0x10], eax
jne 0x1000c260
mov dword [esp + 0xc], esi
jmp 0x1000c2c0
push eax
push 1
push 0x40
call edi
test eax, eax
jne 0x1000c2b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1000c2ac
mov eax, dword [esi + 0x5ac]
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5a8], ecx
mov edx, dword [esi + 0x5a8]
mov eax, dword [esi + 0x5ac]
mov dword [edx + 0x5ac], eax
call ebp
test eax, eax
je 0x1000c2c0
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1000c2c0
push 0x10023618
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1000c2c0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
mov esi, dword [eax + 0x5b8]
add eax, 8
cmp esi, eax
je 0x1000c2e3
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5b0], ecx
test esi, esi
jne 0x1000c252
mov eax, dword [esp + 0xc]
pop edi
pop ebp
test eax, eax
jne 0x1000c301
mov ecx, dword [ebx]
add ecx, 8
call fcn.1000c440
test eax, eax
je 0x1000c301
mov edx, dword [esp + 8]
mov dword [eax], edx
pop esi
add esp, 8
ret

Function at 0x1000c310
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x1001b80b
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100261c0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
lea esi, [edi + 8]
push 0x5a0
lea eax, [esi + 8]
push 0
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
push eax
mov dword [esi], 0
call fcn.1000de40
add esp, 0xc
mov dword [esi + 0x5ac], esi
mov dword [esi + 0x5a8], esi
mov dword [esi + 0x5b0], esi
mov dword [esp + 0x14], 0
mov dword [edi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x1000c3a8
push 0x10024404
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 2
call fcn.1000d99b
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8

Function at 0x1000c9cb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100261c0]
jne 0x1000c9d5
repz ret
jmp fcn.1000ed19
Function at 0x100178cd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1000efca
and dword [ebp - 4], 0
cmp dword [0x10028254], 0
mov ebx, eax
jne 0x1001797e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10017a2f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10017a2f
push eax
call fcn.1000ef58
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10028254], eax
call esi
push eax
call fcn.1000ef58
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10028258], eax
call esi
push eax
call fcn.1000ef58
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1002825c], eax
call esi
push eax
call fcn.1000ef58
pop ecx
mov dword [0x10028264], eax
test eax, eax
je 0x1001797e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000ef58
pop ecx
mov dword [0x10028260], eax
mov eax, dword [0x10028260]
cmp eax, ebx
je 0x100179d6
cmp dword [0x10028264], ebx
je 0x100179d6
push eax
call fcn.1000efd3
push dword [0x10028264]
mov esi, eax
call fcn.1000efd3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x100179d6
test edi, edi
je 0x100179d6
call esi
test eax, eax
je 0x100179cd
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100179cd
test byte [ebp - 0xc], 1
jne 0x100179d6
or dword [ebp + 0x10], 0x200000
jmp 0x10017a0f
mov eax, dword [0x10028258]
cmp eax, ebx
je 0x10017a0f
push eax
call fcn.1000efd3
pop ecx
test eax, eax
je 0x10017a0f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10017a0f
mov eax, dword [0x1002825c]
cmp eax, ebx
je 0x10017a0f
push eax
call fcn.1000efd3
pop ecx
test eax, eax
je 0x10017a0f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10028254]
call fcn.1000efd3
pop ecx
test eax, eax
je 0x10017a2f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10017a31
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402a30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402a47
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402a78
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x402a74
cmp esi, eax
jae 0x402a78
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x402a64
cmp esi, eax
jb 0x402a7e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x408b70
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408bde
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x408baf
cmp eax, 2
jne 0x408bca
mov eax, dword [esp]
test esi, esi
je 0x408bd8
test eax, eax
je 0x408bd3
test al, 1
jne 0x408bca
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x408bd8
mov eax, 0xd
pop ecx
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8

Function at 0x409230
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x510d21
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x53c1a4]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53c1a4]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov eax, dword [esp + 0x54]
xor esi, esi
mov dword [esp + 0x4c], esi
push eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], esi
call fcn.0042d3c0
mov dword [esp + 0x4c], esi
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push esi
push esi
mov dword [esp + 0x24], 1
call edi
mov esi, eax
xor ecx, ecx
lea eax, [esi + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004e94db
add esp, 4
mov ebx, eax
push ebx
push esi
mov dword [esp + 0x28], ebx
call edi
mov ebp, eax
xor esi, esi
test ebp, ebp
jbe 0x40937c
xor eax, eax
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
mov dword [esp + 0x4c], 1
cmp esi, ebp
jae 0x40937c
movzx eax, word [ebx + esi*2]
test ax, ax
je 0x40930d
movzx eax, ax
push eax
mov eax, 1
lea edi, [esp + 0x28]
call fcn.004099c0
inc esi
cmp esi, ebp
jb 0x4092eb
jmp 0x40930e
inc esi
cmp dword [esp + 0x38], 0
je 0x409368
mov eax, dword [esp + 0x28]
mov edi, 8
cmp dword [esp + 0x3c], edi
jae 0x409328
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x409346
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x24]
push ecx
call fcn.0040f630
mov ebx, dword [esp + 0x20]
mov byte [esp + 0x4c], 0
cmp dword [esp + 0x3c], edi
jb 0x40935e
mov edx, dword [esp + 0x28]
push edx
call fcn.004ea82f
add esp, 4
cmp esi, ebp
jb 0x4092c4
jmp 0x40937c
cmp dword [esp + 0x3c], 8
jb 0x40937c
mov eax, dword [esp + 0x28]
push eax
call fcn.004ea82f
add esp, 4
push ebx
call fcn.004eacff
mov eax, dword [esp + 0x1c]
add esp, 4
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004ea83a
add esp, 0x3c
ret
Function at 0x409730
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esi + 4]
push edi
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [esp + 8]
add edi, 0xfffff6a0
jns 0x40976c
mov ecx, dword [esi + 0x470]
sub ecx, dword [esi + 0x46c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jae 0x4097d4
mov ecx, dword [esi + 0x470]
sub ecx, dword [esi + 0x46c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x409794
call fcn.004ea9f7
mov edx, dword [esi + 0x46c]
lea ecx, [edi*8]
sub ecx, edi
cmp dword [edx + ecx*4 + 0x18], 8
lea eax, [edx + ecx*4]
jb 0x4097b2
mov eax, dword [eax + 4]
jmp 0x4097b5
add eax, 4
movzx edi, word [eax]
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push 0
movzx ecx, di
push ecx
push 0x464
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
ret 4

Function at 0x40d110
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x24
push ebx
push ebp
xor ebp, ebp
push edi
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebp
cmp dword [esi + 0x3dc], ebp
je 0x40d134
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [esi + 0x3dc], ebp
mov edi, dword [esi + 0x3d0]
cmp edi, ebp
je 0x40d243
call fcn.00402930
mov ebx, eax
mov edi, 1
cmp ebx, ebp
je 0x40d1ef
mov eax, dword [ebx]
mov edx, dword [eax + 0x24]
push 2
push ebp
mov ecx, ebx
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x30]
mov ecx, ebx
call edx
test eax, eax
je 0x40d176
mov eax, esi
call fcn.0040d030
mov eax, dword [esi + 0x3d0]
cmp eax, dword [esi + 0x3cc]
je 0x40d18c
cmp dword [ebx + 0xac], ebp
je 0x40d1ef
mov edx, dword [ebx]
mov edx, dword [edx + 0x48]
mov dword [ebx + 0xfc], ebp
movzx ecx, word [esp + 0x3c]
lea eax, [esp + 0x14]
push eax
movzx eax, word [esp + 0x3c]
shl ecx, 0x10
or ecx, eax
push ecx
mov ecx, dword [esp + 0x3c]
push ecx
push 0x202
push ebp
mov ecx, ebx
mov dword [esp + 0x28], ebp
call edx
mov eax, dword [ebx + 0xa0]
cmp eax, ebp
je 0x40d1e0
cmp word [eax], bp
je 0x40d1e0
push edi
push ebp
push ebp
push eax
push str.open
push ebp
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x40d1ef
mov eax, dword [ebx + 0x14]
cmp eax, ebp
je 0x40d1ef
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
mov dword [esi + 0x3d0], ebp
cmp dword [esp + 0xc], ebp
je 0x40d243
mov eax, dword [esi + 4]
push eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edx, dword [ebx]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], eax
mov eax, dword [edx + 8]
mov ecx, ebx
call eax
mov ecx, dword [esi + 4]
push ecx
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
push ecx
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop ebp
pop ebx
add esp, 0x24
ret 0xc
Function at 0x40d250
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x10
xor edi, edi
call esi
test al, al
js 0x40d26d
push 0xa1
call esi
test al, al
jns 0x40d272
mov edi, 4
push 0x11
call esi
test al, al
js 0x40d282
push 0x11
call esi
test al, al
jns 0x40d285
or edi, 8
push 1
call esi
test al, al
js 0x40d295
push 1
call esi
test al, al
jns 0x40d298
or edi, 1
push 2
call esi
test al, al
js 0x40d2a8
push 2
call esi
test al, al
jns 0x40d2ab
or edi, 2
push 4
call esi
test al, al
js 0x40d2bb
push 0x10
call esi
test al, al
jns 0x40d2be
or edi, 0x10
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
push eax
push ecx
push edi
call fcn.0040d110
pop edi
mov eax, 1
pop esi
ret 0xc

Function at 0x40f7c0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esi + 4]
push edi
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x40f814
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x40f80a
cmp ebx, 0x1b
jne 0x40f7f6
mov ecx, dword [esi + 4]
push 0
push 2
push 0x111
push ecx
jmp 0x40f808
cmp ebx, 0xd
jne 0x40f80a
mov edx, dword [esi + 4]
push 0
push 1
push 0x111
push edx
call edi
mov dword [esi + 0x454], 0
cmp dword [esi + 4], 0
je 0x40f836
movzx eax, word [esp + 0xc]
movzx ecx, word [esp + 8]
mov edx, dword [esi + 0x30]
shl eax, 0x10
or eax, ecx
push eax
push ebx
push pe_nt_image_headers32
push edx
call edi
pop edi
ret 8
Function at 0x40ff40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x50ddb0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53c1a4]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov dword [esp + 0x3c], 0
cmp dword [esp + 0x58], 0
jne 0x40ffa0
cmp dword [esp + 0x5c], 8
jb 0x40ff8a
mov eax, dword [esp + 0x48]
push eax
call fcn.004ea82f
add esp, 4
xor al, al
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov eax, dword [esp + 0x48]
mov ebp, 8
cmp dword [esp + 0x5c], ebp
jae 0x40ffb3
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40ffc7
test al, 0x10
jne 0x4100d6
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x5c], ebp
jae 0x40ffd5
lea eax, [esp + 0x48]
push eax
call fcn.004eb9a0
add esp, 4
test eax, eax
je 0x4100d6
push 1
push 0x51ff6c
lea ebx, [esp + 0x4c]
call fcn.00411f10
mov ecx, dword [esp + 0x58]
mov edi, eax
dec ecx
cmp edi, ecx
jne 0x410026
mov edx, ebx
push edx
mov ecx, edi
xor edx, edx
lea esi, [esp + 0x1c]
call fcn.00409f50
push 1
push 0x51ff70
mov ebx, eax
call fcn.00411f10
mov edi, eax
call fcn.0040efa0
lea eax, [esp + 0x44]
push eax
mov ecx, edi
xor edx, edx
lea esi, [esp + 0x1c]
call fcn.00409f50
mov byte [esp + 0x3c], 1
cmp dword [eax + 0x18], ebp
jb 0x410047
mov eax, dword [eax + 4]
jmp 0x41004a
add eax, 4
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
call fcn.00408b00
call fcn.0040ff40
add esp, 0x1c
test al, al
sete bl
cmp dword [esp + 0x30], ebp
jb 0x410078
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004ea82f
add esp, 4
test bl, bl
je 0x41009b
lea esi, [esp + 0x44]
call fcn.0040efa0
xor al, al
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x5c], ebp
jae 0x4100a9
lea eax, [esp + 0x48]
push eax
call fcn.004eb9a0
add esp, 4
test eax, eax
lea esi, [esp + 0x44]
sete bl
call fcn.0040efa0
mov al, bl
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
cmp dword [esp + 0x5c], ebp
jb 0x4100e9
mov edx, dword [esp + 0x48]
push edx
call fcn.004ea82f
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x410100
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x510053
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
push esi
push edi
mov eax, dword [0x53c1a4]
xor eax, esp
push eax
lea eax, [esp + 0xac]
mov dword fs:[0], eax
mov dword [esp + 0xb4], 0
mov eax, dword [esp + 0xc0]
mov edi, 8
cmp dword [esp + 0xd4], edi
jae 0x410152
lea eax, [esp + 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41017c
test al, 0x10
jne 0x41017c
cmp dword [esp + 0xd4], edi
jb 0x410293
mov eax, dword [esp + 0xc0]
push eax
jmp 0x41028b
sub esp, 0x1c
mov dword [esp + 0x2c], esp
mov esi, esp
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x48], esp
xor edx, edx
push 0xffffffffffffffff
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], 0
push edx
lea eax, [esp + 0xfc]
mov word [ecx + 4], dx
call fcn.00408f70
mov ecx, esi
call fcn.0040fe80
add esp, 0x1c
call fcn.0040ff40
add esp, 0x1c
test al, al
jne 0x4101fa
cmp dword [esp + 0xd4], edi
jb 0x4101e0
mov eax, dword [esp + 0xc0]
push eax
call fcn.004ea82f
add esp, 4
xor al, al
mov ecx, dword [esp + 0xac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xac
ret
mov eax, dword [esp + 0xc0]
cmp dword [esp + 0xd4], edi
jae 0x410211
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00411990
lea esi, [esp + 0x20]
mov byte [esp + 0xb4], 1
call fcn.004120b0
test eax, eax
jne 0x410254
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 4]
mov eax, dword [esp + ecx + 0x1c]
lea ecx, [esp + ecx + 0x14]
or eax, 2
cmp dword [ecx + 0x28], 0
jne 0x41024c
or eax, 4
push 0
push eax
call fcn.004138e0
lea ecx, [esp + 0x70]
mov byte [esp + 0xb4], 0
call fcn.00411a70
lea eax, [esp + 0x70]
push eax
mov dword [esp + 0x74], vtable.std::ios_base.0
call fcn.004e9558
add esp, 4
cmp dword [esp + 0xd4], edi
jb 0x410293
mov ecx, dword [esp + 0xc0]
push ecx
call fcn.004ea82f
add esp, 4
mov al, 1
mov ecx, dword [esp + 0xac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xac
ret