joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401120
Capabilities:
Create directory
Create shortcut via ishelllink

Disassembly:
sub esp, 0x82c
mov eax, dword [0x433480]
xor eax, esp
mov dword [esp + 0x828], eax
mov eax, dword [esp + 0x834]
push ebx
mov ebx, dword [esp + 0x83c]
push ebp
mov ebp, dword [esp + 0x848]
push esi
mov esi, dword [esp + 0x848]
push edi
mov edi, dword [esp + 0x840]
push eax
push 0x435980
lea eax, [esp + 0x20]
push 0x4292e4
push eax
call fcn.004054e0
lea eax, [esp + 0x230]
push esi
push eax
call fcn.00402470
add esp, 0x18
test eax, eax
jne 0x4011b4
push esi
push str.An_error_occurred_while_attempting_to_find_the_path_to__s._n
call fcn.00404f30
cmp byte [esi], 0x64
mov ecx, str.in_the_Start_menu
mov eax, str.on_the_desktop
cmovne eax, ecx
push eax
push edi
push str.An_error_has_occurred.__A_shortcut_to__s_will_not_be_created__s._n
call fcn.00404f30
add esp, 0x14
jmp 0x4012ec
lea eax, [esp + 0x220]
push eax
call fcn.004132a4
push edi
lea eax, [esp + 0x228]
push eax
lea eax, [esp + 0x63c]
push str._s_s.lnk
push eax
call fcn.004054e0
add esp, 0x14
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jns 0x4011fd
push str.Error:__Could_not_open_the_COM_library.__Not_creating_shortcut._n
call fcn.00404f30
add esp, 4
jmp 0x4012ec
lea eax, [esp + 0x10]
push eax
push 0x429d60
push 1
push 0
push 0x429d80
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4012de
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 0x429d70
push eax
mov ecx, dword [eax]
mov eax, dword [ecx]
call eax
test eax, eax
js 0x4012cf
push 0x208
lea eax, [esp + 0x224]
push eax
push 0xffffffffffffffff
lea eax, [esp + 0x63c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x50]
call eax
mov eax, dword [esp + 0x10]
push ebp
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x24]
call eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push 0
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x44]
call eax
mov eax, dword [esp + 0x10]
push ebx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x2c]
call eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x220]
push 1
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x18]
call eax
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 8]
call eax
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 8]
call eax
mov eax, 1
jmp 0x4012ee
push str.QueryInterface_Error_n
call fcn.00404f30
add esp, 4
jmp 0x4012ec
push eax
push str.CoCreateInstance_Error___hres___08x_n
call fcn.00404f30
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0x838]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040609c
add esp, 0x82c
ret
Function at 0x406773
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4067b2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4067b2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4067b2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4067b2
cmp dword [ecx + 0x74], 0xe
jbe 0x4067b2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x413073
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x433480]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x42b640
push esi
call fcn.0041a240
pop ecx
pop ecx
test eax, eax
jne 0x4130a1
xor al, al
jmp 0x41311e
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.00412db4
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x4130db
push dword [ebp - 0x210]
call fcn.004112f0
xor al, al
jmp 0x41311c
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4130e1
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x413101
push edx
call fcn.00412faa
pop ecx
test al, al
je 0x4130cc
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x41310f
mov bl, 1
push dword [ebp - 0x210]
call fcn.004112f0
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040609c
leave
ret

Function at 0x4152a9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42be78
push 0x42be70
push str.FlsAlloc
push 0x1f
call fcn.00415168
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4152dd
push dword [ebp + 8]
mov ecx, esi
call dword [0x4261cc]
call esi
jmp 0x4152e3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x415327
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42be88
push 0x42be80
push str.FlsGetValue
push 0x21
call fcn.00415168
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41535e
push dword [ebp + 8]
mov ecx, esi
call dword [0x4261cc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x415366
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42be90
push 0x42be88
push str.FlsSetValue
push 0x22
call fcn.00415168
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4153a0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4261cc]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10004252
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 0x1000429f
cmp byte [esi + 0x3d], bl
je 0x1000429f
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x100042ce
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 0x100042a6
sub eax, 1
je 0x100042a9
dec eax
sub eax, 1
jne 0x100042ce
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 0x100042c6
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10063ff7
add esp, 0x10
cmp edi, eax
jne 0x100042ce
cmp byte [esi + 0x3d], bl
sete al
jmp 0x100042a1
xor al, al
jmp 0x100042a1

Function at 0x1000628e
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 0x100062a8
xor eax, eax
jmp 0x10006378
mov eax, dword [esi + 0x20]
push ebp
mov ecx, dword [eax]
test ecx, ecx
je 0x100062d6
mov edx, dword [esi + 0x30]
mov ebp, dword [edx]
lea eax, [ecx + ebp]
cmp ecx, eax
jae 0x100062d6
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 0x10006377
cmp dword [esi + 0x4c], 0
je 0x10006375
mov ecx, esi
call fcn.100047c9
mov ecx, dword [esi + 0x38]
mov al, bl
test ecx, ecx
jne 0x10006302
push dword [esi + 0x4c]
push eax
call fcn.10001db6
test al, al
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x10006375
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 0x10006346
sub eax, 1
je 0x10006346
dec eax
sub eax, 1
jne 0x10006375
push dword [esi + 0x4c]
push dword [esp + 0x14]
jmp 0x100062f4
mov ebp, dword [esp + 0x3c]
lea eax, [esp + 0x18]
sub ebp, eax
je 0x10006365
push dword [esi + 0x4c]
push ebp
push 1
push eax
call fcn.10063ff7
add esp, 0x10
cmp ebp, eax
jne 0x10006375
lea eax, [esp + 0x10]
mov byte [esi + 0x3d], 1
cmp dword [esp + 0x14], eax
mov eax, ebx
jne 0x10006377
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x28
ret 4
Function at 0x10007cba
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 0x10007cda
jl 0x10007cd1
test edi, edi
jne 0x10007cda
xor eax, eax
xor edx, edx
jmp 0x10007da1
cmp dword [ebp + 0x38], 0
je 0x10007cf0
push esi
push edi
push dword [esp + 0x18]
call fcn.10007dab
jmp 0x10007da1
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10007d34
mov eax, dword [ebp + 0x2c]
cmp dword [eax], 0
jbe 0x10007d34
cmp dword [eax], edi
mov esi, edi
mov ebx, dword [esp + 0x14]
cmovb esi, dword [eax]
push esi
push ecx
push ebx
call fcn.1005ee50
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 0x10007d3c
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
cmp dword [ebp + 0x4c], 0
mov ecx, ebx
je 0x10007d97
mov ecx, ebp
call fcn.100047c9
mov edx, dword [esp + 0x14]
mov ecx, ebx
jmp 0x10007d77
push dword [ebp + 0x4c]
push eax
push 1
push edx
call fcn.10063970
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 0x10007da7
mov eax, 0xfff
cmp ebx, eax
ja 0x10007d53
test ecx, ecx
je 0x10007d97
push dword [ebp + 0x4c]
push ebx
push 1
push edx
call fcn.10063970
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 0x10007d99

