joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100c4dc0
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 0x100c4de3
cmp edx, esi
je 0x100c4f72
mov ecx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x24]
cmp ecx, 0x20001
jne 0x100c4e15
cmp eax, 0x40000
jne 0x100c4e15
mov eax, dword [ebx + 8]
cmp edx, esi
mov dword [ebx + 0x10], eax
je 0x100c4f72
pop edi
mov dword [ebx + 0x10], edx
pop esi
pop ebx
add esp, 0x308
ret 4
cmp ecx, 0x20004
jne 0x100c4e28
cmp eax, 0x40000
je 0x100c4f72
cmp ecx, 0x20002
jne 0x100c4e73
cmp eax, 0x40000
jne 0x100c4e73
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 0x100c4f72
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test ah, 8
je 0x100c4f72
mov dword [ebx + 0x10], edi
pop edi
pop esi
pop ebx
add esp, 0x308
ret 4
cmp ecx, 0x10001
jne 0x100c4f72
cmp eax, 0x40000
jne 0x100c4f72
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.1001de80
mov edx, dword [esp + 0x8c]
mov eax, 1
add esp, 0x20
cmp edx, eax
jl 0x100c4f72
lea ecx, [esp + 0x70]
cmp dword [ecx], esi
jne 0x100c4f6b
inc eax
add ecx, 4
cmp eax, edx
jle 0x100c4f53
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 0x100c7e00
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x101b3540
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 0x100c7e58
mov edi, dword [esp + 0x20]
test edi, edi
je 0x100c7e58
push 0x103
push eax
lea eax, [esi + 4]
push eax
call fcn.100ecb95
push 0x103
lea ecx, [esi + 0x20c]
push edi
push ecx
call fcn.100ecb95
add esp, 0x18
mov dword [esi + 0x61c], 0
mov eax, dword [esi + 0x61c]
test eax, eax
jne 0x100c7f5d
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.101058a0
lea ecx, [esp + 0x20]
mov byte [esp + 0x14], 2
call fcn.10199d65
mov eax, dword [esp + 0x1c]
mov ebx, 1
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100c7ebd
mov ecx, dword [esp + 0x1c]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
mov eax, dword [0x102cb7c8]
test eax, eax
je 0x100c7eef
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 0x102caf34
call fcn.10131cf0
add esp, 0x20
test ebx, ebx
je 0x100c7f4c
push 0x5c
lea ecx, [esp + 0x20]
call fcn.10106d90
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.100ecb95
mov eax, dword [0x102cb7c8]
add esp, 0xc
test eax, eax
je 0x100c7f45
push ebx
push str.CIMMessageFile::Init_2___s_
push str.CIMMessageFile
push 0xffffffffffffffff
push 0x102caf34
call fcn.10131cf0
add esp, 0x14
mov ecx, esi
call fcn.100c7f80
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.10106110
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 8
Function at 0x100ceb70
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 0x100cec43
mov edi, dword [esp + 0x20]
cmp edi, esi
je 0x100cec43
push edi
call fcn.100ecb78
add esp, 4
test eax, eax
je 0x100cec43
push ebx
call fcn.100ecb78
mov ebp, eax
add esp, 4
shl ebp, 1
je 0x100cec43
push esi
push edi
call fcn.10123850
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 0x100cec4a
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x20], 0
test ebx, ebx
jne 0x100cec14
lea eax, [esp + 0x20]
push 0
push eax
lea ecx, [esp + 0x1a]
push 2
push ecx
push esi
call edi
test eax, eax
je 0x100cec43
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 0x100cec43
cmp dword [esp + 0x20], ebp
jne 0x100cec43
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 0x100cf5c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x101b3e28
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.10149b40
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 0x100cf6c8
push edi
call fcn.100ecb78
add esp, 4
cmp eax, esi
jb 0x100cf6c8
push edi
lea ecx, [esp + 0x18]
call fcn.101058a0
lea ecx, [esp + 0x3c]
push esi
mov bl, 1
push ecx
mov ecx, eax
mov byte [esp + 0x38], bl
call fcn.101088e0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 2
call fcn.101062c0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x30], bl
call fcn.10106110
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 0
call fcn.10106110
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push eax
call fcn.10149c90
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.10106110
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.10106110
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 0x100d93d0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [0x102cb7c8]
sub esp, 0x148
test eax, eax
push esi
mov esi, dword [esp + 0x150]
push edi
mov edi, ecx
je 0x100d9404
push esi
push str.QNCheckIsMainWnd____08x_
push 0x1020acbc
push 0xffffffffffffffff
push 0x102caf34
call fcn.10131cf0
add esp, 0x14
test esi, esi
jne 0x100d9415
pop edi
xor eax, eax
pop esi
add esp, 0x148
ret 4
push ebp
push esi
xor ebp, ebp
call fcn.1001dfb0
mov esi, eax
add esp, 4
test esi, esi
je 0x100d95ed
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea ecx, [edi + 4]
call fcn.10065700
test eax, eax
je 0x100d9447
cmp dword [eax + 8], esi
je 0x100d95e8
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 [0x102cb7c8]
test eax, eax
je 0x100d94ad
mov ecx, dword [0x10237128]
lea edx, [esp + 0xb0]
push ecx
push edi
push edx
push str.QNCheckIsMainWnd_1___s____08x___d_
push 0x1020acbc
push 0xffffffffffffffff
push 0x102caf34
call fcn.10131cf0
add esp, 0x1c
mov eax, dword [0x10237128]
shr eax, 0x10
cmp eax, 9
jne 0x100d94e1
lea ecx, [esp + 0xb0]
push str.Qt5152QWindowIcon
push ecx
call fcn.100ed29f
add esp, 8
test eax, eax
jne 0x100d95ed
test edi, edi
jne 0x100d95ed
jmp 0x100d9506
lea edx, [esp + 0xb0]
push str.StandardFrame
push edx
call fcn.100ed29f
add esp, 8
test eax, eax
jne 0x100d95ed
test edi, edi
jne 0x100d95ed
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 [0x102cb7c8]
test eax, eax
je 0x100d954f
lea ecx, [esp + 0xc]
push ecx
push str.QNCheckIsMainWnd_2___s_
push 0x1020acbc
push 0xffffffffffffffff
push 0x102caf34
call fcn.10131cf0
add esp, 0x14
mov edx, dword [0x10237128]
shr edx, 0x10
cmp edx, 9
jne 0x100d95b9
lea eax, [esp + 0xc]
push 0x101f1fbc
push eax
call fcn.100ed039
mov esi, eax
add esp, 8
test esi, esi
je 0x100d95ed
push esi
call fcn.100ecb78
push 0x101f1fbc
mov edi, eax
call fcn.100ecb78
add esp, 8
cmp edi, eax
jne 0x100d95ed
mov ecx, 0x14
xor eax, eax
mov edi, 0x102c7998
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 0x102c7998
call fcn.100ecb95
add esp, 0xc
jmp 0x100d95e8
lea eax, [esp + 0xc]
push 0x1021b278
push eax
call fcn.100ed039
add esp, 8
test eax, eax
je 0x100d95ed
push eax
call fcn.100ecb78
push 0x1021b278
mov esi, eax
call fcn.100ecb78
add esp, 8
cmp esi, eax
jne 0x100d95ed
mov ebp, 1
mov eax, dword [0x102cb7c8]
test eax, eax
je 0x100d9610
push ebp
push str.QNCheckIsMainWnd____d_
push 0x1020acbc
push 0xffffffffffffffff
push 0x102caf34
call fcn.10131cf0
add esp, 0x14
mov eax, ebp
pop ebp
pop edi
pop esi
add esp, 0x148
ret 4
Function at 0x10104600
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 0x10104659
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x10104659
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 0x10104660
inc edi
lea esi, [esi + ebx*2]
cmp edi, 0x10
jl 0x1010463d
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 0x1010465b
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 0x1010a130
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 0x1010a180
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x1010a180
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x1010a185
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x1010a16b
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x1010a192
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 0x10114d60
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 0x10114da1
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 0x10114da3
mov esi, edi
test esi, esi
je 0x10114e18
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 0x10114e0d
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jne 0x10114e0d
cmp dword [esp + 0x1c], eax
jbe 0x10114dde
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 0x10114e0d
cmp esi, edi
je 0x10114dff
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 0x10114e18
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 0x10115130
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x101b6c0f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x1021f090]
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 0x1011519b
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 0x1011519d
mov esi, edi
test esi, esi
je 0x10115267
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 0x1011525c
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x101151df
cmp eax, 2
je 0x101151df
cmp eax, 6
je 0x101151df
cmp eax, 7
jne 0x1011525c
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.1019a42e
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 0x10115242
lea ecx, [esp + 0x14]
call fcn.10199efc
cmp esi, dword [esp + 0x14]
je 0x10115237
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.1019a457
add esp, 4
jmp 0x10115279
call fcn.1019a457
add esp, 4
lea ecx, [esp + 0x10]
push 0x10237188
call fcn.10199efc
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x10115267
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x10115279
push eax
lea ecx, [esp + 0x14]
call fcn.10199efc
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.10199ad2
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.10199d65
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 0x101153c0
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 0x101153f7
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 0x101153fa
mov esi, dword [ebp + 8]
test esi, esi
je 0x101155ad
call fcn.1018c670
test eax, eax
je 0x101154a5
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 0x101155a1
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x10115449
cmp eax, 2
je 0x10115449
cmp eax, 6
je 0x10115449
cmp eax, 7
jne 0x101155a1
mov ecx, dword [ebp + 0xc]
add ecx, 2
push ecx
call fcn.1019a42e
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 0x1011558c
mov ecx, dword [ebp + 0x18]
call fcn.101063f0
cmp esi, dword [ebp + 8]
je 0x10115576
jmp 0x1011556f
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x101154b1
mov dword [ebp + 0x10], eax
jmp 0x101154e6
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.100ed270
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 0x101155a1
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x10115520
cmp eax, 2
je 0x10115520
cmp eax, 6
je 0x10115520
cmp eax, 7
jne 0x101155a1
mov eax, dword [ebp + 0xc]
add eax, 2
push eax
call fcn.1019a42e
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 0x1011558c
mov ecx, dword [ebp + 0x18]
call fcn.101064c0
cmp esi, dword [ebp + 8]
je 0x10115576
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.1019a457
add esp, 4
mov eax, 1
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.1019a457
mov ecx, dword [ebp + 0x18]
add esp, 4
push 0x10237188
call fcn.101063f0
cmp esi, dword [ebp + 8]
je 0x101155ad
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 0x10115ff0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x101b6cd8
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
push ebx
push esi
test eax, eax
push edi
je 0x10116046
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 0x1011604b
mov esi, dword [ebp + 8]
mov ebx, esi
test esi, esi
je 0x1011613a
call fcn.1018c670
test eax, eax
je 0x1011609a
mov edi, dword [ebp + 0x18]
push edi
call fcn.100ecb78
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 0x1011612f
cmp esi, ebx
je 0x10116090
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x1011613c
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x101160a5
xor edi, edi
jmp 0x101160da
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.100ed270
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.10100170
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 0x10116120
cmp esi, ebx
je 0x1011610a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.10100980
mov eax, 1
jmp 0x1011613c
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.10100980
cmp esi, ebx
je 0x1011613a
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 0x10117b10
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov eax, dword [0x102cae18]
sub esp, 0x114
test eax, eax
jne 0x10117c5d
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push edi
push 0x102cabb0
mov dword [0x102cae18], 1
mov dword [0x102cabb0], 0x114
call esi
mov edx, dword [0x102cabc0]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [0x10223270], eax
je 0x10117c38
push ebx
push 0x102cacc8
mov dword [0x102cacc8], 0x11c
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x101f5f0c
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 [0x102cae0c], eax
call edi
mov dword [0x102cae10], eax
mov eax, dword [0x102cae0c]
test eax, eax
push 0x102cade8
je 0x10117bb4
call eax
jmp 0x10117bba
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x102caccc]
cmp eax, 6
jae 0x10117bd2
cmp eax, 5
jne 0x10117be6
cmp dword [0x102cacd0], 2
jb 0x10117be6
cmp word [0x102cade8], 9
jne 0x10117be6
mov dword [0x102caba4], 1
push str.Ntdll.dll
call ebx
test eax, eax
pop ebx
je 0x10117c04
push str.RtlGetVersion
push eax
call edi
mov edx, eax
mov dword [0x102cae14], edx
jmp 0x10117c0a
mov edx, dword [0x102cae14]
test edx, edx
je 0x10117c38
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 0x10117c38
mov ecx, dword [esp + 0x14]
mov dword [0x102cabbc], ecx
push 0x102cabb8
push 0x102cabb4
call fcn.10118000
add esp, 8
call fcn.10117c70
pop edi
mov eax, 1
pop esi
add esp, 0x114
ret
mov eax, 1
add esp, 0x114
ret