joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455dbc
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x455f67
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x455f48
mov dl, 1
mov eax, dword [0x417ddc]
call fcn.00403d50
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404af4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x455f37
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00443844
test al, al
je 0x455f2a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x455f78
lea eax, [ebp - 0x254]
call fcn.0040ad0c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x455f2a
xor eax, eax
push ebp
push 0x455f23
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x455fb0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x455f0c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404d64
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x455f0c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404d64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455f2a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x455e2d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041ba3c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455f6e
lea eax, [ebp - 0x260]
call fcn.00404af4
ret

Function at 0x4568b0
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x45fbb4]
cmp byte [eax + 0xa5], 0
jne 0x456921
cmp dword [0x45fbcc], 0
jne 0x4568e2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45686c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45fbcc], eax
cmp dword [0x45fbc8], 0
jne 0x4568fd
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45fbc8], eax
cmp dword [0x45fbd0], 0
jne 0x456921
push esp
push 0
push 0
push 0x456810
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x45fbd0], eax
pop edx
ret
Function at 0x456fb4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45fbb4]
cmp dword [eax + 0x30], 0
je 0x45705e
cmp dword [ebx + 0x94], 0
jne 0x457058
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x456f44
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x457058
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45701e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x457058
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00419d28
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45702d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x457bbc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x457bf1
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404be4
jmp 0x457bfe
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404b48
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x458da0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x458de1
mov eax, esi
call fcn.0043f008
test al, al
je 0x458de1
mov eax, dword [ebx + 0x84]
call fcn.0043ed04
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x458de1
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043ed04
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45aa8c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, ecx
push esp
push edx
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov edx, ebx
lea eax, [esp + 4]
call fcn.0040a88c
add esp, 0x10c
pop ebx
ret
Function at 0x45aac0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404fa4
xor eax, eax
push ebp
push 0x45acb9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00404b48
lea ecx, [ebp - 0x11c]
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0042d074
mov eax, dword [ebp - 0x11c]
mov edx, 0x45acd0
call fcn.00404f00
jne 0x45ac6c
mov ecx, 2
mov edx, dword [ebp - 4]
mov eax, 0x45acd0
call fcn.0042d0e4
test eax, eax
jle 0x45ac6c
mov eax, 0x18
mov edi, eax
test edi, edi
jl 0x45ac6c
inc edi
mov dword [ebp - 8], 0
mov ebx, 0x45df78
push 0x45acd0
push dword [ebx]
push 0x45acd0
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404e74
mov edx, dword [esi]
mov eax, dword [ebp - 0x10]
call fcn.0042d028
test al, al
je 0x45ac5f
mov eax, dword [ebp - 8]
sub eax, 1
jb 0x45abaa
je 0x45abcb
dec eax
je 0x45abec
jmp 0x45ac0d
push 0x105
lea eax, [ebp - 0x115]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x115]
call fcn.0040a88c
jmp 0x45ac1a
push 0x105
lea eax, [ebp - 0x115]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x115]
call fcn.0040a88c
jmp 0x45ac1a
lea eax, [ebp - 0x115]
push eax
push 0x105
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x115]
call fcn.0040a88c
jmp 0x45ac1a
lea ecx, [ebp - 0xc]
mov edx, dword [ebx + 4]
xor eax, eax
call fcn.0045aa8c
lea edx, [ebp - 0x120]
mov eax, dword [ebp - 0xc]
call fcn.0040e5cc
mov edx, dword [ebp - 0x120]
lea eax, [ebp - 0xc]
call fcn.00404b8c
mov al, byte [0x45acd4]
push eax
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.0040ed6c
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.00404b48
jmp 0x45ac6c
inc dword [ebp - 8]
add ebx, 8
dec edi
jne 0x45ab70
lea edx, [ebp - 0x128]
mov eax, dword [esi]
call fcn.0040a594
mov edx, dword [ebp - 0x128]
mov eax, esi
call fcn.00404b48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45acc0
lea eax, [ebp - 0x128]
mov edx, 4
call fcn.00404b18
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404b18
lea eax, [ebp - 4]
call fcn.00404af4
ret

