joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a3ca1
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4cc748]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004a3b00
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0047c770
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4a3cf0
cmp dword [ebp - 0x1c], 5
jb 0x4a3d08
jmp 0x4a3d04
cmp dword [ebp - 0x10], 1
jne 0x4a3d08
cmp dword [ebp - 0x1c], 4
ja 0x4a3d04
jne 0x4a3d08
cmp dword [ebp - 0x18], 0
jbe 0x4a3d08
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4ba81c
call fcn.0040b680
test eax, eax
jge 0x4a3d29
mov byte [0x4cdd04], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0047b86d
add ebp, 0x78
leave
ret

Function at 0x4a3f42
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4cf0b8], 0
push esi
jne 0x4a3eb0
call fcn.004a3dce
test eax, eax
je 0x4a3ef3
mov eax, dword [0x4cf0b8]
cmp eax, 1
jne 0x4a3ed1
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4a3ef3
pop esi
ret
push eax
call dword [0x4cf0c0]
test eax, eax
jne 0x4a3f3b
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4a3ef7
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4cf0b8]
call dword [0x4cf0c0]
mov edi, eax
test edi, edi
je 0x4a3f1e
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4a3f3a
lea edi, [esi + 0xff0]
push esi
push dword [0x4cf0b8]
call dword [0x4cf0bc]
add esi, 0x10
cmp esi, edi
jb 0x4a3f24
mov eax, esi
pop edi
pop esi
ret
jmp 0x4a3e9d
Function at 0x1012018
Capabilities:
Create thread

Disassembly:
mov eax, 0x1033270
call fcn.01027f58
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
push 0x1001710
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0
push 0x4000
push 0x5c
mov ebx, 0x10015d0
push ebx
mov edi, 0x1001548
push edi
call fcn.01011a74
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.01011ae8
mov dword [ebp - 4], 1
cmp dword [esi], 0
je 0x101207a
xor esi, esi
jmp 0x101220b
mov byte [ebp - 4], 2
push 0x14
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x101209a
mov ecx, eax
call fcn.01011f59
jmp 0x101209c
xor eax, eax
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 2
mov dword [esi], eax
test eax, eax
jne 0x10120de
push 0x10016c0
push 0x8007000e
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
push 0x4000
push 0x65
push ebx
push edi
call fcn.01011a74
mov byte [ebp - 4], 4
lea eax, [ebp - 0x5c]
push eax
mov byte [ebp - 4], 2
call fcn.01011cb6
add esp, 0x4c
lea eax, [ebp - 0x2c]
push eax
push 0
push esi
push 0x1011da9
push 0x40000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x101213b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001678
push 0x8000ffff
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x30], esp
push 0
push 0x4000
push 0x76
push ebx
push edi
call fcn.01011a74
mov byte [ebp - 4], 5
lea eax, [ebp - 0x5c]
push eax
mov byte [ebp - 4], 2
call fcn.01011cb6
add esp, 0x50
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 4]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x5c], eax
jmp 0x10121ee
xor eax, eax
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 0x5c], 0
jge 0x1012208
mov ecx, dword [esi]
test ecx, ecx
je 0x1012208
mov edx, dword [ecx]
push eax
call dword [edx]
and dword [esi], 0
mov esi, dword [ebp - 0x5c]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.01011b91
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1015645
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x1033941
call fcn.01027f58
sub esp, 0x58
mov eax, dword [0x10400ac]
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 0xc]
push 0x1003138
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x64], esp
push 0
push 0x200
push 0x328
push 0x10021b4
mov ebx, 0x1002138
push ebx
call fcn.01011a74
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.01011ae8
mov dword [ebp - 4], 1
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x2c], eax
push eax
push 0x10030fc
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x5c], esp
push 0
push 0x200
push 0x32e
push 0x10021b4
push ebx
call fcn.01011a74
mov byte [ebp - 4], 3
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 2
call fcn.01011c0f
add esp, 0x4c
push 0
push edi
push 0x1040060
lea ecx, [esi + 4]
call fcn.01013317
mov dword [esi + 0xbc], edi
mov esi, 0x10030f4
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x2c]
call fcn.01013cf9
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x1d], 0
cmp dword [ebp - 0x24], 0
je 0x10157d9
push dword [ebp - 0x24]
push 0x10030c8
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x4c], esp
push 0
push 0x200
push 0x33e
push 0x10021b4
push ebx
call fcn.01011a74
mov byte [ebp - 4], 4
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 2
call fcn.01011c0f
add esp, 0x4c
push 0x10030b4
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10157c5
mov byte [ebp - 0x1d], 1
push 1
mov ecx, dword [ebp - 0x28]
call fcn.010158b5
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x28]
mov esi, dword [eax + 0x98]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.01011b91
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.01027c3a
pop edi
pop esi
pop ebx
leave
ret 0xc
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x24]
call fcn.01013cf9
mov dword [ebp - 0x24], eax
jmp 0x1015723
cmp byte [ebp - 0x1d], 0
jne 0x101578e
mov ecx, dword [ebp - 0x28]
call fcn.0101538f
jmp 0x101578e
Function at 0x1015e51
Capabilities:
Get disk information

