joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10088450
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x100e3008]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x100884b5
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10088490
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100884b5
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.1009bd8a
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.1009bd8a
add esp, 8
ret 4

Function at 0x10088620
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [0x100e3008]
xor eax, esp
mov dword [esp + 4], eax
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, ecx
push esi
mov dword [ebx], 0
push edi
cmp dword [ebp], 0xffffffff
mov edi, dword [esp + 0x1c]
je 0x100886b5
mov esi, dword [esp + 0x20]
mov ecx, 0x100000
nop dword [eax]
nop word [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x10], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x14]
push ecx
push eax
push edi
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x10]
add dword [ebx], ecx
test eax, eax
je 0x100886b5
test ecx, ecx
je 0x1008869e
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x10088660
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.1009bd8a
add esp, 8
ret 0xc
mov ecx, dword [esp + 0x14]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1009bd8a
add esp, 8
ret 0xc
Function at 0x1008b100
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x100e3008]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
xor eax, eax
nop dword [eax]
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x100eeae0], ecx
inc eax
cmp eax, 0x100
jb 0x1008b120
cmp eax, 0x800
jae 0x1008b1f3
nop dword [eax]
nop dword [eax + eax]
mov edx, dword [eax*4 + 0x100ee6e0]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x100eeae0]
mov dword [eax*4 + 0x100eeae0], edx
inc eax
cmp eax, 0x800
jb 0x1008b1d0
lea ecx, [esp + 0xc]
mov dword [0x100ec970], 0x100ae630
call fcn.1008d790
test eax, eax
je 0x1008b2a0
mov edi, dword [esp + 0x1c]
xor ecx, ecx
mov esi, edi
mov eax, 0x100e386c
shr esi, 8
shr edi, 4
and esi, 0xff00f
and edi, 0xf00f
xor edx, edx
nop
mov ebx, dword [esp + 0x10]
cmp dword [eax - 8], ebx
jne 0x1008b24a
mov ebx, dword [esp + 0x14]
cmp dword [eax - 4], ebx
mov ebx, dword [esp + 0x18]
jne 0x1008b24a
cmp dword [eax], ebx
je 0x1008b259
add edx, 0xc
inc ecx
add eax, 0xc
cmp edx, 0x24
jb 0x1008b230
or ecx, 0xffffffff
sub ecx, 0
je 0x1008b287
sub ecx, 1
je 0x1008b276
sub ecx, 1
jne 0x1008b2a0
cmp esi, 6
jb 0x1008b2a0
jne 0x1008b296
cmp edi, 0xf
jb 0x1008b2a0
jmp 0x1008b296
cmp esi, 5
jb 0x1008b2a0
jne 0x1008b296
cmp edi, 6
jb 0x1008b2a0
cmp edi, 0xa
jmp 0x1008b294
cmp esi, 6
jb 0x1008b2a0
jne 0x1008b296
cmp edi, 0x100c
je 0x1008b2a0
mov dword [0x100ec970], 0x100ae550
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1009bd8a
mov esp, ebp
pop ebp
ret
Function at 0x1008b750
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b53c8
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x100e3008]
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 eax, dword [esi + 8]
test eax, eax
jne 0x1008b78b
xor al, al
jmp 0x1008b812
add eax, 0x20
mov dword [ebp - 0x14], 0
push eax
lea ecx, [ebp - 0x14]
call fcn.100061a7
mov dword [ebp - 4], 0
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x1008b7ff
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
lea edi, [esi + 4]
push 1
push edi
call ebx
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x1008b330
push 0
push 0
call fcn.100a2cd7
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
jne 0x1008b82e
push 0xffffffffffffffff
push edi
call ebx
sub eax, 1
jne 0x1008b7f7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.1008b4c0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.100061ca
mov al, bl
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.1009bd8a
mov esp, ebp
pop ebp
ret
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x1008b846
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x1008b7e6
mov bl, 1
jmp 0x1008b801

Function at 0x1008bed0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b54d8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x100e3008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
cmp esi, 0xffffffff
jne 0x1008bf07
xor al, al
jmp 0x1008bf69
and esi, 0xffffb1af
push esi
call fcn.1000848f
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1008bf22
mov al, 1
jmp 0x1008bf69
lea ecx, [ebp - 0x28]
call fcn.10006fa2
mov dword [ebp - 4], 0
mov edx, ecx
mov ecx, ebx
call fcn.1008cf50
test al, al
je 0x1008bf56
push esi
lea ecx, [ebp - 0x28]
call fcn.1000848f
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1008bf56
mov bl, 1
jmp 0x1008bf58
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10006f9d
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1009bd8a
mov esp, ebp
pop ebp
ret
Function at 0x1008bf90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b4768
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100e3008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.1000848f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1008c00d
lea ecx, [ebp - 0x28]
call fcn.10006fa2
mov dword [ebp - 4], 0
mov edx, ecx
mov ecx, ebx
call fcn.1008cf50
test al, al
je 0x1008bffc
lea ecx, [ebp - 0x28]
call fcn.1000848f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10006f9d
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1009bd8a
mov esp, ebp
pop ebp
ret

Function at 0x1008c140
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b5558
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x100e3008]
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, edx
mov edi, ecx
push 0xb
mov ecx, esi
call fcn.1000848f
push eax
mov ecx, edi
call fcn.1000848f
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x1008c192
mov al, 1
jmp 0x1008c27e
lea ecx, [ebp - 0x58]
xor bl, bl
call fcn.10006fa2
mov dword [ebp - 4], 0
mov edx, ecx
mov ecx, edi
call fcn.1008cf50
test al, al
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
lea ecx, [ebp - 0x40]
call fcn.10006fa2
mov byte [ebp - 4], 1
mov edx, ecx
mov ecx, esi
call fcn.1008cf50
test al, al
jne 0x1008c1d6
test bl, bl
je 0x1008c1f4
push 0xb
lea ecx, [ebp - 0x40]
call fcn.1000848f
push eax
lea ecx, [ebp - 0x58]
call fcn.1000848f
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1008c248
mov ecx, esi
call fcn.1008bf90
cmp eax, 0xffffffff
je 0x1008c25f
push esi
lea ecx, [ebp - 0x28]
call fcn.1000999b
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.1008ca10
test al, al
je 0x1008c253
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.1008c030
test al, al
je 0x1008c253
mov edx, esi
mov ecx, edi
call fcn.1008c030
lea ecx, [ebp - 0x28]
test al, al
je 0x1008c24c
call fcn.1008c350
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.10006f9d
mov bl, 1
jmp 0x1008c261
mov edx, esi
call fcn.1008c030
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.10006f9d
xor bl, bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.10006f9d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.10006f9d
mov al, bl
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.1009bd8a
mov esp, ebp
pop ebp
ret
Function at 0x1008c350
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b55a0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x100e3008]
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
call fcn.1000848f
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x1008c396
mov al, 1
jmp 0x1008c48a
mov ecx, esi
call fcn.1000848f
push eax
lea ecx, [ebp - 0x28]
call fcn.100084b7
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.1008bf90
mov ebx, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10006f9d
cmp ebx, 0xffffffff
jne 0x1008c3d5
xor al, al
jmp 0x1008c48a
mov ecx, esi
call fcn.1000848f
push eax
lea ecx, [ebp - 0x28]
call fcn.100084b7
mov dword [ebp - 4], 1
xor edx, edx
lea ecx, [ebp - 0x28]
call fcn.1008bed0
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10006f9d
test bl, bl
je 0x1008c3ce
mov ecx, esi
call fcn.1000848f
push eax
call edi
test eax, eax
jne 0x1008c38f
lea ecx, [ebp - 0x28]
call fcn.10006fa2
mov dword [ebp - 4], 2
mov edx, ecx
mov ecx, esi
call fcn.1008cf50
test al, al
je 0x1008c44c
lea ecx, [ebp - 0x28]
call fcn.1000848f
push eax
call edi
test eax, eax
je 0x1008c44c
mov bl, 1
jmp 0x1008c479
mov ecx, esi
call fcn.1000848f
push eax
lea ecx, [ebp - 0x44]
call fcn.100084b7
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x2c]
call fcn.1008bed0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.10006f9d
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10006f9d
mov al, bl
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.1009bd8a
mov esp, ebp
pop ebp
ret
Function at 0x1008c4b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x220
mov eax, dword [0x100e3008]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebp
mov ebp, dword [esp + 0x228]
lea eax, [esp + 0x14]
push esi
push edi
push 0x20c
push 0
push eax
mov esi, edx
mov dword [esp + 0x18], ebp
mov edi, ecx
call fcn.1009e470
add esp, 0xc
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
push 0
call fcn.1000848f
push eax
mov ecx, edi
call fcn.1000848f
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1008c6af
xor eax, eax
lea ecx, [esp + 0x1c]
push ebx
mov word [esp + 0x22a], ax
call fcn.100070e0
mov ecx, ebp
mov ebx, eax
call fcn.10006fc0
mov edi, eax
mov ebp, dword [edi + 0x14]
cmp ebx, ebp
ja 0x1008c569
mov esi, edi
cmp ebp, 8
jb 0x1008c53e
mov esi, dword [edi]
push ebx
lea edx, [esp + 0x24]
mov dword [edi + 0x10], ebx
mov ecx, esi
call fcn.100070b6
add esp, 4
mov dword [esp + 0x10], 0
lea ecx, [esi + ebx*2]
lea edx, [esp + 0x10]
call fcn.100070af
jmp 0x1008c694
call fcn.100071a2
cmp ebx, eax
ja 0x1008c6c9
call fcn.100071a2
mov ecx, ebx
mov esi, eax
or ecx, 7
mov dword [esp + 0x18], ecx
cmp ecx, esi
ja 0x1008c5b8
mov ecx, dword [esp + 0x10]
call fcn.10006fc0
mov edx, dword [eax + 0x14]
mov ecx, edx
shr ecx, 1
mov eax, esi
sub eax, ecx
cmp edx, eax
ja 0x1008c5b8
lea eax, [ecx + edx]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x18]
call fcn.10007090
mov esi, dword [eax]
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x1008c5ca
or ecx, 0xffffffff
jmp 0x1008c5d2
cmp ecx, 0x1000
jb 0x1008c5fb
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.1009bda0
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x1008c6ce
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x1008c60c
test ecx, ecx
je 0x1008c60a
push ecx
call fcn.1009bda0
add esp, 4
jmp 0x1008c60c
xor eax, eax
mov dword [esp + 0x10], eax
lea edx, [esp + 0x20]
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], esi
mov esi, dword [esp + 0x10]
mov ecx, esi
push ebx
call fcn.100070cb
add esp, 4
mov dword [esp + 0x1c], 0
lea ecx, [esi + ebx*2]
lea edx, [esp + 0x1c]
call fcn.100070af
cmp ebp, 8
jb 0x1008c677
mov eax, dword [edi]
lea ecx, [ebp*2 + 2]
cmp ecx, 0x1000
jb 0x1008c665
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008c6ce
mov eax, edx
push ecx
push eax
call fcn.1009c133
mov eax, dword [esp + 0x18]
add esp, 8
mov dword [edi], eax
jmp 0x1008c694
lea ecx, [esp + 0x10]
call fcn.10006fc0
mov ecx, edi
mov esi, eax
call fcn.10006fc0
mov edx, eax
call fcn.100061a1
mov ecx, dword [esi]
mov dword [eax], ecx
pop ebx
pop edi
pop esi
mov al, 1
pop ebp
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.1009bd8a
add esp, 0x220
ret
mov ecx, dword [esp + 0x228]
xor al, al
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.1009bd8a
add esp, 0x220
ret
call fcn.10007160
call fcn.1009fd49
int3
Function at 0x1008d3b0
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b5658
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100e3008]
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 ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x1008d3f9
mov dword [ecx], 0
mov dword [eax], 0
cmp dword [edi], 0xffffffff
je 0x1008d54b
mov eax, dword [ebp + 0xc]
mov ecx, 0x100000
push 0
mov ebx, eax
mov dword [ebp - 0x1c], 0
cmp eax, 0x100000
lea eax, [ebp - 0x1c]
push eax
cmova ebx, ecx
push ebx
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [edi + 0x1c], 0
je 0x1008d516
test eax, eax
je 0x1008d516
mov edx, dword [ebp - 0x1c]
cmp edx, ebx
jae 0x1008d519
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov dword [ebp - 0x24], eax
cmp ecx, 0xffffffff
je 0x1008d49b
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1008d48f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1008d49b
mov eax, dword [ebp - 0x14]
xor ecx, ecx
add ecx, esi
adc eax, 0
jmp 0x1008d4a9
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
push 0
push dword [ebp - 0x24]
push eax
push ecx
sub esp, 0x18
lea eax, [edi + 4]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.1000999b
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x18]
mov esi, dword [ebp - 0x20]
test eax, eax
jne 0x1008d516
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push ebx
add eax, esi
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, eax
xor edx, edx
test ecx, ecx
mov eax, 0x80004005
cmovne eax, edx
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
test ecx, ecx
je 0x1008d454
jmp 0x1008d519
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
add dword [ecx], edx
test eax, eax
jne 0x1008d542
test edx, edx
je 0x1008d53e
mov eax, dword [ebp + 0xc]
add esi, edx
sub eax, edx
mov dword [ebp - 0x20], esi
mov dword [ebp + 0xc], eax
mov ecx, 0x100000
jne 0x1008d410
mov al, 1
jmp 0x1008d54d
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x1008d54b
mov dword [ecx], eax
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.1009bd8a
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10090110
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x10090121
mov dword [esi], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x10], 0
test eax, eax
je 0x10090182
push 0
lea ecx, [ebp + 0x10]
push ecx
mov ecx, 0x8000
cmp eax, ecx
cmovae eax, ecx
push eax
push dword [ebp + 8]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
je 0x1009015b
mov ecx, dword [ebp + 0x10]
add dword [esi], ecx
test eax, eax
jne 0x10090182
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10090173
mov eax, 0x80004005
pop esi
pop ebp
ret 0xc
jle 0x10090184
movzx eax, ax
or eax, 0x80070000
pop esi
pop ebp
ret 0xc
xor eax, eax
pop esi
pop ebp
ret 0xc
Function at 0x10090610
Capabilities:
Check os version
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x100e3008]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
nop word [eax + eax]
movzx ecx, byte [eax + str.cw]
mov byte [ecx + 0x100ec978], al
inc eax
cmp eax, 0x100
jb 0x10090630
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x13c], ebx
movzx edi, byte [ebx + str.cw]
mov eax, edi
and al, 0x80
movzx ecx, al
neg ecx
lea eax, [edi + edi]
sbb ecx, ecx
and ecx, 0x1b
xor ecx, eax
movzx esi, cl
mov ecx, edi
mov edx, esi
shl ecx, 8
xor edx, edi
mov eax, edx
shl eax, 8
or eax, edi
shl eax, 8
or eax, edi
shl eax, 8
or eax, esi
mov dword [ebx*4 + 0x100eca78], eax
mov eax, ecx
or ecx, esi
or eax, edi
shl eax, 8
or eax, esi
shl ecx, 8
or ecx, edx
shl esi, 8
shl ecx, 8
or esi, edx
or ecx, edi
shl eax, 8
mov dword [ebx*4 + 0x100ed278], ecx
or eax, edx
shl esi, 8
or esi, edi
mov dword [ebx*4 + 0x100ece78], eax
shl esi, 8
or esi, edi
mov dword [ebx*4 + 0x100ed678], esi
movzx ebx, byte [ebx + 0x100ec978]
mov eax, ebx
and al, 0x80
movzx ecx, al
neg ecx
lea eax, [ebx + ebx]
sbb ecx, ecx
and ecx, 0x1b
xor ecx, eax
movzx esi, cl
mov eax, esi
and al, 0x80
movzx ecx, al
neg ecx
lea eax, [esi + esi]
sbb ecx, ecx
and ecx, 0x1b
xor ecx, eax
movzx edx, cl
mov eax, edx
and al, 0x80
movzx ecx, al
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x1b
xor ecx, eax
movzx ecx, cl
mov eax, ecx
mov edi, ecx
xor ecx, edx
xor edi, esi
xor eax, ebx
mov dword [ebp - 0x144], ecx
xor edi, ebx
mov dword [ebp - 0x140], eax
xor ecx, ebx
mov ebx, dword [ebp - 0x144]
xor ebx, esi
mov edx, dword [ebp - 0x140]
mov eax, edi
mov esi, dword [ebp - 0x13c]
shl eax, 8
or eax, ecx
shl eax, 8
or eax, edx
shl eax, 8
or eax, ebx
mov dword [esi*4 + 0x100eda78], eax
mov eax, ecx
shl eax, 8
or eax, edx
shl eax, 8
or eax, ebx
shl eax, 8
or eax, edi
mov dword [esi*4 + 0x100ede78], eax
mov eax, edx
shl eax, 8
or eax, ebx
shl ebx, 8
or ebx, edi
shl eax, 8
shl ebx, 8
or eax, edi
or ebx, ecx
shl eax, 8
shl ebx, 8
or eax, ecx
or ebx, edx
mov dword [esi*4 + 0x100ee278], eax
mov dword [esi*4 + 0x100ee678], ebx
mov ebx, esi
inc ebx
mov dword [ebp - 0x13c], ebx
cmp ebx, 0x100
jb 0x10090650
lea eax, [ebp - 0x138]
mov dword [0x100eead4], 0x10091340
push eax
mov dword [0x100eead0], 0x100913d0
mov dword [ebp - 0x138], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
pop edi
pop esi
pop ebx
test eax, eax
je 0x1009081c
cmp dword [ebp - 0x134], 5
jb 0x1009081c
lea ecx, [ebp - 0x24]
call fcn.1008d790
test eax, eax
je 0x1009081c
mov eax, dword [ebp - 0xc]
shr eax, 0x19
and eax, 1
je 0x1009081c
mov dword [0x100eead4], 0x1009b2b0
mov dword [0x100eead0], 0x1009b3f0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009bd8a
mov esp, ebp
pop ebp
ret
Function at 0x10090830
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
xor ecx, ecx
lea esi, [edi + 0x1c]
shr edi, 2
mov eax, edi
mov dword [ebp - 0xc], esi
shr eax, 1
add eax, 3
mov dword [ebx], eax
add ebx, 0x10
mov dword [ebp - 8], ebx
test edi, edi
je 0x1009086d
nop dword [eax]
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [ebx + ecx*4], eax
inc ecx
cmp ecx, edi
jb 0x10090860
cmp ecx, esi
jae 0x1009094a
mov eax, ecx
sub eax, edi
lea esi, [ebx + eax*4]
mov dword [ebp + 8], esi
nop
xor edx, edx
mov ebx, dword [ebx + ecx*4 - 4]
mov eax, ecx
div edi
mov dword [ebp - 4], eax
test edx, edx
jne 0x100908e3
movzx edx, bl
movzx esi, byte [edx + str.cw]
mov edx, ebx
shr edx, 0x18
shl esi, 8
movzx eax, byte [edx + str.cw]
or esi, eax
mov eax, ebx
shr eax, 0x10
movzx eax, al
shl esi, 8
shr ebx, 8
movzx eax, byte [eax + str.cw]
or esi, eax
movzx eax, bl
shl esi, 8
movzx ebx, byte [eax + str.cw]
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x100c0804]
xor ebx, eax
or ebx, esi
mov esi, dword [ebp + 8]
jmp 0x10090930
cmp edi, 6
jbe 0x10090930
cmp edx, 4
jne 0x10090930
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or edx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
movzx eax, bl
shl edx, 8
movzx ebx, byte [eax + str.cw]
or ebx, edx
mov eax, dword [esi]
add esi, 4
xor eax, ebx
mov dword [ebp + 8], esi
mov ebx, dword [ebp - 8]
mov dword [ebx + ecx*4], eax
inc ecx
cmp ecx, dword [ebp - 0xc]
jb 0x10090880
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4