joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4160c0
Capabilities:
Query or enumerate registry value
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51f8aa
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x5750c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x214]
push edx
push 1
xor ebx, ebx
push ebx
push str.SoftwareHalfbrick_StudiosFruit_Ninja
push reloc.WSOCK32.dll_bind
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x416162
mov edx, dword [ebp - 0x214]
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x210]
push ecx
push ebx
push ebx
push str.InstallFolder
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x416162
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test byte [0x5bd5d8], 1
jne 0x41618e
or dword [0x5bd5d8], 1
mov dword [ebp - 4], ebx
call fcn.0042f9f0
push 0x52b6f0
call fcn.0045f177
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov esi, 0x5bd2a8
call fcn.0042fa90
mov edi, dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
push 0x14
call edi
add esp, 4
cmp eax, ebx
je 0x4161bf
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax], vtable.Mortar::FileSystem_Direct.0
mov dword [eax + 0xc], ebx
mov byte [eax + 0x10], bl
mov esi, eax
jmp 0x4161c1
xor esi, esi
mov edx, dword [esi]
mov eax, dword [ebp - 0x21c]
mov edx, dword [edx + 0x18]
mov ebx, 1
push ebx
push eax
mov ecx, esi
call edx
test byte [0x5bd5d8], bl
jne 0x416201
or dword [0x5bd5d8], ebx
mov dword [ebp - 4], ebx
call fcn.0042f9f0
push 0x52b6f0
call fcn.0045f177
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, str.base
call fcn.00419140
push esi
xor ecx, ecx
mov edx, eax
mov ebx, 0x5bd2a8
call fcn.0042fb20
push 0x14
call edi
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x41623d
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax], vtable.Mortar::FileSystem_Direct.0
mov dword [eax + 0xc], ecx
mov byte [eax + 0x10], cl
mov esi, eax
jmp 0x41623f
xor esi, esi
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
push ecx
mov ecx, dword [ebp - 0x218]
push ecx
mov ecx, esi
call edx
mov ebx, 1
test byte [0x5bd5d8], bl
jne 0x416283
or dword [0x5bd5d8], ebx
mov dword [ebp - 4], 2
call fcn.0042f9f0
push 0x52b6f0
call fcn.0045f177
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, str.save
call fcn.00419140
mov ecx, ebx
push esi
mov edx, eax
mov ebx, 0x5bd2a8
call fcn.0042fb20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045f06e
mov esp, ebp
pop ebp
ret 8
Function at 0x417b00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, eax
mov ecx, 4
shr esi, 1
and eax, 1
and esi, 1
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x14], eax
jne 0x417bc4
test eax, eax
jne 0x417bc8
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push str.SoftwareMicrosoftXACT
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x417b87
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0xc]
push eax
push esi
push str.DebugEngine
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x417b74
cmp dword [ebp - 0x10], eax
je 0x417b74
lea esi, [eax + 1]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x552ed4
test esi, esi
jne 0x417b8c
mov eax, 0x552ee4
mov edi, dword [sym.imp.ole32.dll_CoCreateInstance]
push ebx
push 0x552ef4
push 1
push 0
push eax
call edi
test eax, eax
jns 0x417bbe
test esi, esi
je 0x417bbe
cmp dword [ebp - 0x14], 0
jne 0x417bbe
push ebx
push 0x552ef4
push 1
push 0
push 0x552ee4
call edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x417b7e
mov eax, 0x552ec4
jmp 0x417b8c
Function at 0x41cfb0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5750c8]
xor eax, ebp
mov dword [ebp - 4], eax
fldz
mov eax, ecx
fstp dword [eax + 0x50]
mov byte [eax + 4], 1
push esi
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx esi, word [ebp - 8]
movzx ecx, word [ebp - 6]
push 2
shl esi, 0x10
push 0
add esi, ecx
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov ecx, dword [ebp - 4]
mov dword [0x576b50], esi
xor ecx, ebp
mov dword [0x576b54], 0
mov dword [0x576b58], 0x6c078965
mov dword [0x576b5c], 0x5d588b65
mov dword [0x576b60], 0x269ec3
mov dword [0x576b64], 0
pop esi
call fcn.0045f06e
mov esp, ebp
pop ebp
ret
Function at 0x423a80
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x520cd3
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5750c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
or ecx, 0xffffffff
mov dword [ebx + 8], ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x20], 0x5b2bb4
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x28], eax
mov dword [ebp - 4], eax
lea edi, [ebx + 0x34]
mov dword [ebx], vtable.TiXmlDocument.0
mov dword [edi], 0x5b2bb4
mov byte [ebp - 4], 1
mov dword [ebx + 0x40], ecx
mov dword [ebx + 0x3c], ecx
push 0x551f40
xor esi, esi
mov dword [ebx + 0x38], 4
mov byte [ebx + 0x44], al
mov byte [ebx + 0x2c], al
mov dword [ebx + 0x30], eax
call fcn.004251f0
xor eax, eax
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x3c], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42aac0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51f6be
mov eax, dword fs:[0]
push eax
push ebx
push edi
mov eax, dword [0x5750c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [esi + 0x36], 0
jne 0x42ac0c
xor eax, eax
lea edi, [esi + 0x38]
mov dword [esi + 0x30], eax
mov dword [edi], eax
mov dword [esi + 0x3c], eax
cmp byte [0x5b2b6f], al
je 0x42abb6
cmp dword [esi + 8], 0x20
lea ebx, [esi + 0xc]
mov eax, ebx
jbe 0x42ab14
mov eax, dword [ebx]
push str..xml
push eax
call dword [sym.imp.MSVCR100.dll_strstr]
add esp, 8
test eax, eax
je 0x42abb6
cmp dword [esi + 8], 0x20
jbe 0x42ab33
mov ebx, dword [ebx]
lea eax, [esi + 0x37]
push eax
push edi
lea eax, [esi + 0x30]
push eax
push ebx
call fcn.0042f980
mov ebx, dword [esi + 4]
call fcn.0042fc20
mov ecx, dword [edi]
push ecx
mov byte [esi + 0x36], al
call fcn.0045f05c
mov edx, dword [edi]
mov ebx, eax
mov eax, dword [esi + 0x30]
push edx
push eax
push ebx
call sub.MSVCR100.dll_memcpy
xor ecx, ecx
add esp, 0x10
cmp dword [edi], ecx
jbe 0x42ab98
lea ecx, [ecx]
mov eax, 0x80808081
mul ecx
shr edx, 7
imul edx, edx, 0xff
mov eax, ecx
sub eax, edx
mov dl, byte [eax + 0x5765f8]
xor dl, byte [ecx + ebx]
mov eax, dword [esi + 0x30]
mov byte [ecx + eax], dl
inc ecx
cmp ecx, dword [edi]
jb 0x42ab70
push ebx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
mov al, byte [esi + 0x36]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 8], 0x20
lea ebx, [esi + 0xc]
jbe 0x42abc2
mov ebx, dword [esi + 0xc]
test byte [0x5bd5d8], 1
jne 0x42abf2
or dword [0x5bd5d8], 1
mov dword [ebp - 4], 0
call fcn.0042f9f0
push 0x52b6f0
call fcn.0045f177
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x37]
push ecx
push edi
lea eax, [esi + 0x30]
push eax
push ebx
mov ebx, dword [esi + 4]
mov eax, 0x5bd2a8
call fcn.0042fc20
mov byte [esi + 0x36], al
mov al, byte [esi + 0x36]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42f6e0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x5750c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0
mov edi, ecx
mov bl, 1
call dword [sym.imp.MSVCR100.dll__getcwd]
add esp, 8
test eax, eax
je 0x42f755
lea esi, [ebp - 0x310]
mov ecx, eax
sub esi, eax
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x42f715
push eax
call dword [sym.imp.MSVCR100.dll_free]
lea edx, [ebp - 0x20c]
add esp, 4
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x42f733
lea eax, [ebp - 0x20c]
push 0x3a
push eax
call dword [sym.imp.MSVCR100.dll_strchr]
add esp, 8
test eax, eax
jne 0x42f755
xor bl, bl
lea edx, [ebp - 0x414]
mov eax, edi
sub edx, edi
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x42f760
mov byte [ebp - 0x108], cl
test bl, bl
jne 0x42f790
lea ecx, [ebp - 0x310]
push ecx
lea edx, [ebp - 0x108]
push 0x553b60
push edx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x414]
push 0x553b64
push eax
call dword [sym.imp.MSVCR100.dll_strtok]
add esp, 8
test eax, eax
je 0x42f87a
lea ecx, [ecx]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42f7b2
lea edi, [ebp - 0x108]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x42f7c2
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0
push 0
rep movsb byte es:[edi], byte [esi]
mov byte [ebp - 0x20c], 0
call dword [sym.imp.MSVCR100.dll__getcwd]
add esp, 8
test eax, eax
je 0x42f814
lea esi, [ebp - 0x20c]
mov ecx, eax
sub esi, eax
lea esp, [esp]
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x42f800
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov esi, dword [sym.imp.MSVCR100.dll__chdir]
lea ecx, [ebp - 0x108]
push ecx
call esi
lea edx, [ebp - 0x20c]
test eax, eax
push edx
sete bl
call esi
add esp, 8
test bl, bl
jne 0x42f848
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.MSVCR100.dll__mkdir]
add esp, 4
lea edi, [ebp - 0x108]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x42f850
mov cx, word [0x553b68]
push 0x553b64
push 0
mov word [edi], cx
call dword [sym.imp.MSVCR100.dll_strtok]
add esp, 8
test eax, eax
jne 0x42f7b0
lea edx, [ebp - 0x310]
push edx
call dword [sym.imp.MSVCR100.dll__chdir]
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045f06e
mov esp, ebp
pop ebp
ret
Function at 0x42f8a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
mov eax, dword [0x5750c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push 0x94
lea ecx, [ebp - 0x19c]
push 0
push ecx
mov dword [ebp - 0x1a0], eax
xor bl, bl
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x108]
push edx
push 0
push 0
push 0x1c
push 0
mov dword [ebp - 0x19c], 0x94
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x42f964
push esi
push edi
lea edi, [ebp - 0x108]
mov al, 1
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x42f903
mov cx, word [0x553b6c]
mov word [edi], cx
lea edi, [ebp - 0x108]
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x42f920
mov ecx, 5
mov esi, str.HalfbrickFruitNinja_
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x1a0]
lea ecx, [ebp - 0x108]
mov edx, ecx
sub esi, edx
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x42f947
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045f06e
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0045f06e
mov esp, ebp
pop ebp
ret 4
Function at 0x4304f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x5750c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x10c], edx
mov edx, dword [ebp + 0x14]
lea esi, [ebp - 0x104]
mov dword [ebp - 0x108], edx
mov edx, dword [ecx]
push esi
push eax
mov eax, dword [edx + 0x14]
call eax
mov ecx, esi
push 0x553b90
push ecx
call dword [sym.imp.MSVCR100.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x43061d
push edi
push 2
push 0
push esi
mov dword [ebp - 0x110], 0
call dword [sym.imp.MSVCR100.dll_fseek]
push esi
call dword [sym.imp.MSVCR100.dll_ftell]
push esi
mov edi, eax
call dword [sym.imp.MSVCR100.dll_rewind]
add esp, 0x14
cmp dword [ebx], 0
jne 0x430599
push edi
call fcn.0045f05c
mov edx, dword [ebp - 0x10c]
mov dword [ebx], eax
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x108]
mov dword [edx], edi
add esp, 4
mov byte [eax], 1
jmp 0x4305b2
mov ecx, dword [ebp - 0x10c]
mov eax, dword [ecx]
cmp eax, edi
jae 0x4305a7
mov edi, eax
mov dword [ecx], edi
mov ecx, dword [ebp - 0x108]
mov byte [ecx], 0
mov edx, dword [ebp - 0x10c]
mov eax, dword [edx]
mov ecx, dword [ebx]
push esi
push 1
push eax
push ecx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
pop edi
cmp eax, 1
jne 0x4305ee
push esi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045f06e
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp - 0x108]
cmp byte [edx], 0
je 0x430613
mov eax, dword [ebp - 0x110]
mov dword [ebx], 0
test eax, eax
je 0x430613
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
push esi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.0045f06e
mov esp, ebp
pop ebp
ret 0x10
Function at 0x434a60
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x5750c8]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x94
push eax
mov byte [0x5bcca8], al
mov dword [0x5bccac], eax
mov dword [0x5bccb0], eax
mov dword [0x5bccb4], eax
mov dword [0x5bccb8], eax
mov dword [0x5bccbc], eax
lea eax, [ebp - 0x98]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x98]
push ecx
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x434aee
mov eax, dword [ebp - 0x94]
cmp eax, 6
ja 0x434ad9
jne 0x434aee
cmp dword [ebp - 0x90], 1
jb 0x434aee
push 0x5e
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test al, al
jns 0x434aee
test al, 0xf
je 0x434aee
call fcn.00434b10
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 0x5bcca8
call fcn.0045f06e
mov esp, ebp
pop ebp
ret

Function at 0x435530
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51f2f8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x5750c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
call fcn.00436750
mov dword [ebp - 4], 0
fldz
mov dword [esi], vtable.Mortar::InputDevicePCTouch.0
fst dword [esi + 0x14]
fst dword [esi + 0x18]
or eax, 0xffffffff
fst dword [esi + 0x20]
mov dword [esi + 0x10], eax
fst dword [esi + 0x24]
mov dword [esi + 0x1c], eax
fst dword [esi + 0x2c]
mov dword [esi + 0x28], eax
fst dword [esi + 0x30]
mov dword [esi + 0x34], eax
fst dword [esi + 0x38]
mov dword [esi + 0x40], eax
fst dword [esi + 0x3c]
mov dword [esi + 0x4c], eax
fst dword [esi + 0x44]
mov dword [esi + 0x58], eax
fst dword [esi + 0x48]
mov dword [esi + 0x64], eax
fst dword [esi + 0x50]
push 0x18
fst dword [esi + 0x54]
fst dword [esi + 0x5c]
fst dword [esi + 0x60]
fst dword [esi + 0x68]
fstp dword [esi + 0x6c]
mov dword [esi + 0x74], 0
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
test eax, eax
je 0x4355f3
mov dword [esi + 0x70], eax
mov dword [eax], eax
mov eax, dword [esi + 0x70]
mov dword [eax + 4], eax
mov word [esi + 0x7c], 0x101
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], 0
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x560d4c
lea ecx, [ebp - 0x1c]
push ecx
mov dword [ebp - 0x1c], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
int3
Function at 0x43a1a0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51f58f
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5750c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [esi], vtable.PSPVertexDataSource.0
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp byte [esi + 0x28], bl
je 0x43a1e6
mov eax, dword [esi + 0x24]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edi, dword [esi + 0x30]
cmp edi, ebx
je 0x43a214
mov ebx, dword [esi + 0x34]
cmp edi, ebx
je 0x43a205
mov eax, dword [edi]
mov edx, dword [eax]
push 0
mov ecx, edi
call edx
add edi, 0x14
cmp edi, ebx
jne 0x43a1f4
mov eax, dword [esi + 0x30]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ebx, ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [ebp - 4], 1
lea edi, [esi + 0x18]
mov dword [ebp - 0x10], edi
push edi
mov byte [ebp - 4], 3
call fcn.0044c2b0
mov edi, dword [edi]
mov ebx, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
push edi
call ebx
lea edi, [esi + 0xc]
add esp, 4
mov dword [ebp - 0x10], edi
push edi
mov byte [ebp - 4], 4
call fcn.0044c2b0
mov eax, dword [edi]
push eax
call ebx
add esp, 4
mov dword [esi], vtable.Mortar::__ReferenceCounterData.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4401a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523784
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x5750c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [esi], vtable.Mortar::__ReferenceCounterData.0
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [ebp - 4], edi
mov dword [esi], vtable.Mortar::GeometryBinding_PC.0
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x30], edi
mov byte [ebp - 4], 4
push 0x30
mov dword [esi + 0x3c], edi
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
cmp eax, edi
je 0x440243
mov dword [esi + 0x38], eax
mov dword [eax], eax
mov eax, dword [esi + 0x38]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x38]
mov dword [eax + 8], eax
mov ecx, dword [esi + 0x38]
mov al, 1
mov byte [ecx + 0x2c], al
mov edx, dword [esi + 0x38]
mov byte [edx + 0x2d], al
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], edi
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x560d4c
lea ecx, [ebp - 0x1c]
push ecx
mov dword [ebp - 0x1c], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
int3
Function at 0x44fe60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp + 8]
push eax
push 1
push edi
push ecx
call dword [sym.imp.MSVCR100.dll_fread]
add dword [esi + 0xc], edi
add esp, 0x10
xor edx, edx
cmp eax, 1
pop edi
sete al
pop esi
pop ebp
ret 8

Function at 0x44fe90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov eax, dword [ebx]
mov edx, dword [eax + 0x1c]
push esi
push edi
mov dword [ebp - 8], ebx
call edx
mov edi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], eax
call fcn.0045f05c
mov esi, eax
mov eax, dword [ebp + 8]
push edi
push eax
push esi
call sub.MSVCR100.dll_memcpy
add esp, 0x10
test edi, edi
je 0x44fef4
mov eax, dword [ebp - 4]
sub eax, esi
mov ecx, esi
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], edi
jmp 0x44fed7
mov eax, dword [ebp + 8]
add eax, ecx
xor edx, edx
mov ebx, 0xff
div ebx
inc ecx
mov dl, byte [edx + 0x575fc0]
xor byte [ecx - 1], dl
dec dword [ebp + 0xc]
jne 0x44fed4
mov ebx, dword [ebp - 8]
mov eax, dword [ebx + 0x10]
push eax
push 1
push edi
push esi
call dword [sym.imp.MSVCR100.dll_fwrite]
add dword [ebx + 0xc], edi
push esi
mov dword [ebp + 0xc], eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 0x14
xor eax, eax
cmp dword [ebp + 0xc], 1
pop edi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x44ff30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp + 8]
push eax
push 1
push edi
push ecx
call dword [sym.imp.MSVCR100.dll_fwrite]
add dword [esi + 0xc], edi
add esp, 0x10
xor edx, edx
cmp eax, 1
pop edi
sete al
pop esi
pop ebp
ret 8
Function at 0x45a6f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0048f720
mov eax, dword [0x5750c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, edx
mov dword [ebp - 0x200c], eax
mov dword [ebp - 0x2008], ecx
test edi, edi
jne 0x45a72e
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045f06e
mov esp, ebp
pop ebp
ret
push esi
test edi, edi
jle 0x45a788
mov eax, 0x2000
cmp edi, 0x2000
ja 0x45a742
mov eax, edi
mov edx, dword [ebp - 0x200c]
push edx
push eax
lea eax, [ebp - 0x2004]
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fread]
mov esi, eax
add esp, 0x10
test esi, esi
js 0x45a79a
je 0x45a7c2
mov ecx, dword [ebp - 0x2008]
push ecx
push esi
lea edx, [ebp - 0x2004]
push 1
push edx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, esi
jne 0x45a7e6
sub edi, esi
test edi, edi
jg 0x45a733
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045f06e
mov esp, ebp
pop ebp
ret
call dword [sym.imp.MSVCR100.dll__errno]
mov eax, dword [eax]
test ebx, ebx
je 0x45a7af
mov dword [ebx], 5
mov dword [ebx + 4], eax
pop esi
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045f06e
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x45a7d3
mov dword [ebx], 0x11
mov dword [ebx + 4], 0
pop esi
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045f06e
mov esp, ebp
pop ebp
ret
call dword [sym.imp.MSVCR100.dll__errno]
mov eax, dword [eax]
test ebx, ebx
je 0x45a7fb
mov dword [ebx], 6
mov dword [ebx + 4], eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
or eax, 0xffffffff
pop edi
call fcn.0045f06e
mov esp, ebp
pop ebp
ret