Function at 0x45ad6c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push esp
push 0x105
call sub.kernel32.dll_GetTempPathA
mov edx, ebx
mov eax, esp
call fcn.0040a88c
add esp, 0x108
pop ebx
ret
Function at 0x45ad94
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45ae0f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0
push 0
lea eax, [ebp - 0x10c]
call fcn.0045ad6c
mov eax, dword [ebp - 0x10c]
call fcn.00404fb4
push eax
call sub.kernel32.dll_GetTempFileNameA
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_DeleteFileA
mov edx, ebx
lea eax, [ebp - 0x105]
call fcn.0040a88c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ae16
lea eax, [ebp - 0x10c]
call fcn.00404af4
ret

Function at 0x45b030
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
call fcn.0040a360
test al, al
je 0x45b069
push 0
mov eax, dword [ebp + 8]
call fcn.00404fb4
mov ebx, eax
push ebx
call sub.kernel32.dll_SetFileAttributesA
push ebx
call sub.kernel32.dll_DeleteFileA
xor eax, eax
push ebp
push 0x45b0e1
push dword fs:[eax]
mov dword fs:[eax], esp
push edi
mov eax, dword [ebp - 4]
call fcn.00404fb4
push eax
mov ecx, esi
mov dl, 1
mov eax, dword [0x418148]
call fcn.0041c3ec
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x45b0c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
call fcn.0041c1e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b0c8
lea eax, [ebp - 0xc]
call fcn.0040f4b0
ret
Function at 0x45b818
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
test dl, dl
je 0x45b835
add esp, 0xfffffff0
call fcn.004040a0
mov ebx, ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45b9e1
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00403d50
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.00409d24
cmp dword [ebp - 0x14], 0
je 0x45b9c3
mov eax, ebx
call fcn.0040a360
test al, al
jne 0x45b8c4
lea eax, [ebp - 0xc]
call fcn.0045ad94
xor eax, eax
push ebp
push 0x45b8b8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404fb4
mov esi, eax
push esi
call sub.wininet.dll_DeleteUrlCacheEntry
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404fb4
push eax
push esi
push 0
call sub.URLMON.DLL_URLDownloadToFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45b8ce
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.00404b8c
mov eax, dword [ebp - 0xc]
call fcn.0040a360
test al, al
je 0x45b9c3
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x42f6a8]
call fcn.0042f758
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x45b9ae
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x45b930
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov ecx, 0x45ba14
mov edx, 0x45ba24
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 8]
mov edx, dword [ebp - 4]
mov byte [edx + 0x30], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45b941
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x30]
sub al, 1
jb 0x45b94f
je 0x45b96e
jmp 0x45b988
push 0
push 0
mov ecx, 0x45ba24
mov edx, 0x45ba24
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0x20]
mov eax, dword [ebp - 4]
fstp qword [eax + 0x38]
wait
jmp 0x45b988
push 1
mov ecx, 0x45ba24
mov edx, 0x45ba24
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 8]
mov edx, dword [ebp - 4]
mov dword [edx + 0x40], eax
mov ecx, dword [ebp - 4]
mov edx, 0x45ba34
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0x48]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b9b5
lea eax, [ebp - 0x10]
call fcn.0040f4b0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b9e8
lea eax, [ebp - 0x14]
call fcn.00404af4
lea eax, [ebp - 0xc]
call fcn.00404af4
ret
Function at 0x40cc7d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4120a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004088d0
and dword [ebp - 0x14], 0
cmp dword [0x4139ec], 0
mov dword [ebp - 0x18], eax
jne 0x40cd30
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40cdd8
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40cdd8
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4139ec], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4139f0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4139f4], eax
call edi
push eax
call esi
mov dword [0x4139fc], eax
test eax, eax
je 0x40cd30
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4139f8], eax
mov eax, dword [0x4139f8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40cd89
cmp dword [0x4139fc], ecx
je 0x40cd89
push eax
call esi
push dword [0x4139fc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40cd89
test ebx, ebx
je 0x40cd89
call edi
test eax, eax
je 0x40cd80
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40cd80
test byte [ebp - 8], 1
jne 0x40cd89
or dword [ebp + 0x10], 0x200000
jmp 0x40cdbc
mov eax, dword [0x4139f0]
cmp eax, dword [ebp - 0x18]
je 0x40cdbc
push eax
call esi
test eax, eax
je 0x40cdbc
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40cdbc
mov eax, dword [0x4139f4]
cmp eax, dword [ebp - 0x18]
je 0x40cdbc
push eax
call esi
test eax, eax
je 0x40cdbc
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4139ec]
call esi
test eax, eax
je 0x40cdd8
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40cdda
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040556e
leave
ret
Function at 0x401000
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x38
push ebx
push ebp
push esi
mov esi, dword [esp + 0x48]
push edi
xor edi, edi
push 0x419084
push esi
mov dword [esp + 0x18], edi
mov dword [esi + 8], edi
call sym.mkss.exe_public:_static_int___cdecl_MSSTR::Copy_char___char_const__
add esp, 8
lea eax, [esi + 4]
mov dword [esp + 0x14], eax
push 0x419080
push eax
call sym.mkss.exe_public:_static_int___cdecl_MSSTR::Copy_char___char_const__
add esp, 8
lea ebx, [esi + 0xc]
push 0x41907c
push ebx
call sym.mkss.exe_public:_static_int___cdecl_MSSTR::Copy_char___char_const__
add esp, 8
lea ebp, [esi + 0x10]
push str.:_._
push ebp
call sym.mkss.exe_public:_static_int___cdecl_MSSTR::Copy_char___char_const__
add esp, 8
lea eax, [esi + 0x18]
mov dword [esi + 0x14], edi
mov dword [esp + 0x4c], eax
push 0x419084
push eax
call sym.mkss.exe_public:_static_int___cdecl_MSSTR::Copy_char___char_const__
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
add esp, 8
lea eax, [esp + 0x18]
push 0x10
push eax
push 3
push 0x400
call edi
test eax, eax
jne 0x401095
mov dword [esp + 0x10], 0xffffffff
jmp 0x4010a5
lea ecx, [esp + 0x18]
push ecx
call fcn.00401180
add esp, 4
mov dword [esi + 0x1c], eax
lea edx, [esp + 0x28]
push 0x20
push edx
push 0x21
push 0x400
call edi
test eax, eax
jne 0x4010c3
mov dword [esp + 0x10], 0xffffffff
jmp 0x4010d3
lea eax, [esp + 0x28]
push eax
call sym.mkss.exe_public:_static_long_int___cdecl_MSSTR::Atol_char_const__
add esp, 4
mov dword [esi + 8], eax
push 4
push ebx
push 0x1d
push 0x400
call edi
test eax, eax
jne 0x4010ec
or ebx, 0xffffffff
mov dword [esp + 0x10], ebx
jmp 0x4010ef
or ebx, 0xffffffff
lea ecx, [esp + 0x28]
push 0x20
push ecx
push 0x23
push 0x400
call edi
test eax, eax
jne 0x401109
mov dword [esp + 0x10], ebx
jmp 0x401119
lea edx, [esp + 0x28]
push edx
call sym.mkss.exe_public:_static_long_int___cdecl_MSSTR::Atol_char_const__
add esp, 4
mov dword [esi + 0x14], eax
push 4
push ebp
push 0x1e
push 0x400
call edi
test eax, eax
jne 0x40112d
mov dword [esp + 0x10], ebx
push 4
push esi
push 0xf
push 0x400
call edi
test eax, eax
jne 0x401141
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x4c]
push 4
push eax
push 0xc
push 0x400
call edi
test eax, eax
jne 0x401159
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x14]
push 4
push ecx
push 0xe
push 0x400
call edi
test eax, eax
jne 0x401171
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
Function at 0x402050
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 8
lea eax, [esp]
push esi
push eax
push ecx
call fcn.004020d0
mov al, byte [esp + 0xf]
add esp, 8
xor ecx, ecx
cmp al, 0xc
jne 0x402072
xor al, al
cmp byte [esp + 0xa], cl
je 0x40207a
add al, 0xc
mov dl, byte [esp + 4]
mov dword [esp + 0x10], ecx
mov byte [esp + 0x13], dl
mov dl, byte [esp + 5]
mov byte [esp + 0x12], dl
mov dl, byte [esp + 6]
mov byte [esp + 0x11], dl
mov edx, dword [esp + 0x14]
mov byte [esp + 0x10], cl
mov esi, dword [esp + 0x10]
mov dword [esp + 0x10], ecx
mov dword [edx], esi
mov dl, byte [esp + 9]
mov byte [esp + 0x13], al
mov al, byte [esp + 8]
mov byte [esp + 0x12], al
mov eax, dword [esp + 0x18]
mov byte [esp + 0x11], dl
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
pop esi
mov dword [eax], ecx
add esp, 8
ret

