joyce8/EMBER2024-capa huggingface dataset:
Function at 0x508850
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a67bb
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x60f520]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0x1c]
and eax, 0xfffffe07
mov dword [esp + 0x20], 0
or eax, 7
push 8
mov dword [esp + 0x20], eax
call fcn.00551c81
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
mov dword [esp + 0x30], 0
test esi, esi
je 0x5088c7
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004e7880
mov dword [esi], eax
jmp 0x5088c9
xor esi, esi
mov dword [esp + 0x14], esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
mov dword [esp + 0x34], 1
call fcn.004e64d0
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.004e6420
push ecx
push str.file_path
mov ecx, esi
call fcn.004e6b80
lea ecx, [edi + 4]
mov edx, eax
call fcn.0050c4f0
push ecx
push 0x5cda68
mov ecx, esi
call fcn.004e6b80
lea ecx, [edi + 8]
mov edx, eax
call fcn.0050c4f0
push ecx
push str.check
mov ecx, esi
call fcn.004e6b80
mov ecx, dword [esp + 0x1c]
mov edx, dword [edi + 0xc]
and ecx, 0xffffff01
or ecx, 1
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 2
push ecx
mov ecx, eax
call fcn.004e64d0
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.004e6420
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x50acc0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x60f520]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x643510], 0
jne 0x50af9c
push 0x11c
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.00559380
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
push str.RtlGetVersion
push str.NtDll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x50ad5d
lea ecx, [ebp - 0x128]
push ecx
call eax
test eax, eax
je 0x50ad5d
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x50ad5d
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055199a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0
push 0x5bc584
mov ecx, 0x641844
mov dword [0x6412b4], 0
call fcn.0040c1c0
mov eax, dword [ebp - 0x118]
sub eax, 0
je 0x50aefb
dec eax
je 0x50aeab
dec eax
je 0x50ad9b
push 0x5bc584
jmp 0x50af0a
mov eax, dword [ebp - 0x124]
cmp eax, 4
ja 0x50adba
mov dword [0x6412b4], 0x40
push str.Windows_NT
jmp 0x50af0a
cmp eax, 5
jne 0x50ae13
mov eax, dword [ebp - 0x120]
test eax, eax
jne 0x50addd
mov dword [0x6412b4], 0x80
push str.Windows_2000
jmp 0x50af0a
cmp eax, 1
jne 0x50adf6
mov dword [0x6412b4], 0x100
push str.Windows_XP
jmp 0x50af0a
cmp eax, 2
jne 0x50af14
mov dword [0x6412b4], 0x200
push str.Windows_2003
jmp 0x50af0a
cmp eax, 6
jne 0x50af14
mov eax, dword [ebp - 0x120]
test eax, eax
jne 0x50ae3a
mov dword [0x6412b4], 0x400
push str.Windows_Vista
jmp 0x50af0a
cmp eax, 1
jne 0x50ae53
mov dword [0x6412b4], 0x800
push str.Windows_7
jmp 0x50af0a
cmp eax, 2
jne 0x50ae6c
mov dword [0x6412b4], 0x1000
push str.Windows_8
jmp 0x50af0a
cmp eax, 3
jne 0x50ae85
mov dword [0x6412b4], 0x2000
push str.Windows_8.1
jmp 0x50af0a
cmp eax, 4
jne 0x50af14
cmp dword [ebp - 0x11c], 0x2671
jne 0x50af14
mov dword [0x6412b4], 0x4000
push str.Windows_10
jmp 0x50af0a
cmp dword [ebp - 0x124], 4
jne 0x50af14
mov eax, dword [ebp - 0x120]
test eax, eax
jne 0x50aecf
mov dword [0x6412b4], 8
push str.Windows_9x
jmp 0x50af0a
cmp eax, 0xa
jne 0x50aee5
mov dword [0x6412b4], 8
push str.Windows_9x
jmp 0x50af0a
cmp eax, 0x5a
jne 0x50af14
mov dword [0x6412b4], 0x20
push str.Windows_ME
jmp 0x50af0a
mov dword [0x6412b4], 1
push str.Windows_3.2
mov ecx, 0x641844
call fcn.0040c280
xorps xmm0, xmm0
mov dword [ebp - 0x140], 0
push 0x5bd274
push 0x5bd558
movdqa xmmword [ebp - 0x160], xmm0
movdqa xmmword [ebp - 0x150], xmm0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x50af57
lea ecx, [ebp - 0x160]
push ecx
call eax
jmp 0x50af64
lea eax, [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [ebp - 0x160]
cmp ax, 9
je 0x50af88
cmp ax, 6
je 0x50af88
test ax, ax
jne 0x50af92
mov dword [0x640f9c], 0
jmp 0x50af92
mov dword [0x640f9c], 1
mov dword [0x643510], 1
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.0055199a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x50afc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x60f520]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 0
push 0
push eax
mov esi, edx
mov edi, ecx
call fcn.00559380
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x50b021
test esi, esi
je 0x50b021
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.0040c2d0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0055199a
mov esp, ebp
pop ebp
ret

Function at 0x50b050
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x60f520]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 0
push 0
push eax
mov edi, edx
mov esi, ecx
call fcn.00559380
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test edi, edi
je 0x50b0ae
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.0040c2d0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0055199a
mov esp, ebp
pop ebp
ret

Function at 0x50b0d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x60f520]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 0
push 0
push eax
mov edi, edx
mov esi, ecx
call fcn.00559380
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push 0x1c
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test edi, edi
je 0x50b12e
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.0040c2d0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0055199a
mov esp, ebp
pop ebp
ret

Function at 0x50b150
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x60f520]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 0
push 0
push eax
mov esi, ecx
call fcn.00559380
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x5beef0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.0040c2d0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0055199a
mov esp, ebp
pop ebp
ret
Function at 0x50b1d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x60f520]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 0
push 0
push eax
mov edi, edx
mov esi, ecx
call fcn.00559380
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test edi, edi
je 0x50b22e
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.0040c2d0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0055199a
mov esp, ebp
pop ebp
ret

Function at 0x50b3e0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a6b78
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x60f520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x10]
push eax
push 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x50b464
call fcn.0040bce0
mov ecx, eax
test ecx, ecx
jne 0x50b446
push 0x80004005
call fcn.0040c390
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0040bce0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x50b480
push 0x80004005
call fcn.0040c390
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x10]
test edx, edx
jns 0x50b4a5
push 0x80070057
call fcn.0040c390
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x50b4c2
push edx
lea ecx, [ebp - 0x14]
call fcn.0040c110
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push esi
call ebx
push dword [esi - 8]
mov ebx, eax
push esi
call fcn.00551cd2
add esp, 8
test eax, eax
js 0x50b49b
cmp eax, dword [esi - 8]
jg 0x50b49b
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
test ebx, ebx
jne 0x50b54e
call fcn.0040bce0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x50b509
push 0x80004005
call fcn.0040c390
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov dword [edi], eax
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x50b450
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add esi, 0xfffffff0
mov ecx, esi
call fcn.0040c3c0
add eax, 0x10
jmp 0x50b516
Function at 0x50b6b0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a6bb6
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x60f520]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
test ebx, ebx
je 0x50b850
test edi, edi
je 0x50b850
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
xor esi, esi
mov dword [ebp - 0x21c], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x220], esi
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 1
push eax
push 0x5abb98
push 1
push esi
push 0x5abc98
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x50b769
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x50b741
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x50b846
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
jmp 0x50b852
mov eax, dword [ebp - 0x21c]
lea edx, [ebp - 0x220]
push edx
push 0x5abcb8
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x50b72d
mov eax, dword [ebp - 0x21c]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x21c]
push 0
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00559380
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [ebp - 0x21c]
lea edx, [ebp - 0x218]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x21c]
push 0x5bc584
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x220]
push 0
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
test eax, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x220]
mov ecx, 1
cmovns esi, ecx
test eax, eax
je 0x50b82f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x21c]
test ecx, ecx
je 0x50b846
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
jmp 0x50b852
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055199a
mov esp, ebp
pop ebp
ret
Function at 0x50be70
Capabilities:
Delete file
Move file
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a6c78
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x60f520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x14], esi
mov ebx, ecx
test ebx, ebx
je 0x50bfa9
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x50bfa9
test esi, esi
je 0x50bfa9
call fcn.0040bce0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x50beda
push 0x80004005
call fcn.0040c390
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push str._s.write_cache
push eax
call fcn.00422de0
mov esi, dword [ebp - 0x10]
add esp, 0xc
xor edi, edi
push edi
push 0x80
push 2
push edi
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x50bf74
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], edi
mov edi, dword [ebp + 8]
push ecx
push edi
push dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x18]
xor eax, eax
cmp dword [ebp - 0x10], edi
sete al
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x50bf74
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or edx, 0xffffffff
lea ecx, [esi + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x50bf95
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50bfd0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a6ca8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x60f520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
test esi, esi
je 0x50c07a
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x50c07a
mov dword [ebp - 0x1c], 0x5be2fc
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
lea edx, [ebp - 0x18]
mov dword [ebp - 0x10], 0
mov ecx, esi
call fcn.004139a0
mov esi, dword [ebp - 0x18]
add esp, 4
test eax, eax
je 0x50c058
cmp dword [ebp - 0x10], 0
je 0x50c058
mov edx, edi
mov ecx, esi
call fcn.0050c200
mov edi, eax
jmp 0x50c05a
xor edi, edi
test esi, esi
je 0x50c067
push esi
call fcn.005527f2
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x50c090
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a6ce0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x60f520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.0040c2d0
mov dword [ebp - 4], 0
mov edx, 1
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x50c0f3
push 0x104
lea ecx, [ebp - 0x10]
call fcn.0040c110
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [ebp - 0x10]
push dword [eax - 8]
push eax
call fcn.00551cd2
mov edx, eax
add esp, 8
test edx, edx
js 0x50c1e9
mov ecx, dword [ebp - 0x10]
cmp edx, dword [ecx - 8]
jg 0x50c1e9
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov word [eax + edx*2], cx
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x50c142
push dword [ebp - 0x10]
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
call fcn.0040bce0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x50c15e
push 0x80004005
call fcn.0040c390
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.0050c3e0
mov esi, dword [ebp - 0x14]
test eax, eax
je 0x50c193
push dword [esi - 0xc]
mov edx, esi
mov ecx, edi
call fcn.0050be70
add esp, 4
mov edi, eax
jmp 0x50c195
xor edi, edi
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0
or esi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x50c1b5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x50c1d6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.0040c390
int3
Function at 0x50d670
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a6b78
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x60f520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], 0
push eax
push 0
push 1
push dword [ebp + 8]
push ebx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x50d7e6
cmp dword [ebp - 0x10], 0
je 0x50d7e6
call fcn.0040bce0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x50d6e3
push 0x80004005
call fcn.0040c390
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x10]
test edx, edx
jns 0x50d708
push 0x80070057
call fcn.0040c390
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x50d725
push edx
lea ecx, [ebp - 0x14]
call fcn.0040c110
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push esi
push 1
push dword [ebp + 8]
push ebx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
push dword [esi - 8]
push esi
test eax, eax
jne 0x50d7b5
call fcn.00551cd2
add esp, 8
test eax, eax
js 0x50d6fe
cmp eax, dword [esi - 8]
jg 0x50d6fe
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
call fcn.0040bce0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x50d774
push 0x80004005
call fcn.0040c390
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov dword [edi], eax
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x50d805
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00551cd2
add esp, 8
test eax, eax
js 0x50d6fe
cmp eax, dword [esi - 8]
jg 0x50d6fe
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
add esi, 0xfffffff0
mov ecx, esi
call fcn.0040c3c0
add eax, 0x10
jmp 0x50d781
call fcn.0040bce0
mov ecx, eax
test ecx, ecx
jne 0x50d7fb
push 0x80004005
call fcn.0040c390
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50d820
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a6fd0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x60f520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0
push 0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
push ecx
push 0
push ebx
push dword [eax - 0xc]
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x50d8dd
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x50d8dd
push eax
lea ecx, [ebp - 0x20]
call fcn.00442450
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
mov edi, dword [ebp - 0x20]
push 0
push 0
push ecx
push edi
push ebx
push dword [eax - 0xc]
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
mov ecx, esi
lea eax, [ebp - 0x20]
push eax
jne 0x50d8c6
mov dword [ebp - 0x1c], edi
call fcn.0050db90
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x50d8f1
push eax
call fcn.00551995
add esp, 4
jmp 0x50d8f1
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x50d915
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret