joyce8/EMBER2024-capa huggingface dataset:
Function at 0x438bd7
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x438c19
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00404244
mov eax, dword [ebp - 0x10]
call fcn.00438818
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x438b02
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00404738
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00438f68
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x438bd7
xor eax, eax
push ebp
push 0x438bd0
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00438988
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.00438c48
test al, al
je 0x438bae
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.0040429c
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x438bae
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404698
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x438ba8
mov eax, dword [ebp - 0x14]
call fcn.00404698
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.004043b4
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.00438ab0
dec ebx
cmp ebx, 0xffffffff
jne 0x438b61
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x438bd7
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00438988
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.00404698
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.00438974
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x438c20
lea eax, [ebp - 0x3c]
call fcn.004041ac
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004041d0
ret

Function at 0x438c48
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.00402d0c
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x4b4b10]
cmp byte [edx + 0xc], 0
je 0x438cac
mov edx, dword [0x4b4b00]
cmp dword [edx], 2
jne 0x438cac
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret
Function at 0x48a648
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x48a7cc
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, byte [ebx + 0x276]
sub al, 2
jb 0x48a7b1
cmp byte [ebx + 0x268], 0
je 0x48a7b1
mov eax, dword [ebp - 4]
call fcn.00490df4
mov word [ebp - 6], ax
xor eax, eax
push ebp
push 0x48a7aa
push dword fs:[eax]
mov dword fs:[eax], esp
mov ax, word [ebp - 6]
sub ax, 8
je 0x48a6ee
dec ax
je 0x48a6c4
sub ax, 0x12
jne 0x48a708
call fcn.00403bd4
jmp 0x48a7b1
cmp byte [ebx + 0x269], 0
je 0x48a790
mov eax, ebx
call fcn.00450110
test al, al
je 0x48a790
xor edx, edx
mov eax, ebx
call fcn.00450134
jmp 0x48a790
mov eax, dword [esi]
call fcn.00404b44
mov edx, eax
mov eax, esi
mov ecx, 1
call fcn.00404d2c
jmp 0x48a790
cmp byte [ebx + 0x269], 0
je 0x48a725
mov eax, ebx
call fcn.00450110
test al, al
jne 0x48a725
mov dl, 1
mov eax, ebx
call fcn.00450134
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp + 8]
sub eax, dword [edx]
cmp eax, 0x4e2
jb 0x48a73d
mov eax, esi
call fcn.004048e4
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp + 8]
mov dword [edx], eax
push 0
push 1
lea eax, [ebp - 0x10]
mov dx, word [ebp - 6]
call fcn.004049fc
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi]
lea eax, [ebp - 0xc]
call fcn.00404bb0
mov ecx, dword [ebp - 0xc]
mov edx, edi
mov eax, ebx
call fcn.0048a478
test al, al
je 0x48a790
lea eax, [ebp - 0x14]
mov dx, word [ebp - 6]
call fcn.004049fc
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.00404b50
mov word [ebp - 6], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48a7b1
mov eax, dword [ebp - 4]
mov dx, word [ebp - 6]
call fcn.00490e28
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48a7d3
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004048fc
ret

Function at 0x48e414
Capabilities:
Set global application hook

Disassembly:
mov eax, dword [0x4b4b00]
cmp dword [eax], 2
je 0x48e432
mov ecx, 0x30e
mov edx, 0x48e464
mov eax, 0x48e4b4
call fcn.00404108
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
push 0x48e3b4
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x4b5f98], eax
cmp dword [0x4b5f98], 0
jne 0x48e459
call fcn.0040ec30
ret

Function at 0x48e7b0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, dword [0x4b45e0]
cmp byte [eax], 0
jne 0x48e7de
mov ecx, 0xaf
mov edx, 0x48e82c
mov eax, 0x48e87c
call fcn.00404108
mov eax, ebx
call fcn.004048e4
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x48e81d
push 0x200
lea edx, [ebp - 0x202]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00404a9c
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4acdd0
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
mov byte [ebx + 0x45d], dl
mov byte [ebx + 0x45e], 0
cmp byte [ebx + 0x45d], 0
je 0x4ace61
mov eax, dword [0x4b49b8]
mov eax, dword [eax]
cmp byte [eax + 0x58], 0
je 0x4ace34
mov dl, 1
mov eax, ebx
call fcn.00473a60
mov byte [ebx + 0x45e], 1
xor edx, edx
mov eax, ebx
call fcn.00472968
mov dl, 1
mov eax, dword [ebx + 0x3bc]
call fcn.00433f78
mov dl, 1
mov eax, dword [ebx + 0x3b8]
call fcn.00497d30
xor edx, edx
mov eax, ebx
call fcn.004ae1b8
jmp 0x4acea6
mov eax, ebx
call fcn.0045f918
push eax
call sub.user32.dll_SetForegroundWindow
push 2
mov eax, ebx
call fcn.0045f918
push eax
call sub.user32.dll_ShowWindow
cmp byte [ebx + 0x57], 0
jne 0x4acea6
mov dl, 1
mov eax, ebx
call fcn.00472968
pop ebx
ret
xor edx, edx
mov eax, ebx
call fcn.00473a60
mov dl, 1
mov eax, ebx
call fcn.00472968
xor edx, edx
mov eax, dword [ebx + 0x3b8]
call fcn.00497d30
xor edx, edx
mov eax, dword [ebx + 0x3bc]
call fcn.00433f78
mov eax, dword [ebx + 0x470]
test eax, eax
je 0x4ace9e
mov dl, 1
call fcn.00472968
xor eax, eax
mov dword [ebx + 0x470], eax
pop ebx
ret
Function at 0x4b15c8
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, eax
xor ebx, ebx
push 0
call sub.kernel32.dll_SetLastError
push 0
push 0
mov edx, 1
mov eax, esi
call fcn.00499938
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x4b1636
push dword [ebp + 0xc]
push dword [ebp + 8]
xor edx, edx
mov eax, esi
call fcn.00499938
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x4b1636
push esi
call sub.kernel32.dll_SetEndOfFile
test eax, eax
je 0x4b1636
push dword [ebp - 4]
push dword [ebp - 8]
xor edx, edx
mov eax, esi
call fcn.00499938
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x4b1636
mov bl, 1
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x4b1f20
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x21c], ecx
mov edi, edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00404eec
xor eax, eax
push ebp
push 0x4b2032
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0x104
lea eax, [ebp - 0x212]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b34
push eax
mov eax, dword [0x4b4b04]
mov eax, dword [eax]
call eax
test eax, eax
je 0x4b200c
push 0x104
lea eax, [ebp - 0x212]
push eax
lea eax, [ebp - 0x212]
push eax
mov eax, dword [0x4b4744]
mov eax, dword [eax]
call eax
test eax, eax
je 0x4b200c
push 0
push 0
push 3
push 0
push 3
push 0
lea eax, [ebp - 0x21c]
lea edx, [ebp - 0x212]
mov ecx, 0x105
call fcn.00404a9c
mov eax, dword [ebp - 0x21c]
lea edx, [ebp - 0x218]
call fcn.00481d10
mov eax, dword [ebp - 0x218]
call fcn.00404b34
push eax
call sub.kernel32.dll_CreateFileW
mov esi, eax
cmp esi, 0xffffffff
je 0x4b200c
push 0
lea eax, [ebp - 8]
push eax
push 0xc
push edi
push 0
push 0
push 0x2d1080
push esi
call sub.kernel32.dll_DeviceIoControl
cmp eax, 1
sbb ebx, ebx
inc ebx
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b2039
lea eax, [ebp - 0x21c]
mov edx, 2
call fcn.004048fc
lea eax, [ebp - 4]
call fcn.004048e4
ret

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x763c50b1
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x13ed2627
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0xf4a60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0x11b010]
push edi
push 0x1249e8
call esi
push 0x1249e8
call esi
push 0x1249e8
call esi
push 0x1249e8
call esi
push 0x1249e8
call esi
mov edi, dword [ebp + 0x10]
lea eax, [edi + 1]
push eax
push 0
call 0xad0348
nop
push eax
nop
call 0x771ce026
mov ebx, eax
push 0x1249e8
mov dword [ebp - 4], ebx
call esi
push 0x1249e8
call esi
push 0x1249e8
call esi
push 0x1249e8
call esi
push 0x1249e8
call esi
push 0x1249e8
mov byte [ebx + edi], 0
call esi
push 0x1249e8
call esi
push 0x1249e8
call esi
push 0x1249e8
call esi
push 0x1249e8
call esi
xor edi, edi
cmp dword [ebp + 0x10], edi
jbe 0xf4b7a
mov eax, dword [ebp + 8]
sub eax, ebx
mov dword [ebp - 8], eax
push 0x1249e8
call esi
push 0x1249e8
call esi
push 0x1249e8
call esi
push 0x1249e8
call esi
push 0x1249e8
call esi
mov ecx, dword [ebp + 0xc]
push ecx
add ebx, edi
nop
call 0x765e43d3
mov ecx, eax
xor edx, edx
mov eax, edi
div ecx
mov eax, dword [ebp + 0xc]
add esp, 4
push 0x1249e8
mov cl, byte [edx + eax]
mov edx, dword [ebp - 8]
xor cl, byte [edx + ebx]
mov byte [ebx], cl
call esi
push 0x1249e8
call esi
push 0x1249e8
call esi
push 0x1249e8
call esi
push 0x1249e8
call esi
mov ebx, dword [ebp - 4]
inc edi
cmp edi, dword [ebp + 0x10]
jb 0xf4b06
push 0x1249e8
call esi
push 0x1249e8
call esi
push 0x1249e8
call esi
push 0x1249e8
call esi
push 0x1249e8
call esi
lea eax, [ebp - 0xc]
push eax
push 0x100
push 4
push ebx
mov dword [ebp - 0xc], 0
call 0xad034d
nop
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xf6ef0
Capabilities:
Parse pe header

