joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414880
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x38]
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4148a7
push 1
lea ecx, [ebp + 8]
push ecx
push edi
call eax
add esp, 0xc
jmp 0x4148b8
mov edx, dword [esi + 0x38]
push edx
push 1
lea eax, [ebp + 8]
push 1
push eax
call ebx
add esp, 0x10
cmp eax, 1
je 0x4148ce
pop edi
pop esi
mov dword [0x4a4b38], 0x66
xor eax, eax
pop ebx
pop ebp
ret
mov cl, byte [ebp + 8]
test cl, cl
jbe 0x414935
mov edx, dword [ebp + 0xc]
lea eax, [esi + 0x44]
mov dword [edx], eax
mov byte [eax], cl
mov eax, dword [edi + 0x38]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x4148fe
mov eax, dword [ebp + 8]
mov edx, dword [edx]
and eax, 0xff
push eax
inc edx
push edx
push edi
call ecx
add esp, 0xc
jmp 0x414917
mov eax, dword [eax + 0x38]
mov ecx, dword [ebp + 8]
mov edx, dword [edx]
push eax
and ecx, 0xff
push ecx
inc edx
push 1
push edx
call ebx
add esp, 0x10
mov ecx, dword [ebp + 8]
and ecx, 0xff
cmp eax, ecx
je 0x414949
pop edi
pop esi
mov dword [0x4a4b38], 0x66
xor eax, eax
pop ebx
pop ebp
ret
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
mov byte [esi + 0x44], 0
mov dword [esi + 0x34], 0
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret

Function at 0x414960
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ecx + 0x38]
mov eax, dword [esi + 0x3c]
xor ebx, ebx
cmp eax, ebx
push edi
je 0x414983
push 1
lea edx, [ebp + 8]
push edx
push ecx
call eax
add esp, 0xc
jmp 0x414998
mov eax, dword [esi + 0x38]
push eax
push 1
lea ecx, [ebp + 8]
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov ecx, dword [ebp + 8]
and ecx, 0xff
mov eax, 1
shl eax, cl
mov dword [esi + 8], ecx
mov edx, 1
mov byte [esi + 0x44], bl
mov dword [esi + 0xc], eax
inc eax
mov dword [esi + 0x10], eax
inc eax
inc ecx
shl edx, cl
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov eax, 0x1002
mov dword [esi + 0x28], ebx
mov dword [esi + 0x20], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
lea edi, [esi + 0x2143]
mov dword [esi + 0x1c], edx
mov ecx, 0x1000
rep stosd dword es:[edi], eax
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
Function at 0x414dd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
cmp byte [esi], 0
push edi
jne 0x414e85
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x38]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x414dfa
push 1
push esi
push ebx
call ecx
add esp, 0xc
jmp 0x414e0c
mov eax, dword [eax + 0x38]
push eax
push 1
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x414e22
pop edi
pop esi
mov dword [0x4a4b38], 0x66
xor eax, eax
pop ebx
pop ebp
ret
mov eax, dword [ebx + 0x38]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
lea edi, [esi + 1]
je 0x414e3d
xor edx, edx
mov dl, byte [esi]
push edx
push edi
push ebx
call ecx
add esp, 0xc
jmp 0x414e52
mov eax, dword [eax + 0x38]
xor ecx, ecx
mov cl, byte [esi]
push eax
push ecx
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
xor edx, edx
mov dl, byte [esi]
cmp eax, edx
je 0x414e6b
pop edi
pop esi
mov dword [0x4a4b38], 0x66
xor eax, eax
pop ebx
pop ebp
ret
mov al, byte [edi]
mov ecx, dword [ebp + 0x10]
mov byte [ecx], al
mov al, byte [esi]
dec al
mov byte [edi], 2
pop edi
mov byte [esi], al
pop esi
mov eax, 1
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 0x10]
xor edx, edx
mov dl, byte [esi + 1]
pop edi
mov al, byte [edx + esi]
mov byte [ecx], al
mov cl, byte [esi + 1]
mov al, byte [esi]
inc cl
dec al
mov byte [esi], al
mov byte [esi + 1], cl
pop esi
mov eax, 1
pop ebx
pop ebp
ret

Function at 0x4159a0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a8
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OpenFile]
push edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x198], ebx
mov ecx, 0x4f
lea edi, [ebp - 0x194]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x58], ebx
mov ecx, 0x15
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
push ebx
lea ecx, [ebp - 0x220]
push ecx
push edx
mov dword [eax], ebx
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x4159f9
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x415a18
push edi
call dword [sym.imp.KERNEL32.dll__lclose]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push 0x1002
lea eax, [ebp - 0x2a8]
push eax
push ecx
call esi
mov esi, eax
cmp esi, 0xffffffff
jne 0x415a41
push edi
call dword [sym.imp.KERNEL32.dll__lclose]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0x140
lea edx, [ebp - 0x198]
push edx
push esi
call dword [sym.imp.KERNEL32.dll__lwrite]
push 0x58
lea eax, [ebp - 0x58]
push eax
push esi
call dword [sym.imp.KERNEL32.dll__lwrite]
push ebx
push edi
push esi
call fcn.004150d0
mov ecx, dword [ebp + 0x10]
push esi
mov esi, dword [sym.imp.KERNEL32.dll__lclose]
mov dword [ecx], eax
call esi
push edi
call esi
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415a90
Capabilities:
Enumerate files on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [ebp + 0xc]
push esi
push 0x10
push 0x47aa28
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCRT.dll__fsopen]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x415bb6
push ebx
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
push esi
push 1
lea ecx, [ebp - 4]
push 4
push ecx
call edi
mov edx, dword [ebp + 8]
push esi
push 1
push 0x104
push edx
call edi
mov ebx, dword [ebp + 8]
add esp, 0x20
mov eax, 1
test eax, eax
je 0x415b09
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x148]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x415b80
jmp 0x415b1b
lea edx, [ebp - 0x148]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x415b79
lea eax, [ebp - 0x11c]
push eax
call sub.MSVCRT.dll_strlen
push esi
push 1
lea ecx, [ebp - 8]
push 2
push ecx
mov dword [ebp - 8], eax
call edi
movsx edx, word [ebp - 8]
push esi
push 1
push edx
lea eax, [ebp - 0x11c]
push eax
call edi
mov eax, dword [ebp + 0x10]
add esp, 0x24
test eax, eax
je 0x415b6f
push esi
push 1
lea ecx, [ebp - 0x134]
push 8
push ecx
call edi
push esi
push 1
lea edx, [ebp - 0x148]
push 4
push edx
call edi
add esp, 0x20
inc dword [ebp - 4]
xor eax, eax
jmp 0x415aeb
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 0
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
push esi
push 1
lea eax, [ebp - 4]
push 4
push eax
call edi
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [ebp - 4]
add esp, 0x20
test eax, eax
pop edi
pop ebx
jne 0x415bb9
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.MSVCRT.dll__unlink]
add esp, 4
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x415be0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [ebp + 8]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x415c88
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [ebp + 8]
push ecx
push 4
lea edx, [ebp - 4]
push edx
push esi
call edi
cmp dword [ebp + 8], 4
jne 0x415c76
mov eax, dword [ebp - 4]
test eax, eax
je 0x415c76
push 0
lea eax, [ebp + 8]
push eax
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push esi
call edi
cmp dword [ebp + 8], 0x104
je 0x415c60
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push edx
push eax
push ecx
push esi
call fcn.00415ca0
test eax, eax
jne 0x415c88
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 0x10
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x415ca0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 4]
push eax
push 2
lea ecx, [ebp + 0xa]
push ecx
push esi
call edi
cmp dword [ebp - 4], 2
jne 0x415d4c
mov ax, word [ebp + 0xa]
test ax, ax
je 0x415d4c
mov ebx, dword [ebp + 0xc]
push 0
lea edx, [ebp - 4]
push edx
movsx eax, ax
push eax
push ebx
push esi
call edi
movsx ecx, word [ebp + 0xa]
cmp dword [ebp - 4], ecx
jne 0x415d4c
push 0
lea edx, [ebp - 4]
push edx
push 8
lea eax, [ebp - 0x10]
push eax
push esi
call edi
cmp dword [ebp - 4], 8
jne 0x415d4c
push 0
lea ecx, [ebp - 4]
push ecx
push 4
lea edx, [ebp - 8]
push edx
push esi
call edi
cmp dword [ebp - 4], 4
jne 0x415d4c
movsx eax, word [ebp + 0xa]
mov byte [eax + ebx], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x415d32
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x415d3e
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x41fa30
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx eax, ax
push eax
call fcn.0041fa50
add esp, 4
mov dword [0x49ee5c], 1
ret

Function at 0x4200a0
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx eax, ax
push eax
call fcn.004200c0
add esp, 4
mov dword [0x49ee5c], 1
ret
Function at 0x427a80
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push 0
push 0x47974c
call sub.drawcom.dll_DcDaqAccess
add esp, 8
test eax, eax
je 0x427aac
push 9
call fcn.0040c4d0
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x2a0]
push 0x47974c
push eax
call sub.MSVCRT.dll_strcpy
lea ecx, [ebp - 0x20]
push 0x47bb7c
push ecx
call sub.MSVCRT.dll_strcpy
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x2a0]
push eax
lea ecx, [ebp - 0x20]
push ecx
push 0x4c86a0
call fcn.00412a40
push 0x47bb78
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x2a0]
push 0x47bba4
push eax
call fcn.00436b80
add esp, 0x30
test eax, eax
je 0x427c54
lea ecx, [ebp - 0x20]
push 0x2e
push ecx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
jne 0x427b2d
lea edx, [ebp - 0x20]
push str..dxf
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
lea eax, [ebp - 0x20]
push eax
push 0x4c86a0
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x2a0]
push edx
call fcn.00412a80
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x20]
push ecx
push 0x4c86a0
call fcn.004107c0
lea edx, [ebp - 0x19c]
push edx
call fcn.00427c60
add esp, 0x20
test eax, eax
je 0x427c54
push 0x47bbb4
call fcn.0045c1f0
add esp, 4
test eax, eax
jne 0x427b93
push 3
call fcn.0040c4d0
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
push 0x47bb7c
call sub.MSVCRT.dll_strcpy
lea ecx, [ebp - 0x19c]
push ecx
lea edx, [ebp - 0x20]
push edx
push 0x4c86a0
call fcn.004384d0
lea eax, [ebp - 0x19c]
push 0x2e
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 0x1c
test eax, eax
je 0x427bcf
mov byte [eax], 0
lea ecx, [ebp - 0x19c]
push 0x47bbc0
push ecx
call sub.MSVCRT.dll_strcat
lea edx, [ebp - 0x41c]
push edx
lea eax, [ebp - 0x19c]
push eax
push 0x4c86a0
call fcn.004107c0
add esp, 0x14
push 1
lea ecx, [ebp - 0x41c]
push ecx
push 0x47bbc8
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x4795e0
lea edx, [ebp - 0x19c]
push edx
push 0x4c86a0
call fcn.00438580
push 0x4795e0
call fcn.0044c590
push 0x4795e0
push 0x4c86a0
call fcn.0045fad0
mov eax, dword [0x47ebec]
add esp, 0x18
test eax, eax
je 0x427c54
mov dword [0x4c6c34], 1
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x428ba0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
lea eax, [ebp - 0x64]
push 0x47bc70
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [0x4a3700]
add esp, 8
cmp ecx, 0x10
mov dword [ebp - 0x50], 0x14
jle 0x428bcf
mov ecx, 0x10
test ecx, ecx
mov byte [ebp - 0x4c], cl
jle 0x428bf0
push esi
mov edx, ecx
push edi
shr ecx, 2
mov esi, 0x4a36e8
lea edi, [ebp - 0x4b]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x50]
push eax
push 1
add ecx, 0x18
push ecx
lea edx, [ebp - 0x64]
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x428c22
push 0x1d1
call fcn.00410630
push eax
call fcn.0040d270
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x428c30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push esi
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x64]
push 0x47bc78
push eax
call esi
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x4c]
push 0x47bc80
push edx
mov dword [ebp - 0x50], 4
call esi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x50]
push eax
push 1
add ecx, 0x18
push ecx
lea edx, [ebp - 0x64]
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x24
cmp eax, 1
pop esi
je 0x428c91
push 0x1d1
call fcn.00410630
push eax
call fcn.0040d270
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x428ca0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
lea eax, [ebp - 0x64]
push 0x47bc84
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [ebp + 8]
push ecx
push 1
lea edx, [ebp - 0x64]
push 0x18
push edx
mov dword [ebp - 0x50], 0
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x18
cmp eax, 1
je 0x428ce9
push 0x1d1
call fcn.00410630
push eax
call fcn.0040d270
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x42b320
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx eax, ax
push eax
call fcn.0042b340
add esp, 4
mov dword [0x49ee5c], 1
ret

