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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
mov eax, dword [0x5c30d8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x828]
push 0x44
xor ebx, ebx
push ebx
push eax
call fcn.00507800
push 0x10
lea eax, [ebp - 0x7e4]
mov dword [ebp - 0x828], 0x44
push ebx
push eax
call fcn.00507800
push esi
lea eax, [ebp - 0x7d4]
push 0x562c64
push eax
call fcn.00502d45
add esp, 0x24
lea eax, [ebp - 0x7e4]
push eax
lea eax, [ebp - 0x828]
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 0x500d5b
push dword [ebp - 0x7e4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x7e0]
call esi
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004bcc20
mov esp, ebp
pop ebp
ret

Function at 0x500d6b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
mov eax, dword [0x5c30d8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x828]
push 0x44
xor ebx, ebx
push ebx
push eax
call fcn.00507800
push 0x10
lea eax, [ebp - 0x7e4]
mov dword [ebp - 0x828], 0x44
push ebx
push eax
call fcn.00507800
push esi
lea eax, [ebp - 0x7d4]
push 0x562c64
push eax
call fcn.00502d45
add esp, 0x24
lea eax, [ebp - 0x7e4]
push eax
lea eax, [ebp - 0x828]
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 0x500e1b
cmp byte [ebp + 0xc], bl
je 0x500e05
or eax, 0xffffffff
cmp dword [ebp + 0x10], ebx
cmovg eax, dword [ebp + 0x10]
push eax
push dword [ebp - 0x7e4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
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 esi
xor ecx, ebp
pop ebx
call fcn.004bcc20
mov esp, ebp
pop ebp
ret

Function at 0x500e2b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00518e1c
pop ecx
test eax, eax
je 0x500eb4
push ebx
push edi
push 0x3c
xor edi, edi
lea eax, [ebp - 0x40]
push edi
push eax
call fcn.00507800
add esp, 0xc
mov dword [ebp - 0x3c], 0x200
xor ebx, ebx
mov dword [ebp - 0x2c], esi
inc ebx
mov eax, str.open
mov dword [ebp - 0x34], eax
push ebx
push edi
push edi
push esi
push eax
push edi
mov dword [ebp - 0x24], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x500e8b
push dword [ebp + 0x10]
push ebx
push esi
call fcn.00500d6b
add esp, 0xc
jmp 0x500eb2
cmp byte [ebp + 0xc], 0
je 0x500eb2
or eax, 0xffffffff
cmp dword [ebp + 0x10], edi
cmovg eax, dword [ebp + 0x10]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x501308
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x870
mov eax, dword [0x5c30d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x208
mov dword [ebp - 0x870], eax
xor edi, edi
lea eax, [ebp - 0x61c]
push edi
push eax
call fcn.00507800
push 0x208
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.00507800
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00519409
push dword [ebp - 0x870]
lea eax, [ebp - 0x61c]
push str._s.
push eax
call fcn.00502d45
add esp, 0x2c
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x5014af
lea eax, [ebp - 0x86c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x5014af
push 0x2e
pop eax
cmp word [ebp - 0x840], ax
je 0x501399
cmp word [ebp - 0x83e], di
je 0x501399
cmp word [ebp - 0x83e], ax
jne 0x5013d6
cmp word [ebp - 0x83c], di
je 0x501399
test byte [ebp - 0x86c], 0x10
je 0x50142a
push 0x208
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00507800
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x840]
push eax
push dword [ebp - 0x870]
lea eax, [ebp - 0x20c]
push 0x560f80
push eax
call fcn.00502d45
add esp, 0x20
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x50149d
lea eax, [ebp - 0x414]
push eax
call fcn.005197af
pop ecx
push eax
lea eax, [ebp - 0x840]
push eax
call fcn.005197af
pop ecx
push eax
call fcn.005195c6
pop ecx
pop ecx
test eax, eax
jne 0x501399
push 0x208
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00507800
lea eax, [ebp - 0x840]
push eax
push dword [ebp - 0x870]
lea eax, [ebp - 0x20c]
push 0x560df4
push eax
call fcn.00502d45
add esp, 0x1c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x501399
lea eax, [ebp - 0x20c]
xor edi, edi
push eax
push ebx
inc edi
call fcn.00519409
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bcc20
mov esp, ebp
pop ebp
ret
Function at 0x501c6d
Capabilities:
Enumerate processes

Disassembly:
push 0x260
mov eax, 0x55ed92
call fcn.0052a9a8
mov eax, dword [ebp + 8]
test eax, eax
je 0x501d69
push eax
lea ecx, [ebp - 0x40]
call fcn.004a0c80
lea eax, [ebp - 0x40]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0050287f
mov edi, 0x22c
lea eax, [ebp - 0x26c]
push edi
push ebx
push eax
call fcn.00507800
add esp, 0x10
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x501d5a
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], edi
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x501d4f
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
cmp word [ebp - 0x248], ax
jne 0x501cf9
mov eax, ebx
jmp 0x501d06
lea eax, [ebp - 0x248]
push eax
call fcn.00518e1c
pop ecx
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x28]
call fcn.00499940
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.0050287f
pop ecx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00502c56
test eax, eax
je 0x501d6f
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.004c2b53
lea eax, [ebp - 0x26c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x501cdc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, ebx
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.004c2b53
mov eax, esi
call fcn.0052a963
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.004c2b53
jmp 0x501d5c
Function at 0x5024d4
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x5c30d8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x61c]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, 0x208
push esi
push 0
push eax
mov dword [ebp - 0x620], ebx
call fcn.00507800
push esi
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00507800
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.00519409
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.00519409
lea eax, [ebp - 0x61c]
push eax
call fcn.005197af
lea eax, [ebp - 0x414]
push eax
call fcn.005197af
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.005195c6
add esp, 0x38
test eax, eax
je 0x502619
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor esi, esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00507800
add esp, 0xc
lea eax, [ebp - 0x20c]
test esi, esi
jne 0x5025a2
push edi
push str._s.bak
push eax
call fcn.00502d45
add esp, 0xc
jmp 0x5025b2
push esi
push edi
push str._s.bak_d
push eax
call fcn.00502d45
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5025d0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.0051a429
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push edi
push dword [ebp - 0x620]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 5
test eax, eax
lea eax, [ebp - 0x20c]
push 0
push eax
jne 0x502617
call ebx
cmp esi, 0xa
jge 0x502619
inc esi
jmp 0x502571
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bcc20
mov esp, ebp
pop ebp
ret

Function at 0x50262a
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5c30d8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push str..del
push esi
call fcn.00508a04
pop ecx
pop ecx
test eax, eax
je 0x502662
push 5
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x5026f1
push edi
xor edi, edi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00507800
add esp, 0xc
lea eax, [ebp - 0x20c]
test edi, edi
jne 0x502696
push esi
push str._s.del
push eax
call fcn.00502d45
add esp, 0xc
jmp 0x5026a6
push edi
push esi
push str._s.del_d
push eax
call fcn.00502d45
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5026d0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x5026d0
cmp edi, 0xa
jge 0x5026f0
inc edi
jmp 0x502665
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.0051a429
pop ecx
pop ecx
push 5
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004bcc20
mov esp, ebp
pop ebp
ret
Function at 0x502949
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push 0x2a0
mov eax, 0x55eeac
call fcn.0052a9a8
lea eax, [ebp + 8]
xor edi, edi
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], edi
call fcn.00500b2c
xor ebx, ebx
mov esi, 0x56e404
inc ebx
push esi
mov byte [ebp - 4], bl
call fcn.00518e1c
pop ecx
push eax
push esi
lea ecx, [ebp - 0x58]
call fcn.004a5a50
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x2a8]
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x502ac6
lea eax, [ebp - 0x2a8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x502ac6
push 0x2e
pop eax
cmp word [ebp - 0x27c], ax
je 0x5029a9
cmp word [ebp - 0x27a], 0
je 0x5029a9
cmp word [ebp - 0x27a], ax
jne 0x5029e8
cmp word [ebp - 0x278], 0
je 0x5029a9
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], edi
mov word [ebp - 0x40], ax
cmp word [ebp - 0x27c], ax
jne 0x502a05
mov eax, edi
jmp 0x502a12
lea eax, [ebp - 0x27c]
push eax
call fcn.00518e1c
pop ecx
push eax
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x40]
call fcn.00499940
test byte [ebp - 0x2a8], 0x10
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push eax
je 0x502a7c
call fcn.00500b2c
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x28]
call fcn.004a5940
push 0x560cec
call fcn.00518e1c
pop ecx
push eax
push 0x560cec
lea ecx, [ebp - 0x28]
call fcn.004a5a50
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00500b2c
call fcn.00502949
jmp 0x502aa7
call fcn.00500b2c
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x28]
call fcn.004a5940
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00500b2c
call fcn.00502b12
add esp, 0x18
lea ecx, [ebp - 0x28]
push edi
push ebx
call fcn.004c2b53
push edi
push ebx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.004c2b53
jmp 0x5029a9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x502af8
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 4
cmovae eax, dword [ebp + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push edi
push ebx
lea ecx, [ebp - 0x58]
call fcn.004c2b53
push edi
push ebx
lea ecx, [ebp + 8]
call fcn.004c2b53
call fcn.0052a963
ret
Function at 0x502e6b
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
push 0x565214
mov esi, ecx
call ebx
mov dword [esi], eax
test eax, eax
je 0x502eeb
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNativeSystemInfo
push eax
call edi
push str.IsWow64Process
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.Wow64DisableWow64FsRedirection
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.Wow64RevertWow64FsRedirection
push dword [esi]
mov dword [esi + 0x18], eax
call edi
push str.GetSystemWow64DirectoryW
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push str.advapi32.dll
mov dword [esi + 0x10], eax
call ebx
mov dword [esi + 4], eax
test eax, eax
je 0x502eea
mov ebx, str.Wow64RevertWow64FsRedirection
push ebx
push eax
call edi
push ebx
push dword [esi + 4]
mov dword [esi + 0x20], eax
call edi
mov dword [esi + 0x1c], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
ret

Function at 0x503109
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x503909
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x50391d
xor eax, eax
jmp 0x503a5b
mov eax, ebx
shl eax, 3
push 6
pop ecx
cdq
idiv ecx
mov edx, ebx
imul ecx, eax, 6
shl edx, 3
push 3
sub edx, ecx
dec edx
pop ecx
sub edx, 1
je 0x503946
dec edx
sub edx, 1
jne 0x503948
add eax, 2
jmp 0x503948
add eax, ecx
push esi
mov esi, dword [ebp + 0x14]
inc eax
cmp dword [esi], eax
jge 0x50395b
push 0xfffffffffffffff0
mov dword [esi], eax
pop eax
jmp 0x503a5a
mov eax, ebx
cdq
idiv ecx
xor ecx, ecx
imul eax, eax, 3
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
jle 0x5039f1
dec eax
mov ebx, dword [ebp + 8]
xor edx, edx
push 3
pop ecx
div ecx
inc eax
imul ecx, eax, 3
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
movzx ecx, byte [ebx]
movzx edx, byte [ebx + 1]
mov eax, ecx
movzx esi, byte [ebx + 2]
add ebx, 3
shr eax, 2
shl ecx, 4
mov al, byte [eax + 0x56e850]
mov byte [edi], al
mov eax, edx
shr eax, 4
add eax, ecx
and eax, 0x3f
mov al, byte [eax + 0x56e850]
mov byte [edi + 1], al
mov eax, esi
shr eax, 6
and esi, 0x3f
lea eax, [eax + edx*4]
and eax, 0x3f
mov al, byte [eax + 0x56e850]
mov byte [edi + 2], al
mov al, byte [esi + 0x56e850]
mov byte [edi + 3], al
add edi, 4
sub dword [ebp - 4], 1
jne 0x503986
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
jmp 0x5039f4
mov eax, dword [ebp + 8]
cmp ecx, ebx
jge 0x503a4d
movzx edx, byte [eax]
inc ecx
mov dword [ebp + 0xc], ecx
cmp ecx, ebx
jge 0x503a09
movzx ecx, byte [eax + 1]
jmp 0x503a0b
xor ecx, ecx
mov eax, edx
shl edx, 4
shr eax, 2
mov al, byte [eax + 0x56e850]
mov byte [edi], al
mov eax, ecx
shr eax, 4
add eax, edx
and eax, 0x3f
mov al, byte [eax + 0x56e850]
mov byte [edi + 1], al
cmp dword [ebp + 0xc], ebx
jge 0x503a42
and ecx, 0xf
mov al, byte [ecx*4 + 0x56e850]
mov byte [edi + 2], al
jmp 0x503a46
mov byte [edi + 2], 0x3d
mov byte [edi + 3], 0x3d
add edi, 4
mov eax, edi
sub eax, dword [ebp + 0x10]
mov dword [esi], eax
xor eax, eax
mov byte [edi], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5044b3
Capabilities:
Get common file path

Disassembly:
push 0x240
mov eax, 0x55f10b
call fcn.0052a9a8
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.00507800
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 0x5045aa
and dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
je 0x50452f
lea eax, [ebp - 0x218]
push eax
call fcn.00518e1c
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00499940
and dword [ebp - 4], 0
push 0x560cec
call fcn.00518e1c
pop ecx
push eax
push 0x560cec
lea ecx, [ebp - 0x230]
call fcn.004a5a50
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push edi
cmovae eax, dword [ebp - 0x230]
mov ecx, ebx
push eax
call fcn.00504171
mov edi, eax
lea ecx, [ebp - 0x230]
push 0
push 1
test edi, edi
je 0x50459b
call fcn.004c2b53
mov eax, edi
jmp 0x50465c
or dword [ebp - 4], 0xffffffff
call fcn.004c2b53
mov edi, dword [ebp - 0x24c]
push 0
push 0x10
lea eax, [ebp - 0x218]
push eax
push 0
call esi
test eax, eax
je 0x50465a
and dword [ebp - 0x238], 0
xor eax, eax
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
cmp word [ebp - 0x218], ax
je 0x5045f1
lea eax, [ebp - 0x218]
push eax
call fcn.00518e1c
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00499940
mov esi, 0x560cec
mov dword [ebp - 4], 1
push esi
call fcn.00518e1c
pop ecx
push eax
push esi
lea ecx, [ebp - 0x248]
call fcn.004a5a50
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push edi
cmovae eax, dword [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.00504171
push 0
lea ecx, [ebp - 0x248]
mov esi, eax
push 1
call fcn.004c2b53
test esi, esi
je 0x50465a
mov eax, esi
jmp 0x50465c
xor eax, eax
call fcn.0052a963
ret 4
Function at 0x504664
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 [0x5c30d8]
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 0x5046b7
xor eax, eax
jmp 0x5047b6
push ebx
push 0x208
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00507800
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 0x5047a3
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 0x504789
push 0x208
push eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0x420], 0x104
push eax
call fcn.00507800
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 0x504781
push dword [ebp - 0x428]
lea eax, [ebp - 0x414]
push eax
call fcn.00508a04
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 0x5046f3
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.004bcc20
mov esp, ebp
pop ebp
ret 4
Function at 0x504cd0
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc18
mov eax, dword [0x5c30d8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x208
lea eax, [ebp - 0x61c]
push esi
xor edi, edi
push edi
push eax
call fcn.00507800
push str.C:log_
mov ebx, 0x104
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.00519975
push 0x3e8
lea eax, [ebp - 0xc10]
push edi
push eax
call fcn.00507800
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._sgswb.log
push eax
call fcn.00500b0e
push esi
lea eax, [ebp - 0x824]
push edi
push eax
call fcn.00507800
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00507800
add esp, 0x48
lea eax, [ebp - 0x20c]
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.00508963
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x414]
push eax
call esi
test eax, eax
je 0x504ea7
lea eax, [ebp - 0x20c]
push eax
call fcn.00518e1c
lea ecx, [ebp - 0x20a]
lea eax, [ecx + eax*2]
push eax
lea eax, [ebp - 0x824]
push ebx
push eax
call fcn.00519975
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._s_s.txt
push eax
call fcn.00500b0e
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp + 8]
lea eax, [ebp - 0xc10]
push 0x1f3
push 0x1f4
push eax
call fcn.00505100
xor eax, eax
add esp, 0x38
mov word [ebp - 0x82a], ax
lea eax, [ebp - 0x414]
push eax
call esi
xor ebx, ebx
inc ebx
test eax, eax
lea eax, [ebp - 0x414]
push 0x56ea80
push eax
cmovne edi, ebx
call fcn.0050b7a7
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x504ea7
test edi, edi
jne 0x504e4d
push esi
push 2
lea eax, [ebp - 0xc18]
mov dword [ebp - 0xc18], 0xfeff
push ebx
push eax
call fcn.0050c4c0
add esp, 0x10
lea eax, [ebp - 0xc10]
push eax
call fcn.00518e1c
push esi
add eax, eax
push eax
lea eax, [ebp - 0xc10]
push ebx
push eax
call fcn.0050c4c0
push esi
push 2
lea eax, [ebp - 0xc14]
mov dword [ebp - 0xc14], 0xd
push ebx
push eax
call fcn.0050c4c0
push esi
push 2
lea eax, [ebp - 0xc14]
mov dword [ebp - 0xc14], 0xa
push ebx
push eax
call fcn.0050c4c0
push esi
call fcn.0050b54f
add esp, 0x38
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bcc20
mov esp, ebp
pop ebp
ret