joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ea0d5
Capabilities:
Check if file exists
Delete file
Extract resource via kernel32 functions
Move file
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x735a78]
sub esp, 0x18
push ebx
push esi
xor ebx, ebx
push edi
test eax, eax
je 0x4ea0f1
lea ecx, [ebp - 0x14]
push ecx
call eax
mov ebx, eax
mov edi, dword [ebp + 0x10]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4ea178
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4ea178
call fcn.00418f81
push eax
lea ecx, [ebp - 4]
call fcn.0041775d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 4]
push str.._d.tmp
push eax
call fcn.0041a1e9
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push edi
push eax
call fcn.0044c94c
add esp, 0x18
lea ecx, [ebp - 4]
push eax
call fcn.00418bac
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.00419521
mov esi, dword [ebp - 4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x4ea208
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [esi - 0x10]
call fcn.00419521
xor eax, eax
push dword [ebp + 0xc]
inc eax
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push 0
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc], eax
xor eax, eax
push eax
push eax
push 2
push eax
push eax
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x4ea1eb
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 4]
test eax, eax
jne 0x4ea214
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x10]
cmp eax, 5
jl 0x4ea17a
jmp 0x4ea221
lea ecx, [esi - 0x10]
call fcn.00419521
xor eax, eax
jmp 0x4ea245
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp byte [ebp + 0x14], 0
je 0x4ea230
push 2
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test ebx, ebx
je 0x4ea242
mov eax, dword [0x735a74]
test eax, eax
je 0x4ea242
push dword [ebp - 0x14]
call eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4eacc0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.0060b7a0
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x30], str.runas
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], 5
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esp, ebp
pop ebp
ret
Function at 0x4eb68b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0
jne 0x4eb69e
xor eax, eax
jmp 0x4eb767
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.004eb76b
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4eb766
push ebx
lea ecx, [ebp - 0xc]
xor ebx, ebx
push ecx
push 2
push ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov eax, dword [esi]
push ebx
push esi
call dword [eax + 0x14]
test eax, eax
mov eax, dword [esi]
jne 0x4eb6e1
push ebx
push ebx
push ebx
push ebx
push esi
call dword [eax + 0x14]
test eax, eax
je 0x4eb6e9
mov eax, dword [esi]
push esi
call dword [eax + 8]
xor eax, eax
jmp 0x4eb765
push edi
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4eb711
mov eax, dword [esi]
push esi
call dword [eax + 8]
jmp 0x4eb73b
push dword [ebp - 0xc]
call fcn.00609926
pop ecx
mov ecx, dword [esi]
mov ebx, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
push ebx
push esi
call dword [ecx + 0xc]
test eax, eax
je 0x4eb73f
mov eax, dword [esi]
push esi
call dword [eax + 8]
push ebx
call fcn.0060992f
pop ecx
xor eax, eax
jmp 0x4eb764
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp - 4]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
push esi
call dword [eax + 8]
xor eax, eax
inc eax
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4f0fd4
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
push str.Upload
call dword [sym.imp.WININET.dll_InternetOpenW]
push edi
push edi
push 3
push edi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 8], eax
push dword [ebp + 8]
mov dword [ebp - 0x14], 0x68b5a0
push eax
mov dword [ebp - 0x10], edi
call dword [sym.imp.WININET.dll_InternetConnectW]
push 0x20200400
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], eax
push ecx
push edi
push edi
push dword [ebp + 0x10]
push 0x68b660
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
push 0x28
pop esi
push esi
mov ebx, eax
lea eax, [ebp - 0x3c]
push edi
push eax
call fcn.0060b7a0
add esp, 0xc
mov dword [ebp - 0x3c], esi
mov esi, dword [ebp + 0x18]
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
push edi
push 8
push edi
push eax
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0x14]
push ebx
call dword [sym.imp.WININET.dll_InternetWriteFile]
mov edi, eax
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.WININET.dll_HttpEndRequestW]
push dword [ebp - 4]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 8]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4f1090
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50c
mov eax, dword [0x7286bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x504]
push 0x400
xor ebx, ebx
mov dword [ebp - 0x508], edi
push ebx
push eax
call fcn.0060b7a0
add esp, 0xc
push ebx
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
mov dword [ebp - 0x50c], esi
test esi, esi
jne 0x4f10f8
cmp dword [ebp + 0x10], ebx
je 0x4f1174
push 0x10
push str.Internet_open_failed_
push edi
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4f1174
push 4
lea eax, [ebp + 0xc]
push eax
push 2
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push ebx
push 0x102
push ebx
push ebx
push edi
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
test eax, eax
jne 0x4f1163
cmp dword [ebp + 0x10], ebx
je 0x4f116d
push 0x13
pop ecx
push 0xb4
lea eax, [ebp - 0xb8]
mov esi, str.Internet_open_url_failed__error_code
lea edi, [ebp - 0x104]
push ebx
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.0060b7a0
add esp, 0xc
lea eax, [ebp - 0x104]
push 0x10
push eax
push dword [ebp - 0x508]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, dword [ebp - 0x50c]
jmp 0x4f116d
xor ebx, ebx
push eax
inc ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00609802
mov esp, ebp
pop ebp
ret
Function at 0x4f1187
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
lea ecx, [ebp - 0x2c]
push ebx
push esi
push edi
push dword [ebp + 0x88]
push dword [ebp + 0x84]
push dword [ebp + 0x80]
call fcn.0043fa88
mov edi, 0xa8
push edi
call fcn.00609934
mov esi, eax
pop ecx
test esi, esi
je 0x4f11d3
push edi
push 0
push esi
call fcn.0060b7a0
add esp, 0xc
mov ecx, esi
call fcn.00445f51
mov ebx, eax
jmp 0x4f11d5
xor ebx, ebx
lea eax, [ebp + 8]
mov ecx, ebx
push eax
call fcn.0044c012
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebx + 0x78]
call fcn.00418bac
push 0xb
pop ecx
push ebx
lea edi, [ebx + 0x7c]
lea esi, [ebp - 0x2c]
push 0
rep movsd dword es:[edi], dword [esi]
push 0x478f46
call fcn.006423a8
add esp, 0xc
lea ecx, [ebp + 8]
call fcn.0044947a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x84
Function at 0x4f6004
Capabilities:
Log keystrokes

Disassembly:
push esi
push edi
mov edi, ecx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
call dword [sym.imp.USER32.dll_GetFocus]
push 4
test edi, edi
lea edx, [edi - 0x3e8]
pop eax
cmove edx, eax
cmp esi, dword [edx]
je 0x4f6048
mov eax, dword [edi + 0x90]
test eax, eax
je 0x4f603f
push dword [eax + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4f6048
mov ecx, edi
pop edi
pop esi
jmp fcn.004f6083
pop edi
pop esi
ret

Function at 0x4f6083
Capabilities:
Hide graphical window
Log keystrokes

Disassembly:
push 0xc
mov eax, 0x664d9b
call fcn.006098b5
lea eax, [ecx - 0x3ec]
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [ebp - 0x14], ecx
and dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
mov dword [ebp - 0x18], edi
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
push 1
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_AttachThreadInput]
call edi
push 1
mov esi, dword [ebp - 0x14]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 3
xor eax, eax
push eax
push eax
push eax
push eax
push 0xffffffffffffffff
push dword [esi + 4]
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
call esi
push 3
xor eax, eax
push eax
push eax
push eax
push eax
push 0xfffffffffffffffe
mov eax, dword [ebp - 0x14]
push dword [eax + 4]
call esi
mov eax, dword [ebp - 0x14]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push ebx
push dword [ebp - 0x18]
call edi
or dword [ebp - 4], 0xffffffff
call fcn.00609813
ret

Function at 0x4f72f2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
lea ecx, [ebp - 0x2c]
push ebx
push esi
push edi
push dword [0x735a40]
push dword [0x735a3c]
push dword [0x735a38]
call fcn.0043fa88
mov edi, 0xa8
push edi
call fcn.00609934
mov esi, eax
pop ecx
test esi, esi
je 0x4f733e
push edi
push 0
push esi
call fcn.0060b7a0
add esp, 0xc
mov ecx, esi
call fcn.00445f51
mov ebx, eax
jmp 0x4f7340
xor ebx, ebx
lea eax, [ebp + 8]
mov ecx, ebx
push eax
call fcn.0044c012
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebx + 0x78]
call fcn.00418bac
push 0xb
pop ecx
push ebx
lea edi, [ebx + 0x7c]
lea esi, [ebp - 0x2c]
push 0
rep movsd dword es:[edi], dword [esi]
push 0x480e7b
call fcn.006423a8
add esp, 0xc
lea ecx, [ebp + 8]
call fcn.0044947a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x78
Function at 0x4fd946
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
push dword [ebp + 0x88]
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x30]
push dword [ebp + 0x84]
push dword [ebp + 0x80]
call fcn.0043fa88
mov edi, 0xa8
push edi
call fcn.00609934
mov esi, eax
pop ecx
test esi, esi
je 0x4fd99a
push edi
push 0
push esi
call fcn.0060b7a0
add esp, 0xc
mov ecx, esi
call fcn.00445f51
mov esi, eax
mov dword [ebp + 0x88], eax
jmp 0x4fd9a2
xor esi, esi
mov dword [ebp + 0x88], esi
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.0044c012
lea eax, [ebp + 0x14]
push eax
lea ecx, [esi + 0x78]
call fcn.00418bac
lea edi, [esi + 0x7c]
push 0xb
pop ecx
lea esi, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x74]
cmp dword [eax - 0xc], 0
jne 0x4fda33
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.0047a3ff
test eax, eax
je 0x4fda33
lea esi, [eax + 8]
push str.card_trafficlimit_todaytomorrow
mov ecx, esi
call fcn.005d83b1
test eax, eax
je 0x4fd9fb
mov edx, dword [eax]
mov ecx, eax
push 0
call dword [edx + 0x180]
push str.card_trafficlimit_nocity
mov ecx, esi
call fcn.005d83b1
test eax, eax
je 0x4fda17
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx + 0x180]
push str.card_trafficlimit_citylist
mov ecx, esi
call fcn.005d83b1
test eax, eax
je 0x4fda33
mov edx, dword [eax]
mov ecx, eax
push 0
call dword [edx + 0x180]
push dword [ebp + 0x88]
push 0
push 0x48bf19
call fcn.006423a8
add esp, 0xc
lea ecx, [ebp + 8]
call fcn.0044947a
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x84
Function at 0x503763
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ecx]
call dword [eax + 0x16c]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00418dea
mov esi, eax
pop ecx
cmp dword [esi + 4], 0
je 0x5037ba
push ecx
mov edi, esp
push esi
call fcn.00418dea
add eax, 0x10
pop ecx
mov dword [edi], eax
call fcn.004b57d7
push 8
mov edi, eax
call fcn.00609934
push eax
push 0
push 0x47381d
mov byte [eax + 4], 1
mov dword [eax], edi
call fcn.006423a8
add esp, 0x14
lea ecx, [esi]
call fcn.00419521
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x5037c7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ecx]
call dword [eax + 0x16c]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00418dea
mov esi, eax
pop ecx
cmp dword [esi + 4], 0
je 0x50381e
push ecx
mov edi, esp
push esi
call fcn.00418dea
add eax, 0x10
pop ecx
mov dword [edi], eax
call fcn.004b57d7
push 8
mov edi, eax
call fcn.00609934
push eax
push 0
push 0x47381d
mov byte [eax + 4], 0
mov dword [eax], edi
call fcn.006423a8
add esp, 0x14
lea ecx, [esi]
call fcn.00419521
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x50498e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x7286bc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
call fcn.0060b7a0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.004177e7
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00609802
mov esp, ebp
pop ebp
ret 4

Function at 0x504e7f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x7286bc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
call fcn.0060b7a0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.004177e7
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00609802
mov esp, ebp
pop ebp
ret 4

Function at 0x507dcf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
mov eax, dword [ecx + 4]
or eax, 0xf003f
push eax
push edi
push dword [ecx + 0x10]
push dword [ecx + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x507e16
push esi
push edi
push edi
push edi
push edi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x507e16
inc edi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00419521
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x50809d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x7286bc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
call fcn.0060b7a0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.004177e7
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00609802
mov esp, ebp
pop ebp
ret 4

Function at 0x508415
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 4]
push eax
xor esi, esi
xor ebx, ebx
inc ebx
mov eax, dword [edi + 4]
or eax, 0x20006
push eax
push esi
push dword [edi + 0x10]
push dword [edi + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x508476
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ecx, ecx
test eax, eax
cmovne ebx, ecx
cmp dword [edi + 0xc], esi
jne 0x50846b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, ebx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00419521
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x50848c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 4]
push eax
xor esi, esi
xor ebx, ebx
inc ebx
mov eax, dword [edi + 4]
or eax, 0x20006
push eax
push esi
push dword [edi + 0x10]
push dword [edi + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5084ed
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ecx, ecx
test eax, eax
cmovne ebx, ecx
cmp dword [edi + 0xc], esi
jne 0x5084e2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, ebx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00419521
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x508503
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 4]
push eax
xor esi, esi
xor ebx, ebx
inc ebx
mov eax, dword [edi + 4]
or eax, 0x20006
push eax
push esi
push dword [edi + 0x10]
push dword [edi + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x508564
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ecx, ecx
test eax, eax
cmovne ebx, ecx
cmp dword [edi + 0xc], esi
jne 0x508559
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, ebx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00419521
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x50857a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x7286bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
xor esi, esi
inc esi
cmp dword [eax - 0xc], 0x9ec
push edi
mov edi, ecx
jg 0x508628
push eax
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x208]
push eax
mov eax, dword [edi + 4]
or eax, 0x20006
push eax
push 0
push dword [edi + 0x10]
push dword [edi + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x508628
lea eax, [ebp - 0x204]
push eax
call fcn.006180f6
pop ecx
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push 0
push dword [ebp + 8]
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ecx, ecx
test eax, eax
cmovne esi, ecx
cmp dword [edi + 0xc], ecx
jne 0x50861a
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x50862a
xor esi, esi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00419521
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00419521
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00609802
mov esp, ebp
pop ebp
ret 8
Function at 0x5086ca
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1054
call fcn.00609980
mov eax, dword [0x7286bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x1040], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x1044], eax
xor edi, edi
mov eax, dword [ebp + 0x10]
push eax
mov dword [ebp - 0x102c], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x508715
xor eax, eax
jmp 0x5088e5
push ebx
mov ebx, esi
push edi
and ebx, 0x10
mov eax, ebx
shl eax, 0x15
push eax
push 3
push edi
push 1
push SysReAllocString
push dword [ebp - 0x102c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x102c], eax
cmp eax, 0xffffffff
jne 0x50874a
xor eax, eax
jmp 0x5088e4
lea ecx, [ebp - 0x104c]
push ecx
push edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea eax, [ebp - 0x1054]
push eax
lea eax, [ebp - 0x104c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [ebp - 0x103c]
push eax
lea eax, [ebp - 0x1038]
push eax
lea eax, [ebp - 0x1054]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
push 0x24
lea eax, [ebp - 0x1028]
push edi
push eax
call fcn.0060b7a0
movzx ecx, word [ebp - 0x1038]
add esp, 0xc
movzx eax, word [ebp - 0x103c]
or dword [ebp - 0x1008], esi
shl ecx, 0x10
push dword [ebp - 0x1044]
or ecx, eax
mov dword [ebp - 0x1010], ecx
lea ecx, [ebp - 0x1044]
call fcn.0043ce97
mov esi, dword [ebp - 0x1044]
lea eax, [ebp - 0x1028]
push 9
push 8
push edi
push edi
push edi
push edi
push edi
push eax
push esi
push dword [ebp - 0x1040]
call fcn.0040b5f0
add esp, 0x28
test eax, eax
jne 0x5088c1
test ebx, ebx
mov ebx, dword [ebp - 0x102c]
jne 0x5088c7
lea eax, [ebp - 0x1034]
mov dword [ebp - 0x1034], edi
push eax
push ebx
mov dword [ebp - 0x1030], edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x5088c7
mov ecx, dword [ebp - 0x1030]
cmp ecx, edi
jl 0x5088bc
mov eax, dword [ebp - 0x1034]
jg 0x50884d
jmp 0x5088b8
cmp ecx, edi
jl 0x508852
jg 0x50884d
cmp eax, 0x1000
jbe 0x508852
mov eax, 0x1000
push edi
lea ecx, [ebp - 0x102c]
mov dword [ebp - 0x102c], edi
push ecx
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5088c7
push dword [ebp - 0x102c]
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1040]
call fcn.0040b730
add esp, 0xc
test eax, eax
js 0x5088c7
mov eax, dword [ebp - 0x1034]
sub eax, dword [ebp - 0x102c]
mov ecx, dword [ebp - 0x1030]
sbb ecx, edi
mov dword [ebp - 0x1034], eax
mov dword [ebp - 0x1030], ecx
cmp ecx, edi
jg 0x50884d
jl 0x5088bc
cmp eax, edi
ja 0x508840
xor edi, edi
inc edi
jmp 0x5088c7
mov ebx, dword [ebp - 0x102c]
push dword [ebp - 0x1040]
call fcn.0040c080
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi - 0x10]
call fcn.00419521
mov eax, edi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00609802
mov esp, ebp
pop ebp
ret