joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418c50
Capabilities:
Link many functions at runtime

Disassembly:
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x418d20
push str.mapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [edi], eax
test eax, eax
je 0x418d27
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MAPIInitialize
push eax
call esi
push str.MAPILogonEx
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.MAPIUninitialize
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.MAPIAllocateBuffer
push dword [edi]
mov dword [edi + 0xc], eax
call esi
push str.MAPIAllocateMore
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.MAPIFreeBuffer
push dword [edi]
mov dword [edi + 0x14], eax
call esi
push str.MAPIAdminProfiles
push dword [edi]
mov dword [edi + 0x18], eax
call esi
push str.RTFSync
push dword [edi]
mov dword [edi + 0x1c], eax
call esi
push str.WrapCompressedRTFStream
push dword [edi]
mov dword [edi + 0x28], eax
call esi
push str.HrGetOneProp_12
push dword [edi]
mov dword [edi + 0x30], eax
call esi
push str.HrSetOneProp_8
push dword [edi]
mov dword [edi + 0x20], eax
call esi
push str.HrQueryAllRows_24
push dword [edi]
mov dword [edi + 0x24], eax
call esi
push str.FreeProws_4
push dword [edi]
mov dword [edi + 0x2c], eax
call esi
push str.UlRelease_4
push dword [edi]
mov dword [edi + 0x34], eax
call esi
mov dword [edi + 0x38], eax
pop esi
mov eax, 1
pop edi
ret
xor eax, eax
pop edi
ret

Function at 0x41c130
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4b0408]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x104]
push 0x100
push 0
push eax
call fcn.00431580
add esp, 0xc
mov byte [esi], 0
lea eax, [ebp - 0x108]
mov dword [ebp - 0x108], 0x80
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push esi
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042bd08
mov esp, ebp
pop ebp
ret
Function at 0x41c210
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4b0408]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push 0x49fabc
call fcn.0041ab20
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41c2e3
push 0x104
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00431580
add esp, 0xc
mov dword [ebp - 0x110], 0x104
lea eax, [ebp - 0x110]
mov dword [ebp - 0x114], 1
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push str.ProductID
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41c2d7
lea eax, [ebp - 0x108]
mov ecx, esi
push eax
call fcn.0041ab20
push 0x49fabc
push 0x4745c8
mov ecx, esi
call fcn.0041bbb0
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042bd08
mov esp, ebp
pop ebp
ret
Function at 0x41c670
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor eax, eax
cmp word [ebp - 0x24], 9
sete al
mov esp, ebp
pop ebp
ret

