joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100012a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], 0x598
mov dword [ebp - 0xc], 0x2e
lea eax, [ebp - 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
and edx, 0xf8b0906a
sub edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
sub edx, dword [ebp - 0x10]
imul edx, dword [ebp - 0x10]
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov eax, dword [ebp - 0xc]
cdq
idiv ecx
mov edx, dword [ebp - 0xc]
sub edx, eax
mov dword [ebp - 0xc], edx
push 0x40
push 0x3000
mov eax, dword [ebp + 8]
add eax, 0x14
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esp, ebp
pop ebp
ret
Function at 0x1000e333
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x10041698
cmp edx, dword [eax]
je 0x1000e355
add eax, 8
inc ecx
cmp eax, 0x10041728
jl 0x1000e346
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x10041698]
jne 0x1000e483
mov eax, dword [0x10047c4c]
cmp eax, 1
je 0x1000e45d
test eax, eax
jne 0x1000e386
cmp dword [0x10047c50], 1
je 0x1000e45d
cmp edx, 0xfc
je 0x1000e483
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000e3bd
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.1000ef50
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.1000f380
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1000e400
lea eax, [ebp - 0x1a4]
push eax
call fcn.1000f380
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1001958c
push edi
call fcn.10011e30
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.1000ef50
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.1000ef60
lea eax, [ebp - 0xa0]
push 0x1001956c
push eax
call fcn.1000ef60
push dword [esi + 0x1004169c]
lea eax, [ebp - 0xa0]
push eax
call fcn.1000ef60
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.10011da5
add esp, 0x2c
pop edi
jmp 0x1000e483
lea eax, [ebp + 8]
lea esi, [esi + 0x1004169c]
push 0
push eax
push dword [esi]
call fcn.1000f380
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10003ee0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jle 0x10003f18
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0x10]
push ebx
xor ebx, ebx
mov bl, byte [ecx]
mov edx, eax
shr edx, 8
xor edx, ebx
xor ebx, ebx
mov bh, al
and edx, 0xff
xor bx, word [edx*2 + 0x10018770]
inc ecx
dec esi
mov eax, ebx
jne 0x10003ef2
pop ebx
pop esi
ret
mov ax, word [esp + 0x10]
pop esi
ret

