joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100026ea
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
or edi, 0xffffffff
xor ebx, ebx
cmp dword [ebp + 8], edi
mov dword [ebp - 4], 0x82
mov dword [ebp - 8], ebx
jne 0x10002746
call fcn.1001258d
lea ecx, [ebp - 0x114]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x10002746
push ebx
push 0x80
push 3
push ebx
push 1
lea eax, [ebp - 0x114]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp + 8], eax
push 0x121
call fcn.100338af
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x10002761
mov eax, 0x84
jmp 0x10002893
cmp dword [ebp + 0xc], ebx
jne 0x10002799
push 0x11
push str.bQrFoEfEgJmFiFsF
push ebx
push dword [ebp + 8]
call fcn.1000f349
add esp, 0x10
cmp eax, edi
jne 0x10002787
mov eax, 0x82
jmp 0x10002893
push eax
push dword [ebp + 8]
call fcn.10002c0d
pop ecx
cmp eax, edi
pop ecx
mov dword [ebp + 0xc], eax
je 0x100027aa
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, edi
mov dword [ebp - 0x10], eax
jne 0x100027b4
mov eax, 0x1f5
jmp 0x10002893
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
cmp ebx, dword [ebp - 0x10]
jae 0x10002873
xor edi, edi
lea eax, [ebp - 0xc]
push edi
push eax
push 0x121
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10002863
cmp dword [ebp - 0xc], edi
jbe 0x10002819
imul ebx, ebx, 0x13c6a5
sub ebx, 0x27bcf213
mov eax, ebx
mov ecx, ebx
shr eax, 0x18
shr ecx, 0x10
xor al, cl
mov ecx, ebx
shr ecx, 8
xor al, cl
xor al, byte [edi + esi]
xor al, bl
mov byte [edi + esi], al
inc edi
cmp edi, dword [ebp - 0xc]
jb 0x100027ec
cmp dword [esi], 0xa8726b03
jne 0x1000286c
cmp dword [esi + 4], 0xef01996c
jne 0x1000286c
mov eax, dword [esi + 8]
cmp eax, dword [ebp + 0x10]
jne 0x10002851
push dword [ebp + 0xc]
push esi
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.10002b1d
add esp, 0x10
cmp eax, 0x82
mov dword [ebp - 4], eax
jne 0x10002873
inc dword [ebp - 8]
mov eax, dword [esi + 0x10]
push 0
add eax, dword [esi + 0xc]
push 0
add dword [ebp + 0xc], eax
jmp 0x100027b6
mov dword [ebp - 4], 0x1f5
jmp 0x10002873
mov dword [ebp - 4], 0x82
push esi
call fcn.10033619
cmp dword [ebp - 4], 0x82
pop ecx
jne 0x10002890
cmp dword [ebp - 8], 0
jne 0x10002890
mov dword [ebp - 4], 0x1fd
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10002c0d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push 0
add eax, 0xffffffc7
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp + 0xc]
push 0
push eax
lea eax, [ebp - 0x4c]
push 0x4a
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10002c45
or eax, 0xffffffff
leave
ret
mov eax, dword [ebp - 0x34]
leave
ret
Function at 0x10002ced
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
call fcn.100026ad
mov esi, dword [esp + 0x10]
mov edi, 0x82
xor ebx, ebx
cmp dword [esi + 0x28], edi
jne 0x10002d46
push ebx
push ebx
push ebx
push 2
push 0x100630b0
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [esi + 0x20], eax
jne 0x10002d26
mov dword [esi + 0x28], 0x1f8
cmp dword [esi + 0x28], edi
jne 0x10002d46
push ebx
push ebx
push ebx
push 4
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [esi], eax
jne 0x10002d46
mov dword [esi + 0x28], 0x84
pop edi
pop esi
pop ebx
ret

Function at 0x10004174
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
push 0x40
push 0
push dword [ebp + 8]
call fcn.10012d0a
add esp, 0x10
test ax, ax
jne 0x100041b3
mov edi, 0xff
push 0x40
push edi
push esi
call fcn.10033d30
push 0xf8
push edi
push dword [ebp + 0x10]
call fcn.10033d30
add esp, 0x18
jmp 0x100041f3
cmp word [esi], 0x5a4d
mov ebx, dword [ebp + 0x10]
mov edi, 0xf8
jne 0x100041e4
push ebx
push edi
push dword [esi + 0x3c]
push dword [ebp + 8]
call fcn.10012d0a
add esp, 0x10
test ax, ax
je 0x100041e4
xor eax, eax
cmp dword [ebx], 0x4550
sete al
jmp 0x100041f6
push edi
push 0xff
push ebx
call fcn.10033d30
add esp, 0xc
xor ax, ax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10009370
Capabilities:
Check for software breakpoints

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x10009398
mov ax, 1
add esp, 0x94
ret
mov eax, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x9c]
cmp eax, 2
je 0x100093c6
mov eax, dword [edi]
and eax, 0x178025ed
mov dword [edi], eax
mov ecx, dword [edi]
xor eax, eax
and ecx, 0x178025ed
mov dword [edi], ecx
pop edi
add esp, 0x94
ret
mov eax, dword [0x10083c18]
test eax, eax
je 0x100093d9
mov edx, dword [0x10083c1c]
test edx, edx
jne 0x10009424
call fcn.10011f1f
test eax, eax
mov dword [0x10083c18], eax
je 0x1000941e
push 0x10083b10
push 0x10083c08
mov dword [0x10083c0c], eax
mov dword [0x10083c10], 0x67
call fcn.1000415a
mov eax, dword [0x10083c18]
mov ecx, dword [0x10083b88]
add esp, 8
lea edx, [ecx + eax]
mov dword [0x10083c1c], edx
jmp 0x10009424
mov edx, dword [0x10083c1c]
push esi
mov esi, 0xff
test eax, eax
je 0x10009451
test edx, edx
je 0x10009451
mov ecx, dword [edx + 0x1c]
mov edx, dword [edx + 0x14]
add ecx, eax
xor esi, esi
test edx, edx
jbe 0x10009451
push ebx
mov ebx, dword [ecx]
cmp byte [ebx + eax], 0xcc
jne 0x1000944a
inc esi
add ecx, 4
dec edx
jne 0x10009441
pop ebx
xor edx, edx
cmp edx, esi
pop esi
sbb eax, eax
neg eax
test ax, ax
jne 0x10009471
mov ecx, dword [edi]
and ecx, 0x178025ed
mov dword [edi], ecx
pop edi
add esp, 0x94
ret
mov ecx, dword [esp + 0x9c]
pop edi
and dword [ecx], 0x2670e163
add esp, 0x94
ret
Function at 0x10009660
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push ebx
push esi
lea eax, [ebp - 0x98]
push edi
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x10009692
mov ax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x88], 2
je 0x100096ba
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
and eax, 0x970560ef
mov dword [ecx], eax
mov edx, dword [ecx]
xor eax, eax
and edx, 0x970560ef
mov dword [ecx], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 1
pushal
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0x30]
movzx eax, byte [ecx + 2]
test eax, eax
jne 0x100096d8
xor eax, eax
mov dword [ebp - 4], eax
popal
mov esi, dword [ebp - 4]
xor ecx, ecx
cmp ecx, esi
sbb eax, eax
neg eax
test ax, ax
je 0x100096f9
call fcn.1000127a
neg ax
sbb eax, eax
inc eax
test ax, ax
jne 0x10009709
mov ecx, dword [ebp + 8]
and dword [ecx], 0x970560ef
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
pop edi
pop esi
pop ebx
and dword [ecx], 0x68ecd011
mov esp, ebp
pop ebp
ret

