joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c4860
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6195d0
push eax
mov dword fs:[0], esp
sub esp, 0x18
lea eax, [esp + 0x14]
push esi
mov esi, ecx
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x6ec0c8
push 0
push 0x6c4340
push reloc.WS2_32.dll_accept
mov dword [esi + 0x4b0], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4c4915
mov edx, dword [0x6e7b6c]
mov dword [esp + 4], edx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 8]
push 0x6c52f8
push eax
call fcn.005f368b
mov ecx, dword [0x6ec89c]
add esp, 0xc
test ecx, ecx
je 0x4c48f4
mov edx, dword [esp + 4]
push 1
push edx
call fcn.004ab540
lea ecx, [esp + 4]
mov dword [esp + 0x24], 0xffffffff
call fcn.005fa859
pop esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0
push 0x6c52e8
push edx
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4c494c
mov eax, dword [esp + 0x14]
inc eax
mov dword [esi + 0x4b0], eax
jmp 0x4c499d
cmp eax, 2
je 0x4c499d
mov ecx, dword [0x6e7b6c]
mov dword [esp + 8], ecx
push eax
lea edx, [esp + 0xc]
push 0x6c52c4
push edx
mov dword [esp + 0x30], 1
call fcn.005f368b
mov ecx, dword [0x6ec89c]
add esp, 0xc
test ecx, ecx
je 0x4c498c
mov eax, dword [esp + 8]
push 1
push eax
call fcn.004ab540
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0xffffffff
call fcn.005fa859
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x6c4b88]
mov ecx, dword [esi + 0x4b0]
cmp eax, ecx
jl 0x4c49be
inc eax
mov dword [esi + 0x4b0], eax
mov edx, dword [esi + 0x4b0]
mov dword [0x6c4b88], edx
mov eax, dword [esi + 0x4b0]
push eax
call fcn.004c9b00
mov ecx, dword [0x6ec8c4]
add esp, 4
test ecx, ecx
je 0x4c49ef
mov edx, dword [esi + 0x4b0]
push edx
call fcn.004acfb0
mov ecx, dword [esp + 0x1c]
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x4c4a00
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6195e8
push eax
mov dword fs:[0], esp
sub esp, 0x14
lea eax, [esp + 0x10]
push esi
mov esi, ecx
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x6ec0c8
push 0
push 0x6c4340
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4c4aab
mov edx, dword [0x6e7b6c]
mov dword [esp + 8], edx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0xc]
push 0x6c52f8
push eax
call fcn.005f368b
mov ecx, dword [0x6ec89c]
add esp, 0xc
test ecx, ecx
je 0x4c4a8a
mov edx, dword [esp + 8]
push 1
push edx
call fcn.004ab540
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call fcn.005fa859
pop esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
lea ecx, [esp + 4]
push eax
push ecx
push 0
push 0
push 0x6c52e8
push edx
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov eax, dword [esi + 0x4b0]
jne 0x4c4ae1
cmp eax, dword [esp + 4]
jle 0x4c4ae5
mov dword [esp + 4], eax
mov edx, dword [esp + 0xc]
lea ecx, [esp + 4]
push 4
push ecx
push 4
push 0
push 0x6c52e8
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x4c7950
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61992b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor edx, edx
mov ecx, dword [ebp + 8]
push edi
cmp ecx, edx
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], edx
jl 0x4c7a93
cmp ecx, dword [esi + 0xb0]
jge 0x4c7a93
xor ebx, ebx
cmp edx, dword [esi + 0x530]
jge 0x4c7a05
mov eax, dword [esi + 0x52c]
lea edi, [edx*8]
add eax, edi
cmp ecx, dword [eax]
jne 0x4c7a71
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0x530]
mov dword [ebp + 8], ecx
mov ecx, dword [esi + 0x52c]
sub eax, edx
mov ebx, 1
dec eax
add ecx, edi
mov edi, ebx
dec ebx
test edi, edi
je 0x4c79d6
add ecx, 8
jmp 0x4c79ca
test eax, eax
je 0x4c79f5
mov ecx, dword [esi + 0x52c]
shl eax, 3
push eax
lea eax, [ecx + edx*8 + 8]
lea ecx, [ecx + edx*8]
push eax
push ecx
call fcn.005df1c0
add esp, 0xc
mov eax, dword [esi + 0x530]
mov ebx, dword [ebp + 8]
dec eax
mov dword [esi + 0x530], eax
test ebx, ebx
je 0x4c7a93
mov edx, dword [ebx]
push 0
push 0x1442
push 0x111
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp + 8], ebx
mov al, byte [ebx + 0x26]
mov byte [ebp - 4], 1
test al, al
je 0x4c7a41
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x4c7a3a
lea eax, [ebx + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebx + 0x10]
call fcn.00401070
lea ecx, [ebx + 0xc]
mov byte [ebp - 4], 0
call fcn.005fa859
push ebx
call fcn.005f6c85
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
inc edx
jmp 0x4c798f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4c7ab0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x619956
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], edi
mov eax, dword [ebx + 0x530]
mov dword [ebp - 0x14], edi
cmp edi, eax
jge 0x4c7b7b
mov eax, dword [ebx + 0x52c]
push 0
push 0x1442
push 0x111
mov ecx, dword [eax + edi*8 + 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebx + 0x52c]
mov esi, dword [eax + edi*8 + 4]
test esi, esi
mov dword [ebp - 0x1c], esi
je 0x4c7b6e
mov al, byte [esi + 0x26]
mov byte [ebp - 4], 2
test al, al
je 0x4c7b38
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x4c7b31
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esi + 0x10]
call fcn.00401070
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
call fcn.005fa859
push esi
call fcn.005f6c85
add esp, 4
mov dword [ebp - 4], 0
inc edi
jmp 0x4c7adb
mov dword [ebp - 4], 0
inc edi
jmp 0x4c7adb
push 0xffffffffffffffff
push 0
lea ecx, [ebx + 0x528]
call fcn.004d05f0
mov ecx, ebx
call fcn.004cd030
mov esi, dword [ebx + 0x53c]
test esi, esi
je 0x4c7be1
mov dword [ebp - 0x1c], esi
mov al, byte [esi + 0x26]
mov byte [ebp - 4], 4
test al, al
je 0x4c7bba
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x4c7bb3
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esi + 0x10]
call fcn.00401070
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 0
call fcn.005fa859
push esi
call fcn.005f6c85
add esp, 4
mov dword [ebx + 0x53c], 0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c9990
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6199eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xcc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], ebx
xor edi, edi
cmp edi, dword [esi + 0xb0]
jge 0x4c9aac
mov eax, dword [0x6e7b6c]
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x74], ebx
mov word [ebp - 0x78], bx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x68], ebx
mov word [ebp - 0x6c], bx
call fcn.0041c830
mov eax, dword [0x6e7b6c]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
call fcn.0041c830
mov eax, dword [0x6e7b6c]
mov dword [ebp - 0xd8], 0x635b14
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0xd8]
push ebx
push eax
push edi
lea ecx, [esi + 8]
mov byte [ebp - 4], 1
call fcn.005cee60
cmp al, bl
je 0x4c9a7c
cmp byte [ebp - 0x90], bl
je 0x4c9a7c
mov eax, dword [ebp - 0x40]
cmp eax, ebx
jne 0x4c9a5e
lea eax, [ebp - 0x3c]
push eax
call fcn.005de123
add esp, 4
test eax, eax
jbe 0x4c9a7c
mov eax, dword [ebp - 0x40]
cmp eax, ebx
jne 0x4c9a75
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], bl
call fcn.00475e90
inc edi
jmp 0x4c99bd
mov eax, dword [esi + 0x41c]
cmp eax, ebx
jne 0x4c9abc
lea eax, [esi + 0x420]
push eax
call fcn.005de123
add esp, 4
test eax, eax
je 0x4c9ae2
mov eax, dword [esi + 0x41c]
cmp eax, ebx
jne 0x4c9ad9
lea eax, [esi + 0x420]
push eax
call fcn.005e0a04
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4cba50
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x619c0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov al, byte [esi + 0x26]
mov dword [esp + 0x10], 0
test al, al
je 0x4cba8d
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x4cba86
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esi + 0x10]
call fcn.00401070
lea ecx, [esi + 0xc]
mov dword [esp + 0x10], 0xffffffff
call fcn.005fa859
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4cd030
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x619d3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov eax, dword [edi + 0x53c]
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x4cd0db
mov eax, dword [eax]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4cd089
mov ecx, dword [edi + 0x53c]
push ebx
push 0x1442
push 0x111
mov edx, dword [ecx]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, edi
call fcn.004c6590
mov esi, dword [edi + 0x53c]
cmp esi, ebx
mov dword [ebp - 0x14], esi
je 0x4cd0d5
mov al, byte [esi + 0x26]
mov byte [ebp - 4], 1
cmp al, bl
je 0x4cd0b9
mov eax, dword [esi + 0x10]
cmp eax, ebx
jne 0x4cd0b2
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esi + 0x10]
call fcn.00401070
lea ecx, [esi + 0xc]
mov byte [ebp - 4], bl
call fcn.005fa859
push esi
call fcn.005f6c85
add esp, 4
mov dword [edi + 0x53c], ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d3ca0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61abf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 4], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], esi
mov word [ebp - 0x1c], si
mov bl, 1
lea ecx, [edi + 0x938]
mov byte [ebp - 4], bl
call fcn.0050aac0
mov ecx, dword [ebp + 8]
cmp ecx, eax
jge 0x4d3d3c
mov edx, dword [edi + ecx*4 + 0x93c]
mov esi, dword [0x6ec710]
mov byte [ebp - 0x11], bl
mov ebx, dword [0x6ec714]
xor eax, eax
cmp eax, ebx
jge 0x4d3d32
lea ecx, [eax + eax*2]
cmp edx, dword [esi + ecx*4]
lea ecx, [esi + ecx*4]
jne 0x4d3d67
mov ecx, dword [ecx + 8]
push ecx
lea ecx, [ebp - 0x20]
call fcn.004023e0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4d3d26
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4d3d6a
mov al, byte [ebp - 0x11]
test al, al
je 0x4d3d6a
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [edi + 0x938]
call fcn.0050acd0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.00401070
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
inc eax
jmp 0x4d3d01
lea ecx, [edi + 0x7c0]
call fcn.004b98b0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4d3d7f
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.004d5b70
jmp 0x4d3d48
Function at 0x4d7750
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x6ec0c8
push 0
push 0x6c108c
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4d7886
mov edx, dword [0x6ed028]
push esi
push edi
mov edi, edx
or ecx, 0xffffffff
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [esp + 0x10]
push 1
push eax
push 0x6c60f8
push edx
call esi
mov edx, dword [0x6ed010]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x18]
push 0x6c60e8
push eax
call esi
mov edx, dword [0x6ed020]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 1
push eax
push 0x6c60d8
push ecx
call esi
mov edx, dword [0x6ed01c]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [esp + 0x10]
push 1
push eax
push 0x6c60c4
push edx
call esi
mov edx, dword [0x6ed024]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x18]
push 0x6c60b0
push eax
call esi
mov edx, dword [0x6ed018]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
mov ecx, dword [esp + 0x14]
push eax
push 0x6c60a0
push ecx
call esi
mov edx, dword [0x6ed014]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [esp + 0x10]
push 1
push eax
push 0x6c608c
push edx
call esi
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 8
ret
Function at 0x4db920
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x61b286
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
push ebx
push esi
push edi
mov esi, ecx
call fcn.00444af0
mov ecx, esi
call fcn.004e2280
mov ecx, esi
call fcn.004d6660
mov edi, dword [esp + 0xc0]
mov ebx, 4
test di, di
mov dword [esp + 0x10], ebx
je 0x4db9fd
mov ecx, dword [0x6ec7a0]
lea eax, [esp + 0xc]
push ebx
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0
push 0x6d5660
push ecx
mov dword [esp + 0x24], 1
call ebx
push 0
push edi
mov ecx, esi
call fcn.004d7570
mov ecx, dword [0x6ec7a0]
lea eax, [esp + 0x14]
push 4
push eax
mov edx, edi
push 4
push 0
and edx, 0xffff
push 0x6c150c
push ecx
mov dword [esp + 0x2c], edx
call ebx
cmp di, word [esi + 0x32]
je 0x4dbb03
mov edx, dword [esp + 0xc4]
mov word [esi + 0x30], di
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
mov dword [esi + 0x2c], 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4db9f3
push edx
lea ecx, [esi + 0x1c]
call fcn.005fa9e2
call fcn.0044f8b0
jmp 0x4dbb03
mov ecx, dword [0x6ec7a0]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push 0
push 0x6c150c
push ecx
call edi
test eax, eax
jne 0x4dba35
mov edx, dword [esp + 0xc]
push eax
push edx
mov ecx, esi
call fcn.004d7570
jmp 0x4dbb03
mov eax, dword [0x6ec78c]
test eax, eax
jne 0x4dbb03
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
and eax, 0xffff
push 0
push eax
mov ecx, esi
call fcn.004db8e0
push eax
mov ecx, esi
call fcn.004d7570
cmp word [esi + 0x32], 9
je 0x4dbb03
mov eax, dword [esi + 0x34]
test eax, eax
je 0x4dbb03
mov edx, dword [0x6ec7a0]
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
push 0
push 0x6d5660
push edx
mov dword [esp + 0x28], ebx
call edi
test eax, eax
je 0x4dbb03
push 0
lea ecx, [esp + 0x1c]
call fcn.00518560
lea ecx, [esp + 0x18]
mov dword [esp + 0xb8], 0
call fcn.005f6856
mov ecx, dword [0x6ec7a0]
lea eax, [esp + 0xc]
push ebx
push eax
push ebx
push 0
push 0x6d5660
push ecx
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x74]
mov dword [esp + 0xb8], 1
call fcn.00602406
lea ecx, [esp + 0x18]
mov dword [esp + 0xb8], 0xffffffff
call fcn.005f6497
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xb0
ret 8
Function at 0x4e4b50
Capabilities:
Get file system object information