Disassembly:
mov eax, 0x1033a4c
call fcn.01027f58
sub esp, 0x28
push ebx
push esi
push edi
push 0x10037b0
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0
mov ebx, 0x200
push ebx
push 0x123
mov edi, 0x10037a8
push edi
mov esi, 0x1003740
push esi
call fcn.01011a74
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.01011ae8
mov dword [ebp - 4], 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x1015eea
push eax
push dword [ebp + 8]
push 0x10036b8
push 0x8004230c
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0
push ebx
push 0x128
push edi
push esi
call fcn.01011a74
mov byte [ebp - 4], 2
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 1
call fcn.01011cb6
add esp, 0x54
xor eax, eax
push eax
push eax
lea ecx, [ebp - 0x10]
push ecx
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x1015fad
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x15
je 0x1015f22
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x48f
jne 0x1015f61
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push 0x1003620
push 0x80042308
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0
push ebx
push 0x13b
push edi
push esi
call fcn.01011a74
mov byte [ebp - 4], 3
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 1
call fcn.01011cb6
add esp, 0x54
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3ed
je 0x1015fad
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push 0x10035b0
push 0x8004230c
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0
push ebx
push 0x140
push edi
push esi
call fcn.01011a74
mov byte [ebp - 4], 4
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 1
call fcn.01011cb6
add esp, 0x54
test byte [ebp - 0xe], 8
je 0x1015feb
push dword [ebp + 8]
push 0x1003538
push 0x8004230c
sub esp, 0x40
mov ecx, esp
mov dword [ebp + 8], esp
push 0
push ebx
push 0x147
push edi
push esi
call fcn.01011a74
mov byte [ebp - 4], 5
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 1
call fcn.01011cb6
add esp, 0x50
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.01011b91
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x1019d2a
Capabilities:
Delete registry key

