joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422400
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d725
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4c3408]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0x14
lea ecx, [esi + 0x98]
call fcn.00420920
mov byte [ebp - 4], 0x13
lea ecx, [esi + 0x84]
call fcn.00420920
mov byte [ebp - 4], 0x12
lea ecx, [esi + 0x70]
call fcn.00420920
mov byte [ebp - 4], 0x11
lea ecx, [esi + 0x5c]
call fcn.00420920
mov byte [ebp - 4], 0x10
lea ecx, [esi + 0x44]
call fcn.00428b70
mov byte [ebp - 4], 0xf
lea ecx, [esi + 0x40]
call fcn.00428b70
mov byte [ebp - 4], 0xe
lea ecx, [esi + 0x3c]
call fcn.00428b70
mov byte [ebp - 4], 0xd
lea ecx, [esi + 0x38]
call fcn.00428b70
mov byte [ebp - 4], 0xc
lea ecx, [esi + 0x34]
call fcn.00428b70
mov byte [ebp - 4], 0xb
lea ecx, [esi + 0x30]
call fcn.00428b70
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x2c]
call fcn.00428b70
mov byte [ebp - 4], 9
lea ecx, [esi + 0x28]
call fcn.00428b70
mov byte [ebp - 4], 8
lea ecx, [esi + 0x24]
call fcn.00428b70
mov byte [ebp - 4], 7
lea ecx, [esi + 0x20]
call fcn.00428b70
mov byte [ebp - 4], 6
lea ecx, [esi + 0x1c]
call fcn.00428b70
mov byte [ebp - 4], 5
lea ecx, [esi + 0x18]
call fcn.00428b70
mov byte [ebp - 4], 4
lea ecx, [esi + 0x14]
call fcn.00428b70
mov byte [ebp - 4], 3
lea ecx, [esi + 0x10]
call fcn.00428b70
mov byte [ebp - 4], 2
lea ecx, [esi + 0xc]
call fcn.00428b70
mov byte [ebp - 4], 1
lea ecx, [esi + 8]
call fcn.00428b70
mov byte [ebp - 4], 0
lea ecx, [esi + 4]
call fcn.00428b70
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00428b70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x426d50
Capabilities:
Link many functions at runtime

Disassembly:
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x426e20
push str.mapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [edi], eax
test eax, eax
je 0x426e27
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 0x42a230
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4c3408]
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.0043f7e0
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.00439f38
mov esp, ebp
pop ebp
ret
Function at 0x42a310
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4c3408]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push 0x4b063c
call fcn.00428c20
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 0x42a3e3
push 0x104
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0043f7e0
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 0x42a3d7
lea eax, [ebp - 0x108]
mov ecx, esi
push eax
call fcn.00428c20
push 0x4b063c
push 0x4845e0
mov ecx, esi
call fcn.00429cb0
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00439f38
mov esp, ebp
pop ebp
ret
Function at 0x42a770
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 0x42a790
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4c3408]
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 0x42a8d5
cmp byte [edi], 0
je 0x42a8d5
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 0x42a7f7
test eax, eax
je 0x42a7ff
lea eax, [ebp - 0x108]
push eax
push 0xf013f
push 0
push edi
push ebx
call esi
test eax, eax
jne 0x42a8a5
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 0x42a88c
nop dword [eax + eax]
push 0
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x108]
call fcn.0042a790
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x42a8b6
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 0x42a840
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.00439f38
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.00439f38
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x32
pop edi
xor ecx, ebp
pop ebx
call fcn.00439f38
mov esp, ebp
pop ebp
ret
Function at 0x42a8f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4c3408]
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 0x42aa39
lea eax, [ebp - 0x10c]
push eax
push 2
push edi
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x42a9b5
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x10c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
js 0x42a9a3
lea eax, [ebp - 0x108]
push eax
call fcn.004288a0
mov edx, ebx
add esp, 4
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x42a966
lea edi, [ebp - 0x108]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x42a976
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.0042aa50
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 0x42aa39
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x10c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
js 0x42aa27
lea eax, [ebp - 0x108]
push eax
call fcn.004288a0
add esp, 4
mov esi, ebx
mov al, byte [ebx]
inc ebx
test al, al
jne 0x42a9f0
lea edi, [ebp - 0x108]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x42aa00
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.0042aa50
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.00439f38
mov esp, ebp
pop ebp
ret
Function at 0x42ac90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e378
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x4c3408]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x4c4844], 0
mov edi, dword [ebp + 8]
jne 0x42ade8
cmp dword [0x4c4840], 0
jne 0x42ade8
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.0042ae70
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.004180e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
push 0xc
push str.wsock32.dll
call fcn.00402d10
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.00403790
mov byte [ebp - 4], 2
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x70]
call fcn.00409c60
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.004014b0
push 0x4c4848
push 0x4c4850
push 0x4c4840
lea ecx, [ebp - 0x70]
call fcn.00409df0
push edi
lea ecx, [ebp - 0x58]
call fcn.00409c60
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x58]
push 0x4c4848
push 0x4c4850
push 0x4c4848
call fcn.00409cd0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.00407890
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.00407890
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x42adc7
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00401820
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.004016f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00439f38
mov esp, ebp
pop ebp
ret
Function at 0x42d2c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4c3408]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x4c4bf4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10c], eax
je 0x42d302
push 0x104
push 0x4c4af0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x4c4af0
call fcn.004288a0
add esp, 4
cmp byte [0x4c4af0], 0
jne 0x42d411
push 0x104
push 0x4c4af0
push dword [0x4c5fc0]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push 0x4c4af0
call fcn.00440750
add esp, 8
test eax, eax
je 0x42d33b
mov byte [eax], 0
push 0x4c4af0
call fcn.004288a0
add esp, 4
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ecx + 0x4c4af0]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x109], al
test al, al
jne 0x42d350
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 0x42d370
lea edi, [ebp - 0x108]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x42d380
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.0042a1c0
add esp, 4
pop edi
pop esi
test eax, eax
jne 0x42d3b2
mov byte [0x4c4af0], al
jmp 0x42d3bb
cmp byte [0x4c4af0], 0
jne 0x42d411
push 0
push 1
push 0x104
push 0x4c4af0
call fcn.0042cf30
add esp, 0x10
test eax, eax
je 0x42d3eb
push 0x5c
push 0x4c4af0
call fcn.00440750
add esp, 8
test eax, eax
je 0x42d3eb
mov byte [eax], 0
cmp byte [0x4c4af0], 0
jne 0x42d411
push 0x104
push 0x4c4af0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x4c4af0
call fcn.004288a0
add esp, 4
push dword [ebp + 0xc]
push 0x4c4af0
push dword [ebp - 0x10c]
call fcn.0044db60
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
call fcn.00439f38
mov esp, ebp
pop ebp
ret
Function at 0x42f680
Capabilities:
Get common file path
Get hostname
Get session user name
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ed70
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x4c3408]
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.0042a770
push 0x104
test eax, eax
lea eax, [ebp - 0x320]
push eax
je 0x42f6df
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryA]
jmp 0x42f6e5
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 0x42f729
mov eax, dword [str.Unknown]
mov dword [ebp - 0x118], eax
mov eax, dword [0x491bf8]
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 0x42f76d
mov eax, dword [str.Default]
mov dword [ebp - 0x21c], eax
mov eax, dword [0x484590]
mov dword [ebp - 0x218], eax
mov ecx, esi
call fcn.00429b50
lea eax, [ebp - 0x320]
push eax
push str._systemroot_
mov ecx, esi
call fcn.00429cb0
push 0x104
push 0
lea eax, [ebp - 0x424]
push eax
call fcn.0043f7e0
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.00428c20
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.00439f38
mov esp, ebp
pop ebp
ret
Function at 0x432150
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47eff0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4c3408]
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 0x43227f
cmp dword [ebp + 0xc], 0
je 0x43227f
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 0x4321dc
push str.GetUserNameExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4321dc
lea ecx, [ebp + 0xc]
push ecx
push ebx
push 2
call eax
movzx edi, al
mov dword [ebp - 0x14], edi
test al, al
jne 0x4321ec
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 0x432219
mov dword [ebp - 4], 2
test esi, esi
je 0x43222b
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 0x436dd0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47f710
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4c3408]
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 0x436e13
push 1
push eax
call fcn.0043a2c3
add esp, 8
mov eax, dword [esi + 4]
test eax, eax
je 0x436e25
push 1
push eax
call fcn.0043a2c3
add esp, 8
mov eax, dword [esi + 8]
test eax, eax
je 0x436e37
push 1
push eax
call fcn.0043a2c3
add esp, 8
mov eax, dword [esi + 0xc]
test eax, eax
je 0x436e49
push 1
push eax
call fcn.0043a2c3
add esp, 8
mov eax, dword [esi + 0x10]
test eax, eax
je 0x436e5b
push 1
push eax
call fcn.0043a2c3
add esp, 8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x436e6d
push 1
push eax
call fcn.0043a2c3
add esp, 8
mov eax, dword [esi + 0x18]
test eax, eax
je 0x436e7f
push 1
push eax
call fcn.0043a2c3
add esp, 8
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x436e91
push 1
push eax
call fcn.0043a2c3
add esp, 8
mov eax, dword [esi + 0x20]
test eax, eax
je 0x436ea3
push 1
push eax
call fcn.0043a2c3
add esp, 8
mov eax, dword [esi + 0x24]
test eax, eax
je 0x436eb5
push 1
push eax
call fcn.0043a2c3
add esp, 8
mov eax, dword [esi + 0x28]
test eax, eax
je 0x436ec7
push 1
push eax
call fcn.0043a2c3
add esp, 8
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x436ed9
push 1
push eax
call fcn.0043a2c3
add esp, 8
mov eax, dword [esi + 0x30]
test eax, eax
je 0x436eeb
push 1
push eax
call fcn.0043a2c3
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 0x4583f9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00458276
Function at 0x461573
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 + 0x4c5bc0]
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 0x4615b4
cmp byte [edx], 0xa
jne 0x4615b4
or byte [eax + edi + 0x28], 4
jmp 0x4615b9
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 0x4616aa
mov al, byte [ebx]
cmp al, 0x1a
je 0x46168b
cmp al, 0xd
je 0x4615e2
mov byte [esi], al
inc esi
inc ebx
jmp 0x461680
lea eax, [ebx + 1]
cmp eax, dword [ebp - 8]
jae 0x461602
cmp byte [eax], 0xa
jne 0x4615f7
push 2
mov byte [esi], 0xa
pop eax
jmp 0x4615fd
xor eax, eax
mov byte [esi], 0xd
inc eax
add ebx, eax
inc esi
jmp 0x461680
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 0x461679
cmp dword [ebp - 0x14], 0
je 0x461679
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4c5bc0]
test byte [eax + edi + 0x28], 0x48
je 0x461650
mov dl, byte [ebp - 1]
cmp dl, 0xa
jne 0x461640
mov byte [esi], dl
jmp 0x46167c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4c5bc0]
mov byte [eax + edi + 0x2a], dl
jmp 0x46167c
cmp byte [ebp - 1], 0xa
jne 0x461662
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x461662
mov byte [esi], 0xa
jmp 0x4615ff
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004629e8
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x46167d
mov byte [esi], 0xd
inc esi
mov edx, dword [ebp + 0xc]
cmp ebx, dword [ebp - 8]
jb 0x4615cb
jmp 0x4616aa
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4c5bc0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4616a5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4616aa
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 0x4616b5
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 + 0x4c5bc0]
pop ebx
mov edx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
test esi, esi
je 0x4616f9
cmp word [edx], bx
jne 0x4616f9
or byte [edi + eax + 0x28], 4
jmp 0x4616fe
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 0x461852
mov dword [ebp - 0x10], 0xd
movzx eax, word [ebx]
cmp eax, 0x1a
je 0x461832
cmp ax, word [ebp - 0x10]
je 0x461737
mov word [esi], ax
add esi, 2
add ebx, 2
jmp 0x461827
lea eax, [ebx + 2]
cmp eax, dword [ebp - 0xc]
jae 0x46175d
push 0xa
pop ecx
cmp word [eax], cx
jne 0x46174d
push ecx
pop eax
push 4
jmp 0x461752
push 0xd
pop eax
push 2
mov word [esi], ax
pop eax
add ebx, eax
jmp 0x461821
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 0x461818
cmp dword [ebp - 0x18], 0
je 0x461818
mov ecx, dword [ebp - 8]
push 0xa
mov eax, dword [ecx*4 + 0x4c5bc0]
test byte [edi + eax + 0x28], 0x48
pop eax
je 0x4617e4
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x4617a8
mov word [esi], ax
jmp 0x4617dc
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ecx*4 + 0x4c5bc0]
mov word [ebp - 0x20], dx
push 0xa
mov byte [edi + eax + 0x2a], dl
mov ecx, dword [ecx*4 + 0x4c5bc0]
mov al, byte [ebp - 0x1f]
pop edx
mov byte [edi + ecx + 0x2b], al
mov ecx, dword [ebp - 8]
mov eax, dword [ecx*4 + 0x4c5bc0]
mov byte [edi + eax + 0x2c], dl
mov edx, dword [ebp + 0xc]
add esi, 2
jmp 0x461827
cmp word [ebp - 4], ax
jne 0x4617f9
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x4617f9
mov word [esi], ax
add esi, 2
jmp 0x461827
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004629e8
mov edx, dword [ebp + 0xc]
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x461824
jmp 0x46181b
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 0x461717
jmp 0x461852
mov ecx, dword [ecx*4 + 0x4c5bc0]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x461849
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x461852
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