joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5730b8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5e5c10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0056765b
and dword [ebp - 0x14], 0
cmp dword [0x5ee0b8], 0
mov dword [ebp - 0x18], eax
jne 0x57316b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x573213
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5b6848
push ebx
call edi
test eax, eax
je 0x573213
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5b6838
push ebx
mov dword [0x5ee0b8], eax
call edi
push eax
call esi
push 0x5b6824
push ebx
mov dword [0x5ee0bc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5ee0c0], eax
call edi
push eax
call esi
mov dword [0x5ee0c8], eax
test eax, eax
je 0x57316b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5ee0c4], eax
mov eax, dword [0x5ee0c4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x5731c4
cmp dword [0x5ee0c8], ecx
je 0x5731c4
push eax
call esi
push dword [0x5ee0c8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x5731c4
test ebx, ebx
je 0x5731c4
call edi
test eax, eax
je 0x5731bb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x5731bb
test byte [ebp - 8], 1
jne 0x5731c4
or dword [ebp + 0x10], 0x200000
jmp 0x5731f7
mov eax, dword [0x5ee0bc]
cmp eax, dword [ebp - 0x18]
je 0x5731f7
push eax
call esi
test eax, eax
je 0x5731f7
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x5731f7
mov eax, dword [0x5ee0c0]
cmp eax, dword [ebp - 0x18]
je 0x5731f7
push eax
call esi
test eax, eax
je 0x5731f7
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5ee0b8]
call esi
test eax, eax
je 0x573213
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x573215
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055fd94
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401f4a
Capabilities:
Get common file path

Disassembly:
sub esp, 0x504
and dword [esp + 0xc], 0
push ebx
mov ebx, ecx
lea ecx, [esp + 0x10]
push ebp
push esi
mov esi, edx
mov dword [esp + 0x2c], ebx
mov eax, dword [ebx]
mov dword [esp + 0x20], eax
push edi
mov eax, dword [esi]
mov edi, dword [ebx + 4]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x34], eax
call fcn.00401df0
mov ebp, dword [esp + 0x1c]
mov eax, dword [esi + 0xc]
add ebp, 0x23f
mov ebx, dword [esi + 8]
push 0x20
mov dword [esp + 0x20], ebp
mov dword [esp + 0x30], eax
pop esi
mov dword [esp + 0x28], 2
add dword [esp + 0x28], 3
mov edx, dword [esp + 0x24]
mov eax, edx
shl eax, 4
add eax, ebx
mov dword [esp + 0x18], 0xedeb2e40
cmp dword [0x2c88364], 0xfa9
mov dword [esp + 0x10], eax
mov eax, dword [0x2c883a8]
cmove eax, dword [esp + 0x18]
and dword [esp + 0x18], 0
cmp dword [0x2c88364], 0x3eb
mov dword [0x2c883a8], eax
mov eax, dword [0x2c883b0]
cmove eax, dword [esp + 0x18]
mov dword [0x2c883b0], eax
lea eax, [edx + ebp]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
shr eax, 5
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x10]
xor ebp, ebp
mov eax, dword [esp + 0x14]
xor ecx, dword [esp + 0x18]
add eax, dword [esp + 0x2c]
xor eax, ecx
mov dword [0x2c883ac], 0xf4ea3dee
cmp dword [0x2c88364], 0x213
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jne 0x40209f
push ebp
push ebp
push ebp
lea eax, [esp + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
push str.Ceten_jakuxijikem_zevecukanip_likinemuxuw_suhisukuva
push 0x40f29c
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push ebp
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea eax, [esp + 0x114]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x30
lea eax, [esp + 0x4c]
mov dword [esp + 0x48], ebp
push ebp
push eax
call fcn.00403d40
add esp, 0xc
lea eax, [esp + 0x44]
push eax
push ebp
push 0x40f2a0
call dword [sym.imp.KERNEL32.dll_CommConfigDialogW]
mov eax, dword [esp + 0x14]
sub edi, eax
mov eax, edi
mov dword [esp + 0x38], edi
shl eax, 4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
add dword [esp + 0x10], eax
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x1c]
add dword [esp + 0x20], eax
mov eax, dword [esp + 0x38]
nop
add dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x28]
mov eax, edi
shr eax, cl
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x34]
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
xor eax, dword [esp + 0x18]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sub dword [esp + 0x24], eax
mov edx, 0x9e3779b9
lea ecx, [esp + 0x1c]
call fcn.00401f41
dec esi
je 0x402115
mov ebp, dword [esp + 0x1c]
jmp 0x401f9b
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
mov dword [ebx + 4], edi
pop edi
pop esi
pop ebp
mov dword [ebx], eax
pop ebx
add esp, 0x504
ret
Function at 0x40aa44
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42c7e0]
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.004083ca
mov dword [ebp - 0x14], eax
cmp dword [0x2c89294], esi
jne 0x40ab37
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40aac4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40ac17
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40ac17
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ac17
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x2c89294], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x2c89298], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x2c8929c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x2c892a4], eax
test eax, eax
je 0x40ab34
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x2c892a0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40ab5c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40ab4f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40ab71
push 4
pop eax
jmp 0x40ac19
cmp dword [ebp - 0x14], esi
je 0x40ab71
push dword [0x2c89294]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40ab56
mov eax, dword [0x2c892a0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40abcf
cmp dword [0x2c892a4], edi
je 0x40abcf
push eax
call ebx
push dword [0x2c892a4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40abcf
test eax, eax
je 0x40abcf
call ecx
test eax, eax
je 0x40abc4
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 0x40abc4
test byte [ebp - 8], 1
jne 0x40abcf
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40abff
mov eax, dword [0x2c89298]
cmp eax, edi
je 0x40abfc
push eax
call ebx
test eax, eax
je 0x40abfc
call eax
mov esi, eax
test esi, esi
je 0x40abfc
mov eax, dword [0x2c8929c]
cmp eax, edi
je 0x40abfc
push eax
call ebx
test eax, eax
je 0x40abfc
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x2c89294]
call ebx
test eax, eax
je 0x40ac17
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40ac19
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040414e
mov esp, ebp
pop ebp
ret
Function at 0x407762
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x41e004]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push edi
xor ebx, ebx
lea eax, [ebp - 0x428]
push 0x214
push ebx
push eax
mov edi, edx
mov dword [ebp - 0x42c], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
xor eax, eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x214]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x407868
lea ecx, [ebp - 0x214]
call fcn.0040cfd0
lea eax, [ebp - 0x214]
mov edx, 0x104
push eax
lea ecx, [ebp - 0x420]
call fcn.00407605
push 0x401ab4
lea ecx, [ebp - 0x214]
call fcn.0040d79f
test eax, eax
js 0x407843
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407843
lea eax, [ebp - 0x214]
mov dword [ebp - 0x424], edi
mov dword [ebp - 0x428], eax
mov eax, dword [ebp + 8]
neg eax
push ebx
sbb eax, eax
and eax, 0xffffffe0
add eax, 0x40
or eax, 4
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x42c]
push eax
push ebx
call dword [sym.imp.IEADVPACK.dll_ExecuteCabW]
jmp 0x407868
test byte [ebp + 0x10], 4
jne 0x407868
lea eax, [ebp - 0x214]
push eax
push 0x40
push 0xc
push 0xb
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.SHLWAPI.dll_ShellMessageBoxW]
add esp, 0x18
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop ebx
call fcn.0041ce8b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40787f
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x41e004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x424]
push eax
mov esi, 0x20019
push esi
push 0
push 0x4011a0
push reloc.SHLWAPI.dll_ParseURLW
call edi
test eax, eax
jne 0x4079e1
lea eax, [ebp - 0x41c]
push eax
push esi
push 0
push 0x4011ec
push dword [ebp - 0x424]
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4079d9
push ebx
xor ecx, ecx
lea eax, [ebp - 0x420]
push ecx
push ecx
push ecx
push ecx
push eax
lea eax, [ebp - 0x20c]
mov ebx, ecx
push eax
push ecx
jmp 0x4079b2
lea eax, [ebp - 0x418]
push eax
push 0x2001f
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x424]
call edi
test eax, eax
jne 0x407945
push 4
push 0x401204
push 1
push eax
push 0x401208
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x418]
call esi
push ecx
lea eax, [ebp - 0x20c]
mov edx, 0x104
push eax
push 0x4011a0
lea ecx, [ebp - 0x414]
call fcn.0040d512
test eax, eax
js 0x40799c
lea eax, [ebp - 0x418]
push eax
push 0x2001f
push 0
lea eax, [ebp - 0x414]
push eax
push SysReAllocStringLen
call edi
test eax, eax
jne 0x40799c
push dword [ebp - 0x418]
push eax
push eax
call dword [sym.imp.IEADVPACK.dll_RegRestoreAllW]
push dword [ebp - 0x418]
call esi
inc ebx
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push dword [ebp - 0x41c]
mov dword [ebp - 0x420], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x407901
push dword [ebp - 0x41c]
call esi
pop ebx
push dword [ebp - 0x424]
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041ce8b
mov esp, ebp
pop ebp
ret
Function at 0x4079f6
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x41e004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, ecx
lea edi, [ebp - 0x1c]
mov esi, 0x401228
push 5
pop ecx
rep movsd dword es:[edi], dword [esi]
push 0x18
pop ecx
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x7c]
mov esi, 0x401240
rep movsd dword es:[edi], dword [esi]
test eax, eax
je 0x407acc
lea eax, [ebp - 0x288]
xor esi, esi
push eax
push 0xf003f
push esi
push 0x4012a0
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407acc
push 0x204
lea eax, [ebp - 0x280]
mov dword [ebp - 0x284], esi
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x28c], 0x208
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x284]
push eax
push esi
push esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x288]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407aa7
cmp dword [ebp - 0x28c], esi
jne 0x407ac0
push 0x60
lea eax, [ebp - 0x7c]
push eax
push 1
push esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x288]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x288]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041ce8b
mov esp, ebp
pop ebp
ret

Function at 0x407b27
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 0x10]
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor ebx, ebx
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push 4
push ebx
push ebx
push ebx
push 0x401318
push SysReAllocStringLen
call edi
mov esi, eax
test esi, esi
jne 0x407bc9
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 3
push ebx
push ebx
push ebx
push 0x4013d8
push dword [ebp - 0xc]
call edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x407bc2
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0x14], 4
push eax
push ebx
push ebx
mov esi, 0x4013f0
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
or dword [ebp - 4], 0x100000
lea eax, [ebp - 4]
push 4
push eax
push 4
push ebx
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
mov esi, eax
call edi
push dword [ebp - 0xc]
call edi
test esi, esi
jle 0x407bd4
movzx esi, si
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4080fc
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x41e004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
test edi, edi
je 0x408282
call fcn.00407be2
call fcn.004076e0
call fcn.0040b850
call fcn.00407c3c
call dword [sym.imp.SHELL32.dll_SHFlushSFCache]
and dword [ebp - 0x11c], 0
lea ecx, [ebp - 0x11c]
call fcn.0040f662
mov esi, dword [ebp - 0x11c]
test eax, eax
js 0x4081ba
and dword [ebp - 0x11c], 0
lea edx, [ebp - 0x11c]
push ecx
mov ecx, dword [esi + 0x18]
call fcn.00411f18
test eax, eax
js 0x4081aa
push 0x401a10
lea eax, [ebp - 0x124]
mov dword [ebp - 0x124], esi
push eax
push dword [ebp - 0x11c]
mov ecx, esi
mov dword [ebp - 0x120], 0x80004005
mov dword [0x41e704], 0x40e50f
mov dword [0x41e700], 0x40e4e1
call fcn.0040e654
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x4081ba
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test esi, esi
je 0x4081c4
mov eax, dword [esi]
push esi
call dword [eax + 8]
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.msvcrt.dll__time64]
pop ecx
push 2
push 8
lea eax, [ebp - 0x124]
push eax
push 0xb
push 0x401a18
push 0x401a30
call dword [sym.imp.SHLWAPI.dll_SHRegSetUSValueW]
mov esi, 0x114
lea eax, [ebp - 0x118]
push esi
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x118], esi
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40828f
push 6
pop esi
cmp dword [ebp - 0x114], esi
ja 0x408233
jne 0x40828f
cmp dword [ebp - 0x110], 1
jb 0x40828f
push ecx
push 0x401a84
mov ecx, edi
call fcn.00407ae1
cmp dword [ebp - 0x114], esi
ja 0x408253
jne 0x40828f
cmp dword [ebp - 0x110], 2
jb 0x40828f
lea eax, [ebp - 0x11c]
push eax
push 0x60000
push 8
push 0x401580
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40828f
mov ecx, dword [ebp - 0x11c]
call fcn.0040bd71
jmp 0x40828f
push ecx
push 0x401a84
xor ecx, ecx
call fcn.00407ae1
test edi, edi
pop edi
pop esi
je 0x40829a
call fcn.00407b27
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ce8b
mov esp, ebp
pop ebp
ret
Function at 0x408523
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x41e004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov esi, 0x80070057
call fcn.0040b202
xor edi, edi
test al, al
je 0x408595
lea eax, [ebp - 0x274]
mov dword [ebp - 0x274], edi
push eax
call dword [sym.imp.msvcrt.dll_rand_s]
pop ecx
test eax, eax
jne 0x408595
movzx eax, byte [ebp - 0x274]
inc eax
mov dword [ebp - 0x274], eax
je 0x408593
push 1
push 0x2000
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
inc edi
cmp edi, dword [ebp - 0x274]
jb 0x408576
xor edi, edi
cmp word [ebx], di
je 0x408745
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push edi
call dword [sym.imp.ole32.dll_OleInitialize]
test eax, eax
js 0x408740
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea eax, [ebp - 0x278]
mov dword [ebp - 0x278], edi
push eax
push ebx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
mov dword [ebp - 0x28c], ebx
test ebx, ebx
je 0x408723
push 6
pop ecx
mov esi, 0x401d08
lea edi, [ebp - 0x270]
rep movsd dword es:[edi], dword [esi]
push 0x1ee
lea eax, [ebp - 0x256]
movsw word es:[edi], word [esi]
xor edi, edi
push edi
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x278]
add esp, 0xc
test eax, eax
jle 0x40863b
push dword [ebx]
lea eax, [ebp - 0x270]
push 0x401d24
push 0x104
push eax
call fcn.00407674
mov eax, dword [ebp - 0x278]
add esp, 0x10
mov dword [ebp - 0x280], edi
mov esi, edi
test eax, eax
jle 0x40871a
mov edx, ebx
xor ebx, ebx
mov dword [ebp - 0x27c], edx
test esi, esi
js 0x408714
mov dword [ebp - 0x274], ebx
mov edi, ebx
mov eax, dword [edi + 0x41e014]
mov ecx, dword [edx]
push eax
push dword [edi + 0x41e010]
mov dword [ebp - 0x288], eax
push ecx
mov dword [ebp - 0x284], ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x4086ad
push dword [ebp - 0x284]
lea ecx, [ebp - 0x68]
push 0x32
pop edx
call fcn.00407605
test eax, eax
js 0x4086ad
mov eax, dword [ebp - 0x288]
cmp word [ebp + eax*2 - 0x68], bx
je 0x4086cd
mov eax, dword [ebp - 0x274]
add edi, 0xc
inc eax
mov dword [ebp - 0x274], eax
cmp edi, 0xa8
jae 0x4086e2
mov edx, dword [ebp - 0x27c]
jmp 0x408665
imul eax, dword [ebp - 0x274], 0xc
call dword [eax + 0x41e018]
mov esi, eax
mov eax, dword [ebp - 0x274]
cmp eax, 0xe
jb 0x4086ec
mov esi, 0x80070057
mov ecx, dword [ebp - 0x280]
mov edx, dword [ebp - 0x27c]
inc ecx
add edx, 4
mov dword [ebp - 0x280], ecx
mov dword [ebp - 0x27c], edx
cmp ecx, dword [ebp - 0x278]
jl 0x408655
mov ebx, dword [ebp - 0x28c]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x408738
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x408738
movzx esi, si
or esi, 0x80070000
call dword [sym.imp.ole32.dll_OleUninitialize]
jmp 0x408745
mov esi, 0x80004005
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ce8b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40894a
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x41e004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 4
lea eax, [ebp - 0x210]
xor edi, edi
push eax
push 1
push 2
push dword [0x403c18]
mov dword [ebp - 0x210], edi
call dword [sym.imp.iertutil.dll_Ordinal_654]
push 0xa
push 0x64
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x408aab
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x408aab
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x408aaa
push dword [0x403c14]
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x214], edi
call fcn.0040c8a1
push dword [0x403c24]
lea ecx, [ebp - 0x214]
call fcn.0040c8a1
mov eax, dword [ebp - 0x214]
xor ecx, ecx
add ecx, dword [ebp - 0x210]
adc eax, edi
cmp eax, 0x10000000
ja 0x408aaa
jb 0x408a10
cmp ecx, 0x178e182d
jae 0x408aaa
push dword [0x403c1c]
xor eax, eax
lea ecx, [ebp - 0x20c]
mov word [ebp - 0x20c], ax
call fcn.0040c588
push 0x5c
pop eax
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x408aaa
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x5c
pop eax
mov word [edi], ax
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x408aaa
push esi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x218], esi
push ecx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041ce8b
mov esp, ebp
pop ebp
ret