joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4035f3
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.00402332
and dword [ebp - 4], 0
cmp dword [0x40b260], 0
mov ebx, eax
jne 0x4036a4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x403755
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x403755
push eax
call fcn.004022c0
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b260], eax
call esi
push eax
call fcn.004022c0
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b264], eax
call esi
push eax
call fcn.004022c0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40b268], eax
call esi
push eax
call fcn.004022c0
pop ecx
mov dword [0x40b270], eax
test eax, eax
je 0x4036a4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004022c0
pop ecx
mov dword [0x40b26c], eax
mov eax, dword [0x40b26c]
cmp eax, ebx
je 0x4036fc
cmp dword [0x40b270], ebx
je 0x4036fc
push eax
call fcn.0040233b
push dword [0x40b270]
mov esi, eax
call fcn.0040233b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4036fc
test edi, edi
je 0x4036fc
call esi
test eax, eax
je 0x4036f3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4036f3
test byte [ebp - 0xc], 1
jne 0x4036fc
or dword [ebp + 0x10], 0x200000
jmp 0x403735
mov eax, dword [0x40b264]
cmp eax, ebx
je 0x403735
push eax
call fcn.0040233b
pop ecx
test eax, eax
je 0x403735
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x403735
mov eax, dword [0x40b268]
cmp eax, ebx
je 0x403735
push eax
call fcn.0040233b
pop ecx
test eax, eax
je 0x403735
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b260]
call fcn.0040233b
pop ecx
test eax, eax
je 0x403755
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x403757
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40545e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40aa08]
jne 0x405468
repz ret
jmp fcn.00406a45
Function at 0x10049f9
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x10081b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push edi
push 2
xor edi, edi
pop ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x214], edi
cmp dword [ebp + 0xc], edi
je 0x1004a30
push 3
pop eax
jmp 0x1004b31
cmp dword [ebp + 0x14], ecx
jl 0x1004a28
mov ecx, dword [eax]
cmp word [ecx], di
je 0x1004a28
push ebx
mov ebx, dword [eax + 4]
cmp word [ebx], di
jne 0x1004a4d
push 3
pop eax
jmp 0x1004b30
push esi
push edi
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x104
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp eax, esi
jae 0x1004b2c
cmp eax, edi
je 0x1004b2c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1004b2c
push 0x1001610
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x21c], eax
cmp eax, edi
je 0x1004b24
push 0x10015ec
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x218], eax
cmp eax, edi
je 0x1004b18
mov esi, dword [sym.imp.msvcrt.dll___iob_func]
lea eax, [ebp - 0x20c]
push eax
push ebx
push 0xeeae
call esi
add eax, 0x20
push eax
call fcn.010017b5
add esp, 0x10
lea eax, [ebp - 0x214]
push eax
push 1
lea eax, [ebp - 0x20c]
push eax
push ebx
push edi
call dword [ebp - 0x218]
test eax, eax
je 0x1004b18
push 0xeeb2
call esi
add eax, 0x20
push eax
call fcn.010017b5
xor eax, eax
cmp dword [ebp - 0x214], edi
pop ecx
setne al
pop ecx
mov dword [ebp - 0x210], eax
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x210]
jmp 0x1004b2f
push 2
pop eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0100647b
leave
ret 0x14

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10002120
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1005e048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
cmp byte [eax], 0
jne 0x1000224d
push ebx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
mov ecx, dword [esi + 0x3c]
add ecx, esi
movzx ebx, word [ecx + 0x14]
movzx eax, word [ecx + 6]
add ebx, 0x18
add ebx, ecx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x10002245
push edi
nop dword [eax + eax]
mov ecx, str..text
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10002197
test dl, dl
je 0x10002193
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10002197
add eax, 2
add ecx, 2
test dl, dl
jne 0x10002177
xor eax, eax
jmp 0x1000219c
sbb eax, eax
or eax, 1
test eax, eax
je 0x100021d0
mov eax, 0x10055e80
mov ecx, ebx
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x100021c7
test dl, dl
je 0x100021c3
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x100021c7
add ecx, 2
add eax, 2
test dl, dl
jne 0x100021a7
xor eax, eax
jmp 0x100021cc
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10002232
mov edi, dword [ebx + 8]
add edi, 0xfff
and edi, 0xfffff000
push edi
push dword [ebx + 0xc]
push ebx
push str.Unprotecting_memory_region__s:_0x_08X__size:_0x_08X_
push 3
push 0x10087438
call fcn.1000e100
mov eax, dword [ebx + 0x24]
lea ecx, [ebp - 8]
and eax, 0x20000000
add esp, 0x18
neg eax
sbb eax, eax
and eax, 0x3c
add eax, 4
push ecx
push eax
mov eax, dword [ebx + 0xc]
push edi
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10002232
push str.Virtual_protect_error
push 0x10087438
call fcn.1000e2b0
add esp, 8
mov edx, dword [ebp - 0xc]
add ebx, 0x28
dec edx
mov dword [ebp - 0xc], edx
test edx, edx
jne 0x10002170
pop edi
mov eax, dword [ebp - 0x10]
pop esi
pop ebx
mov byte [eax], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10021c67
mov esp, ebp
pop ebp
ret

Function at 0x100025d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1005e048]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call fcn.10002290
mov ecx, dword [0x100609c8]
mov esi, eax
test cl, 1
jne 0x1000261f
or ecx, 1
mov dword [0x100609cc], 0x10055ed8
mov dword [0x100609c8], ecx
mov dword [0x100609d4], 0
mov dword [0x100609d0], 0
call fcn.10002390
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 4
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x1000265b
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
push ecx
push dword [ebp - 0x14]
mov dword [ebp - 8], ecx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10021c67
mov esp, ebp
pop ebp
ret
Function at 0x10002670
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1005e048]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 1
push esi
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov bl, byte [esi]
test eax, eax
je 0x100026c1
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
push ecx
push dword [ebp - 0x14]
mov dword [ebp - 8], ecx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.10021c67
mov esp, ebp
pop ebp
ret
Function at 0x10004d20
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1005e048]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push str.Injecting_CustomOpcodeSystem...
push 3
push 0x10087438
call fcn.1000e100
mov eax, dword [0x1008753c]
mov esi, 0x10082020
add esp, 0xc
mov edx, 0x1b
mov eax, dword [eax*4 + 0x1005f010]
sub esi, eax
nop
mov ecx, dword [eax]
lea eax, [eax + 4]
mov dword [esi + eax - 4], ecx
mov dword [eax - 4], 0x10004110
sub edx, 1
jne 0x10004d60
mov eax, 0x10004110
mov ecx, 0x148
mov edi, 0x10081af0
rep stosd dword es:[edi], eax
mov eax, dword [0x1008753c]
mov eax, dword [eax*4 + 0x1005f024]
mov dword [eax], 0x10081af0
mov ecx, dword [0x1008753c]
mov eax, dword [ecx*4 + 0x1005eae8]
mov dword [0x10080ac0], eax
mov eax, dword [ecx*4 + 0x1005eafc]
mov dword [0x10082014], eax
mov eax, dword [ecx*4 + 0x1005eb4c]
mov dword [0x10080ac4], eax
mov eax, dword [ecx*4 + 0x1005eb60]
mov dword [0x10081aec], eax
mov eax, dword [ecx*4 + 0x1005eb10]
mov dword [0x100820a0], eax
mov eax, dword [ecx*4 + 0x1005eb24]
mov dword [0x10080acc], eax
mov eax, dword [ecx*4 + 0x1005eb38]
mov dword [0x10080ad0], eax
mov eax, dword [ecx*4 + 0x1005eb74]
mov dword [0x10080ad8], eax
mov eax, dword [ecx*4 + 0x1005eb88]
mov dword [0x10081ae8], eax
mov eax, dword [ecx*4 + 0x1005eb9c]
mov dword [0x10060ab0], eax
mov eax, dword [ecx*4 + 0x1005ebb0]
mov dword [0x1008201c], eax
mov eax, dword [ecx*4 + 0x1005ebc4]
mov dword [0x1008209c], eax
mov eax, dword [ecx*4 + 0x1005ebd8]
mov dword [0x10080adc], eax
mov eax, dword [ecx*4 + 0x1005f038]
mov dword [0x10060ab4], eax
mov eax, dword [ecx*4 + 0x1005f04c]
mov dword [0x10082094], eax
mov eax, dword [ecx*4 + 0x1005f060]
mov dword [0x10081ae4], eax
mov eax, dword [ecx*4 + 0x1005f074]
mov dword [0x10081ae0], eax
mov eax, dword [ecx*4 + 0x1005f0b0]
mov dword [0x10080abc], eax
mov eax, dword [ecx*4 + 0x1005f0ec]
mov dword [0x10080ad4], eax
mov eax, dword [ecx*4 + 0x1005f100]
mov dword [0x1008208c], eax
mov eax, dword [ecx*4 + 0x1005f114]
mov dword [0x10082098], eax
test ecx, ecx
jne 0x10004f25
mov eax, dword [0x100609c8]
test al, 1
jne 0x10004ece
or eax, 1
mov dword [0x100609cc], 0x10055ed8
mov dword [0x100609c8], eax
mov dword [0x100609d4], ecx
mov dword [0x100609d0], ecx
call fcn.10002390
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x10]
push eax
push 0x40
mov esi, 0x583a07
mov dword [ebp - 0x14], 4
push 4
push esi
mov dword [ebp - 0x18], esi
call edi
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x10004f0d
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call edi
mov dword [0x10082010], esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10021c67
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ecx*4 + 0x1005f0c4]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov dword [0x10082010], eax
pop esi
call fcn.10021c67
mov esp, ebp
pop ebp
ret 4
Function at 0x1000c850
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10047fc0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1005e048]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10021c7a
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.10020a1a
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000d080
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1005e048]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 0x10], 0
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
je 0x1000d0ae
lea eax, [ebp - 8]
push eax
push 0x40
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov cl, byte [edi]
cmp esi, 1
je 0x1000d0d7
push esi
movzx eax, cl
push eax
push dword [ebp + 8]
call fcn.10023990
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10021c67
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 8]
pop edi
pop esi
mov byte [eax], cl
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10021c67
mov esp, ebp
pop ebp
ret 0x10

Function at 0x1000e2b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x10]
push esi
push edi
push eax
push dword [ebp + 0xc]
push 1
call fcn.1000e120
mov edi, dword [0x10087654]
mov esi, eax
push 0
push 0xf020
push 0x112
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.USER32.dll_PostMessageA]
push 6
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
call edi
push 0x41010
push str.CLEO_error
push esi
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push 0xf120
push 0x112
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
push 9
push esi
call edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000e7c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x1000e7f2
jl 0x1000e7e5
test ecx, ecx
jne 0x1000e7f2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x1000e8b2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.1000c680
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x1000e85e
jg 0x1000e81d
test esi, esi
je 0x1000e85e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x1000e835
mov eax, dword [esp + 0x10]
jl 0x1000e82f
cmp eax, esi
jae 0x1000e835
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.10023400
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x1000e87f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x1000e89b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x1000e804
jl 0x1000e89b
test ecx, ecx
jne 0x1000e804
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x1000e8f6
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x1000e8f6
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.10023400
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x1000e967
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1000e91c
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x1000e952
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.10030a8a
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x1000e967
cmp edi, eax
ja 0x1000e930
test edi, edi
je 0x1000e967
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.10030a8a
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100102d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1005e048]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.Injecting_MenuStatusNotifier...
push 3
push 0x10087438
call fcn.1000e100
mov esi, dword [0x1008753c]
add esp, 0xc
mov eax, dword [esi*4 + 0x1005ebec]
mov esi, dword [esi*4 + 0x1005ecb4]
mov dword [0x100820a4], eax
inc esi
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esi]
add esi, 4
add eax, esi
mov esi, dword [0x1008753c]
mov dword [0x100820a8], eax
mov esi, dword [esi*4 + 0x1005ecb4]
push esi
push str.Replacing_call:_0x_08X
push 3
push 0x10087438
call fcn.1000e100
lea ecx, [esi + 1]
mov byte [esi], 0xe8
mov eax, 0x1000fd50
add esp, 0x10
sub eax, ecx
sub eax, 4
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10021c67
mov esp, ebp
pop ebp
ret 4
Function at 0x10017fb0
Capabilities:
Access peb ldr_data
Create thread
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10048fbe
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x1005e048]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], esi
mov dword [esi], eax
mov dword [esi + 4], 0
mov dword [ebp - 4], 0
push 0xa0
mov dword [esi + 4], 0
call fcn.10021c7a
add esp, 4
mov dword [esi + 4], eax
lea esi, [eax + 0x10]
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0x14]
mov ecx, esi
mov dword [ebp - 0x18], esi
push dword [eax]
call fcn.100037b0
lea edi, [esi + 0x18]
xorps xmm0, xmm0
mov dword [ebp - 0x24], edi
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov byte [ebp - 4], 4
lea esi, [edi + 0x24]
mov dword [ebp - 0x14], esi
push 0x44
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10021c7a
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [edi + 0x2c], 0
lea eax, [edi + 0x3c]
push 2
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
push eax
mov word [edi + 0x38], 1
call fcn.10021506
push 8
mov byte [ebp - 4], 6
call fcn.10021c7a
mov dword [ebp - 0x14], eax
mov dword [eax], edi
mov dword [eax + 4], 0x100163c0
lea esi, [edi + 0x70]
mov byte [ebp - 4], 7
push esi
push 0
push eax
push 0x100182d0
push 0
push 0
call fcn.10031ca2
add esp, 0x28
mov dword [edi + 0x6c], eax
test eax, eax
je 0x10018138
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [ecx], edx
mov ecx, dword [eax + 4]
mov dword [ecx + 4], edx
mov ecx, dword [eax + 4]
mov dword [ecx + 8], edx
mov ecx, dword [eax + 4]
mov byte [ecx + 0xc], 0
mov ecx, dword [eax + 4]
mov byte [ecx + 0xd], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10021c67
mov esp, ebp
pop ebp
ret 0x14
push 6
mov dword [esi], 0
call fcn.100211fb
int3
Function at 0x1002017c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.10020158
pop esi
leave
ret 8

Function at 0x10026d54
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10022c10
mov eax, dword [0x1005e048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.10034982
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10026d96
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10026ef2
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10045fd0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x10060588]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10034b91
mov ecx, dword [esi*4 + 0x10060588]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x10026eeb
cmp eax, dword [ecx + edi + 0x24]
jne 0x10026eeb
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10026eeb
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10034b91
add esp, 0x14
test edx, edx
jl 0x10026eeb
jg 0x10026e61
test eax, eax
jb 0x10026eeb
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10026eeb
jl 0x10026e7b
cmp dword [ebp - 0x1008], eax
ja 0x10026eeb
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10026e99
test ebx, ebx
je 0x10026ed2
cmp ecx, edi
jae 0x10026ed2
mov al, byte [ecx]
cmp al, 0xd
jne 0x10026eb3
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10026ebf
cmp byte [ecx + 1], 0xa
jne 0x10026ebf
inc ecx
jmp 0x10026ebf
movzx eax, al
movsx eax, byte [eax + 0x1005e290]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10026e99
cmp edx, ebx
jne 0x10026e99
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10026ef0
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10021c67
leave
ret