joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100078f2
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 0x10007912
jl 0x10007909
test edi, edi
jne 0x10007912
xor eax, eax
xor edx, edx
jmp 0x100079d9
cmp dword [ebp + 0x38], 0
je 0x10007928
push esi
push edi
push dword [esp + 0x18]
call fcn.100079e3
jmp 0x100079d9
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1000796c
mov eax, dword [ebp + 0x2c]
cmp dword [eax], 0
jbe 0x1000796c
cmp dword [eax], edi
mov esi, edi
mov ebx, dword [esp + 0x14]
cmovb esi, dword [eax]
push esi
push ecx
push ebx
call fcn.1005cb50
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 0x10007974
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
cmp dword [ebp + 0x4c], 0
mov ecx, ebx
je 0x100079cf
mov ecx, ebp
call fcn.10004996
mov edx, dword [esp + 0x14]
mov ecx, ebx
jmp 0x100079af
push dword [ebp + 0x4c]
push eax
push 1
push edx
call fcn.100617ca
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 0x100079df
mov eax, 0xfff
cmp ebx, eax
ja 0x1000798b
test ecx, ecx
je 0x100079cf
push dword [ebp + 0x4c]
push ebx
push 1
push edx
call fcn.100617ca
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 0x100079d1

Function at 0x10007ab7
Capabilities:
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x10007ad8
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.10007b8d
jmp 0x10007b87
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 0x10007afb
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x10007afd
xor eax, eax
cdq
mov ebp, eax
mov eax, edx
mov dword [esp + 0x20], eax
test edi, edi
jl 0x10007b78
jg 0x10007b10
test esi, esi
je 0x10007b78
test eax, eax
jl 0x10007b5a
jg 0x10007b1a
test ebp, ebp
je 0x10007b5a
cmp edi, eax
jg 0x10007b2a
jl 0x10007b24
cmp esi, ebp
jae 0x10007b2a
mov ebp, esi
mov dword [esp + 0x20], edi
push ebp
push dword [esp + 0x20]
push ecx
call fcn.1005cb50
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 0x10007b78
jg 0x10007b5e
test esi, esi
je 0x10007b78
jmp 0x10007b5e
mov eax, dword [esp + 0x1c]
cmp dword [ebx + 0x4c], 0
je 0x10007b78
push dword [ebx + 0x4c]
push esi
push 1
push eax
call fcn.10061e51
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 0x100111d8
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1007fbff
call fcn.1005ab48
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.100108ce
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 0x100112d8
mov edi, dword [ebp - 0x10]
mov esi, dword [ebx]
mov dword [ebp - 0x1c], esi
mov eax, dword [esi]
cmp dword [eax + 0x20], 0x534030
je 0x10011284
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.10010ad4
add esp, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x10011273
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0x44]
call fcn.10004af1
jmp 0x100112c5
mov ecx, dword [0x101228a0]
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 0x100112c5
test dword [esi + 0x1c], 0x2400
jne 0x100112c5
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.100108e5
mov eax, dword [ebx + 4]
mov ebx, eax
test eax, eax
jne 0x10011230
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 0x10011223
mov edi, 0xb992c0
mov dword [ebp - 0x14], edi
mov esi, dword [edi]
test esi, esi
je 0x1001134e
mov edi, dword [ebp - 0x18]
mov ebx, dword [esi]
mov ecx, dword [0x101228a0]
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 0x10011344
test dword [ebx + 0x1c], 0x2400
jne 0x10011344
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.100108e5
mov esi, dword [esi + 4]
test esi, esi
jne 0x100112ff
mov edi, dword [ebp - 0x14]
add edi, 0xc
mov dword [ebp - 0x14], edi
cmp edi, 0xb99ec0
jl 0x100112f6
mov eax, dword [ebp - 0x24]
mov esi, dword [eax]
mov dword [ebp - 0x18], esi
cmp esi, eax
je 0x10011393
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.1000ef1d
mov esi, dword [ebp - 0x18]
cmp esi, dword [ebp - 0x24]
jne 0x10011368
lea eax, [ebp - 0x24]
push eax
mov ecx, eax
call fcn.10010977
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x10019175
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1007f897
call fcn.1005ab48
sub esp, 0x20
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
je 0x100192ab
push 0x100863e4
push dword [ebp + 8]
call fcn.10069f1a
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x100192ab
push 0xc
call fcn.1005a8fa
pop ecx
mov dword [ebp + 8], eax
and dword [ebp - 4], 0
test eax, eax
je 0x100191c6
mov ecx, eax
call fcn.1000c382
mov esi, eax
jmp 0x100191c8
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.100617ca
add esp, 0x10
cmp byte [ebp - 0x2c], 0x43
jne 0x1001928f
cmp byte [ebp - 0x2b], 0x4f
jne 0x1001928f
cmp byte [ebp - 0x2a], 0x4c
jne 0x1001928f
mov eax, dword [ebp - 0x28]
add eax, 0xffffffe8
push eax
call fcn.1005a8ec
mov ecx, dword [ebp - 0x28]
mov edi, eax
push ebx
push 1
add ecx, 0xffffffe8
push ecx
push edi
call fcn.100617ca
mov al, byte [ebp - 0x29]
add esp, 0x14
cmp al, 0x4c
jne 0x10019242
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax]
push eax
push edi
call dword [0x100b0218]
add esp, 0xc
jmp 0x1001927d
cmp al, 0x32
jne 0x1001925f
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 [0x100b021c]
jmp 0x1001927a
cmp al, 0x33
jne 0x1001927d
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 [0x100b0220]
add esp, 0x10
push edi
call fcn.1005a938
push ebx
call fcn.10060f3b
pop ecx
pop ecx
mov eax, esi
jmp 0x100192ad
test esi, esi
je 0x100192a4
mov ecx, esi
call fcn.1000c3b4
push 0xc
push esi
call fcn.1005a92a
pop ecx
pop ecx
push ebx
call fcn.10060f3b
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 0x1002a949
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword fs:[0x2c]
sub esp, 0x24
mov ecx, dword [0x101b9a60]
push ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10183f40]
push ebp
push esi
push edi
cmp eax, dword [ecx + 4]
jg 0x1002aa6f
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 0x1002aa65
mov esi, dword [0x10183f3c]
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 0x1002a9f2
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 0x1002a9f2
cmp dword [esp + 0x28], 0x1000
jne 0x1002a9f2
test byte [esp + 0x2c], 0xee
je 0x1002a9f2
mov ecx, dword [esp + 0x24]
cmp esi, ecx
ja 0x1002a9f2
mov eax, ebx
sub ecx, esi
sub eax, dword [esp + 0x18]
cmp eax, ecx
jbe 0x1002aa19
lea eax, [esp + 0x10]
push eax
push 0x40
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1002aa11
xor edi, edi
push esi
push edi
push ebp
call fcn.1005d0d0
jmp 0x1002aa25
mov dword [esp + 0x38], 1
push esi
push ebx
push ebp
call fcn.1005cb50
mov edi, dword [esp + 0x48]
add esp, 0xc
cmp dword [esp + 0x38], 0
je 0x1002aa51
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 0x1002aa51
push ebx
push str.__page_read___could_not_restore_original_permissions_for_ptr__p
call fcn.10058778
pop ecx
pop ecx
mov ecx, dword [esp + 0x40]
add ebp, esi
add ebx, esi
sub ecx, esi
mov dword [esp + 0x40], ecx
jne 0x1002a991
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov esi, 0x10183f40
push esi
call fcn.1005aa70
cmp dword [0x10183f40], 0xffffffff
pop ecx
jne 0x1002a970
call fcn.1002aa9e
push esi
mov dword [0x10183f3c], eax
call fcn.1005aa26
pop ecx
jmp 0x1002a970

Function at 0x1002aa9e
Capabilities:
Get system information on windows

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

Disassembly:
mov eax, dword fs:[0x2c]
sub esp, 0x24
mov ecx, dword [0x101b9a60]
push ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10183f38]
push ebp
push esi
push edi
cmp eax, dword [ecx + 4]
jg 0x1002abd9
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 0x1002abcf
mov esi, dword [0x10183f34]
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 0x1002ab67
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 0x1002ab67
cmp dword [esp + 0x28], 0x1000
jne 0x1002ab67
test byte [esp + 0x2c], 0xcc
je 0x1002ab67
mov ecx, dword [esp + 0x24]
cmp esi, ecx
ja 0x1002ab67
mov eax, ebx
sub ecx, esi
sub eax, dword [esp + 0x18]
cmp eax, ecx
jbe 0x1002ab86
lea eax, [esp + 0x10]
push eax
push 0x40
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1002ab7e
xor edi, edi
jmp 0x1002ab98
mov dword [esp + 0x38], 1
push esi
push dword [esp + 0x40]
push ebx
call fcn.1005cb50
mov edi, dword [esp + 0x4c]
add esp, 0xc
cmp dword [esp + 0x38], 0
je 0x1002abc1
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 0x1002abc1
push ebx
push str.__page_write___could_not_restore_original_permissions_for_ptr__p
call fcn.10058778
pop ecx
pop ecx
add dword [esp + 0x3c], esi
add ebx, esi
sub ebp, esi
jne 0x1002ab06
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov esi, 0x10183f38
push esi
call fcn.1005aa70
cmp dword [0x10183f38], 0xffffffff
pop ecx
jne 0x1002aae9
call fcn.1002aa9e
push esi
mov dword [0x10183f34], eax
call fcn.1005aa26
pop ecx
jmp 0x1002aae9
Function at 0x1003c572
Capabilities:
Connect to http server
Create http request

Disassembly:
mov eax, 0x100815dc
call fcn.1005ab48
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
lea eax, [ebp + 8]
xor ebx, ebx
push eax
lea ecx, [edi + 8]
mov dword [ebp - 4], ebx
call fcn.1003c536
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0x30]
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
lea ecx, [ebp + 0x3c]
push 4
push ecx
push 2
push eax
mov dword [edi], eax
call esi
push 4
lea eax, [ebp + 0x3c]
push eax
push 5
push dword [edi]
call esi
push 4
lea eax, [ebp + 0x3c]
push eax
push 6
push dword [edi]
call esi
push ebx
push ebx
push 3
push ebx
push ebx
push dword [ebp + 0x38]
push dword [ebp + 0x34]
push dword [edi]
call dword [sym.imp.WININET.dll_InternetConnectA]
lea ecx, [ebp + 8]
mov dword [edi + 4], eax
call fcn.1002a877
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x38

Function at 0x1003c67a
Capabilities:
Read data from internet
Receive data

Disassembly:
mov eax, 0x100815f5
call fcn.1005ab48
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov bh, 1
mov dword [ebp - 0x14], ecx
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.1003c50a
pop ecx
pop ecx
mov esi, dword [eax]
and dword [eax], 0
mov dword [ebp - 0x18], esi
and dword [ebp - 4], 0
cmp dword [ebp - 0x10], 0
je 0x1003c6bc
push dword [ebp - 0x10]
call fcn.1005a938
pop ecx
and dword [ebp + 0xc], 0
jmp 0x1003c6e2
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1003c6fa
mov ecx, dword [ebp - 0x14]
mov byte [esi + eax], 0
push dword [ebp + 0xc]
push esi
lea ecx, [ecx + 8]
call fcn.1003c61d
mov bh, al
test bh, bh
je 0x1003c6fa
lea eax, [ebp + 0xc]
push eax
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
setne bl
test eax, eax
jne 0x1003c6c2
and bl, bh
test esi, esi
je 0x1003c707
push esi
call fcn.1005a938
pop ecx
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x1003fb1a
Capabilities:
Terminate process

Disassembly:
mov edx, dword [esp + 4]
mov cl, byte [edx]
test cl, cl
je 0x1003fb56
cmp byte [edx + 1], 0
jne 0x1003fb46
cmp cl, 0x61
jl 0x1003fb3b
cmp cl, 0x7a
jg 0x1003fb3b
movsx eax, cl
sub eax, 0x20
ret
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x1003fb46
movsx eax, cl
ret
cmp cl, 0x26
jne 0x1003fb56
lea eax, [edx + 1]
push eax
call fcn.1003fbb4
pop ecx
ret
mov eax, dword [str.lbutton]
xor ecx, ecx
push ebx
push esi
jmp 0x1003fb94
mov esi, edx
mov bl, byte [eax]
cmp bl, byte [esi]
jne 0x1003fb83
test bl, bl
je 0x1003fb7f
mov bl, byte [eax + 1]
cmp bl, byte [esi + 1]
jne 0x1003fb83
add eax, 2
add esi, 2
test bl, bl
jne 0x1003fb63
xor eax, eax
jmp 0x1003fb88
sbb eax, eax
or eax, 1
test eax, eax
je 0x1003fbab
mov eax, dword [ecx*8 + 0x100e00a4]
inc ecx
test eax, eax
jne 0x1003fb61
push edx
push str.Unknown_key:__s
call fcn.10058778
pop ecx
pop ecx
or eax, 0xffffffff
pop esi
pop ebx
ret
mov eax, dword [ecx*8 + 0x100e0098]
jmp 0x1003fba8

