joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100f7da0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x101660c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.10159bf6
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov ecx, esi
mov dword [esp + 0x44], 0
call fcn.100f7ce0
mov ecx, dword [esi + 0x174]
mov eax, dword [esi + 0x178]
add ecx, 0x64
add eax, 0x64
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.10159b24
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x100f7e67
cmp dword [esp + 0x40], 1
jne 0x100f7e65
cmp ecx, eax
jge 0x100f7e67
mov eax, ecx
cmp eax, 0x12c
jge 0x100f7e73
mov eax, 0x12c
mov ecx, esi
mov dword [esi + 0x194], eax
mov dword [esi + 0x1dc], 1
call fcn.100f7ec0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.10159c68
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x100fc020
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x101664b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x10296458]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xb0], ebx
call fcn.101551f3
mov edx, dword [0x10296458]
mov dword [esp + 0x3c], edx
cmp esi, ebx
mov byte [esp + 0xac], 1
jne 0x100fc07a
mov dword [esp + 0x1c], ebx
jmp 0x100fc081
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x1c], eax
push edi
mov ecx, esi
call fcn.10157468
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x40]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edx
call fcn.10152e97
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x1c], ecx
jne 0x100fc0d2
mov dword [esp + 0x14], ebx
jmp 0x100fc0d9
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x14], edx
cmp dword [esi + 0x44], 0xd
jne 0x100fc0f4
mov eax, dword [eax + 0x3c8]
cmp eax, edi
je 0x100fc0ee
cmp eax, 2
jne 0x100fc0f4
mov dword [esp + 0x18], edi
jmp 0x100fc0f8
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x100fc106
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.10154829
mov edi, eax
cmp edi, ebx
jne 0x100fc116
xor eax, eax
jmp 0x100fc119
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x100fc141
mov ecx, esi
call fcn.10157468
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov eax, dword [esp + 0x1c]
push eax
call ebx
test eax, eax
pop edi
je 0x100fc15d
mov ecx, dword [esi + 0x1c]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100fc17c
mov esi, dword [esp + 0x10]
push esi
call ebx
test eax, eax
je 0x100fc17c
push 1
push 0xd
push 0x100
push esi
call ebp
lea ecx, [esp + 0x3c]
mov byte [esp + 0xac], 0
call fcn.10152daa
lea ecx, [esp + 0xc]
mov dword [esp + 0xac], 0xffffffff
call fcn.10152daa
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x100fc310
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101664d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.101543fe
mov dword [esi], method.CButton.virtual_0
mov eax, dword [0x10296458]
lea ecx, [esi + 0x44]
xor edi, edi
mov dword [esp + 0x2c], edi
mov dword [ecx], eax
mov ebx, dword [esp + 0x34]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
push ebx
mov byte [esp + 0x30], 1
mov dword [esi], method.CButton.virtual_0
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], eax
call fcn.10152ee7
mov ecx, dword [esp + 0x40]
mov dword [esi + 0x50], edi
mov edi, dword [esp + 0x3c]
mov dword [esi + 0x48], 0x102e26e0
mov dword [esi + 0x4c], ecx
mov ecx, dword [esp + 0x38]
mov edx, dword [edi + 0xc]
mov eax, dword [edi + 4]
mov edi, dword [edi + 8]
mov ebp, edx
sub ebp, eax
or ecx, 0x50000000
cmp ebp, 0x14
jle 0x100fc3b9
mov dword [esp + 0x18], eax
lea edx, [edi - 0x14]
add eax, 0x14
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], eax
jmp 0x100fc3cf
mov ebp, edi
mov dword [esp + 0x1c], edi
sub ebp, edx
mov dword [esp + 0x18], eax
add ebp, eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push eax
lea eax, [esp + 0x18]
push edx
push eax
push ecx
push ebx
mov ecx, esi
call fcn.1015bb92
test eax, eax
je 0x100fc3f2
mov ecx, esi
call fcn.1015757c
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x1c
Function at 0x100fce50
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x101664b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x10296458]
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], eax
lea ecx, [esp + 8]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xac], ebx
call fcn.101551f3
cmp dword [0x102e26e8], ebx
je 0x100fcec0
lea ecx, [esp + 8]
mov dword [esp + 0xa8], 0xffffffff
call fcn.10152daa
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
add esp, 0xa4
ret
mov edx, dword [0x10296458]
push ebp
push edi
mov edi, 1
mov dword [0x102e26e8], edi
mov dword [esp + 0x40], edx
cmp esi, ebx
mov byte [esp + 0xb0], 1
jne 0x100fcee9
mov dword [esp + 0x20], ebx
jmp 0x100fcef0
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x20], eax
mov ecx, esi
call fcn.10157468
mov ecx, dword [esi + 0x84]
mov edx, dword [esi + 0x88]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], 5
mov dword [esp + 0x34], edx
call fcn.10152e97
mov eax, dword [esi + 0x9c]
mov ecx, dword [esi + 0x94]
mov edx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x1c], edx
jne 0x100fcf4e
mov dword [esp + 0x14], ebx
jmp 0x100fcf55
mov ebp, dword [eax + 0x1c]
mov dword [esp + 0x14], ebp
cmp ecx, 0xd
jne 0x100fcf6f
mov eax, dword [eax + 0x3c8]
cmp eax, edi
je 0x100fcf69
cmp eax, 2
jne 0x100fcf6f
mov dword [esp + 0x18], edi
jmp 0x100fcf73
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x100fcf81
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.10154829
mov edi, eax
cmp edi, ebx
jne 0x100fcf91
xor eax, eax
jmp 0x100fcf94
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x100fcfbc
mov ecx, esi
call fcn.10157468
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov esi, dword [esp + 0x1c]
push esi
call ebx
test eax, eax
je 0x100fcfd4
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x18]
mov dword [0x102e26e8], 0
test eax, eax
je 0x100fcffd
mov esi, dword [esp + 0x14]
push esi
call ebx
test eax, eax
je 0x100fcffd
push 1
push 0xd
push 0x100
push esi
call ebp
lea ecx, [esp + 0x40]
mov byte [esp + 0xb0], 0
call fcn.10152daa
lea ecx, [esp + 0x10]
mov dword [esp + 0xb0], 0xffffffff
call fcn.10152daa
mov ecx, dword [esp + 0xa8]
pop edi
pop ebp
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x100fd180
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101665c7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
xor ebx, ebx
mov dword [esp + 0x1c], ebx
call fcn.101543fe
mov dword [esi], method.CEdit.virtual_0
mov eax, dword [0x10296458]
lea edi, [esi + 0x44]
mov dword [edi], eax
mov dword [esi + 0xac], ebx
mov dword [esi + 0xa8], 0x101893c0
mov dword [esi + 0xbc], ebx
mov dword [esi + 0xb8], 0x10187160
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1c], 4
push ecx
mov ecx, edi
mov dword [esi], method.CEdit.virtual_0
call fcn.10152e97
mov edx, dword [esp + 0x34]
mov dword [esi + 0x48], ebx
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
xor ecx, ecx
cmp ebx, 1
mov ebx, dword [esp + 0x24]
mov dword [esi + 0x3c], edx
mov edx, dword [esp + 0x44]
mov dword [esi + 0x40], eax
setne cl
mov dword [esi + 0x4c], ecx
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x60], edx
mov edx, ecx
mov dword [esi + 0x64], ebx
lea eax, [esi + 0x50]
mov ebp, dword [edx]
mov dword [eax], ebp
mov ebp, dword [edx + 4]
mov dword [eax + 4], ebp
mov ebp, dword [edx + 8]
mov dword [eax + 8], ebp
mov edx, dword [edx + 0xc]
mov dword [esi + 0x68], 0
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push edx
or eax, 0x50801084
push ebx
push ecx
push eax
mov ecx, esi
call fcn.1015bd68
test eax, eax
je 0x100fd35d
mov eax, dword [ebx + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x31
push eax
call ebx
push eax
call fcn.10159e89
test eax, eax
je 0x100fd285
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0x1c]
push 1
push eax
push 0x30
push ecx
call ebx
mov edx, dword [esp + 0x3c]
mov ecx, esi
push edx
call fcn.10157426
mov ecx, esi
call fcn.1015757c
mov ebp, dword [esp + 0x40]
lea eax, [ebp - 1]
cmp eax, 0x27
ja case.0x100fd2b7.4
xor ecx, ecx
mov cl, byte [eax + 0x100fd398]
jmp dword [ecx*4 + 0x100fd388]
mov edi, dword [edi]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esi + 0x1c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0xffffffffffffffff
push ecx
push 0xb1
push edx
call ebx
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
jmp 0x100fd35b
mov edi, dword [edi]
or ecx, 0xffffffff
xor eax, eax
push 0xffffffffffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esi + 0x1c]
push 0xb1
push ecx
call ebx
mov edx, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push edx
jmp 0x100fd346
mov eax, dword [esi + 0x1c]
push 0xffffffffffffffff
push 0
push 0xb1
push eax
call ebx
push 0
push 0
push 0xb7
jmp 0x100fd357
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
push 0
push 0xb1
push edx
call ebx
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebx
push 0
push ebp
mov dword [esi + 0x68], 1
push 0x102
mov ecx, dword [esi + 0x1c]
push ecx
call ebx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1c], 0xffffffff
call fcn.10152daa
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x24
Function at 0x10102ba0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x10102be7
mov edi, dword [esp + 0x10]
push edi
call fcn.10152aeb
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
mov dword [esi + 0xa8], eax
mov eax, dword [esi + 0xa4]
mov ecx, dword [ecx]
push eax
push edi
push 1
push ecx
call fcn.1011b401
sub eax, edi
add esp, 0x14
neg eax
sbb eax, eax
pop edi
and eax, 0x21
pop esi
ret 0xc
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x10102c1b
mov eax, dword [esi + 0x18]
test eax, eax
je 0x10102c1b
mov edx, dword [ecx]
call dword [edx + 0x40]
test al, al
je 0x10102c05
mov eax, dword [esi + 0x7c]
test eax, eax
jg 0x10102c1b
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.10102ce0
pop edi
pop esi
ret 0xc
mov ecx, dword [esi + 0x18]
push ebx
mov edx, dword [ecx]
call dword [edx + 0x18]
mov ecx, dword [esi + 0x14]
mov edi, eax
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ebx, eax
cmp ebx, 0x5a
jle 0x10102c4e
cmp edi, 0x5a
jle 0x10102c4e
mov ecx, dword [esi + 0x2c]
mov edx, dword [ecx]
call dword [edx + 0x44]
test al, al
je 0x10102c4e
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov eax, dword [esi + 0x7c]
imul eax, dword [esi + 0x3c]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
and edx, 0x1fff
add eax, edx
mov edi, eax
mov eax, dword [esi + 0x40]
sar edi, 0xd
cmp edi, eax
jbe 0x10102c7d
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov al, byte [esp + 0x18]
test al, al
je 0x10102cc3
cmp ebx, 1
jge 0x10102cc3
mov ecx, dword [esi + 0x18]
mov edx, edi
shr edx, 1
cmp dword [ecx + 0xc], edx
jae 0x10102cc3
mov al, byte [esi + 0x1d]
test al, al
jne 0x10102cc3
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call ebx
mov ecx, dword [esi + 0x18]
cmp dword [ecx + 0xc], edi
jae 0x10102cc3
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, 0x5a
jg 0x10102cc3
mov al, byte [esi + 0x1d]
test al, al
je 0x10102ca3
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.10102ce0
pop ebx
pop edi
pop esi
ret 0xc

Function at 0x10103ea0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, ecx
mov al, byte [ebp + 0x24]
test al, al
jne 0x10103ec7
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
push ecx
push 1
push edx
call fcn.1011b401
add esp, 0x10
pop ebp
ret 0xc
push ebx
push esi
mov esi, dword [esp + 0x18]
push edi
push esi
call fcn.1011b682
mov ebx, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esp + 0x1c]
push esi
push eax
push 1
push ebx
call fcn.1011b401
mov esi, eax
add esp, 0x14
test esi, esi
jbe 0x10103efb
push esi
push ebx
push edi
mov ecx, ebp
call fcn.10104050
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x10103f10
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x102ee888]
xor edx, edx
cmp eax, edx
jne 0x10103f36
xor eax, eax
mov byte [eax + 0x102ee788], al
inc eax
cmp eax, 0x100
jl 0x10103f1e
mov dword [0x102ee888], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x102ee788
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x10103fc7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x10103f9a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x10103f68
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x10103fd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x10104023
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x1010400a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1010a9c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1016691e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.1010b2e0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x1018dec8
call fcn.10152aeb
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x1010aa53
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10152aeb
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x1010aa4c
push 0
mov ecx, eax
call fcn.10101b40
mov dword [esi + 0xc], eax
jmp 0x1010aa55
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x1010aa55
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x10124d93
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10297e14]
jne 0x10124d9d
repz ret
jmp fcn.1012c729
Function at 0x1012d9b9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10297e14]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1011f8f7
and dword [ebp - 0x14], 0
cmp dword [0x10301478], 0
mov dword [ebp - 0x18], eax
jne 0x1012da6c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1012db14
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1012db14
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x101971dc
push ebx
mov dword [0x10301478], eax
call edi
push eax
call esi
push 0x101971c8
push ebx
mov dword [0x1030147c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10301480], eax
call edi
push eax
call esi
mov dword [0x10301488], eax
test eax, eax
je 0x1012da6c
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10301484], eax
mov eax, dword [0x10301484]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1012dac5
cmp dword [0x10301488], ecx
je 0x1012dac5
push eax
call esi
push dword [0x10301488]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1012dac5
test ebx, ebx
je 0x1012dac5
call edi
test eax, eax
je 0x1012dabc
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1012dabc
test byte [ebp - 8], 1
jne 0x1012dac5
or dword [ebp + 0x10], 0x200000
jmp 0x1012daf8
mov eax, dword [0x1030147c]
cmp eax, dword [ebp - 0x18]
je 0x1012daf8
push eax
call esi
test eax, eax
je 0x1012daf8
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1012daf8
mov eax, dword [0x10301480]
cmp eax, dword [ebp - 0x18]
je 0x1012daf8
push eax
call esi
test eax, eax
je 0x1012daf8
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10301478]
call esi
test eax, eax
je 0x1012db14
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1012db16
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10124d93
leave
ret
Function at 0x10133bbe
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x10133cdf
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x10133cc3
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x10133c15
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x10133bf3
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18

Function at 0x10134727
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1013477e
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x1013477e
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x1013477e
xor eax, eax
inc eax
jmp 0x10134780
xor eax, eax
leave
ret 0x10