Disassembly:
cmp dword [ebx + 4], 0x40
jb 0xf6f91
mov eax, dword [ebx]
push 0x40
push eax
push esi
nop
call 0x765d9910
mov ecx, 0x5a4d
add esp, 0xc
cmp word [esi], cx
jne 0xf6fc0
mov eax, dword [esi + 0x3c]
test eax, eax
je 0xf6fc0
lea edx, [eax + 0xf8]
cmp edx, dword [ebx + 4]
ja 0xf6f91
mov ecx, dword [ebx]
push edi
push pe_nt_image_headers32
add ecx, eax
push ecx
lea edi, [esi + 0x40]
push edi
call 0x765d9910
nop
add esp, 0xc
cmp dword [edi], 0x4550
pop edi
jne 0xf6fc0
mov edx, 0x10b
cmp word [esi + 0x58], dx
jne 0xf6fc0
movzx eax, word [esi + 0x46]
test ax, ax
je 0xf6fc0
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
add eax, eax
push eax
push 8
mov dword [esi + 0x140], eax
call dword [fcn.003290f4]
push eax
call dword [fcn.00329088]
mov dword [esi + 0x138], eax
test eax, eax
jne 0xf6f97
mov eax, 3
ret
mov eax, 1
ret
movzx ecx, word [esi + 0x54]
mov edx, dword [esi + 0x3c]
lea ecx, [ecx + edx + 0x18]
mov edx, dword [esi + 0x140]
push ebx
push edx
push ecx
push eax
mov dword [esi + 0x13c], ecx
call fcn.000f7590
add esp, 0x10
neg eax
sbb eax, eax
inc eax
ret
mov eax, 2
ret
Function at 0x5efaf0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [0x3290e0]
test esi, esi
jne 0x5efb08
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x5efb01
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi], 0x4550
jne 0x5efb01
mov eax, dword [eax + esi + 0x78]
mov ecx, dword [eax + esi + 0x1c]
add eax, esi
add ecx, esi
push ebx
mov ebx, dword [eax + 0x20]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 0x24]
mov eax, dword [eax + 0x18]
push edi
add ecx, esi
add ebx, esi
xor edi, edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x5efb6a
jmp 0x5efb50
mov eax, dword [ebx + edi*4]
mov ecx, dword [0x328bf0]
add eax, esi
call fcn.005ed610
test eax, eax
je 0x5efb73
inc edi
cmp edi, dword [ebp - 4]
jb 0x5efb50
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + edi*2]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + edx*4]
pop edi
pop ebx
add eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406624
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406787
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4698ec], 0
push esi
jne 0x4067be
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406798
mov dword [ecx*4 + 0x4698e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4698e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc

Function at 0x5f0bb5
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5f0bd0
add esi, 0x1000
lea eax, [ebp - 0x2bc]
push edx
push 0x1c
push eax
push esi
call dword [edx + 0x124b5df5]
pop edx
test eax, eax
je 0x5f0ca2
cmp dword [ebp - 0x2ac], 0x1000
jne 0x5f0c91
test dword [ebp - 0x2a8], 1
jne 0x5f0c91
and dword [ebp - 0x2a8], 0x100
jne 0x5f0c91
push esi
push edx
push 4
push esi
call dword [edx + 0x122d2d69]
pop edx
pop esi
test eax, eax
je 0x5f0c34
jmp 0x5f0c91
cmp word [esi], 0x5a4d
jne 0x5f0c91
mov eax, esi
push ebx
mov ebx, dword [esi + 0x3c]
add eax, ebx
pop ebx
cmp dword [eax], 0x4550
jne 0x5f0c91
lea eax, [ebp - 0x28c]
push edx
push 0x28a
push eax
push esi
call dword [edx + 0x122d2df5]
pop edx
test eax, eax
je 0x5f0c91
lea eax, [ebp - 0x28c]
push eax
call fcn.005f0b11
test eax, eax
jne 0x5f0c8a
jmp 0x5f0c91
mov eax, esi
jmp 0x5f0ca2
mov esi, dword [ebp - 0x2b0]
add esi, dword [ebp - 0x2bc]
jmp 0x5f0bd0
pop esi
leave
ret 4
Function at 0x10001a20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x218cc
call fcn.10064ac0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1072d4ec]
push eax
push 1
push 4
lea ecx, [ebp - 0x218a8]
push ecx
call fcn.1005b9c8
add esp, 0x10
mov dword [ebp - 0x218ac], eax
cmp dword [ebp - 0x218ac], 0
jne 0x10001a7f
mov edx, dword [0x1072d4ec]
push edx
push 1
push 4
lea eax, [ebp - 0x218a8]
push eax
call fcn.1005b9c8
add esp, 0x10
mov dword [ebp - 0x218ac], eax
cmp dword [ebp - 0x218ac], 1
je 0x10001a8f
xor eax, eax
jmp 0x10001c44
mov ecx, dword [ebp - 0x218a8]
push ecx
call fcn.10031a30
add esp, 4
mov dword [ebp - 0x218a8], eax
cmp dword [ebp - 0x218a8], 2
jne 0x10001ab4
xor eax, eax
jmp 0x10001c44
cmp dword [ebp - 0x218a8], 1
jne 0x10001ae0
mov edx, dword [0x1072d4ec]
push edx
push 0x300
push 0x1072d4f8
call fcn.1003bee0
add esp, 0xc
mov dword [0x1072d7f8], 0
mov eax, dword [0x1072d4ec]
push eax
push 4
lea ecx, [ebp - 0x218a4]
push ecx
call fcn.1003bee0
add esp, 0xc
mov edx, dword [ebp - 0x218a4]
push edx
call fcn.10031a30
add esp, 4
mov dword [ebp - 0x218a4], eax
cmp dword [ebp - 0x218a4], 0x20000
ja 0x10001b21
cmp dword [ebp - 0x218a4], 1
jge 0x10001b30
push str.Bad_compressed_frame_size
push 1
call fcn.10038830
add esp, 8
mov eax, dword [0x1072d4ec]
push eax
mov ecx, dword [ebp - 0x218a4]
push ecx
lea edx, [ebp - 0x218a0]
push edx
call fcn.1003bee0
add esp, 0xc
mov eax, dword [0x1072d4f4]
imul eax, dword [0x107ae5c4]
cdq
mov ecx, 0xe
idiv ecx
mov dword [ebp - 0x218b4], eax
mov eax, dword [0x1072d4f4]
add eax, 1
imul eax, dword [0x107ae5c4]
cdq
mov ecx, 0xe
idiv ecx
mov dword [ebp - 0x218c4], eax
mov edx, dword [ebp - 0x218c4]
sub edx, dword [ebp - 0x218b4]
mov dword [ebp - 0x218b0], edx
mov eax, dword [0x1072d4ec]
push eax
mov ecx, dword [ebp - 0x218b0]
imul ecx, dword [0x107ae5c8]
imul ecx, dword [0x107ae5cc]
push ecx
lea edx, [ebp - 0x18a0]
push edx
call fcn.1003bee0
add esp, 0xc
lea eax, [ebp - 0x18a0]
push eax
mov ecx, dword [0x107ae5cc]
push ecx
mov edx, dword [0x107ae5c8]
push edx
mov eax, dword [0x107ae5c4]
push eax
mov ecx, dword [ebp - 0x218b0]
push ecx
call fcn.1002f200
add esp, 0x14
lea edx, [ebp - 0x218a0]
mov dword [ebp - 0x218bc], edx
mov eax, dword [ebp - 0x218a4]
mov dword [ebp - 0x218b8], eax
mov ecx, dword [ebp - 0x218b8]
push ecx
mov edx, dword [ebp - 0x218bc]
push edx
call fcn.10001610
add esp, 8
mov dword [ebp - 0x218cc], eax
mov dword [ebp - 0x218c8], edx
mov eax, dword [ebp - 0x218cc]
mov dword [ebp - 0x218c0], eax
mov ecx, dword [0x1072d4f4]
add ecx, 1
mov dword [0x1072d4f4], ecx
mov eax, dword [ebp - 0x218c0]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b585
mov esp, ebp
pop ebp
ret
Function at 0x1000e780
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100fbdd0]
sub eax, 8
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.10031a30
add esp, 4
mov dword [ebp - 8], eax
mov edx, dword [0x1072b578]
push edx
push 1
push 4
lea eax, [ebp - 8]
push eax
call fcn.1005c51c
add esp, 0x10
mov ecx, dword [0x1072b578]
push ecx
push 1
mov edx, dword [ebp - 4]
push edx
mov eax, dword [0x100fbdc8]
add eax, 8
push eax
call fcn.1005c51c
add esp, 0x10
mov esp, ebp
pop ebp
ret