Function at 0x403c60
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
push 0
push 0x419204
push esi
call ebx
test eax, eax
jne 0x403cc4
push 0xffffffffffffffff
call sym.mkss.exe_public:_static_int___cdecl_MSFS::MapERS_Errno_int_
add esp, 4
mov edi, eax
push esi
call sym.mkss.exe_public:_static_int___cdecl_MSFS::Exist_char_const__
add esp, 4
test eax, eax
jne 0x403cf8
push esi
push 0x13a5
call sym.mkss.exe_public:_static_int___cdecl_MSERR::Error_int_
add esp, 8
cmp eax, 1
jne 0x403cf8
push esi
call sym.mkss.exe_public:_static_int___cdecl_MSFS::CreateDir_char_const__
add esp, 4
test eax, eax
jl 0x403cfe
push esi
push 0
push 0x419204
push esi
call ebx
test eax, eax
je 0x403c7c
push 0
push 0x20
push 3
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x403cee
push eax
call sym.mkss.exe_public:_static_int___cdecl_MSFS::MapERS_Errno_int_
add esp, 4
pop edi
pop esi
pop ebx
ret
push esi
push edi
call fcn.00406a20
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
ret
push eax
call sym.mkss.exe_public:_static_int___cdecl_MSERR::Error_int_
add esp, 4
pop edi
pop esi
pop ebx
ret

