joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100c4050
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x308
mov edx, dword [esp + 0x30c]
push ebx
mov ebx, ecx
push esi
xor esi, esi
mov eax, dword [ebx + 0x10]
push edi
cmp eax, esi
je 0x100c4073
cmp edx, esi
je 0x100c4202
mov ecx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x24]
cmp ecx, 0x20001
jne 0x100c40a5
cmp eax, 0x40000
jne 0x100c40a5
mov eax, dword [ebx + 8]
cmp edx, esi
mov dword [ebx + 0x10], eax
je 0x100c4202
pop edi
mov dword [ebx + 0x10], edx
pop esi
pop ebx
add esp, 0x308
ret 4
cmp ecx, 0x20004
jne 0x100c40b8
cmp eax, 0x40000
je 0x100c4202
cmp ecx, 0x20002
jne 0x100c4103
cmp eax, 0x40000
jne 0x100c4103
mov ecx, dword [ebx + 8]
push esi
push str.Edit
push esi
push ecx
call dword [sym.imp.USER32.dll_FindWindowExW]
mov edi, eax
cmp edi, esi
je 0x100c4202
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test ah, 8
je 0x100c4202
mov dword [ebx + 0x10], edi
pop edi
pop esi
pop ebx
add esp, 0x308
ret 4
cmp ecx, 0x10001
jne 0x100c4202
cmp eax, 0x40000
jne 0x100c4202
mov eax, 2
push esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov ecx, 0xa9
xor eax, eax
lea edi, [esp + 0x74]
push esi
mov dword [esp + 0x74], esi
push esi
push 1
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 8]
lea edx, [esp + 0x1c]
push 3
push edx
lea ecx, [esp + 0x84]
push eax
push ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], str.32770
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], 0x10000000
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], 1
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], str.Static
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x64], 1
mov dword [esp + 0x68], 1
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], str.Button
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x88], esi
call fcn.1001dc70
mov edx, dword [esp + 0x8c]
mov eax, 1
add esp, 0x20
cmp edx, eax
jl 0x100c4202
lea ecx, [esp + 0x70]
cmp dword [ecx], esi
jne 0x100c41fb
inc eax
add ecx, 4
cmp eax, edx
jle 0x100c41e3
pop edi
pop esi
pop ebx
add esp, 0x308
ret 4
mov edx, dword [esp + eax*4 + 0x6c]
mov dword [ebx + 0x10], edx
pop edi
pop esi
pop ebx
add esp, 0x308
ret 4
Function at 0x100c7090
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x101af3f0
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
push ebx
push esi
test eax, eax
push edi
mov esi, ecx
je 0x100c70e8
mov edi, dword [esp + 0x20]
test edi, edi
je 0x100c70e8
push 0x103
push eax
lea eax, [esi + 4]
push eax
call fcn.100e9975
push 0x103
lea ecx, [esi + 0x20c]
push edi
push ecx
call fcn.100e9975
add esp, 0x18
mov dword [esi + 0x61c], 0
mov eax, dword [esi + 0x61c]
test eax, eax
jne 0x100c71ed
lea edi, [esi + 4]
lea edx, [esp + 0x20]
push edi
push edx
call fcn.10001b90
add esp, 8
mov eax, dword [eax]
lea ecx, [esp + 0x1c]
push eax
mov dword [esp + 0x18], 0
call fcn.10102670
lea ecx, [esp + 0x20]
mov byte [esp + 0x14], 2
call fcn.10195cf5
mov eax, dword [esp + 0x1c]
mov ebx, 1
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100c714d
mov ecx, dword [esp + 0x1c]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
mov eax, dword [0x102acd68]
test eax, eax
je 0x100c717f
lea edx, [esi + 0x414]
push ebx
lea eax, [esi + 0x20c]
push edx
push eax
push edi
push str.CIMMessageFile::Init_1___s____s____s____d_
push str.CIMMessageFile
push 0xffffffffffffffff
push 0x102ac4d4
call fcn.10140e70
add esp, 0x20
test ebx, ebx
je 0x100c71dc
push 0x5c
lea ecx, [esp + 0x20]
call fcn.10103b60
lea ebx, [esi + 0x414]
mov ecx, 0x82
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x1c]
push 0x103
push ecx
push ebx
call fcn.100e9975
mov eax, dword [0x102acd68]
add esp, 0xc
test eax, eax
je 0x100c71d5
push ebx
push str.CIMMessageFile::Init_2___s_
push str.CIMMessageFile
push 0xffffffffffffffff
push 0x102ac4d4
call fcn.10140e70
add esp, 0x14
mov ecx, esi
call fcn.100c7210
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.10102ee0
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 8
Function at 0x100cdda0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
xor esi, esi
push edi
cmp ebx, esi
mov dword [esp + 0x14], esi
mov byte [esp + 0x12], 0xff
mov byte [esp + 0x13], 0xfe
je 0x100cde73
mov edi, dword [esp + 0x20]
cmp edi, esi
je 0x100cde73
push edi
call fcn.100e9958
add esp, 4
test eax, eax
je 0x100cde73
push ebx
call fcn.100e9958
mov ebp, eax
add esp, 4
shl ebp, 1
je 0x100cde73
push esi
push edi
call fcn.10120800
add esp, 8
mov ebx, eax
push esi
push 0x80
push 4
push esi
push 7
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100cde7a
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x20], 0
test ebx, ebx
jne 0x100cde44
lea eax, [esp + 0x20]
push 0
push eax
lea ecx, [esp + 0x1a]
push 2
push ecx
push esi
call edi
test eax, eax
je 0x100cde73
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push 0
push edx
push ebp
push eax
push esi
call edi
test eax, eax
je 0x100cde73
cmp dword [esp + 0x20], ebp
jne 0x100cde73
mov dword [esp + 0x14], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
Function at 0x100ce7d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x101afcd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
xor eax, eax
push ebp
push esi
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x14]
push edi
lea edx, [esp + 0x10]
xor ebx, ebx
mov dword [esp + 0x20], eax
push ecx
push edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], eax
call fcn.10145ad0
add esp, 8
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x3c]
cmp edi, ebx
mov dword [esp + 0x30], ebx
mov esi, dword [eax - 8]
je 0x100ce8d8
push edi
call fcn.100e9958
add esp, 4
cmp eax, esi
jb 0x100ce8d8
push edi
lea ecx, [esp + 0x18]
call fcn.10102670
lea ecx, [esp + 0x3c]
push esi
mov bl, 1
push ecx
mov ecx, eax
mov byte [esp + 0x38], bl
call fcn.101056b0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 2
call fcn.10103090
lea ecx, [esp + 0x3c]
mov byte [esp + 0x30], bl
call fcn.10102ee0
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 0
call fcn.10102ee0
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push eax
call fcn.10145c20
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
add esp, 8
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
call fcn.10102ee0
mov eax, dword [esp + 0x38]
mov ecx, eax
mov dword [ecx], esi
mov dword [ecx + 4], edi
pop edi
pop esi
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebp
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
call fcn.10102ee0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
mov edx, eax
mov dword [edx], esi
mov dword [edx + 4], edi
pop edi
pop esi
mov dword [edx + 8], ebx
mov dword [edx + 0xc], ebp
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x100d74e0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [0x102acd68]
sub esp, 0x148
test eax, eax
push esi
mov esi, dword [esp + 0x150]
push edi
mov edi, ecx
je 0x100d7514
push esi
push str.QNCheckIsMainWnd____08x_
push 0x102069cc
push 0xffffffffffffffff
push 0x102ac4d4
call fcn.10140e70
add esp, 0x14
test esi, esi
jne 0x100d7525
pop edi
xor eax, eax
pop esi
add esp, 0x148
ret 4
push ebp
push esi
xor ebp, ebp
call fcn.1001dda0
mov esi, eax
add esp, 4
test esi, esi
je 0x100d76fd
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea ecx, [edi + 4]
call fcn.10064e30
test eax, eax
je 0x100d7557
cmp dword [eax + 8], esi
je 0x100d76f8
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0xb2]
mov word [esp + 0xb0], 0
rep stosd dword es:[edi], eax
lea eax, [esp + 0xb0]
push 0x50
push eax
push esi
call dword [sym.imp.USER32.dll_GetClassNameW]
push esi
call dword [sym.imp.USER32.dll_GetParent]
mov edi, eax
mov eax, dword [0x102acd68]
test eax, eax
je 0x100d75bd
mov ecx, dword [0x10232358]
lea edx, [esp + 0xb0]
push ecx
push edi
push edx
push str.QNCheckIsMainWnd_1___s____08x___d_
push 0x102069cc
push 0xffffffffffffffff
push 0x102ac4d4
call fcn.10140e70
add esp, 0x1c
mov eax, dword [0x10232358]
shr eax, 0x10
cmp eax, 9
jne 0x100d75f1
lea ecx, [esp + 0xb0]
push str.Qt5152QWindowIcon
push ecx
call fcn.100ea07f
add esp, 8
test eax, eax
jne 0x100d76fd
test edi, edi
jne 0x100d76fd
jmp 0x100d7616
lea edx, [esp + 0xb0]
push str.StandardFrame
push edx
call fcn.100ea07f
add esp, 8
test eax, eax
jne 0x100d76fd
test edi, edi
jne 0x100d76fd
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push 0x50
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [0x102acd68]
test eax, eax
je 0x100d765f
lea ecx, [esp + 0xc]
push ecx
push str.QNCheckIsMainWnd_2___s_
push 0x102069cc
push 0xffffffffffffffff
push 0x102ac4d4
call fcn.10140e70
add esp, 0x14
mov edx, dword [0x10232358]
shr edx, 0x10
cmp edx, 9
jne 0x100d76c9
lea eax, [esp + 0xc]
push 0x101edf6c
push eax
call fcn.100e9e19
mov esi, eax
add esp, 8
test esi, esi
je 0x100d76fd
push esi
call fcn.100e9958
push 0x101edf6c
mov edi, eax
call fcn.100e9958
add esp, 8
cmp edi, eax
jne 0x100d76fd
mov ecx, 0x14
xor eax, eax
mov edi, 0x102a8f68
lea edx, [esp + 0xc]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
sub esi, ecx
shr esi, 1
push esi
push edx
push 0x102a8f68
call fcn.100e9975
add esp, 0xc
jmp 0x100d76f8
lea eax, [esp + 0xc]
push 0x10216af4
push eax
call fcn.100e9e19
add esp, 8
test eax, eax
je 0x100d76fd
push eax
call fcn.100e9958
push 0x10216af4
mov esi, eax
call fcn.100e9958
add esp, 8
cmp esi, eax
jne 0x100d76fd
mov ebp, 1
mov eax, dword [0x102acd68]
test eax, eax
je 0x100d7720
push ebp
push str.QNCheckIsMainWnd____d_
push 0x102069cc
push 0xffffffffffffffff
push 0x102ac4d4
call fcn.10140e70
add esp, 0x14
mov eax, ebp
pop ebp
pop edi
pop esi
add esp, 0x148
ret 4
Function at 0x101013d0
Capabilities:
Extract resource via kernel32 functions
Print debug messages

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, eax
push esi
mov esi, dword [esp + 0x10]
and ebp, 0xf
shr eax, 4
inc eax
push edi
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x10101429
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x10101429
xor edi, edi
xor ebx, ebx
mov bx, word [esi]
add esi, 2
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp ebp, edi
je 0x10101430
inc edi
lea esi, [esi + ebx*2]
cmp edi, 0x10
jl 0x1010140d
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov edx, ecx
xor eax, eax
mov edi, ebp
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
dec eax
push eax
push ebp
push ebx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1010142b
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
pop edi
dec ecx
pop esi
pop ebp
mov eax, ecx
pop ebx
ret

Function at 0x10106f00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x10106f50
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x10106f50
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x10106f55
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x10106f3b
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x10106f62
mov eax, ecx
lea edx, [eax + eax]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edx
push ebp
mov ebp, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [edx + ebx], 0
pop ebx
pop edi
pop esi
ret
Function at 0x10111b30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [ecx + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
test ecx, ecx
je 0x10111b71
lea edx, [esp + 0x14]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0x14]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x10111b73
mov esi, edi
test esi, esi
je 0x10111be8
mov ebx, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push 0
push ecx
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x10111bdd
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jne 0x10111bdd
cmp dword [esp + 0x1c], eax
jbe 0x10111bae
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x10111bdd
cmp esi, edi
je 0x10111bcf
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
cmp esi, edi
je 0x10111be8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x10111f00
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x101b290f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x1021a2a0]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], 1
test ecx, ecx
mov dword [esp + 0x14], edi
je 0x10111f6b
lea edx, [esp + 0x18]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x10111f6d
mov esi, edi
test esi, esi
je 0x10112037
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push 0
push ecx
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1011202c
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x10111faf
cmp eax, 2
je 0x10111faf
cmp eax, 6
je 0x10111faf
cmp eax, 7
jne 0x1011202c
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.101963be
mov ebp, eax
mov eax, dword [esp + 0x38]
mov edi, ebp
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x34]
push eax
push ebp
push 0
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push ebp
jne 0x10112012
lea ecx, [esp + 0x14]
call fcn.10195e8c
cmp esi, dword [esp + 0x14]
je 0x10112007
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.101963e7
add esp, 4
jmp 0x10112049
call fcn.101963e7
add esp, 4
lea ecx, [esp + 0x10]
push 0x102323b8
call fcn.10195e8c
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x10112037
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x10112049
push eax
lea ecx, [esp + 0x14]
call fcn.10195e8c
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.10195a62
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.10195cf5
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x10112190
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
test eax, eax
je 0x101121c7
mov edx, dword [ebp + 0x14]
lea ecx, [ebp + 0xc]
or edx, 0x20019
push ecx
push edx
push 0
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x101121ca
mov esi, dword [ebp + 8]
test esi, esi
je 0x1011237d
call fcn.10186510
test eax, eax
je 0x10112275
mov eax, dword [ebp + 0x10]
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp + 0x14]
push 0
push edx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10112371
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x10112219
cmp eax, 2
je 0x10112219
cmp eax, 6
je 0x10112219
cmp eax, 7
jne 0x10112371
mov ecx, dword [ebp + 0xc]
add ecx, 2
push ecx
call fcn.101963be
mov edx, dword [ebp + 0xc]
mov ebx, eax
xor eax, eax
mov edi, ebx
lea ecx, [edx + 2]
add esp, 4
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push ebx
jne 0x1011235c
mov ecx, dword [ebp + 0x18]
call fcn.101031c0
cmp esi, dword [ebp + 8]
je 0x10112346
jmp 0x1011233f
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x10112281
mov dword [ebp + 0x10], eax
jmp 0x101122b6
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.100ea050
mov edx, dword [ebp + 0x10]
mov edi, esp
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push edx
push 0
push 0
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp + 0x10], edi
mov edx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 0x14]
push 0
push ecx
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10112371
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x101122f0
cmp eax, 2
je 0x101122f0
cmp eax, 6
je 0x101122f0
cmp eax, 7
jne 0x10112371
mov eax, dword [ebp + 0xc]
add eax, 2
push eax
call fcn.101963be
mov ecx, dword [ebp + 0xc]
mov ebx, eax
add ecx, 2
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push ebx
jne 0x1011235c
mov ecx, dword [ebp + 0x18]
call fcn.10103290
cmp esi, dword [ebp + 8]
je 0x10112346
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.101963e7
add esp, 4
mov eax, 1
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.101963e7
mov ecx, dword [ebp + 0x18]
add esp, 4
push 0x102323b8
call fcn.101031c0
cmp esi, dword [ebp + 8]
je 0x1011237d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esp, [ebp - 0xc]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10112dc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x101b29d8
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
push ebx
push esi
test eax, eax
push edi
je 0x10112e16
lea ecx, [ebp + 0x14]
mov ebx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp + 0x14]
lea edx, [ebp + 0xc]
or ecx, 0x20006
push edx
push 0
push ecx
push 0
push 0
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x10112e1b
mov esi, dword [ebp + 8]
mov ebx, esi
test esi, esi
je 0x10112f0a
call fcn.10186510
test eax, eax
je 0x10112e6a
mov edi, dword [ebp + 0x18]
push edi
call fcn.100e9958
add esp, 4
lea edx, [eax + eax + 2]
mov eax, dword [ebp + 0x10]
push edx
push edi
push 1
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x10112eff
cmp esi, ebx
je 0x10112e60
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x10112f0c
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x10112e75
xor edi, edi
jmp 0x10112eaa
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.100ea050
mov ecx, dword [ebp + 0x10]
mov edi, esp
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push ecx
push 0
push 0
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
lea ecx, [ebp + 0xc]
push edx
call fcn.100fcf40
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
push 1
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10112ef0
cmp esi, ebx
je 0x10112eda
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.100fd750
mov eax, 1
jmp 0x10112f0c
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.100fd750
cmp esi, ebx
je 0x10112f0a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x101148e0
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov eax, dword [0x102ac3b0]
sub esp, 0x114
test eax, eax
jne 0x10114a2d
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push edi
push 0x102ac148
mov dword [0x102ac3b0], 1
mov dword [0x102ac148], 0x114
call esi
mov edx, dword [0x102ac158]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [0x1021e480], eax
je 0x10114a08
push ebx
push 0x102ac260
mov dword [0x102ac260], 0x11c
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x101f1f14
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.GetNativeSystemInfo
push esi
call edi
push str.GetProductInfo
push esi
mov dword [0x102ac3a4], eax
call edi
mov dword [0x102ac3a8], eax
mov eax, dword [0x102ac3a4]
test eax, eax
push 0x102ac380
je 0x10114984
call eax
jmp 0x1011498a
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x102ac264]
cmp eax, 6
jae 0x101149a2
cmp eax, 5
jne 0x101149b6
cmp dword [0x102ac268], 2
jb 0x101149b6
cmp word [0x102ac380], 9
jne 0x101149b6
mov dword [0x102ac13c], 1
push str.Ntdll.dll
call ebx
test eax, eax
pop ebx
je 0x101149d4
push str.RtlGetVersion
push eax
call edi
mov edx, eax
mov dword [0x102ac3ac], edx
jmp 0x101149da
mov edx, dword [0x102ac3ac]
test edx, edx
je 0x10114a08
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x114
push eax
call edx
test eax, eax
jne 0x10114a08
mov ecx, dword [esp + 0x14]
mov dword [0x102ac154], ecx
push 0x102ac150
push 0x102ac14c
call fcn.10114dd0
add esp, 8
call fcn.10114a40
pop edi
mov eax, 1
pop esi
add esp, 0x114
ret
mov eax, 1
add esp, 0x114
ret