Function at 0x42b800
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx eax, ax
push eax
call fcn.0042b820
add esp, 4
mov dword [0x49ee5c], 1
ret

Function at 0x42bd90
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx eax, ax
push eax
call fcn.0042bdb0
add esp, 4
mov dword [0x49ee5c], 1
ret

Function at 0x42d730
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
push esi
push edi
lea eax, [ebp - 0x27c]
push eax
push str.text
push 0x47bdb0
push 0x47bdb8
call fcn.0040e790
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
test eax, eax
jne 0x42d786
lea ecx, [ebp - 0x17c]
push str.notepad.exe
push ecx
call sub.MSVCRT.dll_strcpy
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x17c]
push eax
call sub.MSVCRT.dll_strcat
jmp 0x42d805
lea ecx, [ebp - 0x27c]
push ecx
call fcn.00410c90
lea edx, [ebp - 0x27c]
push 0x47bdd8
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x42d7ec
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x17c]
push ecx
mov byte [esi], 0x20
mov byte [esi + 1], 0
call sub.MSVCRT.dll_strcpy
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x17c]
push eax
call sub.MSVCRT.dll_strcat
add esi, 5
lea ecx, [ebp - 0x17c]
push esi
push ecx
call sub.MSVCRT.dll_strcat
add esp, 0x18
jmp 0x42d808
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x17c]
push 0x47bde0
push ecx
call edi
add esp, 0x10
push 9
lea edx, [ebp - 0x17c]
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
ja 0x42d843
push eax
push 0xa0
call fcn.00410630
add esp, 4
push eax
lea eax, [ebp - 0x17c]
push eax
call edi
lea ecx, [ebp - 0x17c]
push ecx
call fcn.0040d270
add esp, 0x10
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x42f040
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx eax, ax
push eax
call fcn.0042f060
add esp, 4
mov dword [0x49ee5c], 1
ret
Function at 0x42fc10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4a44e4]
inc eax
cmp eax, 0xc8
mov dword [ebp - 4], eax
jle 0x42fc2b
mov dword [ebp - 4], 0xc8
mov ecx, dword [0x47bd6c]
push ebx
push esi
push edi
lea edi, [ecx + 1]
cmp edi, 0xc8
jl 0x42fc41
xor edi, edi
mov eax, dword [0x4a44e8]
mov ebx, 1
cmp eax, ebx
mov esi, edi
jle 0x42fc7a
inc esi
cmp esi, 0xc8
jl 0x42fc5c
xor esi, esi
lea edx, [esi + esi*2]
lea eax, [esi + edx*4 + 0x4a372c]
push eax
call dword [sym.imp.MSVCRT.dll__unlink]
mov eax, dword [0x4a44e8]
add esp, 4
inc ebx
cmp ebx, eax
jl 0x42fc51
push 0x10
lea ecx, [edi + edi*2]
lea edx, [edi + ecx*4 + 0x4a372c]
push 0x47beb0
push edx
mov dword [0x4a44e8], 0
call dword [sym.imp.MSVCRT.dll__fsopen]
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x42fcb8
push 3
call fcn.0040c4d0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 1]
push esi
push 1
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov edx, dword [ebp - 4]
add esp, 0x14
mov dword [0x47bd6c], edi
pop edi
pop esi
mov dword [0x4a44e4], edx
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42fcf0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4a44e4]
push esi
xor esi, esi
cmp eax, 2
push edi
mov dword [ebp - 4], esi
jl 0x42fdd1
mov edi, dword [0x4a44e8]
mov edx, eax
mov eax, dword [0x47bd6c]
inc edi
dec edx
dec eax
mov dword [0x4a44e8], edi
mov dword [0x4a44e4], edx
mov dword [0x47bd6c], eax
jns 0x42fd36
mov eax, 0xc7
mov dword [0x47bd6c], eax
push 0x20
lea ecx, [eax + eax*2]
lea edx, [eax + ecx*4 + 0x4a372c]
push 0x47beb4
push edx
call dword [sym.imp.MSVCRT.dll__fsopen]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x42fd69
push 3
call fcn.0040c4d0
add esp, 4
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push edi
push 1
push 0x1d
push esi
call ebx
add esp, 0x10
test eax, eax
je 0x42fdb3
mov eax, dword [esi + 1]
push edi
push 1
sub eax, 0x1d
push eax
lea ecx, [esi + 0x1d]
push ecx
call ebx
add esp, 0x10
test eax, eax
je 0x42fdb3
mov edx, dword [esi + 1]
push edi
mov dword [ebp - 4], edx
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [ebp - 4]
add esp, 4
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 3
call fcn.0040c4d0
add esp, 4
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [ebp - 4]
add esp, 4
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 6
call fcn.0040c4d0
add esp, 4
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42fdf0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4a44e8]
push ebx
push esi
xor esi, esi
cmp eax, 1
push edi
mov dword [ebp - 4], esi
jl 0x42fed4
mov edi, dword [0x4a44e4]
mov ebx, eax
mov eax, dword [0x47bd6c]
dec ebx
inc edi
inc eax
cmp eax, 0xc8
mov dword [0x4a44e8], ebx
mov dword [0x4a44e4], edi
mov dword [0x47bd6c], eax
jl 0x42fe39
xor eax, eax
mov dword [0x47bd6c], eax
push 0x20
lea ecx, [eax + eax*2]
lea edx, [eax + ecx*4 + 0x4a372c]
push 0x47beb8
push edx
call dword [sym.imp.MSVCRT.dll__fsopen]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x42fe6d
push 3
call fcn.0040c4d0
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push edi
push 1
push 0x1d
push esi
call ebx
add esp, 0x10
test eax, eax
je 0x42feb6
mov eax, dword [esi + 1]
push edi
push 1
sub eax, 0x1d
push eax
lea ecx, [esi + 0x1d]
push ecx
call ebx
add esp, 0x10
test eax, eax
je 0x42feb6
mov edx, dword [esi + 1]
push edi
mov dword [ebp - 4], edx
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 3
call fcn.0040c4d0
add esp, 4
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 6
call fcn.0040c4d0
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x430850
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push edi
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0
movsx edi, ax
call fcn.00447d50
add esp, 4
test eax, eax
jle 0x430958
push 0
call fcn.00448a10
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.004487c0
push 1
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.0044c4e0
lea eax, [ebp - 0x20]
push eax
call fcn.00449010
add esp, 0x1c
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x5c]
push edx
push 0x220
mov dword [0x49eb34], 0x28
call fcn.00410630
add esp, 4
push eax
call fcn.0044d130
mov esi, eax
mov eax, dword [0x49eb34]
push eax
call fcn.00449050
add esp, 0x10
cmp esi, 1
jne 0x430944
test edi, edi
mov dword [0x49eb34], 0
jge 0x4308ee
push 0
jmp 0x4308f0
push 0xffffffffffffffff
push 1
push 0
call fcn.00448060
fld dword [ebp - 0x18]
fsub dword [ebp - 0x20]
mov edx, dword [0x49ec74]
add esp, 0xc
lea ecx, [ebp - 8]
fstp dword [ebp - 8]
push ecx
fld dword [ebp - 0x14]
fsub dword [ebp - 0x1c]
fstp dword [ebp - 4]
mov eax, dword [edx + 5]
push eax
push 0
call fcn.00430a30
mov ecx, dword [0x49ec74]
mov edx, dword [ecx + 5]
push edx
push 0
call fcn.0044a1d0
add esp, 0x14
call fcn.00447640
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 2
je 0x430953
cmp esi, 3
je 0x430953
call fcn.0040c560
call fcn.00447640
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x430de0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push esi
push edi
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0
movsx edi, ax
call fcn.00447d50
add esp, 4
test eax, eax
jle 0x430e9c
push 0x210
call fcn.00410630
push eax
push 0x49ed80
call dword [sym.imp.MSVCRT.dll_sprintf]
call fcn.00410660
push 0
push 0x28
lea eax, [ebp - 0x50]
push eax
push 0x49ed80
call fcn.0044d0e0
add esp, 0x1c
test eax, eax
je 0x430e97
lea ecx, [ebp - 0x50]
push ecx
call fcn.0044c590
push 0x376
call fcn.00410630
mov esi, dword [sym.imp.MSVCRT.dll__stricmp]
push eax
lea edx, [ebp - 0x50]
push edx
call esi
add esp, 0x10
test eax, eax
je 0x430e8e
push 0x312
call fcn.00410630
push eax
lea eax, [ebp - 0x50]
push eax
call esi
add esp, 0xc
test eax, eax
je 0x430e8e
push edi
call fcn.00430eb0
add esp, 4
call fcn.00447640
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push edi
call fcn.00431080
add esp, 4
call fcn.00447640
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret