joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10055210
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10224008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, 0xffff
mov esi, ecx
cmp ax, di
jne 0x10055245
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1019e7b8
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x1005527a
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x1005527a
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_protected:_wchar_t____thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::_Pninc_void_]
mov word [eax], di
mov ax, di
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1019e7b8
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push ebx
je 0x10055386
mov ebx, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [ebx], eax
jne 0x100552a5
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [ebx], ecx
mov eax, dword [esi + 0x1c]
sar edx, 1
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x100552df
push dword [esi + 0x4c]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
mov ecx, 0xffff
add esp, 8
cmp ax, cx
movzx eax, di
jne 0x1005538b
pop ebx
pop edi
mov eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1019e7b8
mov esp, ebp
pop ebp
ret 4
movzx eax, di
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_wchar_t__char__struct__Mbstatet_::out_struct__Mbstatet___wchar_t_const___wchar_t_const___wchar_t_const____char___char___char___const]
test eax, eax
js 0x10055386
cmp eax, 1
jle 0x10055346
cmp eax, 3
jne 0x10055386
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
mov ecx, 0xffff
add esp, 8
cmp ax, cx
movzx eax, di
jne 0x1005538b
pop ebx
pop edi
mov eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1019e7b8
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub ebx, eax
je 0x10055364
push dword [esi + 0x4c]
push ebx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp ebx, eax
jne 0x10055386
lea eax, [ebp - 0x28]
mov byte [esi + 0x3e], 1
cmp dword [ebp - 0x30], eax
je 0x10055386
pop ebx
mov ax, di
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1019e7b8
mov esp, ebp
pop ebp
ret 4
mov eax, 0xffff
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.1019e7b8
mov esp, ebp
pop ebp
ret 4
Function at 0x100556c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10224008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x1005576f
cmp byte [esi + 0x3e], 0
je 0x1005576f
mov eax, dword [esi]
push 0xffff
call dword [eax + 0xc]
mov ecx, 0xffff
cmp cx, ax
je 0x10055724
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x10055736
sub eax, 1
je 0x1005573a
sub eax, 2
je 0x1005576f
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1019e7b8
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3e], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10055758
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10055724
cmp byte [esi + 0x3e], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1019e7b8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.1019e7b8
mov esp, ebp
pop ebp
ret

Function at 0x10067f10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b3760
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x10224008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
mov edi, dword [ebp + 8]
test eax, eax
je 0x10067fef
cmp byte [eax + 0x54], 0
je 0x10067fef
add eax, 0x1c
lea ecx, [ebp - 0x38]
push eax
call fcn.10004030
mov dword [ebp - 4], 0
mov eax, dword [esi + 4]
cmp dword [eax + 0x14], 8
jb 0x10067f72
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10067fe0
push ecx
mov edx, edi
lea ecx, [ebp - 0x2c]
call fcn.100b7570
add esp, 4
push 2
push 0
push 0
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x30]
push 0
push ecx
push dword [ebp - 0x1c]
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.10005050
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.10004080
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1019e7b8
mov esp, ebp
pop ebp
ret 4
Function at 0x10068110
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x10224008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x410
lea eax, [ebp - 0x414]
mov edi, edx
push 0
push eax
mov esi, ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x418], 0
lea eax, [ebp - 0x418]
push eax
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x10068185
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x418]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x10068197
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x10068185
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1019e7b8
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x414]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x100681a0
sub edx, esi
lea eax, [ebp - 0x414]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.100055f0
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x100681cf
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.1019e7b8
mov esp, ebp
pop ebp
ret
Function at 0x100681f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b37b1
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x10224008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x2c], 0
cmp dword [esi + 0x14], 8
jb 0x10068234
mov edx, dword [esi]
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x1006824e
mov eax, edx
nop dword [eax]
cmp word [eax], 0x25
je 0x10068282
add eax, 2
sub ecx, 1
jne 0x10068240
push esi
mov ecx, edi
call fcn.10006ac0
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 1
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 - 0x10]
xor ecx, ebp
call fcn.1019e7b8
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x1006824e
sub eax, edx
sar eax, 1
cmp eax, 0xffffffff
je 0x1006824e
push esi
lea ecx, [ebp - 0x28]
call fcn.10006ac0
mov dword [ebp - 4], 1
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x100682a9
mov eax, dword [esi]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x100682d8
push esi
mov ecx, edi
call fcn.10006ac0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], 1
mov byte [ebp - 4], 0
call fcn.10004f10
jmp 0x10068264
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1019f3bd
add esp, 4
mov ebx, eax
cmp dword [esi + 0x14], 8
jb 0x100682fe
mov esi, dword [esi]
mov ecx, dword [ebp - 0x30]
inc ecx
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x10068339
cmp eax, dword [ebp - 0x30]
ja 0x10068339
xor ecx, ecx
mov word [ebx + eax*2], cx
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10068320
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.100055f0
push ebx
call fcn.1019f0a0
add esp, 4
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.10006a80
jmp 0x100682c3
Function at 0x1006f010
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0xc
push esi
mov esi, 0x20019
sub eax, 0
je 0x1006f030
sub eax, 1
jne 0x1006f035
mov esi, 0x20119
jmp 0x1006f035
mov esi, 0x20219
cmp dword [edx + 0x14], 8
jb 0x1006f03d
mov edx, dword [edx]
lea eax, [ebp + 0x10]
push eax
push esi
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1006f0a5
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1006f0a5
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x1006f069
mov eax, dword [eax]
lea edx, [ebp - 4]
push edx
lea edx, [ebp - 8]
push edx
lea edx, [ebp - 0xc]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x1006f08d
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [edx], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1006f09b
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete al
mov esp, ebp
pop ebp
ret
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1006f2d0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b40db
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x10224008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov dword [ebp - 0x234], 0
mov edi, 0x20019
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x1006f327
sub eax, 1
jne 0x1006f32c
mov edi, 0x20119
jmp 0x1006f32c
mov edi, 0x20219
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 8
jb 0x1006f33b
mov edx, dword [edx]
lea eax, [ebp - 0x234]
push eax
push edi
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1006f42d
xor edi, edi
mov dword [ebp - 0x238], edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push 0x200
push 0
lea eax, [ebp - 0x218]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x23c], 0x100
mov eax, edi
inc edi
mov dword [ebp - 0x238], edi
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x23c]
push ecx
lea ecx, [ebp - 0x218]
push ecx
push eax
push dword [ebp - 0x234]
call ebx
test eax, eax
jne 0x1006f413
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.10004fc0
mov byte [ebp - 4], 1
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x230]
push eax
cmp dword [esi + 8], ecx
je 0x1006f3f1
call fcn.10006a80
add dword [esi + 4], 0x18
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.10004f10
jmp 0x1006f363
push ecx
mov ecx, esi
call fcn.1006e770
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.10004f10
jmp 0x1006f363
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x1006f42b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1019e7b8
mov esp, ebp
pop ebp
ret
Function at 0x1006f450
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], 0
push ebx
mov bl, 1
push esi
mov esi, 0x20019
sub eax, 0
je 0x1006f47a
sub eax, 1
jne 0x1006f47f
mov esi, 0x20119
jmp 0x1006f47f
mov esi, 0x20219
cmp dword [edx + 0x14], 8
jb 0x1006f487
mov edx, dword [edx]
lea eax, [ebp - 4]
push eax
push esi
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1006f4dd
mov eax, dword [ebp - 4]
test eax, eax
je 0x1006f4dd
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 8], 0
mov dword [ebp + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x1006f4bc
mov ecx, dword [esi]
lea edx, [ebp + 0x10]
push edx
push 0
lea edx, [ebp - 8]
push edx
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1006f4e5
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x1006f4fc
mov ecx, dword [ebp + 0xc]
push eax
push 0x101cdc64
call fcn.100055f0
jmp 0x1006f567
add eax, 2
push edi
push eax
call fcn.1019f3bd
mov edi, eax
mov eax, dword [ebp + 0x10]
add eax, 2
push eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
cmp dword [esi + 0x14], 8
jb 0x1006f522
mov esi, dword [esi]
lea eax, [ebp + 0x10]
push eax
push edi
lea eax, [ebp - 8]
push eax
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1006f53f
xor bl, bl
jmp 0x1006f55d
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1006f544
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp + 0xc]
push edi
call fcn.100055f0
push edi
call fcn.1019f0a0
add esp, 4
pop edi
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x1006f575
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1006f5a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b4126
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x10224008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov eax, edi
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x834], ebx
cmp dword [edi + 0x14], 8
jb 0x1006f5e7
mov eax, dword [edi]
push eax
lea ecx, [ebp - 0x828]
call fcn.10004fc0
push dword [ebp + 0x14]
lea eax, [ebp - 0x828]
mov dword [ebp - 4], 0
push eax
push ebx
call fcn.1006f0b0
lea ecx, [ebp - 0x828]
mov dword [ebp - 4], 0xffffffff
mov bl, al
call fcn.10004f10
test bl, bl
jne 0x1006f629
xor al, al
jmp 0x1006f763
push 0x800
xor ebx, ebx
mov dword [ebp - 0x82c], 0
lea eax, [ebp - 0x810]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp + 0x14]
add esp, 0xc
mov dword [ebp - 0x830], 0x400
mov ecx, 0x20019
sub eax, ebx
je 0x1006f66c
sub eax, 1
jne 0x1006f671
mov ecx, 0x20119
jmp 0x1006f671
mov ecx, 0x20219
cmp dword [edi + 0x14], 8
jb 0x1006f679
mov edi, dword [edi]
lea eax, [ebp - 0x82c]
push eax
push ecx
push 0
push edi
push dword [ebp - 0x834]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1006f622
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x810]
push eax
push 0
push dword [ebp - 0x82c]
call edi
cmp eax, 0x103
je 0x1006f750
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x828]
call fcn.10004fc0
lea ecx, [ebp - 0x828]
mov dword [ebp - 4], 1
call fcn.100b5cd0
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x828]
push ecx
cmp dword [esi + 8], eax
je 0x1006f701
mov ecx, eax
call fcn.10006ac0
add dword [esi + 4], 0x18
jmp 0x1006f709
push eax
mov ecx, esi
call fcn.1005e7c0
mov dword [ebp - 0x830], 0x400
lea ecx, [ebp - 0x828]
inc ebx
mov dword [ebp - 4], 0xffffffff
call fcn.10004f10
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x810]
push eax
push ebx
push dword [ebp - 0x82c]
call edi
cmp eax, 0x103
jne 0x1006f6c1
mov eax, dword [ebp - 0x82c]
test eax, eax
je 0x1006f761
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1019e7b8
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100736d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b49ee
mov eax, dword fs:[0]
push eax
mov eax, 0x1058
call fcn.101a0f00
mov eax, dword [0x10224008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1048], esi
mov dword [ebp - 0x104c], esi
lea ecx, [ebp - 0x1028]
mov dword [ebp - 0x1044], 0
call fcn.10073230
lea ecx, [ebp - 0x1028]
mov dword [ebp - 4], 1
call fcn.100b2b00
test al, al
jne 0x10073754
push 0x101cdc64
mov ecx, esi
call fcn.10004fc0
mov dword [ebp - 0x1044], 1
jmp 0x1007386d
push str.config.ini
lea ecx, [ebp - 0x1064]
call fcn.10004fc0
lea eax, [ebp - 0x1064]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x1028]
lea ecx, [ebp - 0x1040]
call fcn.100b51b0
add esp, 4
lea ecx, [ebp - 0x1064]
mov byte [ebp - 4], 4
call fcn.10004f10
push 0x1000
lea eax, [ebp - 0x1010]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1040]
cmp dword [ebp - 0x102c], 8
cmovae eax, dword [ebp - 0x1040]
push eax
push 0x800
lea eax, [ebp - 0x1010]
push eax
push 0x101cdc64
push 0x101dea7c
push str.Install
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x10073848
xor eax, eax
cmp word [ebp - 0x1010], ax
je 0x10073848
nop dword [eax]
inc eax
cmp word [ebp + eax*2 - 0x1010], 0
jne 0x100737f0
test eax, eax
je 0x10073848
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x1064]
call fcn.10004fc0
lea eax, [ebp - 0x1064]
mov byte [ebp - 4], 5
push eax
lea edx, [ebp - 0x1028]
mov ecx, esi
call fcn.100b51b0
add esp, 4
mov dword [ebp - 0x1044], 1
lea ecx, [ebp - 0x1064]
mov byte [ebp - 4], 4
call fcn.10004f10
jmp 0x1007385e
push 0x101cdc64
mov ecx, esi
call fcn.10004fc0
mov dword [ebp - 0x1044], 1
lea ecx, [ebp - 0x1040]
mov byte [ebp - 4], 1
call fcn.10004f10
lea ecx, [ebp - 0x1028]
mov byte [ebp - 4], 0
call fcn.10004f10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1019e7b8
mov esp, ebp
pop ebp
ret
Function at 0x1007b0b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b59e8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x10224008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, edx
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
lea ecx, [ebp - 0x50]
call fcn.10004fc0
mov byte [ebp - 4], 2
push 1
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x50]
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.1006f2d0
add esp, 8
mov edi, eax
test edi, edi
je 0x1007b1ea
cmp dword [0x10224efc], 0
je 0x1007b1ea
push 0
mov ecx, 0x10224ef8
call fcn.10067230
mov eax, dword [0x10224efc]
cmp byte [eax + 0x54], 0
je 0x1007b1ea
cmp dword [eax + 0x58], 2
jb 0x1007b1ea
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x38]
call fcn.10005010
mov byte [ebp - 4], 3
lea eax, [ebp - 0x50]
cmp dword [ebp - 0x3c], 8
cmovae eax, dword [ebp - 0x50]
push eax
push edi
push 0x101df220
lea eax, [ebp - 0x38]
push eax
call fcn.100b6030
add esp, 0x10
push 0x1cc
push 0x101df3e0
push str.d:jenkinsworkspacepc_2345softmgr_build_softmgrmain_srccommon_rcsoftmgrutility.cpp
lea eax, [ebp - 0x38]
push eax
push 2
mov ecx, 0x10224ef8
call fcn.10067bd0
lea eax, [ebp - 0x38]
cmp dword [ebp - 0x24], 8
cmovae eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test bl, bl
je 0x1007b1de
lea eax, [ebp - 0x38]
push eax
mov ecx, 0x10224ef8
call fcn.10067f10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.10004f10
push esi
push ecx
push 1
lea eax, [ebp - 0x20]
push eax
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.1007a980
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.10004f10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.10048a60
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1019e7b8
mov esp, ebp
pop ebp
ret
Function at 0x1007e9b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10224008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x1007e9e6
mov eax, dword [esi]
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1007ea35
lea edx, [ebp - 0x20c]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1007ea06
sub edx, ecx
lea eax, [ebp - 0x20c]
sar edx, 1
mov ecx, esi
push edx
push eax
call fcn.100055f0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1019e7b8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.1019e7b8
mov esp, ebp
pop ebp
ret
Function at 0x10088890
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.101a0f00
mov eax, dword [0x10224008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x1008], eax
push edi
mov edi, dword [ebp + 0xc]
cmp byte [esi + 0x18], 0
jne 0x100888d9
pop edi
pop esi
mov eax, 0xc0011151
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1019e7b8
mov esp, ebp
pop ebp
ret 0xc
push 0x1000
lea eax, [ebp - 0x1004]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x100888f7
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x100888ff
mov edi, dword [edi]
cmp dword [ebx + 0x14], 8
jb 0x10088907
mov ebx, dword [ebx]
push esi
push 0x800
lea eax, [ebp - 0x1004]
push eax
push 0x101cdc64
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x1008893d
pop edi
pop esi
mov eax, 0xc0011152
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1019e7b8
mov esp, ebp
pop ebp
ret 0xc
lea edx, [ebp - 0x1004]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10088946
mov ecx, dword [ebp - 0x1008]
lea eax, [ebp - 0x1004]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.100055f0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1019e7b8
mov esp, ebp
pop ebp
ret 0xc