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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x568cac
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x5d6b80]
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 ebx, dword [ebp + 8]
lea eax, [ebp - 0x98]
push eax
call fcn.0048e7f0
mov esi, dword [ebp - 0x98]
or edi, 0xffffffff
mov dword [ebp - 4], 0
cmp dword [esi - 0xc], 0
je 0x493199
push ecx
mov ecx, esp
mov dword [ebp - 0xa0], esp
push str.extensions.sqlite
call fcn.0045a3a0
push ecx
add esi, 0xfffffff0
mov byte [ebp - 4], 1
mov edi, esp
push esi
call fcn.0045a950
add eax, 0x10
add esp, 4
mov dword [edi], eax
lea eax, [ebp - 0x9c]
mov byte [ebp - 4], 0
push eax
call fcn.00516220
add esp, 0xc
push eax
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 2
call fcn.0045a580
mov edx, dword [ebp - 0x9c]
or edi, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x49313b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x98]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x493199
push 3
lea eax, [ebp - 0x90]
push esi
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x94], eax
call fcn.00491750
push dword [ebp - 0x94]
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.00484590
xor ebx, ebx
lea ecx, [ebp - 0x90]
test eax, eax
mov eax, dword [ebp - 0x94]
sete bl
cmp eax, ecx
je 0x49319b
push eax
call fcn.0052616f
add esp, 4
jmp 0x49319b
xor ebx, ebx
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x4931b9
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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.00525878
mov esp, ebp
pop ebp
ret 4
Function at 0x494500
Capabilities:
Copy file
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x568f66
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x5d6b80]
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, ecx
mov dword [ebp - 0x9c], edi
mov eax, dword [edi + 0xc]
cmp dword [eax - 0xc], 0
je 0x4946e5
mov eax, dword [edi + 0x14]
cmp dword [eax - 0xc], 0
je 0x4946e5
add eax, 0xfffffff0
push eax
call fcn.0045a950
add eax, 0x10
add esp, 4
mov dword [ebp - 0xa0], eax
push str.prefs.js.new
push str.prefs.js
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], 0
call fcn.004601f0
mov esi, dword [ebp - 0xa0]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0xa4], ebx
cmp ebx, 0xffffffff
je 0x4946be
push 0xfde9
push dword [edi + 0xc]
lea eax, [ebp - 0x90]
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x94], eax
call fcn.00491750
mov edx, dword [ebp - 0x94]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x98], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4945e8
sub ecx, dword [ebp - 0x98]
lea eax, [ebp - 0xa8]
push 0
push eax
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0xa4]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x90]
cmp eax, ecx
je 0x49462e
push eax
call fcn.0052616f
add esp, 4
test ebx, ebx
je 0x4946be
mov eax, dword [edi + 0x14]
sub eax, 0x10
push eax
call fcn.0045a950
add eax, 0x10
add esp, 4
mov dword [ebp - 0x98], eax
push str.prefs.js.bak
push str.prefs.js
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 1
call fcn.004601f0
mov edi, dword [ebp - 0x98]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x9c]
push 0
push edi
push dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x49469e
mov eax, dword [ebp - 0x9c]
push 0
push dword [eax + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
add edi, 0xfffffff0
mov byte [ebp - 4], 0
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4946c0
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4946c0
xor ebx, ebx
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4946e1
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
jmp 0x4946e7
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.00525878
mov esp, ebp
pop ebp
ret
Function at 0x4948e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x568fe6
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x5d6b80]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x120], ebx
mov eax, dword [ebx + 0xc]
lea ecx, [ebx + 0xc]
cmp dword [eax - 0xc], 0
je 0x494935
cmp dword [ebp + 8], 0
jne 0x494935
mov eax, 1
jmp 0x494afc
mov dword [ebp - 0x128], 0
call fcn.0045abd0
mov eax, dword [ebx + 0x14]
cmp dword [eax - 0xc], 0
jne 0x4949b1
lea eax, [ebp - 0x11c]
mov ecx, ebx
push eax
call fcn.0048e7f0
push eax
lea ecx, [ebx + 0x14]
mov dword [ebp - 4], 0
call fcn.0045a580
mov edx, dword [ebp - 0x11c]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x494992
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx + 0x14]
cmp dword [eax - 0xc], 0
jne 0x4949a2
xor eax, eax
jmp 0x494afc
push 9
push 0x580dd8
lea ecx, [ebx + 0x14]
call fcn.00472540
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x11c], ebx
cmp ebx, 0xffffffff
je 0x494af8
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x494aed
cmp edi, 0x200000
jae 0x494aed
lea eax, [edi + 1]
push eax
call fcn.005243ff
mov esi, eax
add esp, 4
mov dword [ebp - 0x124], esi
test esi, esi
je 0x494aed
push 0
lea eax, [ebp - 0x12c]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x494ad9
cmp dword [ebp - 0x12c], edi
jne 0x494ad9
push 0xfde9
lea eax, [ebp - 0x114]
mov byte [esi + edi], 0
push esi
lea ecx, [ebp - 0x118]
mov dword [ebp - 4], 1
mov dword [ebp - 0x118], eax
call fcn.004666a0
mov ecx, dword [ebp - 0x120]
push dword [ebp - 0x118]
mov byte [ebp - 4], 2
lea ecx, [ecx + 0xc]
call fcn.0045a5f0
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x114]
mov edi, 1
cmp eax, ecx
je 0x494adb
push eax
call fcn.0052616f
add esp, 4
push esi
call fcn.00525873
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x494afa
xor edi, edi
push esi
call fcn.00525873
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x494afa
push ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x494afa
xor edi, edi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00525878
mov esp, ebp
pop ebp
ret 4
Function at 0x495bb0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x569280
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor bl, bl
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, eax
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x495bfe
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
inc esi
jns 0x495c28
push 0x80070057
call fcn.0045a8f0
mov eax, dword [ebp - 0x10]
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x495c48
push esi
lea ecx, [ebp - 0x10]
call fcn.0045b530
mov eax, dword [ebp - 0x10]
push esi
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [ebp - 0x10]
push dword [eax - 8]
push eax
call fcn.00526d13
mov edx, eax
add esp, 8
test edx, edx
js 0x495c1e
mov ecx, dword [ebp - 0x10]
cmp edx, dword [ecx - 8]
jg 0x495c1e
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x10]
push str.Options___Mozilla_Firefox
mov word [eax + edx*2], cx
lea ecx, [ebp - 0x14]
call fcn.0045a3a0
push 0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004e2260
mov esi, dword [ebp - 0x14]
or edi, 0xffffffff
add esi, 0xfffffff0
mov dword [ebp - 0x18], eax
add esp, 0xc
mov byte [ebp - 4], 0
mov ecx, edi
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x495cc6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
test eax, eax
mov eax, 1
movzx ebx, bl
cmovne ebx, eax
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x495cf4
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
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 0x496d90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5693b8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
push eax
call fcn.005078b0
add esp, 4
test eax, eax
je 0x496f75
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x496e05
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push edi
mov byte [ebp - 4], 1
call fcn.004975e0
add esp, 8
test eax, eax
jne 0x496e33
push edi
lea ecx, [ebp - 0x10]
call fcn.0045a580
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.004e3d10
or esi, 0xffffffff
test eax, eax
jne 0x496efb
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.0045a950
add eax, 0x10
add esp, 4
mov dword [ebp + 8], eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.0045bb40
mov ecx, eax
call fcn.0045ba90
mov eax, dword [ebp + 8]
mov edx, str.about:home
cmp dword [eax - 0xc], 0
cmovne edx, eax
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x496e84
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp + 8]
call fcn.0045b6e0
mov eax, dword [ebp + 8]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x496ede
mov edx, eax
lea edi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x496eb0
sub edx, edi
sar edx, 1
lea ecx, [edx*2 + 2]
push ecx
push eax
push 1
push 0
push dword [0x5d663c]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp + 8]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x496efb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
xor eax, eax
test edx, edx
setne al
test eax, eax
je 0x496f3b
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x496f10
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push dword [0x5d6640]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x496f50
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x496f75
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x496f83
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x496fa0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5693f8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
push eax
call fcn.005078b0
add esp, 4
test eax, eax
je 0x497194
mov esi, dword [ebp + 8]
mov ecx, edi
push esi
call fcn.004e3ee0
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x497087
mov edx, dword [esi]
xor eax, eax
test edx, edx
setne al
test eax, eax
je 0x497047
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x497020
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push dword [0x5d6644]
push dword [ebp - 0x1c]
call edi
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
xor eax, eax
test edx, edx
setne al
test eax, eax
je 0x497087
mov ecx, edx
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x497060
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push dword [0x5d6648]
push dword [ebp - 0x1c]
call edi
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4970a3
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4970d0
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp + 8]
mov ecx, 0x5de07c
push eax
mov eax, dword [0x5de07c]
call dword [eax + 0x20]
mov eax, dword [ebp + 8]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x497137
mov edx, eax
lea esi, [edx + 2]
lea esp, [esp]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x497110
sub edx, esi
sar edx, 1
lea ecx, [edx*2 + 2]
push ecx
push eax
push 1
push 0
push dword [0x5d664c]
push dword [ebp - 0x1c]
call edi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x49714c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x10]
or esi, 0xffffffff
add edx, 0xfffffff0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
mov eax, esi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x497176
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x497194
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4971a2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x497760
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56949b
mov eax, dword fs:[0]
push eax
sub esp, 0x410
mov eax, dword [0x5d6b80]
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 eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push dword [eax]
mov dword [ebp - 0x41c], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4977c2
xor eax, eax
jmp 0x49786c
mov ecx, ebx
call fcn.0045abd0
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
xor esi, esi
push 0
lea eax, [ebp - 0x418]
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
push edi
call ebx
test eax, eax
je 0x49785a
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x49785a
push eax
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x414]
call fcn.00496ca0
mov eax, dword [ebp - 0x414]
mov ecx, dword [ebp - 0x41c]
mov dword [ebp - 4], 0
push dword [eax - 0xc]
push eax
call fcn.00472540
mov edx, dword [ebp - 0x414]
inc esi
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x49784e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp esi, 0x2710
jl 0x4977d1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp esi, 0x2710
setl al
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.00525878
mov esp, ebp
pop ebp
ret
Function at 0x4996b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576180
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4996f4
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
mov eax, dword [0x5de07c]
mov ecx, 0x5de07c
call dword [eax + 4]
or ebx, 0xffffffff
test eax, eax
je 0x49982f
push dword [ebp - 0x10]
call fcn.005275fc
add esp, 4
cmp eax, 0x22
jl 0x49982f
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x499754
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 1
push dword [eax]
lea eax, [ebp - 0x14]
push dword [0x5d67d4]
push 0x57e340
push eax
call fcn.0045acb0
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
add esp, 0x10
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0x2001f
push esi
push reloc.WS2_32.dll_accept
call fcn.0045b220
test eax, eax
jne 0x499804
mov ebx, dword [ebp - 0x20]
lea eax, [ebp + 8]
push 4
push eax
push 4
push 0
push str.ff_rt_ds
push ebx
mov dword [ebp + 8], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
neg edi
sbb edi, edi
inc edi
test ebx, ebx
je 0x4997e2
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
or ebx, 0xffffffff
mov eax, ebx
lea ecx, [esi + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x499831
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x499831
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x499812
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x49982f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor edi, edi
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x499852
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 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 4
Function at 0x499a30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565dd8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x499a74
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
push dword [eax]
lea eax, [ebp - 0x10]
push dword [0x5d67d4]
push 0x57e340
push eax
call fcn.0045acb0
mov eax, dword [str.hpr_ff]
lea ecx, [ebp - 0x20]
mov esi, dword [ebp - 0x10]
add esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], 0
push 2
push esi
mov ebx, dword [eax]
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.0045b220
mov edi, dword [ebp - 0x20]
mov dword [ebp + 8], eax
test eax, eax
jne 0x499aff
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push ebx
push 1
push 0
push dword [ebp - 0x14]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp + 8], eax
test edi, edi
je 0x499b0a
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 8], ebx
sete bl
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x499b33
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x499b50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565dd8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x499b94
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
push dword [eax]
lea eax, [ebp - 0x10]
push dword [0x5d67d4]
push 0x57e340
push eax
call fcn.0045acb0
add esp, 0x10
mov ecx, 0x57c808
cmp dword [ebp + 0xc], 0
mov eax, 0x57da10
cmove eax, ecx
lea ecx, [ebp + 0xc]
push eax
call fcn.0045a3a0
mov eax, dword [str.sa_ff]
lea ecx, [ebp - 0x20]
mov esi, dword [ebp - 0x10]
push 2
push esi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
push reloc.WS2_32.dll_accept
mov dword [ebp + 8], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.0045b220
mov edi, dword [ebp - 0x20]
mov ebx, eax
test ebx, ebx
jne 0x499c3b
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push ebx
push 1
push 0
push dword [ebp - 0x14]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test edi, edi
je 0x499c46
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0xc]
test ebx, ebx
setne byte [ebp + 0xb]
add edx, 0xfffffff0
or edi, 0xffffffff
mov eax, edi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x499c6b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp + 0xb], bl
sete bl
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x499c91
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8