Function at 0x403d10
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x403d2b
push eax
call sym.mkss.exe_public:_static_int___cdecl_MSFS::MapERS_Errno_int_
add esp, 4
ret
Function at 0x403fc0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
call sym.mkss.exe_public:_static_void___cdecl_MSOS::DoYield_void_
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x10]
push 0
push eax
push esi
push edi
push ebx
mov dword [esp + 0x24], 0
call ebp
test eax, eax
jne 0x404043
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x404033
cmp eax, 0xf0
je 0x404013
cmp eax, 0x3b
je 0x404013
cmp eax, 0x36
jne 0x404033
lea ecx, [esp + 0x10]
push 0
push ecx
push esi
push edi
push ebx
call ebp
test eax, eax
jne 0x404043
push 0xffffffffffffffff
call sym.mkss.exe_public:_static_int___cdecl_MSFS::MapERS_Errno_int_
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0xffffffffffffffff
call sym.mkss.exe_public:_static_int___cdecl_MSFS::MapERS_Errno_int_
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4040b0
Capabilities:
Write file on windows

Disassembly:
push ecx
call sym.mkss.exe_public:_static_void___cdecl_MSOS::DoYield_void_
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4040c0
pop ecx
ret
mov edx, dword [esp + 0xc]
lea ecx, [esp]
push 0
push ecx
push eax
mov eax, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4040e8
push 0xffffffffffffffff
call sym.mkss.exe_public:_static_int___cdecl_MSFS::MapERS_Errno_int_
add esp, 4
pop ecx
ret
mov eax, dword [esp]
pop ecx
ret

Function at 0x4042e0
Capabilities:
Create directory

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
test esi, esi
jne 0x4042ff
mov eax, 0xffffd846
pop esi
add esp, 0x104
ret
push esi
call sym.mkss.exe_public:_static_int___cdecl_MSSTR::Len_char_const__
add esp, 4
cmp eax, 0x103
jle 0x40431c
mov eax, 0xffffd845
pop esi
add esp, 0x104
ret
lea eax, [esp + 4]
push esi
push eax
call sym.mkss.exe_public:_static_int___cdecl_MSSTR::Copy_char___char_const__
add esp, 8
lea ecx, [esp + 4]
push ecx
call sym.mkss.exe_public:_static_void___cdecl_MSFS::StripSlash_char__
add esp, 4
lea edx, [esp + 4]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40435a
push 0xffffffffffffffff
call sym.mkss.exe_public:_static_int___cdecl_MSFS::MapERS_Errno_int_
add esp, 4
pop esi
add esp, 0x104
ret
xor eax, eax
pop esi
add esp, 0x104
ret

Function at 0x404500
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40451a
push 0xffffffffffffffff
call sym.mkss.exe_public:_static_int___cdecl_MSFS::MapERS_Errno_int_
add esp, 4
ret
xor eax, eax
ret