joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b0343
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x6a8a44]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x218], eax
xor eax, eax
push eax
push 0x1a
push ecx
push eax
mov dword [ebp - 0x210], ebx
call fcn.005b18eb
lea eax, [ebp - 0x20c]
push eax
call fcn.005c1d51
add esp, 0x14
mov dword [ebp - 0x214], eax
call fcn.00477950
test al, al
je 0x5b03ba
pop esp
push ecx
pop ebx
push ecx
pop ecx
pop edi
pop ecx
pop esi
push ebx
pop esp
pop ecx
push esi
push edx
push edx
push ebx
push edi
push ebx
push esi
pop esp
pop edx
push ebp
pop eax
push ebx
push edx
push ebp
mov ebx, dword [ebp - 0x210]
cmp dword [ebp - 0x214], 0
je 0x5b04c6
mov esi, 0x6947dc
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.005c7787
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.005c7787
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.005c7787
add esp, 0x18
call fcn.00477770
test al, al
je 0x5b041a
pop ebx
pop ecx
push ecx
push edx
pop ebp
push edx
pop esp
push ecx
pop ecx
push esp
push ecx
push esp
pop esi
pop eax
push esp
push ebp
push edi
pop ecx
pop ebx
push ebp
pop edi
push ebx
push esi
push ebx
push ebx
pop ebp
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5b0438
lea eax, [ebp - 0x20c]
push eax
call fcn.005af566
pop ecx
call fcn.00477b30
test al, al
je 0x5b0455
push ebp
push eax
pop ecx
push edx
pop ecx
pop ebx
pop ecx
pop ebp
push esp
push edi
pop ebx
pop esi
pop ebp
pop edx
push esp
push ebp
push edx
pop edi
pop eax
push esi
call fcn.00477ef0
test al, al
je 0x5b047a
pop edi
push edi
pop esp
pop edi
push ebp
push edi
push ebx
pop esi
pop esi
pop edi
pop ebp
push ecx
push edx
pop ebx
pop ebx
pop eax
push ebp
pop esi
push edx
pop esi
pop edi
push esi
push ebp
pop ebp
push eax
pop edi
pop edx
push edi
call fcn.00477770
test al, al
je 0x5b0498
push esp
pop edx
push edi
pop ebp
pop eax
push ebp
push ecx
pop esi
push esp
pop edi
pop ecx
pop edx
push edx
pop ecx
push esp
push ebx
pop edx
pop edi
push edx
push edi
push ebp
cmp word [ebp - 0x20c], 0
jne 0x5b04a6
xor eax, eax
jmp 0x5b04b3
lea eax, [ebp - 0x20c]
push eax
call fcn.005c1d51
pop ecx
mov ecx, dword [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004028f0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005ad281
mov esp, ebp
pop ebp
ret
Function at 0x5b1032
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6a8a44]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x6b0dc8], 0
push ebx
push esi
push edi
je 0x5b10ba
call fcn.00477b30
test al, al
je 0x5b106e
push ebp
push eax
pop ecx
push edx
pop ecx
pop ebx
pop ecx
pop ebp
push esp
push edi
pop ebx
pop esi
pop ebp
pop edx
push esp
push ebp
push edx
pop edi
pop eax
push esi
call fcn.00477ef0
test al, al
je 0x5b1093
pop edi
push edi
pop esp
pop edi
push ebp
push edi
push ebx
pop esi
pop esi
pop edi
pop ebp
push ecx
push edx
pop ebx
pop ebx
pop eax
push ebp
pop esi
push edx
pop esi
pop edi
push esi
push ebp
pop ebp
push eax
pop edi
pop edx
push edi
call fcn.00477770
test al, al
je 0x5b11b1
push esp
pop edx
push edi
pop ebp
pop eax
push ebp
push ecx
pop esi
push esp
pop edi
pop ecx
pop edx
push edx
pop ecx
push esp
push ebx
pop edx
pop edi
push edx
push edi
push ebp
jmp 0x5b11b1
call fcn.00477770
test al, al
je 0x5b10de
pop edx
push ecx
pop edi
push esi
pop ebp
push ebp
push esp
pop ebp
push ebx
push ecx
push ecx
pop esi
push ebp
push ebp
pop esp
push eax
pop edi
push esp
push ebx
push ebp
push eax
pop ecx
pop ebx
pop edi
pop esp
pop esi
pop ebx
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.005be3a0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x5b114e
lea eax, [ebp - 0x20c]
push eax
call fcn.005c8979
lea eax, [ebp - 0x20c]
mov dword [esp], 0x687f58
push eax
call fcn.005bdcd4
pop ecx
pop ecx
test eax, eax
jne 0x5b1147
lea eax, [ebp - 0x20c]
push str.documents_and_settingslocalservice
push eax
call fcn.005bdcd4
pop ecx
pop ecx
test eax, eax
je 0x5b114e
mov byte [0x6b0dc8], 1
call fcn.00477f50
test al, al
je 0x5b1169
pop ecx
push ecx
push esi
push edx
push eax
pop esi
push eax
push ebx
pop ebx
push esi
push eax
push eax
push edi
push ebp
pop esi
push esp
pop eax
push esp
call fcn.00477b30
test al, al
je 0x5b118d
push edx
push esi
push esi
push edi
push esi
push edi
pop edi
push esi
push ecx
push esp
push esp
push edx
push ecx
pop esp
push esp
push ebx
pop edi
pop edx
pop ebp
pop ebx
pop esi
push esp
pop ebx
pop edx
pop eax
pop esi
push ebx
call fcn.00477b30
test al, al
je 0x5b11b1
push ebx
pop ebp
pop edi
push esi
pop esp
pop ecx
pop ebx
pop edi
pop eax
pop edi
pop edi
push edx
pop eax
pop ecx
push eax
push edi
push ecx
pop edi
pop esi
push ebp
push esp
push esi
push edx
push edi
push esi
push edx
push ebp
mov ecx, dword [ebp - 4]
mov al, byte [0x6b0dc8]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.005ad281
mov esp, ebp
pop ebp
ret
Function at 0x5b11c7
Capabilities:
Get common file path

