joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101b12e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [esp + 4]
cmp dword [0x10660198], 2
mov edx, 1
push esi
mov dword [0x10660f00], eax
mov eax, edx
push edi
mov esi, 0x10660f00
cmovge edx, eax
mov eax, dword [esi]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul ecx, ecx, 0x6c078965
add ecx, edx
lea esi, [esi + 4]
inc edx
mov dword [esi], ecx
cmp edx, 0x270
jl 0x101b1301
mov eax, 0x10660f00
mov esi, 0xe3
lea ebx, [ebx]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
xor edx, ecx
and edx, 0x7ffffffe
xor edx, ecx
and ecx, 1
neg ecx
shr edx, 1
and ecx, 0x9908b0df
xor edx, ecx
xor edx, dword [eax + 0x634]
add eax, 4
mov dword [eax - 4], edx
dec esi
jne 0x101b1330
mov edi, 0x18c
mov ecx, dword [eax]
mov edx, dword [eax + 4]
xor edx, ecx
and edx, 0x7ffffffe
xor edx, ecx
and ecx, 1
neg ecx
shr edx, 1
and ecx, 0x9908b0df
xor edx, ecx
xor edx, dword [eax - 0x38c]
lea eax, [eax + 4]
mov dword [eax - 4], edx
dec edi
jne 0x101b1362
mov ecx, dword [eax]
mov edx, ecx
xor edx, dword [0x10660f00]
pop edi
and edx, 0x7ffffffe
xor edx, ecx
and ecx, 1
neg ecx
shr edx, 1
and ecx, 0x9908b0df
xor edx, ecx
xor edx, dword [eax - 0x38c]
pop esi
mov dword [eax], edx
mov dword [0x106618c8], 0x270
mov dword [0x106618c4], 0x10660f00
mov byte [0x106618d1], 1
ret

Function at 0x101b13e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [0x106618c8]
test eax, eax
jne 0x101b149c
push esi
push edi
mov eax, 0x10660f00
mov esi, 0xe3
lea esp, [esp]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
xor edx, ecx
and edx, 0x7ffffffe
xor edx, ecx
and ecx, 1
neg ecx
shr edx, 1
and ecx, 0x9908b0df
xor edx, ecx
xor edx, dword [eax + 0x634]
add eax, 4
mov dword [eax - 4], edx
dec esi
jne 0x101b1400
mov edi, 0x18c
mov ecx, dword [eax]
mov edx, dword [eax + 4]
xor edx, ecx
and edx, 0x7ffffffe
xor edx, ecx
and ecx, 1
neg ecx
shr edx, 1
and ecx, 0x9908b0df
xor edx, ecx
xor edx, dword [eax - 0x38c]
lea eax, [eax + 4]
mov dword [eax - 4], edx
dec edi
jne 0x101b1432
mov ecx, dword [eax]
mov edx, ecx
xor edx, dword [0x10660f00]
pop edi
and edx, 0x7ffffffe
xor edx, ecx
and ecx, 1
neg ecx
shr edx, 1
and ecx, 0x9908b0df
xor edx, ecx
xor edx, dword [eax - 0x38c]
pop esi
mov dword [eax], edx
mov edx, 0x10660f00
mov eax, 0x270
mov dword [0x106618c4], edx
jmp 0x101b14a2
mov edx, dword [0x106618c4]
dec eax
mov dword [0x106618c8], eax
mov ecx, dword [edx]
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
add edx, 4
shr eax, 0x12
mov dword [0x106618c4], edx
xor eax, ecx
ret
Function at 0x101da390
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x200c
call fcn.10312230
mov eax, dword [0x106499c8]
xor eax, esp
mov dword [esp + 0x2008], eax
mov eax, dword [esp + 0x201c]
push ebp
mov ebp, dword [esp + 0x2014]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2024]
push esi
mov esi, dword [esp + 0x201c]
mov dword [esp + 8], eax
push edi
mov edi, dword [esp + 0x2024]
mov eax, esi
or eax, edi
jne 0x101da3f4
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x2008]
xor ecx, esp
call fcn.10311bec
add esp, 0x200c
ret
push ebx
test edi, edi
jne 0x101da41e
test esi, esi
je 0x101da463
lea ecx, [ecx]
test edi, edi
jne 0x101da41e
cmp esi, 0x2000
ja 0x101da41e
test edi, edi
jne 0x101da419
cmp esi, 0xffffffff
ja 0x101da419
mov eax, esi
jmp 0x101da423
or eax, 0xffffffff
jmp 0x101da423
mov eax, 0x2000
push ebp
push eax
lea eax, [esp + 0x20]
push 1
push eax
call dword [sym.imp.MSVCR110.dll_fread]
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x101da473
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push ebx
push 1
push eax
call dword [sym.imp.MSVCR110.dll_fwrite]
add esp, 0x10
cmp eax, ebx
jne 0x101da467
sub esi, ebx
sbb edi, 0
test edi, edi
ja 0x101da41e
jb 0x101da463
test esi, esi
jne 0x101da400
xor eax, eax
jmp 0x101da4a0
call dword [sym.imp.MSVCR110.dll__errno]
push dword [eax]
push 6
jmp 0x101da491
push ebp
call dword [sym.imp.MSVCR110.dll_ferror]
add esp, 4
test eax, eax
je 0x101da48d
call dword [sym.imp.MSVCR110.dll__errno]
push dword [eax]
push 5
jmp 0x101da491
push 0
push 0x11
push dword [esp + 0x18]
call fcn.101dcb20
add esp, 0xc
or eax, 0xffffffff
mov ecx, dword [esp + 0x2018]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.10311bec
add esp, 0x200c
ret
Function at 0x101da4c0
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x200c
call fcn.10312230
mov eax, dword [0x106499c8]
xor eax, esp
mov dword [esp + 0x2008], eax
mov eax, dword [esp + 0x2018]
push ebx
mov ebx, dword [esp + 0x2014]
push edi
mov edi, dword [esp + 0x201c]
push edi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
call fcn.101e1740
add esp, 4
test eax, eax
jns 0x101da52b
lea eax, [ebx + 0xc]
push edi
push eax
call fcn.101dcb40
add esp, 8
or eax, 0xffffffff
pop edi
pop ebx
mov ecx, dword [esp + 0x2008]
xor ecx, esp
call fcn.10311bec
add esp, 0x200c
ret
push ebp
push esi
xor ebp, ebp
push ebp
push 0x2000
lea eax, [esp + 0x20]
push eax
push edi
call fcn.101e1c50
mov ebx, edx
add esp, 0x10
mov esi, eax
test ebx, ebx
jl 0x101da5b6
jg 0x101da551
test esi, esi
je 0x101da5ac
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push esi
push 1
push eax
call dword [sym.imp.MSVCR110.dll_fwrite]
add esp, 0x10
cmp eax, esi
jne 0x101da58f
push 0
push 0x2000
lea eax, [esp + 0x20]
push eax
push edi
call fcn.101e1c50
mov ebx, edx
add esp, 0x10
mov esi, eax
test ebx, ebx
jg 0x101da551
jl 0x101da5b6
test esi, esi
jne 0x101da551
jmp 0x101da5ac
call dword [sym.imp.MSVCR110.dll__errno]
push dword [eax]
mov eax, dword [esp + 0x14]
add eax, 0xc
push 6
push eax
call fcn.101dcb20
add esp, 0xc
or ebp, 0xffffffff
test ebx, ebx
jg 0x101da5ce
jl 0x101da5b6
test esi, esi
jae 0x101da5ce
test ebp, ebp
jne 0x101da5cb
mov eax, dword [esp + 0x10]
add eax, 0xc
push edi
push eax
call fcn.101dcb40
add esp, 8
or ebp, 0xffffffff
push edi
call fcn.101e0620
mov ecx, dword [esp + 0x201c]
add esp, 4
mov eax, ebp
pop esi
pop ebp
pop edi
pop ebx
xor ecx, esp
call fcn.10311bec
add esp, 0x200c
ret
Function at 0x101da600
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
mov eax, dword [0x106499c8]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
mov ebx, dword [esp + 0x24]
push ebp
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x40]
push edi
call dword [sym.imp.MSVCR110.dll_ftell]
push edi
push dword [esp + 0x44]
mov dword [esp + 0x24], eax
push dword [esp + 0x44]
push esi
push ebx
call fcn.101dacc0
add esp, 0x18
mov ebp, eax
test edx, edx
jg 0x101da648
jl 0x101da6c3
test ebp, ebp
jb 0x101da6c3
push edi
call dword [sym.imp.MSVCR110.dll_ftell]
push 0
push 1
push ebx
mov dword [esp + 0x24], eax
call fcn.101de930
add esp, 0x10
test eax, eax
je 0x101da71a
lea esi, [ebx + 0xc]
push esi
lea eax, [esp + 0x14]
push eax
push ebp
push dword [esp + 0x24]
push edi
call fcn.101de570
add esp, 0x14
test eax, eax
js 0x101da6c3
push dword [esp + 0x10]
lea eax, [esp + 0x20]
push str._08lX
push 9
push eax
call sym.php5.dll_ap_php_snprintf
mov eax, dword [esp + 0x24]
push 0
add eax, 0xfffffff8
push eax
push edi
call dword [sym.imp.MSVCR110.dll_fseek]
add esp, 0x1c
test eax, eax
jns 0x101da6d9
call dword [sym.imp.MSVCR110.dll__errno]
push dword [eax]
push 4
push esi
call fcn.101dcb20
add esp, 0xc
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.10311bec
add esp, 0x1c
ret
push edi
push 1
lea eax, [esp + 0x24]
push 8
push eax
call dword [sym.imp.MSVCR110.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x101da71a
call dword [sym.imp.MSVCR110.dll__errno]
push dword [eax]
push 6
push esi
call fcn.101dcb20
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.10311bec
add esp, 0x1c
ret
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.10311bec
add esp, 0x1c
ret
Function at 0x101da730
Capabilities:
Delete file

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov ebx, dword [edi + 0x50]
test ebx, ebx
je 0x101da77d
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x101da743
sub ecx, edx
lea eax, [ecx + 0xd]
push eax
call dword [sym.imp.MSVCR110.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x101da775
push 0
lea eax, [edi + 0xc]
push 0xe
push eax
call fcn.101dcb20
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
ret
push ebx
push str._s_.zip.XXXXXX
jmp 0x101da7a6
mov ebx, dword [edi]
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x101da784
sub ecx, edx
lea eax, [ecx + 8]
push eax
call dword [sym.imp.MSVCR110.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x101da75f
push ebx
push str._s.XXXXXX
push esi
call sym.php5.dll_php_sprintf
add esp, 0xc
push ebp
push esi
call fcn.101d97e0
mov ebp, eax
add esp, 4
cmp ebp, 0xffffffff
jne 0x101da7e4
call dword [sym.imp.MSVCR110.dll__errno]
push dword [eax]
lea eax, [edi + 0xc]
push 0xc
push eax
call fcn.101dcb20
push esi
call dword [sym.imp.MSVCR110.dll_free]
add esp, 0x10
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push 0x10622db0
push ebp
call dword [sym.imp.MSVCR110.dll__fdopen]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x101da82b
call dword [sym.imp.MSVCR110.dll__errno]
push dword [eax]
lea eax, [edi + 0xc]
push 0xc
push eax
call fcn.101dcb20
push ebp
call dword [sym.imp.MSVCR110.dll__close]
push esi
call dword [sym.imp.MSVCR110.dll_remove]
push esi
call dword [sym.imp.MSVCR110.dll_free]
add esp, 0x18
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push 0x8000
push ebx
call dword [sym.imp.MSVCR110.dll__fileno]
add esp, 4
push eax
call dword [sym.imp.MSVCR110.dll__setmode]
mov eax, dword [esp + 0x20]
add esp, 8
mov dword [eax], ebx
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x101db980
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
mov eax, dword [0x106499c8]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
mov esi, dword [esp + 0x2c]
and esi, 0x100
mov eax, 0x1e
mov ebx, 0x2e
cmovne ebx, eax
xor eax, eax
test esi, esi
sete al
push edi
mov edi, dword [esp + 0x34]
push 1
mov dword [esp + 0x1c], ebx
lea eax, [eax*2 + 0x1a]
push eax
push ebp
call dword [sym.imp.MSVCR110.dll_fseek]
add esp, 0xc
test eax, eax
jns 0x101db9fd
call dword [sym.imp.MSVCR110.dll__errno]
push dword [eax]
push 4
push edi
call fcn.101dcb20
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.10311bec
add esp, 0x18
ret
xor eax, eax
test esi, esi
sete al
push ebp
push 1
lea eax, [eax*2 + 4]
push eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.MSVCR110.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x101dba4b
call dword [sym.imp.MSVCR110.dll__errno]
push dword [eax]
push 5
push edi
call fcn.101dcb20
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.10311bec
add esp, 0x18
ret
xor ebp, ebp
xor edi, edi
xor eax, eax
neg esi
sbb esi, esi
add esi, 3
lea edx, [esp + 0x1c]
mov dword [esp + 0x30], esi
cmp esi, 2
jl 0x101dbac1
lea edi, [esi - 2]
shr edi, 1
inc edi
xor ebx, ebx
lea eax, [edi + edi]
mov dword [esp + 0x14], eax
mov esi, 0x100
lea esp, [esp]
movzx ecx, byte [edx + 1]
movzx eax, byte [edx]
imul cx, si
add cx, ax
movzx eax, cx
movzx ecx, byte [edx + 3]
imul cx, si
add ebp, eax
movzx eax, byte [edx + 2]
add cx, ax
movzx eax, cx
add ebx, eax
add edx, 4
dec edi
jne 0x101dba80
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
cmp eax, esi
jge 0x101dbadd
movzx ecx, byte [edx + 1]
mov eax, 0x100
imul cx, ax
movzx eax, byte [edx]
add cx, ax
movzx eax, cx
add ebx, eax
mov ecx, dword [esp + 0x24]
lea eax, [edi + ebp]
pop edi
pop esi
add eax, ebx
pop ebp
pop ebx
xor ecx, esp
call fcn.10311bec
add esp, 0x18
ret
Function at 0x101dc3a0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x101dc3b7
test ebx, ebx
jne 0x101dc3bb
pop esi
xor eax, eax
pop ebx
ret
test ebx, ebx
je 0x101dc3c0
lea eax, [esi + 1]
jmp 0x101dc3c2
mov eax, esi
push edi
push eax
call dword [sym.imp.MSVCR110.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
jne 0x101dc3e8
push eax
push 0xe
push dword [esp + 0x28]
call fcn.101dcb20
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
ret
push ebp
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x101dc425
push esi
push dword [ebp]
push edi
call sub.MSVCR110.dll_memcpy
add esp, 0xc
add dword [ebp], esi
test ebx, ebx
je 0x101dc41e
lea ecx, [edi + esi]
mov eax, edi
mov byte [ecx], 0
cmp edi, ecx
jae 0x101dc41e
cmp byte [eax], 0
jne 0x101dc419
mov byte [eax], 0x20
inc eax
cmp eax, ecx
jb 0x101dc411
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
ret
mov ebp, dword [esp + 0x18]
push ebp
push esi
push 1
push edi
call dword [sym.imp.MSVCR110.dll_fread]
add esp, 0x10
cmp eax, esi
jae 0x101dc401
push edi
call dword [sym.imp.MSVCR110.dll_free]
push ebp
call dword [sym.imp.MSVCR110.dll_ferror]
add esp, 8
test eax, eax
je 0x101dc46d
call dword [sym.imp.MSVCR110.dll__errno]
push dword [eax]
push 5
push dword [esp + 0x2c]
call fcn.101dcb20
add esp, 0xc
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push 0
push 0x15
push dword [esp + 0x2c]
call fcn.101dcb20
add esp, 0xc
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x101dd410
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x101dd473
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [sym.imp.MSVCR110.dll_fwrite]
push edi
mov edi, dword [esp + 0x1c]
lea ebx, [ebx]
mov eax, dword [esi + 4]
and eax, ebx
test eax, 0x300
je 0x101dd46a
movzx eax, word [esi + 8]
push edi
push eax
call fcn.101dc5a0
movzx eax, word [esi + 0xa]
push edi
push eax
call fcn.101dc5a0
movzx eax, word [esi + 0xa]
add esp, 0x10
test ax, ax
je 0x101dd46a
push edi
push 1
push eax
push dword [esi + 0xc]
call ebp
add esp, 0x10
mov esi, dword [esi]
test esi, esi
jne 0x101dd430
pop edi
pop ebp
pop ebx
pop esi
ret
Function at 0x101dd480
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
cmp eax, dword [edi + 0x34]
jb 0x101dd4b2
ja 0x101dd49b
cmp esi, dword [edi + 0x30]
jb 0x101dd4b2
push 0
lea eax, [edi + 0xc]
push 0x12
push eax
call fcn.101dcb20
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ecx
ret
shl esi, 4
add esi, dword [edi + 0x40]
mov eax, dword [esi]
test eax, eax
je 0x101dd632
cmp dword [eax + 4], 0
jne 0x101dd632
mov eax, dword [eax + 0x48]
push ebp
mov ebp, dword [sym.imp.MSVCR110.dll_fseek]
push 0
add eax, 0x1a
push eax
push dword [edi + 4]
call ebp
add esp, 0xc
test eax, eax
jns 0x101dd506
call dword [sym.imp.MSVCR110.dll__errno]
push dword [eax]
lea eax, [edi + 0xc]
push 4
push eax
call fcn.101dcb20
add esp, 0xc
or eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ecx
ret
push dword [edi + 4]
lea eax, [esp + 0x1c]
push 1
push 4
push eax
call dword [sym.imp.MSVCR110.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x101dd53e
call dword [sym.imp.MSVCR110.dll__errno]
push dword [eax]
lea eax, [edi + 0xc]
push 5
push eax
call fcn.101dcb20
add esp, 0xc
or eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ecx
ret
lea eax, [esp + 0x18]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.101dc2a0
movzx eax, ax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push eax
call fcn.101dc2a0
movzx ebx, ax
add esp, 8
test bx, bx
je 0x101dd602
mov eax, dword [esp + 0x10]
movzx eax, ax
push 1
push eax
push dword [edi + 4]
call ebp
add esp, 0xc
test eax, eax
jns 0x101dd5a6
call dword [sym.imp.MSVCR110.dll__errno]
push dword [eax]
lea eax, [edi + 0xc]
push 4
push eax
call fcn.101dcb20
add esp, 0xc
pop ebx
pop ebp
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret
lea ebp, [edi + 0xc]
push ebp
push 0
push ebx
push dword [edi + 4]
push 0
call fcn.101dc3a0
mov edi, eax
add esp, 0x14
test edi, edi
je 0x101dd59d
push ebp
push 0x100
push ebx
push edi
call fcn.101dd1f0
add esp, 0x10
mov ebx, eax
push edi
call dword [sym.imp.MSVCR110.dll_free]
test ebx, ebx
jne 0x101dd5e9
add esp, 4
or eax, 0xffffffff
pop ebx
pop ebp
pop edi
pop esi
pop ecx
ret
push ebx
call fcn.101dd330
push eax
mov eax, dword [esi]
push dword [eax + 0x34]
call fcn.101dd050
mov ecx, dword [esi]
add esp, 0x10
mov dword [ecx + 0x34], eax
mov eax, dword [esi]
mov dword [eax + 4], 1
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x101dd62a
cmp dword [ecx + 4], 0
jne 0x101dd62a
mov eax, dword [esi]
mov eax, dword [eax + 0x34]
mov dword [ecx + 0x34], eax
mov eax, dword [esi + 4]
mov dword [eax + 4], 1
pop ebx
pop ebp
pop edi
xor eax, eax
pop esi
pop ecx
ret
pop edi
xor eax, eax
pop esi
pop ecx
ret
Function at 0x101de570
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x2008
call fcn.10312230
mov eax, dword [0x106499c8]
xor eax, esp
mov dword [esp + 0x2004], eax
push ebx
mov ebx, dword [esp + 0x201c]
push ebp
mov ebp, dword [esp + 0x2014]
push esi
mov esi, dword [esp + 0x2028]
push 0
push 0
push 0
mov dword [esp + 0x18], esi
call sym.php5.dll_crc32
push 0
push dword [esp + 0x202c]
mov dword [ebx], eax
push ebp
call dword [sym.imp.MSVCR110.dll_fseek]
add esp, 0x18
test eax, eax
je 0x101de5f6
call dword [sym.imp.MSVCR110.dll__errno]
push dword [eax]
push 4
push esi
call fcn.101dcb20
add esp, 0xc
or eax, 0xffffffff
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2004]
xor ecx, esp
call fcn.10311bec
add esp, 0x2008
ret
mov esi, dword [esp + 0x2020]
push edi
test esi, esi
jle 0x101de647
mov ecx, 0x2000
push ebp
mov eax, esi
cmp esi, 0x2000
cmovg eax, ecx
push eax
lea eax, [esp + 0x1c]
push 1
push eax
call dword [sym.imp.MSVCR110.dll_fread]
mov edi, eax
add esp, 0x10
test edi, edi
je 0x101de662
push edi
lea eax, [esp + 0x18]
push eax
push dword [ebx]
call sym.php5.dll_crc32
sub esi, edi
add esp, 0xc
mov dword [ebx], eax
mov ecx, 0x2000
test esi, esi
jg 0x101de607
xor eax, eax
mov ecx, dword [esp + 0x2014]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10311bec
add esp, 0x2008
ret
call dword [sym.imp.MSVCR110.dll__errno]
push dword [eax]
push 5
push dword [esp + 0x18]
call fcn.101dcb20
add esp, 0xc
or eax, 0xffffffff
jmp 0x101de649
Function at 0x101e18f0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
sub esp, 0x10
cmp dword [esp + 0x24], 0
xorps xmm0, xmm0
movlpd qword [esp + 8], xmm0
jb 0x101e19d3
push ebp
mov ebp, dword [esp + 0x24]
ja 0x101e1916
test ebp, ebp
je 0x101e19d2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x14], eax
lea ecx, [ecx]
cmp dword [esp + 0x38], 0
mov eax, dword [esp + 0x2c]
mov dl, byte [esi + eax]
mov byte [esp + 0x13], dl
jne 0x101e195e
mov ax, word [edi + 0x10]
or ax, 2
movzx eax, ax
mov ecx, eax
xor ecx, 1
imul ecx, eax
sar ecx, 8
xor dl, cl
mov byte [esp + 0x13], dl
test ebx, ebx
je 0x101e1965
mov byte [esi + ebx], dl
push 1
lea eax, [esp + 0x17]
push eax
mov eax, dword [edi + 8]
not eax
push eax
call sym.php5.dll_crc32
not eax
mov dword [edi + 8], eax
movzx eax, al
add eax, dword [edi + 0xc]
push 1
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 0xc], eax
shr eax, 0x18
mov byte [esp + 0x23], al
lea eax, [esp + 0x23]
push eax
mov eax, dword [edi + 0x10]
not eax
push eax
call sym.php5.dll_crc32
mov ecx, dword [esp + 0x2c]
add esp, 0x18
add esi, 1
adc ecx, 0
not eax
mov dword [edi + 0x10], eax
mov dword [esp + 0x14], ecx
cmp ecx, dword [esp + 0x34]
jb 0x101e1930
ja 0x101e19cf
cmp esi, ebp
jb 0x101e1930
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x10
ret

Function at 0x101e2920
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x101e293e
push dword [esp + 8]
movzx eax, word [ecx + 4]
push 1
push eax
push dword [ecx]
call dword [sym.imp.MSVCR110.dll_fwrite]
add esp, 0x10
ret
Function at 0x101ff870
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
dec dword [eax + 0x78]
jne 0x101ff882
mov dword [esp + 4], eax
jmp fcn.10205bf0
ret
Function at 0x1020ca40
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
test edi, edi
je 0x1020cc1c
mov ebp, dword [esp + 0x18]
push edi
push dword [ebp]
call sym.php5.dll__estrndup
mov ebx, eax
push 0x18
mov dword [esp + 0x1c], ebx
call sym.php5.dll__emalloc
mov esi, dword [esp + 0x28]
add esp, 0xc
mov dword [esi], eax
mov dword [eax + 0x10], 0
mov ecx, dword [esi]
movq xmm0, qword [sym.php5.dll_zval_used_for_init]
movq qword [ecx], xmm0
movq xmm0, qword [0x106694f8]
movq qword [ecx + 8], xmm0
cmp dword [0x106618dc], 0
jne 0x1020cabb
mov ecx, dword [0x106618ec]
test ecx, ecx
je 0x1020cabb
mov eax, dword [0x106618e8]
inc ecx
mov dword [esp + 0x20], eax
mov dword [0x106618ec], ecx
jmp 0x1020cae3
push 0x10
push 1
call sym.php5.dll__ecalloc
add esp, 8
cmp dword [0x106618dc], 0
mov dword [esp + 0x20], eax
jne 0x1020cae3
mov dword [0x106618e8], eax
mov dword [0x106618ec], 1
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x14]
add eax, edi
push eax
lea eax, [esp + 0x18]
push eax
push esi
call sym.php5.dll_php_var_unserialize
add esp, 0x10
push ebx
test eax, eax
jne 0x1020cb71
call sym.php5.dll__efree
add esp, 4
cmp dword [0x106618dc], 0
jne 0x1020cb43
mov eax, dword [0x106618ec]
test eax, eax
je 0x1020cb43
dec eax
mov dword [0x106618ec], eax
jne 0x1020cb59
lea eax, [esp + 0x20]
push eax
call sym.php5.dll_var_destroy
push dword [esp + 0x24]
call sym.php5.dll__efree
mov dword [0x106618e8], 0
jmp 0x1020cb56
lea eax, [esp + 0x20]
push eax
call sym.php5.dll_var_destroy
push dword [esp + 0x24]
call sym.php5.dll__efree
add esp, 8
push esi
call sym.php5.dll__zval_ptr_dtor
add esp, 4
mov dword [esi], 0
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
call sym.php5.dll__efree
add esp, 4
cmp dword [0x106618dc], 0
jne 0x1020cbb2
mov eax, dword [0x106618ec]
test eax, eax
je 0x1020cbb2
dec eax
mov dword [0x106618ec], eax
jne 0x1020cbc8
lea eax, [esp + 0x20]
push eax
call sym.php5.dll_var_destroy
push dword [esp + 0x24]
call sym.php5.dll__efree
mov dword [0x106618e8], 0
jmp 0x1020cbc5
lea eax, [esp + 0x20]
push eax
call sym.php5.dll_var_destroy
push dword [esp + 0x24]
call sym.php5.dll__efree
add esp, 8
cmp dword [0x106607ac], 0
je 0x1020cc26
push esi
call sym.php5.dll__zval_ptr_dtor
push edi
call dword [sym.imp.MSVCR110.dll_malloc]
add esp, 8
test eax, eax
je 0x1020cbfc
push edi
mov dword [esi], eax
push dword [ebp]
push eax
call sub.MSVCR110.dll_memcpy
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
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 + 0x1c]
mov dword [eax], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret