joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dd0e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10020
call fcn.004f4230
xor eax, eax
nop
mov cl, byte [eax + 0x4a3248]
mov dl, byte [eax + 0x4a3240]
mov byte [ebp + eax - 0x20], cl
mov byte [ebp + eax - 0x18], dl
inc eax
cmp eax, 8
jl 0x4dd0f0
lea eax, [ebp - 8]
push 0x498d84
push eax
call fcn.004e1470
push 4
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.004e01e0
add esp, 0x14
push ebx
push esi
mov dword [ebp - 0xc], 0
push edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0x10000
lea edx, [ebp - 0x10020]
push 1
push edx
call fcn.004e2e7b
add esp, 0x10
cmp eax, 0x18
jl 0x4dd1b1
mov edi, eax
lea esi, [edi - 0x14]
test esi, esi
jle 0x4dd180
xor edx, edx
xor ecx, ecx
mov bl, byte [ebp + ecx - 0x20]
lea eax, [ecx + edx]
cmp bl, byte [ebp + eax - 0x10020]
je 0x4dd19e
cmp ecx, 0x14
je 0x4f7cf9
inc edx
cmp edx, esi
jl 0x4dd160
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
lea edx, [ecx + edi - 0x14]
mov ecx, dword [eax]
push 1
push 0xffffffffffffffec
push ecx
mov dword [ebp - 0xc], edx
call fcn.004e3241
add esp, 0xc
jmp 0x4dd134
mov bl, byte [ebp + ecx - 0x1f]
lea eax, [ecx + edx]
cmp bl, byte [ebp + eax - 0x1001f]
je 0x4dd1bf
inc ecx
jmp 0x4dd172
mov eax, 3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov bl, byte [ebp + ecx - 0x1e]
lea eax, [ecx + edx]
cmp bl, byte [ebp + eax - 0x1001e]
je 0x4dd1d4
add ecx, 2
jmp 0x4dd172
mov bl, byte [ebp + ecx - 0x1d]
lea eax, [ecx + edx]
cmp bl, byte [ebp + eax - 0x1001d]
jne 0x4f7cf1
mov bl, byte [ebp + ecx - 0x1c]
lea eax, [ecx + edx]
cmp bl, byte [ebp + eax - 0x1001c]
je 0x4f7ce0
add ecx, 4
jmp 0x4dd172
add ecx, 5
cmp ecx, 0x14
jl 0x4dd162
jmp 0x4dd172
add ecx, 3
jmp 0x4dd172
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
lea ecx, [eax + edx + 0x14]
mov edx, dword [esi]
push 0
push ecx
push edx
call fcn.004e3241
mov eax, dword [esi]
push eax
push 4
lea ecx, [ebp - 8]
push 1
push ecx
call fcn.004e2e7b
lea edx, [ebp - 8]
push 0x498d74
push edx
mov byte [ebp - 4], 0
call fcn.004e2ea0
add esp, 0x24
neg eax
sbb eax, eax
and eax, 4
jmp 0x4dd1b6
Function at 0x4dd280
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a8
push ebx
push esi
or ecx, 0xffffffff
mov ebx, 0x4956ec
call fcn.004dd210
mov esi, eax
lea eax, [esp + 0xa8]
push esi
push eax
call fcn.004e1470
push esi
call fcn.004dec76
add esp, 0xc
lea esi, [esp + 0x18]
call fcn.004dd340
lea eax, [esp + 0xa8]
mov ecx, esi
call fcn.004dd370
xor ebx, ebx
mov dword [edi + 8], ebx
xor ecx, ecx
mov eax, ebx
movzx edx, byte [esp + ecx + 0x18]
add eax, edx
movzx edx, byte [esp + ecx + 0x19]
add eax, edx
movzx edx, byte [esp + ecx + 0x1a]
add eax, edx
movzx edx, byte [esp + ecx + 0x1b]
add ecx, 4
add eax, edx
cmp ecx, 0x10
jl 0x4dd2d4
mov dword [edi + 8], eax
mov eax, dword [ebp + 8]
push 0x498d64
push eax
call fcn.004e2b39
add esp, 8
mov dword [edi], eax
cmp eax, ebx
je 0x4f9aba
push edi
call fcn.004dd0e0
cmp eax, ebx
je 0x4f9ac4
mov ecx, dword [edi]
push ecx
mov esi, eax
call fcn.004e2bbd
add esp, 4
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 1
jmp 0x4dd333
mov edx, dword [edi]
push edx
push 0x10
lea eax, [esp + 0x10]
push 1
push eax
call fcn.004e2e7b
add esp, 0x10
push 0x99f2
push 0x10
lea ecx, [esp + 0x10]
push ecx
call 0x51cfc1
xor eax, eax
mov dword [edi + 8], ebx
xor ecx, ecx
movzx edx, byte [esp + eax + 8]
inc eax
imul ecx, edx
cmp eax, 0x10
jl 0x4f9af0
mov eax, dword [edi]
push eax
mov dword [edi + 8], ecx
call fcn.004e3152
add esp, 4
mov dword [edi + 4], eax
xor eax, eax
jmp 0x4dd333

Function at 0x4dd340
Capabilities:
Hash data with md5

Disassembly:
push 8
lea eax, [esi + 0x44]
push 0
push eax
call fcn.004e05c0
add esp, 0xc
mov dword [esi + 0x34], 0x67452301
mov dword [esi + 0x38], 0xefcdab89
mov dword [esi + 0x3c], 0x98badcfe
mov dword [esi + 0x40], 0x10325476
ret
Function at 0x503ae1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x464]
test eax, eax
je 0x503af9
cmp eax, 0x10000
jne 0x503b1d
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x45c]
push eax
push 0x10000
push 1
push ecx
call fcn.004e2e7b
add esp, 0x10
mov dword [esi + 0x464], 0
mov ecx, dword [esi + 0x464]
mov edx, dword [esi + 0x45c]
mov al, byte [ecx + edx]
inc ecx
mov dword [esi + 0x464], ecx
pop esi
pop ebp
ret 4

Function at 0x503b6e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov dl, byte [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x460]
mov eax, dword [esi + 0x458]
mov byte [eax + ecx], dl
inc dword [esi + 0x460]
cmp dword [esi + 0x460], 0x10000
jne 0x503bbd
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x458]
push eax
push 0x10000
push 1
push ecx
call fcn.004e20d6
add esp, 0x10
mov dword [esi + 0x460], 0
pop esi
pop ebp
ret 8

Function at 0x503d4b
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [0x4b8628], eax
mov edx, 1
mov eax, 0x4b8628
push edi
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
add eax, 4
inc edx
cmp eax, 0x4b8fe4
jl 0x503d61
mov dword [0x4a3104], 1
mov dword [0x4b8ff8], 1
pop edi
pop ebp
ret

Function at 0x514376
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x34]
push edi
push 0x498d98
push eax
mov dword [ebp - 4], 0x414fbd
call fcn.004e2b39
mov edi, eax
add esp, 8
mov dword [ebp - 8], edi
test edi, edi
jne 0x5143ca
push eax
push 0xdeadbeef
push 0x1f
push esi
call fcn.00514267
mov bl, al
lea eax, [ebp - 8]
push eax
call fcn.0050332e
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp + 8], 1
jmp 0x5143d6
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 8]
push ecx
push 0x400
lea edx, [ebp - 0x408]
push edx
push eax
call dword [fcn.00487764]
test eax, eax
je 0x514448
mov eax, dword [ebp + 8]
test eax, eax
je 0x51441c
push edi
push 1
push eax
lea ecx, [ebp - 0x408]
push ecx
call fcn.004e20d6
mov eax, dword [ebp + 8]
add esp, 0x10
add dword [esi + 8], eax
adc dword [esi + 0xc], 0
test eax, eax
jne 0x5143d6
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
jne 0x51446d
push eax
push 0xdeadbeef
push 0x21
push esi
call fcn.00514267
lea ecx, [ebp - 8]
push ecx
mov bl, al
call fcn.0050332e
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push 0xdeadbeef
push 0x20
push esi
call fcn.00514267
lea edx, [ebp - 8]
push edx
mov bl, al
call fcn.0050332e
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
push 1
push 0
push 0
push esi
call fcn.00514267
lea edx, [ebp - 8]
push edx
mov bl, al
call fcn.0050332e
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x516a6a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
lea ecx, [eax + 4]
push edi
mov edi, dword [eax + edx]
mov dword [esi], ecx
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004e0689
mov ebx, eax
lea eax, [edi + edi]
push eax
mov eax, dword [esi]
add eax, dword [ebp + 8]
push eax
push ebx
call fcn.004e01e0
lea eax, [edi + edi]
add dword [esi], eax
xor ecx, ecx
mov word [eax + ebx], cx
add esp, 0x10
xor eax, eax
test edi, edi
jle 0x516ac8
xor word [ebx + eax*2], di
inc eax
cmp eax, edi
jl 0x516abf
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8
Function at 0x401072
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4010a5
push 0xfffffffffffffffe
pop eax
jmp 0x401217
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + 0xa]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebp - 4], eax
jne 0x4010ce
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4010ea
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
lea eax, [ebp - 0x10]
push 0
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4010f2
or eax, 0xffffffff
jmp 0x401217
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esi], 0x42
jne 0x401200
cmp byte [esi + 1], 0x4d
jne 0x401200
push 0
sub edi, 0xe
pop eax
je 0x401120
mov cl, byte [eax + esi + 0xe]
mov byte [eax + esi], cl
inc eax
cmp eax, edi
jb 0x401114
cmp dword [esi + 0x10], 0
je 0x40112d
push 0xfffffffffffffff0
jmp 0x401202
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 4]
mov dword [edi + 8], eax
mov eax, dword [esi + 8]
and dword [edi + 4], 0
mov dword [edi + 0xc], eax
movzx eax, word [esi + 0xe]
dec eax
je 0x401169
sub eax, 3
je 0x401165
sub eax, 4
je 0x40115e
sub eax, 0x10
jne 0x401200
xor eax, eax
jmp 0x40116c
mov eax, 0x400
jmp 0x40116c
push 0x40
jmp 0x40116b
push 8
pop eax
mov ebx, dword [esi]
push 0
add ebx, eax
add ebx, esi
call dword [sym.imp.USER32.dll_GetDC]
and dword [ebp + 0xc], 0
push 0xc
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
cmp eax, 8
jne 0x401196
mov dword [ebp + 0xc], 1
cmp word [esi + 0xe], 8
jne 0x4011c5
cmp dword [ebp + 0xc], 0
je 0x4011c5
push esi
call fcn.0040121e
pop ecx
mov dword [edi + 4], eax
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SelectPalette]
push dword [ebp + 8]
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
push 0
push esi
push ebx
push 4
push esi
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov dword [edi], eax
cmp word [esi + 0xe], 8
jne 0x4011f2
cmp dword [ebp + 0xc], 0
je 0x4011f2
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SelectPalette]
push dword [ebp + 8]
xor esi, esi
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x401203
push 0xfffffffffffffff8
pop esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405443
Capabilities:
Get file size

Disassembly:
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x40544f
mov eax, 0x4364dc
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
ja 0x40548d
cmp esi, 0xffffffff
je 0x405489
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x405489
push esi
call eax
xor al, al
jmp 0x4054a6
mov ecx, dword [esp + 8]
cmp esi, 0xffffffff
mov dword [ecx], eax
je 0x4054a4
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4054a4
push esi
call eax
mov al, 1
pop esi
ret 4
Function at 0x407ae8
Capabilities:
Copy file
Create thread

Disassembly:
mov eax, 0x43340e
call fcn.00427498
sub esp, 0x428
push ebx
push esi
push dword [ebp + 8]
mov esi, ecx
call fcn.00407cff
test al, al
je 0x407b1b
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x407ca8
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x433]
mov byte [ebp - 0x434], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x434]
mov ecx, esi
push eax
push dword [ebp + 8]
call fcn.00407d27
mov edi, 0x400
push edi
push ebx
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
push edi
push ebx
mov dword [esi + 0x90], eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
push edi
mov dword [esi + 0x94], eax
push dword [esi + 0x90]
lea eax, [ebp - 0x434]
push 0xffffffffffffffff
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
push dword [esi + 0x94]
push 0xffffffffffffffff
push dword [ebp + 0xc]
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x2c
call fcn.004274b7
pop ecx
mov dword [ebp + 8], eax
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x407bba
push 4
push esi
push dword [esi + 0x90]
mov ecx, eax
call fcn.00407cb8
jmp 0x407bbc
xor eax, eax
mov dword [esi + 0x98], eax
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push ebx
push esi
push 0x407a9c
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
push 4
mov dword [ebp - 0x10], edi
call fcn.004274b7
mov dword [eax], edi
pop ecx
mov edi, 0xff
mov dword [ebp + 8], eax
push edi
push 0xffffffffffffffff
push ebx
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, 1
mov dword [ebp + 0xc], eax
jne 0x407c44
push 1
push ebx
push ebx
lea eax, [ebp - 0x34]
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x407c3b
cmp dword [ebp - 0x30], 0x8032
jne 0x407c2f
mov ecx, dword [esi + 0x98]
call fcn.0040812a
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x407c08
push edi
push 0xffffffffffffffff
push ebx
push dword [ebp + 8]
jmp 0x407bf8
push dword [ebp + 8]
call fcn.00426aea
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
pop ecx
push dword [esi + 0x90]
call edi
push dword [esi + 0x94]
call edi
mov esi, dword [esi + 0x98]
pop edi
cmp esi, ebx
je 0x407c7d
lea ecx, [esi + 8]
call fcn.00407e83
push esi
call fcn.00426aea
pop ecx
cmp dword [ebp + 0xc], 0xffffffff
jne 0x407c87
xor eax, eax
jmp 0x407ca8
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x14], ebx
setge al
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x40cd2f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x40cd3b
mov eax, 0x4364dc
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40cd4f
test al, 0x10
jne 0x40cd4f
push 1
pop eax
ret
xor eax, eax
ret

Function at 0x40f6c8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SoftwareInstallShieldISWI7.0SetupExeLog
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40f71f
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push 0x442d0c
push 0
push 0
push str.SetupLogFileName
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40f716
mov byte [0x443d0c], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x40f959
Capabilities:
Hide graphical window

Disassembly:
push dword [0x443d1c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40f985
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [0x443d1c]
call esi
push 0
push dword [0x443d14]
call esi
pop esi
ret
Function at 0x413075
Capabilities:
Query or enumerate registry value
Set current directory

Disassembly:
mov eax, 0x4340f4
call fcn.00427498
sub esp, 0x118
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 8]
push 1
pop esi
cmp ecx, 0x2000
mov dword [eax], esi
je 0x4130f0
cmp ecx, 0xbc2
je 0x4130f0
xor ebx, ebx
cmp ecx, 0x800704c7
je 0x4130b7
cmp ecx, 0x642
jne 0x4130c3
cmp dword [ebp + 0x18], ebx
je 0x4130c3
mov dword [eax], ebx
jmp 0x4131ea
cmp ecx, ebx
je 0x4131ea
cmp ecx, 0x1008
je 0x4131ea
mov ecx, dword [ebp - 0x10]
mov dword [0x445424], 0x66d
call fcn.00417fbc
xor eax, eax
jmp 0x4131ec
push edi
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x1f]
mov byte [ebp - 0x20], bl
mov ecx, dword [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x20]
push 0x10
push eax
push 0x43ddf0
push str.DotNetDelayReboot
push dword [0x4365e4]
call fcn.00401046
mov ecx, eax
add ecx, 0x4020
call fcn.004025bc
cmp byte [ebp - 0x20], 0x59
mov byte [ebp + 0x17], bl
je 0x41313b
cmp byte [ebp - 0x20], 0x79
jne 0x41313f
mov byte [ebp + 0x17], 1
call fcn.004211df
test eax, eax
jne 0x413161
cmp dword [ebp + 8], 0xbc2
jne 0x413156
cmp byte [ebp + 0x17], bl
je 0x413161
mov eax, dword [ebp + 0xc]
mov dword [eax], 2
jmp 0x41316b
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0x18], ebx
mov dword [eax + 0x38], esi
push 0x20019
push str.SoftwareMicrosoftWindowsCurrentVersionInstaller
push 0x80000002
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], ebx
call fcn.0040f736
test eax, eax
jne 0x4131db
push 0x40
lea edi, [ebp - 0x123]
pop ecx
mov byte [ebp - 0x124], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x104
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp + 0xc]
push eax
push ebx
push str.InstallerLocation
mov dword [ebp + 0xc], ebx
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp dword [ebp + 0x18], ebx
pop edi
je 0x4131ea
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14
Function at 0x4154dc
Capabilities:
Query or enumerate registry value
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
and byte [ebp - 0x108], 0
push ebx
push esi
push edi
mov esi, ecx
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
mov ebx, dword [ebp + 0xc]
rep stosd dword es:[edi], eax
and dword [ebx], 0
and byte [ebp + 0xf], 0
stosw word es:[edi], ax
mov ecx, esi
stosb byte es:[edi], al
call fcn.00401046
add eax, 0xac
push eax
push str.2.0.2600.0
call fcn.00420ef7
pop ecx
test eax, eax
pop ecx
jge 0x415547
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push str.__s___q
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov edi, 0x43e190
jmp 0x415596
mov ecx, esi
mov byte [ebp + 0xf], 1
call fcn.00401046
mov ecx, eax
call fcn.0041dbcd
push dword [ebp + 8]
test eax, eax
je 0x41557c
lea eax, [ebp - 0x108]
push str.__s___quiet__norestart
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov edi, str._quiet__norestart
jmp 0x415596
lea eax, [ebp - 0x108]
push str.__s___c:_msiinst__delayrebootq_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov edi, str._c:_msiinst__delayrebootq_
mov ecx, esi
call fcn.00401046
mov ecx, eax
call fcn.0041dbcd
test eax, eax
je 0x4155bd
mov ecx, esi
call fcn.00401046
push eax
push 1
push edi
push dword [ebp + 8]
call fcn.00421732
jmp 0x4155cb
lea eax, [ebp - 0x108]
push 1
push eax
call fcn.00421000
mov esi, eax
test esi, esi
je 0x415689
cmp esi, 0xbc2
je 0x4155f8
push 0
push esi
mov dword [0x445424], 0x484
call fcn.00420377
pop ecx
mov eax, esi
pop ecx
jmp 0x41568b
cmp byte [ebp + 0xf], 0
je 0x415683
and dword [ebp + 8], 0
push 0x20019
push str.SoftwareMicrosoftWindowsCurrentVersionInstaller
push 0x80000002
lea ecx, [ebp + 8]
mov dword [ebx], 2
call fcn.0040f736
test eax, eax
jne 0x415672
and byte [ebp - 0x20c], al
push 0x40
pop ecx
lea edi, [ebp - 0x20b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0xc]
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 4]
push eax
push 0
push str.InstallerLocation
mov dword [ebp + 0xc], 0x104
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp dword [ebp + 8], 0
je 0x415689
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x415689
mov dword [ebx], 1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41746c
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x43455a
call fcn.00427498
sub esp, 0x18c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x12]
mov ebx, 0x43647c
mov esi, 0x436474
push edi
push eax
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], 1
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x4c], esi
call fcn.00401581
push dword [ebp + 0xc]
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 2
push eax
call fcn.00417673
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.004016f0
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], edi
push ecx
push 0x20019
push edi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x4174f5
lea ecx, [ebp - 0x10]
call fcn.0040a6e5
mov ecx, dword [ebp + 0xc]
cmp eax, edi
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
sete byte [ebp + 0xf]
call fcn.0040191f
cmp byte [ebp + 0xf], 0
je 0x41762b
and byte [ebp - 0x198], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x197]
and dword [ebp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x104
push eax
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp + 0xc]
push eax
push 0
push str.Version
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x417575
mov edi, dword [ebp + 8]
lea eax, [ebp + 0xf]
push 0
push eax
mov ecx, edi
mov dword [edi], ebx
mov dword [edi + 0x20], esi
call fcn.00401581
mov dword [ebp - 0x18], 1
jmp 0x417647
lea eax, [ebp + 0xf]
push 1
push eax
lea eax, [ebp - 0x198]
push eax
lea ecx, [ebp - 0x44]
call fcn.004014ff
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x6c]
push eax
mov byte [ebp - 4], 4
call fcn.0040a1ce
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.0040191f
mov eax, 0x43e2b0
mov dword [ebp - 0x44], ebx
mov ecx, eax
mov dword [ebp - 0x24], esi
test ecx, ecx
mov edi, 0x442434
jne 0x4175be
mov eax, edi
lea ecx, [ebp + 0xf]
push 0
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.0040b6e0
mov eax, 0x43e2ac
mov byte [ebp - 4], 5
mov ecx, eax
mov dword [ebp - 0x94], ebx
test ecx, ecx
mov dword [ebp - 0x74], esi
jne 0x4175e7
mov eax, edi
lea ecx, [ebp - 0x11]
push 0
push ecx
push eax
lea ecx, [ebp - 0x94]
call fcn.0040b6e0
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 6
call fcn.004187a5
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 5
call fcn.0040191f
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.0040191f
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x6c]
push 0
push eax
mov ecx, edi
mov dword [edi], ebx
mov dword [edi + 0x20], esi
call fcn.0040b64d
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.0040191f
cmp dword [ebp - 0x10], 0
je 0x417662
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret