joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d954b
Capabilities:
Create process on windows

Disassembly:
push 0x88
mov eax, 0x5227b1
call fcn.00519636
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x94]
mov edi, dword [ebp + 0xc]
push 0x44
pop ebx
push ebx
push 0
push eax
call fcn.004f1300
push 0x10
lea eax, [ebp - 0x50]
mov dword [ebp - 0x94], ebx
push 0
push eax
call fcn.004f1300
add esp, 0x18
xor edx, edx
xor eax, eax
mov dword [ebp - 0x18], edx
mov word [ebp - 0x28], ax
push 7
pop ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
mov word [ebp - 0x40], ax
or ebx, 0xffffffff
mov byte [ebp - 4], 1
test edi, edi
je 0x4d9629
cmp word [edi], dx
jne 0x4d95ba
mov eax, edx
jmp 0x4d95c1
push edi
call fcn.00508479
pop ecx
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.0041b090
cmp dword [ebp - 0x30], 0
je 0x4d9629
mov edi, 0x525f10
push edi
call fcn.00508479
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.0041b090
xor edi, edi
cmp word [esi], di
jne 0x4d95f2
mov eax, edi
jmp 0x4d95f9
push esi
call fcn.00508479
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.0041c290
mov esi, 0x525b10
push esi
call fcn.00508479
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.0041c290
push ebx
push edi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.0041c180
jmp 0x4d9645
xor edi, edi
cmp word [esi], di
jne 0x4d9634
mov eax, edi
jmp 0x4d963b
push esi
call fcn.00508479
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.0041b090
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0x563350
call fcn.004dd488
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
pop ecx
cmovae eax, dword [ebp - 0x28]
pop ecx
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x94]
push ecx
push edi
push edi
push edi
push edi
push edi
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4d9689
mov esi, edi
jmp 0x4d96b4
cmp byte [ebp + 0x10], 0
je 0x4d96a1
cmp dword [ebp + 0x14], 0
cmovg ebx, dword [ebp + 0x14]
push ebx
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x50]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x4c]
call esi
xor esi, esi
inc esi
push edi
push 1
lea ecx, [ebp - 0x40]
call fcn.0041c110
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.0041c110
mov eax, esi
call fcn.005195e0
ret
Function at 0x4d9f92
Capabilities:
Enumerate processes

Disassembly:
push 0x260
mov eax, 0x5228bf
call fcn.00519636
mov eax, dword [ebp + 8]
test eax, eax
je 0x4da08e
push eax
lea ecx, [ebp - 0x40]
call fcn.0041e330
lea eax, [ebp - 0x40]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004daf1f
mov edi, 0x22c
lea eax, [ebp - 0x26c]
push edi
push ebx
push eax
call fcn.004f1300
add esp, 0x10
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4da07f
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], edi
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x4da074
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
cmp word [ebp - 0x248], ax
jne 0x4da01e
mov eax, ebx
jmp 0x4da02b
lea eax, [ebp - 0x248]
push eax
call fcn.00508479
pop ecx
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x28]
call fcn.0041b090
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.004daf1f
pop ecx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004dbe92
test eax, eax
je 0x4da094
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.0041c110
lea eax, [ebp - 0x26c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4da001
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, ebx
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.0041c110
mov eax, esi
call fcn.005195e0
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x264]
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.0041c110
jmp 0x4da081
Function at 0x4da3da
Capabilities:
Check os version

Disassembly:
push 0x34c
mov eax, 0x5229fb
call fcn.00519636
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x330]
xor ebx, ebx
mov dword [ebp - 0x358], esi
push 0x118
push ebx
mov dword [ebp - 0x350], ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x334], 0x11c
call fcn.004f1300
add esp, 0xc
lea eax, [ebp - 0x334]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x5255e4
mov ecx, esi
call fcn.0041e330
mov eax, dword [ebp - 0x330]
mov dword [ebp - 0x34c], eax
movzx eax, byte [ebp - 0x21a]
mov dword [ebp - 0x354], eax
mov eax, dword [ebp - 0x328]
mov dword [ebp - 0x338], eax
mov eax, dword [ebp - 0x32c]
push 0x5634c4
mov dword [ebp - 4], ebx
mov dword [ebp - 0x350], 1
mov dword [ebp - 0x340], ebx
mov dword [ebp - 0x344], ebx
mov dword [ebp - 0x33c], ebx
mov dword [ebp - 0x348], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x4da4d1
push str.RtlGetNtVersionNumbers
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4da4ca
lea ecx, [ebp - 0x33c]
push ecx
lea ecx, [ebp - 0x344]
push ecx
lea ecx, [ebp - 0x340]
push ecx
call eax
movzx eax, word [ebp - 0x33c]
mov dword [ebp - 0x33c], eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x34c]
cmp eax, 5
jne 0x4da503
mov eax, dword [ebp - 0x348]
test eax, eax
je 0x4da5cf
cmp eax, 1
jne 0x4da4f9
mov edi, str.WindowsXP
jmp 0x4da5bf
mov edi, str.WindowsServer2003
jmp 0x4da5bf
cmp eax, 6
jne 0x4da5cf
mov eax, dword [ebp - 0x348]
sub eax, ebx
je 0x4da5ac
sub eax, 1
je 0x4da5a5
mov edi, dword [ebp - 0x338]
sub eax, 1
jne 0x4da5d5
cmp edi, 0x1ebb
jne 0x4da541
mov edi, str.Windows8
jmp 0x4da5bf
lea eax, [edi - 0x1ee6]
cmp eax, 0x25
jbe 0x4da53a
cmp edi, 0x1f13
je 0x4da53a
cmp dword [ebp - 0x340], 0xa
jne 0x4da579
cmp dword [ebp - 0x344], 0
jne 0x4da5d5
push str.Windows10
call fcn.00508479
pop ecx
push eax
push str.Windows10
jmp 0x4da59c
cmp dword [ebp - 0x340], 6
jne 0x4da5d5
cmp dword [ebp - 0x344], 3
jne 0x4da5d5
push str.Windows8.1
call fcn.00508479
pop ecx
push eax
push str.Windows8.1
mov ecx, esi
call fcn.0041b090
jmp 0x4da5d5
mov edi, str.Windows7
jmp 0x4da5bf
cmp dword [ebp - 0x354], 1
mov edi, str.WindowsVista
je 0x4da5bf
mov edi, str.WindowsServer2008
push edi
call fcn.00508479
pop ecx
push eax
push edi
mov ecx, esi
call fcn.0041b090
mov edi, dword [ebp - 0x338]
push 0x5255e4
mov ecx, esi
call fcn.004dbec2
test eax, eax
jne 0x4da643
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004f1300
mov eax, dword [ebp - 0x34c]
push edi
push dword [ebp - 0x348]
push eax
lea eax, [ebp - 0x218]
push str.Windows_d._d._d
push eax
call fcn.004dce59
add esp, 0x20
cmp word [ebp - 0x218], 0
jne 0x4da627
mov eax, ebx
jmp 0x4da634
lea eax, [ebp - 0x218]
push eax
call fcn.00508479
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.0041b090
cmp dword [ebp + 0xc], 0
je 0x4da671
cmp word [ebp - 0x320], 0
je 0x4da662
lea eax, [ebp - 0x320]
push eax
call fcn.00508479
pop ecx
mov ebx, eax
push ebx
lea eax, [ebp - 0x320]
mov ecx, esi
push eax
call fcn.0041c290
mov eax, esi
call fcn.005195e0
ret
Function at 0x4dae03
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x5793bc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, 0x11c
lea eax, [ebp - 0x120]
push esi
push 0
push eax
call fcn.004f1300
add esp, 0xc
mov dword [ebp - 0x120], esi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
pop esi
jg 0x4dae66
cmp dword [ebp - 0x118], 2
jg 0x4dae66
xor eax, eax
inc eax
jmp 0x4dae68
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042774d
mov esp, ebp
pop ebp
ret

