joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48dd80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 0x5e71e4
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
test eax, eax
jne 0x48dda0
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push str.LoadLibraryExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0x5e7200
push esi
mov dword [ebp - 8], ebx
call fcn.005b5177
add esp, 8
test eax, eax
je 0x48ddec
test ebx, ebx
je 0x48dddc
push 8
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x48de15
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x48de15
push 0x800
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x48dec0
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x48de31
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x664300]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x48deb6
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x48deb6
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x48de62
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x48de80
sub ecx, edx
add ecx, ebx
sub ecx, esi
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x48de90
mov eax, dword [ebp - 8]
test eax, eax
je 0x48dead
push 8
push 0
push ebx
call eax
jmp 0x48deb4
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x664304]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4912d0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x491303
push 0x2e
push edi
call fcn.005a3b70
add esp, 8
test eax, eax
je 0x491301
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x493600
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x664300]
mov edi, eax
add esp, 4
test edi, edi
jne 0x49362d
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x493674
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x49367a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4936db
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop word [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x4936a0
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x493707
mov eax, dword [esi + 4]
push 1
push 0x5e79d6
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x5e79d7
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x4936e0
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4c52b0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov eax, 4
call fcn.0059cf50
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 1
push esi
xor edi, edi
call fcn.0049fc00
mov ebx, eax
push ebx
push esi
call fcn.0049fae0
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x4c5339
push 0xf0000040
push 1
push edi
push edi
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4c5313
push ebp
push ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 0x14]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.0049fb50
push esi
call fcn.0049fca0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4c5339
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 1
push esi
call fcn.0049fc00
mov ebx, eax
push ebx
push esi
call fcn.0049fae0
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x4c53a8
push 0xf0000040
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
xor edi, edi
lea eax, [esp + 0x1c]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4c538e
push ebp
push ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 0x14]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.0049fb50
push esi
call fcn.0049fca0
add esp, 0x10
mov edi, eax
test edi, edi
jne 0x4c5331
push esi
call fcn.0049fca0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4eba80
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor dl, dl
test esi, esi
je 0x4ebaa7
mov eax, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
sub edi, eax
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or dl, cl
sub esi, 1
jne 0x4eba96
pop edi
movzx eax, dl
pop esi
ret
Function at 0x58f8f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d2bf3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x667ce0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x66c7ac
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ebp - 4], 0
mov dword [ecx], 0x66c7ac
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x5dfbac
mov byte [ebp - 4], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.005934f0
mov dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x596140
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor eax, eax
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x66d6a0], ecx
inc eax
cmp eax, 0x100
jb 0x596142
cmp eax, 0x800
jae 0x596213
nop
mov edx, dword [eax*4 + 0x66d2a0]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x66d6a0]
mov dword [eax*4 + 0x66d6a0], edx
inc eax
cmp eax, 0x800
jb 0x5961f0
mov dword [0x66c7b8], 0x596fb0
call fcn.00596de0
mov ecx, dword [0x66c7b8]
test eax, eax
mov edx, 0x597050
cmove ecx, edx
mov dword [0x66c7b8], ecx
ret
Function at 0x597330
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
push ebx
xor ebx, ebx
and eax, 7
cmp ecx, 5
jae 0x597350
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
add dword [ebp + 0x10], 5
lea edx, [ecx - 4]
push esi
mov esi, dword [ebp + 8]
push edi
or edi, 0xffffffff
add edx, esi
mov dword [ebp - 4], edx
add esi, ebx
mov dword [ebp + 0xc], esi
cmp esi, edx
jae 0x597382
nop dword [eax]
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x59737f
inc esi
cmp esi, edx
jb 0x597370
mov dword [ebp + 0xc], esi
mov ebx, esi
sub ebx, dword [ebp + 8]
mov ecx, ebx
sub ecx, edi
cmp esi, edx
jae 0x5974ac
cmp ecx, 3
jbe 0x5973c2
xor eax, eax
mov cl, byte [esi + 4]
mov edi, ebx
mov dword [ebp - 0x10], edi
test cl, cl
je 0x597400
cmp cl, 0xff
je 0x597400
mov edx, dword [ebp - 4]
and eax, 3
mov esi, dword [ebp + 8]
add eax, eax
mov ecx, 1
or eax, 1
add ebx, ecx
jmp 0x597364
dec ecx
shl eax, cl
and eax, 7
je 0x59739a
movzx ecx, byte [eax + 0x648830]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x648828], 0
mov cl, byte [edx + 4]
je 0x5973ea
test cl, cl
je 0x5973ea
cmp cl, 0xff
jne 0x59739a
mov edx, dword [ebp - 4]
and eax, 3
mov esi, dword [ebp + 8]
add eax, eax
mov edi, ebx
or eax, 1
inc ebx
jmp 0x597364
movzx edi, cl
movzx ecx, byte [esi + 3]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 2]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 1]
mov esi, dword [ebp + 0x10]
shl edi, 8
or edi, ecx
cmp dword [ebp + 0x18], 0
je 0x59742e
lea edx, [edi + ebx]
add edx, esi
jmp 0x597434
mov edx, edi
sub edx, ebx
sub edx, esi
test eax, eax
je 0x597472
movzx edi, byte [eax + 0x648830]
mov ecx, 0x18
shl edi, 3
sub ecx, edi
mov dword [ebp - 0xc], edi
mov edi, edx
shr edi, cl
mov ecx, edi
mov dword [ebp - 8], edi
test cl, cl
je 0x59745e
cmp cl, 0xff
jne 0x597472
mov ecx, 0x20
mov edi, 1
sub ecx, dword [ebp - 0xc]
shl edi, cl
dec edi
xor edi, edx
jmp 0x597421
mov esi, dword [ebp + 0xc]
mov ecx, edx
mov edi, dword [ebp - 0x10]
shr ecx, 0x18
and cl, 1
dec cl
mov byte [esi + 1], dl
not cl
mov byte [esi + 4], cl
mov ecx, edx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, edx
mov edx, dword [ebp - 4]
shr ecx, 8
mov byte [esi + 2], cl
mov ecx, 5
mov esi, dword [ebp + 8]
add ebx, ecx
jmp 0x597364
pop edi
pop esi
cmp ecx, 3
jbe 0x5974c1
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0x14]
and eax, 7
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x599f4f
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc34
mov eax, dword [0x667ce0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x20]
mov ebx, ecx
mov dword [ebp - 0xc30], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0xc2c], eax
mov eax, dword [ebp + 0x18]
push 0x200
mov dword [ebp - 0xc34], eax
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.005a2240
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.005a2240
push 0x208
lea eax, [ebp - 0x60c]
push 0
push eax
call fcn.005a2240
push 0x208
lea eax, [ebp - 0xa1c]
push 0
push eax
call fcn.005a2240
push 0x208
lea eax, [ebp - 0x814]
push 0
push eax
call fcn.005a2240
push 0x208
lea eax, [ebp - 0xc24]
push 0
push eax
call fcn.005a2240
add esp, 0x48
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x59a011
cmp byte [ebp + 0x1c], al
jne 0x59a0d5
lea eax, [ebp - 0x60c]
push edi
push eax
call fcn.005afda6
push dword [ebp - 0xc2c]
lea eax, [ebp - 0x204]
push eax
call fcn.005afda6
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x814]
push eax
call fcn.005afda6
push dword [ebp - 0xc30]
lea eax, [ebp - 0x404]
push eax
call fcn.005afda6
push dword [ebp - 0xc34]
lea eax, [ebp - 0xc24]
push eax
call fcn.005afda6
push 2
lea eax, [ebp - 0x60c]
push eax
lea eax, [ebp - 0xa1c]
push str.__s___d
push eax
call fcn.00405d80
add esp, 0x38
mov byte [ebp - 0xc25], 0
lea eax, [ebp - 0xc25]
mov ecx, ebx
push eax
push dword [ebp + 0x1c]
lea eax, [ebp - 0x814]
push str.F7C71435_3F18_4903_B387_446346CA44B8
push 0x656858
push eax
lea eax, [ebp - 0xa1c]
push eax
lea eax, [ebp - 0xc24]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.0059bea7
cmp byte [ebp - 0xc25], 0
je 0x59a0d5
mov byte [esi], 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0059cf09
leave
ret 0x1c
Function at 0x59a8ca
Capabilities:
Get common file path

Disassembly:
push 0x26c
mov eax, 0x5d330d
call fcn.0059d2e0
call fcn.0059ab1d
call fcn.00404590
mov ecx, eax
call fcn.0043c9f8
push eax
lea ecx, [ebp - 0x230]
call fcn.00403040
and dword [ebp - 4], 0
lea eax, [ebp - 0x230]
push 8
pop ebx
cmp dword [ebp - 0x21c], ebx
push 1
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.00401c90
and dword [ebp - 0x238], 0
xor eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
cmp dword [ebp - 0x21c], ebx
lea ecx, [ebp - 0x230]
mov eax, dword [ebp - 0x220]
mov edi, 0x5d4964
cmovae ecx, dword [ebp - 0x230]
push 0x5c
pop edx
mov byte [ebp - 4], 1
cmp word [ecx + eax*2 - 2], dx
lea eax, [ebp - 0x230]
jne 0x59a974
push eax
lea ecx, [ebp - 0x248]
call fcn.00417a80
jmp 0x59a99c
push edi
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.0041a8c0
add esp, 0xc
lea ecx, [ebp - 0x248]
push eax
call fcn.00406e80
lea ecx, [ebp - 0x278]
call fcn.00402fe0
mov esi, str.Convert
push esi
call fcn.005afdc8
pop ecx
push eax
push esi
lea ecx, [ebp - 0x248]
call fcn.00405a30
push edi
call fcn.005afdc8
pop ecx
push eax
push edi
lea ecx, [ebp - 0x248]
call fcn.00405a30
cmp dword [ebp - 0x234], ebx
lea eax, [ebp - 0x248]
push 1
cmovae eax, dword [ebp - 0x248]
push eax
call fcn.00401c90
push 0x208
xor esi, esi
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.005a2240
add esp, 0x14
lea eax, [ebp - 0x218]
push esi
push 0x2b
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.005afd35
lea eax, [ebp - 0x218]
push str.BKPDF
push eax
call fcn.005afd35
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.005afd35
lea eax, [ebp - 0x218]
push 0x5d4e0c
push eax
call fcn.005afd35
lea eax, [ebp - 0x218]
push 0x5d8cbc
push eax
call fcn.005afd35
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.00401c90
add esp, 0x30
mov dword [ebp - 0x250], esi
lea eax, [ebp - 0x230]
mov dword [ebp - 0x24c], esi
lea ecx, [ebp - 0x260]
push eax
call fcn.0043e95c
cmp dword [ebp - 0x21c], ebx
lea ecx, [ebp - 0x230]
mov eax, dword [ebp - 0x220]
cmovae ecx, dword [ebp - 0x230]
push 0x5c
pop edx
mov byte [ebp - 4], 2
cmp word [ecx + eax*2 - 2], dx
je 0x59aadc
push edi
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.0041a8c0
add esp, 0xc
lea ecx, [ebp - 0x260]
push eax
call fcn.00406e80
lea ecx, [ebp - 0x278]
call fcn.00402fe0
cmp dword [ebp - 0x24c], ebx
lea eax, [ebp - 0x260]
cmovae eax, dword [ebp - 0x260]
push eax
call fcn.00402eb0
pop ecx
lea ecx, [ebp - 0x260]
call fcn.00402fe0
lea ecx, [ebp - 0x248]
call fcn.00402fe0
lea ecx, [ebp - 0x230]
call fcn.00402fe0
call fcn.0059d28a
ret
Function at 0x59b86a
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor eax, eax
xor ebx, ebx
push esi
inc eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x59b8f3
push dword [ebp - 4]
call fcn.005b07e2
push dword [ebp - 4]
mov esi, eax
push ebx
push esi
call fcn.005a2240
add esp, 0x10
mov dword [ebp - 8], 1
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test esi, esi
je 0x59b8f3
push dword [ebp + 0x14]
push esi
call fcn.005afd66
test eax, eax
movzx ebx, bl
push 1
pop eax
push esi
cmove ebx, eax
call fcn.005af424
add esp, 0xc
test bl, bl
jne 0x59b90c
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.CheckRegSZValue_false__
call esi
push dword [ebp + 0xc]
call esi
push 0x6493ec
call esi
pop esi
mov al, bl
pop ebx
leave
ret 0x10

