joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100065b0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0x14], edi
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
jb 0x100065d9
mov eax, dword [edi]
jmp 0x100065db
mov eax, edi
push ecx
push eax
lea edx, [ebp - 8]
lea ecx, [ebp - 4]
call fcn.10012f90
mov esi, dword [ebp - 4]
add esp, 8
mov dword [ebp - 4], esi
test eax, eax
je 0x1000661a
test esi, esi
je 0x1000661a
lea edx, [ebp - 8]
mov ecx, esi
call fcn.10012ab0
test al, al
je 0x1000660b
mov al, 1
jmp 0x1000661c
push esi
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
xor esi, esi
mov dword [ebp - 4], esi
xor al, al
movzx ebx, al
mov dword [ebp - 0xc], ebx
test al, al
je 0x10006695
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10006692
xor esi, esi
test ebx, ebx
je 0x10006688
mov edi, dword [ebp - 4]
lea eax, [esi + 4]
cmp eax, ebx
jae 0x10006685
mov ecx, dword [esi + edi]
lea eax, [esi + edi]
mov dword [ebp - 8], eax
lea eax, [ecx + esi]
cmp eax, ebx
ja 0x10006685
push ecx
call dword [sym.imp.iCommu.dll_ICOM_0003]
mov ecx, eax
add esp, 4
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x10006685
mov eax, dword [ebp - 8]
push dword [eax]
push eax
push ecx
call dword [sym.imp.MSVCR110.dll_memmove]
mov ecx, dword [ebp - 0x10]
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
call fcn.10006ad0
mov eax, dword [ebp - 8]
add esi, dword [eax]
cmp esi, ebx
jb 0x10006636
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 4]
mov ebx, 1
jmp 0x10006695
mov ebx, dword [ebp - 0xc]
test esi, esi
je 0x100066a3
push esi
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
cmp dword [edi + 0x14], 8
jb 0x100066ad
mov eax, dword [edi]
jmp 0x100066af
mov eax, edi
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [edi + 0x14], 8
jb 0x100066c3
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10007d10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10032818
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x10048034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [edi + 8]
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x10007e06
push ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp + 8], 0
mov dword [ebp - 4], 0
je 0x10007dc3
cmp dword [edi + 0x4c], 0
je 0x10007dc3
lea eax, [ebp - 0x20]
push eax
lea ecx, [edi + 0x3c]
call fcn.10006c30
mov ebx, dword [eax]
test ebx, ebx
je 0x10007d79
mov ebx, dword [ebx]
mov edx, dword [eax + 8]
mov eax, dword [ebx + 8]
dec eax
mov ecx, edx
shr ecx, 2
and ecx, eax
mov eax, dword [ebx + 4]
and edx, 3
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x10007da1
push eax
call dword [sym.imp.iCommu.dll_ICOM_0005]
add esp, 4
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x10007dba
dec eax
mov dword [edi + 0x4c], eax
jne 0x10007db7
mov dword [edi + 0x48], 0
jmp 0x10007dba
inc dword [edi + 0x48]
cmp dword [edi + 0x4c], 0
jne 0x10007d65
mov ebx, dword [ebp - 0x10]
cmp dword [edi + 0x24], 8
jb 0x10007dce
mov eax, dword [edi + 0x10]
jmp 0x10007dd1
lea eax, [edi + 0x10]
test eax, eax
je 0x10007df2
cmp word [eax], 0
je 0x10007df2
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10007df2
lea ecx, [edi + 0x3c]
lea edx, [edi + 0x10]
call fcn.100065b0
cmp dword [edi + 0x4c], 0
je 0x10007dff
mov ecx, edi
call fcn.10007c10
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10007f10
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10048034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov esi, ecx
call sub.MSVCR110.dll_memset
add esi, 0x50
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x10007f54
mov esi, dword [esi]
push 0x10037e4c
push esi
push str._s_s
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_swprintf_s]
add esp, 0x14
lea eax, [ebp - 0x20c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
call dword [sym.imp.MSVCR110.dll__time64]
push eax
call dword [sym.imp.MSVCR110.dll_srand]
mov ebx, dword [sym.imp.MSVCR110.dll_rand]
add esp, 8
jmp 0x10007fa0
call ebx
movzx esi, ax
push 0x10037e78
shl esi, 0x10
call ebx
movzx eax, ax
or eax, esi
push eax
lea eax, [ebp - 0x20c]
push eax
push str._s_08X_s
push 0x104
push edi
call dword [sym.imp.MSVCR110.dll_swprintf_s]
add esp, 0x18
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10007fa0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002f746
mov esp, ebp
pop ebp
ret 8
Function at 0x100090d0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10048034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov esi, ecx
call sub.MSVCR110.dll_memset
add esi, 0x50
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x1000910f
mov esi, dword [esi]
push str.bugreport.ini
push esi
push str._slog_s
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_swprintf_s]
add esp, 0x14
lea eax, [ebp - 0x20c]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1002f746
mov esp, ebp
pop ebp
ret
Function at 0x1000ab40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x10048034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
call fcn.1000c390
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x200
lea ecx, [ebp - 0x420]
push ecx
or eax, 1
push eax
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstalliSafe
push 0x80000002
mov dword [ebp - 0x420], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1000aba6
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f746
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x41c]
push eax
push 0
push str.Installer
push dword [ebp - 0x420]
mov dword [ebp - 0x418], 0x410
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000ab93
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000abe5
sub ecx, edx
xor eax, eax
sar ecx, 1
je 0x1000ac27
cmp word [ebp - 0x414], ax
cmove ecx, eax
push ecx
lea eax, [ebp - 0x414]
push eax
mov ecx, esi
call fcn.100019a0
mov eax, dword [ebp - 0x420]
test eax, eax
je 0x1000ac22
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1002f746
mov esp, ebp
pop ebp
ret 4

Function at 0x1000ac40
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10048034]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.1000c390
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x200
lea ecx, [ebp - 8]
push ecx
or eax, 0x2001f
push eax
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstalliSafe
push 0x80000002
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000ac96
push str.Installer
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp - 8]
test eax, eax
je 0x1000aca4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.1002f746
mov esp, ebp
pop ebp
ret
Function at 0x1000ba90
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
mov eax, dword [0x10048034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x100493ac]
cmp eax, 0xffffffff
jne 0x1000bc83
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call sub.MSVCR110.dll_memset
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.MSVCR110.dll_memset
add esp, 0x18
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call dword [sym.imp.MSVCR110.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x1000bb1a
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
push 0x1003f17c
lea eax, [ebp - 0x414]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_wcscat_s]
add esp, 0x18
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000bb7b
mov dword [0x100493ac], 1
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f746
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov dword [0x100493ac], 0
call sub.MSVCR110.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x20c]
call fcn.1000b9c0
test eax, eax
je 0x1000bc7e
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call sub.MSVCR110.dll_memset
push 0x208
lea eax, [ebp - 0x824]
push 0
push eax
mov dword [ebp - method.CProfileIni.virtual_0], vtable.CProfileIni.0
call sub.MSVCR110.dll_memset
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x824]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
add esp, 0x24
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000bc43
lea eax, [ebp - 0x824]
push eax
push 0x104
lea eax, [ebp - 0x61c]
push eax
push 0x10036bc0
push str.promote
push str.general
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x61c]
push 0x1003f1a4
push eax
call dword [sym.imp.MSVCR110.dll__wcsicmp]
mov ecx, dword [0x100493ac]
add esp, 8
test eax, eax
mov edx, 1
cmove ecx, edx
mov dword [0x100493ac], ecx
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f746
mov esp, ebp
pop ebp
ret
mov eax, dword [0x100493ac]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f746
mov esp, ebp
pop ebp
ret
Function at 0x1000c190
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x10048034]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.1000ba90
test eax, eax
je 0x1000c1bf
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f746
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x414]
call fcn.1000b9c0
test eax, eax
je 0x1000c2b8
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.MSVCR110.dll_memset
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
mov dword [ebp - method.CProfileIni.virtual_0], vtable.CProfileIni.0
call sub.MSVCR110.dll_memset
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
add esp, 0x24
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000c27d
lea eax, [ebp - 0x61c]
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x10036bc0
push str.promote
push str.general
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x20c]
push 0x1003f1a4
push eax
call dword [sym.imp.MSVCR110.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x1000c1ac
lea eax, [ebp - 0x20c]
push 0x1003f1d8
push eax
call dword [sym.imp.MSVCR110.dll__wcsicmp]
add esp, 8
test eax, eax
mov eax, 3
je 0x1000c2bd
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f746
mov esp, ebp
pop ebp
ret

Function at 0x1000c420
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
mov edi, ecx
mov dword [ebp - 0xc], edx
test edi, edi
je 0x1000c4c6
test edx, edx
je 0x1000c4c6
push ebx
mov ebx, dword [edi + 0x3c]
add ebx, edi
je 0x1000c44b
lea eax, [ebx + 0x78]
test eax, eax
jne 0x1000c453
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [eax]
add eax, edi
push esi
mov ecx, dword [eax + 0x1c]
mov esi, dword [eax + 0x20]
add ecx, edi
add esi, edi
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax + 0x24]
mov eax, dword [eax + 0x18]
add ecx, edi
mov dword [ebp - 4], esi
xor esi, esi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x1000c4aa
lea esp, [esp]
movsx eax, word [ecx + esi*2]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
push edx
mov eax, dword [eax + esi*4]
add eax, edi
push eax
call dword [sym.imp.MSVCR110.dll__stricmp]
add esp, 8
test eax, eax
je 0x1000c4b3
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
inc esi
cmp esi, dword [ebp - 8]
jb 0x1000c480
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
pop esi
mov eax, dword [ecx + eax*4]
add eax, dword [ebx + 0x34]
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x1000c710
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x10048034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
je 0x1000c938
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x144], 0x11c
call fcn.1000c630
test eax, eax
jne 0x1000c764
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x144], 0x114
call fcn.1000c630
test eax, eax
je 0x1000c938
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000c787
lea ecx, [ebp - 0x28]
push ecx
call eax
jmp 0x1000c791
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x1003f32c
push 0x14
push esi
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
mov eax, dword [ebp - 0x134]
add esp, 0xc
sub eax, 2
jne 0x1000c924
cmp dword [ebp - 0x140], 6
push edi
mov edi, dword [sym.imp.MSVCR110.dll_wcscat_s]
jne 0x1000c83a
cmp dword [ebp - 0x13c], 3
jne 0x1000c7d7
push 0x1003f334
push 0x14
push esi
call edi
add esp, 0xc
cmp dword [ebp - 0x13c], 2
jne 0x1000c7ed
push 0x1003f33c
push 0x14
push esi
call edi
add esp, 0xc
cmp dword [ebp - 0x13c], 1
jne 0x1000c810
cmp byte [ebp - 0x2a], 1
jne 0x1000c803
push 0x1003f340
jmp 0x1000c808
push 0x1003f344
push 0x14
push esi
call edi
add esp, 0xc
cmp dword [ebp - 0x13c], 0
jne 0x1000c833
cmp byte [ebp - 0x2a], 1
jne 0x1000c826
push str.vista
jmp 0x1000c82b
push str.2008
push 0x14
push esi
call edi
add esp, 0xc
cmp dword [ebp - 0x140], 6
jb 0x1000c85f
mov ax, word [ebp - 0x28]
cmp ax, 9
jne 0x1000c84d
push str._x64
jmp 0x1000c857
test ax, ax
jne 0x1000c85f
push str._x86
push 0x14
push esi
call edi
add esp, 0xc
cmp dword [ebp - 0x140], 5
jne 0x1000c923
cmp dword [ebp - 0x13c], 2
jne 0x1000c8ee
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x1000c888
push str.2003_r2
jmp 0x1000c8ac
mov eax, 0x2000
cmp word [ebp - 0x2c], ax
je 0x1000c8a7
cmp byte [ebp - 0x2a], 1
jne 0x1000c8a7
cmp word [ebp - 0x28], 9
jne 0x1000c8a7
push str.xp_x64
jmp 0x1000c8ac
push str.2003
push 0x14
push esi
call edi
add esp, 0xc
cmp byte [ebp - 0x2a], 1
je 0x1000c8e5
mov ax, word [ebp - 0x28]
cmp ax, 6
jne 0x1000c8cb
push str._ia64
jmp 0x1000c8dd
cmp ax, 9
jne 0x1000c8d8
push str._x64
jmp 0x1000c8dd
push str._x86
push 0x14
push esi
call edi
add esp, 0xc
cmp dword [ebp - 0x140], 5
jne 0x1000c923
cmp dword [ebp - 0x13c], 1
jne 0x1000c90d
push 0x1003f3bc
push 0x14
push esi
call edi
add esp, 0xc
cmp dword [ebp - 0x140], 5
jne 0x1000c923
cmp dword [ebp - 0x13c], 0
jne 0x1000c923
push str.2000
push 0x14
push esi
call edi
add esp, 0xc
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f746
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.1002f746
mov esp, ebp
pop ebp
ret
Function at 0x1000c950
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x10048034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 0x18]
or eax, 0x20019
push eax
push 0
push str.SoftwareiSafe
push 0x80000002
mov dword [ebp - 8], 1
xor bl, bl
mov dword [ebp - 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000c9c3
push dword [ebp - 0x10]
lea eax, [ebp - 8]
push edi
push eax
push 0
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, bl
mov ecx, 1
test eax, eax
cmove ebx, ecx
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x1000c9d1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.1002f746
mov esp, ebp
pop ebp
ret

Function at 0x1000c9f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10048034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0x18]
or eax, 0x2001f
push eax
push 0
push str.SoftwareiSafe
push 0x80000002
xor bl, bl
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000ca5c
mov eax, dword [ebp - 0xc]
push dword [eax]
push edi
push 1
push 0
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx ebx, bl
mov ecx, 1
test eax, eax
cmove ebx, ecx
mov eax, dword [ebp - 8]
test eax, eax
je 0x1000ca6a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.1002f746
mov esp, ebp
pop ebp
ret
Function at 0x10010e40
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1003339e
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x10048034]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push 0xc
mov dword [esp + 0x18], ebx
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
mov dword [esp + 0x30], ebx
test edi, edi
je 0x10010ede
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
mov dword [edi + 8], ebx
call fcn.10011570
mov esi, eax
mov byte [esp + 0x30], 1
mov ebx, 1
push 0x2728
mov ecx, edi
mov dword [esp + 0x18], ebx
call dword [sym.imp.curlpp.dll_public:_void___thiscall_curlpp::OptionBase::constructor_enum_CURLoption_]
mov dword [esp + 0x30], 2
push esi
mov ecx, edi
mov dword [edi], vtable.curlpp::Option_class_std::list_class_utilspp::clone_ptr_class_curlpp::FormPart___class_std::allocator_class_utilspp::clone_ptr_class_curlpp::FormPart____.0
mov dword [edi + 8], 0
call fcn.100114b0
mov dword [edi], vtable.curlpp::OptionTrait_class_std::list_class_utilspp::clone_ptr_class_curlpp::FormPart___class_std::allocator_class_utilspp::clone_ptr_class_curlpp::FormPart_____10024_.0
jmp 0x10010ee0
xor edi, edi
test bl, 1
je 0x10010efb
lea ecx, [esp + 0x1c]
call fcn.1000f250
push dword [esp + 0x1c]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10012a60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov edx, ecx
shr edx, 8
sub dl, 0x2b
lea eax, [ecx + 7]
or dl, al
mov eax, ecx
shr eax, 0x10
and dl, al
and dl, 0x55
shr ecx, 0x18
xor dl, cl
test edi, edi
jne 0x10012a92
pop edi
xor al, al
pop esi
pop ebp
ret
xor eax, eax
test esi, esi
je 0x10012aa5
xor byte [eax + edi], dl
lea ecx, [eax + edi]
add dl, al
inc eax
cmp eax, esi
jb 0x10012a98
pop edi
mov al, 1
pop esi
pop ebp
ret
Function at 0x10012ef0
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10048034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x80
push esi
mov edi, edx
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10012f4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f746
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 8]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
test edi, edi
je 0x10012f6d
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
jmp 0x10012f73
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002f746
mov esp, ebp
pop ebp
ret

Function at 0x10012f90
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10048034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10012fe1
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f746
mov esp, ebp
pop ebp
ret
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x10013003
push edi
call fcn.1002f4c2
mov ecx, eax
add esp, 4
mov dword [ebp - 0xc], ecx
test ecx, ecx
jne 0x1001301c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f746
mov esp, ebp
pop ebp
ret
push esi
xor esi, esi
test edi, edi
je 0x10013047
push 0
lea eax, [ebp - 8]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ecx]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10013047
add esi, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
cmp esi, edi
jb 0x10013023
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
cmp esi, edi
pop esi
jae 0x10013072
push eax
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f746
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
mov dword [eax], edi
pop edi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.1002f746
mov esp, ebp
pop ebp
ret