joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000709d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10010290]
jne 0x100070a7
repz ret
jmp fcn.1000908a

Function at 0x10008e6b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10004b8a
and dword [ebp - 4], 0
cmp dword [0x10011710], 0
mov ebx, eax
jne 0x10008f1c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10008fcd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10008fcd
push eax
call fcn.10004b18
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10011710], eax
call esi
push eax
call fcn.10004b18
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10011714], eax
call esi
push eax
call fcn.10004b18
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10011718], eax
call esi
push eax
call fcn.10004b18
pop ecx
mov dword [0x10011720], eax
test eax, eax
je 0x10008f1c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10004b18
pop ecx
mov dword [0x1001171c], eax
mov eax, dword [0x1001171c]
cmp eax, ebx
je 0x10008f74
cmp dword [0x10011720], ebx
je 0x10008f74
push eax
call fcn.10004b93
push dword [0x10011720]
mov esi, eax
call fcn.10004b93
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10008f74
test edi, edi
je 0x10008f74
call esi
test eax, eax
je 0x10008f6b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10008f6b
test byte [ebp - 0xc], 1
jne 0x10008f74
or dword [ebp + 0x10], 0x200000
jmp 0x10008fad
mov eax, dword [0x10011714]
cmp eax, ebx
je 0x10008fad
push eax
call fcn.10004b93
pop ecx
test eax, eax
je 0x10008fad
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10008fad
mov eax, dword [0x10011718]
cmp eax, ebx
je 0x10008fad
push eax
call fcn.10004b93
pop ecx
test eax, eax
je 0x10008fad
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10011710]
call fcn.10004b93
pop ecx
test eax, eax
je 0x10008fcd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10008fcf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000a150
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1000a1f7
cmp dword [ebp + 0x14], 1
jne 0x1000a1c2
mov ecx, dword [ebp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
mov eax, dword [ebp + 0x1c]
push eax
push 1
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
sete al
mov byte [ebp - 0xd], al
jmp 0x1000a1ed
cmp dword [ebp + 0x14], 4
jne 0x1000a1ed
push 4
lea ecx, [ebp + 0x18]
push ecx
push 4
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
sete cl
mov byte [ebp - 0xd], cl
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret

Function at 0x1000a200
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1000a221
xor eax, eax
jmp 0x1000a286
lea ecx, [ebp - 0x10]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
push 0
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1000a281
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x1000a27d
mov eax, 1
jmp 0x1000a286
xor eax, eax
jmp 0x1000a286
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x1000a980
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov dword [ebp - 0x508], 0
push 0x2c8
push 0
lea eax, [ebp - 0x504]
push eax
call fcn.10003190
add esp, 0xc
mov dword [ebp - 0x7d8], 0
xor ecx, ecx
mov word [ebp - 0x778], cx
push 0x206
push 0
lea edx, [ebp - 0x776]
push edx
call fcn.10003190
add esp, 0xc
xor eax, eax
mov word [ebp - 0x200], ax
push 0x1fe
push 0
lea ecx, [ebp - 0x1fe]
push ecx
call fcn.10003190
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x518], eax
mov edx, dword [ebp - 0x518]
mov dword [ebp - 0x810], edx
lea eax, [ebp - 0x200]
mov dword [ebp - 0x814], eax
mov ecx, dword [ebp - 0x814]
mov dword [ebp - 0x818], ecx
mov edx, dword [ebp - 0x810]
mov ax, word [edx]
mov word [ebp - 0x81a], ax
mov ecx, dword [ebp - 0x814]
mov dx, word [ebp - 0x81a]
mov word [ecx], dx
mov eax, dword [ebp - 0x810]
add eax, 2
mov dword [ebp - 0x810], eax
mov ecx, dword [ebp - 0x814]
add ecx, 2
mov dword [ebp - 0x814], ecx
cmp word [ebp - 0x81a], 0
jne 0x1000aa21
mov dword [ebp - 0x568], 0x44
push 0x40
push 0
lea edx, [ebp - 0x564]
push edx
call fcn.10003190
add esp, 0xc
mov dword [ebp - 0x7cd], eax
mov dword [ebp - 0x7c7], ecx
mov dword [ebp - 0x7c1], edx
push ecx
push eax
push esi
push esp
push ebx
push esi
call fcn.1000ab4f
ret 0x50
Function at 0x4079df
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x80fc40]
jne 0x4079e9
repz ret
jmp fcn.0040c11d

Function at 0x40ae70
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405c10
and dword [ebp - 4], 0
cmp dword [0x814800], 0
mov ebx, eax
jne 0x40af21
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40afd2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40afd2
push eax
call fcn.00405b9e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x814800], eax
call esi
push eax
call fcn.00405b9e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x814804], eax
call esi
push eax
call fcn.00405b9e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x814808], eax
call esi
push eax
call fcn.00405b9e
pop ecx
mov dword [0x814810], eax
test eax, eax
je 0x40af21
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405b9e
pop ecx
mov dword [0x81480c], eax
mov eax, dword [0x81480c]
cmp eax, ebx
je 0x40af79
cmp dword [0x814810], ebx
je 0x40af79
push eax
call fcn.00405c19
push dword [0x814810]
mov esi, eax
call fcn.00405c19
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40af79
test edi, edi
je 0x40af79
call esi
test eax, eax
je 0x40af70
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40af70
test byte [ebp - 0xc], 1
jne 0x40af79
or dword [ebp + 0x10], 0x200000
jmp 0x40afb2
mov eax, dword [0x814804]
cmp eax, ebx
je 0x40afb2
push eax
call fcn.00405c19
pop ecx
test eax, eax
je 0x40afb2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40afb2
mov eax, dword [0x814808]
cmp eax, ebx
je 0x40afb2
push eax
call fcn.00405c19
pop ecx
test eax, eax
je 0x40afb2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x814800]
call fcn.00405c19
pop ecx
test eax, eax
je 0x40afd2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40afd4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000167c
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x1001d908
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x1002a034]
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 edi, dword [ebp + 0x214]
lea eax, [ebp]
xor ebx, ebx
push eax
push ebx
push ebx
push 0x1a
push ebx
mov byte [edi], bl
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
js 0x10001768
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.10003356
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.100033b4
push 0x104
push eax
push dword [ebp + 0x218]
push edi
call fcn.10019faf
mov ecx, dword [ebp - 0x14]
add esp, 0x10
test ecx, ecx
je 0x1000173e
call fcn.100037d1
jmp 0x1000173e
xor eax, eax
test esi, esi
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.10004926
add ebp, 0x20c
leave
ret
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__szPath_
call fcn.10003d44
pop ecx
pop ecx
push ebx
push esi
call fcn.10019faf
int3

Function at 0x1000177d
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x1001d938
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x1002a034]
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 edi, dword [ebp + 0x214]
lea eax, [ebp]
xor ebx, ebx
push eax
push ebx
push ebx
push 0x23
push ebx
mov byte [edi], bl
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
js 0x10001869
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.10003356
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.100033b4
push 0x104
push eax
push dword [ebp + 0x218]
push edi
call fcn.10019faf
mov ecx, dword [ebp - 0x14]
add esp, 0x10
test ecx, ecx
je 0x1000183f
call fcn.100037d1
jmp 0x1000183f
xor eax, eax
test esi, esi
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.10004926
add ebp, 0x20c
leave
ret
push esi
push str.Error:_08x_in_::SHGetFolderPathW_0__CSIDL_COMMON_APPDATA__NULL__SHGFP_TYPE_CURRENT__szPath_
call fcn.10003d44
pop ecx
pop ecx
push ebx
push esi
call fcn.10019faf
int3
Function at 0x100019e1
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x1001d960
call fcn.10004980
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.100018f8
test eax, eax
je 0x10001a12
call fcn.100018ea
mov esi, eax
mov dword [ebp - 0x14], eax
push 0x104
push ebx
push esi
push edi
push 0x10021c18
call dword [sym.imp.SHELL32.dll_SHGetFolderPathEx]
mov esi, eax
test esi, esi
js 0x10001b28
jmp 0x10001a62
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10001a70
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
test esi, esi
jns 0x10001b20
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 0x10001ad1
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__pPath_
jmp 0x10001b2e
or dword [ebp - 4], 0xffffffff
test esi, esi
jns 0x10001b20
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 0x10001b20
push esi
push str.Error:_08x_in_SHGetSpecialFolderPathW_NULL__pPath__CSIDL_APPDATA__TRUE_
jmp 0x10001b2e
mov eax, esi
call fcn.10004937
ret
push esi
push str.Error:_08x_in_SHGetFolderPathEx_FOLDERID_LocalAppDataLow__0__hToken__pPath__MAX_PATH_
call fcn.10003d44
pop ecx
pop ecx
push edi
push esi
call fcn.10019faf
int3

Function at 0x10002445
Capabilities:
Query environment variable

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
je 0x10002469
push dword [esp + 0xc]
push dword [esp + 0xc]
push str.USER_JPI_PROFILE
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
xor ecx, ecx
inc ecx
test eax, eax
cmovne esi, ecx
mov eax, esi
pop esi
ret
Function at 0x100030b4
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x108]
sub esp, 0x108
push 0xffffffffffffffff
push 0x1001d9bb
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x1002a034]
xor eax, ebp
mov dword [ebp + 0x104], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x1001ec0c
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.10019faf
add esp, 0xc
test eax, eax
jne 0x100031a9
push dword [ebp - 0x18]
call fcn.10019faf
cmp dword [0x1002aa80], 0
pop ecx
je 0x10003122
xor eax, eax
inc eax
jmp 0x100031ab
lea eax, [ebp]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.kernel32.dll_GetTempPathA]
cmp eax, esi
ja 0x100031a9
test eax, eax
je 0x100031a9
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.1000330b
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push str.JavaDeployReg.log
call fcn.1000330b
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x10]
call fcn.100033d2
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x10003177
call fcn.100037d1
push 0x1001ec38
lea ecx, [ebp - 0x10]
call fcn.100033b4
push eax
push 0x1002aa80
call fcn.10019faf
mov ecx, dword [ebp - 0x10]
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
test ecx, ecx
je 0x100031a4
call fcn.100037d1
lea eax, [esi + 1]
jmp 0x100031ab
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.10004926
add ebp, 0x108
leave
ret

Function at 0x10003656
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x1002a034]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
mov ebx, dword [esp + 0x124]
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov eax, dword [edi + 4]
or eax, 0x2001f
push eax
push ebx
push dword [edi]
call fcn.10019faf
mov esi, eax
test esi, esi
jne 0x10003705
lea eax, [esp + 0x20]
push eax
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x100036e0
lea eax, [esp + 0x28]
push eax
call fcn.10003656
mov esi, eax
test esi, esi
jne 0x10003705
lea eax, [esp + 0x20]
xor ecx, ecx
push eax
push ecx
push ecx
push ecx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
push ecx
push dword [esp + 0x30]
mov dword [esp + 0x30], pe_nt_image_headers32
call ebp
lea ecx, [esp + 0x14]
test eax, eax
je 0x100036bb
call fcn.1000342b
push ebx
mov ecx, edi
call fcn.10003445
mov esi, eax
lea ecx, [esp + 0x14]
call fcn.1000342b
mov ecx, dword [esp + 0x128]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10004926
add esp, 0x11c
ret 4
Function at 0x10003bc2
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x824
mov eax, dword [0x1002a034]
xor eax, esp
mov dword [esp + 0x820], eax
push ebx
push ebp
mov ebp, dword [esp + 0x830]
lea eax, [esp + 0x428]
push esi
mov esi, dword [esp + 0x838]
xor ebx, ebx
push edi
mov edi, 0x400
push edi
push ebx
push eax
call fcn.10005d80
push esi
push ebx
push ebp
push 0xffffffffffffffff
lea eax, [esp + 0x44c]
push edi
push eax
call fcn.10019faf
movzx ecx, byte [esp + 0x853]
lea edi, [esp + 0x34]
xor edx, edx
test eax, eax
push 8
cmovs ecx, edx
xor eax, eax
mov byte [esp + 0x857], cl
pop ecx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x34]
push 0x20
push eax
call fcn.10019faf
push 0x10021be8
lea eax, [esp + 0x40]
push 0x20
push eax
call fcn.10019faf
push 0x400
lea eax, [esp + 0x6c]
push ebx
push eax
call fcn.10005d80
mov ecx, ebp
add esp, 0x44
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003c67
sub ecx, edx
cmp ecx, 6
jbe 0x10003c8e
lea eax, [ebp - 6]
add eax, ecx
push str.__08x_
push eax
call fcn.10019faf
pop ecx
pop ecx
test eax, eax
jne 0x10003c8e
xor ebx, ebx
inc ebx
lea esi, [esp + 0x10]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10003c95
sub esi, ecx
lea eax, [esp + 0x430]
push eax
mov ecx, 0x10020533
test ebx, ebx
mov eax, str.Error:
cmove eax, ecx
push eax
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 + 0x4c]
add eax, esi
push eax
call fcn.10019faf
mov ecx, dword [esp + 0x44b]
test eax, eax
push esi
lea eax, [esp + 0x34]
mov edx, 0x2e2e2e
push eax
lea eax, [esp + 0x58]
cmovs ecx, edx
push eax
mov dword [esp + 0x457], ecx
call fcn.10005800
lea edi, [esp + 0x5c]
add esp, 0x2c
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10003d0f
mov ax, word [0x10021c14]
mov word [edi], ax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x830]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10004926
add esp, 0x824
ret
Function at 0x4010d1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 0x10]
push eax
push ebx
push str.WildTangentUninstallBrandCodeName
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40113b
cmp dword [ebp + 0x10], 1
je 0x401110
cmp dword [ebp + 0x10], 2
jne 0x40112b
mov ecx, dword [ebp - 4]
test esi, esi
je 0x401135
test ecx, ecx
je 0x401130
test cl, 1
jne 0x40112b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], bx
je 0x401135
push 0xd
pop eax
jmp 0x40113b
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x401f05
Capabilities:
Delete file

Disassembly:
push 0x6c
mov eax, 0x41fb88
call fcn.0040c384
mov esi, ecx
lea edi, [esi + 0x20]
mov edx, edi
lea ecx, [ebp - 0x74]
call fcn.004022ca
lea eax, [ebp - 0x74]
xor ebx, ebx
push eax
mov edx, edi
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x44]
call fcn.00403aad
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.0040178d
add esi, 8
mov byte [ebp - 4], 2
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x401f5a
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x5c]
push eax
call fcn.00403b80
push str..ini
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.00402746
push str..ico
lea ecx, [ebp - 0x2c]
call fcn.00402746
cmp dword [esi + 0x14], 8
jb 0x401f8c
mov esi, dword [esi]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call esi
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call esi
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call esi
sub esp, 0x18
mov ecx, esp
push edi
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.0040178d
call fcn.004025db
mov ecx, esp
lea eax, [ebp - 0x5c]
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.0040178d
call fcn.004025db
add esp, 0x18
lea ecx, [ebp - 0x5c]
call fcn.004016f1
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x40201d
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402014
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402043
push edx
push ecx
call fcn.0040c09d
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.004016f1
lea ecx, [ebp - 0x74]
call fcn.004016f1
call fcn.0040c32e
ret
call fcn.0040fc8d
int3
Function at 0x402049
Capabilities:
Check if file exists

Disassembly:
push 0x10
mov eax, 0x41fbcc
call fcn.0040c350
mov esi, ecx
xor ebx, ebx
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x402063
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402132
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ebx
push eax
push 0x428ad8
push 0x17
push ebx
push 0x422e18
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40211e
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 2
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push edx
push 0x428ae8
push eax
mov ecx, dword [eax]
call dword [ecx]
mov byte [ebp - 4], 1
test eax, eax
js 0x40210a
cmp dword [esi + 0x14], 8
mov edi, dword [ebp - 0x14]
mov eax, dword [edi]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x1c], eax
jb 0x4020ca
mov esi, dword [esi]
test esi, esi
jne 0x4020d5
mov esi, ebx
mov dword [ebp - 0x18], esi
jmp 0x4020e8
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
je 0x40213a
mov eax, dword [ebp - 0x1c]
push ebx
push esi
push edi
mov byte [ebp - 4], 3
call eax
push esi
mov edi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
js 0x40210a
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov dword [ebp - 0x10], eax
mov ebx, ecx
jmp 0x40210d
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x402121
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 5
test eax, eax
je 0x402132
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
call fcn.0040c319
ret
push 0x8007000e
call fcn.00401b29
int3

Function at 0x4025db
Capabilities:
Delete directory

Disassembly:
push 0x418
mov eax, 0x41fce8
call fcn.0040c384
and dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
je 0x402662
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x402662
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
mov esi, 0x208
cmovae eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x420]
push esi
push eax
call fcn.0040fcde
add esp, 0xc
lea eax, [ebp - 0x420]
push esi
push eax
call dword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchRemoveFileSpec]
sub esp, 0x18
lea eax, [ebp - 0x420]
mov ecx, esp
push eax
call fcn.004016cc
call fcn.004025db
add esp, 0x18
lea ecx, [ebp + 8]
call fcn.004016f1
call fcn.0040c32e
ret

Function at 0x405820
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x405828
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40583b
test al, 0x10
je 0x40583b
mov al, 1
ret
xor al, al
ret