Function at 0x59b914
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x667ce0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x10
pop ecx
push 0x88
mov dword [ebp - 0x198], eax
lea edi, [ebp - 0xcc]
lea eax, [ebp - 0x8c]
mov esi, str.SOFTWARERegisteredApplications
push 0
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.005a2240
push 0xc8
lea eax, [ebp - 0x194]
push 0
push eax
call fcn.005a2240
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x194]
push eax
call fcn.005afda6
lea eax, [ebp - 0x194]
push 0x5d4964
push eax
call fcn.005afd35
lea eax, [ebp - 0x194]
push ebx
push eax
call fcn.005afd35
add esp, 0x30
lea eax, [ebp - 0xcc]
cmp dword [ebp + 0x10], 0
push ebx
push eax
je 0x59b9e3
mov edi, reloc.WS2_32.dll_bind
push edi
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
mov esi, dword [ebp - 0x198]
push esi
call fcn.005afdc8
pop ecx
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push ebx
lea eax, [ebp - 0xcc]
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
jmp 0x59b9ee
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0059cf09
leave
ret 0xc
Function at 0x59b9ff
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x370
mov eax, dword [0x667ce0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x44]
mov esi, 0x5dc510
mov dword [ebp - 0x370], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x36c], eax
mov eax, dword [ebp + 0x18]
movsd dword es:[edi], dword [esi]
push 0x2e
mov dword [ebp - 0x368], eax
lea eax, [ebp - 0x32]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor edi, edi
push edi
push eax
call fcn.005a2240
mov esi, 0xc8
lea eax, [ebp - 0x1d4]
push esi
push edi
push eax
call fcn.005a2240
push esi
lea eax, [ebp - 0x10c]
push edi
push eax
call fcn.005a2240
push 0x190
lea eax, [ebp - 0x364]
push edi
push eax
call fcn.005a2240
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x1d4]
push eax
call fcn.005afda6
lea eax, [ebp - 0x1d4]
push 0x5d4964
push eax
call fcn.005afd35
add esp, 0x40
lea eax, [ebp - 0x1d4]
push ebx
push eax
call fcn.005afd35
lea eax, [ebp - 0x1d4]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.005afda6
lea eax, [ebp - 0x10c]
push 0x6493f0
push eax
call fcn.005afd35
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x364]
push eax
call fcn.005afda6
lea eax, [ebp - 0x364]
push str.FileAssociations
push eax
call fcn.005afd35
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [ebp - 0x364]
add esp, 0x28
cmp dword [ebp + 0x1c], edi
mov edi, reloc.WS2_32.dll_bind
push eax
push edi
je 0x59bbb3
call esi
lea eax, [ebp - 0x10c]
push eax
push edi
call esi
mov esi, dword [ebp - 0x368]
push esi
call fcn.005afdc8
pop ecx
lea eax, [eax*2 + 2]
push eax
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
lea eax, [ebp - 0x10c]
push 1
push str.ApplicationDescription
push eax
push edi
call esi
mov ebx, dword [ebp - 0x36c]
push ebx
call fcn.005afdc8
pop ecx
lea eax, [eax*2 + 2]
push eax
push ebx
push 1
push str.ApplicationIcon
lea eax, [ebp - 0x10c]
push eax
push edi
call esi
mov ebx, dword [ebp - 0x370]
push ebx
call fcn.005afdc8
pop ecx
lea eax, [eax*2 + 2]
push eax
push ebx
push 1
push str.ApplicationName
lea eax, [ebp - 0x10c]
push eax
push edi
call esi
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x364]
push eax
push edi
call esi
jmp 0x59bbbf
call esi
lea eax, [ebp - 0x10c]
push eax
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0059cf09
leave
ret 0x18
Function at 0x59bbd0
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0x667ce0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x324]
push edi
mov edi, dword [ebp + 0xc]
push 0x190
push 0
push eax
call fcn.005a2240
mov ebx, 0xc8
lea eax, [ebp - 0xcc]
push ebx
push 0
push eax
call fcn.005a2240
push ebx
lea eax, [ebp - 0x194]
push 0
push eax
call fcn.005a2240
push edi
push esi
lea eax, [ebp - 0x194]
push 0x5d82b8
push eax
call fcn.00405d80
push esi
lea eax, [ebp - 0x324]
push str.SOFTWARE_sCapabilitiesFileAssociations
push eax
call fcn.00405d80
add esp, 0x40
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.005afda6
lea eax, [ebp - 0xcc]
push 0x5d4964
push eax
call fcn.005afd35
lea eax, [ebp - 0xcc]
push edi
push eax
call fcn.005afd35
add esp, 0x18
lea eax, [ebp - 0xcc]
mov esi, reloc.WS2_32.dll_bind
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [ebp - 0x194]
push eax
call fcn.005afdc8
pop ecx
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x194]
push eax
push 1
push edi
lea eax, [ebp - 0x324]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0059cf09
leave
ret 8

Function at 0x59bdb8
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x667ce0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x110
xor esi, esi
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.005a2240
add esp, 0xc
mov dword [ebp - 0x218], 0x114
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x214], 6
jb 0x59be7d
lea eax, [ebp - 0x21c]
push eax
push str._n_vSN
push 3
push esi
push 0x5de6d8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x59be7d
lea eax, [ebp - 0x104]
mov dword [ebp - 0x220], esi
push 0x5d4e0c
push eax
call fcn.005afda6
mov eax, dword [ebp - 0x21c]
lea edx, [ebp - 0x220]
pop ecx
pop ecx
push edx
mov ecx, dword [eax]
lea edx, [ebp - 0x104]
push edx
push 1
push eax
call dword [ecx + 0x14]
cmp dword [ebp - 0x220], esi
jne 0x59be71
mov eax, dword [ebp - 0x21c]
lea edx, [ebp - 0x104]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x21c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
push esi
push 0x3000
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0059cf09
leave
ret