joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6a0d9c
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb8
push ebx
push esi
push edi
xor esi, esi
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push 0x30
push 0
push ebx
call fcn.0069ccd0
add esp, 0xc
mov word [ebx + 6], 1
lea eax, [ebp - 0x144]
push eax
push edi
call sub.KERNEL32.DLL_FindFirstFileA
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x6a0ea9
push 0x6f9fa8
push edi
call fcn.006a72bc
add esp, 8
test eax, eax
je 0x6a0e4b
push 0
push edi
push 0
call fcn.0069f4bc
add esp, 0xc
mov esi, eax
test eax, eax
je 0x6a0e4b
push esi
call fcn.0069ce0c
pop ecx
cmp eax, 3
jne 0x6a0e4b
push esi
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
jae 0x6a0e22
call fcn.0069fa20
jmp 0x6a0fa1
mov word [ebx + 4], 0x4000
movsx edx, byte [esi]
push edx
call fcn.006a7380
add ax, 0xffc0
pop ecx
mov word [ebx + 0x10], ax
mov word [ebx], ax
push esi
call fcn.0067abcd
pop ecx
xor eax, eax
jmp 0x6a0fa1
test esi, esi
je 0x6a0e56
push esi
call fcn.0067abcd
pop ecx
push 0
push 0
push 3
push 0
push 3
push accept
push edi
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x6a0e7d
call fcn.0069fa20
jmp 0x6a0fa1
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.DLL_GetFileType
cmp eax, 3
jne 0x6a0e91
mov cx, 0x1000
jmp 0x6a0e95
mov cx, 0x2000
mov word [ebx + 4], cx
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x6a0fa1
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.DLL_FindClose
mov ecx, dword [ebp - 0x124]
lea edx, [ebp - 0x130]
push ecx
lea ecx, [ebp - 0x138]
mov eax, dword [ebp - 0x128]
push eax
push edx
push ecx
lea eax, [ebp - 0x140]
push eax
mov edx, dword [ebp - 0x144]
push edx
push ebx
call fcn.006a9948
add esp, 0x1c
test byte [ebx + 5], 0x40
jne 0x6a0f49
push 0x2e
push edi
call fcn.006a7328
add esp, 8
mov esi, eax
test eax, eax
je 0x6a0f49
push str..bat
push esi
call fcn.006a710c
add esp, 8
test eax, eax
je 0x6a0f44
push str..cmd
push esi
call fcn.006a710c
add esp, 8
test eax, eax
je 0x6a0f44
push str..com
push esi
call fcn.006a710c
add esp, 8
test eax, eax
je 0x6a0f44
push str..exe
push esi
call fcn.006a710c
add esp, 8
test eax, eax
jne 0x6a0f49
or word [ebx + 4], 0x40
cmp byte [edi + 1], 0x3a
jne 0x6a0f53
mov al, byte [edi]
jmp 0x6a0f72
lea edx, [ebp - 0x248]
push edx
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
jne 0x6a0f6c
mov al, 0x41
jmp 0x6a0f72
mov al, byte [ebp - 0x248]
cmp al, 0x61
jl 0x6a0f86
cmp al, 0x7a
jg 0x6a0f86
movsx edx, al
add dx, 0xff9f
mov word [ebx], dx
jmp 0x6a0f98
cmp al, 0x41
jl 0x6a0f98
cmp al, 0x5a
jg 0x6a0f98
movsx ecx, al
add cx, 0xffbf
mov word [ebx], cx
mov ax, word [ebx]
mov word [ebx + 0x10], ax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x6a36d0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.DLL_GetLocaleInfoA
push str._._n
lea ecx, [ebp - 0x200]
push ecx
call fcn.0069cd7c
add esp, 8
lea eax, [ebp - 0x200]
push eax
call fcn.0069ce0c
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea ecx, [ebp - 0x200]
push ecx
call fcn.0069ce0c
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x6fa649
lea ecx, [ebp - 0x200]
push ecx
call fcn.0069cd7c
add esp, 8
push 0xa
lea eax, [ebp - 0x200]
push eax
call fcn.0069ce0c
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov ecx, dword [ebx]
push ecx
call fcn.006a4f58
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x6a37e1
push esi
call fcn.0069ce0c
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.0069ce0c
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.0067ab08
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x6a37b8
xor eax, eax
jmp 0x6a3868
push esi
call fcn.0069ce0c
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.0069ce0c
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.0069ccd0
add esp, 0xc
jmp 0x6a3821
mov edi, dword [ebx + 0x24]
push edi
call fcn.0069ce0c
pop ecx
push eax
push esi
call fcn.0069ce0c
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.0069ce0c
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.0067ab8b
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x6a3821
xor eax, eax
jmp 0x6a3868
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.0069cd7c
add esp, 8
push 0x6fa64b
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.0069cd7c
add esp, 8
lea eax, [ebp - 0x200]
push eax
mov edx, dword [ebx + 0x24]
push edx
call fcn.0069cd7c
add esp, 8
push 0x6fa64d
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.0069cd7c
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x6a7498
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x6a74fa
call fcn.006a7448
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0069ce0c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.0069ce0c
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x6a7578
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x6fac84], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x6a7652
cmp dword [0x6fac80], 0
jne 0x6a7652
cmp dword [0x6fae8c], 0
je 0x6a760c
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.006a7328
add esp, 8
mov ebx, eax
test eax, eax
jne 0x6a75f2
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.006a7328
add esp, 8
mov ebx, eax
test eax, eax
jne 0x6a75f2
lea ebx, [ebp - 0x84]
jmp 0x6a75f3
inc ebx
call fcn.006a7534
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x6a768d
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x6fac88
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0069ce0c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x6fac8b
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x6a768d
cmp dword [0x6fac80], 0
je 0x6a766c
cmp dword [0x6fac80], 0xffffffff
je 0x6a768d
push esi
call dword [0x6fac80]
pop ecx
mov eax, dword [0x6fac84]
test eax, eax
je 0x6a768d
cmp dword [0x6fac84], 0xffffffff
je 0x6a768d
cmp byte [eax], 0
je 0x6a768d
push esi
push eax
call fcn.006a7498
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x6a8204
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x6ffc00], 0
jne 0x6a8285
cmp dword [0x6ffc20], 0
jne 0x6a8234
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x6ffc20], eax
test eax, eax
jne 0x6a8234
push str.GetEnvironmentStrings_failed
call fcn.006a76a4
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x6ffc20]
jmp 0x6a8248
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.0069ce0c
pop ecx
mov edi, eax
test eax, eax
jne 0x6a8240
lea edi, [ebp + 1]
push edi
call fcn.0067ab08
pop ecx
mov ebx, eax
mov dword [0x6ffc04], ebx
test ebx, ebx
jne 0x6a8272
xor eax, eax
jmp 0x6a8348
push edi
mov edx, dword [0x6ffc20]
push edx
push ebx
call fcn.0069cc60
add esp, 0xc
jmp 0x6a82a5
xor esi, esi
mov ebx, dword [0x6ffc00]
jmp 0x6a829f
push eax
call fcn.0069ce0c
pop ecx
test eax, eax
jne 0x6a829b
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x6a828f
lea ebx, [esi + 4]
push 4
mov dword [0x6ffc08], ebx
inc ebx
push ebx
call fcn.0067ab4a
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x6a82c8
xor eax, eax
jmp 0x6a8348
cmp dword [0x6ffc00], 0
jne 0x6a82f9
xor esi, esi
mov ebx, dword [0x6ffc04]
mov eax, dword [esp]
mov ebp, eax
jmp 0x6a82ea
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.0069ce0c
pop ecx
mov edi, eax
test eax, eax
jne 0x6a82e0
jmp 0x6a832a
xor esi, esi
mov ebx, dword [0x6ffc00]
mov eax, dword [esp]
mov edi, eax
jmp 0x6a8324
push eax
call fcn.0069ce0c
pop ecx
test eax, eax
je 0x6a8319
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x6a831d
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x6a8308
mov eax, dword [0x6ffc00]
test eax, eax
je 0x6a833a
push eax
call fcn.0067abcd
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x6ffc00], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x6a8e44
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
mov esi, dword [ebp + 0xc]
cmp esi, 0x10
jge 0x6a8e6a
test esi, esi
je 0x6a8e6a
call fcn.006a7500
mov dword [eax], 0x13
or eax, 0xffffffff
jmp 0x6a8edc
call fcn.006a8b58
mov ebx, eax
test eax, eax
jne 0x6a8e85
call fcn.006a7500
mov dword [eax], 8
or eax, 0xffffffff
jmp 0x6a8edc
mov edx, dword [ebp + 0x10]
mov dword [ebx + 4], edx
lea edx, [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x14], ecx
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x54], eax
push edx
mov ecx, dword [ebp + 0x18]
push ecx
push ebx
push 0x6a8da0
push esi
mov eax, dword [ebp + 0x14]
push eax
call sub.KERNEL32.DLL_CreateThread
test eax, eax
jne 0x6a8ed0
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x718
jne 0x6a8ec9
push 0x59
call fcn.0069f9b4
pop ecx
jmp 0x6a8edc
call fcn.0069fa20
jmp 0x6a8edc
mov dword [ebx + 8], eax
test edi, edi
je 0x6a8edc
mov edx, dword [ebp - 4]
mov dword [edi], edx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4023b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4547b8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4731fc]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov eax, dword [0x4731fc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
mov esi, ecx
push eax
lea ecx, [esp + 0xc]
call fcn.00401d50
mov eax, dword [esp + 0x44]
push eax
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esi + 4]
mov dword [esp + 0x40], 0
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___unsigned_int_const]
mov edx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
cmp eax, dword [edx]
jne 0x402419
or esi, 0xffffffff
jmp 0x40241b
mov esi, eax
lea ecx, [esp + 8]
mov dword [esp + 0x38], 0xffffffff
call fcn.00401d80
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004420bc
add esp, 0x34
ret 8

Function at 0x402450
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4547e8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4731fc]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov eax, dword [0x4731fc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
mov esi, ecx
push eax
lea ecx, [esp + 0xc]
call fcn.00401d50
mov eax, dword [esp + 0x44]
push eax
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esi + 4]
mov dword [esp + 0x40], 0
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___unsigned_int_const]
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x38], 0xffffffff
call fcn.00401d80
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004420bc
add esp, 0x34
ret 8
Function at 0x4032d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x454a42
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x4731fc]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3c]
test eax, eax
mov dword [esp + 8], 0
jge 0x403306
xor eax, eax
mov edx, dword [esp + 0x40]
push edx
push eax
lea eax, [esp + 0x14]
push eax
add ecx, 4
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
cmp dword [eax + 0x18], 8
mov dword [esp + 0x30], 1
jb 0x40332d
mov eax, dword [eax + 4]
jmp 0x403330
add eax, 4
mov esi, dword [esp + 0x38]
push eax
mov ecx, esi
call fcn.004031c0
lea ecx, [esp + 0xc]
mov dword [esp + 8], 1
mov byte [esp + 0x30], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret 0xc

Function at 0x403a50
Capabilities:
Access peb ldr_data
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x454c98
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4731fc]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
mov eax, dword [0x4731fc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
push ecx
lea ecx, [esp + 0xc]
call fcn.00401d50
xor ebx, ebx
lea ecx, [esp + 8]
mov dword [esp + 0x38], ebx
call fcn.00401e40
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403aaa
test al, 0x10
je 0x403aaa
mov bl, 1
lea ecx, [esp + 8]
mov dword [esp + 0x38], 0xffffffff
call fcn.00401d80
mov al, bl
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004420bc
add esp, 0x34
ret

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

Disassembly:
call fcn.00401e40
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403afb
test al, 0x10
jne 0x403afb
mov eax, 1
ret
xor eax, eax
ret

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

Disassembly:
call fcn.00401e40
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret
Function at 0x405010
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x455118
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x4731fc]
xor eax, esp
mov dword [esp + 0x6c], eax
push esi
push edi
mov eax, dword [0x4731fc]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x8c]
lea eax, [esp + 0x54]
push eax
mov esi, ecx
call fcn.00403f60
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x88], 0
call fcn.00401d50
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
mov byte [esp + 0x88], 1
call fcn.00404170
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x5c]
push ecx
mov ecx, esi
mov byte [esp + 0x90], 2
call fcn.00404c80
lea ecx, [esp + 0x30]
mov esi, eax
mov byte [esp + 0x84], 1
call fcn.00401d80
lea ecx, [esp + 0xc]
mov byte [esp + 0x84], 0
call fcn.00401d80
lea ecx, [esp + 0x54]
mov dword [esp + 0x84], 0xffffffff
call fcn.00401d80
mov eax, esi
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.004420bc
add esp, 0x7c
ret 4

Function at 0x405100
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x455158
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x4731fc]
xor eax, esp
mov dword [esp + 0x6c], eax
push esi
push edi
mov eax, dword [0x4731fc]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x8c]
lea eax, [esp + 0x54]
push eax
mov esi, ecx
call fcn.00403f60
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
mov dword [esp + 0x88], 0
call fcn.00404030
push edi
lea ecx, [esp + 0x34]
mov byte [esp + 0x88], 1
call fcn.00401d50
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x5c]
push ecx
mov ecx, esi
mov byte [esp + 0x90], 2
call fcn.00404c80
lea ecx, [esp + 0x30]
mov esi, eax
mov byte [esp + 0x84], 1
call fcn.00401d80
lea ecx, [esp + 0xc]
mov byte [esp + 0x84], 0
call fcn.00401d80
lea ecx, [esp + 0x54]
mov dword [esp + 0x84], 0xffffffff
call fcn.00401d80
mov eax, esi
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.004420bc
add esp, 0x7c
ret 4

Function at 0x405c00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x455360
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x4731fc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
call fcn.00401cf0
push 0x463068
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 0
call fcn.004031c0
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
lea eax, [esp + 0xc]
push eax
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.00404c80
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 0
call fcn.00401d80
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret 8
Function at 0x4068f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x455629
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push esi
mov eax, dword [0x4731fc]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov esi, ecx
push str.AdminImage
lea ecx, [esp + 0x34]
mov dword [esp + 0xc], 0
call fcn.004031c0
lea eax, [esp + 0xc]
push eax
lea ecx, [esi + 0x50]
mov dword [esp + 0x60], 1
call fcn.00401420
mov esi, dword [esp + 0x64]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x10]
push edx
mov ecx, esi
mov byte [esp + 0x64], 2
call fcn.00405c00
lea ecx, [esp + 0xc]
mov dword [esp + 8], 1
mov byte [esp + 0x5c], 1
call fcn.00401d80
lea ecx, [esp + 0x30]
mov byte [esp + 0x5c], 0
call fcn.00401d80
mov eax, esi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x58
ret 4
Function at 0x4097e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x455a58
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x4731fc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004081e0
mov edi, dword [esi + 0xd4]
test edi, edi
je 0x409830
mov ecx, edi
call fcn.004168b0
push edi
call sub.MFC80U.DLL_Ordinal_764
add esp, 4
mov dword [esi + 0xd4], 0
push 0x462dac
lea ecx, [esp + 0x10]
mov byte [esi + 0xcc], 0
call fcn.004031c0
lea eax, [esp + 0xc]
push eax
lea ecx, [esi + 0xa8]
mov dword [esp + 0x3c], 0
call fcn.00404c00
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call fcn.00401d80
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret
Function at 0x4104f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x45686a
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push esi
push edi
mov eax, dword [0x4731fc]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 0
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x48], 1
call dword [sym.imp.MFC80U.DLL_Ordinal_2460]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_5398]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
lea ecx, [esp + 0x1c]
call fcn.004031c0
mov esi, eax
push 0
sub esp, 0x24
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x4630d4
mov byte [esp + 0x70], 2
call fcn.004031c0
mov eax, dword [esi]
mov edi, dword [esp + 0x74]
mov edx, dword [eax + 0x58]
push edi
mov ecx, esi
call edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 1
mov byte [esp + 0x44], 1
call fcn.00401d80
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, edi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x3c
ret
Function at 0x410e70
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x456951
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4731fc]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x14]
xor edi, edi
xor ebx, ebx
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov dword [esp + 0x24], edi
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
lea edx, [esp + 0x1c]
push str.SELECT__FROM___s__WHERE__s
push edx
mov byte [esp + 0x34], 1
call dword [sym.imp.MFC80U.DLL_Ordinal_2311]
mov eax, dword [esp + 0x20]
add esp, 0x10
cmp eax, edi
je 0x410ede
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov esi, dword [esi]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], edi
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
push esi
call fcn.00410620
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x410f32
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x410f11
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret 0xc
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x20], edi
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
jne 0x410f5a
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call sub.msi.dll_MsiRecordReadStream
mov ebx, eax
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x410f68
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x410f76
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret 0xc