Disassembly:
push 0x138
mov eax, 0x5ebab1
call fcn.005ae057
mov al, byte [0x6b0dc9]
test al, al
jne 0x5b1290
push 0x104
xor esi, esi
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.005be3a0
add esp, 0xc
lea eax, [ebp - 0x114]
xor edi, edi
inc edi
push edi
push 0x1a
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x5b128b
push str.config_systemprofile
lea ecx, [ebp - 0x12c]
call fcn.004205c0
lea eax, [ebp - 0x114]
mov dword [ebp - 4], esi
push eax
lea ecx, [ebp - 0x144]
call fcn.004205c0
push dword [ebp - 0x11c]
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
push esi
cmovae eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x144]
push eax
call fcn.0042b9c0
movzx ecx, byte [0x6b0dc9]
cmp eax, 0xffffffff
push esi
cmovne ecx, edi
mov byte [0x6b0dc9], cl
lea ecx, [ebp - 0x144]
push edi
call fcn.00422710
push esi
push edi
lea ecx, [ebp - 0x12c]
call fcn.00422710
mov al, byte [0x6b0dc9]
call fcn.005ae012
ret
Function at 0x5b16ea
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x2b8
mov eax, 0x5ebb2c
call fcn.005ae057
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x2c4], ecx
test esi, esi
js 0x5b18e5
push eax
lea ecx, [ebp - 0x70]
dec esi
call fcn.00402790
and dword [ebp - 4], 0
lea eax, [ebp - 0x70]
push eax
call fcn.005b22f0
mov ebx, 0x6947dc
pop ecx
test eax, eax
jne 0x5b1745
push ebx
call fcn.005c1d51
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x70]
call fcn.00404680
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x58]
call fcn.00404450
mov ebx, 0x687f08
mov byte [ebp - 4], 1
push ebx
call fcn.005c1d51
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x58]
call fcn.00404680
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x2c0]
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x5b18cd
test byte [ebp - 0x2c0], 0x10
je 0x5b18a2
cmp word [ebp - 0x294], 0x2e
je 0x5b18a2
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x28]
call fcn.00404450
cmp word [ebp - 0x294], 0
mov byte [ebp - 4], 2
jne 0x5b17c8
xor eax, eax
jmp 0x5b17d5
lea eax, [ebp - 0x294]
push eax
call fcn.005c1d51
pop ecx
push eax
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x28]
call fcn.00404680
push 0x6947dc
call fcn.005c1d51
pop ecx
push eax
push 0x6947dc
lea ecx, [ebp - 0x28]
call fcn.00404680
lea eax, [ebp - 0x28]
push eax
call fcn.005b2cb3
mov eax, dword [edi + 4]
sub eax, dword [edi]
pop ecx
push 0x18
cdq
pop ecx
idiv ecx
cmp eax, dword [ebp + 0xc]
jae 0x5b18ba
push dword [ebp - 0x2c4]
lea ecx, [ebp - 0x40]
call fcn.00402790
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
call fcn.005b2cb3
cmp dword [ebp - 0x30], 0
pop ecx
je 0x5b185c
push dword [ebp - 0x30]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
call fcn.00405290
cmp eax, 0xffffffff
je 0x5b1867
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00439470
push dword [ebp - 0x2c4]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push edi
cmovae eax, dword [ebp - 0x28]
push esi
push dword [ebp + 0xc]
push eax
call fcn.005b16ea
add esp, 0x14
lea ecx, [ebp - 0x40]
push 0
push 1
call fcn.00402830
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00402830
lea eax, [ebp - 0x2c0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x5b178f
jmp 0x5b18c6
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00402830
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 1
lea ecx, [ebp - 0x58]
call fcn.00402830
push 0
push 1
lea ecx, [ebp - 0x70]
call fcn.00402830
call fcn.005ae012
ret
Function at 0x5b3512
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.005ad780
mov eax, dword [0x6a8a44]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
mov dword [ebp - 0x1008], eax
call fcn.005c8572
mov dword [ebp - 0x1018], eax
lea eax, [ebp - 0x1018]
push eax
mov dword [ebp - 0x1014], edx
call fcn.005d6b6b
pop ecx
pop ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi + 0x10]
push edi
push eax
push dword [esi]
mov eax, dword [esi + 0x14]
inc ecx
push dword [esi + 4]
add eax, 0x76c
push dword [esi + 8]
push dword [esi + 0xc]
push ecx
push eax
lea eax, [ebp - 0x1004]
push str.__d__d__d__d__d__d___d_:_s
push eax
call fcn.005b3343
add esp, 0x28
call fcn.00477d70
test al, al
je 0x5b35ac
push eax
push esi
push esi
push esi
pop esp
pop eax
pop esi
push ecx
push edi
push ecx
pop edx
push ecx
pop esp
pop esp
push ecx
pop edi
pop ebp
pop ebp
mov edi, dword [ebp - 0x1008]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor esi, esi
inc esi
test eax, eax
cmovne ebx, esi
mov dword [ebp - 0x1008], ebx
call fcn.004776b0
test al, al
je 0x5b35e3
push edx
push ebp
pop esp
pop edx
push esi
pop esi
pop edx
push eax
pop edx
pop ebx
pop ebx
pop esp
pop edx
push edi
push esp
push edi
xor esi, esi
inc esi
push 0x6882ec
push edi
call fcn.005c5edd
mov ebx, eax
mov dword [ebp - 0x1010], ebx
pop ecx
pop ecx
test ebx, ebx
je 0x5b36a4
cmp dword [ebp - 0x1008], 0
jne 0x5b3626
push ebx
push 2
lea eax, [ebp - 0x100c]
mov dword [ebp - 0x100c], 0xfeff
push esi
push eax
call fcn.005c6c3d
add esp, 0x10
call fcn.00477590
test al, al
je 0x5b3647
pop eax
pop esi
pop edx
push esp
push edi
pop edi
pop ebx
push eax
pop eax
push edx
push ebp
push esi
pop ebx
push edx
push ebx
pop ecx
push ecx
push ebp
mov ebx, dword [ebp - 0x1010]
lea eax, [ebp - 0x1004]
push eax
call fcn.005c1d51
push ebx
add eax, eax
push eax
lea eax, [ebp - 0x1004]
push 1
push eax
call fcn.005c6c3d
push ebx
push 2
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x1008], 0xd
push 1
push eax
call fcn.005c6c3d
push ebx
push 2
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x1008], 0xa
push 1
push eax
call fcn.005c6c3d
push ebx
call fcn.005c5c85
add esp, 0x38
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005ad281
mov esp, ebp
pop ebp
ret
Function at 0x5b4508
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x6a8a44]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x82c]
push edi
push 0x44
xor ebx, ebx
push ebx
push eax
call fcn.005be3a0
push 0x10
lea eax, [ebp - 0x7e4]
mov dword [ebp - 0x82c], 0x44
push ebx
push eax
call fcn.005be3a0
add esp, 0x18
call fcn.00477a10
test al, al
je 0x5b4578
push esi
pop ebx
pop ecx
push ebp
pop ecx
push ecx
push esi
pop eax
pop ebp
pop eax
push edi
push edx
push esi
push edi
push edi
pop edx
pop ebx
push eax
push edi
push ebp
push edx
pop ebp
pop ebp
push ebx
pop eax
push edx
push ebp
push ebp
push edx
push esp
push edi
xor ebx, ebx
push esi
lea eax, [ebp - 0x7d4]
push 0x6947e8
push eax
call fcn.00409310
add esp, 0xc
lea eax, [ebp - 0x7e4]
push eax
lea eax, [ebp - 0x82c]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
lea eax, [ebp - 0x7d4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x5b463a
push 0xffffffffffffffff
push dword [ebp - 0x7e4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x7e8]
push eax
push dword [ebp - 0x7e4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
call fcn.00477bf0
test al, al
je 0x5b45fd
push eax
push esi
push edi
pop ebp
pop esi
pop edi
pop ebx
push esi
pop ecx
pop esp
push edi
pop eax
pop ebp
push ebp
pop ecx
push edx
pop esp
pop esi
pop esp
push esp
pop eax
pop ebp
push edi
push ebx
pop ecx
push esi
push ecx
call fcn.00477a10
test al, al
je 0x5b4624
push edi
pop edi
push ebx
push eax
push ebp
push ecx
push edi
push edx
pop esp
push edi
pop edi
pop ecx
push esp
push eax
pop esi
pop edx
push ecx
pop esi
pop ecx
pop edi
pop ebx
push esi
pop edx
push esi
pop edx
pop ecx
pop ecx
pop eax
pop ebx
pop esp
push dword [ebp - 0x7e4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x7e0]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005ad281
mov esp, ebp
pop ebp
ret
Function at 0x5b4afa
Capabilities:
Enumerate processes

Disassembly:
push 0x280
mov eax, 0x5ebe0b
call fcn.005ae057
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x28c], ebx
test eax, eax
je 0x5b4ce7
push eax
lea ecx, [ebp - 0x40]
call fcn.00402790
and dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push eax
call fcn.005b2cb3
mov edi, 0x22c
lea eax, [ebp - 0x284]
push edi
push 0
push eax
call fcn.005be3a0
add esp, 0x10
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x28c], esi
cmp esi, 0xffffffff
je 0x5b4cd7
call fcn.00477ef0
test al, al
je 0x5b4b7c
pop eax
pop ecx
push ebp
push edi
pop ecx
push esp
pop edx
pop ebp
pop edx
pop esp
push eax
push ebx
push ebx
push edx
push esp
push edx
lea eax, [ebp - 0x284]
mov dword [ebp - 0x284], edi
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x5b4c54
and dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp word [ebp - 0x260], ax
je 0x5b4bbb
lea eax, [ebp - 0x260]
push eax
call fcn.005c1d51
pop ecx
push eax
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x28]
call fcn.004028f0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.005b2cb3
pop ecx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00408770
test eax, eax
je 0x5b4c0f
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.005b2181
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x40]
or ebx, 1
call fcn.00408770
mov byte [ebp - 0x285], 0
test eax, eax
jne 0x5b4c16
mov byte [ebp - 0x285], 1
test bl, 1
je 0x5b4c2a
push 0
push 1
lea ecx, [ebp - 0x58]
and ebx, 0xfffffffe
call fcn.00402830
cmp byte [ebp - 0x285], 0
jne 0x5b4ced
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00402830
lea eax, [ebp - 0x284]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x5b4b94
call fcn.004775f0
test al, al
je 0x5b4c84
push esp
push edi
pop ebx
pop ecx
pop esp
pop ebx
pop ebx
push ecx
pop ebp
pop eax
pop ebp
push ebx
pop ebx
pop edx
push ebp
push ebx
pop edi
pop eax
push ebx
push edx
pop edx
pop eax
pop edi
push ebp
pop edx
push ebp
push ebx
pop ebp
push ebx
pop edx
pop esi
call fcn.00477830
test al, al
je 0x5b4ca6
pop edx
push ecx
push ebp
pop edx
push esp
push esp
push edx
push esi
pop eax
push esi
pop ebx
pop ecx
pop esi
pop ebx
push edi
pop edi
push ecx
push esi
pop edi
pop edi
push ecx
push esp
pop ebp
push ebp
push edi
call fcn.00477c50
test al, al
je 0x5b4ccb
pop edx
push ecx
pop ebp
pop ebx
pop ebp
pop eax
pop ebx
push edi
push edx
push esi
pop edi
push eax
push edx
push edi
push esi
push esp
pop ebp
push ecx
push edx
pop eax
pop ebp
pop esi
push ecx
pop ecx
push ebx
pop edi
push edi
pop ebp
push dword [ebp - 0x28c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00402830
mov eax, esi
call fcn.005ae012
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x27c]
lea ecx, [ebp - 0x28]
push 0
push 1
call fcn.00402830
jmp 0x5b4cd9
Function at 0x5b50c1
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6a8a44]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x5b516a
push edi
call fcn.005c1d51
pop ecx
test eax, eax
je 0x5b516a
test esi, esi
je 0x5b516a
push esi
call fcn.005c1d51
pop ecx
test eax, eax
je 0x5b516a
and dword [ebp - 0x210], 0
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
call fcn.005be3a0
push edi
lea eax, [ebp - 0x20c]
push str.SoftWare_s
push eax
call fcn.00409310
add esp, 0x18
lea eax, [ebp - 0x210]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x20c]
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5b516a
push esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005ad281
mov esp, ebp
pop ebp
ret

Function at 0x5b517a
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x244
mov eax, 0x5ebe91
call fcn.005ae057
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
and dword [ebp - 0x24c], 0
push 0x208
mov dword [ebp - 0x250], eax
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005be3a0
add esp, 0xc
call fcn.00477d70
test al, al
je 0x5b51cd
push eax
push esi
push esi
push esi
pop esp
pop eax
pop esi
push ecx
push edi
push ecx
pop edx
push ecx
pop esp
pop esp
push ecx
pop edi
pop ebp
pop ebp
push 0x104
lea eax, [ebp - 0x218]
xor esi, esi
push eax
push esi
jmp 0x5b52d5
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x5b52c7
call fcn.00477ef0
test al, al
je 0x5b5217
pop eax
pop ecx
push ebp
push edi
pop ecx
push esp
pop edx
pop ebp
pop edx
pop esp
push eax
push ebx
push ebx
push edx
push esp
push edx
and dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
je 0x5b5247
lea eax, [ebp - 0x218]
push eax
call fcn.005c1d51
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.004028f0
and dword [ebp - 4], 0
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.005b6694
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.00402830
cmp dword [ebp - 0x234], 0x10
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
push dword [ebp - 0x250]
call fcn.005b4fec
pop ecx
pop ecx
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
push 0
push 1
call fcn.00422710
push 0x104
lea eax, [ebp - 0x218]
inc esi
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x5b51e1
call fcn.005ae012
ret
Function at 0x5b5eff
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.00477770
test al, al
je 0x5b5f39
pop edx
push ecx
pop edi
push esi
pop ebp
push ebp
push esp
pop ebp
push ebx
push ecx
push ecx
pop esi
push ebp
push ebp
pop esp
push eax
pop edi
push esp
push ebx
push ebp
push eax
pop ecx
pop ebx
pop edi
pop esp
pop esi
pop ebx
xor ebx, ebx
lea eax, [ebp - 0xc]
mov esi, 0xf013f
push eax
push esi
push ebx
push 0x6883f4
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5b606f
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x5b6066
call fcn.00477f50
test al, al
je 0x5b5f95
pop ecx
push ecx
push esi
push edx
push eax
pop esi
push eax
push ebx
pop ebx
push esi
push eax
push eax
push edi
push ebp
pop esi
push esp
pop eax
push esp
call fcn.00477b30
test al, al
je 0x5b5fb9
push edx
push esi
push esi
push edi
push esi
push edi
pop edi
push esi
push ecx
push esp
push esp
push edx
push ecx
pop esp
push esp
push ebx
pop edi
pop edx
pop ebp
pop ebx
pop esi
push esp
pop ebx
pop edx
pop eax
pop esi
push ebx
call fcn.00477b30
test al, al
je 0x5b5fdd
push ebx
pop ebp
pop edi
push esi
pop esp
pop ecx
pop ebx
pop edi
pop eax
pop edi
pop edi
push edx
pop eax
pop ecx
push eax
push edi
push ecx
pop edi
pop esi
push ebp
push esp
push esi
push edx
push edi
push esi
push edx
push ebp
xor esi, esi
lea eax, [ebp - 4]
push esi
push eax
push esi
push 0xf013f
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x5b600f
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 4]
call esi
jmp 0x5b606f
push dword [ebp + 0x14]
call fcn.005c1d51
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 0x14]
push 1
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00477950
test al, al
je 0x5b605d
pop esp
push ecx
pop ebx
push ecx
pop ecx
pop edi
pop ecx
pop esi
push ebx
pop esp
pop ecx
push esi
push edx
push edx
push ebx
push edi
push ebx
push esi
pop esp
pop edx
push ebp
pop eax
push ebx
push edx
push ebp
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5b7a3f
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x6a8a44]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.005be3a0
add esp, 0xc
call fcn.004776b0
test al, al
je 0x5b7a8a
push edx
pop ebp
push edi
pop ebx
pop edx
pop esp
push ebx
push eax
push ebx
push edi
pop edi
push esp
pop ecx
pop eax
pop ebp
push esp
push ecx
push ebp
push ebx
pop ebx
push edi
pop esi
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
call fcn.004775f0
test al, al
je 0x5b7ac9
push esp
push edi
pop ebx
pop ecx
pop esp
pop ebx
pop ebx
push ecx
pop ebp
pop eax
pop ebp
push ebx
pop ebx
pop edx
push ebp
push ebx
pop edi
pop eax
push ebx
push edx
pop edx
pop eax
pop edi
push ebp
pop edx
push ebp
push ebx
pop ebp
push ebx
pop edx
pop esi
call fcn.00477830
test al, al
je 0x5b7aeb
pop edx
push ecx
push ebp
pop edx
push esp
push esp
push edx
push esi
pop eax
push esi
pop ebx
pop ecx
pop esi
pop ebx
push edi
pop edi
push ecx
push esi
pop edi
pop edi
push ecx
push esp
pop ebp
push ebp
push edi
call fcn.00477c50
test al, al
je 0x5b7b10
pop edx
push ecx
pop ebp
pop ebx
pop ebp
pop eax
pop ebx
push edi
push edx
push esi
pop edi
push eax
push edx
push edi
push esi
push esp
pop ebp
push ecx
push edx
pop eax
pop ebp
pop esi
push ecx
pop ecx
push ebx
pop edi
push edi
pop ebp
cmp dword [ebp - 0x11c], 0xa
jb 0x5b7b1e
xor eax, eax
inc eax
jmp 0x5b7b6b
call fcn.00477bf0
test al, al
je 0x5b7b42
push eax
push esi
push edi
pop ebp
pop esi
pop edi
pop ebx
push esi
pop ecx
pop esp
push edi
pop eax
pop ebp
push ebp
pop ecx
push edx
pop esp
pop esi
pop esp
push esp
pop eax
pop ebp
push edi
push ebx
pop ecx
push esi
push ecx
call fcn.00477a10
test al, al
je 0x5b7b69
push edi
pop edi
push ebx
push eax
push ebp
push ecx
push edi
push edx
pop esp
push edi
pop edi
pop ecx
push esp
push eax
pop esi
pop edx
push ecx
pop esi
pop ecx
pop edi
pop ebx
push esi
pop edx
push esi
pop edx
pop ecx
pop ecx
pop eax
pop ebx
pop esp
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005ad281
mov esp, ebp
pop ebp
ret