joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4024e0
Capabilities:
Delete file
Delete service
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x636148]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x402515
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cd1d
mov esp, ebp
pop ebp
ret
push esi
push 0xf01ff
push str.JKSvarer
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x402534
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
test esi, esi
je 0x402544
push esi
call edi
push ebx
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.0044b370
push 0x200
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.0044b370
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
add esp, 0x18
mov dword [ebp - 0x40c], 0
push str.Wow64DisableWow64FsRedirection
push str.Kernel32.dll
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.Wow64RevertWow64FsRedirection
push str.Kernel32.dll
mov dword [0x63ff9c], eax
call ebx
push eax
call edi
mov dword [0x63ff98], eax
lea eax, [ebp - 0x204]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x204]
push str.driversJKSvarer.sys.del
push eax
lea eax, [ebp - 0x404]
push str._s_s
push eax
call esi
push str.driversJKSvarer.sys
lea eax, [ebp - 0x204]
push eax
push str._s_s
push eax
call esi
add esp, 0x20
push str.IsWow64Process
push str.kernel32
call ebx
push eax
call edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
mov dword [ebp - 0x408], 0
test esi, esi
je 0x40263c
lea eax, [ebp - 0x408]
push eax
call edi
push eax
call esi
cmp dword [ebp - 0x408], 0
je 0x40263c
lea eax, [ebp - 0x40c]
push eax
call dword [0x63ff9c]
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x402672
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x404]
push 1
push eax
lea eax, [ebp - 0x204]
push eax
call esi
push 4
push 0
lea eax, [ebp - 0x404]
push eax
call esi
push str.IsWow64Process
push str.kernel32
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [ebp - 0x408], 0
pop ebx
test esi, esi
je 0x4026b7
lea eax, [ebp - 0x408]
push eax
call edi
push eax
call esi
cmp dword [ebp - 0x408], 0
je 0x4026b7
push dword [ebp - 0x40c]
call dword [0x63ff98]
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
xor ecx, ebp
pop edi
call fcn.0042cd1d
mov esp, ebp
pop ebp
ret
Function at 0x402750
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 0
push 0x2000080
push 3
push 0
push 0
push connect
push ecx
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x402788
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xa00000
ja 0x4027e5
push ebx
push esi
call fcn.00459818
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4027e4
push esi
push 0
push ebx
mov dword [ebp - 8], 0
call fcn.0044b370
add esp, 0xc
lea eax, [ebp - 8]
push 0
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ecx
mov edx, esi
mov ecx, ebx
call fcn.004026d0
push ebx
mov byte [ebp - 1], al
call fcn.00457a44
add esp, 8
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x402b20
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x460
mov eax, dword [0x636148]
xor eax, esp
mov dword [esp + 0x45c], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [esp + 0x30]
push 0
push 0x62be90
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], 0
mov byte [esp + 0x38], 0
call fcn.00403220
push 0
push 0x62be90
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
call fcn.00403220
lea eax, [esp + 0x14]
mov dword [esp + 0xc], vtable.DRIVER::CRegistry.0
push eax
push 0xf003f
push 0
push 0x62c170
push reloc.WS2_32.dll_bind
mov dword [esp + 0x24], reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402c51
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.004043d0
mov esi, dword [esp + 0x10]
test esi, esi
je 0x402be5
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
push 0x400
lea eax, [esp + 0x64]
push 0
push eax
call fcn.0044b370
add esp, 0xc
lea ecx, [esp + 0x60]
cmp dword [esp + 0x2c], 0x10
lea eax, [esp + 0x18]
cmovae eax, dword [esp + 0x18]
push dword [esp + 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea edx, [esp + 0x60]
lea ecx, [esp + 0x48]
call fcn.00402800
push eax
lea ecx, [esp + 0x34]
call fcn.00402e40
lea ecx, [esp + 0x48]
call fcn.00402dd0
lea eax, [esp + 0x30]
mov ecx, edi
push eax
call fcn.00402ef0
test esi, esi
je 0x402ceb
push esi
jmp 0x402ce5
mov dword [edi + 0x14], 0xf
xor esi, esi
mov dword [edi + 0x10], 0
mov byte [edi], 0
cmp byte [0], 0
je 0x402c82
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x402c70
sub esi, ecx
cmp esi, 0xfffffffe
ja 0x402d13
cmp dword [edi + 0x14], esi
jae 0x402ca0
push dword [edi + 0x10]
mov ecx, edi
push esi
call fcn.00403d50
test esi, esi
je 0x402ce0
cmp dword [edi + 0x14], 0x10
jb 0x402cbb
mov eax, dword [edi]
jmp 0x402cbd
test esi, esi
jne 0x402c96
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x402cb4
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x402ce0
mov eax, edi
mov byte [eax], 0
jmp 0x402ce0
mov eax, edi
test esi, esi
je 0x402ccd
push esi
push 0
push eax
call fcn.0044adf0
add esp, 0xc
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x402cda
mov eax, dword [edi]
jmp 0x402cdc
mov eax, edi
mov byte [esi + eax], 0
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
call fcn.00402dd0
lea ecx, [esp + 0x30]
call fcn.00402dd0
mov ecx, dword [esp + 0x464]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0042cd1d
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.0041f0ed
int3
Function at 0x4043d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa04
mov eax, dword [0x636148]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
cmp dword [esi + 4], 0
jne 0x404407
push 0xd6
push str.Registry.cpp
push str.m_hKey
call fcn.0045e401
add esp, 0xc
test edi, edi
jne 0x404422
push 0xd8
push str.Registry.cpp
push str.lpVal
call fcn.0045e401
add esp, 0xc
lea eax, [ebp - 0xa00]
mov dword [ebp - 0xa00], 0xc8
push eax
lea eax, [ebp - 0x9fc]
push eax
lea eax, [ebp - 0xa04]
push eax
push 0
push str.MinidumpDir
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40449f
cmp byte [ebp - 0x9fc], al
jne 0x404461
xor ecx, ecx
jmp 0x404479
lea ecx, [ebp - 0x9fc]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404470
sub ecx, edx
push ecx
lea eax, [ebp - 0x9fc]
mov ecx, edi
push eax
call fcn.00403220
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cd1d
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0042cd1d
mov esp, ebp
pop ebp
ret 8

Function at 0x4049a0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a8bcb
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x636148]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0044b370
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x801c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x404afb
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], eax
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
jne 0x404a25
xor ecx, ecx
jmp 0x404a3f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404a30
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00403090
push 1
push 0x5ae878
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0
call fcn.00406130
push 0xc
push 0x5aea50
lea ecx, [ebp - 0x230]
call fcn.00406130
push 1
push 0x5ae878
lea ecx, [ebp - 0x230]
call fcn.00406130
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404add
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x230]
push eax
call fcn.00403860
call fcn.004325e9
add esp, 0x18
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x404afb
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.004036f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042cd1d
mov esp, ebp
pop ebp
ret
Function at 0x405420
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
lea eax, [ebp - 8]
push 0x5ae7d0
push eax
call fcn.00404c00
add esp, 8
test eax, eax
jne 0x405441
xor eax, eax
mov esp, ebp
pop ebp
ret
push 0x44
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.0044b370
add esp, 0xc
mov dword [ebp - 0x5c], 0x44
lea eax, [ebp - 4]
mov dword [ebp - 0x54], str.winsta0default
mov dword [ebp - 4], 0
push 1
push dword [ebp - 8]
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x40543b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push 0
push dword [ebp - 4]
push 0x420
push 0
push 0
push 0
push dword [ebp + 8]
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esp, ebp
pop ebp
ret
Function at 0x405b30
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a8e0c
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x636148]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x250]
mov dword [ebp - 0x250], 0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x405b9a
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x250]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 0x250]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
jne 0x405bc4
xor ecx, ecx
jmp 0x405bdf
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405bd0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00403090
push 0x5ae878
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00404500
add esp, 0xc
mov esi, eax
lea eax, [ebp - 0x230]
cmp eax, esi
je 0x405c67
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x405c3e
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.004036f0
xor eax, eax
mov dword [ebp - 0x21c], 7
push esi
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.00405d40
mov eax, dword [ebp - 0x234]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x405c89
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.004036f0
push 5
push 0x5ae87c
lea ecx, [ebp - 0x230]
call fcn.00406130
push 4
push str..lnk
lea ecx, [ebp - 0x230]
call fcn.00406130
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x249]
call fcn.00403fa0
lea ecx, [ebp - 0x249]
mov byte [ebp - 4], 2
call fcn.0042b29d
call fcn.00406380
mov ecx, eax
call fcn.0042b29d
lea ecx, [ebp - 0x249]
call fcn.004d8630
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x405d17
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.004036f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042cd1d
mov esp, ebp
pop ebp
ret
Function at 0x40e900
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
jle 0x40ea0a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
sub eax, 0xffffff80
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
lea esi, [ecx + 2]
sub ecx, eax
lea edx, [eax + 2]
add ecx, 0xfffffffe
lea eax, [edi - 1]
mov dword [ebp + 0x14], edx
shr eax, 3
inc eax
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
nop
movzx eax, byte [edx - 2]
add ecx, edx
push ecx
push ecx
push dword [ebp - 0xc]
mov byte [ecx], al
movzx eax, byte [edx - 1]
mov byte [esi - 1], al
movzx eax, byte [edx]
mov byte [esi], al
movzx eax, byte [edx + 1]
mov byte [esi + 1], al
movzx eax, byte [edx + 2]
mov byte [esi + 2], al
movzx eax, byte [edx + 3]
mov byte [esi + 3], al
movzx eax, byte [edx + 4]
mov byte [esi + 4], al
movzx eax, byte [edx + 5]
mov byte [esi + 5], al
mov edi, dword [edx - 2]
mov ebx, dword [edx + 2]
call fcn.0040dba0
mov ecx, dword [ebp + 8]
lea esi, [esi + 8]
mov edx, dword [ebp + 0x14]
add esp, 0xc
movzx eax, byte [ecx + 0x100]
mov ecx, dword [ebp - 8]
xor byte [edx + ecx], al
add edx, 8
mov ecx, dword [ebp + 8]
mov dword [ebp + 0x14], edx
movzx eax, byte [ecx + 0x101]
xor byte [esi - 9], al
movzx eax, byte [ecx + 0x102]
xor byte [esi - 8], al
movzx eax, byte [ecx + 0x103]
xor byte [esi - 7], al
movzx eax, byte [ecx + 0x104]
xor byte [esi - 6], al
movzx eax, byte [ecx + 0x105]
xor byte [esi - 5], al
movzx eax, byte [ecx + 0x106]
xor byte [esi - 4], al
movzx eax, byte [ecx + 0x107]
xor byte [esi - 3], al
sub dword [ebp - 4], 1
mov dword [ecx + 0x100], edi
mov dword [ecx + 0x104], ebx
mov ecx, dword [ebp - 8]
jne 0x40e940
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x413a40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a9d48
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push esi
mov eax, dword [0x636148]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0x104
call fcn.0043b039
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0
call fcn.0043b06d
test eax, eax
lea eax, [ebp - 0x10]
push eax
je 0x413ac3
push 0xf013f
push 0
push 0x5b04a4
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x413b32
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf013f
jmp 0x413aea
push 0xf003f
push 0
push 0x5b04a4
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x413b32
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x413b0b
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x413b32
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
push 0
push 0
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.0043b04c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x414290
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a9e06
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x636148]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x24c], esi
call fcn.0044b370
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4143de
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
jne 0x414323
xor ecx, ecx
jmp 0x41433f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414330
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00403090
push 1
push 0x5ae878
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0
call fcn.00406130
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push esi
cmovae eax, dword [ebp - 0x230]
mov ecx, ebx
push eax
call fcn.00413c00
mov esi, eax
test esi, esi
je 0x4143b3
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x4143ac
inc ecx
push ecx
push dword [ebp - 0x230]
lea ecx, [ebp - 0x230]
call fcn.004036f0
mov eax, esi
jmp 0x41448d
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 4], 0xffffffff
cmp eax, 8
jb 0x4143d8
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.004036f0
mov esi, dword [ebp - 0x24c]
push 0
push 0x10
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41448b
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00402d70
push 1
push 0x5ae878
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 1
call fcn.00406130
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push esi
cmovae eax, dword [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.00413c00
mov esi, eax
test esi, esi
je 0x41446d
mov ecx, dword [ebp - 0x234]
cmp ecx, 8
jb 0x4143ac
inc ecx
push ecx
push dword [ebp - 0x248]
lea ecx, [ebp - 0x248]
call fcn.004036f0
mov eax, esi
jmp 0x41448d
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x41448b
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.004036f0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042cd1d
mov esp, ebp
pop ebp
ret 4
Function at 0x4144b0
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 [0x636148]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x428], eax
test eax, eax
jne 0x4144e6
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cd1d
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], esi
push eax
push 9
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x41c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4144d3
push ebx
push edi
push 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0044b370
add esp, 0xc
lea eax, [ebp - 0x20c]
xor edi, edi
push 0x104
push eax
push edi
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x414615
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 0x4145f3
push 0x208
push eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0x420], 0x104
push eax
call fcn.0044b370
add esp, 0xc
mov dword [ebp - 0x424], 1
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 0x4145e7
push dword [ebp - 0x428]
lea eax, [ebp - 0x414]
push eax
call fcn.0044b57d
add esp, 8
test eax, eax
mov eax, 1
cmovne esi, eax
push dword [ebp - 0x41c]
call ebx
test esi, esi
jne 0x414615
push 0x104
lea eax, [ebp - 0x20c]
inc edi
push eax
push edi
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x414551
push dword [ebp - 0x418]
call ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.0042cd1d
mov esp, ebp
pop ebp
ret 4
Function at 0x415150
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x636148]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
test edi, edi
jne 0x415182
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cd1d
mov esp, ebp
pop ebp
ret 4
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push 0
push eax
call fcn.0044b370
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x109
push 0
push str.SYSTEMCurrentControlSetServices_
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41521f
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea eax, [ebp - 0x20c]
push esi
push 0x104
push eax
xor esi, esi
push esi
push dword [ebp - 0x210]
call ebx
test eax, eax
jne 0x415210
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00457bca
add esp, 8
test eax, eax
je 0x415233
push 0x104
lea eax, [ebp - 0x20c]
inc esi
push eax
push esi
push dword [ebp - 0x210]
call ebx
test eax, eax
je 0x4151e2
xor ebx, ebx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
xor ecx, ebp
pop ebx
call fcn.0042cd1d
mov esp, ebp
pop ebp
ret 4
mov ebx, 1
jmp 0x415212