joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004375
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [0x10171a30]
push ebx
xor ebx, ebx
push esi
cmp byte [eax + 0x1a520], bl
je 0x10004436
push edi
push ebx
push 0xffffffffffffffff
call fcn.1002b373
mov edi, eax
pop ecx
pop ecx
movzx ecx, byte [edi + 0x718]
imul edx, ecx, 0x1c
mov esi, dword [edx + edi + 0x5a0]
mov ecx, dword [edx + edi + 0x5ac]
mov dword [edx + edi + 0x5a8], ecx
cmp esi, 0x16
je 0x100043fc
cmp esi, 0x17
je 0x100043fc
cmp esi, 0x18
je 0x100043fc
cmp esi, 0x1a
je 0x100043fc
cmp esi, 0x1b
je 0x100043fc
cmp esi, 0x1c
je 0x100043fc
cmp esi, 0x1d
je 0x100043fc
cmp esi, 0x1e
je 0x100043fc
cmp esi, 0x1f
je 0x100043fc
cmp esi, 0x20
je 0x100043fc
cmp esi, 0x25
je 0x100043fc
cmp esi, 0x26
je 0x100043fc
cmp esi, 0x29
je 0x100043fc
cmp esi, 0x2a
jne 0x10004435
mov ecx, dword [0x101c74e4]
mov eax, dword [ecx]
call dword [eax + 0x6c]
movzx ecx, byte [edi + 0x718]
mov esi, eax
imul ecx, ecx, 0x1c
cmp dword [ecx + edi + 0x5a8], 1
jne 0x10004435
mov ecx, dword [0x101c74e4]
push ebx
mov edx, dword [ecx]
call dword [edx + 0x70]
mov ecx, dword [0x101c74e4]
push esi
mov eax, dword [ecx]
call dword [eax + 0x70]
pop edi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x100f8d44]
cmp eax, 0x3e8
jbe 0x10004458
inc dword [0x100f8d38]
call esi
mov dword [0x100f8d44], eax
cmp dword [0x100f8d38], 0x3b
mov eax, dword [0x100f8d3c]
jle 0x10004472
inc eax
mov dword [0x100f8d38], ebx
mov dword [0x100f8d3c], eax
cmp eax, 0x3b
jle 0x10004483
inc dword [0x100f8d40]
mov dword [0x100f8d3c], ebx
pop esi
pop ebx
ret

Function at 0x100045e9
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 0x10004636
cmp byte [esi + 0x3d], bl
je 0x10004636
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10004665
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 0x1000463d
sub eax, 1
je 0x10004640
dec eax
sub eax, 1
jne 0x10004665
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 0x1000465d
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10074717
add esp, 0x10
cmp edi, eax
jne 0x10004665
cmp byte [esi + 0x3d], bl
sete al
jmp 0x10004638
xor al, al
jmp 0x10004638
Function at 0x10007dad
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 0x10007dc7
xor eax, eax
jmp 0x10007e97
mov eax, dword [esi + 0x20]
push ebp
mov ecx, dword [eax]
test ecx, ecx
je 0x10007df5
mov edx, dword [esi + 0x30]
mov ebp, dword [edx]
lea eax, [ecx + ebp]
cmp ecx, eax
jae 0x10007df5
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 0x10007e96
cmp dword [esi + 0x4c], 0
je 0x10007e94
mov ecx, esi
call fcn.10004b60
mov ecx, dword [esi + 0x38]
mov al, bl
test ecx, ecx
jne 0x10007e21
push dword [esi + 0x4c]
push eax
call fcn.10001de2
test al, al
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x10007e94
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 0x10007e65
sub eax, 1
je 0x10007e65
dec eax
sub eax, 1
jne 0x10007e94
push dword [esi + 0x4c]
push dword [esp + 0x14]
jmp 0x10007e13
mov ebp, dword [esp + 0x3c]
lea eax, [esp + 0x18]
sub ebp, eax
je 0x10007e84
push dword [esi + 0x4c]
push ebp
push 1
push eax
call fcn.10074717
add esp, 0x10
cmp ebp, eax
jne 0x10007e94
lea eax, [esp + 0x10]
mov byte [esi + 0x3d], 1
cmp dword [esp + 0x14], eax
mov eax, ebx
jne 0x10007e96
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x28
ret 4
Function at 0x10008bce
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 0x10008bee
jl 0x10008be5
test edi, edi
jne 0x10008bee
xor eax, eax
xor edx, edx
jmp 0x10008cb5
cmp dword [ebp + 0x38], 0
je 0x10008c04
push esi
push edi
push dword [esp + 0x18]
call fcn.10008cbf
jmp 0x10008cb5
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10008c48
mov eax, dword [ebp + 0x2c]
cmp dword [eax], 0
jbe 0x10008c48
cmp dword [eax], edi
mov esi, edi
mov ebx, dword [esp + 0x14]
cmovb esi, dword [eax]
push esi
push ecx
push ebx
call fcn.1006f580
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 0x10008c50
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
cmp dword [ebp + 0x4c], 0
mov ecx, ebx
je 0x10008cab
mov ecx, ebp
call fcn.10004b60
mov edx, dword [esp + 0x14]
mov ecx, ebx
jmp 0x10008c8b
push dword [ebp + 0x4c]
push eax
push 1
push edx
call fcn.10074090
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 0x10008cbb
mov eax, 0xfff
cmp ebx, eax
ja 0x10008c67
test ecx, ecx
je 0x10008cab
push dword [ebp + 0x4c]
push ebx
push 1
push edx
call fcn.10074090
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 0x10008cad

Function at 0x10008d93
Capabilities:
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x10008db4
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.10008e69
jmp 0x10008e63
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 0x10008dd7
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x10008dd9
xor eax, eax
cdq
mov ebp, eax
mov eax, edx
mov dword [esp + 0x20], eax
test edi, edi
jl 0x10008e54
jg 0x10008dec
test esi, esi
je 0x10008e54
test eax, eax
jl 0x10008e36
jg 0x10008df6
test ebp, ebp
je 0x10008e36
cmp edi, eax
jg 0x10008e06
jl 0x10008e00
cmp esi, ebp
jae 0x10008e06
mov ebp, esi
mov dword [esp + 0x20], edi
push ebp
push dword [esp + 0x20]
push ecx
call fcn.1006f580
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 0x10008e54
jg 0x10008e3a
test esi, esi
je 0x10008e54
jmp 0x10008e3a
mov eax, dword [esp + 0x1c]
cmp dword [ebx + 0x4c], 0
je 0x10008e54
push dword [ebx + 0x4c]
push esi
push 1
push eax
call fcn.10074717
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 0x100117dc
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x100925da
call fcn.1006d4b8
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.10010ed2
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 0x100118dc
mov edi, dword [ebp - 0x10]
mov esi, dword [ebx]
mov dword [ebp - 0x1c], esi
mov eax, dword [esi]
cmp dword [eax + 0x20], 0x534030
je 0x10011888
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.100110d8
add esp, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x10011877
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0x44]
call fcn.10004c52
jmp 0x100118c9
mov ecx, dword [0x10137ab0]
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 0x100118c9
test dword [esi + 0x1c], 0x2400
jne 0x100118c9
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.10010ee9
mov eax, dword [ebx + 4]
mov ebx, eax
test eax, eax
jne 0x10011834
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 0x10011827
mov edi, 0xb992c0
mov dword [ebp - 0x14], edi
mov esi, dword [edi]
test esi, esi
je 0x10011952
mov edi, dword [ebp - 0x18]
mov ebx, dword [esi]
mov ecx, dword [0x10137ab0]
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 0x10011948
test dword [ebx + 0x1c], 0x2400
jne 0x10011948
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.10010ee9
mov esi, dword [esi + 4]
test esi, esi
jne 0x10011903
mov edi, dword [ebp - 0x14]
add edi, 0xc
mov dword [ebp - 0x14], edi
cmp edi, 0xb99ec0
jl 0x100118fa
mov eax, dword [ebp - 0x24]
mov esi, dword [eax]
mov dword [ebp - 0x18], esi
cmp esi, eax
je 0x10011997
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.1000f521
mov esi, dword [ebp - 0x18]
cmp esi, dword [ebp - 0x24]
jne 0x1001196c
lea eax, [ebp - 0x24]
push eax
mov ecx, eax
call fcn.10010f7b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x1001976f
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x10092272
call fcn.1006d4b8
sub esp, 0x20
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
je 0x100198a5
push 0x10099d24
push dword [ebp + 8]
call fcn.1007c4a6
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x100198a5
push 0xc
call fcn.1006d26a
pop ecx
mov dword [ebp + 8], eax
and dword [ebp - 4], 0
test eax, eax
je 0x100197c0
mov ecx, eax
call fcn.1000c984
mov esi, eax
jmp 0x100197c2
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.10074090
add esp, 0x10
cmp byte [ebp - 0x2c], 0x43
jne 0x10019889
cmp byte [ebp - 0x2b], 0x4f
jne 0x10019889
cmp byte [ebp - 0x2a], 0x4c
jne 0x10019889
mov eax, dword [ebp - 0x28]
add eax, 0xffffffe8
push eax
call fcn.1006d25c
mov ecx, dword [ebp - 0x28]
mov edi, eax
push ebx
push 1
add ecx, 0xffffffe8
push ecx
push edi
call fcn.10074090
mov al, byte [ebp - 0x29]
add esp, 0x14
cmp al, 0x4c
jne 0x1001983c
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax]
push eax
push edi
call dword [0x100c5218]
add esp, 0xc
jmp 0x10019877
cmp al, 0x32
jne 0x10019859
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 [0x100c521c]
jmp 0x10019874
cmp al, 0x33
jne 0x10019877
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 [0x100c5220]
add esp, 0x10
push edi
call fcn.1006d2a8
push ebx
call fcn.10073801
pop ecx
pop ecx
mov eax, esi
jmp 0x100198a7
test esi, esi
je 0x1001989e
mov ecx, esi
call fcn.1000c9b6
push 0xc
push esi
call fcn.1006d29a
pop ecx
pop ecx
push ebx
call fcn.10073801
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 0x1002af20
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword fs:[0x2c]
sub esp, 0x24
mov ecx, dword [0x101c7798]
push ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10191c48]
push ebp
push esi
push edi
cmp eax, dword [ecx + 4]
jg 0x1002b046
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 0x1002b03c
mov esi, dword [0x10191c44]
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 0x1002afc9
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 0x1002afc9
cmp dword [esp + 0x28], 0x1000
jne 0x1002afc9
test byte [esp + 0x2c], 0xee
je 0x1002afc9
mov ecx, dword [esp + 0x24]
cmp esi, ecx
ja 0x1002afc9
mov eax, ebx
sub ecx, esi
sub eax, dword [esp + 0x18]
cmp eax, ecx
jbe 0x1002aff0
lea eax, [esp + 0x10]
push eax
push 0x40
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1002afe8
xor edi, edi
push esi
push edi
push ebp
call fcn.1006fb00
jmp 0x1002affc
mov dword [esp + 0x38], 1
push esi
push ebx
push ebp
call fcn.1006f580
mov edi, dword [esp + 0x48]
add esp, 0xc
cmp dword [esp + 0x38], 0
je 0x1002b028
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 0x1002b028
push ebx
push str.__page_read___could_not_restore_original_permissions_for_ptr__p
call fcn.1006b041
pop ecx
pop ecx
mov ecx, dword [esp + 0x40]
add ebp, esi
add ebx, esi
sub ecx, esi
mov dword [esp + 0x40], ecx
jne 0x1002af68
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov esi, 0x10191c48
push esi
call fcn.1006d3e0
cmp dword [0x10191c48], 0xffffffff
pop ecx
jne 0x1002af47
call fcn.1002b075
push esi
mov dword [0x10191c44], eax
call fcn.1006d396
pop ecx
jmp 0x1002af47

Function at 0x1002b075
Capabilities:
Get system information on windows

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

Disassembly:
mov eax, dword fs:[0x2c]
sub esp, 0x24
mov ecx, dword [0x101c7798]
push ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10191c40]
push ebp
push esi
push edi
cmp eax, dword [ecx + 4]
jg 0x1002b1b0
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 0x1002b1a6
mov esi, dword [0x10191c3c]
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 0x1002b13e
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 0x1002b13e
cmp dword [esp + 0x28], 0x1000
jne 0x1002b13e
test byte [esp + 0x2c], 0xcc
je 0x1002b13e
mov ecx, dword [esp + 0x24]
cmp esi, ecx
ja 0x1002b13e
mov eax, ebx
sub ecx, esi
sub eax, dword [esp + 0x18]
cmp eax, ecx
jbe 0x1002b15d
lea eax, [esp + 0x10]
push eax
push 0x40
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1002b155
xor edi, edi
jmp 0x1002b16f
mov dword [esp + 0x38], 1
push esi
push dword [esp + 0x40]
push ebx
call fcn.1006f580
mov edi, dword [esp + 0x4c]
add esp, 0xc
cmp dword [esp + 0x38], 0
je 0x1002b198
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 0x1002b198
push ebx
push str.__page_write___could_not_restore_original_permissions_for_ptr__p
call fcn.1006b041
pop ecx
pop ecx
add dword [esp + 0x3c], esi
add ebx, esi
sub ebp, esi
jne 0x1002b0dd
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov esi, 0x10191c40
push esi
call fcn.1006d3e0
cmp dword [0x10191c40], 0xffffffff
pop ecx
jne 0x1002b0c0
call fcn.1002b075
push esi
mov dword [0x10191c3c], eax
call fcn.1006d396
pop ecx
jmp 0x1002b0c0
Function at 0x1004226e
Capabilities:
Connect to http server
Create http request

Disassembly:
mov eax, 0x100940d8
call fcn.1006d4b8
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.10042232
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.1002ae4e
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x38

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

Disassembly:
mov eax, 0x100940f1
call fcn.1006d4b8
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.10042206
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 0x100423b8
push dword [ebp - 0x10]
call fcn.1006d2a8
pop ecx
and dword [ebp + 0xc], 0
jmp 0x100423de
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x100423f6
mov ecx, dword [ebp - 0x14]
mov byte [esi + eax], 0
push dword [ebp + 0xc]
push esi
lea ecx, [ecx + 8]
call fcn.10042319
mov bh, al
test bh, bh
je 0x100423f6
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 0x100423be
and bl, bh
test esi, esi
je 0x10042403
push esi
call fcn.1006d2a8
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 0x10046059
Capabilities:
Terminate process

Disassembly:
mov edx, dword [esp + 4]
mov cl, byte [edx]
test cl, cl
je 0x10046095
cmp byte [edx + 1], 0
jne 0x10046085
cmp cl, 0x61
jl 0x1004607a
cmp cl, 0x7a
jg 0x1004607a
movsx eax, cl
sub eax, 0x20
ret
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x10046085
movsx eax, cl
ret
cmp cl, 0x26
jne 0x10046095
lea eax, [edx + 1]
push eax
call fcn.100460f3
pop ecx
ret
mov eax, dword [str.lbutton]
xor ecx, ecx
push ebx
push esi
jmp 0x100460d3
mov esi, edx
mov bl, byte [eax]
cmp bl, byte [esi]
jne 0x100460c2
test bl, bl
je 0x100460be
mov bl, byte [eax + 1]
cmp bl, byte [esi + 1]
jne 0x100460c2
add eax, 2
add esi, 2
test bl, bl
jne 0x100460a2
xor eax, eax
jmp 0x100460c7
sbb eax, eax
or eax, 1
test eax, eax
je 0x100460ea
mov eax, dword [ecx*8 + 0x100f514c]
inc ecx
test eax, eax
jne 0x100460a0
push edx
push str.Unknown_key:__s
call fcn.1006b041
pop ecx
pop ecx
or eax, 0xffffffff
pop esi
pop ebx
ret
mov eax, dword [ecx*8 + 0x100f5140]
jmp 0x100460e7

Function at 0x10046988
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 [0x10096d20]
movss dword [eax], xmm0
lea eax, [eax + 4]
sub edx, 1
jne 0x10046995
ret
Function at 0x1004c2c9
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x1fc
push ebp
push esi
push str.LoadSpriteTexture__
call fcn.1006b60e
pop ecx
mov ecx, dword [0x101baf04]
xor ebp, ebp
mov esi, ebp
test ecx, ecx
je 0x1004c2f0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [0x101baf00]
mov edx, 0x100
push ebp
push 0x101baf04
push 1
push 0x15
push ebp
push 1
push edx
mov dword [0x101baf04], ebp
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x5c]
test eax, eax
jns 0x1004c320
push str.Failed_to_create_sprite_texture_
jmp 0x1004c384
push str.westoo.raw
push 0x101c72c0
push str._swestoo_s
lea eax, [esp + 0x1c]
push 0x104
push eax
call fcn.10008f40
lea eax, [esp + 0x24]
push 0x10099d24
push eax
call fcn.1007c4a6
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x1004c368
lea eax, [esp + 0x10]
push eax
push str.Failed_to_open__s_
call fcn.1006b041
pop ecx
jmp 0x1004c389
mov eax, dword [0x101baf04]
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 0x1004c3ad
push str.Failed_to_lock_texture_
call fcn.1006b041
pop ecx
mov ecx, dword [0x101baf04]
test ecx, ecx
je 0x1004c3a0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x101baf04], ebp
test esi, esi
je 0x1004c417
push esi
call fcn.10073801
pop ecx
jmp 0x1004c417
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.10074090
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 0x1004c3d1
add edi, dword [esp + 0x10]
push 0
pop ebp
sub ebx, 1
jne 0x1004c3b6
mov eax, dword [0x101baf04]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
push esi
call fcn.10073801
pop ecx
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x1fc
ret
Function at 0x1004dced
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push str.renderObjectTexts__
call fcn.1006b60e
xor esi, esi
push esi
push 0xffffffffffffffff
call fcn.1002b373
mov ecx, dword [0x10171a30]
add esp, 0xc
mov ebx, eax
cmp dword [ecx + 0x1efc5], esi
jne 0x1004de92
test ebx, ebx
je 0x1004de92
mov ecx, dword [0x101b32bc]
mov ecx, dword [ecx + 0x3de]
cmp dword [ecx + 0x14], esi
je 0x1004de92
push 9
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1004dd56
cmp dword [0x10196b22], esi
jne 0x1004de92
mov eax, dword [0x101b32d4]
cmp dword [eax], esi
jne 0x1004de92
push edi
mov edi, 0x20d4
mov eax, dword [0x101b32bc]
mov eax, dword [eax + 0x3de]
mov eax, dword [eax + 0x14]
cmp dword [edi + eax - 0x20d0], 1
jne 0x1004de81
mov eax, dword [edi + eax]
test eax, eax
je 0x1004de81
mov eax, dword [eax + 0x40]
test eax, eax
je 0x1004de81
mov eax, dword [eax + 0x14]
lea ecx, [ebp - 0x10]
push ecx
add eax, 0x30
push eax
call fcn.10046916
lea eax, [ebp - 0x10]
push eax
call fcn.10046a0c
add esp, 0xc
test eax, eax
jne 0x1004de81
mov eax, dword [ebx + 0x14]
add eax, 0x30
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.10046926
fstp dword [ebp - 4]
movss xmm0, dword [ebp - 4]
comiss xmm0, dword [0x101adcee]
pop ecx
pop ecx
ja 0x1004de81
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.10003065
movss xmm0, dword [0x10096cd4]
comiss xmm0, dword [ebp - 0x20]
pop ecx
pop ecx
ja 0x1004de81
mov eax, dword [0x101b32bc]
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.1004a91f
movss xmm0, dword [ebp - 0x24]
lea eax, [ebp - 0x48]
subss xmm0, dword [0x1009c580]
add esp, 0x14
push eax
push 0xffc8c800
push ecx
push ecx
mov ecx, dword [0x101bb070]
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp - 0x28]
movss dword [esp], xmm0
call fcn.1004a525
add edi, 4
inc esi
cmp edi, 0x41a4
jl 0x1004dd69
pop edi
pop esi
pop ebx
leave
ret