joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1011d900
Capabilities:
Allocate or change rwx memory
Check mutex on windows

Disassembly:
mov eax, dword [0x1064a990]
test eax, eax
jne 0x1011d91d
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, eax
mov dword [0x1064a990], edx
jmp 0x1011d92c
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [0x1064a990]
mov eax, dword [esp + 4]
mov ecx, 0x14
cmp eax, ecx
cmovb eax, ecx
push esi
mov esi, dword [0x1064a9a0]
push edi
lea edi, [eax + 0xf]
and edi, 0xfffffff8
test esi, esi
je 0x1011d95c
lea esp, [esp]
cmp dword [esi + 0x10], edi
jae 0x1011d991
mov esi, dword [esi + 8]
test esi, esi
jne 0x1011d950
push ebx
push 0x40
lea esi, [edi + 0x10007]
push 0x3000
and esi, 0xffff0000
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
jne 0x1011d9e3
push dword [0x1064a990]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop ebx
pop edi
xor eax, eax
pop esi
ret
mov ecx, dword [esi + 0x10]
lea eax, [edi + 0x40]
cmp ecx, eax
jbe 0x1011d9ab
sub ecx, edi
mov dword [esi + 0x10], ecx
add esi, ecx
mov dword [esi + 4], ecx
mov dword [esi + edi + 4], edi
jmp 0x1011d9ce
mov edi, dword [esi + 8]
test edi, edi
je 0x1011d9b8
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov edi, dword [esi + 0xc]
mov eax, dword [esi + 8]
test edi, edi
je 0x1011d9c7
mov dword [edi + 8], eax
jmp 0x1011d9cc
mov dword [0x1064a9a0], eax
mov edi, ecx
add dword [0x1064a9a4], edi
push edx
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
lea eax, [esi + 8]
pop esi
ret
sub esi, 8
add dword [0x1064a9a8], esi
lea eax, [edi + 0x40]
mov dword [ebx + 4], 0
cmp esi, eax
jbe 0x1011da33
mov ecx, dword [0x1064a9a0]
add dword [0x1064a9a4], edi
lea eax, [ebx + edi]
mov dword [ebx], edi
sub esi, edi
mov dword [eax + 4], edi
mov dword [eax], 0
mov dword [eax + 0x10], esi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], 0
test ecx, ecx
je 0x1011da2a
mov dword [ecx + 0xc], eax
mov dword [0x1064a9a0], eax
add eax, esi
jmp 0x1011da3e
add dword [0x1064a9a4], esi
mov dword [ebx], esi
lea eax, [ebx + esi]
push dword [0x1064a990]
mov dword [eax], 1
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea eax, [ebx + 8]
pop ebx
pop edi
pop esi
ret
Function at 0x1011da60
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [0x1064a990]
test eax, eax
jne 0x1011da7a
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x1064a990], eax
jmp 0x1011da83
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 4]
add eax, 0xfffffff8
push esi
mov edx, dword [eax]
mov ecx, eax
sub ecx, dword [eax + 4]
push edi
mov edi, dword [0x1064a9a4]
sub edi, edx
cmp dword [ecx], 0
mov dword [0x1064a9a4], edi
jne 0x1011dab5
add dword [ecx + 0x10], edx
mov eax, dword [ecx + 0x10]
lea esi, [ecx + 0x10]
mov dword [eax + ecx + 4], eax
jmp 0x1011dade
lea esi, [eax + 0x10]
mov ecx, eax
mov dword [esi], edx
mov edx, dword [0x1064a9a0]
mov dword [eax], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], 0
test edx, edx
je 0x1011dad9
mov dword [edx + 0xc], eax
mov dword [0x1064a9a0], eax
push ebx
mov ebx, dword [esi]
cmp dword [ebx + ecx], 0
lea edx, [ebx + ecx]
jne 0x1011db1b
mov eax, dword [edx + 0x10]
add eax, ebx
mov dword [esi], eax
mov ebx, dword [edx + 8]
test ebx, ebx
je 0x1011dafe
mov eax, dword [edx + 0xc]
mov dword [ebx + 0xc], eax
mov ebx, dword [edx + 0xc]
mov eax, dword [edx + 8]
test ebx, ebx
je 0x1011db0d
mov dword [ebx + 8], eax
jmp 0x1011db12
mov dword [0x1064a9a0], eax
mov eax, dword [esi]
mov dword [eax + ecx + 4], eax
lea edx, [eax + ecx]
cmp dword [ecx + 4], 0
pop ebx
jne 0x1011db6d
cmp dword [edx], 1
jne 0x1011db6d
mov edx, dword [0x1064a9a8]
sub edx, dword [esi]
lea eax, [edi + edi*2]
shr eax, 1
cmp edx, eax
jbe 0x1011db6d
mov dword [0x1064a9a8], edx
mov edx, dword [ecx + 8]
test edx, edx
je 0x1011db4b
mov eax, dword [ecx + 0xc]
mov dword [edx + 0xc], eax
mov edx, dword [ecx + 0xc]
mov eax, dword [ecx + 8]
test edx, edx
je 0x1011db5a
mov dword [edx + 8], eax
jmp 0x1011db5f
mov dword [0x1064a9a0], eax
push 0x8000
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push dword [0x1064a990]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
ret
Function at 0x101248d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov ebp, dword [edi + 0x104]
test ebp, ebp
je 0x101249d3
mov edx, dword [esp + 0x18]
movzx esi, byte [edx]
mov ebx, esi
cmp ebx, 0xc0
jb 0x10124996
test bl, 0x20
jne 0x1012490c
movzx eax, byte [edx + 1]
and ebx, 0x1f
jmp 0x1012498e
movzx ecx, byte [edx + 1]
movzx eax, byte [edx + 2]
and ecx, 0x3f
test bl, 0x10
jne 0x10124926
and ebx, 0xf
shl ebx, 6
or ebx, ecx
jmp 0x1012498e
and eax, 0x3f
test bl, 8
jne 0x10124941
and ebx, 7
shl ebx, 6
or ebx, ecx
shl ebx, 6
or ebx, eax
movzx eax, byte [edx + 3]
jmp 0x1012498e
test bl, 4
jne 0x10124965
and ebx, 3
shl ebx, 6
or ebx, ecx
shl ebx, 6
or ebx, eax
movzx eax, byte [edx + 3]
and eax, 0x3f
shl ebx, 6
or ebx, eax
movzx eax, byte [edx + 4]
jmp 0x1012498e
and ebx, 1
shl ebx, 6
or ebx, ecx
shl ebx, 6
or ebx, eax
movzx eax, byte [edx + 3]
and eax, 0x3f
shl ebx, 6
or ebx, eax
movzx eax, byte [edx + 4]
and eax, 0x3f
shl ebx, 6
or ebx, eax
movzx eax, byte [edx + 5]
and eax, 0x3f
shl ebx, 6
or ebx, eax
cmp ebx, 0x7f
jbe 0x101249dc
mov eax, ebx
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
movzx ecx, byte [eax + 0x10490fd0]
mov eax, ebx
shl ecx, 7
and eax, 0x8000007f
jns 0x101249be
dec eax
or eax, 0xffffff80
inc eax
add ecx, eax
movzx eax, word [ecx*2 + 0x104931d0]
mov ecx, dword [eax*8 + 0x1048f954]
add ecx, ebx
jmp 0x101249e3
mov eax, dword [esp + 0x18]
movzx esi, byte [eax]
mov ebx, esi
mov eax, dword [edi + 0x48]
movzx ecx, byte [eax + ebx]
xor ecx, ebx
cmp ebx, 0x7f
ja 0x101249f6
cmp ecx, 0x20
jne 0x101249f6
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
ret
lea eax, [ecx - 1]
test ecx, eax
je 0x10124a04
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
test ebp, ebp
je 0x10124a33
cmp ebx, 0x7f
jbe 0x10124a33
and esi, 0x3f
movzx eax, byte [esi + 0x1048ecd0]
test cl, 0x3f
jne 0x10124a29
lea esp, [esp]
shr ecx, 6
dec eax
test cl, 0x3f
je 0x10124a20
pop edi
pop esi
shl eax, 8
pop ebp
or eax, ecx
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
ret
Function at 0x10178630
Capabilities:
Encode data using base64

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jns 0x10178651
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1017864c
mov dword [eax], 0
pop edi
xor eax, eax
pop esi
ret
lea ecx, [edi + 2]
mov eax, 0x55555556
imul ecx
push ebp
mov eax, edx
push 1
shr eax, 0x1f
add eax, edx
push 4
push eax
call sym.php5.dll__safe_emalloc
add esp, 0xc
mov ebp, eax
mov ecx, ebp
cmp edi, 2
jle 0x101786f4
lea edx, [edi - 3]
mov eax, 0xaaaaaaab
mul edx
push ebx
mov ebx, edx
shr ebx, 1
inc ebx
lea eax, [ebx*4]
sub eax, ebx
neg eax
add edi, eax
movzx eax, byte [esi]
shr eax, 2
add ecx, 4
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 4], al
movzx edx, byte [esi]
movzx eax, byte [esi + 1]
shr eax, 4
and edx, 3
add edx, edx
add esi, 3
movzx eax, byte [eax + edx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 3], al
movzx edx, byte [esi - 2]
movzx eax, byte [esi - 1]
shr eax, 6
and edx, 0xf
movzx eax, byte [eax + edx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 2], al
movzx eax, byte [esi - 1]
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
dec ebx
jne 0x10178696
pop ebx
test edi, edi
je 0x10178758
movzx eax, byte [esi]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
cmp edi, 1
jle 0x1017873d
movzx edx, byte [esi]
movzx eax, byte [esi + 1]
and edx, 3
shr eax, 4
add edx, edx
movzx eax, byte [eax + edx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
movzx eax, byte [esi + 1]
and eax, 0xf
movzx eax, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 2], al
mov byte [ecx + 3], 0x3d
jmp 0x10178755
movzx eax, byte [esi]
and eax, 3
shl eax, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
mov word [ecx + 2], 0x3d3d
add ecx, 4
mov edx, dword [esp + 0x18]
test edx, edx
je 0x10178766
mov eax, ecx
sub eax, ebp
mov dword [edx], eax
mov eax, ebp
pop ebp
pop edi
mov byte [ecx], 0
pop esi
ret
Function at 0x1017e7f0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x3c
push ebx
push 0x38
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esp + 0x10], 0
call sub.MSVCR110.dll_memset
mov ebx, dword [esp + 0x50]
add esp, 0xc
test ebx, ebx
je 0x1017e996
cmp byte [ebx], 0
je 0x1017e996
push edi
mov edi, dword [esp + 0x50]
push 0x28
test edi, edi
je 0x1017e85c
call dword [sym.imp.MSVCR110.dll_malloc]
mov ecx, eax
add esp, 4
test ecx, ecx
jne 0x1017e866
push str.Out_of_memory_n
call dword [sym.imp.MSVCR110.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR110.dll_fprintf]
add esp, 8
push 1
call dword [sym.imp.MSVCR110.dll_exit]
call sym.php5.dll__emalloc
add esp, 4
mov ecx, eax
push esi
mov esi, dword [esp + 0x50]
mov dword [esi], ecx
test ecx, ecx
je 0x1017e8c1
push 0
mov edx, 0x1017e200
push edi
mov eax, 0x1017e1b0
test edi, edi
cmovne eax, edx
push eax
push 0
push ecx
call sym.php5.dll__zend_hash_init_ex
add esp, 0x14
cmp eax, 0xffffffff
jne 0x1017e8cb
push dword [esi]
test edi, edi
je 0x1017e8b3
call dword [sym.imp.MSVCR110.dll_free]
add esp, 4
mov dword [esi], 0
pop esi
pop edi
or eax, 0xffffffff
pop ebx
add esp, 0x3c
ret
call sym.php5.dll__efree
add esp, 4
mov dword [esi], 0
pop esi
pop edi
or eax, 0xffffffff
pop ebx
add esp, 0x3c
ret
push 0x1054724c
push ebx
call dword [sym.imp.MSVCR110.dll_fopen]
add esp, 8
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0
mov byte [esp + 0x44], 0
test eax, eax
jne 0x1017e92f
push dword [esi]
call sym.php5.dll_zend_hash_destroy
add esp, 4
push dword [esi]
test edi, edi
je 0x1017e907
call dword [sym.imp.MSVCR110.dll_free]
jmp 0x1017e90c
call sym.php5.dll__efree
add esp, 4
mov dword [esi], 0
push ebx
push str.Cannot_open__s_for_reading
push 0x20
call sym.php5.dll_zend_error
add esp, 0xc
or eax, 0xffffffff
pop esi
pop edi
pop ebx
add esp, 0x3c
ret
push esi
push 0x1017e3a0
push 1
lea eax, [esp + 0x18]
push 1
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], 2
mov dword [esi + 8], 0
call sym.php5.dll_zend_parse_ini_file
mov eax, dword [esi + 8]
add esp, 0x14
test eax, eax
je 0x1017e98d
push eax
test edi, edi
je 0x1017e97e
call dword [sym.imp.MSVCR110.dll_free]
add esp, 4
mov dword [esi + 8], 0
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 0x3c
ret
call sym.php5.dll__efree
add esp, 4
mov dword [esi + 8], 0
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 0x3c
ret
or eax, 0xffffffff
pop ebx
add esp, 0x3c
ret