Function at 0x10007e7f
Capabilities:
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x10007ea0
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.10007f55
jmp 0x10007f4f
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 0x10007ec3
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x10007ec5
xor eax, eax
cdq
mov ebp, eax
mov eax, edx
mov dword [esp + 0x20], eax
test edi, edi
jl 0x10007f40
jg 0x10007ed8
test esi, esi
je 0x10007f40
test eax, eax
jl 0x10007f22
jg 0x10007ee2
test ebp, ebp
je 0x10007f22
cmp edi, eax
jg 0x10007ef2
jl 0x10007eec
cmp esi, ebp
jae 0x10007ef2
mov ebp, esi
mov dword [esp + 0x20], edi
push ebp
push dword [esp + 0x20]
push ecx
call fcn.1005ee50
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 0x10007f40
jg 0x10007f26
test esi, esi
je 0x10007f40
jmp 0x10007f26
mov eax, dword [esp + 0x1c]
cmp dword [ebx + 0x4c], 0
je 0x10007f40
push dword [ebx + 0x4c]
push esi
push 1
push eax
call fcn.10063ff7
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 0x100088fa
Capabilities:
Check for time delay via gettickcount

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, 0xc8
cmp dword [0x101228c0], eax
jae 0x10008918
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x101228c0], eax
ret
Function at 0x10011252
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1007fc26
call fcn.1005ce40
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.10010948
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 0x10011352
mov edi, dword [ebp - 0x10]
mov esi, dword [ebx]
mov dword [ebp - 0x1c], esi
mov eax, dword [esi]
cmp dword [eax + 0x20], 0x534030
je 0x100112fe
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.10010b4e
add esp, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x100112ed
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0x44]
call fcn.100048bb
jmp 0x1001133f
mov ecx, dword [0x101228d4]
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 0x1001133f
test dword [esi + 0x1c], 0x2400
jne 0x1001133f
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.1001095f
mov eax, dword [ebx + 4]
mov ebx, eax
test eax, eax
jne 0x100112aa
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 0x1001129d
mov edi, 0xb992c0
mov dword [ebp - 0x14], edi
mov esi, dword [edi]
test esi, esi
je 0x100113c8
mov edi, dword [ebp - 0x18]
mov ebx, dword [esi]
mov ecx, dword [0x101228d4]
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 0x100113be
test dword [ebx + 0x1c], 0x2400
jne 0x100113be
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.1001095f
mov esi, dword [esi + 4]
test esi, esi
jne 0x10011379
mov edi, dword [ebp - 0x14]
add edi, 0xc
mov dword [ebp - 0x14], edi
cmp edi, 0xb99ec0
jl 0x10011370
mov eax, dword [ebp - 0x24]
mov esi, dword [eax]
mov dword [ebp - 0x18], esi
cmp esi, eax
je 0x1001140d
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.1000ef97
mov esi, dword [ebp - 0x18]
cmp esi, dword [ebp - 0x24]
jne 0x100113e2
lea eax, [ebp - 0x24]
push eax
mov ecx, eax
call fcn.100109f1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x100191ef
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1007f8be
call fcn.1005ce40
sub esp, 0x20
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
je 0x10019325
push 0x10086e24
push dword [ebp + 8]
call fcn.10069a06
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x10019325
push 0xc
call fcn.1005cbf2
pop ecx
mov dword [ebp + 8], eax
and dword [ebp - 4], 0
test eax, eax
je 0x10019240
mov ecx, eax
call fcn.1000c3fa
mov esi, eax
jmp 0x10019242
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.10063970
add esp, 0x10
cmp byte [ebp - 0x2c], 0x43
jne 0x10019309
cmp byte [ebp - 0x2b], 0x4f
jne 0x10019309
cmp byte [ebp - 0x2a], 0x4c
jne 0x10019309
mov eax, dword [ebp - 0x28]
add eax, 0xffffffe8
push eax
call fcn.1005cbe4
mov ecx, dword [ebp - 0x28]
mov edi, eax
push ebx
push 1
add ecx, 0xffffffe8
push ecx
push edi
call fcn.10063970
mov al, byte [ebp - 0x29]
add esp, 0x14
cmp al, 0x4c
jne 0x100192bc
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax]
push eax
push edi
call dword [0x100b017c]
add esp, 0xc
jmp 0x100192f7
cmp al, 0x32
jne 0x100192d9
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 [0x100b0180]
jmp 0x100192f4
cmp al, 0x33
jne 0x100192f7
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 [0x100b0184]
add esp, 0x10
push edi
call fcn.1005cc30
push ebx
call fcn.100630e1
pop ecx
pop ecx
mov eax, esi
jmp 0x10019327
test esi, esi
je 0x1001931e
mov ecx, esi
call fcn.1000c42c
push 0xc
push esi
call fcn.1005cc22
pop ecx
pop ecx
push ebx
call fcn.100630e1
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 0x1002a965
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword fs:[0x2c]
sub esp, 0x24
mov ecx, dword [0x1019ac40]
push ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1016ab70]
push ebp
push esi
push edi
cmp eax, dword [ecx + 4]
jg 0x1002aa8b
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 0x1002aa81
mov esi, dword [0x1016ab6c]
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 0x1002aa0e
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 0x1002aa0e
cmp dword [esp + 0x28], 0x1000
jne 0x1002aa0e
test byte [esp + 0x2c], 0xee
je 0x1002aa0e
mov ecx, dword [esp + 0x24]
cmp esi, ecx
ja 0x1002aa0e
mov eax, ebx
sub ecx, esi
sub eax, dword [esp + 0x18]
cmp eax, ecx
jbe 0x1002aa35
lea eax, [esp + 0x10]
push eax
push 0x40
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1002aa2d
xor edi, edi
push esi
push edi
push ebp
call fcn.1005f3d0
jmp 0x1002aa41
mov dword [esp + 0x38], 1
push esi
push ebx
push ebp
call fcn.1005ee50
mov edi, dword [esp + 0x48]
add esp, 0xc
cmp dword [esp + 0x38], 0
je 0x1002aa6d
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 0x1002aa6d
push ebx
push str.__page_read___could_not_restore_original_permissions_for_ptr__p
call fcn.1005b389
pop ecx
pop ecx
mov ecx, dword [esp + 0x40]
add ebp, esi
add ebx, esi
sub ecx, esi
mov dword [esp + 0x40], ecx
jne 0x1002a9ad
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov esi, 0x1016ab70
push esi
call fcn.1005cd68
cmp dword [0x1016ab70], 0xffffffff
pop ecx
jne 0x1002a98c
call fcn.1002aaba
push esi
mov dword [0x1016ab6c], eax
call fcn.1005cd1e
pop ecx
jmp 0x1002a98c

Function at 0x1002aaba
Capabilities:
Get system information on windows

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

Disassembly:
mov eax, dword fs:[0x2c]
sub esp, 0x24
mov ecx, dword [0x1019ac40]
push ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1016ab68]
push ebp
push esi
push edi
cmp eax, dword [ecx + 4]
jg 0x1002abf5
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 0x1002abeb
mov esi, dword [0x1016ab64]
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 0x1002ab83
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 0x1002ab83
cmp dword [esp + 0x28], 0x1000
jne 0x1002ab83
test byte [esp + 0x2c], 0xcc
je 0x1002ab83
mov ecx, dword [esp + 0x24]
cmp esi, ecx
ja 0x1002ab83
mov eax, ebx
sub ecx, esi
sub eax, dword [esp + 0x18]
cmp eax, ecx
jbe 0x1002aba2
lea eax, [esp + 0x10]
push eax
push 0x40
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1002ab9a
xor edi, edi
jmp 0x1002abb4
mov dword [esp + 0x38], 1
push esi
push dword [esp + 0x40]
push ebx
call fcn.1005ee50
mov edi, dword [esp + 0x4c]
add esp, 0xc
cmp dword [esp + 0x38], 0
je 0x1002abdd
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 0x1002abdd
push ebx
push str.__page_write___could_not_restore_original_permissions_for_ptr__p
call fcn.1005b389
pop ecx
pop ecx
add dword [esp + 0x3c], esi
add ebx, esi
sub ebp, esi
jne 0x1002ab22
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov esi, 0x1016ab68
push esi
call fcn.1005cd68
cmp dword [0x1016ab68], 0xffffffff
pop ecx
jne 0x1002ab05
call fcn.1002aaba
push esi
mov dword [0x1016ab64], eax
call fcn.1005cd1e
pop ecx
jmp 0x1002ab05
Function at 0x1003edf7
Capabilities:
Terminate process

