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

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x1002d9d0]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x100196a0
xor eax, eax
jmp 0x10019829
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x10032000]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x100196dc
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.1001a6a0
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x100197b7
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x100197f5
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x10019740
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x10019731
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x10019711
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10019780
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x10019789
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x10019702
jmp 0x1001978b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x10019824
cmp dword [ebp - 0x6c], edi
je 0x100197f5
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x100197ea
call fcn.10014c32
mov dword [eax], 9
call fcn.10014c3b
mov dword [eax], esi
jmp 0x1001981f
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100197df
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x1001978b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x1001978b
push dword [ebp - 0x6c]
call fcn.10014c44
pop ecx
jmp 0x1001981f
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x1001980d
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x1001980d
xor eax, eax
jmp 0x10019827
call fcn.10014c32
mov dword [eax], 0x1c
call fcn.10014c3b
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x10019827
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.10013e37
add ebp, 0x3a0
leave
ret
Function at 0x10019b3e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x10030df8], ebx
push esi
push edi
jne 0x10019bbe
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10019bf9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10027e94
push edi
call esi
test eax, eax
mov dword [0x10030df8], eax
je 0x10019bf9
push str.GetActiveWindow
push edi
call esi
push 0x10027e70
push edi
mov dword [0x10030dfc], eax
call esi
cmp dword [0x10030978], 2
mov dword [0x10030e00], eax
jne 0x10019bbe
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x10030e08], eax
je 0x10019bbe
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x10030e04], eax
mov eax, dword [0x10030e04]
test eax, eax
je 0x10019c03
call eax
test eax, eax
je 0x10019bea
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x10030e08]
test eax, eax
je 0x10019bea
test byte [ebp - 8], 1
jne 0x10019c03
cmp dword [0x10030984], 4
jb 0x10019bfd
or byte [ebp + 0x12], 0x20
jmp 0x10019c22
xor eax, eax
jmp 0x10019c32
or byte [ebp + 0x12], 4
jmp 0x10019c22
mov eax, dword [0x10030dfc]
test eax, eax
je 0x10019c22
call eax
mov ebx, eax
test ebx, ebx
je 0x10019c22
mov eax, dword [0x10030e00]
test eax, eax
je 0x10019c22
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x10030df8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001b931
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x1002d9d0]
push esi
mov dword [ebp + 0x74], eax
mov esi, ecx
call fcn.1001b901
mov eax, 0x10000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.10013990
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x1001b993
cmp dword [ebp - 0x1c], 5
jb 0x1001b9ab
jmp 0x1001b9a7
cmp dword [ebp - 0x10], 1
jne 0x1001b9ab
cmp dword [ebp - 0x1c], 4
ja 0x1001b9a7
jne 0x1001b9ab
cmp dword [ebp - 0x18], 0
jbe 0x1001b9ab
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x710
mov dword [esi + 0x14], 0x10027f98
call fcn.10011405
test eax, eax
jge 0x1001b9cc
mov byte [0x1002e9dc], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
pop esi
call fcn.10013e37
add ebp, 0x78
leave
ret
Function at 0x1001ffdf
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x1002d9d0]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, 0x100
cmp esi, eax
ja 0x1002002e
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x1002002e
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1002003a
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.10013e37
leave
ret 8

Function at 0x100211f8
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x1002122d
cmp edi, dword [esi + 0xc]
jge 0x1002122d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1002122d
cmp edi, dword [eax + 8]
jge 0x1002122d
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x1002122f
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x1002138c
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x100213c0
jmp fcn.1001be51
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret
Function at 0x10021431
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x1002152a
cmp eax, dword [edi + 0xc]
jge 0x1002152a
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x10021482
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x10021513
cmp dword [ebp + 0xc], ebx
je 0x10021513
jmp 0x100214ac
push 0x10
call fcn.100210c4
cmp eax, ebx
je 0x10021498
mov ecx, eax
call fcn.10021383
mov esi, eax
jmp 0x1002149a
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x100214c3
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x100214d3
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x100214e5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.1001be51
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.10013990
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x10021525
cmp ecx, dword [esi + 8]
jge 0x10021525
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x1002152b
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x409140
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54e050
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5e8024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4091c5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4091c5
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4091a7
cmp esi, edx
jae 0x4091c5
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x409195
cmp esi, edx
jae 0x4091c5
cmp word [esi], 0
je 0x4091c5
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
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

Function at 0x40a030
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54e768
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x5e8024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x234], 0
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x5ee7c8]
cmp eax, dword [ecx + 4]
jle 0x40a102
push 0x5ee7c8
call fcn.0052e34a
add esp, 4
cmp dword [0x5ee7c8], 0xffffffff
jne 0x40a102
mov dword [ebp - 4], 1
xor eax, eax
mov dword [0x5ee7cc], 0
mov dword [0x5ee7dc], 0
mov dword [0x5ee7e0], 0
mov dword [0x5ee7dc], 0
mov dword [0x5ee7e0], 7
mov word [0x5ee7cc], ax
mov byte [ebp - 4], 1
push 0x585eb0
call fcn.0052e202
add esp, 4
mov byte [ebp - 4], 0
push 0x5ee7c8
call fcn.0052e300
add esp, 4
cmp dword [0x5ee7dc], 0
jne 0x40a1bd
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40a1bd
add eax, eax
cmp eax, 0x208
jae 0x40a1f6
xor ecx, ecx
mov dword [ebp - 0x220], ecx
mov word [ebp + eax - 0x218], cx
xor eax, eax
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x220], ecx
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], 7
lea edx, [ecx + 2]
mov word [ebp - 0x230], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a174
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.004082a0
mov dword [ebp - 4], 4
lea eax, [ebp - 0x230]
push eax
mov ecx, 0x5ee7cc
call fcn.0048dd50
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00408570
push 0x5ee7cc
mov ecx, esi
call fcn.00407250
mov dword [ebp - 4], 0
mov dword [ebp - 0x234], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052df57
mov esp, ebp
pop ebp
ret
call fcn.0052e542
int3
Function at 0x40a2d0
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54e8e9
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x5e8024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x238], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x234], 0
cmp dword [edx + 0x14], 8
jb 0x40a320
mov edx, dword [edx]
lea ecx, [ebp - 0x218]
push ecx
push 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x40a361
xorps xmm0, xmm0
movups xmmword [edi], xmm0
movq qword [edi + 0x10], xmm0
mov dword [edi], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x234], 1
jmp 0x40a44c
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
mov dword [ebp - 0x230], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a3c1
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.004082a0
mov dword [ebp - 4], 3
lea eax, [ebp - 0x230]
push 1
sub esp, 0x18
mov dword [ebp - 0x238], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x240], esp
push eax
call fcn.00407250
mov byte [ebp - 4], 4
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.0048de20
add esp, 0x18
mov byte [ebp - 4], 5
mov byte [ebp - 4], 3
mov ecx, edi
call fcn.0048e260
mov byte [ebp - 4], 3
mov dword [ebp - 0x234], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00408570
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052df57
mov esp, ebp
pop ebp
ret
Function at 0x40aa60
Capabilities:
Create directory
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54ec0b
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x5e8024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
mov eax, dword [0x5ee7e4]
cmp eax, dword [esi + 4]
jle 0x40aaeb
push 0x5ee7e4
call fcn.0052e34a
add esp, 4
cmp dword [0x5ee7e4], 0xffffffff
jne 0x40aaeb
mov dword [ebp - 4], 0
mov ecx, 0x5ee7e8
call fcn.0040ac90
mov byte [ebp - 4], 0
push 0x585f00
call fcn.0052e202
mov dword [ebp - 4], 0xffffffff
push 0x5ee7e4
call fcn.0052e300
add esp, 8
mov eax, dword [0x5ee7ac]
cmp eax, dword [esi + 4]
jle 0x40ab71
push 0x5ee7ac
call fcn.0052e34a
add esp, 4
cmp dword [0x5ee7ac], 0xffffffff
jne 0x40ab71
mov dword [ebp - 4], 2
xor eax, eax
mov dword [0x5ee7b0], 0
mov dword [0x5ee7c0], 0
mov dword [0x5ee7c4], 0
mov dword [0x5ee7c0], 0
mov dword [0x5ee7c4], 7
mov word [0x5ee7b0], ax
mov byte [ebp - 4], 2
push 0x585e60
call fcn.0052e202
mov dword [ebp - 4], 0xffffffff
push 0x5ee7ac
call fcn.0052e300
add esp, 8
cmp dword [edi + 0x14], 8
mov esi, edi
mov ebx, dword [edi + 0x10]
jb 0x40ab7e
mov esi, dword [edi]
xor ecx, ecx
mov edx, 0x811c9dc5
add ebx, ebx
je 0x40aba1
nop dword [eax]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x40ab90
push edx
push edi
lea eax, [ebp - 0x6c]
mov ecx, 0x5ee7e8
push eax
call fcn.0040b800
mov esi, dword [eax + 4]
test esi, esi
je 0x40abc5
cmp esi, dword [0x5ee7ec]
je 0x40abc5
add esi, 0x20
jmp 0x40abca
mov esi, 0x5ee7b0
cmp dword [esi + 0x10], 0
je 0x40abea
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40abda
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, esi
jmp 0x40ac72
cmp dword [edi + 0x14], 8
mov edx, edi
jb 0x40abf4
mov edx, dword [edi]
push ecx
lea ecx, [ebp - 0x58]
call fcn.0040a200
add esp, 4
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x40]
push edi
call fcn.00407250
mov byte [ebp - 4], 6
lea eax, [ebp - 0x28]
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x58]
push eax
call fcn.00407250
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x60]
mov ecx, 0x5ee7e8
push eax
call fcn.0040af10
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x28]
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 0xb
mov ecx, eax
call fcn.00408570
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x40]
call fcn.00408570
mov esi, dword [ebp - 0x60]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00408570
lea eax, [esi + 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052df57
mov esp, ebp
pop ebp
ret
Function at 0x40c2c0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f0bd
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x5e8024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x54], ecx
mov edi, dword [ebp + 0x14]
mov dword [ebp - 4], 0
mov dword [edi], 0
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 4]
sub eax, 0x200
cmp eax, 0xe
ja 0x40c34a
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jb 0x40c3f6
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jb 0x40c3f6
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jb 0x40c3f6
mov eax, dword [esi + 4]
sub eax, 0x100
cmp eax, 9
ja 0x40c43c
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jae 0x40c37c
mov eax, dword [esi + 8]
cmp eax, 0x58
je 0x40c37c
cmp eax, 0x43
je 0x40c37c
cmp eax, 0x56
jne 0x40c3f6
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jae 0x40c398
mov eax, dword [esi + 8]
cmp eax, 0x25
je 0x40c3f6
cmp eax, 0x27
je 0x40c3f6
cmp dword [esi + 4], 0x100
jne 0x40c43c
mov eax, dword [esi + 8]
cmp eax, 8
jne 0x40c3ee
mov ecx, dword [ebp - 0x54]
mov ecx, dword [ecx + 0x14]
call fcn.00416120
mov dword [ebp - 0x54], eax
test eax, eax
je 0x40c3c5
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov byte [ebp - 4], 1
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x40c403
mov dl, 1
call fcn.00416200
test al, al
je 0x40c403
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.0040c070
mov eax, dword [esi + 8]
add eax, 0xffffff90
cmp eax, 0xb
ja 0x40c43c
mov dword [edi], 1
mov eax, 1
jmp 0x40c445
mov dword [edi], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.0040c070
mov eax, 1
jmp 0x40c445
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0052df57
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40da90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f7bd
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5e8024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x40dbca
mov eax, dword [0x5ee508]
mov ecx, edi
push dword [eax - 0xc]
lea eax, [ebp + 8]
push eax
call fcn.0040df00
mov dword [ebp - 4], 0
mov edx, eax
mov ecx, 0x5ee508
call fcn.0040de60
mov bl, al
mov dword [ebp - 4], 0xffffffff
or esi, 0xffffffff
mov edx, dword [ebp + 8]
mov ecx, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40db11
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x40db6a
mov eax, dword [0x5ee508]
mov ecx, edi
push dword [eax - 0xc]
lea eax, [ebp + 8]
push eax
call fcn.0040e090
mov dword [ebp - 4], 2
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40dbab
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40dbab
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40db6a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 1
lea eax, [ebp + 8]
mov ecx, edi
push eax
call fcn.0040dfc0
mov dword [ebp - 4], 5
mov ecx, 0x59392c
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40dbe0
test dx, dx
je 0x40dba7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40dbe0
add eax, 4
add ecx, 4
test dx, dx
jne 0x40db85
xor edi, edi
jmp 0x40dbe5
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40dbca
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
sbb edi, edi
or edi, 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40dc04
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x40dbca
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4