Function at 0x1000e7e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x1072b570], 0
jne 0x1000e7fc
push str.Not_recording_a_demo._n
call fcn.10038500
add esp, 4
jmp 0x1000e849
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x1072b578]
push eax
push 1
push 4
lea ecx, [ebp - 4]
push ecx
call fcn.1005c51c
add esp, 0x10
mov edx, dword [0x1072b578]
push edx
call fcn.1005bae0
add esp, 4
mov dword [0x1072b578], 0
mov dword [0x1072b570], 0
push str.Stopped_demo._n
call fcn.10038500
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x10015c90
Capabilities:
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x100fbdc0
call fcn.100399a0
add esp, 4
mov dword [ebp - 0x188], eax
push 0x100fbdc0
call fcn.10039950
add esp, 4
mov dword [ebp - 0x18c], eax
cmp dword [ebp - 0x188], 0xffffffff
jne 0x10015d0a
push str.Server_does_not_have_this_file._n
call fcn.10038500
add esp, 4
cmp dword [0x1072b460], 0
je 0x10015d00
mov eax, dword [0x1072b460]
push eax
call fcn.1005bae0
add esp, 4
mov dword [0x1072b460], 0
call fcn.100109b0
jmp 0x10015e88
cmp dword [0x1072b460], 0
jne 0x10015d8b
push 0x1072b464
push 0x80
lea ecx, [ebp - 0x84]
push ecx
call fcn.10015700
add esp, 0xc
lea edx, [ebp - 0x84]
push edx
call fcn.1003bb00
add esp, 4
push 0x10089100
lea eax, [ebp - 0x84]
push eax
call fcn.1005c29c
add esp, 8
mov dword [0x1072b460], eax
cmp dword [0x1072b460], 0
jne 0x10015d8b
mov ecx, dword [0x100fbdd4]
add ecx, dword [ebp - 0x188]
mov dword [0x100fbdd4], ecx
push 0x1072b464
push 0x10089104
call fcn.10038500
add esp, 8
call fcn.100109b0
jmp 0x10015e88
mov edx, dword [0x1072b460]
push edx
mov eax, dword [ebp - 0x188]
push eax
push 1
mov ecx, dword [0x100fbdc8]
add ecx, dword [0x100fbdd4]
push ecx
call fcn.1005c51c
add esp, 0x10
mov edx, dword [0x100fbdd4]
add edx, dword [ebp - 0x188]
mov dword [0x100fbdd4], edx
cmp dword [ebp - 0x18c], 0x64
je 0x10015dfc
mov eax, dword [ebp - 0x18c]
mov dword [0x1072b56c], eax
push 4
push 0x1072a96c
call fcn.100389b0
add esp, 8
push 0x10089118
push 0x1072a96c
call fcn.10039f60
add esp, 8
jmp 0x10015e88
mov ecx, dword [0x1072b460]
push ecx
call fcn.1005bae0
add esp, 4
push 0x1072b464
push 0x80
lea edx, [ebp - 0x104]
push edx
call fcn.10015700
add esp, 0xc
push 0x1072b4e4
push 0x80
lea eax, [ebp - 0x184]
push eax
call fcn.10015700
add esp, 0xc
lea ecx, [ebp - 0x184]
push ecx
lea edx, [ebp - 0x104]
push edx
call fcn.1005c6a2
add esp, 8
mov dword [ebp - 0x190], eax
cmp dword [ebp - 0x190], 0
je 0x10015e6f
push str.failed_to_rename._n
call fcn.10038500
add esp, 4
mov dword [0x1072b460], 0
mov dword [0x1072b56c], 0
call fcn.100109b0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b585
mov esp, ebp
pop ebp
ret
Function at 0x10038370
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
push 1
push 0x1000
push 0x1013c080
call fcn.1005c51c
add esp, 0x10
pop ebp
ret

Function at 0x1003bee0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], 0
cmp dword [ebp - 4], 0
je 0x1003bf87
mov edx, dword [ebp - 4]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0x10000
jle 0x1003bf19
mov dword [ebp - 0xc], 0x10000
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push 1
mov edx, dword [ebp - 0x10]
push edx
call fcn.1005b9c8
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1003bf5b
cmp dword [ebp - 0x14], 0
jne 0x1003bf4c
mov dword [ebp - 0x14], 1
call fcn.1004dda0
jmp 0x1003bf5b
push str.FS_Read:_0_bytes_read
push 0
call fcn.10038830
add esp, 8
cmp dword [ebp - 8], 0xffffffff
jne 0x1003bf70
push str.FS_Read:__1_bytes_read
push 0
call fcn.10038830
add esp, 8
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
jmp 0x1003bef9
mov esp, ebp
pop ebp
ret