Disassembly:
mov edx, dword [esp + 4]
mov cl, byte [edx]
test cl, cl
je 0x1003ee33
cmp byte [edx + 1], 0
jne 0x1003ee23
cmp cl, 0x61
jl 0x1003ee18
cmp cl, 0x7a
jg 0x1003ee18
movsx eax, cl
sub eax, 0x20
ret
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x1003ee23
movsx eax, cl
ret
cmp cl, 0x26
jne 0x1003ee33
lea eax, [edx + 1]
push eax
call fcn.1003ee91
pop ecx
ret
mov eax, dword [0x100e00bc]
xor ecx, ecx
push ebx
push esi
jmp 0x1003ee71
mov esi, edx
mov bl, byte [eax]
cmp bl, byte [esi]
jne 0x1003ee60
test bl, bl
je 0x1003ee5c
mov bl, byte [eax + 1]
cmp bl, byte [esi + 1]
jne 0x1003ee60
add eax, 2
add esi, 2
test bl, bl
jne 0x1003ee40
xor eax, eax
jmp 0x1003ee65
sbb eax, eax
or eax, 1
test eax, eax
je 0x1003ee88
mov eax, dword [ecx*8 + 0x100e00c4]
inc ecx
test eax, eax
jne 0x1003ee3e
push edx
push str.Unknown_key:__s
call fcn.1005b389
pop ecx
pop ecx
or eax, 0xffffffff
pop esi
pop ebx
ret
mov eax, dword [ecx*8 + 0x100e00b8]
jmp 0x1003ee85

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

Disassembly:
sub esp, 0x1fc
push ebp
push esi
push str.LoadSpriteTexture__
call fcn.1005b96b
pop ecx
mov ecx, dword [0x10194dbc]
xor ebp, ebp
mov esi, ebp
test ecx, ecx
je 0x10044946
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [0x10194efc]
mov edx, 0x100
push ebp
push 0x10194dbc
push 1
push 0x15
push ebp
push 1
push edx
mov dword [0x10194dbc], ebp
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x5c]
test eax, eax
jns 0x100449a4
push str.Failed_to_create_sprite_texture_
call fcn.1005b389
pop ecx
mov ecx, dword [0x10194dbc]
test ecx, ecx
je 0x10044990
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x10194dbc], ebp
test esi, esi
je 0x1004499b
push esi
call fcn.100630e1
pop ecx
pop esi
pop ebp
add esp, 0x1fc
ret
push str.erosqwe.raw
push 0x1019a788
push str._serosqwe_s
lea eax, [esp + 0x10c]
push 0x104
push eax
call fcn.1000802c
lea eax, [esp + 0x114]
push 0x10086e24
push eax
call fcn.10069a06
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x1004497a
mov ecx, dword [0x10194dbc]
lea eax, [esp + 8]
push ebp
push ebp
push eax
mov edx, dword [ecx]
push ebp
push ecx
call dword [edx + 0x4c]
test eax, eax
jns 0x10044a02
push str.Failed_to_lock_texture_
jmp 0x10044974
push ebx
push edi
mov edi, dword [esp + 0x14]
push 0x78
pop ebx
push esi
push 1
lea eax, [esp + 0x20]
push 0xf0
push eax
call fcn.10063970
add esp, 0x10
lea edx, [edi + 2]
mov cl, byte [esp + ebp + 0x18]
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 0x10044a23
add edi, dword [esp + 0x10]
push 0
pop ebp
sub ebx, 1
jne 0x10044a0b
mov eax, dword [0x10194dbc]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
push esi
call fcn.100630e1
pop ecx
pop edi
pop ebx
jmp 0x1004499b