joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41be47
Capabilities:
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5385d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov edx, ebx
mov dword [ebp - 0x114], ebx
call fcn.0047ebaf
test eax, eax
jne 0x41bfaf
mov edx, edi
call fcn.0047ebaf
test eax, eax
jne 0x41bfaf
push ebx
call fcn.004b68f0
mov esi, 0x104
cmp eax, esi
pop ecx
jae 0x41bf64
push edi
call fcn.004b68f0
cmp eax, esi
pop ecx
jae 0x41bf64
push dword [ebp + 0x10]
push edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
call ebx
test eax, eax
jne 0x41bf5f
push edi
call fcn.0041c6ac
test eax, eax
pop ecx
je 0x41bf2d
push 0x103
lea eax, [ebp - 0x10f]
push 0
push eax
mov byte [ebp - 0x110], 0
call fcn.004b7880
add esp, 0xc
push dword [ebp - 0x114]
mov ecx, esi
lea eax, [ebp - 0x110]
call fcn.0047ebe1
pop ecx
mov esi, eax
call fcn.0047eede
mov edx, esi
call fcn.0047ebaf
test eax, eax
jne 0x41bfaf
mov edx, edi
mov ecx, esi
call fcn.0047f16b
push dword [ebp + 0x10]
mov eax, esi
push eax
push dword [ebp - 0x114]
call ebx
jmp 0x41bfb1
cmp dword [ebp + 0x10], 0
jne 0x41bfaf
call fcn.0041c5ff
test eax, eax
je 0x41bfaf
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 3
je 0x41bfaf
and eax, 0xfffffffc
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push edi
jmp 0x41bf20
xor eax, eax
inc eax
jmp 0x41bfb1
mov eax, ebx
call fcn.004815e5
mov esi, eax
mov eax, edi
call fcn.004815e5
test esi, esi
mov edi, eax
je 0x41bfa4
test edi, edi
je 0x41bf9d
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push esi
mov ebx, eax
call fcn.004b651e
pop ecx
push edi
call fcn.004b651e
pop ecx
mov eax, ebx
jmp 0x41bfb1
push esi
call fcn.004b651e
pop ecx
test edi, edi
je 0x41bfaf
push edi
call fcn.004b651e
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b7140
leave
ret

Function at 0x41bfc0
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ecx
push esi
push edi
mov edi, eax
mov edx, edi
call fcn.0047ebaf
test eax, eax
je 0x41bfd4
xor eax, eax
jmp 0x41c010
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call esi
test eax, eax
jne 0x41c00d
call fcn.0041c5ff
test eax, eax
je 0x41c00d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 3
je 0x41bfd0
and eax, 0xfffffffc
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call esi
jmp 0x41c010
xor eax, eax
inc eax
pop edi
pop esi
pop ecx
ret
Function at 0x41c6ac
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41c6c3
test al, 0x10
je 0x41c6c3
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x41c841
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x35c
mov eax, dword [0x5385d0]
xor eax, esp
mov dword [esp + 0x358], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [esp + 0x25d]
push ebx
push eax
mov byte [esp + 0x264], bl
call fcn.004b7880
push esi
lea eax, [esp + 0x161]
push ebx
push eax
mov byte [esp + 0x168], bl
call fcn.004b7880
push 0x13c
lea eax, [esp + 0x30]
push ebx
push eax
mov dword [esp + 0x34], ebx
call fcn.004b7880
add esp, 0x24
cmp edi, ebx
je 0x41c993
cmp byte [edi], bl
je 0x41c993
push edi
lea ecx, [esi + 1]
lea eax, [esp + 0x25c]
call fcn.0047ebe1
push eax
lea eax, [esp + 0x158]
push eax
call fcn.004b6c20
add esp, 0xc
lea esi, [esp + 0x150]
call fcn.0047eede
mov eax, dword [0x550ac8]
lea ecx, [eax + 0xf]
mov eax, dword [0x550ac4]
cmp eax, ecx
jle 0x41c90b
push eax
push str.:8:DoesFileExist_Helper___has_determined_that_over__d_helper_threads_may_be_stuck_
mov dword [0x550ac8], eax
call fcn.0041936e
pop ecx
pop ecx
inc dword [0x550ac4]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
dec dword [0x550ac4]
mov esi, eax
cmp esi, 0xffffffff
je 0x41c993
cmp byte [esp + 0x3c], 0x2e
je 0x41c97c
lea edx, [esp + 0x3c]
call fcn.0047ebaf
test eax, eax
jne 0x41c97c
cmp byte [esp + 0x150], 0x2a
jne 0x41c9ac
cmp byte [esp + 0x152], 0x2a
jne 0x41c9ac
cmp byte [esp + 0x151], 0x3f
je 0x41c9ac
movsx eax, byte [esp + 0x151]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.004b90e0
test eax, eax
pop ecx
pop ecx
jne 0x41c9ac
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41c931
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
mov ecx, dword [esp + 0x364]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b7140
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
inc eax
jmp 0x41c995
Function at 0x41c9b8
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x5385d0]
xor eax, ebp
mov dword [ebp + 0x90], eax
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], ebx
je 0x41cb53
cmp byte [edi], 0x30
je 0x41cb53
mov esi, 0x104
push esi
lea eax, [ebp - 0x74]
push ebx
push eax
call fcn.004b7880
push edi
mov ecx, esi
lea eax, [ebp - 0x74]
call fcn.0047ebe1
push 0x22
mov edi, eax
call fcn.0047f566
add esp, 0x14
cmp dword [ebp + 0x9c], ebx
jbe 0x41ca41
push 0xf83
push str..File.c
mov eax, edi
push eax
push 0x41cb9c
push ebx
mov ecx, str.CreateDirectorySuper
call fcn.0041eb89
mov edi, eax
jmp 0x41ca43
xor edi, edi
cmp edi, ebx
jne 0x41ca9b
cmp dword [ebp + 0x9c], ebx
jbe 0x41ca65
push str._GetLastError_
push ebx
push dword [ebp - 0x7c]
push str.:8:CreateDirectorySuper___FAILED_to_create_thread_to_create_directory___s_._NumThreads_d:__s
call fcn.00418e96
add esp, 0x10
push ebx
push dword [ebp - 0x7c]
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
cmp eax, ebx
je 0x41ca93
cmp eax, 0x50
je 0x41ca93
cmp eax, 0xb7
je 0x41ca93
cmp eax, 0x4c7
je 0x41ca93
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x41cb53
xor eax, eax
inc eax
jmp 0x41cb55
call fcn.004a6bcb
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x78], ebx
jmp 0x41cacf
cmp dword [ebp - 0x78], 0x103
jne 0x41cb02
call fcn.004a6bcb
sub eax, dword [ebp - 0x80]
cmp eax, dword [ebp + 0x9c]
ja 0x41cadc
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x78]
push eax
push edi
call esi
test eax, eax
jne 0x41caae
jmp 0x41cb02
push dword [ebp - 0x7c]
call fcn.004a6bcb
sub eax, dword [ebp - 0x80]
push eax
push str.:5:CreateDirectorySuper___timed_out_after__ldms_while_creating___s_
call fcn.0041936e
add esp, 0xc
mov dword [ebp - 0x78], ebx
mov dword [0x550ac0], 0x5b4
call fcn.0041ed31
push dword [0x550ac0]
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
call esi
cmp dword [ebp - 0x78], ebx
jne 0x41ca93
mov eax, dword [ebp - 0x7c]
call fcn.0041cb6d
test eax, eax
jne 0x41cb4b
push dword [0x550ac0]
push str._GetLastError_
push dword [ebp + 0x9c]
push dword [ebp - 0x7c]
push str.:3:FYI:_CreateDirectorySuper__s___lu___FAILED:__s_ld
call fcn.0041936e
add esp, 0x14
push dword [0x550ac0]
call esi
xor eax, eax
mov ecx, dword [ebp + 0x90]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b7140
add ebp, 0x94
leave
ret
Function at 0x41cc74
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
mov eax, dword [0x5385d0]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov edx, edi
mov dword [esp + 0x14], edi
call fcn.0047ebaf
test eax, eax
je 0x41ccbb
xor eax, eax
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b7140
mov esp, ebp
pop ebp
ret
call fcn.004a6bcb
push ebx
push dword [ebp + 8]
mov esi, 0x80
push esi
push 3
push closesocket
push edi
mov dword [esp + 0x24], eax
call fcn.0041aa44
mov edi, eax
add esp, 0x18
cmp edi, 0xffffffff
jne 0x41cd93
call dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
mov dword [esp + 0x10], eax
je 0x41ccfc
cmp dword [ebx], 0
jne 0x41cd10
cmp dword [ebp + 8], 0
je 0x41cd16
call fcn.004a6bcb
sub eax, dword [esp + 0xc]
cmp eax, dword [ebp + 8]
jb 0x41cd16
push dword [esp + 0x10]
jmp 0x41cd88
push ebx
push dword [ebp + 8]
push esi
push 3
push 0x2000000
push dword [esp + 0x28]
call fcn.0041aa44
mov edi, eax
add esp, 0x18
cmp edi, 0xffffffff
jne 0x41cd93
call dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
mov esi, eax
je 0x41cd46
cmp dword [ebx], 0
jne 0x41cd87
cmp dword [ebp + 8], 0
je 0x41cd5a
call fcn.004a6bcb
sub eax, dword [esp + 0xc]
cmp eax, dword [ebp + 8]
jae 0x41cd87
push dword [ebp + 8]
mov ecx, dword [esp + 0x18]
call fcn.0041c6c6
test eax, eax
pop ecx
je 0x41cd87
push esi
push str._GetLastError_
push esi
push dword [esp + 0x1c]
push dword [esp + 0x24]
push str.:8:GetFileSizeTimeOut___Seems_to_have_failed_because_of_an_access_rights_problem_:___s_:__u:_u:__s_ld
call fcn.00418e96
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x41cca4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x41cdd1
xor eax, eax
test ebx, ebx
je 0x41cdad
mov eax, dword [ebx]
push str._GetLastError_
push eax
push dword [ebp + 8]
push dword [esp + 0x20]
push str.:7:GetFileSizeTimeOut___s____ld___d__FAILED:__s
call fcn.0041936e
add esp, 0x14
call fcn.0041ed31
jmp 0x41cca4
xor ebx, ebx
cmp eax, ebx
jbe 0x41ce27
push ebx
lea eax, [esp + 0x10]
push eax
push esi
lea eax, [esp + 0x24]
push eax
push edi
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41cdf8
cmp dword [esp + 0xc], ebx
jne 0x41ce27
push str._GetLastError_
push dword [esp + 0x10]
push dword [esp + 0x18]
push dword [ebp + 8]
push dword [esp + 0x24]
push str.:7:GetFileSizeTimeOut___s____ld__FAILED:_GetFileSize___returned__ld_but_ReadFile_____ldBytesRead__FAILED:__s
call fcn.00418e96
add esp, 0x18
xor esi, esi
call fcn.0041ed31
mov eax, esi
jmp 0x41cca6
mov esi, dword [esp + 0x10]
jmp 0x41ce1b
Function at 0x41d7da
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov edx, edi
call fcn.0047ebaf
test eax, eax
je 0x41d7f9
xor eax, eax
jmp 0x41d8a5
push 0
xor edx, edx
mov ecx, edi
call fcn.0041cc74
mov esi, eax
test esi, esi
pop ecx
je 0x41d7f2
push 0x138d
push str..File.c
mov edx, 0x4d520c
mov ecx, edi
call fcn.0041e477
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
mov dword [esp + 0xc], ebx
jne 0x41d83c
push edi
push str.:6:LoadFileToMemory___s___FAILED:_fopen___failed_even_after_GetFileSizeTimeOut___succeeded___
call fcn.00418e96
pop ecx
pop ecx
jmp 0x41d7f2
lea eax, [esi + 0xe]
push eax
call fcn.004b7e07
mov edi, eax
test edi, edi
pop ecx
jne 0x41d866
push esi
push dword [ebp + 8]
push str.:5:LoadFileToMemory___s___FAILED:_malloc___failed_to_allocate_over__u_bytes:_OUT_OF_MEMORY.
call fcn.00418e96
add esp, 0xc
mov ecx, ebx
call fcn.0041e8bf
jmp 0x41d7f2
push ebx
push esi
lea eax, [edi + 4]
push 1
push eax
call fcn.004b7b96
mov ebx, eax
add esp, 0x10
cmp ebx, esi
jae 0x41d88c
push dword [esp + 0xc]
call fcn.004b7849
test eax, eax
pop ecx
jne 0x41d88c
xor ebx, ebx
mov ecx, dword [esp + 0xc]
call fcn.0041e8bf
test ebx, ebx
jne 0x41d8a1
push edi
call fcn.004b651e
jmp 0x41d839
mov dword [edi], ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41d8ac
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and word [ebp - 0x10], 0
push esi
push edi
mov esi, eax
xor eax, eax
lea edi, [ebp - 0xe]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edx, esi
stosw word es:[edi], ax
call fcn.0047ebaf
test eax, eax
je 0x41d8d7
xor eax, eax
jmp 0x41d967
call fcn.004a6bcb
mov edi, eax
lea eax, [ebp - 0x10]
push eax
call fcn.004a7863
push 0
xor edx, edx
mov ecx, esi
call fcn.0041cc74
pop ecx
jmp 0x41d919
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004a6bcb
sub eax, edi
cmp eax, 0x7530
ja 0x41d91e
push 0
xor edx, edx
mov ecx, esi
call fcn.0041cc74
test eax, eax
pop ecx
ja 0x41d8f5
push 0x140e
push str..File.c
mov edx, 0x4d57c8
mov ecx, esi
call fcn.0041e477
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x41d8d0
push esi
push 1
push 0x14
push str.ThisIsAFileLockxxxx
call fcn.004b6868
push esi
push 1
lea eax, [ebp - 0x10]
push 0x10
push eax
call fcn.004b6868
add esp, 0x20
mov ecx, esi
mov edi, eax
call fcn.0041e8bf
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x41d96b
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x20
mov eax, dword [0x5385d0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
push 5
pop ecx
mov esi, str.ThisIsAFileLockxxxx
lea edi, [esp + 0x18]
mov dword [esp + 0x14], ebp
rep movsd dword es:[edi], dword [esi]
call fcn.004a6bcb
mov edx, ebp
mov dword [esp + 0x10], eax
call fcn.0047ebaf
test eax, eax
jne 0x41da85
mov edi, ebp
call fcn.0041c5ff
test eax, eax
jne 0x41d9bc
inc eax
jmp 0x41da87
push 0x1493
mov ebx, str..File.c
mov edi, 0x4d520c
push ebx
mov edx, edi
mov ecx, ebp
call fcn.0041e477
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x41d9fc
push 0x64
call ebp
mov ecx, dword [esp + 0x14]
push 0x1497
push ebx
mov edx, edi
call fcn.0041e477
pop ecx
pop ecx
mov esi, eax
lea eax, [esp + 0x18]
call fcn.0047eb32
xor edi, edi
inc edi
test esi, esi
je 0x41da20
push esi
push edi
push 0x14
push eax
call fcn.004b7b96
add esp, 0x10
mov ecx, esi
call fcn.0041e8bf
lea eax, [esp + 0x18]
push str.ThisIsAFileLockxxxx
push eax
call fcn.004b7d30
test eax, eax
pop ecx
pop ecx
jne 0x41da85
mov ebx, dword [esp + 0x14]
mov eax, ebx
call fcn.0041bfc0
test eax, eax
je 0x41da48
mov eax, edi
jmp 0x41da87
push 0x64
call ebp
call fcn.004a6bcb
sub eax, dword [esp + 0x10]
mov esi, 0x2710
cmp eax, esi
jae 0x41da69
mov eax, ebx
call fcn.0041bfc0
test eax, eax
jne 0x41da44
push 0x64
call ebp
call fcn.004a6bcb
sub eax, dword [esp + 0x10]
cmp eax, esi
jae 0x41da85
mov eax, ebx
call fcn.0041bfc0
test eax, eax
jne 0x41da44
xor eax, eax
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b7140
add esp, 0x20
ret

Function at 0x41da9a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x5385d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x103
lea eax, [ebp - 0x10f]
mov esi, edx
push 0
push eax
mov edi, ecx
mov dword [ebp - 0x114], esi
mov byte [ebp - 0x110], 0
call fcn.004b7880
add esp, 0xc
test esi, esi
je 0x41db7b
mov edx, edi
call fcn.0047ebaf
test eax, eax
jne 0x41db7b
push edi
mov ecx, 0x104
lea eax, [ebp - 0x110]
call fcn.0047ebe1
mov esi, eax
call fcn.0047eede
mov eax, esi
push edi
push eax
call fcn.004b7d30
add esp, 0xc
test eax, eax
jne 0x41db37
push edi
push eax
push eax
call fcn.004610ab
pop ecx
pop ecx
push eax
push 0x4d8920
mov eax, esi
push 0x104
push eax
call fcn.00480225
add esp, 0x14
mov edi, esi
push 0x14cc
push str..File.c
mov edx, 0x4d520c
mov ecx, edi
call fcn.0041e477
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x41db7b
push edi
push 1
push 0x64
push dword [ebp - 0x114]
call fcn.004b7b96
mov esi, eax
add esp, 0x10
neg esi
sbb esi, esi
mov ecx, edi
neg esi
call fcn.0041e8bf
mov eax, esi
jmp 0x41db7d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004b7140
leave
ret
Function at 0x41db8b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x5385d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x103
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x10f]
push 0
push eax
mov edi, ecx
mov byte [ebp - 0x110], 0
call fcn.004b7880
add esp, 0xc
mov edx, edi
call fcn.0047ebaf
test eax, eax
je 0x41dbda
xor eax, eax
jmp 0x41dc7a
push edi
mov ecx, 0x104
lea eax, [ebp - 0x110]
call fcn.0047ebe1
pop ecx
mov esi, eax
call fcn.0047eede
mov eax, esi
push edi
push eax
call fcn.004b7d30
test eax, eax
pop ecx
pop ecx
jne 0x41dc24
push edi
push eax
push eax
call fcn.004610ab
pop ecx
pop ecx
push eax
push 0x4d8920
mov eax, esi
push 0x104
push eax
call fcn.00480225
add esp, 0x14
mov edi, esi
cmp dword [ebp - 0x114], 0
je 0x41dc6f
push 0x14ec
push str..File.c
mov edx, 0x4d57c8
mov ecx, edi
call fcn.0041e477
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x41dbd3
push edi
push 1
push 0x64
push dword [ebp - 0x114]
call fcn.004b6868
mov esi, eax
add esp, 0x10
neg esi
sbb esi, esi
mov ecx, edi
neg esi
call fcn.0041e8bf
jmp 0x41dc78
mov eax, edi
call fcn.0041bfc0
mov esi, eax
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004b7140
leave
ret

Function at 0x41dca5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5385d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x10f]
mov esi, ecx
push ebx
push eax
mov dword [ebp - 0x114], esi
mov edi, edx
mov dword [ebp - 0x118], ebx
mov byte [ebp - 0x110], bl
call fcn.004b7880
add esp, 0xc
cmp edi, ebx
jne 0x41dcf2
lea edi, [ebp - 0x118]
mov edx, esi
call fcn.0047ebaf
test eax, eax
je 0x41dd06
mov dword [edi], ebx
xor eax, eax
jmp 0x41dda1
push esi
mov ecx, 0x104
lea eax, [ebp - 0x110]
call fcn.0047ebe1
mov esi, eax
call fcn.0047eede
push dword [ebp - 0x114]
mov eax, esi
push eax
call fcn.004b7d30
add esp, 0xc
test eax, eax
jne 0x41dd60
push dword [ebp - 0x114]
push ebx
push ebx
call fcn.004610ab
pop ecx
pop ecx
push eax
push 0x4d8920
mov eax, esi
push 0x104
push eax
call fcn.00480225
mov eax, esi
add esp, 0x14
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp - 0x114]
push 0x1524
push str..File.c
mov edx, 0x4d520c
call fcn.0041e477
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [edi], ebx
je 0x41dcff
push esi
push 1
push 4
push edi
call fcn.004b7b96
add esp, 0x10
mov ecx, esi
mov edi, eax
call fcn.0041e8bf
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b7140
leave
ret
Function at 0x41ddb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x5385d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x103
lea eax, [ebp - 0x10f]
push 0
push eax
mov edi, ecx
mov byte [ebp - 0x110], 0
call fcn.004b7880
add esp, 0xc
mov edx, edi
call fcn.0047ebaf
test eax, eax
je 0x41ddf6
xor eax, eax
jmp 0x41de7a
push edi
mov ecx, 0x104
lea eax, [ebp - 0x110]
call fcn.0047ebe1
mov esi, eax
call fcn.0047eede
mov eax, esi
push edi
push eax
call fcn.004b7d30
add esp, 0xc
test eax, eax
jne 0x41de40
push edi
push eax
push eax
call fcn.004610ab
pop ecx
pop ecx
push eax
push 0x4d8920
mov eax, esi
push 0x104
push eax
call fcn.00480225
add esp, 0x14
mov edi, esi
push 0x154a
push str..File.c
mov edx, 0x4d57c8
mov ecx, edi
call fcn.0041e477
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x41ddef
push esi
push 1
lea eax, [ebp + 8]
push 4
push eax
call fcn.004b6868
add esp, 0x10
mov ecx, esi
mov edi, eax
call fcn.0041e8bf
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004b7140
leave
ret
Function at 0x41e3a4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x5385d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [ebp - 0x14f]
push ebx
push eax
mov byte [ebp - 0x150], bl
call fcn.004b7880
push 0x3f
lea eax, [ebp - 0x47]
push ebx
push eax
mov byte [ebp - 0x48], bl
call fcn.004b7880
add esp, 0x18
cmp edi, ebx
je 0x41e467
mov eax, edi
call fcn.0047eb32
push 0x21e88e
lea eax, [esi - 0x25]
call fcn.00440b78
push eax
push str.P2_Tmp__d
lea eax, [ebp - 0x48]
push 0x40
push eax
call fcn.00480225
add esp, 0x14
lea eax, [ebp - 0x150]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x41e430
push str._GetLastError_
push str.:2:CreateTempFile___FAILED:_GetTempPath___FAILED:__s
jmp 0x41e460
push edi
push ebx
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x41e456
mov edx, edi
call fcn.0047ebaf
test eax, eax
jne 0x41e456
mov eax, edi
jmp 0x41e469
push str._GetLastError_
push str.:2:CreateTempFile___FAILED:_GetTempFileName___FAILED:__s
call fcn.00418e96
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004b7140
leave
ret
Function at 0x41eb89
Capabilities:
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x5385d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x107]
push ebx
push eax
mov esi, ecx
mov byte [ebp - 0x108], bl
call fcn.004b7880
push 0x1c8
push 1
call fcn.004b66ca
mov edi, eax
add esp, 0x14
cmp edi, ebx
jne 0x41ebe6
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x41ecca
mov eax, dword [0x552554]
cmp eax, ebx
jne 0x41ebf9
call fcn.00471551
mov dword [0x552554], eax
push edi
call fcn.0047163a
cmp dword [0x552554], ebx
pop ecx
jne 0x41ec1c
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
call fcn.004b651e
pop ecx
jmp 0x41ecca
push 0xc
lea eax, [edi + 4]
push ebx
push eax
mov dword [edi], ebx
call fcn.004b7880
mov eax, dword [ebp + 8]
mov dword [edi + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x14], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [edi + 0x18], eax
push 0x40
lea eax, [edi + 0x24]
pop ecx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
call fcn.0047ebe1
push dword [ebp - 0x10c]
mov ecx, 0x104
lea eax, [ebp - 0x108]
call fcn.0047ebe1
mov esi, eax
call fcn.0047eede
mov eax, esi
push eax
push 0x40
lea eax, [edi + 0x64]
pop ecx
call fcn.0047ebe1
mov eax, dword [ebp + 0x18]
add esp, 0x18
mov dword [edi + 0xa4], eax
mov dword [edi + 0xb0], ebx
call fcn.004a6bcb
mov dword [edi + 0xb4], eax
lea eax, [edi + 0xb8]
call fcn.0047eb32
push ebx
push ebx
push edi
push 0x41eb49
push dword [ebp + 8]
mov dword [edi + 0xac], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [edi + 0xa8], eax
jne 0x41eccc
mov eax, edi
call fcn.0041eb03
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b7140
leave
ret 0x14

Function at 0x41ecdd
Capabilities:
Terminate thread

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [0x552554]
push edi
xor ebx, ebx
call fcn.004718f5
xor edi, edi
jmp 0x41ed12
cmp edi, 0x56ce
jge 0x41ed1a
cmp ebp, dword [eax + 0xa8]
je 0x41ed18
mov esi, dword [0x552554]
call fcn.00471956
inc edi
test eax, eax
jne 0x41ecf6
jmp 0x41ed1a
mov ebx, eax
mov eax, ebx
call fcn.0041eb03
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x42281c
Capabilities:
Log keystrokes via polling

Disassembly:
push dword [esp + 4]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx eax, ax
movzx eax, ax
shr eax, 0xf
ret