joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45b280
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx eax, ax
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0045b2a0
add esp, 8
pop ebp
ret

Function at 0x45b590
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [0x49e970]
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCRT.dll_rewind]
mov edi, dword [sym.imp.MSVCRT.dll_fread]
add esp, 4
push esi
push 1
lea eax, [ebp - 0x24]
push 0x18
push eax
call edi
add esp, 0x10
test eax, eax
je 0x45b6f9
lea ecx, [ebp - 0x24]
push 0x47ec48
push ecx
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
je 0x45b5b9
lea edx, [ebp - 0x24]
push 0x47ec54
push edx
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
je 0x45b5b9
lea eax, [ebp - 0x24]
push 0x47ec60
push eax
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x45b622
mov edx, dword [ebp - 0x10]
push ebx
lea ecx, [ebp - 4]
push ecx
push edx
push esi
call fcn.00460670
add esp, 0x10
jmp 0x45b5b9
lea eax, [ebp - 0x24]
push 0x47ec6c
push eax
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x45b666
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x24]
push edx
push esi
call fcn.0045c4c0
mov eax, dword [ebp + 8]
add esp, 0xc
cmp eax, 0xaca
jl 0x45b6f9
cmp eax, 0xacd
jg 0x45b6f9
jmp 0x45b5b9
lea eax, [ebp - 0x24]
push 0x47ec74
push eax
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x45b691
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x24]
push edx
push esi
call fcn.0045b7b0
add esp, 0xc
jmp 0x45b5b9
lea eax, [ebp - 0x24]
push str.VECTOR
push eax
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x45b6b8
lea ecx, [ebp - 0x24]
push ecx
push esi
call fcn.0045b830
add esp, 8
jmp 0x45b5b9
lea edx, [ebp - 0x24]
push 0x47ec88
push edx
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x45b6df
lea eax, [ebp - 0x24]
push eax
push esi
call fcn.0045b810
add esp, 8
jmp 0x45b5b9
lea ecx, [ebp - 0x24]
push 0x47ec90
push ecx
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
je 0x45b702
jmp 0x45b5b9
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 0xaca
mov esi, dword [ebp - 0x10]
jne 0x45b724
mov edx, dword [0x49ec78]
mov eax, dword [edx + 0x15]
push eax
push 5
push 3
call fcn.00412e90
add esp, 0xc
mov ecx, dword [ebp - 4]
push ebx
push ecx
push 3
call fcn.00460370
add esp, 0xc
call fcn.0045b750
pop edi
lea eax, [esi + 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45b7b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x14]
push esi
push eax
mov eax, dword [0x49ec74]
mov ecx, dword [eax + 0x15]
push edx
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
mov edx, dword [0x49ec74]
mov esi, dword [edx + 0x15]
mov al, byte [esi]
add esp, 0x10
test al, al
je 0x45b80a
push edi
mov edi, dword [ebp + 0x10]
movsx eax, al
inc esi
cmp eax, 0xa
jne 0x45b7fe
push 8
push esi
push edi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add esi, 8
mov al, byte [esi]
test al, al
jne 0x45b7e6
pop edi
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x45b830
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x14]
push eax
mov eax, dword [0x49ec78]
mov ecx, dword [eax + 0x15]
push edx
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
xor eax, eax
pop ebp
ret

Function at 0x45be50
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx eax, ax
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0045be70
add esp, 8
pop ebp
ret
Function at 0x45c490
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 3
call fcn.0044a7f0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x14]
push eax
mov eax, dword [0x49ec74]
mov ecx, dword [eax + 0x15]
push edx
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x14
xor eax, eax
pop ebp
ret

Function at 0x45c4c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push 3
call fcn.0044a7f0
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi + 0x14]
mov edx, dword [0x49ec74]
push eax
mov eax, dword [edx + 0x15]
push ecx
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
mov ecx, dword [0x49ec74]
mov edx, dword [ecx + 0x15]
mov eax, dword [esi + 0x14]
mov ecx, dword [ebp + 0x10]
mov byte [edx + eax], 0
mov edx, dword [0x49ec74]
mov eax, dword [edx + 0x15]
push ecx
push 0x47ed4c
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret

Function at 0x45c520
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push 3
call fcn.0044a7f0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x14]
push eax
mov eax, dword [0x49ec74]
mov ecx, dword [eax + 0x15]
push edx
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
mov edx, dword [0x49ec74]
mov eax, dword [edx + 0x15]
movsx esi, byte [eax]
add esp, 0x14
inc eax
xor ecx, ecx
test esi, esi
jle 0x45c56b
mov dl, byte [eax]
inc eax
mov byte [ecx + 0x479bd1], dl
inc ecx
cmp ecx, esi
jl 0x45c55d
xor eax, eax
pop esi
pop ebp
ret

Function at 0x45c570
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 3
call fcn.0044a7f0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x14]
push eax
mov eax, dword [0x49ec74]
mov ecx, dword [eax + 0x15]
push edx
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x14
xor eax, eax
pop ebp
ret
Function at 0x45cf60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 3
call fcn.0044a7f0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x14]
push eax
mov eax, dword [0x49ec74]
mov ecx, dword [eax + 0x15]
push edx
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x14
xor eax, eax
pop ebp
ret

Function at 0x45cf90
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor esi, esi
xor edi, edi
test eax, eax
lea ebx, [ebx + ebx*4]
jle 0x45d004
mov ecx, dword [ebx + ebx*4 + 0x49eb89]
lea edx, [ecx + edi]
cmp edx, eax
jle 0x45cfbe
sub eax, edi
mov esi, eax
jmp 0x45cfc0
mov esi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebx + ebx*4 + 0x49eb8d]
push eax
push esi
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
mov edx, dword [ebx + ebx*4 + 0x49eb79]
mov eax, dword [ebx + ebx*4 + 0x49eb8d]
push edx
push esi
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
mov ecx, dword [ebx + ebx*4 + 0x49eb89]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x14]
add edi, ecx
add esp, 0x20
cmp edi, eax
jl 0x45cfb1
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x14]
mov ecx, dword [ebx + ebx*4 + 0x49eb89]
mov dword [ebx + ebx*4 + 0x49eb7d], eax
sub eax, esi
pop edi
lea edx, [ecx + eax - 1]
mov dword [ebx + ebx*4 + 0x49eb81], eax
pop esi
mov dword [ebx + ebx*4 + 0x49eb85], edx
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x45d230
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x49ec74]
push esi
mov esi, dword [eax + 0x15]
push 0x47ed6c
push esi
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push edx
push 0x18
push 1
push esi
mov dword [esi + 0x14], ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x18
xor eax, eax
pop esi
pop ebp
ret

Function at 0x45d270
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x49ec74]
push esi
mov esi, dword [eax + 0x15]
push 0x47ed78
push esi
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push edx
push 0x18
push 1
push esi
mov dword [esi + 0x14], ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x18
xor eax, eax
pop esi
pop ebp
ret

Function at 0x45d2b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x49ec74]
push esi
mov esi, dword [eax + 0x15]
push str.LONGOFFSET
push esi
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push edx
push 0x18
push 1
push esi
mov dword [esi + 0x14], ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x18
xor eax, eax
pop esi
pop ebp
ret
Function at 0x45d2f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x49ec74]
push esi
mov esi, dword [eax + 0x15]
push edi
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
push 0x47ed90
push esi
call edi
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [esi + 0x18]
push 0x47ed98
push edx
mov dword [esi + 0x14], 4
call edi
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 0x14]
push eax
add ecx, 0x18
push ecx
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x24
pop edi
xor eax, eax
pop esi
pop ebp
ret
Function at 0x45d6c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x49ec74]
push esi
mov esi, dword [eax + 0x15]
push 0x47eda8
push esi
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [esi + 0x18]
add esp, 8
mov dword [esi + 0x14], 0x14
mov byte [eax], 0x10
inc eax
xor ecx, ecx
mov dl, byte [ecx + 0x479bd1]
mov byte [eax], dl
inc eax
inc ecx
cmp ecx, 0x10
jl 0x45d6eb
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 0x14]
push eax
add ecx, 0x18
push ecx
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
xor eax, eax
pop esi
pop ebp
ret

Function at 0x45d720
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x49ec74]
push esi
mov esi, dword [eax + 0x15]
push 0x47edb0
push esi
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [ebp + 8]
push ecx
push 0x22
push 1
push esi
mov dword [esi + 0x14], 0xa
mov byte [esi + 0x18], 0
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x18
xor eax, eax
pop esi
pop ebp
ret

Function at 0x45d760
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x49ec74]
push esi
mov esi, dword [eax + 0x15]
push 0x47edb8
push esi
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [ebp + 8]
push ecx
push 0x22
push 1
push esi
mov dword [esi + 0x14], 0xa
mov byte [esi + 0x18], 0
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x18
xor eax, eax
pop esi
pop ebp
ret

Function at 0x45d7a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x49ec74]
push esi
mov esi, dword [eax + 0x15]
push 0x47edc4
push esi
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [ebp + 8]
push ecx
push 0x22
push 1
push esi
mov dword [esi + 0x14], 0xa
mov byte [esi + 0x18], 0
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x18
xor eax, eax
pop esi
pop ebp
ret

Function at 0x45d7e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
lea eax, [ebp - 0x1c]
push 0x47edcc
push eax
lea ebx, [ebx + ebx*4]
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edx, dword [ebp + 8]
mov ecx, dword [ebx + ebx*4 + 0x49eb7d]
push edx
push 0x18
lea edi, [ebx + ebx*4 + 0x49eb7d]
lea eax, [ebp - 0x1c]
push 1
push eax
mov dword [ebp - 8], ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
mov eax, dword [edi]
add esp, 0x18
xor esi, esi
test eax, eax
jle 0x45d87b
lea ecx, [ebx + ebx*4 + 0x49eb8d]
mov dword [ebp - 4], ecx
lea ebx, [ebx + ebx*4 + 0x49eb89]
mov edx, dword [ebp + 0xc]
push esi
push edx
call fcn.0044a500
mov ecx, dword [ebx]
mov eax, dword [edi]
lea edx, [ecx + esi]
add esp, 8
cmp edx, eax
jle 0x45d859
sub eax, esi
jmp 0x45d85b
mov eax, ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
push ecx
push eax
mov eax, dword [edx]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
mov ecx, dword [ebx]
mov eax, dword [edi]
add esi, ecx
add esp, 0x10
cmp esi, eax
jl 0x45d83d
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45d890
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push 3
call fcn.0044a7f0
mov eax, dword [0x49ec74]
mov esi, dword [eax + 0x15]
push 0x47edd4
push esi
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push edx
push 0x18
push 1
push esi
mov dword [esi + 0x14], ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x1c
xor eax, eax
pop esi
pop ebp
ret

Function at 0x45db30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
xor ebx, ebx
call fcn.0044a500
mov eax, dword [0x49ec7c]
mov ecx, dword [eax + 5]
mov esi, dword [eax + 0x15]
add esp, 8
test ecx, ecx
jle 0x45dbe1
mov edx, dword [eax + 9]
mov ecx, dword [eax + 0x15]
sub ecx, edx
mov edx, dword [ecx + ebx + 1]
add ecx, ebx
lea edx, [edx + ebx + 5]
cmp edx, dword [eax + 0xd]
jbe 0x45dbb1
sub esi, dword [eax + 0x15]
je 0x45db9c
mov eax, dword [eax + 1]
push 0
push edi
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [0x49ec7c]
mov ecx, dword [eax + 1]
mov edx, dword [eax + 0x15]
push ecx
push esi
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x1c
add edi, esi
push ebx
push 0
call fcn.0044a500
mov eax, dword [0x49ec7c]
mov esi, dword [eax + 0x15]
add esp, 8
mov ecx, esi
cmp byte [ecx], 0
mov edx, dword [ecx + 1]
mov dword [ebp - 4], edx
jle 0x45dbd4
push edx
push ecx
push esi
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 4]
add esp, 0xc
add esi, eax
mov eax, dword [0x49ec7c]
mov ecx, dword [eax + 5]
add ebx, edx
cmp ecx, ebx
jg 0x45db58
sub esi, dword [eax + 0x15]
je 0x45dc13
mov eax, dword [eax + 1]
push 0
push edi
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [0x49ec7c]
mov ecx, dword [eax + 1]
mov edx, dword [eax + 0x15]
push ecx
push esi
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
mov eax, dword [0x49ec7c]
add esp, 0x1c
add edi, esi
mov dword [eax + 5], edi
mov eax, dword [0x49ec7c]
mov dword [eax + 9], edi
mov eax, dword [0x49ec7c]
mov ecx, dword [eax + 0x11]
mov edx, dword [eax + 9]
lea ecx, [ecx + edx - 1]
mov dword [eax + 0xd], ecx
call fcn.00473430
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45e6a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4c6c54]
cmp eax, 2
push esi
jl 0x45e885
mov esi, dword [0x4c6c58]
mov edx, eax
mov eax, dword [0x47ec00]
inc esi
dec edx
dec eax
mov dword [0x4c6c58], esi
mov dword [0x4c6c54], edx
mov dword [0x47ec00], eax
jns 0x45e6e2
mov eax, 0xc7
mov dword [0x47ec00], eax
push 0x20
lea ecx, [eax + eax*2]
lea edx, [eax + ecx*4 + 0x4c6090]
push 0x47f0cc
push edx
call dword [sym.imp.MSVCRT.dll__fsopen]
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x45e714
push 3
call fcn.0040c4d0
add esp, 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push edi
call fcn.0044a840
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 0x18
lea eax, [ebp - 0x1c]
push 1
push eax
call edi
lea ecx, [ebp - 0x1c]
push 0x47f0d0
push ecx
call sub.MSVCRT.dll_strcmp
add esp, 0x18
test eax, eax
je 0x45e720
lea edx, [ebp - 0x1c]
push 0x47f0dc
push edx
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x45e768
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push esi
call fcn.0045c4c0
add esp, 0xc
jmp 0x45e720
lea edx, [ebp - 0x1c]
push 0x47f0e4
push edx
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x45e78f
push eax
push eax
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.0045c5a0
add esp, 0x14
jmp 0x45e720
lea ecx, [ebp - 0x1c]
push 0x47f0f0
push ecx
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x45e7b6
lea edx, [ebp - 0x1c]
push edx
push esi
call fcn.0045c490
add esp, 8
jmp 0x45e720
lea eax, [ebp - 0x1c]
push 0x47f0fc
push eax
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x45e7dd
lea ecx, [ebp - 0x1c]
push ecx
push esi
call fcn.0045c520
add esp, 8
jmp 0x45e720
lea edx, [ebp - 0x1c]
push 0x47f104
push edx
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x45e804
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.0045c570
add esp, 8
jmp 0x45e720
lea ecx, [ebp - 0x1c]
push 0x47f10c
push ecx
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x45e82b
lea edx, [ebp - 0x1c]
push edx
push esi
call fcn.0045cf60
add esp, 8
jmp 0x45e720
lea eax, [ebp - 0x1c]
push 0x47f114
push eax
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
je 0x45e85a
lea ecx, [ebp - 0x1c]
push 0x47f11c
push ecx
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
je 0x45e869
jmp 0x45e720
push 0
lea edx, [ebp - 0x1c]
push edx
push esi
call fcn.0045cf90
add esp, 0xc
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
call fcn.0045dc40
call fcn.00473430
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 6
call fcn.0040c4d0
add esp, 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x45e8a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4c6c58]
cmp eax, 1
push esi
push edi
jl 0x45ea88
mov esi, dword [0x4c6c54]
mov edi, eax
mov eax, dword [0x47ec00]
dec edi
inc esi
inc eax
cmp eax, 0xc8
mov dword [0x4c6c58], edi
mov dword [0x4c6c54], esi
mov dword [0x47ec00], eax
jl 0x45e8e5
xor eax, eax
mov dword [0x47ec00], eax
push 0x20
lea ecx, [eax + eax*2]
lea edx, [eax + ecx*4 + 0x4c6090]
push 0x47f120
push edx
call dword [sym.imp.MSVCRT.dll__fsopen]
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x45e918
push 3
call fcn.0040c4d0
add esp, 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
call fcn.0044a840
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 0x18
lea eax, [ebp - 0x1c]
push 1
push eax
call edi
lea ecx, [ebp - 0x1c]
push str.DFMOFFSET
push ecx
call sub.MSVCRT.dll_strcmp
add esp, 0x18
test eax, eax
je 0x45e923
lea edx, [ebp - 0x1c]
push 0x47f130
push edx
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x45e96b
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push esi
call fcn.0045c4c0
add esp, 0xc
jmp 0x45e923
lea edx, [ebp - 0x1c]
push 0x47f138
push edx
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x45e992
push eax
push eax
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.0045c5a0
add esp, 0x14
jmp 0x45e923
lea ecx, [ebp - 0x1c]
push 0x47f144
push ecx
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x45e9b9
lea edx, [ebp - 0x1c]
push edx
push esi
call fcn.0045c490
add esp, 8
jmp 0x45e923
lea eax, [ebp - 0x1c]
push 0x47f150
push eax
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x45e9e0
lea ecx, [ebp - 0x1c]
push ecx
push esi
call fcn.0045c520
add esp, 8
jmp 0x45e923
lea edx, [ebp - 0x1c]
push 0x47f158
push edx
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x45ea07
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.0045c570
add esp, 8
jmp 0x45e923
lea ecx, [ebp - 0x1c]
push 0x47f160
push ecx
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x45ea2e
lea edx, [ebp - 0x1c]
push edx
push esi
call fcn.0045cf60
add esp, 8
jmp 0x45e923
lea eax, [ebp - 0x1c]
push 0x47f168
push eax
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
je 0x45ea5d
lea ecx, [ebp - 0x1c]
push 0x47f170
push ecx
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
je 0x45ea6c
jmp 0x45e923
push 0
lea edx, [ebp - 0x1c]
push edx
push esi
call fcn.0045cf90
add esp, 0xc
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
call fcn.0045dc40
call fcn.00473430
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 6
call fcn.0040c4d0
add esp, 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x45eaa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push edi
call fcn.0044a7f0
mov ebx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
xor esi, esi
push esi
push ebx
call fcn.0044a5b0
add esp, 0x10
test eax, eax
je 0x45eaf9
mov eax, dword [ebp - 4]
cmp byte [eax], 0
jle 0x45eae2
mov ecx, dword [eax + 1]
push ecx
push eax
push edi
call fcn.0044a720
mov eax, dword [ebp - 4]
add esp, 0xc
mov ecx, dword [eax + 1]
lea edx, [ebp - 4]
push edx
add esi, ecx
push esi
push ebx
call fcn.0044a5b0
add esp, 0xc
test eax, eax
jne 0x45eac9
xor ebx, ebx
push ebx
push edi
lea esi, [edi + edi*4]
mov dword [ebp + 8], ebx
call fcn.0044a500
mov eax, dword [esi + esi*4 + 0x49eb7d]
mov edi, dword [esi + esi*4 + 0x49eb8d]
add esp, 8
test eax, eax
jle 0x45ebcf
mov ecx, dword [esi + esi*4 + 0x49eb81]
mov eax, dword [esi + esi*4 + 0x49eb8d]
sub eax, ecx
mov ecx, dword [ebp + 8]
add eax, ecx
mov dword [ebp - 4], eax
mov edx, dword [eax + 1]
lea ecx, [edx + ecx + 5]
cmp ecx, dword [esi + esi*4 + 0x49eb85]
jbe 0x45eb9d
sub edi, dword [esi + esi*4 + 0x49eb8d]
je 0x45eb81
mov edx, dword [esi + esi*4 + 0x49eb79]
push 0
push ebx
push edx
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [esi + esi*4 + 0x49eb79]
mov ecx, dword [esi + esi*4 + 0x49eb8d]
push eax
push edi
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x1c
add ebx, edi
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push edx
push eax
call fcn.0044a500
mov edi, dword [esi + esi*4 + 0x49eb8d]
mov eax, edi
add esp, 8
mov dword [ebp - 4], eax
cmp byte [eax], 0
mov ecx, dword [eax + 1]
mov dword [ebp - 8], ecx
jle 0x45ebba
push ecx
push eax
push edi
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0xc
add edi, eax
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, ecx
cmp dword [esi + esi*4 + 0x49eb7d], eax
mov dword [ebp + 8], eax
jg 0x45eb21
sub edi, dword [esi + esi*4 + 0x49eb8d]
je 0x45ec07
mov ecx, dword [esi + esi*4 + 0x49eb79]
push 0
push ebx
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
mov edx, dword [esi + esi*4 + 0x49eb79]
mov eax, dword [esi + esi*4 + 0x49eb8d]
push edx
push edi
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x1c
add ebx, edi
mov ecx, dword [esi + esi*4 + 0x49eb89]
lea edx, [ecx + ebx - 1]
pop edi
mov dword [esi + esi*4 + 0x49eb7d], ebx
mov dword [esi + esi*4 + 0x49eb81], ebx
mov dword [esi + esi*4 + 0x49eb85], edx
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45f940
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
call edi
push 0x56
movsx esi, ax
call edi
test ax, ax
jge 0x45f95a
xor esi, esi
push esi
call fcn.0045f970
add esp, 4
pop edi
mov dword [0x49ee5c], 1
pop esi
ret