Function at 0x41c690
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4b0408]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x110], ebx
test edi, edi
je 0x41c7d5
cmp byte [edi], 0
je 0x41c7d5
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x108]
push eax
push 0xf003f
push 0
push edi
push ebx
call esi
cmp dword [ebp + 0x10], 0
je 0x41c6f7
test eax, eax
je 0x41c6ff
lea eax, [ebp - 0x108]
push eax
push 0xf013f
push 0
push edi
push ebx
call esi
test eax, eax
jne 0x41c7a5
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [ebp - 0x118]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0x100
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push dword [ebp - 0x108]
call ebx
test eax, eax
jne 0x41c78c
nop dword [eax + eax]
push 0
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x108]
call fcn.0041c690
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x41c7b6
lea eax, [ebp - 0x118]
mov dword [ebp - 0x10c], 0x100
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
push eax
push esi
push dword [ebp - 0x108]
call ebx
test eax, eax
je 0x41c740
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bd08
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bd08
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x32
pop edi
xor ecx, ebp
pop ebx
call fcn.0042bd08
mov esp, ebp
pop ebp
ret
Function at 0x41c7f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4b0408]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x110]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push eax
mov dword [ebp - 0x114], edi
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x41c939
lea eax, [ebp - 0x10c]
push eax
push 2
push edi
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x41c8b5
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x10c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
js 0x41c8a3
lea eax, [ebp - 0x108]
push eax
call fcn.0041a7a0
mov edx, ebx
add esp, 4
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x41c866
lea edi, [ebp - 0x108]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41c876
mov ecx, edx
lea eax, [ebp - 0x108]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.0041c950
mov edi, dword [ebp - 0x114]
add esp, 4
mov esi, eax
mov ecx, dword [ebp - 0x110]
push dword [ebp - 0x10c]
push ecx
mov edx, dword [ecx]
call dword [edx + 0x14]
lea eax, [ebp - 0x10c]
push eax
push 0x17
push edi
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x41c939
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x10c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
js 0x41c927
lea eax, [ebp - 0x108]
push eax
call fcn.0041a7a0
add esp, 4
mov esi, ebx
mov al, byte [ebx]
inc ebx
test al, al
jne 0x41c8f0
lea edi, [ebp - 0x108]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41c900
mov ecx, ebx
lea eax, [ebp - 0x108]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.0041c950
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x110]
push dword [ebp - 0x10c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042bd08
mov esp, ebp
pop ebp
ret
Function at 0x41cb90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46dca8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x4b0408]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x4b1704], 0
mov edi, dword [ebp + 8]
jne 0x41cce8
cmp dword [0x4b1700], 0
jne 0x41cce8
lea eax, [ebp - 0x71]
mov byte [ebp - 0x71], 0x30
push eax
push 0x104
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
call fcn.0041cd70
mov dword [ebp - 4], 0
push 0x104
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push dword [ebp - 0x80]
lea ecx, [ebp - 0x28]
call fcn.0040cd80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
push 0xc
push str.wsock32.dll
call fcn.00402c70
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.00403680
mov byte [ebp - 4], 2
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x70]
call fcn.00409270
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.00401470
push 0x4b1708
push 0x4b1710
push 0x4b1700
lea ecx, [ebp - 0x70]
call fcn.00409400
push edi
lea ecx, [ebp - 0x58]
call fcn.00409270
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x58]
push 0x4b1708
push 0x4b1710
push 0x4b1708
call fcn.004092e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.004070d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.004070d0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x41ccc7
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00401800
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00401660
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042bd08
mov esp, ebp
pop ebp
ret
Function at 0x41ebb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4b0408]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x4b1ab4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10c], eax
je 0x41ebf2
push 0x104
push 0x4b19b0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x4b19b0
call fcn.0041a7a0
add esp, 4
cmp byte [0x4b19b0], 0
jne 0x41ed01
push 0x104
push 0x4b19b0
push dword [0x4b2e68]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push 0x4b19b0
call fcn.004324f0
add esp, 8
test eax, eax
je 0x41ec2b
mov byte [eax], 0
push 0x4b19b0
call fcn.0041a7a0
add esp, 4
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ecx + 0x4b19b0]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x109], al
test al, al
jne 0x41ec40
push esi
mov edx, str.msocxushell.dll
push edi
mov esi, edx
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x41ec60
lea edi, [ebp - 0x108]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41ec70
mov ecx, edx
lea eax, [ebp - 0x108]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.0041c0c0
add esp, 4
pop edi
pop esi
test eax, eax
jne 0x41eca2
mov byte [0x4b19b0], al
jmp 0x41ecab
cmp byte [0x4b19b0], 0
jne 0x41ed01
push 0
push 1
push 0x104
push 0x4b19b0
call fcn.0041e860
add esp, 0x10
test eax, eax
je 0x41ecdb
push 0x5c
push 0x4b19b0
call fcn.004324f0
add esp, 8
test eax, eax
je 0x41ecdb
mov byte [eax], 0
cmp byte [0x4b19b0], 0
jne 0x41ed01
push 0x104
push 0x4b19b0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x4b19b0
call fcn.0041a7a0
add esp, 4
push dword [ebp + 0xc]
push 0x4b19b0
push dword [ebp - 0x10c]
call fcn.0043f7d0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
call fcn.0042bd08
mov esp, ebp
pop ebp
ret
Function at 0x420f80
Capabilities:
Get common file path
Get hostname
Get session user name
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46e5b0
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x4b0408]
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 esi, dword [ebp + 8]
mov dword [ebp - 4], 0
mov byte [ebp - 0x320], 0
call fcn.0041c670
push 0x104
test eax, eax
lea eax, [ebp - 0x320]
push eax
je 0x420fdf
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryA]
jmp 0x420fe5
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov byte [ebp - 0x118], 0
mov dword [ebp - 0x428], 0x104
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
cmp byte [ebp - 0x118], 0
jne 0x421029
mov eax, dword [str.Unknown]
mov dword [ebp - 0x118], eax
mov eax, dword [0x481714]
mov dword [ebp - 0x114], eax
mov byte [ebp - 0x21c], 0
mov dword [ebp - 0x428], 0x104
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
cmp byte [ebp - 0x21c], 0
jne 0x42106d
mov eax, dword [str.Default]
mov dword [ebp - 0x21c], eax
mov eax, dword [0x474578]
mov dword [ebp - 0x218], eax
mov ecx, esi
call fcn.0041ba50
lea eax, [ebp - 0x320]
push eax
push str._systemroot_
mov ecx, esi
call fcn.0041bbb0
push 0x104
push 0
lea eax, [ebp - 0x424]
push eax
call fcn.00431580
add esp, 0xc
push 0x104
lea eax, [ebp - 0x424]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x424]
push eax
mov ecx, esi
call fcn.0041ab20
mov dword [ebp - 4], 0xffffffff
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.0042bd08
mov esp, ebp
pop ebp
ret
Function at 0x423b00
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46e830
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4b0408]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], 0
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x423c2f
cmp dword [ebp + 0xc], 0
je 0x423c2f
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
push str.secur32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
je 0x423b8c
push str.GetUserNameExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x423b8c
lea ecx, [ebp + 0xc]
push ecx
push ebx
push 2
call eax
movzx edi, al
mov dword [ebp - 0x14], edi
test al, al
jne 0x423b9c
lea eax, [ebp + 0xc]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov edi, eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0xffffffff
jmp 0x423bc9
mov dword [ebp - 4], 2
test esi, esi
je 0x423bdb
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
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 8
Function at 0x428a30
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ef90
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4b0408]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], 0
mov eax, dword [esi]
test eax, eax
je 0x428a73
push 1
push eax
call fcn.0042c076
add esp, 8
mov eax, dword [esi + 4]
test eax, eax
je 0x428a85
push 1
push eax
call fcn.0042c076
add esp, 8
mov eax, dword [esi + 8]
test eax, eax
je 0x428a97
push 1
push eax
call fcn.0042c076
add esp, 8
mov eax, dword [esi + 0xc]
test eax, eax
je 0x428aa9
push 1
push eax
call fcn.0042c076
add esp, 8
mov eax, dword [esi + 0x10]
test eax, eax
je 0x428abb
push 1
push eax
call fcn.0042c076
add esp, 8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x428acd
push 1
push eax
call fcn.0042c076
add esp, 8
mov eax, dword [esi + 0x18]
test eax, eax
je 0x428adf
push 1
push eax
call fcn.0042c076
add esp, 8
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x428af1
push 1
push eax
call fcn.0042c076
add esp, 8
mov eax, dword [esi + 0x20]
test eax, eax
je 0x428b03
push 1
push eax
call fcn.0042c076
add esp, 8
mov eax, dword [esi + 0x24]
test eax, eax
je 0x428b15
push 1
push eax
call fcn.0042c076
add esp, 8
mov eax, dword [esi + 0x28]
test eax, eax
je 0x428b27
push 1
push eax
call fcn.0042c076
add esp, 8
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x428b39
push 1
push eax
call fcn.0042c076
add esp, 8
mov eax, dword [esi + 0x30]
test eax, eax
je 0x428b4b
push 1
push eax
call fcn.0042c076
add esp, 8
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [ebp - 4], 0xffffffff
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 0x449f79
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00449df6
Function at 0x453164
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
mov edx, dword [ebp + 0xc]
push ebx
sar ecx, 6
push esi
push edi
imul edi, eax, 0x30
mov eax, dword [ecx*4 + 0x4b2a80]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4531a5
cmp byte [edx], 0xa
jne 0x4531a5
or byte [eax + edi + 0x28], 4
jmp 0x4531aa
and byte [eax + edi + 0x28], 0xfb
lea eax, [edx + ecx]
mov ebx, edx
mov dword [ebp - 8], eax
mov esi, edx
cmp edx, eax
jae 0x45329b
mov al, byte [ebx]
cmp al, 0x1a
je 0x45327c
cmp al, 0xd
je 0x4531d3
mov byte [esi], al
inc esi
inc ebx
jmp 0x453271
lea eax, [ebx + 1]
cmp eax, dword [ebp - 8]
jae 0x4531f3
cmp byte [eax], 0xa
jne 0x4531e8
push 2
mov byte [esi], 0xa
pop eax
jmp 0x4531ee
xor eax, eax
mov byte [esi], 0xd
inc eax
add ebx, eax
inc esi
jmp 0x453271
push 0
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45326a
cmp dword [ebp - 0x14], 0
je 0x45326a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4b2a80]
test byte [eax + edi + 0x28], 0x48
je 0x453241
mov dl, byte [ebp - 1]
cmp dl, 0xa
jne 0x453231
mov byte [esi], dl
jmp 0x45326d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4b2a80]
mov byte [eax + edi + 0x2a], dl
jmp 0x45326d
cmp byte [ebp - 1], 0xa
jne 0x453253
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x453253
mov byte [esi], 0xa
jmp 0x4531f0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004545d8
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x45326e
mov byte [esi], 0xd
inc esi
mov edx, dword [ebp + 0xc]
cmp ebx, dword [ebp - 8]
jb 0x4531bc
jmp 0x45329b
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4b2a80]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x453296
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x45329b
mov cl, byte [ebx]
mov byte [esi], cl
inc esi
sub esi, edx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4532a6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
sar ecx, 6
imul edi, eax, 0x30
mov dword [ebp - 8], ecx
push 0xa
mov eax, dword [ecx*4 + 0x4b2a80]
pop ebx
mov edx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
test esi, esi
je 0x4532ea
cmp word [edx], bx
jne 0x4532ea
or byte [edi + eax + 0x28], 4
jmp 0x4532ef
and byte [edi + eax + 0x28], 0xfb
lea eax, [edx + esi*2]
mov ebx, edx
mov dword [ebp - 0xc], eax
mov esi, edx
cmp edx, eax
jae 0x453443
mov dword [ebp - 0x10], 0xd
movzx eax, word [ebx]
cmp eax, 0x1a
je 0x453423
cmp ax, word [ebp - 0x10]
je 0x453328
mov word [esi], ax
add esi, 2
add ebx, 2
jmp 0x453418
lea eax, [ebx + 2]
cmp eax, dword [ebp - 0xc]
jae 0x45334e
push 0xa
pop ecx
cmp word [eax], cx
jne 0x45333e
push ecx
pop eax
push 4
jmp 0x453343
push 0xd
pop eax
push 2
mov word [esi], ax
pop eax
add ebx, eax
jmp 0x453412
push 0
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x453409
cmp dword [ebp - 0x18], 0
je 0x453409
mov ecx, dword [ebp - 8]
push 0xa
mov eax, dword [ecx*4 + 0x4b2a80]
test byte [edi + eax + 0x28], 0x48
pop eax
je 0x4533d5
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x453399
mov word [esi], ax
jmp 0x4533cd
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ecx*4 + 0x4b2a80]
mov word [ebp - 0x20], dx
push 0xa
mov byte [edi + eax + 0x2a], dl
mov ecx, dword [ecx*4 + 0x4b2a80]
mov al, byte [ebp - 0x1f]
pop edx
mov byte [edi + ecx + 0x2b], al
mov ecx, dword [ebp - 8]
mov eax, dword [ecx*4 + 0x4b2a80]
mov byte [edi + eax + 0x2c], dl
mov edx, dword [ebp + 0xc]
add esi, 2
jmp 0x453418
cmp word [ebp - 4], ax
jne 0x4533ea
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x4533ea
mov word [esi], ax
add esi, 2
jmp 0x453418
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004545d8
mov edx, dword [ebp + 0xc]
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x453415
jmp 0x45340c
mov edx, dword [ebp + 0xc]
push 0xd
pop eax
mov word [esi], ax
add esi, 2
mov ecx, dword [ebp - 8]
cmp ebx, dword [ebp - 0xc]
jb 0x453308
jmp 0x453443
mov ecx, dword [ecx*4 + 0x4b2a80]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x45343a
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x453443
mov cx, word [ebx]
mov word [esi], cx
add esi, 2
sub esi, edx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4563a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46fde8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4b0408]
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 ebx, dword [ebp + 8]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], 0
or esi, 0xffffffff
mov dword [ebp - 0x30], esi
mov ecx, 0x4b2d9c
call fcn.00412ca0
mov dword [ebp - 4], 0
xor edi, edi
mov dword [ebp - 0x3c], edi
cmp edi, 0x32
jge 0x456430
cmp esi, 0xffffffff
jne 0x456439
test edi, edi
jle 0x45640d
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
mov dword [ebp - 0x3c], edi
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push ebx
call fcn.004566f0
mov esi, eax
mov dword [ebp - 0x30], esi
jmp 0x4563f7
cmp esi, 0xffffffff
je 0x4564e6
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor edi, edi
mov dword [ebp - 0x40], edi
cmp edi, 0xa
jae 0x456479
mov eax, dword [ebx + 0x104]
push 0
lea ecx, [ebp - 0x44]
push ecx
push dword [eax - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4564c5
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [ebp - 0x34], 1
cmp dword [ebp + 0xc], 0
je 0x456486
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], 1
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00403610
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c]
push eax
call fcn.0041cb90
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00401470
mov dword [ebp - 4], 0
jmp 0x4564e6
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
jmp 0x456448
push 0x104
push 0
push ebx
call fcn.00431580
add esp, 0xc
lea ecx, [ebx + 0x104]
call fcn.0041af30
lea ecx, [ebx + 0x108]
call fcn.0041af30
mov ecx, 0x4b2d9c
call fcn.004131a0
mov edi, eax
test edi, edi
je 0x45654d
push edi
mov ecx, 0x4b2d9c
call fcn.00413250
mov dword [ebp - 0x38], eax
mov ecx, edi
call fcn.00413190
test eax, eax
je 0x456563
mov ecx, edi
call fcn.00413190
cmp ebx, eax
jne 0x456563
push 0
push edi
mov ecx, 0x4b2d9c
call fcn.00413490
test ebx, ebx
je 0x45655a
push 1
mov ecx, ebx
call fcn.00456320
mov dword [ebp - 4], 0xffffffff
jmp 0x456589
mov edi, dword [ebp - 0x38]
jmp 0x456518
mov ecx, 0x4b2d9c
call fcn.00413420
cmp esi, 0xffffffff
je 0x45659f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x34]
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.0042bd08
mov esp, ebp
pop ebp
ret