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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040551a
and dword [ebp - 4], 0
cmp dword [0x42c28c], 0
mov ebx, eax
jne 0x40a6e0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a791
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40a791
push eax
call fcn.004054a8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42c28c], eax
call esi
push eax
call fcn.004054a8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42c290], eax
call esi
push eax
call fcn.004054a8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42c294], eax
call esi
push eax
call fcn.004054a8
pop ecx
mov dword [0x42c29c], eax
test eax, eax
je 0x40a6e0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004054a8
pop ecx
mov dword [0x42c298], eax
mov eax, dword [0x42c298]
cmp eax, ebx
je 0x40a738
cmp dword [0x42c29c], ebx
je 0x40a738
push eax
call fcn.00405523
push dword [0x42c29c]
mov esi, eax
call fcn.00405523
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a738
test edi, edi
je 0x40a738
call esi
test eax, eax
je 0x40a72f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a72f
test byte [ebp - 0xc], 1
jne 0x40a738
or dword [ebp + 0x10], 0x200000
jmp 0x40a771
mov eax, dword [0x42c290]
cmp eax, ebx
je 0x40a771
push eax
call fcn.00405523
pop ecx
test eax, eax
je 0x40a771
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a771
mov eax, dword [0x42c294]
cmp eax, ebx
je 0x40a771
push eax
call fcn.00405523
pop ecx
test eax, eax
je 0x40a771
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42c28c]
call fcn.00405523
pop ecx
test eax, eax
je 0x40a791
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a793
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100048eb
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 0x10004938
cmp byte [esi + 0x3d], bl
je 0x10004938
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10004967
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 0x1000493f
sub eax, 1
je 0x10004942
dec eax
sub eax, 1
jne 0x10004967
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 0x1000495f
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.1005df67
add esp, 0x10
cmp edi, eax
jne 0x10004967
cmp byte [esi + 0x3d], bl
sete al
jmp 0x1000493a
xor al, al
jmp 0x1000493a

Function at 0x10006be0
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 0x10006bfa
xor eax, eax
jmp 0x10006cca
mov eax, dword [esi + 0x20]
push ebp
mov ecx, dword [eax]
test ecx, ecx
je 0x10006c28
mov edx, dword [esi + 0x30]
mov ebp, dword [edx]
lea eax, [ecx + ebp]
cmp ecx, eax
jae 0x10006c28
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 0x10006cc9
cmp dword [esi + 0x4c], 0
je 0x10006cc7
mov ecx, esi
call fcn.10004e62
mov ecx, dword [esi + 0x38]
mov al, bl
test ecx, ecx
jne 0x10006c54
push dword [esi + 0x4c]
push eax
call fcn.10001d01
test al, al
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x10006cc7
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 0x10006c98
sub eax, 1
je 0x10006c98
dec eax
sub eax, 1
jne 0x10006cc7
push dword [esi + 0x4c]
push dword [esp + 0x14]
jmp 0x10006c46
mov ebp, dword [esp + 0x3c]
lea eax, [esp + 0x18]
sub ebp, eax
je 0x10006cb7
push dword [esi + 0x4c]
push ebp
push 1
push eax
call fcn.1005df67
add esp, 0x10
cmp ebp, eax
jne 0x10006cc7
lea eax, [esp + 0x10]
mov byte [esi + 0x3d], 1
cmp dword [esp + 0x14], eax
mov eax, ebx
jne 0x10006cc9
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x28
ret 4
Function at 0x10007837
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 0x10007857
jl 0x1000784e
test edi, edi
jne 0x10007857
xor eax, eax
xor edx, edx
jmp 0x1000791e
cmp dword [ebp + 0x38], 0
je 0x1000786d
push esi
push edi
push dword [esp + 0x18]
call fcn.10007928
jmp 0x1000791e
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x100078b1
mov eax, dword [ebp + 0x2c]
cmp dword [eax], 0
jbe 0x100078b1
cmp dword [eax], edi
mov esi, edi
mov ebx, dword [esp + 0x14]
cmovb esi, dword [eax]
push esi
push ecx
push ebx
call fcn.10058de0
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 0x100078b9
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
cmp dword [ebp + 0x4c], 0
mov ecx, ebx
je 0x10007914
mov ecx, ebp
call fcn.10004e62
mov edx, dword [esp + 0x14]
mov ecx, ebx
jmp 0x100078f4
push dword [ebp + 0x4c]
push eax
push 1
push edx
call fcn.1005d8e0
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 0x10007924
mov eax, 0xfff
cmp ebx, eax
ja 0x100078d0
test ecx, ecx
je 0x10007914
push dword [ebp + 0x4c]
push ebx
push 1
push edx
call fcn.1005d8e0
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 0x10007916

Function at 0x100079fc
Capabilities:
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x10007a1d
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.10007ad2
jmp 0x10007acc
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 0x10007a40
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x10007a42
xor eax, eax
cdq
mov ebp, eax
mov eax, edx
mov dword [esp + 0x20], eax
test edi, edi
jl 0x10007abd
jg 0x10007a55
test esi, esi
je 0x10007abd
test eax, eax
jl 0x10007a9f
jg 0x10007a5f
test ebp, ebp
je 0x10007a9f
cmp edi, eax
jg 0x10007a6f
jl 0x10007a69
cmp esi, ebp
jae 0x10007a6f
mov ebp, esi
mov dword [esp + 0x20], edi
push ebp
push dword [esp + 0x20]
push ecx
call fcn.10058de0
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 0x10007abd
jg 0x10007aa3
test esi, esi
je 0x10007abd
jmp 0x10007aa3
mov eax, dword [esp + 0x1c]
cmp dword [ebx + 0x4c], 0
je 0x10007abd
push dword [ebx + 0x4c]
push esi
push 1
push eax
call fcn.1005df67
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 0x10010445
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1007bd4b
call fcn.10056f60
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.1000fb3b
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 0x10010545
mov edi, dword [ebp - 0x10]
mov esi, dword [ebx]
mov dword [ebp - 0x1c], esi
mov eax, dword [esi]
cmp dword [eax + 0x20], 0x534030
je 0x100104f1
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.1000fd41
add esp, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x100104e0
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0x44]
call fcn.10004f54
jmp 0x10010532
mov ecx, dword [0x1011eb60]
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 0x10010532
test dword [esi + 0x1c], 0x2400
jne 0x10010532
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.1000fb52
mov eax, dword [ebx + 4]
mov ebx, eax
test eax, eax
jne 0x1001049d
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 0x10010490
mov edi, 0xb992c0
mov dword [ebp - 0x14], edi
mov esi, dword [edi]
test esi, esi
je 0x100105bb
mov edi, dword [ebp - 0x18]
mov ebx, dword [esi]
mov ecx, dword [0x1011eb60]
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 0x100105b1
test dword [ebx + 0x1c], 0x2400
jne 0x100105b1
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.1000fb52
mov esi, dword [esi + 4]
test esi, esi
jne 0x1001056c
mov edi, dword [ebp - 0x14]
add edi, 0xc
mov dword [ebp - 0x14], edi
cmp edi, 0xb99ec0
jl 0x10010563
mov eax, dword [ebp - 0x24]
mov esi, dword [eax]
mov dword [ebp - 0x18], esi
cmp esi, eax
je 0x10010600
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.1000e18a
mov esi, dword [ebp - 0x18]
cmp esi, dword [ebp - 0x24]
jne 0x100105d5
lea eax, [ebp - 0x24]
push eax
mov ecx, eax
call fcn.1000fbe4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x100183d8
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1007b9e3
call fcn.10056f60
sub esp, 0x20
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
je 0x1001850e
push 0x100825b4
push dword [ebp + 8]
call fcn.10065a66
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x1001850e
push 0xc
call fcn.10056d13
pop ecx
mov dword [ebp + 8], eax
and dword [ebp - 4], 0
test eax, eax
je 0x10018429
mov ecx, eax
call fcn.1000b5ed
mov esi, eax
jmp 0x1001842b
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.1005d8e0
add esp, 0x10
cmp byte [ebp - 0x2c], 0x43
jne 0x100184f2
cmp byte [ebp - 0x2b], 0x4f
jne 0x100184f2
cmp byte [ebp - 0x2a], 0x4c
jne 0x100184f2
mov eax, dword [ebp - 0x28]
add eax, 0xffffffe8
push eax
call fcn.10056d0a
mov ecx, dword [ebp - 0x28]
mov edi, eax
push ebx
push 1
add ecx, 0xffffffe8
push ecx
push edi
call fcn.1005d8e0
mov al, byte [ebp - 0x29]
add esp, 0x14
cmp al, 0x4c
jne 0x100184a5
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax]
push eax
push edi
call dword [0x100ac218]
add esp, 0xc
jmp 0x100184e0
cmp al, 0x32
jne 0x100184c2
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 [0x100ac21c]
jmp 0x100184dd
cmp al, 0x33
jne 0x100184e0
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 [0x100ac220]
add esp, 0x10
push edi
call fcn.10056d51
push ebx
call fcn.1005d051
pop ecx
pop ecx
mov eax, esi
jmp 0x10018510
test esi, esi
je 0x10018507
mov ecx, esi
call fcn.1000b61f
push 0xc
push esi
call fcn.10056d43
pop ecx
pop ecx
push ebx
call fcn.1005d051
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 0x10029a03
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword fs:[0x2c]
sub esp, 0x24
mov ecx, dword [0x1019109c]
push ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10162048]
push ebp
push esi
push edi
cmp eax, dword [ecx + 4]
jg 0x10029b29
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 0x10029b1f
mov esi, dword [0x10162044]
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 0x10029aac
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 0x10029aac
cmp dword [esp + 0x28], 0x1000
jne 0x10029aac
test byte [esp + 0x2c], 0xee
je 0x10029aac
mov ecx, dword [esp + 0x24]
cmp esi, ecx
ja 0x10029aac
mov eax, ebx
sub ecx, esi
sub eax, dword [esp + 0x18]
cmp eax, ecx
jbe 0x10029ad3
lea eax, [esp + 0x10]
push eax
push 0x40
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10029acb
xor edi, edi
push esi
push edi
push ebp
call fcn.10059360
jmp 0x10029adf
mov dword [esp + 0x38], 1
push esi
push ebx
push ebp
call fcn.10058de0
mov edi, dword [esp + 0x48]
add esp, 0xc
cmp dword [esp + 0x38], 0
je 0x10029b0b
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 0x10029b0b
push ebx
push str.__page_read___could_not_restore_original_permissions_for_ptr__p
call fcn.10055599
pop ecx
pop ecx
mov ecx, dword [esp + 0x40]
add ebp, esi
add ebx, esi
sub ecx, esi
mov dword [esp + 0x40], ecx
jne 0x10029a4b
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov esi, 0x10162048
push esi
call fcn.10056e89
cmp dword [0x10162048], 0xffffffff
pop ecx
jne 0x10029a2a
call fcn.10029b58
push esi
mov dword [0x10162044], eax
call fcn.10056e3f
pop ecx
jmp 0x10029a2a

Function at 0x10029b58
Capabilities:
Get system information on windows

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

Disassembly:
mov eax, dword fs:[0x2c]
sub esp, 0x24
mov ecx, dword [0x1019109c]
push ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10162040]
push ebp
push esi
push edi
cmp eax, dword [ecx + 4]
jg 0x10029c93
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 0x10029c89
mov esi, dword [0x1016203c]
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 0x10029c21
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 0x10029c21
cmp dword [esp + 0x28], 0x1000
jne 0x10029c21
test byte [esp + 0x2c], 0xcc
je 0x10029c21
mov ecx, dword [esp + 0x24]
cmp esi, ecx
ja 0x10029c21
mov eax, ebx
sub ecx, esi
sub eax, dword [esp + 0x18]
cmp eax, ecx
jbe 0x10029c40
lea eax, [esp + 0x10]
push eax
push 0x40
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10029c38
xor edi, edi
jmp 0x10029c52
mov dword [esp + 0x38], 1
push esi
push dword [esp + 0x40]
push ebx
call fcn.10058de0
mov edi, dword [esp + 0x4c]
add esp, 0xc
cmp dword [esp + 0x38], 0
je 0x10029c7b
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 0x10029c7b
push ebx
push str.__page_write___could_not_restore_original_permissions_for_ptr__p
call fcn.10055599
pop ecx
pop ecx
add dword [esp + 0x3c], esi
add ebx, esi
sub ebp, esi
jne 0x10029bc0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov esi, 0x10162040
push esi
call fcn.10056e89
cmp dword [0x10162040], 0xffffffff
pop ecx
jne 0x10029ba3
call fcn.10029b58
push esi
mov dword [0x1016203c], eax
call fcn.10056e3f
pop ecx
jmp 0x10029ba3
Function at 0x1003bd87
Capabilities:
Connect to http server
Create http request

Disassembly:
mov eax, 0x1007d814
call fcn.10056f60
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.1003bd4b
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.10029931
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x38

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

Disassembly:
mov eax, 0x1007d82d
call fcn.10056f60
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.1003bd1f
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 0x1003bedf
push dword [ebp - 0x10]
call fcn.10056d51
pop ecx
and dword [ebp + 0xc], 0
jmp 0x1003bf05
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1003bf1d
mov ecx, dword [ebp - 0x14]
mov byte [esi + eax], 0
push dword [ebp + 0xc]
push esi
lea ecx, [ecx + 8]
call fcn.1003be40
mov bh, al
test bh, bh
je 0x1003bf1d
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 0x1003bee5
and bl, bh
test esi, esi
je 0x1003bf2a
push esi
call fcn.10056d51
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 0x1003f2ea
Capabilities:
Terminate process

Disassembly:
mov edx, dword [esp + 4]
mov cl, byte [edx]
test cl, cl
je 0x1003f326
cmp byte [edx + 1], 0
jne 0x1003f316
cmp cl, 0x61
jl 0x1003f30b
cmp cl, 0x7a
jg 0x1003f30b
movsx eax, cl
sub eax, 0x20
ret
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x1003f316
movsx eax, cl
ret
cmp cl, 0x26
jne 0x1003f326
lea eax, [edx + 1]
push eax
call fcn.1003f384
pop ecx
ret
mov eax, dword [str.lbutton]
xor ecx, ecx
push ebx
push esi
jmp 0x1003f364
mov esi, edx
mov bl, byte [eax]
cmp bl, byte [esi]
jne 0x1003f353
test bl, bl
je 0x1003f34f
mov bl, byte [eax + 1]
cmp bl, byte [esi + 1]
jne 0x1003f353
add eax, 2
add esi, 2
test bl, bl
jne 0x1003f333
xor eax, eax
jmp 0x1003f358
sbb eax, eax
or eax, 1
test eax, eax
je 0x1003f37b
mov eax, dword [ecx*8 + 0x100dc0ac]
inc ecx
test eax, eax
jne 0x1003f331
push edx
push str.Unknown_key:__s
call fcn.10055599
pop ecx
pop ecx
or eax, 0xffffffff
pop esi
pop ebx
ret
mov eax, dword [ecx*8 + 0x100dc0a0]
jmp 0x1003f378

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

Disassembly:
sub esp, 0x1fc
push ebp
push esi
push str.LoadSpriteTexture__
call fcn.10055b7b
pop ecx
mov ecx, dword [0x1018b2a4]
xor ebp, ebp
mov esi, ebp
test ecx, ecx
je 0x100441cb
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [0x1018b2a0]
mov edx, 0x100
push ebp
push 0x1018b2a4
push 1
push 0x15
push ebp
push 1
push edx
mov dword [0x1018b2a4], ebp
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x5c]
test eax, eax
jns 0x100441fb
push str.Failed_to_create_sprite_texture_
jmp 0x1004425f
push str.pilbert.raw
push 0x10190c30
push str._spilbert_s
lea eax, [esp + 0x1c]
push 0x104
push eax
call fcn.10007ba9
lea eax, [esp + 0x24]
push 0x100825b4
push eax
call fcn.10065a66
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x10044243
lea eax, [esp + 0x10]
push eax
push str.Failed_to_open__s_
call fcn.10055599
pop ecx
jmp 0x10044264
mov eax, dword [0x1018b2a4]
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 0x10044288
push str.Failed_to_lock_texture_
call fcn.10055599
pop ecx
mov ecx, dword [0x1018b2a4]
test ecx, ecx
je 0x1004427b
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x1018b2a4], ebp
test esi, esi
je 0x100442f2
push esi
call fcn.1005d051
pop ecx
jmp 0x100442f2
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.1005d8e0
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 0x100442ac
add edi, dword [esp + 0x10]
push 0
pop ebp
sub ebx, 1
jne 0x10044291
mov eax, dword [0x1018b2a4]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
push esi
call fcn.1005d051
pop ecx
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x1fc
ret