Function at 0x4db38b
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x522b33
call fcn.00519636
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x4db48b
cmp byte [ebx + 0x3d], 0
je 0x4db48b
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x4db3c5
xor al, al
jmp 0x4db48d
xor eax, eax
mov dword [ebp - 0x14], 0xf
push eax
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.004dbcf3
and dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x28]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4db423
sub eax, 1
je 0x4db427
dec eax
sub eax, 1
je 0x4db479
xor bl, bl
jmp 0x4db47b
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x4db45f
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.004fc7fd
add esp, 0x10
cmp esi, eax
jne 0x4db41f
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp byte [ebx + 0x3d], 0
je 0x4db479
test esi, esi
jne 0x4db3e9
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00426e60
jmp 0x4db3e3
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004dbc24
mov al, bl
jmp 0x4db48d
mov al, 1
call fcn.005195e0
ret
Function at 0x4dba24
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, 0xe3
push edi
lea edi, [esi + 0x9c4]
mov ecx, dword [edi + 4]
xor ecx, dword [edi]
and ecx, 0x7fffffff
xor ecx, dword [edi]
lea edi, [edi + 4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x630]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub ebx, 1
jne 0x4dba34
lea edi, [esi + 0xd50]
mov ebx, 0x18c
mov ecx, dword [edi + 4]
xor ecx, dword [edi]
and ecx, 0x7fffffff
xor ecx, dword [edi]
lea edi, [edi + 4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd50]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub ebx, 1
jne 0x4dba74
mov ecx, dword [esi + 0x1380]
xor ecx, dword [esi + 4]
and ecx, 0x7fffffff
xor ecx, dword [esi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
and dword [esi], ebx
pop esi
pop ebx
ret

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

Disassembly:
push esi
lea edx, [ecx + 8]
mov esi, 0x270
mov ecx, dword [edx - 4]
xor ecx, dword [edx]
lea edx, [edx + 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x4dbaed
pop esi
ret

Function at 0x4dcbf9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ecx + 4], edx
push edi
inc esi
lea edi, [ecx + 8]
mov ebx, 0x270
mov eax, edx
shr eax, 0x1e
xor edx, eax
imul edx, dword [ebp + 0xc]
add edx, esi
inc esi
mov dword [edi], edx
lea edi, [edi + 4]
cmp esi, ebx
jl 0x4dcc10
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
pop ebp
ret 8
Function at 0x4de78c
Capabilities:
Encode data using xor

Disassembly:
push 0x74
mov eax, 0x522efa
call fcn.00519636
mov edi, ecx
mov dword [ebp - 0x4c], edi
mov eax, dword [edi]
or eax, dword [edi + 4]
jne 0x4de7ca
xor ebx, ebx
push ebx
call fcn.004f89a2
mov dword [edi], eax
imul eax, dword [edi + 8], 0x3c
pop ecx
mov dword [edi + 4], edx
test eax, eax
jle 0x4de7d8
push eax
push ebx
call fcn.004da14e
cdq
add dword [edi], eax
pop ecx
adc dword [edi + 4], edx
jmp 0x4de7d7
xor ebx, ebx
push ebx
call fcn.004f89a2
mov dword [edi], eax
mov dword [edi + 4], edx
pop ecx
push 0x1869f
push 0x2710
call fcn.004da14e
pop ecx
pop ecx
lea ecx, [edi + 0xa8]
mov esi, eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.004d8bb8
xor eax, eax
mov dword [ebp - 4], ebx
inc eax
cmp dword [ebp - 0x18], 0
je 0x4de91a
push str._rand
call fcn.00508a20
pop ecx
push eax
push str._rand
lea ecx, [ebp - 0x28]
call fcn.0041ae40
mov eax, esi
cdq
push edx
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004da91b
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0041ad40
xor eax, eax
mov byte [ebp - 4], bl
push ebx
inc eax
lea ecx, [ebp - 0x40]
push eax
call fcn.004dbc24
lea ecx, [ebp - 0x80]
call fcn.00417c60
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 2
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00417e80
lea ecx, [ebp - 0x80]
call fcn.00418770
push 1
mov dword [ebp - 0x44], eax
mov esi, dword [eax + 4]
sub esi, dword [eax]
pop eax
cmove esi, eax
inc esi
push esi
call fcn.00427781
push esi
mov esi, eax
mov dword [ebp - 0x48], eax
push ebx
push esi
call fcn.004f1300
push str.GUANGSU
call fcn.00508a20
mov dword [ebp - 0x48], eax
add esp, 0x14
mov eax, dword [ebp - 0x44]
mov edx, ebx
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
je 0x4de8e5
mov edi, ebx
mov ecx, dword [eax]
mov al, byte [ecx + edx]
xor al, byte [edi + str.GUANGSU]
inc edi
mov ecx, dword [ebp - 0x44]
mov byte [edx + esi], al
xor eax, eax
cmp edi, dword [ebp - 0x48]
cmovge edi, eax
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
inc edx
cmp edx, eax
mov eax, ecx
jb 0x4de8bc
mov edi, dword [ebp - 0x4c]
push esi
mov ecx, edi
call fcn.004de555
test al, al
jne 0x4de8fe
test esi, esi
je 0x4de90f
push esi
call fcn.0042778a
pop ecx
jmp 0x4de90f
test esi, esi
je 0x4de909
push esi
call fcn.0042778a
pop ecx
xor eax, eax
inc eax
mov byte [edi + 0xc], al
lea ecx, [ebp - 0x80]
call fcn.00417d30
xor eax, eax
inc eax
push ebx
push eax
lea ecx, [ebp - 0x28]
call fcn.004dbc24
call fcn.005195e0
ret
Function at 0x4e0edf
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x30
mov eax, 0x52335b
call fcn.00519602
xor esi, esi
mov dword [ebp - 0x18], 0x104
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
call fcn.004ebd5c
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], esi
call fcn.004ebd90
test eax, eax
mov edi, 0xf013f
lea eax, [ebp - 0x10]
push eax
jne 0x4e0f1f
mov edi, 0xf003f
push edi
push esi
push 0x563714
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4e0f7f
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push edi
push esi
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4e0f5a
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4e0f7f
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x10]
call esi
lea ecx, [ebp - 0x3c]
call fcn.004ebd6f
call fcn.005195cb
ret 0xc
Function at 0x4e13ab
Capabilities:
Get common file path