Disassembly:
push 0xffffffffffffffff
push 0x61b756
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x174
push ebp
push edi
mov edi, ecx
push 0
mov dword [esp + 0xc], edi
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [0x6e7b6c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov ebp, dword [edi + 0x14]
mov dword [esp + 0x184], 0
neg ebp
sbb ebp, ebp
test ebp, ebp
je 0x4e4cd2
push ebx
push esi
cmp ebp, 0xffffffff
mov ecx, ebp
jne 0x4e4bc5
mov esi, dword [edi + 0x10]
xor eax, eax
test esi, esi
jbe 0x4e4bc5
mov edx, dword [edi + 0xc]
mov ecx, dword [edx]
test ecx, ecx
jne 0x4e4bc5
inc eax
add edx, 4
cmp eax, esi
jb 0x4e4bb7
mov ebp, dword [ecx]
test ebp, ebp
jne 0x4e4bed
mov eax, dword [ecx + 4]
mov esi, dword [edi + 0x10]
lea edx, [edi + 8]
inc eax
cmp eax, esi
jae 0x4e4bed
mov edx, dword [edx + 4]
lea edx, [edx + eax*4]
mov ebp, dword [edx]
test ebp, ebp
jne 0x4e4bed
inc eax
add edx, 4
cmp eax, esi
jb 0x4e4bdf
mov ebx, dword [ecx + 8]
lea esi, [ecx + 0xc]
push esi
lea ecx, [esp + 0x18]
call fcn.005fa992
lea eax, [esi + 4]
lea ecx, [esp + 0x18]
push eax
call fcn.005fa992
mov esi, dword [esi + 8]
cmp esi, 0xffffffff
mov dword [esp + 0x1c], esi
jne 0x4e4cc4
mov edx, dword [esp + 0x14]
mov ecx, 0x58
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
push 0x4411
lea ecx, [esp + 0x28]
push 0x160
push ecx
push 0x80
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], eax
lea esi, [edx + 8]
push ecx
push ebx
mov ecx, esi
call fcn.00534c10
test eax, eax
jne 0x4e4ca1
mov eax, dword [esi + 4]
test eax, eax
jne 0x4e4c7a
mov eax, dword [esi + 8]
push 1
push eax
mov ecx, esi
call fcn.0049c370
mov ecx, esi
call fcn.004e5570
mov ecx, dword [esp + 0x20]
mov dword [eax + 8], ebx
mov dword [eax + 4], ecx
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x20]
mov edx, dword [edx + ecx*4]
mov dword [eax], edx
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x20]
mov dword [ecx + edx*4], eax
lea esi, [eax + 0xc]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.005fa992
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esi + 4]
call fcn.005fa992
mov edx, dword [esp + 0x1c]
mov dword [esi + 8], edx
mov edi, dword [esp + 0x10]
test ebp, ebp
jne 0x4e4ba4
pop esi
pop ebx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov edi, dword [edi + 4]
test edi, edi
je 0x4e4cf2
push 0
push 0x1446
push 0x111
push edi
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x184], 1
call fcn.005fa859
lea ecx, [esp + 0xc]
mov dword [esp + 0x184], 0xffffffff
call fcn.005fa859
mov ecx, dword [esp + 0x17c]
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x180
ret
Function at 0x4e6740
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x61b949
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x641a00
lea ebx, [esi + 8]
push 0xffffffffffffffff
push 0
mov ecx, ebx
mov dword [esp + 0x24], 2
call fcn.0041ff40
lea edi, [esi + 0x1c]
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.0041ff40
add esi, 0x30
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.0041ff40
mov dword [esp + 0x10], esi
mov dword [esi], method.CCommandLineInfo.virtual_0
mov esi, dword [esi + 4]
mov byte [esp + 0x1c], 3
test esi, esi
je 0x4e67b8
push esi
call fcn.005f6c85
add esp, 4
mov dword [esp + 0x10], edi
mov dword [edi], method.CCommandLineInfo.virtual_0
mov edi, dword [edi + 4]
mov byte [esp + 0x1c], 4
test edi, edi
je 0x4e67d7
push edi
call fcn.005f6c85
add esp, 4
mov dword [esp + 0x10], ebx
mov dword [ebx], method.CCommandLineInfo.virtual_0
mov ebx, dword [ebx + 4]
mov dword [esp + 0x1c], 5
test ebx, ebx
je 0x4e67f9
push ebx
call fcn.005f6c85
add esp, 4
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4e6bc0
Capabilities:
Access peb ldr_data
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x61b970
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
xor ebx, ebx
push ebp
push esi
mov ebp, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov word [esp + 0x18], bx
lea eax, [esp + 0x14]
mov dword [esp + 0x34], ebx
push eax
call fcn.004e6cf0
mov ecx, dword [0x6e7b6c]
mov dword [esp + 0xc], ecx
lea edx, [esp + 0x20]
mov byte [esp + 0x34], 1
push edx
call fcn.005dfac7
mov eax, dword [esp + 0x24]
add esp, 4
lea ecx, [esp + 0xc]
push eax
push 0x6d5a0c
push ecx
call fcn.005f368b
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, ebx
jne 0x4e6c39
lea eax, [esp + 0x18]
push ebx
push ebx
push 2
push ebx
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4e6c7f
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], bl
call fcn.005fa859
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], esi
call fcn.00401070
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov eax, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [esp + 0x14]
mov ecx, dword [eax - 8]
push ebx
push edx
push ecx
push eax
push esi
call edi
lea eax, [esp + 0x14]
push ebx
push eax
add ebp, 0x48
push 0x2d08
push ebp
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], bl
call fcn.005fa859
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], 0xffffffff
call fcn.00401070
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x4e82d0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov eax, dword [esp + 0x10]
push ebp
push esi
push edi
push 0
push 0
push 3
push 0
push 1
push bind
mov dword [esp + 0x2c], ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4e83ec
lea ecx, [esp + 0x1c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4e8330
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4e8330
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
mov eax, dword [esp + 0x1c]
test eax, eax
jbe 0x4e834b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
test ebp, ebp
jne 0x4e8362
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
lea edi, [ebp + 1]
push edi
call fcn.005f6c5c
mov esi, eax
add esp, 4
test esi, esi
jne 0x4e8387
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x14]
push eax
push ebp
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4e83e3
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x4e83e3
mov ecx, dword [esp + 0x14]
push eax
push esi
call fcn.004e76e0
push esi
call fcn.005f6c85
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
push esi
call fcn.005f6c85
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4