joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009c00
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.1001ece0
mov eax, dword [0x10033008]
xor eax, ebp
mov dword [ebp - 8], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x100c]
call fcn.10009bc0
mov eax, dword [0x10033c4c]
add esp, 8
test eax, eax
je 0x10009c59
mov eax, dword [eax + 0x58]
lea ecx, [ebp - 0x100c]
push ecx
push 0xfdea
push 4
call eax
add esp, 0xc
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100127b8
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x100c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100127b8
mov esp, ebp
pop ebp
ret

Function at 0x10009c80
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.1001ece0
mov eax, dword [0x10033008]
xor eax, ebp
mov dword [ebp - 8], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x100c]
call fcn.10009bc0
mov eax, dword [0x10033c4c]
add esp, 8
test eax, eax
je 0x10009cd9
mov eax, dword [eax + 0x58]
lea ecx, [ebp - 0x100c]
push ecx
push 0xfdea
push 3
call eax
add esp, 0xc
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100127b8
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x100c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100127b8
mov esp, ebp
pop ebp
ret

Function at 0x1000a070
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [0x10033c40], 0
push ebx
push esi
push edi
jne 0x1000a08d
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
lea edx, [ebp + 0x14]
test ecx, ecx
jle 0x1000a0ac
mov eax, dword [ebp + 0x14]
lea edx, [ebp + 0x1c]
dec ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0xc], eax
jmp 0x1000a0b4
xorps xmm0, xmm0
movlpd qword [ebp - 0x10], xmm0
test ecx, ecx
jle 0x1000a0cd
dec ecx
add edx, 8
mov dword [ebp + 0x10], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x14], eax
jmp 0x1000a0d5
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
test ecx, ecx
jle 0x1000a0ee
dec ecx
add edx, 8
mov dword [ebp + 0x10], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x1c], eax
jmp 0x1000a0f6
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
test ecx, ecx
jle 0x1000a10f
dec ecx
add edx, 8
mov dword [ebp + 0x10], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x24], eax
jmp 0x1000a117
xorps xmm0, xmm0
movlpd qword [ebp - 0x28], xmm0
mov eax, edx
mov dword [ebp - 4], 0
cdq
xorps xmm0, xmm0
mov dword [ebp - 0x40], eax
mov eax, ecx
mov dword [ebp - 0x3c], edx
cdq
movlpd qword [ebp - 0x38], xmm0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 8], 0
mov word [ebp - 8], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 4], esp
and esp, 0xfffffff0
push 0x33
call fcn.1000a158
Function at 0x1000a1e0
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10023f7e
mov eax, dword fs:[0]
push eax
sub esp, 0x5d4
push ebx
push esi
push edi
mov eax, dword [0x10033008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x10033c40], 0
je 0x1000a4f7
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
push 0x33
call fcn.1000a227
xor eax, eax
xor edx, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000a890
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
push ebx
push esi
push edi
test ecx, ecx
je 0x1000a902
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
test ecx, ecx
jne 0x1000a8b1
test eax, eax
je 0x1000a902
test edx, edx
je 0x1000a902
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
push 0x33
call fcn.1000a8c2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000a910
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10023fb5
mov eax, dword fs:[0]
push eax
sub esp, 0x1a4
mov eax, dword [0x10033008]
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 eax, dword [0x10033c90]
mov edx, dword [0x10033c94]
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x130], edx
test eax, eax
jne 0x1000a98a
test edx, edx
jne 0x1000a979
call fcn.1000a1e0
mov dword [ebp - 0x12c], eax
mov dword [0x10033c90], eax
mov dword [ebp - 0x130], edx
mov dword [0x10033c94], edx
test eax, eax
jne 0x1000a98a
test edx, edx
jne 0x1000a98a
xor eax, eax
xor edx, edx
jmp 0x1000ad64
lea ecx, [ebp - 0x1b0]
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x134], edx
push 0x33
call 0x1000a9a9
add dword [esp], 5
retf
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.100127b8
mov esp, ebp
pop ebp
ret
Function at 0x1000adf0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10024006
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x10033008]
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 edi, ecx
mov dword [ebp - 0x20], edi
push 0x228
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x27c], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
add esp, 0xc
mov dword [ebp - 0x250], 0x22c
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0
push 2
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x250]
mov byte [ebp - 4], 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x1000aeaa
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
jmp 0x1000af88
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
xor eax, eax
mov dword [ebp - 0x254], 7
mov dword [ebp - 0x258], 0
mov word [ebp - 0x268], ax
mov byte [ebp - 4], 2
cmp word [ebp - 0x22c], 0
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x278], eax
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x26c], 0
jne 0x1000af0b
xor eax, eax
jmp 0x1000af23
lea eax, [ebp - 0x22c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000af14
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x268]
call fcn.100061d0
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x1c]
call fcn.1000fb50
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x254]
cmp eax, 8
jb 0x1000af65
inc eax
push eax
push dword [ebp - 0x268]
call fcn.100068a0
lea eax, [ebp - 0x250]
push eax
push esi
call ebx
test eax, eax
jne 0x1000aeb0
mov eax, dword [ebp - 0x1c]
mov dword [edi], eax
mov eax, dword [ebp - 0x18]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 8], eax
test esi, esi
je 0x1000af98
cmp esi, 0xffffffff
je 0x1000af98
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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.100127b8
mov esp, ebp
pop ebp
ret
Function at 0x1000b150
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x10033008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x34], eax
test edi, edi
jne 0x1000b17f
or ebx, 0xffffffff
jmp 0x1000b181
mov ebx, dword [edi]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
lea eax, [ebp - 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 8], 0
jne 0x1000b1e5
cmp dword [ebp - 0xc], 1
jne 0x1000b1e5
test edi, edi
jne 0x1000b1bc
or ecx, 0xffffffff
jmp 0x1000b1be
mov ecx, dword [edi]
push dword [ebp - 0x34]
mov edx, dword [ebp - 0x3c]
push dword [ebp - 0x38]
push 0
push 0
call fcn.1000a6a0
add esp, 0x10
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100127b8
mov esp, ebp
pop ebp
ret 0x14
test edi, edi
jne 0x1000b1ee
or eax, 0xffffffff
jmp 0x1000b1f0
mov eax, dword [edi]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test eax, eax
jne 0x1000b21a
xor edx, edx
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100127b8
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
cdq
pop ebx
call fcn.100127b8
mov esp, ebp
pop ebp
ret 0x14

Function at 0x1000b230
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x10033008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
test edi, edi
jne 0x1000b259
or ebx, 0xffffffff
jmp 0x1000b25b
mov ebx, dword [edi]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
lea eax, [ebp - 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 8], 0
jne 0x1000b2b8
cmp dword [ebp - 0xc], 1
jne 0x1000b2b8
test edi, edi
jne 0x1000b2a5
or ecx, 0xffffffff
push ecx
push dword [ebp - 0x38]
push dword [ebp - 0x34]
call fcn.1000a7a0
add esp, 0xc
jmp 0x1000b2d4
mov ecx, dword [edi]
push ecx
push dword [ebp - 0x38]
push dword [ebp - 0x34]
call fcn.1000a7a0
add esp, 0xc
jmp 0x1000b2d4
test edi, edi
jne 0x1000b2c1
or eax, 0xffffffff
jmp 0x1000b2c3
mov eax, dword [edi]
push 0x8000
push 0
push dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov ecx, dword [ebp - 4]
test eax, eax
pop edi
setne al
xor ecx, ebp
pop ebx
call fcn.100127b8
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1000b2f0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40
mov eax, dword [0x10033008]
xor eax, esp
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [esp + 8], eax
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 4], ecx
push edi
test ebx, ebx
jne 0x1000b343
push dword [ebp + 0x14]
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov al, 1
pop edi
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.100127b8
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [ebx]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esp + 0x14], 0
jne 0x1000b3c3
cmp dword [esp + 0x18], 1
jne 0x1000b3c3
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.NtWow64ReadVirtualMemory64
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 0
push dword [ebp + 0x14]
push dword [esp + 0x14]
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [ebx]
call eax
test eax, eax
jns 0x1000b3df
xor al, al
pop edi
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.100127b8
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 0x1c]
push eax
push dword [ebp + 0x14]
push dword [esp + 0x10]
push dword [esp + 0x18]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1000b3ae
mov ecx, dword [esp + 0x44]
mov al, 1
pop edi
pop ebx
xor ecx, esp
call fcn.100127b8
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1000b400
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x10033008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x3c], eax
mov ebx, ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x38], eax
push esi
push edi
test ebx, ebx
jne 0x1000b430
or edi, 0xffffffff
jmp 0x1000b432
mov edi, dword [ebx]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [sym.imp.KERNEL32.dll_IsWow64Process]
push eax
call esi
lea eax, [ebp - 8]
push eax
push edi
call esi
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 8], 0
jne 0x1000b4a5
cmp dword [ebp - 0xc], 1
jne 0x1000b4a5
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.NtWow64QueryInformationProcess64
push edi
call esi
push str.NtWow64WriteVirtualMemory64
push edi
call esi
test ebx, ebx
jne 0x1000b48e
or ecx, 0xffffffff
jmp 0x1000b490
mov ecx, dword [ebx]
push 0
push 0
push dword [ebp + 0x14]
push dword [ebp - 0x38]
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
push ecx
call eax
jmp 0x1000b4d7
test ebx, ebx
je 0x1000b4c6
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x1000b4c6
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 0x14]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
jmp 0x1000b4d7
push dword [ebp + 0x14]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100127b8
mov esp, ebp
pop ebp
ret 0x14
Function at 0x1000f440
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100246db
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x10033008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x428]
mov edi, dword [ebp + 0xc]
push eax
push 0x104
mov dword [ebp - 0x444], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp dword [edi + 0x14], 8
jb 0x1000f497
mov edi, dword [edi]
lea eax, [ebp - 0x21c]
push eax
push 0
push edi
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
xor eax, eax
mov dword [ebp - 0x42c], 7
mov dword [ebp - 0x430], 0
mov word [ebp - 0x440], ax
cmp word [ebp - 0x21c], ax
jne 0x1000f4d8
xor ecx, ecx
jmp 0x1000f4f0
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000f4e1
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x440]
call fcn.100061d0
push ecx
lea edx, [ebp - 0x440]
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.10011070
mov eax, dword [ebp - 0x42c]
add esp, 4
cmp eax, 8
jb 0x1000f533
inc eax
push eax
push dword [ebp - 0x440]
call fcn.100068a0
cmp dword [esi + 0x14], 8
jb 0x1000f53d
mov eax, dword [esi]
jmp 0x1000f53f
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100127b8
mov esp, ebp
pop ebp
ret 8
Function at 0x1000f570
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10024730
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x10033008]
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, dword [ebp + 0xc]
lea eax, [ebp - 0x68]
push 0x40
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x80]
mov edx, esi
call fcn.10005cb0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
push ecx
push eax
lea ecx, [ebp - 0x68]
call fcn.10013cd0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x1000f5f6
inc eax
push eax
push dword [ebp - 0x28]
call fcn.10006900
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x6c]
cmp eax, 0x10
jb 0x1000f60c
inc eax
push eax
push dword [ebp - 0x80]
call fcn.10006900
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x6c], 0xf
mov dword [ebp - 0x70], 0
mov byte [ebp - 0x80], 0
mov edi, dword [ebx]
mov esi, dword [edi]
cmp esi, edi
je 0x1000f6ab
nop dword [eax]
lea edx, [esi + 0x10]
lea ecx, [ebp - 0x28]
call fcn.10005cb0
push 9
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x68]
call fcn.10014550
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x1000f663
inc eax
push eax
push dword [ebp - 0x28]
call fcn.10006900
cmp byte [esi + 0xd], 0
jne 0x1000f6a7
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x1000f68c
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x1000f6a7
nop dword [eax]
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x1000f680
jmp 0x1000f6a7
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x1000f6a5
cmp esi, dword [eax + 8]
jne 0x1000f6a5
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x1000f695
mov esi, eax
cmp esi, edi
jne 0x1000f630
lea ecx, [ebp - 0x68]
call fcn.100152c0
mov edi, dword [ebx]
mov esi, dword [edi]
cmp esi, edi
je 0x1000f716
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
jb 0x1000f6cc
mov eax, dword [eax]
push eax
call ebx
cmp byte [esi + 0xd], 0
jne 0x1000f712
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x1000f6f4
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x1000f712
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x1000f6e8
jmp 0x1000f712
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x1000f710
nop dword [eax]
cmp esi, dword [eax + 8]
jne 0x1000f710
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x1000f700
mov esi, eax
cmp esi, edi
jne 0x1000f6c1
lea ecx, [ebp - 0x68]
call fcn.10014060
xor al, al
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.100127b8
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100158f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 8
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0xc]
test eax, eax
jg 0x10015916
jl 0x1001590a
test esi, esi
jne 0x10015916
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x1001592f
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, esi
mov dword [ebp - 4], esi
mov ecx, dword [eax]
test ecx, ecx
je 0x10015973
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x10015973
mov edi, dword [ebp + 0xc]
cmp eax, edi
cmovb esi, eax
push esi
push ecx
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [ebp + 8], esi
add esp, 0xc
mov dword [ebp - 4], edi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0xc]
jmp 0x10015979
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
cmp dword [ebx + 0x4c], 0
je 0x10015a2c
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x100159a4
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov eax, dword [ebp - 4]
mov edx, eax
mov ecx, dword [ebp + 8]
cmp eax, 0xfff
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov dword [ebp - 4], edx
jbe 0x100159ef
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push ecx
call eax
mov ecx, dword [ebp + 8]
sub edi, eax
add ecx, eax
mov dword [ebp - 4], edi
add esp, 0x10
mov dword [ebp + 8], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x10015a19
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x100159c0
cmp dword [ebp - 4], 0
jbe 0x10015a2f
push dword [ebx + 0x4c]
push edi
push 1
push ecx
call eax
mov edx, dword [ebp - 4]
add esp, 0x10
sub edx, eax
sub esi, edx
mov edx, dword [ebp + 0x10]
mov eax, esi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
sub esi, edi
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp - 4]
sub esi, edx
mov edx, dword [ebp + 0x10]
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10015a50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x10015a75
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x10015a96
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x10015a98
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x10015b16
jg 0x10015aab
test esi, esi
je 0x10015b16
test ecx, ecx
jl 0x10015af9
jg 0x10015ab5
test eax, eax
je 0x10015af9
cmp edi, ecx
jg 0x10015ac7
jl 0x10015abf
cmp esi, eax
jae 0x10015ac7
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
mov edx, dword [ebp + 8]
sbb edi, dword [ebp - 4]
add edx, ecx
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
test edi, edi
jl 0x10015b16
jg 0x10015afc
test esi, esi
je 0x10015b16
jmp 0x10015afc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10015b16
push eax
push esi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10016200
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [esi], 0x12345678
mov dword [esi + 4], 0x23456789
mov dword [esi + 8], 0x34567890
mov cl, byte [eax]
test cl, cl
je 0x10016280
push ebx
push edi
mov ebx, 0x12345678
mov edi, 0x23456789
mov eax, 0x34567890
movsx ecx, cl
mov edx, ebx
xor ecx, ebx
shr edx, 8
mov ebx, dword [ebp + 0x10]
movzx ecx, cl
mov ebx, dword [ebx + ecx*4]
xor ebx, edx
mov edx, dword [ebp + 0x10]
movzx ecx, bl
add ecx, edi
mov dword [esi], ebx
imul edi, ecx, 0x8088405
inc edi
mov ecx, edi
mov dword [esi + 4], edi
shr ecx, 0x18
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [edx + ecx*4]
mov ecx, dword [ebp + 8]
inc ecx
mov dword [esi + 8], eax
mov dword [ebp + 8], ecx
mov cl, byte [ecx]
test cl, cl
jne 0x10016235
pop edi
pop ebx
pop esi
pop ebp
ret