joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405e60
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2888
call fcn.00408700
mov eax, dword [0x420020]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x400
push 0
push 0x422b48
mov edi, ecx
call fcn.00408d80
add esp, 0xc
mov dword [ebp - 0x2888], 0x2880
lea eax, [ebp - 0x2888]
push eax
lea eax, [ebp - 0x2884]
push eax
call sub.IPHLPAPI.DLL_GetAdaptersInfo
lea esi, [ebp - 0x2884]
lea eax, [esi + 0x10c]
push 0x4182a4
push eax
call fcn.00407d60
add esp, 8
test eax, eax
jne 0x405ee1
lea eax, [esi + 8]
mov ecx, edi
push eax
call fcn.004064a0
test al, al
jne 0x405ee1
mov esi, dword [esi]
test esi, esi
jne 0x405eb2
jmp 0x405f57
push ebx
push 0x20
call fcn.00406d3e
movzx ecx, byte [esi + 0x199]
mov ebx, eax
movzx eax, byte [esi + 0x194]
push ecx
movzx ecx, byte [esi + 0x198]
push ecx
movzx ecx, byte [esi + 0x197]
push ecx
movzx ecx, byte [esi + 0x196]
push ecx
movzx ecx, byte [esi + 0x195]
push ecx
push eax
push str._02X_02X_02X_02X_02X_02X
push 0x20
push ebx
call fcn.00408165
add esp, 0x28
mov esi, ebx
lea ecx, [ecx]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x405f30
mov edi, 0x422b48
sub ebx, esi
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405f40
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop ebx
mov ecx, dword [ebp - 4]
mov eax, 0x422b48
pop edi
xor ecx, ebp
pop esi
call fcn.00408295
mov esp, ebp
pop ebp
ret
Function at 0x4063b0
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x420020]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x114
xor ebx, ebx
lea eax, [ebp - 0x118]
push ebx
push eax
call fcn.00408d80
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x406489
cmp dword [ebp - 0x114], 5
jbe 0x406489
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x11c], ebx
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem_
push 0x80000002
mov dword [ebp - 0x128], 4
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x124], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406489
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x128]
push eax
push ebx
push str.EnableLUA
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40647d
cmp dword [ebp - 0x120], 1
sete bl
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00408295
mov esp, ebp
pop ebp
ret
Function at 0x4064a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x420020]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10b]
push 0x104
push 0
push eax
mov byte [ebp - 0x10c], 0
call fcn.00408d80
add esp, 0xc
mov dword [ebp - 0x148], 0x104
lea eax, [ebp - 0x140]
mov dword [ebp - 0x14c], 1
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x144], 0
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406564
push edi
lea eax, [ebp - 0x10c]
push str._sConnection
push eax
call fcn.00408211
add esp, 0xc
lea eax, [ebp - 0x144]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x140]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x406577
push dword [ebp - 0x140]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408295
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x148]
mov dword [ebp - 0x148], 0x104
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x14c]
push eax
push 0
push str.PnpInstanceID
push dword [ebp - 0x144]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406558
push ebx
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x13c]
call fcn.00401110
push 1
push 0
push 0x4182a0
lea ecx, [ebp - 0x13c]
call fcn.004016d0
cmp eax, 0xffffffff
jne 0x4065e9
push dword [ebp - 0x140]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
jmp 0x40664e
push eax
push 0
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x110], 0xf
push eax
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x114], 0
mov byte [ebp - 0x124], 0
call fcn.00401320
lea eax, [ebp - 0x124]
push 0x4182a4
push eax
call fcn.004010d0
add esp, 8
test al, al
je 0x406641
push dword [ebp - 0x140]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
jmp 0x406643
mov bl, 1
lea ecx, [ebp - 0x124]
call fcn.00401170
cmp dword [ebp - 0x128], 0x10
jb 0x406665
push dword [ebp - 0x13c]
call fcn.00406eee
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop ebx
xor ecx, ebp
pop edi
call fcn.00408295
mov esp, ebp
pop ebp
ret 4
Function at 0x406680
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x420020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x210], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00408d80
mov ecx, dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
add esp, 0xc
mov dword [ebp - 0x214], 0x208
push eax
call fcn.00401770
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push esi
push edi
push ebx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x406732
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
jmp 0x406710
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406710
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x210]
push eax
call fcn.00404050
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00408295
mov esp, ebp
pop ebp
ret 0x10
Function at 0x413e24
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x420020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040a13c
mov dword [ebp - 0x14], eax
cmp dword [0x423f14], esi
jne 0x413f17
push 0x800
push esi
push 0x41d604
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x413ea4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x413ff7
push esi
push esi
push 0x41d604
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x413ff7
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x413ff7
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x423f14], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x423f18], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x423f1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x423f24], eax
test eax, eax
je 0x413f14
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x423f20], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x413f3c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x413f2f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x413f51
push 4
pop eax
jmp 0x413ff9
cmp dword [ebp - 0x14], esi
je 0x413f51
push dword [0x423f14]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x413f36
mov eax, dword [0x423f20]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x413faf
cmp dword [0x423f24], edi
je 0x413faf
push eax
call ebx
push dword [0x423f24]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x413faf
test eax, eax
je 0x413faf
call ecx
test eax, eax
je 0x413fa4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x413fa4
test byte [ebp - 8], 1
jne 0x413faf
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x413fdf
mov eax, dword [0x423f18]
cmp eax, edi
je 0x413fdc
push eax
call ebx
test eax, eax
je 0x413fdc
call eax
mov esi, eax
test esi, esi
je 0x413fdc
mov eax, dword [0x423f1c]
cmp eax, edi
je 0x413fdc
push eax
call ebx
test eax, eax
je 0x413fdc
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x423f14]
call ebx
test eax, eax
je 0x413ff7
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x413ff9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408295
mov esp, ebp
pop ebp
ret
Function at 0x401150
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x628
mov eax, dword [0x41a2b4]
xor eax, esp
mov dword [esp + 0x624], eax
test edi, edi
jne 0x40117f
xor al, al
mov ecx, dword [esp + 0x624]
xor ecx, esp
call fcn.00404cba
add esp, 0x628
ret
lea eax, [esp + 0xc]
push esi
test eax, eax
je 0x401226
push 0x104
mov ecx, eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x401226
cmp esi, 0x104
jne 0x4011b5
cmp eax, 0x7a
je 0x401226
lea edx, [esp + 0x10]
push 0x5c
push edx
call fcn.00404ef4
add esp, 8
test eax, eax
je 0x4011ce
xor ecx, ecx
mov word [eax + 2], cx
lea edx, [esp + 4]
push edx
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsScanner.exe
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401226
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 8]
lea ecx, [esp + 0x21c]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push str.Path
push eax
mov dword [esp + 0x20], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40123e
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop esi
mov ecx, dword [esp + 0x624]
xor ecx, esp
call fcn.00404cba
add esp, 0x628
ret
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x21c]
xor eax, eax
push edx
mov word [esp + 0x426], ax
call fcn.00404e61
add esp, 8
test eax, eax
jne 0x401298
lea eax, [esp + 0x10]
push eax
mov edx, 0x104
mov ecx, edi
call section..text
test eax, eax
setge al
pop esi
mov ecx, dword [esp + 0x624]
xor ecx, esp
call fcn.00404cba
add esp, 0x628
ret
push 0x104
lea ecx, [esp + 0x424]
push ecx
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x401226
cmp eax, 0x104
ja 0x401226
lea eax, [esp + 0x420]
push eax
lea ecx, [esp + 0x21c]
push ecx
call fcn.00404e61
add esp, 8
mov ecx, edi
test eax, eax
jne 0x40130b
lea edx, [esp + 0x10]
push edx
mov edx, 0x104
call section..text
test eax, eax
setge al
pop esi
mov ecx, dword [esp + 0x624]
xor ecx, esp
call fcn.00404cba
add esp, 0x628
ret
lea eax, [esp + 0x218]
push eax
mov edx, 0x104
call section..text
mov ecx, dword [esp + 0x628]
test eax, eax
setge al
pop esi
xor ecx, esp
call fcn.00404cba
add esp, 0x628
ret

Function at 0x401400
Capabilities:
Encode data using xor

Disassembly:
test esi, esi
je 0x401431
test ebx, ebx
je 0x401431
xor ecx, ecx
test edx, edx
jle 0x40142b
mov eax, dword [ebx]
push ebp
movzx ebp, byte [ecx + esi]
xor ebp, eax
and ebp, 0xff
shr eax, 8
xor eax, dword [edi + ebp*4]
inc ecx
cmp ecx, edx
jl 0x401411
mov dword [ebx], eax
pop ebp
mov eax, 1
ret
xor eax, eax
ret
Function at 0x401440
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1278
call fcn.0040cbb0
mov eax, dword [0x41a2b4]
xor eax, esp
mov dword [esp + 0x1274], eax
mov eax, dword [esp + 0x127c]
push ebx
push ebp
push esi
push edi
mov edi, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edi
test eax, eax
je 0x4014a7
test ecx, ecx
je 0x4014a7
test edi, edi
je 0x4014a7
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4014c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
xor al, al
mov ecx, dword [esp + 0x1284]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00404cba
add esp, 0x1278
ret
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
push eax
mov dword [esp + 0x424], eax
mov dword [esp + 0x428], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push 8
lea ecx, [esp + 0x42c]
push ecx
push ebp
call ebx
cmp dword [esp + 0x10], 8
je 0x401507
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4014a7
test eax, eax
je 0x4014f6
or esi, 0xffffffff
lea edx, [esp + 0x20]
mov dword [esp + 0x14], esi
call fcn.00401370
push 0
lea edx, [esp + 0x14]
push edx
push 0x400
lea eax, [esp + 0xe8c]
push eax
push ebp
call ebx
mov edx, dword [esp + 0x10]
test edx, edx
jbe 0x401580
lea ebx, [ebx]
lea ebx, [esp + 0x14]
lea esi, [esp + 0xe80]
lea edi, [esp + 0x20]
call fcn.00401400
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x400
mov edx, esi
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0x10]
test edx, edx
ja 0x401540
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
not esi
cmp esi, dword [esp + 0x424]
jne 0x4014fe
push 0
push 0
push 8
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4014f6
push 0xa52
lea eax, [esp + 0x42c]
push 0
push eax
call fcn.004099e0
add esp, 0xc
push 0
lea ecx, [esp + 0x14]
push ecx
push 0xa52
lea edx, [esp + 0x434]
push edx
push ebp
call ebx
cmp dword [esp + 0x10], 0xa52
jne 0x4014f6
test eax, eax
je 0x4014f6
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x18]
mov ecx, 0x294
lea esi, [esp + 0x428]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov al, 1
jmp 0x4014a9
Function at 0x401760
Capabilities:
Get disk size

Disassembly:
sub esp, 0x240
mov eax, dword [0x41a2b4]
xor eax, esp
mov dword [esp + 0x23c], eax
mov eax, dword [esp + 0x244]
test eax, eax
je 0x4017d5
test edi, edi
je 0x4017d5
test esi, esi
je 0x4017d5
lea edx, [esp + 0x30]
mov dword [esi], 0
call fcn.00401700
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4017fd
push str.GetDiskFreeSpaceExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4017fd
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x3c]
push edx
call eax
test eax, eax
jne 0x4017ec
mov dword [esi], 0x6a
xor al, al
mov ecx, dword [esp + 0x23c]
xor ecx, esp
call fcn.00404cba
add esp, 0x240
ret
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
shrd eax, ecx, 0x14
shr ecx, 0x14
jmp 0x401831
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x4017cf
mov eax, dword [esp + 0xc]
imul eax, dword [esp + 4]
imul eax, dword [esp + 8]
shr eax, 0x14
cmp eax, edi
jae 0x401852
mov dword [esi], 0x6b
xor al, al
mov ecx, dword [esp + 0x23c]
xor ecx, esp
call fcn.00404cba
add esp, 0x240
ret
mov ecx, dword [esp + 0x23c]
xor ecx, esp
mov al, 1
call fcn.00404cba
add esp, 0x240
ret
Function at 0x4018d0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x74
push ebx
push ebp
mov ebp, dword [esp + 0x84]
push esi
mov esi, dword [esp + 0x84]
xor ebx, ebx
push edi
cmp esi, ebx
je 0x40195c
cmp ebp, ebx
je 0x401966
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4018f4
sub eax, edx
sar eax, 1
mov edx, eax
mov eax, esi
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401910
sub eax, esi
sar eax, 1
lea esi, [eax + edx + 4]
lea eax, [esi + esi]
push eax
call fcn.00405945
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x40195c
mov ecx, dword [esp + 0x88]
push ebp
push ecx
push str.__s___s
mov ecx, esi
mov ebx, edi
call fcn.00401870
add esp, 0xc
test eax, eax
jge 0x40196a
push edi
call fcn.00405868
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret
xor edi, edi
jmp 0x401973
mov esi, dword [esp + 0x88]
xor ebx, ebx
mov edx, 0xc
mov ecx, edx
lea eax, [esp + 0x1c]
mov edi, edi
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x401980
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov ecx, edx
lea eax, [esp + 0x10]
lea ebx, [ebx]
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x4019a0
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov ecx, 0x44
lea eax, [esp + 0x38]
lea ecx, [ecx]
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x4019c0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x3c]
push ecx
push ebx
push ebx
push ebx
xor edx, edx
push ebx
mov word [esp + 0x80], dx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push esi
mov dword [esp + 0x60], 0x44
mov dword [esp + 0x8c], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x401a24
cmp edi, ebx
je 0x40195c
push edi
call fcn.00405868
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret
cmp edi, ebx
je 0x401a31
push edi
call fcn.00405868
add esp, 4
mov ecx, dword [esp + 0x28]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x401a60
mov edx, dword [esp + 0x2c]
push edx
call esi
mov eax, dword [esp + 0x28]
push eax
call esi
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret
mov ecx, dword [esp + 0x2c]
push ecx
call esi
mov edx, dword [esp + 0x28]
push edx
call esi
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x74
ret
Function at 0x4043d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0xa30
mov eax, dword [0x41a2b4]
xor eax, esp
mov dword [esp + 0xa2c], eax
push ebx
push str.GetRandomTemporaryFolder
lea eax, [esp + 8]
push eax
call fcn.00401af0
push str.Entry
mov ecx, 2
lea ebx, [esp + 8]
call fcn.00401cd0
add esp, 4
test edi, edi
je 0x40459b
lea ecx, [esp + 0x828]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x40445a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetTempPath_Failed___u_
mov ecx, 1
call fcn.00401cd0
add esp, 8
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xa2c]
xor ecx, esp
call fcn.00404cba
add esp, 0xa30
ret
push esi
push 0
call fcn.00406a38
push eax
call fcn.00406e90
call fcn.00406ea2
cdq
mov ecx, 0x64
idiv ecx
mov esi, edx
call fcn.00406ea2
cdq
mov ecx, 0x64
idiv ecx
mov ecx, 0x104
lea ebx, [esp + 0x62c]
push edx
push esi
lea edx, [esp + 0x83c]
push edx
push str._sQH_02d_02d.ins
call fcn.00401870
add esp, 0x18
test eax, eax
jl 0x404519
jmp 0x4044b0
lea eax, [esp + 0x624]
push 0
push eax
call fcn.00405dd6
add esp, 8
test eax, eax
jne 0x404549
push eax
call fcn.00406a38
push eax
call fcn.00406e90
call fcn.00406ea2
cdq
mov ecx, 0x64
idiv ecx
mov esi, edx
call fcn.00406ea2
cdq
mov ecx, 0x64
idiv ecx
mov ecx, 0x104
lea ebx, [esp + 0x62c]
push edx
push esi
lea edx, [esp + 0x83c]
push edx
push str._sQH_02d_02d.ins
call fcn.00401870
add esp, 0x18
test eax, eax
jge 0x4044b0
push eax
push str.StringCchPrintf_1_Failed___08X_
mov ecx, 1
lea ebx, [esp + 0x10]
call fcn.00401cd0
add esp, 8
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xa2c]
xor ecx, esp
call fcn.00404cba
add esp, 0xa30
ret
lea eax, [esp + 0x624]
push eax
push str.Unique_Path_Found:__s
mov ecx, 2
lea ebx, [esp + 0x10]
call fcn.00401cd0
add esp, 8
lea ecx, [esp + 0x624]
push ecx
mov edx, 0x104
mov ecx, edi
call section..text
test eax, eax
jl 0x404519
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0xa2c]
xor ecx, esp
call fcn.00404cba
add esp, 0xa30
ret
push str.NULL_Parameter_Received.
mov ecx, 1
lea ebx, [esp + 8]
call fcn.00401cd0
mov ecx, dword [esp + 0xa34]
add esp, 4
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00404cba
add esp, 0xa30
ret
Function at 0x404c50
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push edi
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
mov eax, dword [esp + 4]
cmp eax, 1
jne 0x404c84
mov dword [0x41b2a0], 0
pop edi
pop ecx
ret
push esi
mov esi, 1
cmp eax, esi
jle 0x404cac
mov edi, edi
mov ecx, dword [edi + esi*4]
push str._InstLog
push ecx
call fcn.00404e61
add esp, 8
test eax, eax
je 0x404cb6
inc esi
cmp esi, dword [esp + 8]
jl 0x404c90
mov dword [0x41b2a0], 0
pop esi
pop edi
pop ecx
ret

Function at 0x404cba
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41a2b4]
jne 0x404cc4
repz ret
jmp fcn.004070ff

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x405d7e
call fcn.00406f19
mov dword [eax], esi
call fcn.00406f06
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00408396
add esp, 0x14
push 0x16
pop eax
jmp 0x405dd3
test dword [ebp + 0xc], 0xfffffff9
jne 0x405d5a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x405dab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00406f2c
pop ecx
call fcn.00406f06
mov eax, dword [eax]
jmp 0x405dd3
test al, 0x10
jne 0x405dd1
test al, 1
je 0x405dd1
test byte [ebp + 0xc], 2
je 0x405dd1
call fcn.00406f19
mov dword [eax], 5
call fcn.00406f06
mov dword [eax], 0xd
jmp 0x405da2
xor eax, eax
pop esi
pop ebp
ret
Function at 0x410505
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.00407c7f
and dword [ebp - 4], 0
cmp dword [0x41be34], 0
mov ebx, eax
jne 0x4105b6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x410667
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x410667
push eax
call fcn.00407c0d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41be34], eax
call esi
push eax
call fcn.00407c0d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41be38], eax
call esi
push eax
call fcn.00407c0d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x41be3c], eax
call esi
push eax
call fcn.00407c0d
pop ecx
mov dword [0x41be44], eax
test eax, eax
je 0x4105b6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00407c0d
pop ecx
mov dword [0x41be40], eax
mov eax, dword [0x41be40]
cmp eax, ebx
je 0x41060e
cmp dword [0x41be44], ebx
je 0x41060e
push eax
call fcn.00407c88
push dword [0x41be44]
mov esi, eax
call fcn.00407c88
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41060e
test edi, edi
je 0x41060e
call esi
test eax, eax
je 0x410605
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x410605
test byte [ebp - 0xc], 1
jne 0x41060e
or dword [ebp + 0x10], 0x200000
jmp 0x410647
mov eax, dword [0x41be38]
cmp eax, ebx
je 0x410647
push eax
call fcn.00407c88
pop ecx
test eax, eax
je 0x410647
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x410647
mov eax, dword [0x41be3c]
cmp eax, ebx
je 0x410647
push eax
call fcn.00407c88
pop ecx
test eax, eax
je 0x410647
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41be34]
call fcn.00407c88
pop ecx
test eax, eax
je 0x410667
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x410669
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret