joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1019fc9b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, 0x1e25
xor ebx, ebx
mov dword [0x101a472c], 0
mov dword [0x101a4730], 0
mov dword [0x101a473c], 0
mov dword [0x101a4724], 0xfa3
cmp eax, 0
mov dword [ebp - 0x10], eax
mov eax, ebx
mov dword [ebp - 0x14], eax
mov eax, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], edi
je 0x1019fe36
jmp 0x1019fd1a
mov eax, dword [0x101a4724]
add eax, 0xe82
mov dword [ebp - 0x2c], eax
jmp 0x1019fe36
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov esi, 0x100
add edx, 1
mov edi, ecx
add edi, 1
mov dword [ebp - 0x30], eax
mov eax, edx
cdq
idiv esi
mov dword [0x101a472c], edx
mov dword [0x101a4724], 0x3264
mov ebx, dword [ebp - 0x24]
movzx ebx, byte [ebx + edx]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x30]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x101a4730], edx
mov ecx, dword [0x101a4728]
add ecx, 0xfffff82b
mov dword [0x101a4728], ecx
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x101a4734], cl
mov dword [0x101a4724], 0x26b4
mov ebx, dword [ebp - 0x24]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov dword [0x101a4728], 0x112a
mov cl, byte [0x101a4734]
mov edx, dword [0x101a4730]
mov byte [ebx + edx], cl
mov edx, dword [0x101a472c]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x101a4730]
movzx ecx, byte [ebx + ecx]
add ecx, edx
mov dword [0x101a4728], 0x55d
and ecx, 0xff
mov dword [0x101a473c], ecx
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x34]
mov ch, byte [edx + esi]
mov dword [0x101a4724], 0x65f
mov dword [0x101a4728], 0xffffdf97
xor ch, cl
mov edx, dword [ebp - 0x20]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x3c], edi
je 0x1019fd08
mov eax, dword [0x101a472c]
mov ecx, dword [0x101a4730]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], ecx
jmp 0x1019fd1a
mov eax, dword [ebp - 0x2c]
mov dword [0x101a4724], eax
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1019fe46
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x98
lea eax, [esp + 0x80]
lea ecx, [esp + 0x20]
mov edx, dword [0x101a4724]
mov esi, edx
add esi, 0xffffdde0
mov dword [0x101a4728], esi
add edx, 0xffffe928
mov dword [0x101a4724], edx
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.1019f573
lea ecx, [0x1019f2f1]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x78], edx
mov dword [esp + 0x5c], 0x134c00
mov edx, dword [0x101a4710]
mov dword [esp + 0x6c], edx
mov edx, dword [0x101a4714]
mov dword [esp + 0x3c], edx
mov edx, dword [0x101a4718]
mov dword [esp + 0x48], edx
mov edx, dword [0x101a471c]
mov dword [esp + 0x2c], edx
mov dword [0x101a4724], 0x5bd
mov edx, dword [0x101a4720]
mov dword [esp + 0x30], edx
mov dword [0x101a4728], 0xfffff4b2
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x1019ff22
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.1019f845
mov ecx, esp
lea edx, [esp + 0x20]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [esp + 0x10], eax
jmp 0x1019ff8d
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0xc], eax
jne 0x1019ff45
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 8], ecx
je 0x1019ff59
mov eax, dword [esp + 0xc]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x1019ff22
mov eax, dword [esp + 0xc]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 8]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x54], edx
mov dword [0x101a4724], 0xe1c
call fcn.1019f074
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x10], ecx
je 0x1019fef3
mov eax, dword [esp + 0x10]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x100043c0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006534f
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x1009a8a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, esi
and eax, 0xe0000000
cmp eax, 0x20000000
jg 0x1000449c
je 0x10004497
cmp eax, 0x80000000
je 0x10004497
test eax, eax
jne 0x100044a3
lea ecx, [ebp - 0x2c]
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Variant::constructor_void_]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Heap::constructor_void_]
mov eax, dword [0x1009bddc]
mov dword [ebp - 0x10], 0xa
mov ecx, dword [eax]
test ecx, ecx
je 0x1000444b
add ecx, 0x28
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Lock::acquire_void_]
mov ecx, dword [edi]
push esi
mov byte [ebp - 4], 1
call fcn.1002c730
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.ScCore.dll_public:_class_ScCore::Variant____thiscall_ScCore::Variant::operator_unsigned_short_int_const__]
mov eax, dword [0x1009bddc]
mov byte [ebp - 4], 2
mov ecx, dword [eax]
test ecx, ecx
je 0x1000447c
mov eax, dword [ebp - 0x10]
lea ecx, [ecx + eax*4]
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Lock::release_void_]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call dword [sym.imp.ScCore.dll_public:_double___thiscall_ScCore::Variant::getDouble_void_const]
lea ecx, [ebp - 0x2c]
fstp qword [ebp - 0x14]
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Variant::destructor_void_]
jmp 0x100044bf
xorps xmm0, xmm0
jmp 0x100044ba
cmp eax, 0x40000000
je 0x100044af
and esi, 0x1fffffff
movd xmm0, esi
jmp 0x100044b6
movzx eax, si
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movsd qword [ebp - 0x14], xmm0
fld qword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10004080
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007c688
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10094610]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x100824b4
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [ebp + 0x10]
push 0x100824b4
mov ebx, eax
call fcn.10004f10
xor ecx, ecx
mov eax, 0x100
mov edx, 2
mul edx
seto cl
mov dword [ebp - 0x10], 0x200
neg ecx
or ecx, eax
push ecx
call fcn.1006555b
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 4
mov edi, eax
lea eax, [ebp - 0x10]
push eax
push edi
push 0
push 0
push ecx
push ebx
call esi
mov dword [ebp + 8], eax
test eax, eax
je 0x100041af
push edi
cmp eax, 0xea
je 0x10004163
call fcn.10066c8a
mov eax, dword [ebp + 0xc]
lea edx, [eax - 0xc]
add esp, 4
cmp edx, dword [0x10095a00]
je 0x1000414d
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1000414d
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff4
push eax
call fcn.10066c8a
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
add dword [ebp - 0x10], 2
call fcn.10066c8a
mov eax, dword [ebp - 0x10]
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1006555b
mov edi, eax
mov eax, dword [ebp - 0x10]
push eax
push 0
push edi
call fcn.10066c10
mov edx, dword [ebp + 0xc]
add esp, 0x14
lea ecx, [ebp - 0x10]
push ecx
push edi
push 0
push 0
push edx
push ebx
call esi
mov dword [ebp + 8], eax
test eax, eax
jne 0x100041c9
test edi, edi
jne 0x100041b7
xor eax, eax
jmp 0x100041be
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [ebp + 0x10]
push edi
mov ebx, eax
call fcn.10004f10
push edi
call fcn.10066c8a
xor eax, eax
add esp, 4
cmp dword [ebp + 8], eax
sete al
mov esi, eax
mov eax, dword [ebp + 0xc]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x10095a00]
je 0x10004207
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10004207
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff4
push edx
call fcn.10066c8a
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100050f0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007c7a8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x10094610]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
call fcn.10004fc0
mov eax, dword [ebp + 0xc]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100051ea
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
je 0x100051ea
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esi, 2
push esi
call fcn.1006555b
add esp, 4
push esi
mov edi, eax
push 0
push edi
call fcn.10066c10
mov ecx, dword [ebp - 0x10]
add esp, 0xc
push 0
lea eax, [ebp - 0x14]
push eax
push ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1006555b
add esp, 4
push esi
mov ebx, eax
push ebx
push esi
push edi
push 0
push 0xfde9
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1000522b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call fcn.10066c8a
add esp, 4
mov eax, dword [ebp + 0xc]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x10095a00]
je 0x10005215
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10005215
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff4
push edx
call fcn.10066c8a
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test ebx, ebx
jne 0x10005233
xor eax, eax
jmp 0x1000523a
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [ebp + 8]
push ebx
mov ebx, eax
call fcn.10004f10
push edi
call fcn.10066c8a
add esp, 4
mov eax, esi
push eax
call fcn.100052c0
test eax, eax
je 0x10005284
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.10066c8a
add esp, 4
lea esi, [ebp + 0xc]
call fcn.10006fb0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.10066c8a
add esp, 4
lea esi, [ebp + 0xc]
call fcn.10006fb0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10009d90
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [edi]
test esi, esi
je 0x10009de0
cmp dword [esi + 0x20], 0
jne 0x10009dce
mov eax, dword [esi]
test eax, eax
je 0x10009dce
push eax
call fcn.1004bf1a
lea eax, [esi + 4]
mov dword [esi], 0
add esp, 4
cmp dword [eax + 0x14], 0x10
mov dword [eax + 0x10], 0
jb 0x10009dc4
mov eax, dword [eax]
mov byte [eax], 0
mov dword [esi + 0x20], 1
mov eax, dword [edi]
test eax, eax
je 0x10009dda
push eax
call fcn.10009b30
mov dword [edi], 0
mov esi, dword [edi + 8]
mov ecx, dword [edi + 4]
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10009e0e
test dx, dx
je 0x10009e0a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10009e0e
add eax, 4
add ecx, 4
test dx, dx
jne 0x10009de8
xor eax, eax
jmp 0x10009e13
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10009e1e
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
ret

Function at 0x1000abe0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007ad68
mov eax, dword fs:[0]
push eax
sub esp, 0x804
mov eax, dword [0x10094610]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 2
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push 0x3ff
lea ecx, [ebp - 0x810]
push ecx
xor edi, edi
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x1000ac59
lea ecx, [ebp - 0x810]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [ebp - 0x810]
push edx
mov ebx, eax
call fcn.10004f10
jmp 0x1000ac5e
mov edi, 0x80004005
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x10095a00]
je 0x1000ac8b
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x1000ac8b
mov edx, dword [ebp + 8]
add edx, 0xfffffff4
push edx
call fcn.10066c8a
add esp, 4
mov eax, dword [ebp + 0xc]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x10095a00]
je 0x1000acb2
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x1000acb2
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff4
push edx
call fcn.10066c8a
add esp, 4
mov eax, dword [ebp + 0x10]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x10095a00]
je 0x1000acd9
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x1000acd9
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.10066c8a
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100660ff
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10013e49
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
cmp dword [ebp + 8], eax
jle 0x10013e72
push esi
movzx edx, byte [ecx]
movzx edx, byte [edx + 0x10082bf0]
mov esi, eax
shl esi, 3
xor edx, esi
xor eax, edx
inc ecx
dec dword [ebp + 8]
cmp dword [ebp + 8], 0
jg 0x10013e54
pop esi
pop ebp
ret
Function at 0x1001446f
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x20]
push esi
push edi
test eax, eax
je 0x100144af
cdq
mov esi, eax
add eax, dword [ebp + 0xc]
mov edi, edx
mov ecx, edx
adc ecx, dword [ebp + 0x10]
push edi
sub eax, 1
push esi
sbb ecx, 0
push ecx
push eax
call fcn.10073150
push edi
push esi
push edx
push eax
call fcn.10074dd0
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edx
push dword [ebp + 0x10]
mov edi, ebx
push dword [ebp + 0xc]
call fcn.1001430d
pop ecx
pop ecx
test eax, eax
jne 0x100144d8
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100144df
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x10], eax
mov dword [ebp - 4], 0x60a
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001450e
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp + 8]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1001453e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1001453e
mov dword [esi + 0x10], eax
mov eax, 0x70a
jmp 0x10014553
mov edx, dword [ebp + 8]
xor eax, eax
xor ecx, ecx
add ecx, edi
adc edx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov dword [eax + 4], edx
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x10014f37
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [0x10094610]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10098b78]
push ebx
push esi
test eax, eax
je 0x10014f71
push eax
push 0x100871d8
lea eax, [ebp - 0x110]
push eax
push 0xe6
call fcn.10012b07
add esp, 0x10
jmp 0x10014fe9
call fcn.1001411c
mov esi, 0xe6
test eax, eax
je 0x10014fb1
lea eax, [ebp - 0x318]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x318]
push eax
call fcn.100141d0
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x10014fcd
push 7
pop eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.100660ff
leave
ret
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x218]
push eax
call fcn.10014292
jmp 0x10014f99
push ebx
push 0x100871d8
lea eax, [ebp - 0x110]
push eax
push esi
call fcn.10012b07
push ebx
call fcn.100665be
add esp, 0x14
mov ecx, str.etilqs_
call fcn.10013326
lea ecx, [ebp - 0x110]
mov edx, eax
call fcn.10013326
lea eax, [edx + eax + 0x11]
cmp eax, 0x105
jl 0x10015010
xor eax, eax
inc eax
jmp 0x10014fa3
lea ecx, [ebp - 0x110]
call fcn.10013326
test eax, eax
je 0x10015029
cmp byte [ecx + eax - 1], 0x5c
jne 0x10015029
dec eax
jne 0x1001501f
mov byte [ebp + eax - 0x110], 0
lea eax, [ebp - 0x110]
push eax
push str._setilqs_
push edi
push 0xf4
call fcn.10012b07
mov ecx, edi
call fcn.10013326
mov esi, eax
lea eax, [edi + esi]
push eax
push 0xf
call fcn.10012cfa
add esp, 0x18
push 0xf
pop ecx
movzx eax, byte [edi + esi]
xor edx, edx
push 0x3e
pop ebx
div ebx
mov al, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi], al
inc esi
dec ecx
jne 0x10015062
mov byte [edi + esi], cl
xor eax, eax
jmp 0x10014fa3

Function at 0x100152da
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.10014efe
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x100152fc
push 7
pop eax
jmp 0x1001538b
push esi
call fcn.1001411c
test eax, eax
je 0x1001533b
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10015328
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 5
jne 0x10015370
inc dword [ebp - 4]
cmp dword [ebp - 4], 5
jge 0x10015370
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10015306
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1001535d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 5
jne 0x10015370
inc dword [ebp - 4]
cmp dword [ebp - 4], 5
jge 0x10015370
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1001533b
push edi
call fcn.100665be
pop ecx
cmp esi, 0xffffffff
pop esi
jne 0x10015386
cmp ebx, 2
jne 0x10015386
xor eax, eax
jmp 0x1001538b
mov eax, 0xa0a
pop edi
pop ebx
leave
ret
Function at 0x1001553a
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x10094610]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
lea ecx, [ebp - 0x110]
push ecx
push 0x104
push eax
push dword [ebp + 8]
mov dword [ebp - 0x118], 0x200
call fcn.10015466
add esp, 0x10
test eax, eax
jne 0x10015620
lea eax, [ebp - 0x110]
push eax
call fcn.10014efe
mov esi, eax
xor ebx, ebx
pop ecx
cmp esi, ebx
je 0x10015616
call fcn.1001411c
test eax, eax
mov eax, esi
je 0x100155da
cmp word [esi], bx
je 0x100155bb
cmp word [eax], 0x5c
je 0x100155b6
add eax, 2
cmp word [eax], bx
jne 0x100155a6
jmp 0x100155bb
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x114]
push eax
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
jmp 0x10015609
cmp byte [esi], bl
je 0x100155ec
cmp byte [eax], 0x5c
je 0x100155ea
inc eax
cmp byte [eax], bl
jne 0x100155de
jmp 0x100155ec
mov byte [eax], bl
lea eax, [ebp - 0x114]
push eax
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
push esi
mov edi, eax
call fcn.100665be
pop ecx
cmp edi, ebx
jne 0x10015620
mov dword [ebp - 0x118], 0x200
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x118]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100660ff
leave
ret
Function at 0x1001856b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov edx, dword [ebx + 0x3c]
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [edx], edi
jne 0x100185a2
mov eax, dword [ebx + 0x78]
mov ecx, dword [ebx]
or eax, 0x1e
push edi
and eax, 0x87f3f
push eax
push edx
push edi
push ecx
call dword [ecx + 0x18]
add esp, 0x14
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x1001865f
mov ecx, dword [ebx + 0x18]
cmp ecx, dword [ebx + 0x24]
jbe 0x100185dc
mov eax, dword [ebx + 0x80]
push edi
cdq
push ecx
push edx
push eax
call fcn.10074dd0
mov dword [ebp - 0xc], edx
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x3c]
mov ecx, dword [eax]
push 5
push eax
call dword [ecx + 0x28]
mov eax, dword [ebx + 0x18]
add esp, 0xc
mov dword [ebx + 0x24], eax
jmp 0x100185dc
xor edi, edi
mov esi, dword [ebp + 8]
cmp esi, edi
je 0x1001865f
mov edi, dword [esi + 0xc]
mov dword [ebp - 0xc], edi
cmp edi, dword [ebx + 0x18]
ja 0x1001864f
test byte [esi + 0x14], 0x20
jne 0x1001864f
mov eax, dword [ebx + 0x80]
cdq
push edx
push eax
lea ecx, [edi - 1]
push 0
push ecx
call fcn.10074dd0
mov ecx, dword [esi]
push edx
push eax
push dword [ebx + 0x80]
mov eax, dword [ebx + 0x3c]
push ecx
mov dword [ebp - 8], ecx
call fcn.10010e7b
add esp, 0x10
mov dword [ebp - 4], eax
cmp edi, 1
jne 0x1001863c
mov esi, dword [ebp - 8]
add esi, 0x18
lea edi, [ebx + 0x64]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
cmp edi, dword [ebx + 0x20]
jbe 0x10018644
mov dword [ebx + 0x20], edi
push dword [esi]
mov eax, dword [ebx + 0x58]
call fcn.10022037
pop ecx
cmp dword [ebp - 4], 0
mov eax, dword [esi + 8]
mov dword [ebp + 8], eax
je 0x100185da
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
Function at 0x1002e410
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x1002e428
xor eax, eax
jmp 0x1002e512
mov esi, dword [ebp + 8]
push 0x44
call fcn.10011a1d
mov esi, eax
pop ecx
test esi, esi
je 0x1002e421
push dword [ebp + 0x10]
mov ebx, dword [edi]
push dword [ebp + 8]
call fcn.1002e177
push dword [ebp + 0x10]
mov dword [esi], eax
push dword [edi + 8]
push dword [ebp + 8]
call fcn.1002e251
add esp, 0x14
push 0
push dword [ebp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push eax
push dword [ebp + 8]
call fcn.1002df0d
push dword [ebp + 0x10]
mov dword [esi + 0xc], eax
push dword [ebp + 8]
mov ebx, dword [edi + 0x10]
call fcn.1002e177
push 0
push dword [ebp + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
push eax
push dword [ebp + 8]
call fcn.1002df0d
push dword [ebp + 0x10]
mov dword [esi + 0x14], eax
push dword [ebp + 8]
mov ebx, dword [edi + 0x18]
call fcn.1002e177
push dword [ebp + 0x10]
mov dword [esi + 0x18], eax
mov al, byte [edi + 4]
mov byte [esi + 4], al
push dword [edi + 0x1c]
push dword [ebp + 8]
call fcn.1002e410
add esp, 0x3c
xor ebx, ebx
push ebx
push dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x28]
push eax
push dword [ebp + 8]
call fcn.1002df0d
push ebx
push dword [ebp + 0x10]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
push eax
push dword [ebp + 8]
call fcn.1002df0d
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov ax, word [edi + 6]
or dword [esi + 0x38], 0xffffffff
or dword [esi + 0x3c], 0xffffffff
mov ecx, 0xfff7
and ax, cx
add esp, 0x20
or dword [esi + 0x40], 0xffffffff
mov word [esi + 6], ax
mov dword [esi + 0x24], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret