joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1034aa40
Capabilities:
Contain obfuscated stackstrings
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x1034aa54
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x1034aa4f
add byte [ebx + 0x45830448], cl
or byte [edx], al
add ecx, eax
cmp dword [ebp + 8], ecx
jb sym.php5.dll_zend_objects_store_mark_destructed
add eax, dword [eax + 4]
jmp 0x1034a9fd
mov dword [ebp + 0xc], ebx
jmp 0x1034aa5f
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x1034aa77
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x1034aa95
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x1034aaf3
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x1034aada
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x1034aae3
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x1034aaed
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x1034aacf
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x1034aa59
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x1034ab40
dec eax
je 0x1034ab37
sub eax, 3
je 0x1034ab2e
mov dword [ebp - 4], 0x40
jmp 0x1034ab5d
mov dword [ebp - 4], 4
jmp 0x1034ab43
mov dword [ebp - 4], 0x20
jmp 0x1034ab43
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x1034ab8f
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x1034ab0f
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.1034a3a0
ja 0x1034abd0
mov al, byte [0x1475ff1d]
push 1
push esi
call edi
mov eax, esi
jmp 0x1034ab9b
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
test dword [eax + 0x62fffffc], esi
mov byte [ebp - 0x34f], 0x40
mov byte [ebp - 0x34e], 0x51
mov byte [ebp - 0x34d], 0x75
mov byte [ebp - 0x34c], 0x57
mov byte [ebp - 0x34b], 0x4a
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.1034a3b0
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1034a365
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
Function at 0x1034ac60
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.1034a3b0
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1034a365
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
invalid
test dword [esp + edi*8], ebx
Function at 0x1034b040
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add esp, 0xc
mov dword [ebp - 0x33c], eax
call fcn.1034a3a0
sbb byte [ebx], 0x4b
test byte [eax + 4], ch
add dword [eax], eax
add byte [ebp - 0x3337b], cl
call dword [eax - 1]
jne 0x1034b069
call dword [ebp - 0x538]
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
je 0x1034b094
push 0xc6fffffc
test dword [edx + edi*8 - 0x7cfe0001], edi
mov ebp, 0xfffffc68
add byte [edi + edx - 0x7d], dh
mov ebp, 0xfffffc68
add byte [edi], cl
test ah, dl
add dword [eax], eax
add byte [ebx + 0xf010c7d], al
test dl, cl
add dword [eax], eax
add byte [ebx + 0xf080c7d], al
test dword [eax - 0x7fffffff], ecx
movsd dword es:[edi], dword [esi]
dec eax
stc
invalid
cmp dword [ebp - 0x398], 0
je 0x1034b25e
cmp dword [ebp + 0xc], 1
je 0x1034b25e
cmp dword [ebp + 0xc], 8
jne 0x1034b226
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
mov byte [ebp - 0x6ad], 0xb
mov byte [ebp - 0x6ac], 7
mov byte [ebp - 0x6ab], 1
mov byte [ebp - 0x6aa], 0x17
mov byte [ebp - 0x6a9], 0x17
mov byte [ebp - 0x6a8], 0x29
mov byte [ebp - 0x6a7], 1
mov byte [ebp - 0x6a6], 9
mov byte [ebp - 0x6a5], 0xb
mov byte [ebp - 0x6a4], 0x16
mov byte [ebp - 0x6a3], 0x1d
mov byte [ebp - 0x6a2], 0x64
lea eax, [ebp - 0x6b8]
push eax
call fcn.1034a3b0
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1034a365
add esp, 0xc
mov dword [ebp - 0x690], eax
mov byte [ebp - 0x6a0], 0x8b
or byte [ebp - 0x69f], 0xff
mov byte [ebp - 0x69e], 0x55
mov byte [ebp - 0x69d], 0x8b
mov byte [ebp - 0x69c], 0xec
lea eax, [ebp - 0x694]
push eax
push 5
lea eax, [ebp - 0x6a0]
push eax
push dword [ebp - 0x33c]
push 0xffffffffffffffff
call dword [ebp - 0x690]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x6bc], eax
push 0x1000
push 8
push dword [ebp - 0x674]
call dword [ebp - 0x67c]
mov dword [ebp - 0x698], eax
invalid
into
int1
Function at 0x1034c550
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x1034c564
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.1034a3a0
mov ah, 0x27
sbb byte [ebp - 0x75], al
inc ebp
mov edi, eax
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.1034a3a0
out 0x4b, eax
and bh, byte [esi - 0x74cb74b7]
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x1034c58d
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x1034c58d
call fcn.1034a3a0
push edx
and dword [edx + 0x41], edi
mov ebx, dword [edx + 0x24]
add ebx, edi
mov cx, word [ebx + ecx*2]
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.1034a3a0
loopne 0x1034c5e7
dec ebx
push dword [ebp + 8]
push dword [ebp + 4]
push dword [ebp]
call fcn.1034aba0
push esi
push edi
je 0x1034c5e5
call sym.php5.dll_zend_binary_zval_strcasecmp
jmp 0x1034c5ea
call sym.php5.dll_zend_binary_zval_strcmp
add al, byte [eax]
add byte [ebx + 0x18247c], al
cmp dword [esp + 0x18], 0
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
mov byte [ecx + 0xc], 1
mov dword [ecx], eax
je 0x1034c609
cmp byte [edi + 0xc], 3
jbe 0x1034c609
push edi
call sym.php5.dll__zval_dtor_func
pop ecx
cmp dword [esp + 0x14], 0
je 0x1034c61d
cmp byte [esi + 0xc], 3
jbe 0x1034c61d
push esi
call sym.php5.dll__zval_dtor_func
pop ecx
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1034c570
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x1034c564
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.1034a3a0
mov ah, 0x27
sbb byte [ebp - 0x75], al
inc ebp
mov edi, eax
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.1034a3a0
out 0x4b, eax
and bh, byte [esi - 0x74cb74b7]
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x1034c58d
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x1034c58d
call fcn.1034a3a0
push edx
and dword [edx + 0x41], edi
mov ebx, dword [edx + 0x24]
add ebx, edi
mov cx, word [ebx + ecx*2]
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.1034a3a0
loopne 0x1034c5e7
dec ebx
push dword [ebp + 8]
push dword [ebp + 4]
push dword [ebp]
call fcn.1034aba0
push esi
push edi
je 0x1034c5e5
call sym.php5.dll_zend_binary_zval_strcasecmp
jmp 0x1034c5ea
call sym.php5.dll_zend_binary_zval_strcmp
add al, byte [eax]
add byte [ebx + 0x18247c], al
cmp dword [esp + 0x18], 0
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
mov byte [ecx + 0xc], 1
mov dword [ecx], eax
je 0x1034c609
cmp byte [edi + 0xc], 3
jbe 0x1034c609
push edi
call sym.php5.dll__zval_dtor_func
pop ecx
cmp dword [esp + 0x14], 0
je 0x1034c61d
cmp byte [esi + 0xc], 3
jbe 0x1034c61d
push esi
call sym.php5.dll__zval_dtor_func
pop ecx
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1034d160
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov ecx, dword [esi]
mov edi, dword [esp + 0x10]
mov eax, dword [esi + 4]
add ecx, edi
cmp ecx, eax
jle 0x1034d1d4
add eax, 0x40
cmp ecx, eax
jg 0x1034d175
mov dword [esi + 4], eax
shl eax, 2
cmp byte [esi + 0x10], 0
je 0x1034d1b9
push eax
push dword [esi + 8]
call dword [sym.imp.MSVCR110.dll_realloc]
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x1034d1c9
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]
pop ecx
pop ecx
push 1
call dword [sym.imp.MSVCR110.dll_exit]
push 0
push eax
push dword [esi + 8]
call sym.php5.dll__erealloc
add esp, 0xc
mov ecx, eax
mov eax, dword [esi]
mov dword [esi + 8], ecx
lea eax, [ecx + eax*4]
mov dword [esi + 0xc], eax
test edi, edi
jle 0x1034d1f5
lea edx, [esp + 0x10]
mov ecx, dword [esi + 0xc]
inc dword [esi]
lea edx, [edx + 4]
mov eax, dword [edx]
mov dword [ecx], eax
add dword [esi + 0xc], 4
dec edi
mov dword [esp + 0x10], edi
test edi, edi
jg 0x1034d1dc
pop edi
pop esi
ret

Function at 0x1034d680
Capabilities:
Hash data using djb2
Terminate process

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.php5.dll__zend_hash_add_or_update

Function at 0x1034d690
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.php5.dll__zend_hash_index_update_or_next_insert
Function at 0x1034d6c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.php5.dll__zend_hash_quick_add_or_update

Function at 0x1034d6d0
Capabilities:
Hash data using djb2

Disassembly:
mov ecx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
mov edx, 0x1505
cmp esi, 8
jb switch.0x1034d73a
push edi
mov edi, esi
shr edi, 3
movsx eax, byte [ecx]
imul edx, edx, 0x21
add edx, eax
movsx eax, byte [ecx + 1]
imul edx, edx, 0x21
add edx, eax
movsx eax, byte [ecx + 2]
imul edx, edx, 0x21
add edx, eax
movsx eax, byte [ecx + 3]
imul edx, edx, 0x21
add edx, eax
movsx eax, byte [ecx + 4]
imul edx, edx, 0x21
add edx, eax
movsx eax, byte [ecx + 5]
imul edx, edx, 0x21
add edx, eax
movsx eax, byte [ecx + 6]
imul edx, edx, 0x21
add edx, eax
movsx eax, byte [ecx + 7]
imul edx, edx, 0x21
add edx, eax
add ecx, 8
sub esi, 8
dec edi
jne 0x1034d6e9
pop edi
jmp dword [esi*4 + 0x1034d784]
movsx eax, byte [ecx]
imul edx, edx, 0x21
add edx, eax
inc ecx
movsx eax, byte [ecx]
imul edx, edx, 0x21
add edx, eax
inc ecx
movsx eax, byte [ecx]
imul edx, edx, 0x21
add edx, eax
inc ecx
movsx eax, byte [ecx]
imul edx, edx, 0x21
add edx, eax
inc ecx
movsx eax, byte [ecx]
imul edx, edx, 0x21
add edx, eax
inc ecx
movsx eax, byte [ecx]
imul edx, edx, 0x21
add edx, eax
inc ecx
movsx ecx, byte [ecx]
imul edx, edx, 0x21
add edx, ecx
mov eax, edx
pop esi
ret

Function at 0x1034d830
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.php5.dll_zend_hash_del_key_or_index

Function at 0x1034dad0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov ecx, dword [esp + 4]
push esi
push edi
call fcn.1004e040
mov edx, eax
mov ecx, edx
mov edi, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1034dae4
sub ecx, esi
add ecx, edx
test edx, edx
jne 0x1034daf7
xor esi, esi
jmp 0x1034db20
mov esi, 0x811c9dc5
cmp edx, ecx
jae 0x1034db10
movsx eax, byte [edi]
imul esi, esi, 0x1000193
xor esi, eax
inc edi
cmp edi, ecx
jb 0x1034db00
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, esi
and eax, 0x3ff
lea edi, [eax*4 + 0x10667d94]
cmp dword [edi], 0
je 0x1034db8f
push ebp
mov ebp, dword [esp + 0x14]
push ebx
mov ebx, dword [edi]
cmp esi, dword [ebx]
jne 0x1034db58
cmp ebp, dword [ebx + 8]
jne 0x1034db58
push ebp
push dword [ebx + 4]
push dword [esp + 0x1c]
call sub.MSVCR110.dll_memcmp
add esp, 0xc
test eax, eax
je 0x1034db62
lea edi, [ebx + 0x20]
cmp dword [edi], 0
jne 0x1034db39
jmp 0x1034db8d
mov ecx, ebx
mov eax, dword [ecx + 0x20]
mov dword [edi], eax
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 0xc]
jne 0x1034db76
push 0xffffffffffffffdb
pop eax
jmp 0x1034db7c
push 0xffffffffffffffda
pop eax
sub eax, dword [ecx + 0x10]
sub eax, dword [ecx + 8]
push ecx
add dword [0x10667d88], eax
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
pop ebx
pop ebp
pop edi
pop esi
ret
Function at 0x1034dbb0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov ecx, dword [esp + 4]
push ebx
push esi
push edi
call fcn.1004e040
mov edx, eax
mov ecx, edx
mov esi, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1034dbc5
sub ecx, edi
add ecx, edx
test edx, edx
jne 0x1034dbda
xor esi, esi
mov edi, esi
jmp 0x1034dc04
mov edi, 0x811c9dc5
cmp edx, ecx
jae 0x1034dbf3
movsx eax, byte [esi]
imul edi, edi, 0x1000193
xor edi, eax
inc esi
cmp esi, ecx
jb 0x1034dbe3
push edx
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
and eax, 0x3ff
lea ebx, [eax*4 + 0x10667d94]
cmp dword [ebx], esi
je 0x1034dc86
push ebp
cmp dword [0x10667d90], 0
je 0x1034dc56
mov ecx, dword [ebx]
mov eax, dword [esp + 0x1c]
cmp dword [ecx + 0x18], eax
jge 0x1034dc56
mov eax, dword [ecx + 0x20]
mov dword [ebx], eax
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 0xc]
jne 0x1034dc3d
push 0xffffffffffffffdb
pop eax
jmp 0x1034dc43
push 0xffffffffffffffda
pop eax
sub eax, dword [ecx + 0x10]
sub eax, dword [ecx + 8]
push ecx
add dword [0x10667d88], eax
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
jmp 0x1034dc7d
mov ebp, dword [ebx]
cmp edi, dword [ebp]
jne 0x1034dc7a
mov eax, dword [esp + 0x18]
cmp eax, dword [ebp + 8]
jne 0x1034dc7a
push eax
push dword [ebp + 4]
push dword [esp + 0x1c]
call sub.MSVCR110.dll_memcmp
add esp, 0xc
test eax, eax
je 0x1034dc83
lea ebx, [ebp + 0x20]
cmp dword [ebx], esi
jne 0x1034dc17
jmp 0x1034dc85
mov esi, ebp
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x1034e1a0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ecx
mov eax, dword [0x10667d84]
push esi
mov dword [esp + 8], eax
inc eax
push edi
push eax
call sym.php5.dll__emalloc
pop ecx
mov ecx, dword [0x10667d84]
inc ecx
push ecx
push dword [0x10667d80]
mov dword [esp + 0x10], eax
push eax
call sub.MSVCR110.dll_memcpy
add esp, 0xc
lea eax, [esp + 8]
push 1
push 0
push dword [ebp + 8]
push eax
call sym.php5.dll_virtual_file_ex
add esp, 0x10
test eax, eax
je 0x1034e20c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 8]
mov esi, eax
call sym.php5.dll__efree
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x1034e234
push dword [esp + 8]
call dword [sym.imp.MSVCR110.dll__mkdir]
pop ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 8]
mov esi, eax
call sym.php5.dll__efree
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1034e520
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x10667d84]
push ebx
push esi
mov dword [esp + 0x10], eax
inc eax
push edi
push eax
call sym.php5.dll__emalloc
pop ecx
mov ecx, dword [0x10667d84]
inc ecx
push ecx
push dword [0x10667d80]
mov dword [esp + 0x18], eax
push eax
call sub.MSVCR110.dll_memcpy
add esp, 0xc
xor edi, edi
push edi
push edi
push dword [ebp + 8]
lea eax, [esp + 0x1c]
push eax
call sym.php5.dll_virtual_file_ex
add esp, 0x10
test eax, eax
je 0x1034e591
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 0x10]
mov esi, eax
call sym.php5.dll__efree
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x1034e651
mov eax, dword [0x10667d84]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
inc eax
push eax
call sym.php5.dll__emalloc
pop ecx
mov ecx, dword [0x10667d84]
inc ecx
push ecx
push dword [0x10667d80]
mov dword [esp + 0x20], eax
push eax
call sub.MSVCR110.dll_memcpy
add esp, 0xc
lea eax, [esp + 0x18]
push edi
push edi
push dword [ebp + 0xc]
push eax
call sym.php5.dll_virtual_file_ex
add esp, 0x10
test eax, eax
je 0x1034e607
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push dword [esp + 0x10]
mov esi, eax
call sym.php5.dll__efree
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
pop ecx
push esi
call edi
call ebx
push dword [esp + 0x18]
mov esi, eax
call sym.php5.dll__efree
pop ecx
push esi
call edi
jmp 0x1034e589
push 3
push dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
neg eax
dec eax
mov dword [esp + 0xc], eax
call ebx
push dword [esp + 0x10]
mov esi, eax
call sym.php5.dll__efree
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
pop ecx
push esi
call edi
call ebx
push dword [esp + 0x18]
mov esi, eax
call sym.php5.dll__efree
pop ecx
push esi
call edi
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1034e660
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ecx
mov eax, dword [0x10667d84]
push esi
mov dword [esp + 8], eax
inc eax
push edi
push eax
call sym.php5.dll__emalloc
pop ecx
mov ecx, dword [0x10667d84]
inc ecx
push ecx
push dword [0x10667d80]
mov dword [esp + 0x10], eax
push eax
call sub.MSVCR110.dll_memcpy
add esp, 0xc
lea eax, [esp + 8]
push 0
push 0
push dword [ebp + 8]
push eax
call sym.php5.dll_virtual_file_ex
add esp, 0x10
test eax, eax
je 0x1034e6cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 8]
mov esi, eax
call sym.php5.dll__efree
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x1034e6f4
push dword [esp + 8]
call dword [sym.imp.MSVCR110.dll__rmdir]
pop ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 8]
mov esi, eax
call sym.php5.dll__efree
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1034e8e0
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x106499c8]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x2000000
push 4
push ebx
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1034e929
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
or esi, 0xffffffff
cmp edi, esi
je 0x1034e9d6
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x1034e968
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], eax
jmp 0x1034e9b5
mov eax, dword [ebx + 4]
cdq
push 0
add eax, 0xb6109100
push 0x989680
adc edx, 2
push edx
push eax
call fcn.10312160
mov dword [esp + 0xc], eax
mov eax, dword [ebx]
mov ecx, edx
mov dword [esp + 0x10], edx
cdq
push 0
sar ecx, 0x1f
add eax, 0xb6109100
push 0x989680
adc edx, 2
push edx
push eax
call fcn.10312160
mov dword [esp + 0x14], eax
mov eax, edx
sar eax, 0x1f
mov dword [esp + 0x18], edx
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
je 0x1034e9cf
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x2c]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.10311bec
mov esp, ebp
pop ebp
ret

Function at 0x1034fa80
Capabilities:
Get session user name

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x106499c8]
xor eax, ebp
mov dword [ebp + 0x84], eax
mov eax, dword [0x10667ca0]
test eax, eax
jne 0x1034fab2
call sym.php5.dll_sapi_get_stat
test eax, eax
jne 0x1034fac7
mov eax, 0x1053ac9c
mov ecx, dword [ebp + 0x84]
xor ecx, ebp
call fcn.10311bec
add ebp, 0x88
leave
ret
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x80], 0xff
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x1034faad
mov eax, dword [ebp - 0x80]
cmp eax, 0x100
jae 0x1034fb07
push eax
mov byte [ebp + eax - 0x7c], 0
mov dword [0x10667ca4], eax
lea eax, [ebp - 0x7c]
push eax
call sym.php5.dll__estrndup
pop ecx
pop ecx
mov dword [0x10667ca0], eax
jmp 0x1034fab2
call fcn.10311d44
int3