Disassembly:
push 0x240
mov eax, 0x5233eb
call fcn.00519636
mov ebx, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
xor esi, esi
mov dword [ebp - 0x24c], edi
push esi
push eax
call fcn.004f1300
add esp, 0xc
lea eax, [ebp - 0x218]
push esi
push 0x19
push eax
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call esi
test eax, eax
je 0x4e14a2
and dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
je 0x4e1427
lea eax, [ebp - 0x218]
push eax
call fcn.00508479
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.0041b090
and dword [ebp - 4], 0
push 0x52623c
call fcn.00508479
pop ecx
push eax
push 0x52623c
lea ecx, [ebp - 0x230]
call fcn.0041c290
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push edi
cmovae eax, dword [ebp - 0x230]
mov ecx, ebx
push eax
call fcn.004e106d
mov edi, eax
lea ecx, [ebp - 0x230]
push 0
push 1
test edi, edi
je 0x4e1493
call fcn.0041c110
mov eax, edi
jmp 0x4e1554
or dword [ebp - 4], 0xffffffff
call fcn.0041c110
mov edi, dword [ebp - 0x24c]
push 0
push 0x10
lea eax, [ebp - 0x218]
push eax
push 0
call esi
test eax, eax
je 0x4e1552
and dword [ebp - 0x238], 0
xor eax, eax
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
cmp word [ebp - 0x218], ax
je 0x4e14e9
lea eax, [ebp - 0x218]
push eax
call fcn.00508479
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.0041b090
mov esi, 0x52623c
mov dword [ebp - 4], 1
push esi
call fcn.00508479
pop ecx
push eax
push esi
lea ecx, [ebp - 0x248]
call fcn.0041c290
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push edi
cmovae eax, dword [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.004e106d
push 0
lea ecx, [ebp - 0x248]
mov esi, eax
push 1
call fcn.0041c110
test esi, esi
je 0x4e1552
mov eax, esi
jmp 0x4e1554
xor eax, eax
call fcn.005195e0
ret 4
Function at 0x4e155c
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x5793bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x428], eax
xor edi, edi
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], edi
push eax
push 9
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
push reloc.WS2_32.dll_accept
mov esi, edi
mov dword [ebp - 0x41c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4e15af
xor eax, eax
jmp 0x4e16ae
push ebx
push 0x208
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004f1300
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ebx, edi
push 0x104
push eax
push edi
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4e169b
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4e1681
push 0x208
push eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0x420], 0x104
push eax
call fcn.004f1300
add esp, 0xc
xor eax, eax
inc eax
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x424]
push eax
push 0
push str.DisplayName
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4e1679
push dword [ebp - 0x428]
lea eax, [ebp - 0x414]
push eax
call fcn.004f1cc3
pop ecx
pop ecx
test eax, eax
push 1
pop eax
cmovne esi, eax
push dword [ebp - 0x41c]
call edi
push 0x104
lea eax, [ebp - 0x20c]
inc ebx
push eax
push ebx
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x4e15eb
push dword [ebp - 0x418]
call edi
mov eax, esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042774d
mov esp, ebp
pop ebp
ret 4
Function at 0x4e1ff2
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x5793bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x428], eax
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x418], ebx
push ebx
push eax
mov esi, ebx
mov dword [ebp - 0x41c], ebx
call fcn.004f1300
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
push 0x109
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4e213d
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
jmp 0x4e2117
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4e2109
push 0x208
push eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0x420], 0x104
push eax
call fcn.004f1300
add esp, 0xc
xor eax, eax
inc eax
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x424]
push eax
push 0
push str.DisplayName
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4e2101
push dword [ebp - 0x428]
lea eax, [ebp - 0x414]
push eax
call fcn.004f1cc3
pop ecx
pop ecx
test eax, eax
push 1
pop eax
cmovne esi, eax
push dword [ebp - 0x41c]
call edi
push 0x104
lea eax, [ebp - 0x20c]
inc ebx
push eax
push ebx
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x4e2073
push dword [ebp - 0x418]
call edi
test esi, esi
jne 0x4e2232
xor ebx, ebx
lea eax, [ebp - 0x418]
push eax
push 9
push ebx
push 0x563668
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4e2232
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
jmp 0x4e2216
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4e2208
push 0x208
push eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0x424], 0x104
push eax
call fcn.004f1300
add esp, 0xc
xor eax, eax
inc eax
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x420]
push eax
push 0
push str.DisplayName
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4e2200
push dword [ebp - 0x428]
lea eax, [ebp - 0x414]
push eax
call fcn.004f1cc3
pop ecx
pop ecx
test eax, eax
push 1
pop eax
cmovne esi, eax
push dword [ebp - 0x41c]
call edi
push 0x104
lea eax, [ebp - 0x20c]
inc ebx
push eax
push ebx
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x4e2172
push dword [ebp - 0x418]
call edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042774d
mov esp, ebp
pop ebp
ret 4