Function at 0x10040449
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 [0x100833e0]
movss dword [eax], xmm0
lea eax, [eax + 4]
sub edx, 1
jne 0x10040456
ret
Function at 0x10044bbd
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x1008172d
call fcn.1005ab48
sub esp, 0x2d8
cmp dword [0x101a553c], 0
je 0x10044dc1
call fcn.1002b13b
test eax, eax
jne 0x10044dc1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x101b94d4]
add ecx, 0x3e8
cmp eax, ecx
jbe 0x10044dc1
push 1
lea ecx, [ebp - 0xe4]
call fcn.1000258a
xor eax, eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
push str.friends.ini
push 0x101b9580
push str._swestern_s
lea eax, [ebp - 0x2e4]
mov byte [ebp - 4], 1
push 0x200
push eax
call fcn.10007ca2
add esp, 0x14
lea eax, [ebp - 0x2e4]
lea ecx, [ebp - 0xe4]
push 0x40
push 1
push eax
call fcn.100062b2
mov eax, dword [0x1015c858]
push 0xfb0
add eax, 0x2ae9
push 0
push eax
call fcn.1005d0d0
mov eax, dword [0x1015c858]
push 0x14e4
add eax, 0x121
push 0
push eax
call fcn.1005d0d0
and dword [0x101b94d0], 0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.10001a48
add esp, 0x20
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x10044d69
push esi
push edi
mov ecx, dword [0x101a553c]
xor esi, esi
movzx eax, word [ecx]
cmp eax, esi
je 0x10044d11
cmp dword [ecx + esi*4 + 0x26], 0
je 0x10044d11
cmp dword [ebp - 0x18], 0x10
lea edi, [ebp - 0x2c]
push esi
cmovae edi, dword [ebp - 0x2c]
call fcn.100411df
pop ecx
mov cl, byte [edi]
cmp cl, byte [eax]
jne 0x10044d02
test cl, cl
je 0x10044cfe
mov cl, byte [edi + 1]
cmp cl, byte [eax + 1]
jne 0x10044d02
add edi, 2
add eax, 2
test cl, cl
jne 0x10044ce2
xor eax, eax
jmp 0x10044d07
sbb eax, eax
or eax, 1
test eax, eax
je 0x10044d1c
mov ecx, dword [0x101a553c]
inc esi
cmp esi, 0x3ec
jl 0x10044cc2
jmp 0x10044d45
mov ecx, dword [0x101b94d0]
mov eax, dword [0x1015c858]
mov dword [eax + ecx*4 + 0x2ae9], esi
inc ecx
mov eax, dword [0x1015c858]
mov dword [0x101b94d0], ecx
mov dword [eax + esi*4 + 0x121], 1
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.10001a48
pop ecx
pop ecx
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
je 0x10044cba
pop edi
pop esi
lea ecx, [ebp - 0xe4]
call fcn.10004da7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x101b94d4], eax
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x10044db6
mov ecx, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
cmp eax, 0x1000
jb 0x10044dad
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.100041ba
mov eax, dword [ebp - 0x10]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
push eax
push ecx
call fcn.1005a92a
pop ecx
pop ecx
lea ecx, [ebp - 0xe4]
call fcn.10003181
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x100452e3
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x1fc
push ebp
push esi
push str.LoadSpriteTexture__
call fcn.10058d45
pop ecx
mov ecx, dword [0x101ad1a0]
xor ebp, ebp
mov esi, ebp
test ecx, ecx
je 0x1004530a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [0x101ad19c]
mov edx, 0x100
push ebp
push 0x101ad1a0
push 1
push 0x15
push ebp
push 1
push edx
mov dword [0x101ad1a0], ebp
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x5c]
test eax, eax
jns 0x1004533a
push str.Failed_to_create_sprite_texture_
jmp 0x1004539e
push str.western.raw
push 0x101b9580
push str._swestern_s
lea eax, [esp + 0x1c]
push 0x104
push eax
call fcn.10007ca2
lea eax, [esp + 0x24]
push 0x100863e4
push eax
call fcn.10069f1a
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x10045382
lea eax, [esp + 0x10]
push eax
push str.Failed_to_open__s_
call fcn.10058778
pop ecx
jmp 0x100453a3
mov eax, dword [0x101ad1a0]
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 0x100453c7
push str.Failed_to_lock_texture_
call fcn.10058778
pop ecx
mov ecx, dword [0x101ad1a0]
test ecx, ecx
je 0x100453ba
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x101ad1a0], ebp
test esi, esi
je 0x10045431
push esi
call fcn.10060f3b
pop ecx
jmp 0x10045431
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.100617ca
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 0x100453eb
add edi, dword [esp + 0x10]
push 0
pop ebp
sub ebx, 1
jne 0x100453d0
mov eax, dword [0x101ad1a0]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
push esi
call fcn.10060f3b
pop ecx
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x1fc
ret
Function at 0x1004a2f8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push str.renderObjectTexts__
call fcn.10058d45
xor esi, esi
push esi
push 0xffffffffffffffff
call fcn.1002ad9c
mov ecx, dword [0x1015c858]
add esp, 0xc
mov ebx, eax
cmp dword [ecx + 0x2649b], esi
jne 0x1004a49d
test ebx, ebx
je 0x1004a49d
mov ecx, dword [0x101a5538]
mov ecx, dword [ecx + 0x3de]
cmp dword [ecx + 0x14], esi
je 0x1004a49d
push 9
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1004a361
cmp dword [0x10188da7], esi
jne 0x1004a49d
mov eax, dword [0x101a5550]
cmp dword [eax], esi
jne 0x1004a49d
push edi
mov edi, 0x20d4
mov eax, dword [0x101a5538]
mov eax, dword [eax + 0x3de]
mov eax, dword [eax + 0x14]
cmp dword [edi + eax - 0x20d0], 1
jne 0x1004a48c
mov eax, dword [edi + eax]
test eax, eax
je 0x1004a48c
mov eax, dword [eax + 0x40]
test eax, eax
je 0x1004a48c
mov eax, dword [eax + 0x14]
lea ecx, [ebp - 0x10]
push ecx
add eax, 0x30
push eax
call fcn.100403d7
lea eax, [ebp - 0x10]
push eax
call fcn.100404cd
add esp, 0xc
test eax, eax
jne 0x1004a48c
mov eax, dword [ebx + 0x14]
add eax, 0x30
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.100403e7
fstp dword [ebp - 4]
movss xmm0, dword [ebp - 4]
comiss xmm0, dword [0x1019ff73]
pop ecx
pop ecx
ja 0x1004a48c
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.10043dfe
movss xmm0, dword [0x1008334c]
comiss xmm0, dword [ebp - 0x20]
pop ecx
pop ecx
ja 0x1004a48c
mov eax, dword [0x101a5538]
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.10043cd7
movss xmm0, dword [ebp - 0x24]
lea eax, [ebp - 0x48]
subss xmm0, dword [0x10088c50]
add esp, 0x14
push eax
push 0xffc8c800
push ecx
push ecx
mov ecx, dword [0x101ad31c]
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp - 0x28]
movss dword [esp], xmm0
call fcn.10043902
add edi, 4
inc esi
cmp edi, 0x41a4
jl 0x1004a374
pop edi
pop esi
pop ebx
leave
ret