Function at 0x1017fea0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [0x106450e8], 0
je 0x1017fed9
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, dword [eax]
rol esi, 0x10
mov edx, esi
shr edx, 8
mov ecx, esi
shl ecx, 8
xor edx, ecx
and edx, 0xff00ff
shl esi, 8
xor edx, esi
mov dword [eax], edx
lea eax, [eax + 4]
dec edi
jne 0x1017feb3
pop edi
pop esi
ret
Function at 0x1017fee0
Capabilities:
Encrypt data using blowfish

Disassembly:
sub esp, 0x14
movzx edx, byte [esp + 0x24]
sub dword [esp + 0x1c], 0x10644ff8
mov ecx, edx
and ecx, 1
push ebx
mov ebx, dword [esp + 0x1c]
lea ecx, [esp + ecx*4 + 0x10]
push ebp
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x28]
and edx, 2
shl edx, 0xf
sub ecx, 0x10644ff8
push esi
push edi
mov eax, ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x28], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x14], ecx
xor ebp, ebp
mov cl, byte [eax]
movzx esi, cl
movsx edi, cl
test cl, cl
jne 0x1017ff41
mov eax, ebx
jmp 0x1017ff42
inc eax
mov dl, byte [eax]
movzx ecx, dl
shl esi, 8
or esi, ecx
movsx ecx, dl
shl edi, 8
or edi, ecx
mov ecx, edi
and ecx, 0x80
or dword [esp + 0x34], ecx
test dl, dl
jne 0x1017ff68
mov eax, ebx
jmp 0x1017ff69
inc eax
mov dl, byte [eax]
movzx ecx, dl
shl esi, 8
or esi, ecx
movsx ecx, dl
shl edi, 8
or edi, ecx
mov ecx, edi
and ecx, 0x80
or dword [esp + 0x34], ecx
test dl, dl
jne 0x1017ff8f
mov eax, ebx
jmp 0x1017ff90
inc eax
mov dl, byte [eax]
movzx ecx, dl
shl esi, 8
or esi, ecx
movsx ecx, dl
shl edi, 8
or edi, ecx
mov ecx, edi
and ecx, 0x80
or dword [esp + 0x34], ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edi
test dl, dl
jne 0x1017ffbe
mov eax, ebx
jmp 0x1017ffbf
inc eax
mov ecx, dword [esp + 0x10]
xor esi, edi
mov edx, dword [ecx]
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov dword [ecx + ebp + 0x10644ff8], edx
mov ecx, dword [ebp + 0x10644ff8]
xor ecx, edx
mov edx, dword [esp + 0x14]
or edi, esi
mov dword [edx + ebp + 0x10644ff8], ecx
add ebp, 4
mov dword [esp + 0x28], edi
cmp ebp, 0x48
jb 0x1017ff31
mov ecx, dword [esp + 0x34]
mov eax, edi
shr eax, 0x10
or eax, edi
and eax, 0xffff
add eax, 0xffff
shl ecx, 9
not eax
pop edi
and eax, ecx
and eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
pop esi
xor dword [ecx], eax
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x101849a0
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax], 0xf3bcc908
mov dword [eax + 4], 0x6a09e667
mov dword [eax + 8], 0x84caa73b
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0xfe94f82b
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x18], 0x5f1d36f1
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x20], 0xade682d1
mov dword [eax + 0x24], 0x510e527f
mov dword [eax + 0x28], 0x2b3e6c1f
mov dword [eax + 0x2c], 0x9b05688c
mov dword [eax + 0x30], 0xfb41bd6b
mov dword [eax + 0x34], 0x1f83d9ab
mov dword [eax + 0x38], 0x137e2179
mov dword [eax + 0x3c], 0x5be0cd19
mov dword [eax + 0x48], 0
mov dword [eax + 0x4c], 0
mov dword [eax + 0x40], 0
mov dword [eax + 0x44], 0
mov dword [eax + 0x50], 0
mov dword [eax + 0x54], 0
ret

Function at 0x1018ca60
Capabilities:
Create directory

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call sym.php5.dll_php_check_open_basedir
add esp, 4
test eax, eax
je 0x1018ca77
or eax, 0xffffffff
pop esi
ret
push esi
call dword [sym.imp.MSVCR110.dll__mkdir]
mov esi, eax
add esp, 4
test esi, esi
jns 0x1018caae
test byte [esp + 0x10], 8
je 0x1018caae
call dword [sym.imp.MSVCR110.dll__errno]
push dword [eax]
call dword [sym.imp.MSVCR110.dll_strerror]
push eax
push 0x1053ad10
push 2
push 0
call sym.php5.dll_php_error_docref0
add esp, 0x14
mov eax, esi
pop esi
ret

Function at 0x1018cac0
Capabilities:
Create directory

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call sym.php5.dll_php_check_open_basedir
add esp, 4
test eax, eax
je 0x1018cad7
or eax, 0xffffffff
pop esi
ret
push esi
call dword [sym.imp.MSVCR110.dll__mkdir]
mov esi, eax
add esp, 4
test esi, esi
jns 0x1018cb07
call dword [sym.imp.MSVCR110.dll__errno]
push dword [eax]
call dword [sym.imp.MSVCR110.dll_strerror]
push eax
push 0x1053ad10
push 2
push 0
call sym.php5.dll_php_error_docref0
add esp, 0x14
mov eax, esi
pop esi
ret
Function at 0x1018fa20
Capabilities:
Terminate process

Disassembly:
cmp dword [esp + 8], 0
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
je 0x1018fa9e
mov edi, dword [esp + 0x18]
push edi
test ebx, ebx
je 0x1018fa64
call dword [sym.imp.MSVCR110.dll_malloc]
add esp, 4
test eax, eax
jne 0x1018fa6c
push str.Out_of_memory_n
call dword [sym.imp.MSVCR110.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR110.dll_fprintf]
add esp, 8
push 1
call dword [sym.imp.MSVCR110.dll_exit]
call sym.php5.dll__emalloc
add esp, 4
mov esi, dword [esp + 0x10]
mov dword [esi], eax
test eax, eax
jne 0x1018fa7d
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret
push edi
push dword [esp + 0x18]
push eax
call sub.MSVCR110.dll_memcpy
add esp, 0xc
mov dword [esi + 4], edi
pop edi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0
pop esi
xor eax, eax
pop ebx
ret
mov esi, dword [esp + 0x10]
pop edi
mov dword [esi + 0xc], ebx
mov dword [esi], 0
mov dword [esi + 8], 0
pop esi
xor eax, eax
pop ebx
ret

Function at 0x10190ec0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x10
lea eax, [esp + 0x18]
push ebx
mov ebx, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x20]
push eax
push dword [esp + 0x30]
mov dword [esi], 0
push dword [esp + 0x30]
mov dword [ebx], 0
push dword [esp + 0x28]
call sym.php5.dll_zend_hash_find
add esp, 0x10
test eax, eax
jne 0x10191018
push edi
mov edi, dword [esp + 0x24]
mov eax, dword [edi]
cmp byte [eax + 0xc], 6
je 0x10190fb9
movq xmm0, qword [eax]
movq qword [esp + 0xc], xmm0
movq xmm0, qword [eax + 8]
movq qword [esp + 0x14], xmm0
cmp byte [esp + 0x18], 6
je 0x10190f34
lea eax, [esp + 0xc]
push eax
call sym.php5.dll__convert_to_string
add esp, 4
cmp dword [esp + 0x34], 0
je 0x10190f70
mov edi, dword [esp + 0x10]
lea eax, [edi + 1]
push eax
call dword [sym.imp.MSVCR110.dll_malloc]
add esp, 4
test eax, eax
jne 0x10190f82
push str.Out_of_memory_n
call dword [sym.imp.MSVCR110.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR110.dll_fprintf]
add esp, 8
push 1
call dword [sym.imp.MSVCR110.dll_exit]
mov eax, dword [esp + 0x10]
inc eax
push eax
call sym.php5.dll__emalloc
mov edi, dword [esp + 0x14]
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x10190fe9
lea eax, [edi + 1]
push eax
push dword [esp + 0x10]
mov dword [ebx], edi
push dword [esi]
call sub.MSVCR110.dll_memcpy
add esp, 0xc
cmp byte [esp + 0x18], 3
jbe 0x1019100f
lea eax, [esp + 0xc]
push eax
call sym.php5.dll__zval_dtor_func
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10
ret
mov eax, dword [eax + 4]
inc eax
cmp dword [esp + 0x34], 0
push eax
je 0x10190fd7
call dword [sym.imp.MSVCR110.dll_malloc]
add esp, 4
test eax, eax
jne 0x10190fe3
jmp 0x10190f50
call sym.php5.dll__emalloc
mov edi, dword [esp + 0x28]
add esp, 4
mov dword [esi], eax
test eax, eax
jne 0x10190ff5
pop edi
pop esi
mov eax, 7
pop ebx
add esp, 0x10
ret
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [ebx], eax
mov ecx, dword [edi]
mov eax, dword [ecx + 4]
inc eax
push eax
push dword [ecx]
push dword [esi]
call sub.MSVCR110.dll_memcpy
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
pop esi
mov eax, 8
pop ebx
add esp, 0x10
ret
Function at 0x101a49a0
Capabilities:
Check os version
Get hostname

Disassembly:
sub esp, 0x130
mov eax, dword [0x106499c8]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ebx, eax
shr eax, 8
movzx edi, al
lea eax, [esp + 0x14]
push eax
movzx ebp, bl
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov al, byte [esp + 0x144]
cmp al, 0x73
jne 0x101a49fa
mov esi, str.Windows_NT
jmp 0x101a4b38
cmp al, 0x72
jne 0x101a4a1c
push edi
push ebp
push str._d._d
lea eax, [esp + 0x48]
push 0x100
push eax
call sym.php5.dll_ap_php_snprintf
add esp, 0x14
jmp 0x101a4b34
cmp al, 0x6e
jne 0x101a4a29
lea esi, [esp + 0x18]
jmp 0x101a4b38
cmp al, 0x76
jne 0x101a4a84
call fcn.101a5250
mov edi, eax
shr ebx, 0x10
lea eax, [esp + 0x3c]
test edi, edi
jne 0x101a4a55
push ebx
push str.build__d
push 0x100
push eax
call sym.php5.dll_ap_php_snprintf
add esp, 0x10
jmp 0x101a4a6a
push edi
push ebx
push str.build__d___s_
push 0x100
push eax
call sym.php5.dll_ap_php_snprintf
add esp, 0x14
lea esi, [esp + 0x3c]
test edi, edi
je 0x101a4b38
push edi
call sym.php5.dll__efree
add esp, 4
jmp 0x101a4b38
cmp al, 0x6d
jne 0x101a4a9f
lea eax, [esp + 0x3c]
push 0x100
push eax
call fcn.101a5720
add esp, 8
jmp 0x101a4b34
call fcn.101a5250
mov esi, eax
lea eax, [esp + 0x28]
push 0x14
push eax
call fcn.101a5720
add esp, 8
shr ebx, 0x10
cmp ebp, 6
jne 0x101a4af3
cmp edi, 2
jne 0x101a4af3
mov ebp, dword [sym.imp.MSVCR110.dll_strncmp]
push 0xb
push str.Windows_8.1
push esi
call ebp
add esp, 0xc
test eax, eax
je 0x101a4aea
push 0x16
push str.Windows_Server_2012_R2
push esi
call ebp
add esp, 0xc
test eax, eax
jne 0x101a4aef
mov edi, 3
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x28]
push eax
mov eax, str.unknown
test esi, esi
cmovne eax, esi
push eax
push ebx
push edi
push ebp
lea eax, [esp + 0x2c]
push eax
push str.Windows_NT
push str._s__s__d._d_build__d___s___s
lea eax, [esp + 0x5c]
push 0x100
push eax
call sym.php5.dll_ap_php_snprintf
add esp, 0x28
test esi, esi
je 0x101a4b34
push esi
call sym.php5.dll__efree
add esp, 4
lea esi, [esp + 0x3c]
push esi
call sym.php5.dll__estrdup
mov ecx, dword [esp + 0x140]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10311bec
add esp, 0x130
ret
Function at 0x101a5720
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [esp]
cmp eax, 0xa
ja case.0x101a573a.40
jmp dword [eax*4 + 0x101a5820]
push dword [esp + 0x18]
push 0x104e9edc
push dword [esp + 0x34]
push dword [esp + 0x34]
call sym.php5.dll_ap_php_snprintf
add esp, 0x10
add esp, 0x24
ret
movzx eax, word [esp + 0x20]
push eax
push str.MIPS_R_d000
push dword [esp + 0x34]
push dword [esp + 0x34]
call sym.php5.dll_ap_php_snprintf
add esp, 0x10
add esp, 0x24
ret
movzx eax, word [esp + 0x20]
push eax
push str.Alpha__d
push dword [esp + 0x34]
push dword [esp + 0x34]
call sym.php5.dll_ap_php_snprintf
add esp, 0x10
add esp, 0x24
ret
movzx eax, word [esp + 0x20]
push eax
push str.PPC_6_02d
push dword [esp + 0x34]
push dword [esp + 0x34]
call sym.php5.dll_ap_php_snprintf
add esp, 0x10
add esp, 0x24
ret
push str.IA64
push dword [esp + 0x30]
push dword [esp + 0x30]
call sym.php5.dll_ap_php_snprintf
add esp, 0xc
add esp, 0x24
ret
push str.IA32
push dword [esp + 0x30]
push dword [esp + 0x30]
call sym.php5.dll_ap_php_snprintf
add esp, 0xc
add esp, 0x24
ret
push str.AMD64
push dword [esp + 0x30]
push dword [esp + 0x30]
call sym.php5.dll_ap_php_snprintf
add esp, 0xc
add esp, 0x24
ret
push str.Unknown
push dword [esp + 0x30]
push dword [esp + 0x30]
call sym.php5.dll_ap_php_snprintf
add esp, 0xc
add esp, 0x24
ret
Function at 0x101aa1f0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov eax, 0x40
mov ecx, dword [esi]
and ecx, 0x3f
inc ecx
mov byte [ecx + esi + 0x17], 0x80
sub eax, ecx
cmp eax, 8
jae 0x101aa230
push eax
lea eax, [esi + 0x18]
add eax, ecx
push 0
push eax
call sub.MSVCR110.dll_memset
push 0x40
lea eax, [esi + 0x18]
push eax
push esi
call fcn.101aa320
add esp, 0x18
xor ecx, ecx
mov eax, 0x40
add eax, 0xfffffff8
push eax
lea eax, [esi + 0x18]
add eax, ecx
push 0
push eax
call sub.MSVCR110.dll_memset
shl dword [esi], 3
movzx eax, byte [esi]
mov byte [esi + 0x50], al
mov eax, dword [esi]
shr eax, 8
mov byte [esi + 0x51], al
movzx eax, byte [esi + 2]
mov byte [esi + 0x52], al
movzx eax, byte [esi + 3]
mov byte [esi + 0x53], al
movzx eax, byte [esi + 4]
mov byte [esi + 0x54], al
mov eax, dword [esi + 4]
shr eax, 8
mov byte [esi + 0x55], al
movzx eax, byte [esi + 6]
mov byte [esi + 0x56], al
movzx eax, byte [esi + 7]
mov byte [esi + 0x57], al
push 0x40
lea eax, [esi + 0x18]
push eax
push esi
call fcn.101aa320
movzx eax, byte [esi + 8]
mov ecx, dword [esp + 0x20]
push 0x98
mov byte [ecx], al
mov eax, dword [esi + 8]
shr eax, 8
mov byte [ecx + 1], al
movzx eax, byte [esi + 0xa]
mov byte [ecx + 2], al
movzx eax, byte [esi + 0xb]
mov byte [ecx + 3], al
movzx eax, byte [esi + 0xc]
mov byte [ecx + 4], al
mov eax, dword [esi + 0xc]
shr eax, 8
mov byte [ecx + 5], al
movzx eax, byte [esi + 0xe]
mov byte [ecx + 6], al
movzx eax, byte [esi + 0xf]
mov byte [ecx + 7], al
movzx eax, byte [esi + 0x10]
mov byte [ecx + 8], al
mov eax, dword [esi + 0x10]
shr eax, 8
mov byte [ecx + 9], al
movzx eax, byte [esi + 0x12]
mov byte [ecx + 0xa], al
movzx eax, byte [esi + 0x13]
mov byte [ecx + 0xb], al
movzx eax, byte [esi + 0x14]
mov byte [ecx + 0xc], al
mov eax, dword [esi + 0x14]
shr eax, 8
mov byte [ecx + 0xd], al
movzx eax, byte [esi + 0x16]
mov byte [ecx + 0xe], al
movzx eax, byte [esi + 0x17]
push 0
push esi
mov byte [ecx + 0xf], al
call sub.MSVCR110.dll_memset
add esp, 0x24
pop esi
ret