Function at 0x10005af0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
call fcn.10009ef0
mov edi, dword [esp + 0x18]
mov ecx, dword [esi + 0x60]
mov dword [esp + 0x14], eax
movzx eax, di
lea ebx, [eax + eax*2]
push 0x1c
shl ebx, 5
push 1
add ebx, ecx
call fcn.1000c05a
add esp, 0xc
test eax, eax
mov dword [esi + 0x54], eax
je 0x10005c2c
push 0x1c
push 1
call fcn.1000c05a
add esp, 8
test eax, eax
mov dword [esi + 0x58], eax
je 0x10005c2c
mov eax, dword [esi + 0x54]
push eax
push edi
push 0xfa
push esi
call fcn.10005950
mov ecx, dword [esi + 0x58]
push ecx
push edi
push 0xfb
push esi
call fcn.10005950
mov edx, dword [esi + 0x54]
mov eax, dword [edx]
add esp, 0x20
test eax, eax
je 0x10005b89
mov ecx, dword [eax + 0x30]
test ecx, ecx
je 0x10005b89
mov ecx, dword [eax + 0x2c]
test ecx, ecx
je 0x10005b89
mov eax, dword [edx + 8]
test eax, eax
je 0x10005b89
mov edi, 1
jmp 0x10005b8b
xor edi, edi
mov ecx, dword [esi + 0x58]
mov eax, dword [ecx]
test eax, eax
push ebp
je 0x10005c1c
mov ebp, dword [eax + 0x30]
test ebp, ebp
je 0x10005c1c
mov ebp, dword [eax + 0x2c]
test ebp, ebp
je 0x10005c1c
mov eax, dword [ecx + 8]
test eax, eax
je 0x10005c1c
test edi, edi
mov ebp, 1
jne 0x10005bbd
mov dword [esi + 0x54], ecx
mov dword [esi + 0x58], edx
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x10005c25
mov eax, dword [ecx]
test eax, eax
je 0x10005c25
mov edx, dword [eax + 0x30]
test edx, edx
je 0x10005c25
mov edx, dword [eax + 0x2c]
test edx, edx
je 0x10005c25
mov eax, dword [ecx + 8]
test eax, eax
je 0x10005c25
mov eax, dword [0x1001c038]
test eax, eax
je 0x10005bf2
test ebp, ebp
jne 0x10005c20
mov dword [0x1001c038], ebp
push ebp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [esp + 0x58]
mov edi, dword [eax + 0x1c]
mov ecx, dword [edi + 0x68]
call fcn.10006359
mov esi, eax
mov ecx, dword [edi + 0x120]
call fcn.10006359
mov ebx, eax
mov edx, dword [edi + 0xb0]
mov ecx, esi
push edi
add byte [ecx - 0x7717a80f], cl
pop es
add byte [eax], al
call fcn.100063ad
add esp, 4
mov dword [esp], eax
mov edx, dword [edi + 0xdc]
xchg edi, eax
fadd qword [eax]
add byte [eax], al
mov ecx, esi
push edi
call fcn.100063ad
add esp, 4
mov dword [esp + 4], eax
Function at 0x10005c40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edx, dword [edi + 0x84]
mov ecx, esi
push edi
call fcn.100063ad
add esp, 4
mov dword [esp + 0x18], eax
mov edx, dword [edi + 0x74]
mov ecx, ebx
push edi
call fcn.100063ad
add esp, 4
mov dword [esp + 8], eax
mov edx, dword [edi + 0x20]
mov ecx, esi
push edi
call fcn.100063ad
add esp, 4
mov dword [esp + 0x20], eax
mov edx, dword [edi + 0xd0]
mov ecx, esi
push edi
call fcn.100063ad
add esp, 4
mov dword [esp + 0x14], eax
mov edx, dword [edi + 0x88]
mov ecx, ebx
mov dword [esp + 0x28], ebx
push edi
call fcn.100063ad
add esp, 4
mov dword [esp + 0xc], eax
mov edx, dword [edi + 0xa8]
mov ecx, esi
push edi
call fcn.100063ad
add esp, 4
mov dword [esp + 0x10], eax
mov edx, dword [edi + 0xd4]
mov ecx, esi
push edi
call fcn.100063ad
add esp, 4
mov dword [esp + 0x2c], eax
mov edx, dword [edi + 0x24]
mov ecx, esi
push edi
call fcn.100063ad
add esp, 4
mov ebp, eax
mov edx, dword [edi + 0x78]
mov ecx, esi
push edi
call fcn.100063ad
add esp, 4
mov dword [esp + 0x1c], eax
mov edx, dword [edi + 0xa0]
mov ecx, esi
push edi
call fcn.100063ad
add esp, 4
mov edx, dword [edi + 0x44]
mov ecx, ebx
push edi
call fcn.100063ad
add esp, 4
mov dword [esp + 0x24], eax
push 0x80
push 0x40
call ebp
mov ebx, eax
mov edx, dword [edi + 0xc0]
mov ecx, esi
push edi
call fcn.100063ad
add esp, 4
mov dword [ebx + 0xc], eax
mov dword [ebx + 4], esi
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x68], eax
mov eax, dword [esp]
add al, 0x24
Function at 0x10006359
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
push edi
push esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
add eax, 0xc
mov eax, dword [eax]
mov edx, dword [eax + 0x30]
test edx, edx
je 0x10006368
test ecx, ecx
je 0x100063a6
movzx edi, word [edx]
test di, di
je 0x100063a0
add edx, 2
xor esi, esi
lea ebx, [edi - 0x41]
cmp bx, 0x1a
jae 0x1000638e
add edi, 0x20
movzx edi, di
add esi, edi
movzx edi, word [edx]
add edx, 2
test di, di
jne 0x10006382
jmp 0x100063a2
xor esi, esi
cmp esi, ecx
jne 0x10006368
mov eax, dword [eax + 0x18]
pop esi
pop edi
pop ebx
ret

Function at 0x100063ad
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x21c
mov dword [esp + 0x10], edx
mov eax, dword [ecx + 0x3c]
mov eax, dword [ecx + eax + 0x78]
mov edx, dword [ecx + eax + 0x20]
add edx, ecx
mov dword [esp + 0xc], edx
mov edx, dword [ecx + eax + 0x1c]
mov dword [esp + 8], edx
mov dword [esp], ecx
mov eax, dword [ecx + eax + 0x24]
mov dword [esp + 4], eax
xor eax, eax
lea ebx, [esp + 0x14]
mov edi, eax
mov eax, dword [esp + 0xc]
mov ebp, dword [eax + edi*4]
add ebp, dword [esp]
mov ecx, ebx
call fcn.10006522
mov ecx, ebp
call fcn.100064c2
test eax, eax
je 0x10006410
movsx ecx, byte [ebp + eax]
mov word [esp + eax*2 + 0x14], cx
dec eax
jne 0x10006403
movsx eax, byte [ebp]
mov word [esp + 0x14], ax
mov ecx, ebx
call fcn.100064f2
test eax, eax
je 0x10006446
mov ecx, dword [esp + 0x230]
mov edx, dword [ecx + 0x13c]
xor ecx, ecx
mov ebp, ebx
imul ecx, edx
movzx esi, word [ebp]
add ecx, esi
add ebp, 2
dec eax
jne 0x10006435
jmp 0x10006448
xor ecx, ecx
lea eax, [edi + 1]
cmp ecx, dword [esp + 0x10]
jne 0x100063e5
xchg esp, eax
Function at 0x1000d133
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x1000d223
mov eax, 0x94
call fcn.1000b9c0
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1000d298
mov ecx, dword [esi + 0x10]
mov dword [0x1001d270], ecx
mov eax, dword [esi + 4]
mov dword [0x1001d27c], eax
mov edx, dword [esi + 8]
mov dword [0x1001d280], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x1001d274], esi
je 0x1000d19e
or esi, 0x8000
mov dword [0x1001d274], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x1001d278], eax
call fcn.1000d3e5
test eax, eax
pop ecx
je 0x1000d298
call fcn.1000ff73
test eax, eax
jne 0x1000d1cb
call fcn.1000d436
jmp 0x1000d298
call fcn.100124b0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1001e948], eax
call fcn.1001238e
mov dword [0x1001d0dc], eax
call fcn.10011e6f
test eax, eax
jl 0x1000d21c
call fcn.100122ec
test eax, eax
jl 0x1000d217
call fcn.100120b9
test eax, eax
jl 0x1000d217
push 0
call fcn.10011d22
test eax, eax
pop ecx
jne 0x1000d217
inc dword [0x1001d0d8]
jmp 0x1000d2a9
call fcn.1001206d
call fcn.1000fd5c
jmp 0x1000d1c1
test eax, eax
jne 0x1000d253
cmp dword [0x1001d0d8], eax
jle 0x1000d298
dec dword [0x1001d0d8]
cmp dword [0x1001d2ac], eax
jne 0x1000d242
call fcn.10011e60
call fcn.1001206d
call fcn.1000fd5c
call fcn.1000d436
jmp 0x1000d2a9
cmp eax, 2
jne 0x1000d29c
push 0x8c
push 1
call fcn.1000c05a
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1000d298
push esi
push dword [0x1001b5a4]
call dword [0x1001d25c]
test eax, eax
push esi
je 0x1000d292
call fcn.1000fd79
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x1000d2a9
call fcn.1000b945
pop ecx
xor eax, eax
jmp 0x1000d2ac
cmp eax, 3
jne 0x1000d2a9
push 0
call fcn.1000ff44
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc

Function at 0x10011d8c
Capabilities:
Terminate process

Disassembly:
push 8
push 0x10019430
call fcn.1000e15c
push 8
call fcn.1000d608
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x1001d2b0], esi
jne 0x10011dc0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x1001d2ac], esi
mov al, byte [ebp + 0x10]
mov byte [0x1001d2a8], al
cmp dword [ebp + 0xc], edi
jne 0x10011e0a
cmp dword [0x1001d908], edi
je 0x10011dfa
mov eax, dword [0x1001d904]
sub eax, 4
mov dword [0x1001d904], eax
cmp eax, dword [0x1001d908]
jb 0x10011dfa
mov eax, dword [eax]
cmp eax, edi
je 0x10011ddb
call eax
jmp 0x10011ddb
push 0x1001b02c
mov eax, 0x1001b024
call fcn.10011d0a
pop ecx
push 0x1001b038
mov eax, 0x1001b030
call fcn.10011d0a
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x10011e3b
cmp dword [ebp + 0x10], edi
jne 0x10011e49
mov dword [0x1001d2b0], esi
push dword [ebp + 8]
call fcn.10011cc8
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x10011e48
push 8
call fcn.1000d553
pop ecx
ret
call fcn.1000e197
ret
Function at 0x100126b7
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x1001b854]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x1001b910]
je 0x100126ec
inc eax
cmp eax, 0x13
jb 0x100126dd
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1001b910]
jne 0x10012812
mov eax, dword [0x1001d0e4]
cmp eax, 1
je 0x100127ea
cmp eax, edx
jne 0x1001271c
cmp dword [0x1001d0e8], 1
je 0x100127ea
cmp ecx, 0xfc
je 0x10012812
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10012752
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.10011b40
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.1000fa00
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10012786
mov eax, edi
push eax
call fcn.1000fa00
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x10019848
push edi
call fcn.10013860
add esp, 0x10
push edi
call fcn.1000fa00
push dword [esi + 0x1001b914]
mov ebx, eax
call fcn.1000fa00
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.1000b9c0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.10011b40
push edi
push ebx
call fcn.10011b50
push 0x10019828
push ebx
call fcn.10011b50
push dword [esi + 0x1001b914]
push ebx
call fcn.10011b50
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.10015672
add esp, 0x2c
jmp 0x10012812
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x1001b914]
push dword [esi]
call fcn.1000fa00
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.10012fe9
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40b4c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8000]
push edi
or ebp, 0xffffffff
jmp 0x40b4e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40b4e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40b4d8
mov eax, 1
add ebx, ebx
jne 0x40b4fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40b4f0
jne 0x40b50c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40b4f0
xor ecx, ecx
sub eax, 3
jb 0x40b520
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40b592
mov ebp, eax
add ebx, ebx
jne 0x40b52b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40b538
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40b55c
inc ecx
add ebx, ebx
jne 0x40b548
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40b53d
jne 0x40b559
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40b53d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40b57c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40b56d
jmp 0x40b4de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40b57c
add edi, ecx
jmp 0x40b4de
pop esi
mov edi, esi
mov ecx, 0x2f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40b59a
cmp byte [edi], 5
jne 0x40b59a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40b59f
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x40b617
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc1b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc1ec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40b5cc
mov ecx, edi
jns 0x40b5fb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xc1f0]
or eax, eax
je 0x40b611
mov dword [ebx], eax
add ebx, 4
jmp 0x40b5e9
call dword [esi + 0xc200]
mov ebp, dword [esi + 0xc1f4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1df]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40b64b
sub esp, 0xffffff80
jmp 0x401424
Function at 0x10006ac3
Capabilities:
Read file on windows

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebp, ecx
push edi
mov edi, dword [esp + 0x14]
test esi, esi
jg 0x10006ae3
jl 0x10006ada
test edi, edi
jne 0x10006ae3
xor eax, eax
xor edx, edx
jmp 0x10006baa
cmp dword [ebp + 0x38], 0
je 0x10006af9
push esi
push edi
push dword [esp + 0x18]
call fcn.10006bb4
jmp 0x10006baa
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10006b3d
mov eax, dword [ebp + 0x2c]
cmp dword [eax], 0
jbe 0x10006b3d
cmp dword [eax], edi
mov esi, edi
mov ebx, dword [esp + 0x14]
cmovb esi, dword [eax]
push esi
push ecx
push ebx
call fcn.100508e0
mov eax, dword [ebp + 0x2c]
add ebx, esi
mov dword [esp + 0x20], ebx
add esp, 0xc
mov ebx, edi
sub ebx, esi
sub dword [eax], esi
mov eax, dword [ebp + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x1c]
jmp 0x10006b45
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
cmp dword [ebp + 0x4c], 0
mov ecx, ebx
je 0x10006ba0
mov ecx, ebp
call fcn.10004624
mov edx, dword [esp + 0x14]
mov ecx, ebx
jmp 0x10006b80
push dword [ebp + 0x4c]
push eax
push 1
push edx
call fcn.1005569b
mov edx, dword [esp + 0x24]
sub ebx, eax
add edx, eax
add esp, 0x10
mov dword [esp + 0x14], edx
mov ecx, ebx
cmp eax, 0xfff
jne 0x10006bb0
mov eax, 0xfff
cmp ebx, eax
ja 0x10006b5c
test ecx, ecx
je 0x10006ba0
push dword [ebp + 0x4c]
push ebx
push 1
push edx
call fcn.1005569b
mov ecx, ebx
add esp, 0x10
sub ecx, eax
sub edi, ecx
sbb esi, 0
mov eax, edi
mov edx, esi
pop ebx
pop edi
pop esi
pop ebp
ret 0xc
sub edi, ebx
jmp 0x10006ba2
Function at 0x1000f694
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x10074a2e
call fcn.1004e6c4
sub esp, 0x38
push ebx
push esi
push edi
mov eax, 0x40e4e0
mov esi, ecx
call eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
movzx eax, ax
xor ebx, ebx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.1000ed8a
pop ecx
mov dword [ebp - 0x24], eax
mov eax, ebx
mov dword [ebp - 4], ebx
mov edi, 0xb7d0b8
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edi
mov ebx, dword [edi]
test ebx, ebx
je 0x1000f794
mov edi, dword [ebp - 0x10]
mov esi, dword [ebx]
mov dword [ebp - 0x1c], esi
mov eax, dword [esi]
cmp dword [eax + 0x20], 0x534030
je 0x1000f740
mov eax, edi
mov dword [ebp - 0x1c], 0x78
cdq
sub eax, edx
sar eax, 1
cdq
idiv dword [ebp - 0x1c]
push eax
movzx eax, word [esi + 0x22]
push edx
push eax
push esi
lea eax, [ebp - 0x44]
push str.Entity_0x_08x__with_model__d__at_ARRAY_StreamSectors__d__d__is_invalid_n
push eax
call fcn.1000ef90
add esp, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x1000f72f
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0x44]
call fcn.10004716
jmp 0x1000f781
mov ecx, dword [0x10116448]
movzx eax, word [esi + 0x22]
push eax
mov edx, dword [ecx]
call dword [edx + 0xa4]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x58]
cmp ax, word [ebp - 0x18]
jne 0x1000f781
test dword [esi + 0x1c], 0x2400
jne 0x1000f781
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx]
call dword [eax + 0x20]
lea eax, [esi + 0x22]
lea ecx, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.1000eda1
mov eax, dword [ebx + 4]
mov ebx, eax
test eax, eax
jne 0x1000f6ec
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
add edi, 4
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edi
cmp edi, 0xb992b8
jl 0x1000f6df
mov edi, 0xb992c0
mov dword [ebp - 0x14], edi
mov esi, dword [edi]
test esi, esi
je 0x1000f80a
mov edi, dword [ebp - 0x18]
mov ebx, dword [esi]
mov ecx, dword [0x10116448]
mov dword [ebp - 0x1c], ebx
movzx eax, word [ebx + 0x22]
mov edx, dword [ecx]
push eax
call dword [edx + 0xa4]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x58]
cmp ax, di
jne 0x1000f800
test dword [ebx + 0x1c], 0x2400
jne 0x1000f800
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx]
call dword [eax + 0x20]
lea eax, [ebx + 0x22]
lea ecx, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.1000eda1
mov esi, dword [esi + 4]
test esi, esi
jne 0x1000f7bb
mov edi, dword [ebp - 0x14]
add edi, 0xc
mov dword [ebp - 0x14], edi
cmp edi, 0xb99ec0
jl 0x1000f7b2
mov eax, dword [ebp - 0x24]
mov esi, dword [eax]
mov dword [ebp - 0x18], esi
cmp esi, eax
je 0x1000f84f
movzx eax, word [esi + 0xe]
push eax
mov eax, 0x4089a0
call eax
movzx eax, word [esi + 0xe]
imul eax, eax, 0x14
pop ecx
lea ecx, [ebp - 0x18]
mov byte [eax + 0x8e4cd0], 0
call fcn.1000d3d9
mov esi, dword [ebp - 0x18]
cmp esi, dword [ebp - 0x24]
jne 0x1000f824
lea eax, [ebp - 0x24]
push eax
mov ecx, eax
call fcn.1000ee33
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x10017631
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x100746c6
call fcn.1004e6c4
sub esp, 0x20
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
je 0x10017767
push 0x1007ae24
push dword [ebp + 8]
call fcn.1005c586
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x10017767
push 0xc
call fcn.1004e6e3
pop ecx
mov dword [ebp + 8], eax
and dword [ebp - 4], 0
test eax, eax
je 0x10017682
mov ecx, eax
call fcn.1000a83c
mov esi, eax
jmp 0x10017684
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea edi, [ebp - 0x2c]
push 8
pop ecx
push ebx
xor eax, eax
push 1
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push 0x20
push eax
call fcn.1005569b
add esp, 0x10
cmp byte [ebp - 0x2c], 0x43
jne 0x1001774b
cmp byte [ebp - 0x2b], 0x4f
jne 0x1001774b
cmp byte [ebp - 0x2a], 0x4c
jne 0x1001774b
mov eax, dword [ebp - 0x28]
add eax, 0xffffffe8
push eax
call fcn.1004e6b3
mov ecx, dword [ebp - 0x28]
mov edi, eax
push ebx
push 1
add ecx, 0xffffffe8
push ecx
push edi
call fcn.1005569b
mov al, byte [ebp - 0x29]
add esp, 0x14
cmp al, 0x4c
jne 0x100176fe
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax]
push eax
push edi
call dword [0x100a4178]
add esp, 0xc
jmp 0x10017739
cmp al, 0x32
jne 0x1001771b
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax]
push eax
mov eax, dword [ebp - 0x28]
add eax, 0xffffffe8
push eax
push edi
call dword [0x100a417c]
jmp 0x10017736
cmp al, 0x33
jne 0x10017739
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax]
push eax
mov eax, dword [ebp - 0x28]
add eax, 0xffffffe8
push eax
push edi
call dword [0x100a4180]
add esp, 0x10
push edi
call fcn.1004e721
push ebx
call fcn.10054ddf
pop ecx
pop ecx
mov eax, esi
jmp 0x10017769
test esi, esi
je 0x10017760
mov ecx, esi
call fcn.1000a86e
push 0xc
push esi
call fcn.1004e713
pop ecx
pop ecx
push ebx
call fcn.10054ddf
pop ecx
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4