joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10011f10
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.CreateServiceA
push str.ADVAPI32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.LockServiceDatabase
push str.ADVAPI32.dll
mov ebx, eax
call esi
push eax
call edi
push str.ChangeServiceConfig2A
push str.ADVAPI32.dll
mov ebp, eax
call esi
push eax
call edi
push str.UnlockServiceDatabase
push str.ADVAPI32.dll
mov dword [esp + 0x1c], eax
call esi
push eax
call edi
push str.OpenSCManagerA
push str.ADVAPI32.dll
mov dword [esp + 0x20], eax
call esi
push eax
call edi
push 0xf003f
push 0
push 0
call eax
test eax, eax
mov dword [0x10020bfc], eax
jne 0x10011f96
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 0x20]
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
push 2
push 0x110
push 0xf01ff
push 0x1001e550
push 0x1001e4d0
push eax
call ebx
test eax, eax
mov dword [0x10020bf8], eax
jne 0x10011fd1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov edx, dword [0x10020bfc]
push edx
call ebp
mov ecx, dword [0x10020bf8]
mov esi, eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x1001e618
push eax
push 1
push ecx
call dword [esp + 0x20]
push esi
call dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret

Function at 0x10012010
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.LockServiceDatabase
push str.ADVAPI32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.ChangeServiceConfig2A
push str.ADVAPI32.dll
mov ebx, eax
call esi
push eax
call edi
push str.UnlockServiceDatabase
push str.ADVAPI32.dll
mov ebp, eax
call esi
push eax
call edi
push str.OpenSCManagerA
push str.ADVAPI32.dll
mov dword [esp + 0x24], eax
call esi
push eax
call edi
push str.OpenServiceA
push str.ADVAPI32.dll
mov dword [esp + 0x18], eax
call esi
push eax
call edi
push str.CloseServiceHandle
push str.ADVAPI32.dll
mov dword [esp + 0x1c], eax
call esi
push eax
call edi
push 0xf003f
push 0
push 0
mov dword [esp + 0x24], eax
call dword [esp + 0x1c]
mov esi, eax
push 0xf003f
push 0x1001e4d0
push esi
call dword [esp + 0x20]
mov edi, eax
xor eax, eax
mov dword [esp + 0x24], eax
mov ecx, 1
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x30], eax
push esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0x15180
mov dword [esp + 0x3c], 0x3e8
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x30], 3
mov dword [esp + 0x34], ecx
mov dword [esp + 0x2c], eax
call ebx
lea edx, [esp + 0x20]
push edx
push 2
push edi
call ebp
push edi
call dword [esp + 0x1c]
push esi
call dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x3c
ret
Function at 0x10012c90
Capabilities:
Link many functions at runtime

Disassembly:
call fcn.100129a0
test eax, eax
jne 0x10012c9e
call fcn.100123d0
call fcn.10012b30
test eax, eax
jne 0x10012cac
jmp fcn.10012670
ret
Function at 0x100044e3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x38], ebx
je 0x10004530
cmp byte [esi + 0x3d], bl
je 0x10004530
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1000455f
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, ebx
je 0x10004537
sub eax, 1
je 0x1000453a
dec eax
sub eax, 1
jne 0x1000455f
mov byte [esi + 0x3d], bl
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
mov byte [esi + 0x3d], bl
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10004557
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10059367
add esp, 0x10
cmp edi, eax
jne 0x1000455f
cmp byte [esi + 0x3d], bl
sete al
jmp 0x10004532
xor al, al
jmp 0x10004532

Function at 0x100069b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x30]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x100069ca
xor eax, eax
jmp 0x10006a9a
mov eax, dword [esi + 0x20]
push ebp
mov ecx, dword [eax]
test ecx, ecx
je 0x100069f8
mov edx, dword [esi + 0x30]
mov ebp, dword [edx]
lea eax, [ecx + ebp]
cmp ecx, eax
jae 0x100069f8
lea ecx, [ebp - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x10006a99
cmp dword [esi + 0x4c], 0
je 0x10006a97
mov ecx, esi
call fcn.10004ccf
mov ecx, dword [esi + 0x38]
mov al, bl
test ecx, ecx
jne 0x10006a24
push dword [esi + 0x4c]
push eax
call fcn.10001e78
test al, al
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x10006a97
mov byte [esp + 0x10], al
lea eax, [esp + 0x3c]
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x21]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x10006a68
sub eax, 1
je 0x10006a68
dec eax
sub eax, 1
jne 0x10006a97
push dword [esi + 0x4c]
push dword [esp + 0x14]
jmp 0x10006a16
mov ebp, dword [esp + 0x3c]
lea eax, [esp + 0x18]
sub ebp, eax
je 0x10006a87
push dword [esi + 0x4c]
push ebp
push 1
push eax
call fcn.10059367
add esp, 0x10
cmp ebp, eax
jne 0x10006a97
lea eax, [esp + 0x10]
mov byte [esi + 0x3d], 1
cmp dword [esp + 0x14], eax
mov eax, ebx
jne 0x10006a99
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x28
ret 4
Function at 0x10007ef9
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 0x10007f19
jl 0x10007f10
test edi, edi
jne 0x10007f19
xor eax, eax
xor edx, edx
jmp 0x10007fe0
cmp dword [ebp + 0x38], 0
je 0x10007f2f
push esi
push edi
push dword [esp + 0x18]
call fcn.10007fea
jmp 0x10007fe0
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10007f73
mov eax, dword [ebp + 0x2c]
cmp dword [eax], 0
jbe 0x10007f73
cmp dword [eax], edi
mov esi, edi
mov ebx, dword [esp + 0x14]
cmovb esi, dword [eax]
push esi
push ecx
push ebx
call fcn.100541c0
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 0x10007f7b
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
cmp dword [ebp + 0x4c], 0
mov ecx, ebx
je 0x10007fd6
mov ecx, ebp
call fcn.10004ccf
mov edx, dword [esp + 0x14]
mov ecx, ebx
jmp 0x10007fb6
push dword [ebp + 0x4c]
push eax
push 1
push edx
call fcn.10058ce0
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 0x10007fe6
mov eax, 0xfff
cmp ebx, eax
ja 0x10007f92
test ecx, ecx
je 0x10007fd6
push dword [ebp + 0x4c]
push ebx
push 1
push edx
call fcn.10058ce0
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 0x10007fd8

Function at 0x100080be
Capabilities:
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x100080df
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.10008194
jmp 0x1000818e
mov eax, dword [ebx + 0x20]
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ecx, dword [eax]
mov dword [esp + 0xc], esi
push edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x14], edi
test ecx, ecx
je 0x10008102
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x10008104
xor eax, eax
cdq
mov ebp, eax
mov eax, edx
mov dword [esp + 0x20], eax
test edi, edi
jl 0x1000817f
jg 0x10008117
test esi, esi
je 0x1000817f
test eax, eax
jl 0x10008161
jg 0x10008121
test ebp, ebp
je 0x10008161
cmp edi, eax
jg 0x10008131
jl 0x1000812b
cmp esi, ebp
jae 0x10008131
mov ebp, esi
mov dword [esp + 0x20], edi
push ebp
push dword [esp + 0x20]
push ecx
call fcn.100541c0
mov eax, dword [ebx + 0x30]
add esp, 0xc
sub esi, ebp
sbb edi, dword [esp + 0x20]
sub dword [eax], ebp
mov eax, dword [ebx + 0x20]
add dword [eax], ebp
mov eax, dword [esp + 0x1c]
add eax, ebp
test edi, edi
jl 0x1000817f
jg 0x10008165
test esi, esi
je 0x1000817f
jmp 0x10008165
mov eax, dword [esp + 0x1c]
cmp dword [ebx + 0x4c], 0
je 0x1000817f
push dword [ebx + 0x4c]
push esi
push 1
push eax
call fcn.10059367
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0xc
Function at 0x10010b07
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x10078b1d
call fcn.100521c0
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.100101fd
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 0x10010c07
mov edi, dword [ebp - 0x10]
mov esi, dword [ebx]
mov dword [ebp - 0x1c], esi
mov eax, dword [esi]
cmp dword [eax + 0x20], 0x534030
je 0x10010bb3
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.10010403
add esp, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x10010ba2
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0x44]
call fcn.10004dfb
jmp 0x10010bf4
mov ecx, dword [0x1011a4d4]
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 0x10010bf4
test dword [esi + 0x1c], 0x2400
jne 0x10010bf4
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.10010214
mov eax, dword [ebx + 4]
mov ebx, eax
test eax, eax
jne 0x10010b5f
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 0x10010b52
mov edi, 0xb992c0
mov dword [ebp - 0x14], edi
mov esi, dword [edi]
test esi, esi
je 0x10010c7d
mov edi, dword [ebp - 0x18]
mov ebx, dword [esi]
mov ecx, dword [0x1011a4d4]
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 0x10010c73
test dword [ebx + 0x1c], 0x2400
jne 0x10010c73
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.10010214
mov esi, dword [esi + 4]
test esi, esi
jne 0x10010c2e
mov edi, dword [ebp - 0x14]
add edi, 0xc
mov dword [ebp - 0x14], edi
cmp edi, 0xb99ec0
jl 0x10010c25
mov eax, dword [ebp - 0x24]
mov esi, dword [eax]
mov dword [ebp - 0x18], esi
cmp esi, eax
je 0x10010cc2
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.1000e84c
mov esi, dword [ebp - 0x18]
cmp esi, dword [ebp - 0x24]
jne 0x10010c97
lea eax, [ebp - 0x24]
push eax
mov ecx, eax
call fcn.100102a6
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x10018aa4
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x100787b5
call fcn.100521c0
sub esp, 0x20
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
je 0x10018bda
push 0x1007f164
push dword [ebp + 8]
call fcn.10060f56
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x10018bda
push 0xc
call fcn.10051f72
pop ecx
mov dword [ebp + 8], eax
and dword [ebp - 4], 0
test eax, eax
je 0x10018af5
mov ecx, eax
call fcn.1000bcaf
mov esi, eax
jmp 0x10018af7
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.10058ce0
add esp, 0x10
cmp byte [ebp - 0x2c], 0x43
jne 0x10018bbe
cmp byte [ebp - 0x2b], 0x4f
jne 0x10018bbe
cmp byte [ebp - 0x2a], 0x4c
jne 0x10018bbe
mov eax, dword [ebp - 0x28]
add eax, 0xffffffe8
push eax
call fcn.10051f64
mov ecx, dword [ebp - 0x28]
mov edi, eax
push ebx
push 1
add ecx, 0xffffffe8
push ecx
push edi
call fcn.10058ce0
mov al, byte [ebp - 0x29]
add esp, 0x14
cmp al, 0x4c
jne 0x10018b71
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax]
push eax
push edi
call dword [0x100a8178]
add esp, 0xc
jmp 0x10018bac
cmp al, 0x32
jne 0x10018b8e
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 [0x100a817c]
jmp 0x10018ba9
cmp al, 0x33
jne 0x10018bac
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 [0x100a8180]
add esp, 0x10
push edi
call fcn.10051fb0
push ebx
call fcn.10058451
pop ecx
pop ecx
mov eax, esi
jmp 0x10018bdc
test esi, esi
je 0x10018bd3
mov ecx, esi
call fcn.1000bce1
push 0xc
push esi
call fcn.10051fa2
pop ecx
pop ecx
push ebx
call fcn.10058451
pop ecx
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x1002a3b8
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword fs:[0x2c]
sub esp, 0x24
mov ecx, dword [0x101eaa78]
push ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x101b3f98]
push ebp
push esi
push edi
cmp eax, dword [ecx + 4]
jg 0x1002a4de
mov ebp, dword [esp + 0x38]
xor edi, edi
and dword [esp + 0x10], 0
inc edi
and dword [esp + 0x38], 0
mov ecx, dword [esp + 0x40]
mov ebx, dword [esp + 0x3c]
test ecx, ecx
je 0x1002a4d4
mov esi, dword [0x101b3f94]
xor edx, edx
mov eax, ebx
mov dword [esp + 0x3c], 1
div esi
sub esi, edx
cmp ecx, esi
cmovle esi, ecx
test ebx, ebx
je 0x1002a461
push 7
pop ecx
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1002a461
cmp dword [esp + 0x28], 0x1000
jne 0x1002a461
test byte [esp + 0x2c], 0xee
je 0x1002a461
mov ecx, dword [esp + 0x24]
cmp esi, ecx
ja 0x1002a461
mov eax, ebx
sub ecx, esi
sub eax, dword [esp + 0x18]
cmp eax, ecx
jbe 0x1002a488
lea eax, [esp + 0x10]
push eax
push 0x40
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1002a480
xor edi, edi
push esi
push edi
push ebp
call fcn.10054740
jmp 0x1002a494
mov dword [esp + 0x38], 1
push esi
push ebx
push ebp
call fcn.100541c0
mov edi, dword [esp + 0x48]
add esp, 0xc
cmp dword [esp + 0x38], 0
je 0x1002a4c0
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1002a4c0
push ebx
push str.__page_read___could_not_restore_original_permissions_for_ptr__p
call fcn.1005013d
pop ecx
pop ecx
mov ecx, dword [esp + 0x40]
add ebp, esi
add ebx, esi
sub ecx, esi
mov dword [esp + 0x40], ecx
jne 0x1002a400
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov esi, 0x101b3f98
push esi
call fcn.100520e8
cmp dword [0x101b3f98], 0xffffffff
pop ecx
jne 0x1002a3df
call fcn.1002a50d
push esi
mov dword [0x101b3f94], eax
call fcn.1005209e
pop ecx
jmp 0x1002a3df

Function at 0x1002a50d
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x100d55b0]
sub esp, 0x24
cmp eax, 0xffffffff
jne 0x1002a52f
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov dword [0x100d55b0], eax
leave
ret
Function at 0x1002a531
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword fs:[0x2c]
sub esp, 0x24
mov ecx, dword [0x101eaa78]
push ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x101b3f90]
push ebp
push esi
push edi
cmp eax, dword [ecx + 4]
jg 0x1002a648
mov ebx, dword [esp + 0x38]
xor edi, edi
and dword [esp + 0x10], 0
inc edi
and dword [esp + 0x38], 0
mov ebp, dword [esp + 0x40]
test ebp, ebp
je 0x1002a63e
mov esi, dword [0x101b3f8c]
xor edx, edx
mov eax, ebx
mov dword [esp + 0x40], 1
div esi
sub esi, edx
cmp ebp, esi
cmovle esi, ebp
test ebx, ebx
je 0x1002a5d6
push 7
pop ecx
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1002a5d6
cmp dword [esp + 0x28], 0x1000
jne 0x1002a5d6
test byte [esp + 0x2c], 0xcc
je 0x1002a5d6
mov ecx, dword [esp + 0x24]
cmp esi, ecx
ja 0x1002a5d6
mov eax, ebx
sub ecx, esi
sub eax, dword [esp + 0x18]
cmp eax, ecx
jbe 0x1002a5f5
lea eax, [esp + 0x10]
push eax
push 0x40
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1002a5ed
xor edi, edi
jmp 0x1002a607
mov dword [esp + 0x38], 1
push esi
push dword [esp + 0x40]
push ebx
call fcn.100541c0
mov edi, dword [esp + 0x4c]
add esp, 0xc
cmp dword [esp + 0x38], 0
je 0x1002a630
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1002a630
push ebx
push str.__page_write___could_not_restore_original_permissions_for_ptr__p
call fcn.1005013d
pop ecx
pop ecx
add dword [esp + 0x3c], esi
add ebx, esi
sub ebp, esi
jne 0x1002a575
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov esi, 0x101b3f90
push esi
call fcn.100520e8
cmp dword [0x101b3f90], 0xffffffff
pop ecx
jne 0x1002a558
call fcn.1002a50d
push esi
mov dword [0x101b3f8c], eax
call fcn.1005209e
pop ecx
jmp 0x1002a558
Function at 0x1003f422
Capabilities:
Terminate process

Disassembly:
mov edx, dword [esp + 4]
mov cl, byte [edx]
test cl, cl
je 0x1003f45e
cmp byte [edx + 1], 0
jne 0x1003f44e
cmp cl, 0x61
jl 0x1003f443
cmp cl, 0x7a
jg 0x1003f443
movsx eax, cl
sub eax, 0x20
ret
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x1003f44e
movsx eax, cl
ret
cmp cl, 0x26
jne 0x1003f45e
lea eax, [edx + 1]
push eax
call fcn.1003f4bc
pop ecx
ret
mov eax, dword [str.lbutton]
xor ecx, ecx
push ebx
push esi
jmp 0x1003f49c
mov esi, edx
mov bl, byte [eax]
cmp bl, byte [esi]
jne 0x1003f48b
test bl, bl
je 0x1003f487
mov bl, byte [eax + 1]
cmp bl, byte [esi + 1]
jne 0x1003f48b
add eax, 2
add esi, 2
test bl, bl
jne 0x1003f46b
xor eax, eax
jmp 0x1003f490
sbb eax, eax
or eax, 1
test eax, eax
je 0x1003f4b3
mov eax, dword [ecx*8 + 0x100d802c]
inc ecx
test eax, eax
jne 0x1003f469
push edx
push str.Unknown_key:__s
call fcn.1005013d
pop ecx
pop ecx
or eax, 0xffffffff
pop esi
pop ebx
ret
mov eax, dword [ecx*8 + 0x100d8020]
jmp 0x1003f4b0

Function at 0x1003fd51
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
sub ecx, eax
push 3
pop edx
movss xmm0, dword [ecx + eax]
xorps xmm0, xmmword [0x10081190]
movss dword [eax], xmm0
lea eax, [eax + 4]
sub edx, 1
jne 0x1003fd5e
ret
Function at 0x10044e09
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x1fc
push ebp
push esi
push str.LoadSpriteTexture__
call fcn.1005070a
pop ecx
mov ecx, dword [0x101dd284]
xor ebp, ebp
mov esi, ebp
test ecx, ecx
je 0x10044e30
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [0x101dd280]
mov edx, 0x100
push ebp
push 0x101dd284
push 1
push 0x15
push ebp
push 1
push edx
mov dword [0x101dd284], ebp
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x5c]
test eax, eax
jns 0x10044e60
push str.Failed_to_create_sprite_texture_
jmp 0x10044ec4
push str.mod_sa.raw
push 0x101ea5a0
push str._smod_sa_s
lea eax, [esp + 0x1c]
push 0x104
push eax
call fcn.1000826b
lea eax, [esp + 0x24]
push 0x1007f164
push eax
call fcn.10060f56
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x10044ea8
lea eax, [esp + 0x10]
push eax
push str.Failed_to_open__s_
call fcn.1005013d
pop ecx
jmp 0x10044ec9
mov eax, dword [0x101dd284]
lea edx, [esp + 8]
push ebp
push ebp
push edx
mov ecx, dword [eax]
push ebp
push eax
call dword [ecx + 0x4c]
test eax, eax
jns 0x10044eed
push str.Failed_to_lock_texture_
call fcn.1005013d
pop ecx
mov ecx, dword [0x101dd284]
test ecx, ecx
je 0x10044ee0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x101dd284], ebp
test esi, esi
je 0x10044f57
push esi
call fcn.10058451
pop ecx
jmp 0x10044f57
push ebx
push edi
mov edi, dword [esp + 0x14]
push 0x78
pop ebx
push esi
push 1
lea eax, [esp + 0x124]
push 0xf0
push eax
call fcn.10058ce0
add esp, 0x10
lea edx, [edi + 2]
mov cl, byte [esp + ebp + 0x11c]
mov al, cl
shl cl, 5
and al, 0xf8
mov byte [edx + 1], cl
inc ebp
mov byte [edx - 2], al
mov byte [edx - 1], al
mov byte [edx], al
lea edx, [edx + 4]
cmp ebp, 0xf0
jl 0x10044f11
add edi, dword [esp + 0x10]
push 0
pop ebp
sub ebx, 1
jne 0x10044ef6
mov eax, dword [0x101dd284]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
push esi
call fcn.10058451
pop ecx
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x1fc
ret
Function at 0x10046734
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push str.renderObjectTexts__
call fcn.1005070a
xor esi, esi
push esi
push 0xffffffffffffffff
call fcn.1002a80b
mov ecx, dword [0x1015448c]
add esp, 0xc
mov ebx, eax
cmp dword [ecx + 0x5e8c0], esi
jne 0x100468d9
test ebx, ebx
je 0x100468d9
mov ecx, dword [0x101d5644]
mov ecx, dword [ecx + 0x3de]
cmp dword [ecx + 0x14], esi
je 0x100468d9
push 9
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1004679d
cmp dword [0x101b8eaf], esi
jne 0x100468d9
mov eax, dword [0x101d565c]
cmp dword [eax], esi
jne 0x100468d9
push edi
mov edi, 0x20d4
mov eax, dword [0x101d5644]
mov eax, dword [eax + 0x3de]
mov eax, dword [eax + 0x14]
cmp dword [edi + eax - 0x20d0], 1
jne 0x100468c8
mov eax, dword [edi + eax]
test eax, eax
je 0x100468c8
mov eax, dword [eax + 0x40]
test eax, eax
je 0x100468c8
mov eax, dword [eax + 0x14]
lea ecx, [ebp - 0x10]
push ecx
add eax, 0x30
push eax
call fcn.1003fcdf
lea eax, [ebp - 0x10]
push eax
call fcn.1003fdd5
add esp, 0xc
test eax, eax
jne 0x100468c8
mov eax, dword [ebx + 0x14]
add eax, 0x30
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.1003fcef
fstp dword [ebp - 4]
movss xmm0, dword [ebp - 4]
comiss xmm0, dword [0x101d007b]
pop ecx
pop ecx
ja 0x100468c8
movss xmm0, dword [ebp - 0x10]
lea eax, [ebp - 0x28]
movss dword [ebp - 0x1c], xmm0
movss xmm0, dword [ebp - 0xc]
push eax
movss dword [ebp - 0x18], xmm0
lea eax, [ebp - 0x1c]
movss xmm0, dword [ebp - 8]
push eax
movss dword [ebp - 0x14], xmm0
call fcn.100437a2
movss xmm0, dword [0x1007c140]
comiss xmm0, dword [ebp - 0x20]
pop ecx
pop ecx
ja 0x100468c8
mov eax, dword [0x101d5644]
mov eax, dword [eax + 0x3de]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + edi]
mov eax, dword [eax + 0x40]
movzx eax, word [eax + 0x22]
push eax
push esi
push str.Object:__d__ModelID:__d
lea eax, [ebp - 0x48]
push 0x1f
push eax
call fcn.100435e3
movss xmm0, dword [ebp - 0x24]
lea eax, [ebp - 0x48]
subss xmm0, dword [0x100819d8]
add esp, 0x14
push eax
push 0xffc8c800
push ecx
push ecx
mov ecx, dword [0x101dd3e4]
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp - 0x28]
movss dword [esp], xmm0
call fcn.10043103
add edi, 4
inc esi
cmp edi, 0x41a4
jl 0x100467b0
pop edi
pop esi
pop ebx
leave
ret