Function at 0x1000e44b
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 0x200
push eax
push 0
push 0
lea eax, [ebp - 8]
push 0
push eax
lea eax, [ebp - 0x314]
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
test esi, esi
jne 0x1000e4d6
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x104
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x314]
push eax
push dword [ebp + 8]
call fcn.1000e540
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1000e4cb
mov eax, dword [ebp - 4]
and byte [ebp + eax - 0x114], 0
lea eax, [ebp - 0x114]
push eax
call fcn.1000e4dc
test ax, ax
pop ecx
jne 0x1000e4ce
inc edi
jmp 0x1000e458
mov eax, dword [ebp + 0xc]
mov word [eax], 1
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x1000e4dc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
push 0x5c
push ebx
call fcn.10033f1d
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x1000e4f7
mov esi, ebx
jmp 0x1000e4f8
inc esi
push 0x10066b24
call fcn.10012429
mov edi, eax
pop ecx
test edi, edi
jne 0x1000e50e
xor ax, ax
jmp 0x1000e53c
push esi
push edi
call fcn.10037b60
pop ecx
pop ecx
test eax, eax
push edi
je 0x1000e524
call fcn.10033619
pop ecx
jmp 0x1000e509
call fcn.10033619
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov ax, cx
pop edi
pop esi
pop ebx
ret
Function at 0x1000e540
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0xc]
push edi
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
test edi, edi
jne 0x1000e59b
push esi
push 0x10066b04
call fcn.10012429
mov esi, eax
pop ecx
test esi, esi
je 0x1000e591
push dword [ebp + 0x14]
lea eax, [ebp + 8]
push dword [ebp + 0x10]
push eax
push edi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
mov edi, eax
call fcn.10033619
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, edi
pop edi
pop ebp
ret

Function at 0x1000f19c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.10033880
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp + 8]
push 1
push eax
call fcn.10004096
mov esi, eax
add esp, 0x18
test esi, esi
je 0x1000f1f2
push dword [ebp + 0x18]
lea eax, [ebp + 8]
push esi
push eax
call fcn.100042df
add esp, 0xc
test eax, eax
jne 0x1000f1fc
lea eax, [ebp - 8]
add esi, 0x28
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
jmp 0x1000f1b8
mov eax, 0x258
jmp 0x1000f28c
cmp dword [ebp - 4], 0
je 0x1000f287
push edi
cmp dword [ebp - 4], 0x1000
mov esi, dword [ebp - 4]
jb 0x1000f218
mov esi, 0x1000
lea eax, [ebp - 0x100c]
push eax
push esi
push dword [ebp - 8]
lea eax, [ebp + 8]
push eax
call fcn.1000f17f
mov al, byte [ebp - 0x100c]
add esp, 0x10
xor al, 0x43
push 1
mov byte [ebp - 0x100c], al
pop edi
xor al, 0x15
cmp esi, edi
mov dl, al
jbe 0x1000f263
mov al, byte [ebp + edi - 0x100d]
lea ecx, [ebp + edi - 0x100c]
xor al, byte [ecx]
add al, dl
add dl, al
inc edi
cmp edi, esi
mov byte [ecx], al
jb 0x1000f248
lea eax, [ebp - 0x100c]
push eax
push esi
push dword [ebp - 8]
lea eax, [ebp + 8]
push eax
call fcn.1000f13b
sub dword [ebp - 4], esi
add dword [ebp - 8], esi
add esp, 0x10
cmp dword [ebp - 4], 0
jne 0x1000f207
pop edi
mov eax, 0x82
pop esi
leave
ret

Function at 0x1000f28f
Capabilities:
Encode data using xor

Disassembly:
xor edx, edx
cmp dword [esp + 8], edx
jle 0x1000f2db
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
mov ecx, dword [esi + 4]
mov eax, dword [esp + 0x10]
xor ecx, dword [esi]
lea edi, [edx + eax]
mov eax, ecx
mov ebx, ecx
shr eax, 0x18
shr ebx, 0x10
xor al, bl
mov ebx, ecx
shr ebx, 8
xor al, bl
xor al, byte [edi]
xor al, cl
mov byte [edi], al
mov ecx, dword [esi + 4]
movzx eax, al
shl ecx, 8
add ecx, eax
inc edx
cmp edx, dword [esp + 0x14]
mov dword [esi + 4], ecx
jl 0x1000f29e
pop edi
pop esi
pop ebx
ret
Function at 0x1000f349
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x14]
push ebx
push edi
lea edi, [eax + 0x4000]
push edi
call fcn.100338af
xor ebx, ebx
pop ecx
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x1000f371
or eax, 0xffffffff
jmp 0x1000f423
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push ebx
push eax
push dword [ebp + 8]
mov dword [ebp + 0xc], eax
call esi
lea eax, [ebp - 8]
push ebx
push eax
push edi
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000f412
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x14]
jb 0x1000f412
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push dword [ebp - 4]
call fcn.1000f2dc
mov edi, eax
add esp, 0x10
cmp edi, ebx
jne 0x1000f400
mov eax, dword [ebp + 0x14]
add dword [ebp + 0xc], 0x4000
add eax, 0x4000
cmp dword [ebp - 8], eax
jne 0x1000f3de
mov eax, dword [ebp + 0x14]
push 1
neg eax
push ebx
push eax
push dword [ebp + 8]
call esi
lea eax, [ebp - 8]
push ebx
push eax
mov eax, dword [ebp + 0x14]
add eax, 0x4000
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000f39c
cmp edi, ebx
je 0x1000f412
sub edi, dword [ebp - 4]
push ebx
push ebx
add dword [ebp + 0xc], edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
jmp 0x1000f416
or dword [ebp + 0xc], 0xffffffff
push dword [ebp - 4]
call fcn.10033619
mov eax, dword [ebp + 0xc]
pop ecx
pop esi
pop edi
pop ebx
leave
ret
Function at 0x10012e68
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push edi
mov dl, byte [ecx]
xor eax, eax
xor edi, edi
mov byte [esi], dl
cmp byte [ecx], al
je 0x10012e96
mov edx, esi
push ebx
sub edx, ecx
mov bl, byte [ecx + 1]
inc edi
inc ecx
dec bl
xor bl, byte [edx + ecx - 1]
mov byte [edx + ecx], bl
cmp byte [ecx], al
jne 0x10012e83
pop ebx
mov byte [edi + esi], al
mov eax, esi
pop edi
pop esi
ret

Function at 0x10015608
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
push ebx
push esi
push edi
lea eax, [ebp - 0x230]
push str.RxFileMap
push eax
call fcn.10033710
push dword [0x10083850]
lea eax, [ebp - 0x230]
push eax
call fcn.10033720
add esp, 0x10
lea eax, [ebp - 0x230]
xor edi, edi
push eax
push edi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
cmp eax, edi
je 0x10015656
push eax
jmp 0x100157ec
lea eax, [ebp - 0x11c]
push str.EntryEvent
push eax
call fcn.10033710
push dword [0x10083850]
lea eax, [ebp - 0x11c]
push eax
call fcn.10033720
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
add esp, 0x10
lea eax, [ebp - 0x11c]
mov esi, 0x100638c0
push eax
push edi
push edi
push esi
call ebx
cmp eax, edi
mov dword [0x10083858], eax
je 0x100157d9
lea eax, [ebp - 0x11c]
push str.ExitEvent
push eax
call fcn.10033710
push dword [0x10083850]
lea eax, [ebp - 0x11c]
push eax
call fcn.10033720
add esp, 0x10
lea eax, [ebp - 0x11c]
push eax
push edi
push edi
push esi
call ebx
cmp eax, edi
mov dword [0x1008385c], eax
je 0x100157d9
lea eax, [ebp - 0x230]
push eax
push 0x10000
push edi
push 4
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [0x10083860], eax
je 0x100157d9
push edi
push edi
push edi
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [0x10083870], eax
je 0x100157d9
cmp word [ebp + 8], di
je 0x100157f2
push edi
push edi
push edi
push esi
call ebx
cmp eax, edi
mov dword [ebp + 8], eax
je 0x100157d9
lea eax, [ebp - 0x344]
push str.ASCMutex
push eax
call fcn.10033710
push dword [0x10083850]
lea eax, [ebp - 0x344]
push eax
call fcn.10033720
add esp, 0x10
lea eax, [ebp - 0x344]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, edi
mov dword [0x1008386c], eax
je 0x100157d9
lea eax, [ebp - 0x11c]
push str.ExitThreadEvent
push eax
call fcn.10033710
push dword [0x10083850]
lea eax, [ebp - 0x11c]
push eax
call fcn.10033720
add esp, 0x10
lea eax, [ebp - 0x11c]
push eax
push edi
push edi
push esi
call ebx
cmp eax, edi
mov dword [0x10083864], eax
je 0x100157d9
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push edi
push eax
push 0x10015c6d
push edi
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [0x10083854], eax
jne 0x100157de
xor ax, ax
jmp 0x100157f6
push dword [0x100638bc]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10015a20
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
push 1
pop esi
lea eax, [ebp - 0x114]
push str.ASCMutex
push eax
call fcn.10033710
push dword [ebp + 8]
lea eax, [ebp - 0x114]
push eax
call fcn.10033720
add esp, 0x10
lea eax, [ebp - 0x114]
push eax
push esi
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
mov dword [0x10083868], eax
je 0x10015a79
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10015a7b
xor esi, esi
mov ax, si
pop esi
leave
ret

Function at 0x10016e60
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov dword [esp + 0xc], 0xf367ac7f
call fcn.10016e40
mov ebx, eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
push ecx
call fcn.100122f6
mov esi, dword [esp + 0x20]
add esp, 8
mov edi, 0xc
mov dword [esi], ebx
lea edx, [esp + 0x10]
push edx
call fcn.10012303
mov dword [edi + esi], eax
mov ecx, dword [esi]
add esp, 4
xor ecx, eax
sub edi, 4
mov dword [esi], ecx
jne 0x10016e92
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov dword [eax], ebx
mov ax, 1
pop ebx
add esp, 8
ret
Function at 0x10018ddc
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
mov eax, 0x10050204
call fcn.10035078
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
lea eax, [edi + 4]
mov dword [ebp - 0x10], esi
push eax
lea ecx, [esi + 4]
call fcn.10019000
lea eax, [edi + 0x10]
lea ecx, [esi + 0x10]
push eax
mov dword [esi], 0x100587b4
call fcn.1001901b
lea eax, [edi + 0x1c]
lea ecx, [esi + 0x1c]
push eax
mov dword [esi + 0xc], 0x100587a8
call fcn.1001901b
lea eax, [edi + 0x28]
lea ecx, [esi + 0x28]
push eax
mov dword [esi + 0x18], 0x1005879c
call fcn.1001901b
lea eax, [edi + 0x34]
lea ecx, [esi + 0x34]
push eax
mov dword [esi + 0x24], 0x10058790
call fcn.1001901b
lea eax, [edi + 0x40]
lea ecx, [esi + 0x40]
push eax
mov dword [esi + 0x30], 0x10058784
call fcn.1001901b
lea eax, [edi + 0x4c]
lea ecx, [esi + 0x4c]
push eax
mov dword [esi + 0x3c], 0x10058778
call fcn.1001901b
lea eax, [edi + 0x58]
lea ecx, [esi + 0x58]
push eax
mov dword [esi + 0x48], 0x1005876c
call fcn.1001901b
lea eax, [edi + 0x64]
lea ecx, [esi + 0x64]
push eax
mov dword [esi + 0x54], 0x10058760
call fcn.1001901b
lea eax, [edi + 0x70]
lea ecx, [esi + 0x70]
push eax
mov dword [esi + 0x60], 0x10058754
call fcn.1001901b
lea eax, [edi + 0x7c]
lea ecx, [esi + 0x7c]
push eax
mov dword [esi + 0x6c], 0x10058748
call fcn.1001901b
lea ebx, [esi + 0x84]
lea eax, [edi + 0x88]
push eax
mov dword [esi + 0x78], 0x1005873c
lea ecx, [ebx + 4]
call fcn.1001901b
mov dword [ebx], 0x10058730
lea ebx, [esi + 0x90]
lea eax, [edi + 0x94]
push eax
lea ecx, [ebx + 4]
call fcn.1001901b
mov dword [ebx], 0x10058724
lea ebx, [esi + 0x9c]
lea eax, [edi + 0xa0]
push eax
lea ecx, [ebx + 4]
call fcn.10019036
mov dword [ebx], 0x10058718
lea ebx, [esi + 0xa8]
lea eax, [edi + 0xac]
push eax
lea ecx, [ebx + 4]
call fcn.10019036
mov dword [ebx], 0x1005870c
lea ebx, [esi + 0xb4]
lea eax, [edi + 0xb8]
push eax
lea ecx, [ebx + 4]
call fcn.10019036
mov dword [ebx], 0x10058700
lea ebx, [esi + 0xc0]
lea eax, [edi + 0xc4]
push eax
lea ecx, [ebx + 4]
call fcn.10019036
mov dword [ebx], 0x100586f4
lea ebx, [esi + 0xcc]
lea eax, [edi + 0xd0]
push eax
lea ecx, [ebx + 4]
call fcn.10019036
mov dword [ebx], 0x100586e8
mov al, byte [edi + 0xd8]
lea ebx, [esi + 0xd8]
push 0
mov ecx, ebx
mov byte [ebx], al
call fcn.10017a35
push dword [0x100586b4]
lea eax, [edi + 0xd8]
mov ecx, ebx
push 0
push eax
call fcn.10018804
and dword [ebp - 4], 0
lea eax, [edi + 0xe8]
push eax
lea ecx, [esi + 0xe8]
call fcn.10027070
lea ebx, [esi + 0xf8]
lea eax, [edi + 0xfc]
push eax
mov byte [ebp - 4], 1
lea ecx, [ebx + 4]
call fcn.1001901b
mov ecx, dword [ebp - 0xc]
mov dword [ebx], 0x100586dc
mov eax, dword [edi + 0x104]
pop edi
mov dword [esi + 0x104], eax
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x10019532
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
and dword [ebp - 8], 0
push edi
mov esi, ecx
push 0x40
pop eax
lea ecx, [ebp - 8]
mov ebx, dword [esi + 0x118]
lea edi, [esi + 4]
push ecx
push eax
mov ecx, edi
mov dword [ebp - 0x18], eax
call fcn.10019e59
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, edi
call fcn.10019eb9
mov ecx, edi
mov dword [ebp - 4], eax
call fcn.10019f11
xor dword [ebp - 4], eax
mov ecx, edi
call fcn.10019db3
cmp eax, 1
jne 0x100195c3
mov eax, dword [esi + 0x118]
mov dword [ebp - 0xc], eax
call fcn.1002b2c9
mov ebx, dword [eax]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.10019dd5
push eax
xor eax, eax
cmp word [ebp + 8], ax
mov ecx, edi
sete al
push eax
push dword [ebp - 4]
push dword [ebp - 0xc]
call fcn.10019e59
mov ecx, dword [ebp - 0x10]
push eax
call dword [ebx + 0xc]
jmp 0x100195eb
mov ebx, dword [esi + 0x118]
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.10019dd5
push eax
mov ecx, edi
push dword [ebp + 8]
push dword [ebp - 4]
push ebx
call fcn.10019e59
push eax
mov ecx, esi
call fcn.10019613
mov esi, dword [esi + 0x118]
mov ebx, eax
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
push dword [ebp - 8]
call fcn.10019e59
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
mov ax, bx
pop esi
pop ebx
leave
ret 4