joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10031f70
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.100588e0
push 0xffffffffffffffff
push 0x100bbc49
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x1011ca44]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 8
call fcn.100aadfa
mov edi, eax
pop ecx
mov dword [ebp - 0x18], edi
xor ebx, ebx
mov dword [ebp - 4], ebx
test edi, edi
je 0x10031fd5
push ebx
push ebx
mov ecx, edi
mov dword [edi], ebx
mov dword [edi + 4], ebx
call fcn.10031c7a
mov dword [edi], eax
jmp 0x10031fd7
mov edi, ebx
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1c]
push eax
call fcn.10031e2d
pop ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
push 0x20019
push ebx
push 0x100e7ab8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [ebp - 0x1c]
test eax, eax
jne 0x10032142
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], ebx
push eax
lea eax, [ebp]
push eax
push ebx
jmp 0x10032121
cmp dword [ebp - 0x10], 0
mov eax, ebx
mov ecx, ebx
jbe 0x1003210d
cmp word [ebp + ecx*2], 0x2e
jne 0x10032042
inc eax
cmp eax, 1
jg 0x10032051
inc ecx
cmp ecx, dword [ebp - 0x10]
jb 0x10032034
cmp eax, 1
jle 0x1003210d
lea eax, [ebp]
push 0x100e79ec
push eax
call fcn.100aadfa
pop ecx
pop ecx
test eax, eax
js 0x1003210d
lea eax, [ebp]
push eax
call fcn.10039f71
pop ecx
test al, al
je 0x1003210d
push 0x10
call fcn.100aadfa
pop ecx
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x1003209c
push ebx
lea ecx, [ebp]
push ecx
mov ecx, eax
call fcn.1003187a
mov ebx, eax
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.1002cf87
test al, al
je 0x1003210b
lea ecx, [ebp - 0x1c]
call fcn.10001bd4
test eax, eax
je 0x10032101
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x100320c2
mov ecx, dword [ecx]
jmp 0x100320c4
xor ecx, ecx
test esi, esi
je 0x100320cc
mov eax, dword [esi]
jmp 0x100320ce
xor eax, eax
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100320f4
test dx, dx
je 0x100320f0
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100320f4
add eax, 4
add ecx, 4
test dx, dx
jne 0x100320ce
xor eax, eax
jmp 0x100320f9
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10032101
mov byte [ebx + 0xc], 1
push ebx
push dword [edi]
mov ecx, edi
call fcn.100317ab
xor ebx, ebx
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
push ebx
push ebx
push ebx
push ebx
push ecx
lea ecx, [ebp]
inc eax
push ecx
mov dword [ebp - 0x18], eax
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x10], 0x800
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x10032026
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x1003214d
mov ecx, esi
call fcn.10001b26
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.100587af
add ebp, 0x1004
leave
ret
Function at 0x10032d83
Capabilities:
Get memory capacity

Disassembly:
push esi
push 0x40
mov esi, ecx
push 0
push esi
call fcn.1005c640
add esp, 0xc
mov dword [esi], 0x40
push esi
call dword [sym.imp.kernel32.dll_GlobalMemoryStatusEx]
mov eax, esi
pop esi
ret

Function at 0x10033264
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x100bbd0d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x1011ca44]
xor eax, ebp
mov dword [ebp + 0x208], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x100ebe34
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.100aadfa
add esp, 0xc
test eax, eax
jne 0x10033357
push dword [ebp - 0x18]
call fcn.100aadfa
cmp dword [0x1011f490], 0
pop ecx
je 0x100332d3
xor eax, eax
inc eax
jmp 0x10033359
lea eax, [ebp]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.kernel32.dll_GetTempPathW]
cmp eax, esi
ja 0x10033357
test eax, eax
je 0x10033357
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.10001727
xor edi, edi
lea ecx, [ebp - 0x10]
push str.JavaDeployReg.log
mov dword [ebp - 4], edi
call fcn.10001727
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x14]
call fcn.1000187c
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x10033325
call fcn.10001b26
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x1003332e
mov edi, dword [esi]
push 0x100ebee0
push edi
push 0x1011f490
call fcn.100aadfa
add esp, 0xc
mov edi, eax
neg edi
sbb edi, edi
test esi, esi
je 0x10033352
mov ecx, esi
call fcn.10001b26
lea eax, [edi + 1]
jmp 0x10033359
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.100587af
add ebp, 0x20c
leave
ret

Function at 0x100339b6
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x100bbd5d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x1011ca44]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 0x214]
xor eax, eax
xor esi, esi
mov dword [ebp - 4], esi
mov word [ebx], ax
lea eax, [ebp]
push eax
push esi
push esi
push 0x23
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test edi, edi
js 0x10033aa2
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.10001727
mov eax, dword [eax]
test eax, eax
je 0x10033a2f
mov esi, dword [eax]
push 0x104
push esi
push dword [ebp + 0x218]
push ebx
call fcn.100aadfa
mov ecx, dword [ebp - 0x14]
add esp, 0x10
test ecx, ecx
je 0x10033a78
call fcn.10001b26
jmp 0x10033a78
xor eax, eax
test edi, edi
setns al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.100587af
add ebp, 0x20c
leave
ret
push edi
push str.Error:_08x_in_::SHGetFolderPathW_0__CSIDL_COMMON_APPDATA__NULL__SHGFP_TYPE_CURRENT__szPath_
call fcn.100386d5
pop ecx
pop ecx
push esi
push edi
call fcn.100aadfa
int3
Function at 0x10033d23
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x100bbd85
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x1011ca44]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 0x214]
xor eax, eax
xor esi, esi
mov dword [ebp - 4], esi
mov word [ebx], ax
lea eax, [ebp]
push eax
push esi
push esi
push 0x1a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test edi, edi
js 0x10033e0f
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.10001727
mov eax, dword [eax]
test eax, eax
je 0x10033d9c
mov esi, dword [eax]
push 0x104
push esi
push dword [ebp + 0x218]
push ebx
call fcn.100aadfa
mov ecx, dword [ebp - 0x14]
add esp, 0x10
test ecx, ecx
je 0x10033de5
call fcn.10001b26
jmp 0x10033de5
xor eax, eax
test edi, edi
setns al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.100587af
add ebp, 0x20c
leave
ret
push edi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__szPath_
call fcn.100386d5
pop ecx
pop ecx
push esi
push edi
call fcn.100aadfa
int3

Function at 0x100340f8
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x100bbdd5
call fcn.10058862
mov ebx, dword [ebp + 8]
xor edi, edi
xor eax, eax
mov dword [ebp - 4], edi
mov esi, edi
mov dword [ebp - 0x14], esi
mov word [ebx], ax
call fcn.10034efb
test eax, eax
je 0x10034129
call fcn.10033ab7
mov esi, eax
mov dword [ebp - 0x14], eax
push 0x104
push ebx
push esi
push edi
push 0x100c8784
call dword [sym.imp.SHELL32.dll_SHGetFolderPathEx]
mov esi, eax
test esi, esi
js 0x1003423f
jmp 0x10034179
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10034187
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
test esi, esi
jns 0x10034237
push ebx
push edi
push edi
push 0x1a
push edi
mov dword [ebp - 4], 2
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
jns 0x100341e8
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__pPath_
jmp 0x10034245
or dword [ebp - 4], 0xffffffff
test esi, esi
jns 0x10034237
push 1
push 0x1a
push ebx
push edi
mov dword [ebp - 4], 4
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, eax
test esi, esi
jns 0x10034237
push esi
push str.Error:_08x_in_SHGetSpecialFolderPathW_NULL__pPath__CSIDL_APPDATA__TRUE_
jmp 0x10034245
mov eax, esi
call fcn.100587c0
ret
push esi
push str.Error:_08x_in_SHGetFolderPathEx_FOLDERID_LocalAppDataLow__0__hToken__pPath__MAX_PATH_
call fcn.100386d5
pop ecx
pop ecx
push edi
push esi
call fcn.100aadfa
int3
Function at 0x10034258
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1040
call fcn.100588e0
mov eax, dword [0x1011ca44]
xor eax, esp
mov dword [esp + 0x103c], eax
push ebx
push ebp
push esi
push edi
push 0x1000
xor ebx, ebx
lea eax, [esp + 0x50]
push ebx
push eax
call fcn.1005c640
add esp, 0xc
mov dword [esp + 0x18], ebx
lea eax, [esp + 0x4c]
push 0x800
push eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x7fe
ja 0x1003435e
call fcn.100aadfa
test eax, eax
lea eax, [esp + 0x4c]
push eax
je 0x10034379
lea ecx, [esp + 0x18]
call fcn.10001727
push str._system32javaws.exe
lea ecx, [esp + 0x14]
call fcn.10001727
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
call fcn.1000187c
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x100342ed
call fcn.10001b26
mov edi, dword [sym.imp.kernel32.dll_GetModuleHandleW]
push str.Wow64DisableWow64FsRedirection
push 0x100eae10
call edi
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push eax
call esi
push str.Wow64RevertWow64FsRedirection
push 0x100eae44
mov ebp, eax
call edi
push eax
call esi
mov esi, dword [esp + 0x14]
mov edi, eax
test ebp, ebp
je 0x10034353
test edi, edi
je 0x10034353
lea eax, [esp + 0x18]
push eax
call ebp
test eax, eax
je 0x10034353
test esi, esi
je 0x10034338
mov ebx, dword [esi]
lea eax, [esp + 0x1c]
push eax
push ebx
call fcn.100aadfa
pop ecx
pop ecx
push dword [esp + 0x18]
test eax, eax
jne 0x10034351
call edi
jmp 0x100343c6
call edi
test esi, esi
je 0x1003435e
mov ecx, esi
call fcn.10001b26
xor eax, eax
mov ecx, dword [esp + 0x104c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100587af
add esp, 0x1040
ret
lea ecx, [esp + 0x14]
call fcn.10001727
push str._sysWow64javaws.exe
lea ecx, [esp + 0x18]
call fcn.10001727
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call fcn.1000187c
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x100343ab
call fcn.10001b26
mov esi, dword [esp + 0x10]
test esi, esi
je 0x100343b5
mov ebx, dword [esi]
lea eax, [esp + 0x1c]
push eax
push ebx
call fcn.100aadfa
pop ecx
pop ecx
test eax, eax
jne 0x10034353
test esi, esi
je 0x100343d1
mov ecx, esi
call fcn.10001b26
xor eax, eax
inc eax
jmp 0x10034360

Function at 0x10034516
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x1011ca44]
xor eax, ebp
mov dword [ebp + 0x94], eax
cmp dword [0x1011f4a4], 0
je 0x10034541
mov eax, dword [0x1011f4a8]
jmp 0x10034586
push esi
push 0x110
xor esi, esi
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.1005c640
add esp, 0xc
mov dword [ebp - 0x80], 0x114
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.kernel32.dll_GetVersionExW]
xor eax, eax
inc eax
cmp dword [ebp - 0x70], 2
jne 0x10034578
cmp dword [ebp - 0x7c], 6
jb 0x10034578
mov esi, eax
mov dword [0x1011f4a4], eax
mov eax, esi
mov dword [0x1011f4a8], esi
pop esi
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.100587af
add ebp, 0x98
leave
ret
Function at 0x10035bc5
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x22c]
sub esp, 0x2ac
mov eax, dword [0x1011ca44]
xor eax, ebp
mov dword [ebp + 0x228], eax
push ebx
push 0x208
xor ebx, ebx
lea eax, [ebp + 0x20]
push ebx
push eax
call fcn.1005c640
add esp, 0xc
lea eax, [ebp + 0x20]
push eax
push ebx
push ebx
push 0x2c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x10035c0f
xor eax, eax
jmp 0x10035d1f
xor eax, eax
mov dword [ebp + 0x18], ebx
push esi
mov word [ebp + 8], ax
lea ecx, [ebp + 8]
push edi
lea eax, [ebp + 0x20]
mov dword [ebp + 0x1c], 7
push eax
call fcn.10014023
push str.JavaJava_Updatejucheck.exe
lea ecx, [ebp + 8]
call fcn.100358b8
push eax
lea ecx, [ebp - 0x28]
call fcn.1000d575
lea ecx, [ebp + 8]
call fcn.100138cc
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 8]
push 0x22
push eax
call fcn.10035193
add esp, 0xc
mov esi, eax
mov ecx, esi
push 0x22
call fcn.100aadfa
push esi
lea ecx, [ebp - 0x10]
call fcn.1000d575
lea ecx, [ebp + 8]
call fcn.100138cc
push 0x44
pop esi
push esi
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.1005c640
xor eax, eax
mov dword [ebp - 0x80], esi
lea edi, [ebp - 0x3c]
mov dword [ebp + 0x14], ebx
stosd dword es:[edi], eax
lea ecx, [ebp - 0x10]
add esp, 0xc
mov dword [ebp + 0x18], ebx
cmp dword [ebp + 4], 8
mov dword [ebp + 0x1c], ebx
cmovae ecx, dword [ebp - 0x10]
push dword [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp]
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x10]
cmovae ecx, dword [ebp - 0x10]
push eax
push ecx
lea ecx, [ebp + 0x14]
call fcn.1003531d
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
push eax
lea ecx, [ebp + 0x14]
call fcn.10035572
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x80]
push ecx
push ebx
push ebx
push 0x8000000
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 1
push ebx
push ebx
push dword [ebp + 0x14]
push eax
call fcn.100aadfa
add esp, 0x28
lea ecx, [ebp + 0x14]
neg eax
sbb esi, esi
neg esi
call fcn.1003580e
lea ecx, [ebp - 0x10]
call fcn.100138cc
lea ecx, [ebp - 0x28]
call fcn.100138cc
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp + 0x228]
xor ecx, ebp
pop ebx
call fcn.100587af
add ebp, 0x22c
leave
ret
Function at 0x10035ec6
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x2010
call fcn.100588e0
mov eax, dword [0x1011ca44]
xor eax, esp
mov dword [esp + 0x200c], eax
push ebx
mov ebx, dword [esp + 0x2018]
lea eax, [esp + 0x10]
push ebp
push esi
push edi
mov edi, dword [esp + 0x2028]
mov ebp, 0x1000
xor esi, esi
mov dword [esp + 0x18], 1
push ebp
push esi
push eax
mov dword [esp + 0x1c], esi
call fcn.1005c640
push ebp
lea eax, [esp + 0x102c]
push esi
push eax
call fcn.1005c640
push ebx
call fcn.100aadfa
add esp, 0x1c
test eax, eax
je 0x10035f5f
push eax
push dword [esp + 0x2030]
push edi
call fcn.100aadfa
add esp, 0xc
test eax, eax
je 0x100360f8
xor eax, eax
mov ecx, dword [esp + 0x201c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100587af
add esp, 0x2010
ret
lea eax, [esp + 0x10]
push eax
push 0x20019
push esi
push dword [0x1011c794]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10035f44
lea eax, [esp + 0x202c]
push eax
push edi
lea eax, [esp + 0x20]
push eax
push esi
push ebx
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x100360dc
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x800
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
push esi
push 0x100edb2c
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10035fda
xor esi, esi
inc esi
jmp 0x100360dc
push dword [esp + 0x10]
call ebp
lea eax, [esp + 0x10]
push eax
push 0x20019
push esi
push str.SOFTWAREOracleJavaDeploy
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10035fd2
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x800
push eax
lea eax, [esp + 0x1020]
push eax
lea eax, [esp + 0x20]
push eax
push esi
push str.deployment.modified.timestamp
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10035fd2
mov dword [esp + 0x14], 0x800
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x101c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10036066
test dx, dx
je 0x10036062
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10036066
add eax, 4
add ecx, 4
test dx, dx
jne 0x10036040
mov eax, esi
jmp 0x1003606b
sbb eax, eax
or eax, 1
test eax, eax
js 0x100360f8
lea eax, [esp + 0x14]
push eax
push edi
lea eax, [esp + 0x20]
push eax
push esi
push ebx
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10035fd2
push dword [esp + 0x10]
call ebp
call fcn.100aadfa
test eax, eax
jne 0x100360f8
lea eax, [esp + 0x10]
push eax
push 0x20006
push esi
push dword [0x1011c794]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10035f44
push dword [esp + 0x14]
push edi
push 1
push esi
push ebx
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x100360e9
push dword [esp + 0x10]
call ebp
mov eax, esi
jmp 0x10035f46
push dword [esp + 0x10]
call ebp
push edi
push ebx
call fcn.100aadfa
pop ecx
pop ecx
xor eax, eax
inc eax
jmp 0x10035f46
Function at 0x100386e6
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1044
call fcn.100588e0
mov eax, dword [0x1011ca44]
xor eax, esp
mov dword [esp + 0x1040], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1058]
lea eax, [esp + 0x84c]
push edi
mov edi, dword [esp + 0x1058]
mov ebp, 0x800
push ebp
xor ebx, ebx
push ebx
push eax
call fcn.1005c640
push esi
push ebx
push edi
push 0xffffffffffffffff
lea eax, [esp + 0x86c]
push 0x400
push eax
call fcn.100aadfa
add esp, 0x24
test eax, eax
jns 0x1003874e
xor eax, eax
mov word [esp + 0x104e], ax
push 0x40
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.1005c640
lea eax, [esp + 0x1c]
push 0x20
push eax
call fcn.100aadfa
push 0x100f7a9c
lea eax, [esp + 0x28]
push 0x20
push eax
call fcn.100aadfa
push ebp
lea eax, [esp + 0x74]
push ebx
push eax
call fcn.1005c640
mov ecx, edi
add esp, 0x2c
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1003878c
sub ecx, edx
sar ecx, 1
cmp ecx, 6
jbe 0x100387dc
lea eax, [edi - 0xc]
mov edx, 0x100f7aa0
lea eax, [eax + ecx*2]
mov si, word [eax]
xor ecx, ecx
inc ecx
cmp si, word [edx]
jne 0x100387d4
test si, si
je 0x100387d0
mov si, word [eax + 2]
cmp si, word [edx + 2]
jne 0x100387d4
add eax, 4
add edx, 4
test si, si
jne 0x100387ab
mov eax, ebx
jmp 0x100387d8
sbb eax, eax
or eax, ecx
test eax, eax
je 0x100387de
mov ecx, ebx
lea esi, [esp + 0x10]
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x100387e5
sub esi, edx
lea eax, [esp + 0x850]
push eax
sar esi, 1
mov edx, 0x100f7ac0
test ecx, ecx
mov eax, str.Error:
cmove eax, edx
push eax
lea edi, [esi + esi]
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
push eax
push str.P:_04d_T:_04d__s_s
mov eax, 0x3ff
sub eax, esi
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x6c]
add eax, edi
push eax
call fcn.100aadfa
add esp, 0x20
test eax, eax
jns 0x10038857
mov eax, dword [0x100f7aec]
mov dword [esp + 0x846], eax
mov eax, dword [0x100f7af0]
mov dword [esp + 0x84a], eax
push edi
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x58]
push eax
call fcn.1005c0c0
lea edi, [esp + 0x5c]
add esp, 0xc
sub edi, 2
mov ax, word [edi + 2]
lea edi, [edi + 2]
cmp ax, bx
jne 0x10038871
mov eax, dword [0x100f7af4]
mov dword [edi], eax
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x1050]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100587af
add esp, 0x1044
ret
Function at 0x10038fe2
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x24
mov eax, dword [0x1011ca44]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
push str.advapi32.dll
call fcn.100aadfa
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov edi, eax
mov dword [esp], 0x100f9464
push edi
call esi
push 0x100f9480
push edi
mov ebx, eax
call esi
push 0x100f9494
push edi
mov ebp, eax
call esi
push str.EqualSid
push edi
mov dword [esp + 0x24], eax
call esi
push 0x100f94b4
push edi
mov dword [esp + 0x28], eax
call esi
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x18]
push ecx
xor eax, eax
mov word [esp + 0x30], 0x500
push eax
push eax
push eax
push eax
push eax
push eax
push 0x220
push 0x20
mov dword [esp + 0x4c], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x4c]
push 2
push eax
call ebx
lea eax, [esp + 0x14]
xor esi, esi
push eax
push 8
mov dword [esp + 0x1c], esi
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call ebp
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push esi
push 2
push dword [esp + 0x24]
mov dword [esp + 0x24], esi
call ebx
push dword [esp + 0x10]
call fcn.100aadfa
mov edi, eax
pop ecx
test edi, edi
je 0x100390ea
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push edi
push 2
push dword [esp + 0x24]
call ebx
cmp dword [edi], esi
jbe 0x100390da
mov ebp, dword [esp + 0x20]
lea ebx, [edi + 4]
push dword [ebx]
push dword [esp + 0x1c]
call ebp
test eax, eax
jne 0x100390da
inc esi
add ebx, 8
cmp esi, dword [edi]
jb 0x100390c6
xor eax, eax
cmp esi, dword [edi]
push edi
setne al
mov esi, eax
call fcn.100aadfa
pop ecx
push dword [esp + 0x14]
call dword [sym.imp.kernel32.dll_CloseHandle]
push dword [esp + 0x18]
call dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100587af
add esp, 0x24
ret

Function at 0x10039eee
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x1011ca44]
xor eax, ebp
mov dword [ebp + 0x188], eax
push esi
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x80], 0x200
push eax
push 1
xor esi, esi
push esi
push 0x100fc618
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10039f59
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push esi
push esi
push 0x100fc664
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x7c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10039f59
xor al, al
jmp 0x10039f5b
mov al, 1
mov ecx, dword [ebp + 0x188]
xor ecx, ebp
pop esi
call fcn.100587af
add ebp, 0x18c
leave
ret