Disassembly:
mov eax, 0x1034211
call fcn.01027f58
sub esp, 0x44
push ebx
push esi
mov eax, dword [0x10400ac]
mov edx, dword [ebp + 0x10]
push edi
mov ebx, dword [ebp + 8]
push 9
pop ecx
mov esi, 0x1005aa0
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x4c]
push ecx
push 0xf003f
movsw word es:[edi], word [esi]
xor esi, esi
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push edx
push eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
mov dword [ebp - 0x48], eax
je 0x1019df4
cmp dword [ebx], esi
jne 0x1019d84
mov dword [ebx], eax
push eax
push dword [ebp - 0x40]
mov ebx, 0x200
push dword [ebp - 0x44]
mov edi, 0x1005a94
push 0x1005a40
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x44], esp
push esi
push ebx
push 0x6c
push edi
mov esi, 0x10059b8
push esi
call fcn.01011a74
and dword [ebp - 4], 0
push dword [ebp - 0x3c]
or dword [ebp - 4], 0xffffffff
call fcn.010297bf
add esp, 0x54
push dword [ebp - 0x48]
lea eax, [ebp - 0x38]
push dword [ebp - 0x40]
push eax
push 0x1005930
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x48], esp
push 0
push ebx
push 0x6d
push edi
push esi
call fcn.01011a74
mov dword [ebp - 4], 1
jmp 0x1019edd
push dword [ebp - 0x4c]
push ebx
call fcn.01019f0a
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ebx, 0x200
mov edi, 0x1005a94
mov esi, 0x10059b8
je 0x1019e5a
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx], 0
jne 0x1019e23
mov dword [ecx], eax
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x38]
push eax
push 0x10058c0
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x50], esp
push 0
push ebx
push 0x7c
push edi
push esi
call fcn.01011a74
mov dword [ebp - 4], 2
push dword [ebp - 0x3c]
or dword [ebp - 4], 0xffffffff
call fcn.01011c0f
add esp, 0x54
push dword [ebp - 0x40]
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
mov dword [ebp - 0x48], eax
je 0x1019eec
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx], 0
jne 0x1019e77
mov dword [ecx], eax
push eax
push dword [ebp - 0x40]
push dword [ebp - 0x44]
push 0x1005870
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x44], esp
push 0
push ebx
push 0x8a
push edi
push esi
call fcn.01011a74
mov dword [ebp - 4], 3
push dword [ebp - 0x3c]
or dword [ebp - 4], 0xffffffff
call fcn.010297bf
add esp, 0x54
push dword [ebp - 0x48]
lea eax, [ebp - 0x38]
push dword [ebp - 0x40]
push eax
push 0x1005800
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x50], esp
push 0
push ebx
push 0x8b
push edi
push esi
call fcn.01011a74
mov dword [ebp - 4], 4
push dword [ebp - 0x3c]
or dword [ebp - 4], 0xffffffff
call fcn.01011c0f
add esp, 0x54
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.01027c3a
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1019f0a
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x1034236
call fcn.01027f58
sub esp, 0x24c
mov eax, dword [0x10400ac]
push ebx
push esi
push edi
push 0xb
pop ecx
mov ebx, dword [ebp + 0xc]
mov esi, 0x1005b5c
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x248], eax
movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x258]
push eax
xor esi, esi
push esi
push esi
push esi
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x240]
push eax
push esi
push ebx
mov dword [ebp - 0x24c], 0x100
call edi
cmp eax, esi
mov dword [ebp - 0x244], eax
jne 0x1019fbb
lea eax, [ebp - 0x240]
push eax
push ebx
push dword [ebp - 0x248]
call fcn.01019d2a
lea eax, [ebp - 0x258]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x240]
push eax
push esi
push ebx
mov dword [ebp - 0x24c], 0x100
call edi
cmp eax, esi
mov dword [ebp - 0x244], eax
je 0x1019f78
cmp eax, 0x103
je 0x101a061
mov ecx, dword [ebp - 0x248]
cmp dword [ecx], esi
jne 0x1019fd2
mov dword [ecx], eax
push eax
lea eax, [ebp - 0x240]
push eax
push ebx
push 0x1005b08
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x250], esp
push esi
push 0x200
push 0xc6
mov ebx, 0x1005a94
push ebx
mov edi, 0x10059b8
push edi
call fcn.01011a74
mov dword [ebp - 4], esi
push dword [ebp - 0x248]
or dword [ebp - 4], 0xffffffff
call fcn.010297bf
add esp, 0x54
push dword [ebp - 0x244]
lea eax, [ebp - 0x40]
push eax
push 0x1005ac8
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x244], esp
push esi
push 0x200
push 0xc7
push ebx
push edi
call fcn.01011a74
mov dword [ebp - 4], 1
push dword [ebp - 0x248]
or dword [ebp - 4], 0xffffffff
call fcn.01011c0f
add esp, 0x50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.01027c3a
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x101a07f
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1034289
call fcn.01027f58
sub esp, 0x140
mov ecx, dword [ebp + 0xc]
mov eax, dword [0x10400ac]
mov edx, dword [ebp + 0x18]
push ebx
push esi
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp + 0x10]
push edi
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x40], ecx
push 8
pop ecx
mov esi, 0x1005c6c
lea edi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
movsw word es:[edi], word [esi]
and dword [eax], 0
add edx, edx
mov dword [ebp - 0x44], eax
mov ecx, edx
mov esi, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp - 0x4c]
push eax
push ebx
lea eax, [ebp - 0x38]
push eax
push 0
push dword [ebp - 0x40]
mov dword [ebp - 0x4c], edx
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov ebx, 0x200
mov edi, 0x1005a94
mov esi, 0x10059b8
je 0x101a14f
jle 0x101a119
and eax, 0xffff
or eax, 0x80070000
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
push 0x1005c34
push eax
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x48], esp
push 0
push ebx
push 0x111
push edi
push esi
call fcn.01011a74
and dword [ebp - 4], 0
push dword [ebp - 0x44]
or dword [ebp - 4], 0xffffffff
call fcn.01028fd3
add esp, 0x54
cmp dword [ebp - 0x38], 1
je 0x101a260
push 1
push 0
push ebx
push 0x117
push edi
push esi
lea ecx, [ebp - 0x14c]
call fcn.01011a74
mov dword [ebp - 4], 1
push dword [ebp - 0x38]
lea ecx, [ebp - 0xcc]
push ecx
mov ecx, eax
call fcn.01013e4d
mov byte [ebp - 4], 2
push 1
lea ecx, [ebp - 0x8c]
push ecx
mov ecx, eax
call fcn.01013e4d
mov byte [ebp - 4], 3
push dword [ebp - 0x40]
lea ecx, [ebp - 0x10c]
push ecx
mov ecx, eax
call fcn.0101228b
mov byte [ebp - 4], 4
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x48], esp
push dword [ebp - 0x3c]
push ecx
mov ecx, eax
call fcn.0101228b
mov byte [ebp - 4], 5
push 0x3007
push dword [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.0101232e
add esp, 0x4c
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10c]
call fcn.01011abc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x8c]
call fcn.01011abc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xcc]
call fcn.01011abc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14c]
call fcn.01011abc
push dword [ebp - 0x38]
lea eax, [ebp - 0x34]
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push eax
push 0x1005b90
push 0x8000ffff
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x3c], esp
push 0
push ebx
push 0x118
push edi
push esi
call fcn.01011a74
mov dword [ebp - 4], 6
push dword [ebp - 0x44]
or dword [ebp - 4], 0xffffffff
call fcn.01011cb6
add esp, 0x5c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.01027c3a
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x101a27e
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x10342dc
call fcn.01027f58
sub esp, 0x13c
mov eax, dword [0x10400ac]
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
push 8
pop ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov esi, 0x1005d3c
lea edi, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x14]
mov dword [edx], ecx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x18]
lea edx, [ebp - 0x48]
push edx
push eax
mov dword [eax], ecx
lea eax, [ebp - 0x38]
push eax
push ecx
push dword [ebp - 0x3c]
mov dword [ebp - 0x38], ecx
push ebx
mov dword [ebp - 0x48], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov ebx, 0x200
mov edi, 0x1005a94
mov esi, 0x10059b8
je 0x101a337
jle 0x101a301
and eax, 0xffff
or eax, 0x80070000
push dword [ebp - 0x3c]
push dword [ebp - 0x34]
push 0x1005c34
push eax
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x44], esp
push 0
push ebx
push 0x15c
push edi
push esi
call fcn.01011a74
and dword [ebp - 4], 0
push dword [ebp - 0x40]
or dword [ebp - 4], 0xffffffff
call fcn.01028fd3
add esp, 0x54
cmp dword [ebp - 0x38], 4
je 0x101a448
push 1
push 0
push ebx
push 0x162
push edi
push esi
lea ecx, [ebp - 0x148]
call fcn.01011a74
mov dword [ebp - 4], 1
push dword [ebp - 0x38]
lea ecx, [ebp - 0xc8]
push ecx
mov ecx, eax
call fcn.01013e4d
mov byte [ebp - 4], 2
push 4
lea ecx, [ebp - 0x88]
push ecx
mov ecx, eax
call fcn.01013e4d
mov byte [ebp - 4], 3
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x108]
push ecx
mov ecx, eax
call fcn.0101228b
mov byte [ebp - 4], 4
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x44], esp
push dword [ebp - 0x34]
push ecx
mov ecx, eax
call fcn.0101228b
mov byte [ebp - 4], 5
push 0x3007
push dword [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.0101232e
add esp, 0x4c
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x108]
call fcn.01011abc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x88]
call fcn.01011abc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xc8]
call fcn.01011abc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x148]
call fcn.01011abc
push dword [ebp - 0x38]
lea eax, [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x3c]
push eax
push 0x1005c90
push 0x8000ffff
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0
push ebx
push 0x163
push edi
push esi
call fcn.01011a74
mov dword [ebp - 4], 6
push dword [ebp - 0x40]
or dword [ebp - 4], 0xffffffff
call fcn.01011cb6
add esp, 0x5c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.01027c3a
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x101e75e
Capabilities:
Resume thread

Disassembly:
mov eax, 0x1034bf1
call fcn.01027f58
sub esp, 0x24
push ebx
push esi
push edi
push 0x1007a54
sub esp, 0x40
mov dword [ebp - 0x10], esp
mov esi, ecx
mov ecx, esp
push 0
push 0x200
push 0x171
mov ebx, 0x1007a48
push ebx
mov edi, 0x10079e0
push edi
call fcn.01011a74
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.01011ae8
mov dword [ebp - 4], 1
mov eax, dword [esi + 8]
test eax, eax
je 0x101e86b
cmp dword [esi + 0x10], 2
jne 0x101e86b
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x101e863
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi + 8]
push 0x1007950
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0
push 0x4000
push 0x184
push ebx
push edi
call fcn.01011a74
mov byte [ebp - 4], 3
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 1
call fcn.010297bf
add esp, 0x54
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10078f0
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0
push 0x4000
push 0x187
push ebx
push edi
call fcn.01011a74
mov byte [ebp - 4], 4
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 1
call fcn.01011c0f
mov dword [esi + 0x10], 5
add esp, 0x50
mov esi, 0x8007000e
jmp 0x101e8a7
mov byte [esi + 0x14], 1
xor esi, esi
jmp 0x101e8a7
push dword [esi + 0x10]
push 0x10078d4
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0
push 0x4000
push 0x176
push ebx
push edi
call fcn.01011a74
mov byte [ebp - 4], 2
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 1
call fcn.01011c0f
add esp, 0x4c
mov esi, 0x8000ffff
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.01011b91
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x101fe64
Capabilities:
Resume thread

Disassembly:
mov eax, 0x1034f74
call fcn.01027f58
sub esp, 0x20
push ebx
push esi
push edi
push 0x1008354
sub esp, 0x40
mov dword [ebp - 0x10], esp
mov esi, ecx
mov ecx, esp
push 0
push 0x200
push 0x1f7
mov ebx, 0x1007a48
push ebx
mov edi, 0x10079e0
push edi
call fcn.01011a74
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.01011ae8
mov dword [ebp - 4], 1
cmp dword [esi + 8], 0
je 0x101fffc
mov eax, dword [esi]
mov ecx, esi
mov byte [esi + 5], 1
call dword [eax + 0xc]
cmp byte [ebp + 8], 0
je 0x101ff78
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x101ff78
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi + 8]
push 0x1007950
sub esp, 0x40
mov ecx, esp
mov dword [ebp + 8], esp
push 0
push 0x4000
push 0x20a
push ebx
push edi
call fcn.01011a74
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 1
call fcn.010297bf
add esp, 0x54
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10078f0
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0
push 0x4000
push 0x20d
push ebx
push edi
call fcn.01011a74
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 1
call fcn.01011c0f
mov dword [esi + 0x10], 5
add esp, 0x50
mov esi, 0x8000ffff
jmp 0x101fffe
push 0xffffffffffffffff
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x101fffc
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi + 8]
push 0x1008290
sub esp, 0x40
mov ecx, esp
mov dword [ebp + 8], esp
push 0
push 0x4000
push 0x219
push ebx
push edi
call fcn.01011a74
mov byte [ebp - 4], 4
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 1
call fcn.010297bf
add esp, 0x54
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1008220
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0
push 0x4000
push 0x21c
push ebx
push edi
call fcn.01011a74
mov byte [ebp - 4], 5
jmp 0x101ff57
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.01011b91
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4