joyce8/EMBER2024-capa huggingface dataset:
Function at 0x104f5fe
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ecx + 4]
push ebx
mov dword [ebp - 0x28], ecx
mov ecx, dword [ecx]
mov ebx, dword [ecx + 0x18]
push esi
mov esi, dword [eax + 0x18]
mov eax, dword [ecx + 0x105c]
imul eax, dword [ecx + 0x1050]
add eax, ebx
cmp ebx, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x2c], eax
jae 0x104f733
mov eax, 0x83e0
mov edx, 0x7c1f
push edi
mov edi, dword [ecx + 0x1050]
mov ecx, dword [ecx + 0x1058]
lea ecx, [ebx + ecx*2]
add edi, ebx
cmp ebx, ecx
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x24], ecx
jae 0x104f709
movzx ecx, word [ebx + 2]
movzx esi, word [edi + 2]
mov dword [ebp - 8], ecx
movzx ecx, word [edi]
movzx edi, word [ebx]
mov dword [ebp - 4], ecx
mov ebx, edi
and ebx, eax
mov ecx, esi
and ecx, eax
add ecx, ebx
mov ebx, dword [ebp - 4]
and ebx, eax
add ecx, ebx
mov ebx, dword [ebp - 8]
and ebx, eax
lea ebx, [ecx + ebx + 0x10040]
mov dword [ebp - 0x20], edi
and edi, edx
mov ecx, esi
and ecx, edx
add ecx, edi
mov edi, dword [ebp - 4]
and edi, edx
add ecx, edi
mov edi, dword [ebp - 8]
and edi, edx
lea ecx, [ecx + edi + 0x802]
shr ecx, 2
mov edi, dword [ebp - 0x14]
shr ebx, 2
xor ebx, ecx
mov ecx, dword [ebp - 0x20]
and ecx, eax
and esi, eax
add esi, ecx
mov ecx, dword [ebp - 4]
and ecx, eax
add esi, ecx
mov ecx, dword [ebp - 8]
and bx, dx
and ecx, eax
lea ecx, [esi + ecx + 0x10040]
shr ecx, 2
add edi, 4
mov dword [ebp - 0x14], edi
xor ebx, ecx
mov ecx, dword [ebp - 0xc]
add dword [ebp - 0xc], 2
mov word [ecx], bx
mov ebx, dword [ebp - 0x10]
add ebx, 4
cmp ebx, dword [ebp - 0x24]
mov dword [ebp - 0x10], ebx
jb 0x104f666
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
mov edi, dword [ecx + 4]
mov esi, dword [ebp - 0x18]
add esi, dword [edi + 0x1050]
mov ecx, dword [ecx]
mov edi, dword [ecx + 0x1050]
lea ebx, [ebx + edi*2]
cmp ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
jb 0x104f641
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x104f73e
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, ecx
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x18]
push ebx
mov ebx, dword [edx + 0x18]
push esi
mov esi, dword [edx + 0x105c]
imul esi, dword [edx + 0x1050]
add esi, ebx
cmp ebx, esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], esi
jae 0x104f881
mov eax, 0xf0f0
push edi
mov edi, dword [edx + 0x1050]
mov edx, dword [edx + 0x1058]
lea edx, [ebx + edx*2]
add edi, ebx
cmp ebx, edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x20], edx
jae 0x104f85b
movzx ecx, word [edi]
movzx edx, word [edi + 2]
movzx esi, word [ebx + 2]
mov dword [ebp - 4], ecx
movzx ecx, word [ebx]
mov ebx, ecx
and bx, ax
mov edi, edx
and di, ax
mov dword [ebp - 0x1c], ecx
and ecx, 0xffff0f0f
add edi, ebx
mov ebx, dword [ebp - 4]
and bx, ax
add edi, ebx
mov ebx, esi
and bx, ax
lea edi, [edi + ebx + 0x2020]
mov ebx, edx
and ebx, 0xffff0f0f
add ebx, ecx
mov ecx, dword [ebp - 4]
and ecx, 0xffff0f0f
add ebx, ecx
mov ecx, esi
and ecx, 0xffff0f0f
lea ecx, [ebx + ecx + 0x202]
mov ebx, dword [ebp - 0xc]
shr ecx, 2
shr edi, 2
xor edi, ecx
mov ecx, dword [ebp - 0x1c]
and ecx, eax
and edx, eax
add edx, ecx
mov ecx, dword [ebp - 4]
and ecx, eax
add edx, ecx
and esi, eax
and edi, 0xffff0f0f
lea ecx, [edx + esi + 0x2020]
shr ecx, 2
xor edi, ecx
mov ecx, dword [ebp - 8]
add dword [ebp - 8], 2
mov word [ecx], di
mov edi, dword [ebp - 0x10]
add ebx, 4
add edi, 4
cmp ebx, dword [ebp - 0x20]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
jb 0x104f7a3
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov edi, dword [edx + 4]
add ecx, dword [edi + 0x1050]
mov edx, dword [edx]
mov edi, dword [edx + 0x1050]
lea ebx, [ebx + edi*2]
cmp ebx, esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
jb 0x104f77e
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x104f88c
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, ecx
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x18]
push ebx
push edi
mov dword [ebp - 0x28], eax
mov eax, dword [eax]
mov edi, dword [eax + 0x105c]
imul edi, dword [eax + 0x1050]
mov ebx, dword [eax + 0x18]
add edi, ebx
cmp ebx, edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], edi
jae 0x104f9b6
push esi
mov esi, 0xe3
mov edx, dword [eax + 0x1050]
mov eax, dword [eax + 0x1058]
add eax, ebx
add edx, ebx
cmp ebx, eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x20], eax
jae 0x104f990
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
movzx edi, byte [ebx + 1]
mov dword [ebp - 4], ecx
movzx ecx, byte [ebx]
mov ebx, ecx
and ebx, 0x1c
mov edx, eax
and edx, 0x1c
add edx, ebx
mov ebx, dword [ebp - 4]
and ebx, 0x1c
add edx, ebx
mov dword [ebp - 0x1c], ecx
and cx, si
mov ebx, edi
and ebx, 0x1c
lea edx, [edx + ebx + 8]
mov ebx, eax
and bx, si
shr edx, 2
and ax, si
add ebx, ecx
mov ecx, dword [ebp - 4]
and cx, si
add ebx, ecx
mov ecx, edi
and cx, si
and di, si
lea ecx, [ebx + ecx + 0x42]
shr ecx, 2
xor dl, cl
mov ecx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0xc]
and cx, si
and dl, 0x1c
add eax, ecx
mov ecx, dword [ebp - 4]
and cx, si
add eax, ecx
lea eax, [eax + edi + 0x42]
shr eax, 2
xor dl, al
mov eax, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [eax], dl
mov edx, dword [ebp - 0x10]
inc ebx
inc ebx
inc edx
inc edx
cmp ebx, dword [ebp - 0x20]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edx
jb 0x104f8f0
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 4]
add ecx, dword [edx + 0x1050]
mov eax, dword [eax]
mov edx, dword [eax + 0x1050]
lea ebx, [ebx + edx*2]
cmp ebx, edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
jb 0x104f8cc
pop esi
pop edi
xor eax, eax
pop ebx
leave
ret
Function at 0x104fa64
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov eax, ecx
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x18]
push esi
mov esi, dword [eax]
mov ebx, dword [esi + 0x18]
push edi
mov edi, dword [esi + 0x105c]
imul edi, dword [esi + 0x1050]
add edi, ebx
cmp ebx, edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], edi
jae 0x104fb9d
mov eax, 0xff1c
mov edx, dword [esi + 0x1050]
mov esi, dword [esi + 0x1058]
lea esi, [ebx + esi*2]
add edx, ebx
cmp ebx, esi
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x20], esi
jae 0x104fb78
movzx esi, word [edx + 2]
movzx ecx, word [edx]
movzx edx, word [ebx]
movzx edi, word [ebx + 2]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov ebx, esi
mov ecx, 0xe3
and dx, cx
and bx, cx
add ebx, edx
mov edx, dword [ebp - 4]
and dx, cx
add ebx, edx
mov edx, edi
and dx, cx
mov ecx, esi
and cx, ax
and esi, eax
lea edx, [ebx + edx + 0x42]
mov ebx, dword [ebp - 0xc]
and bx, ax
shr edx, 2
add ecx, ebx
mov ebx, dword [ebp - 4]
and bx, ax
add ecx, ebx
mov ebx, edi
and bx, ax
and edi, eax
lea ecx, [ecx + ebx + 0x208]
mov ebx, dword [ebp - 0x10]
shr ecx, 2
xor dl, cl
mov ecx, dword [ebp - 0xc]
and ecx, eax
add esi, ecx
mov ecx, dword [ebp - 4]
and ecx, eax
add esi, ecx
and edx, 0xffff00e3
lea ecx, [esi + edi + 0x208]
shr ecx, 2
xor edx, ecx
mov ecx, dword [ebp - 8]
add dword [ebp - 8], 2
mov word [ecx], dx
mov edx, dword [ebp - 0x14]
add ebx, 4
add edx, 4
cmp ebx, dword [ebp - 0x20]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edx
jb 0x104fac9
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov esi, dword [edx + 4]
add ecx, dword [esi + 0x1050]
mov esi, dword [edx]
mov edx, dword [esi + 0x1050]
lea ebx, [ebx + edx*2]
cmp ebx, edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ebx
jb 0x104faa4
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x104fcc9
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov eax, ecx
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x18]
push esi
mov esi, dword [eax]
mov ebx, dword [esi + 0x18]
push edi
mov edi, dword [esi + 0x105c]
imul edi, dword [esi + 0x1050]
add edi, ebx
cmp ebx, edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], edi
jae 0x104fe02
mov eax, 0xff00
mov edx, dword [esi + 0x1050]
mov esi, dword [esi + 0x1058]
lea esi, [ebx + esi*2]
add edx, ebx
cmp ebx, esi
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x20], esi
jae 0x104fddd
movzx esi, word [edx + 2]
movzx ecx, word [edx]
movzx edx, word [ebx]
movzx edi, word [ebx + 2]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov ebx, esi
mov ecx, 0xff
and dx, cx
and bx, cx
add ebx, edx
mov edx, dword [ebp - 4]
and dx, cx
add ebx, edx
mov edx, edi
and dx, cx
mov ecx, esi
and cx, ax
and esi, eax
lea edx, [ebx + edx + 2]
mov ebx, dword [ebp - 0xc]
and bx, ax
shr edx, 2
add ecx, ebx
mov ebx, dword [ebp - 4]
and bx, ax
add ecx, ebx
mov ebx, edi
and bx, ax
and edi, eax
lea ecx, [ecx + ebx + 0x200]
mov ebx, dword [ebp - 0x10]
shr ecx, 2
xor dl, cl
mov ecx, dword [ebp - 0xc]
and ecx, eax
add esi, ecx
mov ecx, dword [ebp - 4]
and ecx, eax
add esi, ecx
and edx, 0xffff00ff
lea ecx, [esi + edi + 0x200]
shr ecx, 2
xor edx, ecx
mov ecx, dword [ebp - 8]
add dword [ebp - 8], 2
mov word [ecx], dx
mov edx, dword [ebp - 0x14]
add ebx, 4
add edx, 4
cmp ebx, dword [ebp - 0x20]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edx
jb 0x104fd2e
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov esi, dword [edx + 4]
add ecx, dword [esi + 0x1050]
mov esi, dword [edx]
mov edx, dword [esi + 0x1050]
lea ebx, [ebx + edx*2]
cmp ebx, edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ebx
jb 0x104fd09
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x104fe0e
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, ecx
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x18]
push ebx
push edi
mov dword [ebp - 0x28], eax
mov eax, dword [eax]
mov edi, dword [eax + 0x105c]
imul edi, dword [eax + 0x1050]
mov ebx, dword [eax + 0x18]
add edi, ebx
cmp ebx, edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], edi
jae 0x104ff38
push esi
mov esi, pe_nt_image_headers32
mov edx, dword [eax + 0x1050]
mov eax, dword [eax + 0x1058]
add eax, ebx
add edx, ebx
cmp ebx, eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x20], eax
jae 0x104ff12
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
movzx edi, byte [ebx + 1]
mov dword [ebp - 4], ecx
movzx ecx, byte [ebx]
mov ebx, ecx
and ebx, 0xf
mov edx, eax
and edx, 0xf
add edx, ebx
mov ebx, dword [ebp - 4]
and ebx, 0xf
add edx, ebx
mov dword [ebp - 0x1c], ecx
and cx, si
mov ebx, edi
and ebx, 0xf
lea edx, [edx + ebx + 2]
mov ebx, eax
and bx, si
shr edx, 2
and ax, si
add ebx, ecx
mov ecx, dword [ebp - 4]
and cx, si
add ebx, ecx
mov ecx, edi
and cx, si
and di, si
lea ecx, [ebx + ecx + 0x20]
shr ecx, 2
xor dl, cl
mov ecx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0xc]
and cx, si
and dl, 0xf
add eax, ecx
mov ecx, dword [ebp - 4]
and cx, si
add eax, ecx
lea eax, [eax + edi + 0x20]
shr eax, 2
xor dl, al
mov eax, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [eax], dl
mov edx, dword [ebp - 0x10]
inc ebx
inc ebx
inc edx
inc edx
cmp ebx, dword [ebp - 0x20]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edx
jb 0x104fe72
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 4]
add ecx, dword [edx + 0x1050]
mov eax, dword [eax]
mov edx, dword [eax + 0x1050]
lea ebx, [ebx + edx*2]
cmp ebx, edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
jb 0x104fe4e
pop esi
pop edi
xor eax, eax
pop ebx
leave
ret
Function at 0x1057b0d
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x1084428]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, esi
push edi
mov dword [ebp - 4], eax
mov edi, ecx
mov dword [ebp - 0x9c], ebx
jne 0x1057b3e
mov eax, 0x8876086c
jmp 0x1057c3e
cmp dword [ebp + 0xc], esi
je 0x1057bd8
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
je 0x1057bba
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push esi
call ebx
mov dword [ebp - 0xa4], eax
add eax, 3
and eax, 0xfffffffc
call fcn.010129e0
mov dword [ebp - 0xa0], esp
push esi
push esi
push dword [ebp - 0xa4]
push dword [ebp - 0xa0]
push 0xffffffffffffffff
push dword [ebp - 0x9c]
push esi
push esi
call ebx
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x9c], eax
mov dword [ebp + 0xc], esi
mov ebx, eax
cmp dword [ebp + 0xc], esi
je 0x1057bd8
push esi
push 0x10000000
push 3
push esi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x1057bef
push esi
push 0x10000000
push 3
push esi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [edi], eax
je 0x1057c2f
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
mov dword [edi + 4], eax
je 0x1057c2f
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [edi + 8], eax
je 0x1057c2f
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [edi + 0xc], eax
jne 0x1057c3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x88760b59
jmp 0x1057c3e
xor eax, eax
lea esp, [ebp - 0xb0]
mov ecx, dword [ebp - 4]
call fcn.010123a2
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1058c37
Capabilities:
Check for software breakpoints

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x1058c6b
push esi
call fcn.010699ec
cmp byte [esi + 0x40], 0
pop ecx
je 0x1058c64
mov dword [esi + 0x10], 0xcf
mov al, 1
jmp 0x1058cfb
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x1058cd8
mov eax, dword [esi + 0x18c]
cmp byte [eax + 0x10], 0
je 0x1058ccd
mov eax, dword [esi + 8]
test eax, eax
je 0x1058c8c
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x18c]
push esi
call dword [eax]
test eax, eax
pop ecx
je 0x1058cc9
cmp eax, 2
je 0x1058ccd
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1058c81
cmp eax, 3
je 0x1058cb0
cmp eax, 1
jne 0x1058c81
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x1058c81
mov ecx, dword [esi + 0x118]
add dword [eax + 8], ecx
jmp 0x1058c81
xor al, al
jmp 0x1058cfb
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
jmp 0x1058cf6
cmp eax, 0xcc
je 0x1058cf6
mov eax, dword [esi]
mov dword [eax + 0x14], 0x12
mov eax, dword [esi]
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
push esi
call dword [eax]
pop ecx
call fcn.01058afa
pop esi
pop ebp
ret

Function at 0x106b440
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x106b450
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 0x10]
cmp eax, 8
push ebx
push esi
mov esi, dword [ebp + 8]
not esi
mov ecx, 0xff
jb 0x106b511
push edi
mov edi, eax
shr edi, 3
xor ebx, ebx
mov bl, byte [edx]
sub eax, 8
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x1008e98]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x1008e98]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x1008e98]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x1008e98]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x1008e98]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x1008e98]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x1008e98]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x1008e98]
inc edx
dec edi
jne 0x106b46e
pop edi
test eax, eax
je 0x106b52b
xor ebx, ebx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x1008e98]
inc edx
dec eax
jne 0x106b515
mov eax, esi
pop esi
not eax
pop ebx
pop ebp
ret
Function at 0x10780a4
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x1084428]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
push 4
pop eax
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0xf8], eax
xor eax, eax
lea edi, [ebp - 0xdc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edi, [ebp - 0xec]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xf8]
push eax
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0xf4]
push eax
xor edi, edi
push edi
push 0x1009efc
push ecx
mov dword [ebp - 0x110], esi
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0x108], 0x10
call ebx
cmp dword [esi + 0x1730], edi
mov dword [ebp - 0xfc], edi
jbe 0x10782e8
lea eax, [esi + 0x570]
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0x100]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x10782c6
mov eax, dword [esi + eax*4 + 0x232c]
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0xfc]
inc eax
push eax
lea eax, [ebp - 0xcc]
push 0x1009ee8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push edi
lea eax, [ebp - 0xf0]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10782c6
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0xf4]
push eax
push edi
push 0x1009ed0
push dword [ebp - 0xf0]
call ebx
mov esi, dword [ebp - 0x104]
lea eax, [ebp - 0xf8]
push eax
lea eax, [esi + 0x2a58]
push eax
lea eax, [ebp - 0xf4]
push eax
push edi
push 0x1009eb8
push dword [ebp - 0xf0]
call ebx
push 4
lea edi, [esi + 0x41c]
pop ecx
lea esi, [ebp - 0xdc]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x107821e
push 4
pop ecx
lea edi, [ebp - 0xec]
lea esi, [ebp - 0xdc]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x10782b2
mov esi, dword [ebp - 0x104]
lea eax, [ebp - 0xf8]
push eax
lea eax, [esi + 0x2a5c]
push eax
lea eax, [ebp - 0xf4]
push eax
xor edi, edi
push edi
push 0x1009e94
push dword [ebp - 0xf0]
call ebx
lea eax, [ebp - 0xf8]
push eax
lea eax, [esi + 0x2a4c]
push eax
lea eax, [ebp - 0xf4]
push eax
push edi
push 0x1009e88
push dword [ebp - 0xf0]
call ebx
lea eax, [ebp - 0xf8]
push eax
lea eax, [esi + 0x2a50]
push eax
lea eax, [ebp - 0xf4]
push eax
push edi
push 0x1009e78
push dword [ebp - 0xf0]
call ebx
lea eax, [ebp - 0xf8]
push eax
add esi, 0x2a54
push esi
lea eax, [ebp - 0xf4]
push eax
push edi
push 0x1009e68
push dword [ebp - 0xf0]
call ebx
push dword [ebp - 0xf0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x110]
xor edi, edi
inc dword [ebp - 0xfc]
mov eax, dword [ebp - 0xfc]
add dword [ebp - 0x100], 0x234
cmp eax, dword [esi + 0x1730]
jb 0x107813d
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010123a2
leave
ret 4
Function at 0x10782fc
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x1084428]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
push 4
mov ebx, ecx
lea ecx, [ebx + 8]
push ecx
push 4
xor edi, edi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x1009efc
push eax
mov dword [ebp - 0xdc], eax
call esi
cmp dword [ebx + 0x1730], edi
mov dword [ebp - 0xd4], edi
jbe 0x1078481
lea eax, [ebx + 0x570]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xd8]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x107845f
mov edi, dword [ebx + eax*4 + 0x232c]
mov eax, dword [ebp - 0xd4]
inc eax
push eax
lea eax, [ebp - 0xcc]
push 0x1009ee8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
xor eax, eax
push eax
lea ecx, [ebp - 0xd0]
push ecx
push eax
push 0xf003f
push eax
push eax
push eax
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0xdc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x107845f
push 4
lea eax, [edi + 0x2a58]
push eax
push 4
push 0
push 0x1009eb8
push dword [ebp - 0xd0]
call esi
push 4
lea eax, [edi + 0x2a5c]
push eax
push 4
push 0
push 0x1009e94
push dword [ebp - 0xd0]
call esi
push 4
lea eax, [edi + 0x2a4c]
push eax
push 4
push 0
push 0x1009e88
push dword [ebp - 0xd0]
call esi
push 4
lea eax, [edi + 0x2a50]
push eax
push 4
push 0
push 0x1009e78
push dword [ebp - 0xd0]
call esi
push 4
lea eax, [edi + 0x2a54]
push eax
push 4
push 0
push 0x1009e68
push dword [ebp - 0xd0]
call esi
push 0x10
add edi, 0x41c
push edi
push 3
push 0
push 0x1009ed0
push dword [ebp - 0xd0]
call esi
push dword [ebp - 0xd0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0xd4]
mov eax, dword [ebp - 0xd4]
add dword [ebp - 0xd8], 0x234
cmp eax, dword [ebx + 0x1730]
jb 0x1078354
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010123a2
leave
ret 4
Function at 0x107a0c2
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0xfffffffffffffff1
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [ebp + 8]
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
mov ecx, esi
call fcn.01076ff4
mov ecx, esi
mov dword [esi + 4], eax
call fcn.01076e7a
mov eax, dword [esi + 4]
xor edi, edi
inc edi
xor ebx, ebx
cmp eax, edi
je 0x107a112
cmp eax, 3
je 0x107a112
cmp eax, 2
jne 0x107a123
mov ecx, esi
call fcn.01078959
cmp eax, ebx
jge 0x107a123
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], eax
cmp dword [esi + 4], edi
jne 0x107a172
push ebx
push ebx
push 0x400
push dword [esi + 0xc]
mov dword [esi + 0x18], edi
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x107a164
push ebx
push ebx
push dword [esi + 0xc]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x107a16b
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [esi + 0x18], ebx
jne 0x107a13d
jmp 0x107a172
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 0xdc
call sub.d3d8.dll_Direct3DCreate8
cmp eax, ebx
mov dword [esi + 0x2354], eax
jne 0x107a192
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], 0x82000001
jmp 0x107a1f1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
cmp eax, ebx
jl 0x107a1a8
mov ecx, esi
call fcn.010792ea
cmp eax, ebx
jge 0x107a1b0
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], eax
jmp 0x107a1f1
xor edx, edx
cmp dword [esi + 0x2350], ebx
jbe 0x107a1de
lea ecx, [esi + 0x232c]
mov eax, dword [ecx]
cmp dword [eax + 0x2a40], ebx
jne 0x107a1ea
cmp dword [eax + 0x2a48], ebx
jne 0x107a1ea
inc edx
add ecx, 4
cmp edx, dword [esi + 0x2350]
jb 0x107a1c0
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], 0x82000003
jmp 0x107a1f1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4