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

Disassembly:
sub esp, 0x94
mov eax, dword [0x7496c8]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
mov ebx, dword [esp + 0x9c]
push ebp
push esi
push edi
xor edi, edi
xor eax, eax
push 0x40
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x3c]
push edi
push eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x40], edi
call fcn.00613900
mov ecx, dword [str.S_1_16_8192]
mov eax, dword [0x67b2c4]
mov edx, dword [0x67b2c0]
mov dword [esp + 0x84], ecx
mov ecx, dword [0x67b2c8]
mov dword [esp + 0x8c], eax
mov eax, dword [0x67b2d0]
add esp, 0xc
mov dword [esp + 0x84], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x7c], edx
mov edx, dword [0x67b2cc]
mov dword [esp + 0x8c], eax
xor eax, eax
push ecx
push 0x8b
xor ebp, ebp
mov dword [esp + 0x90], edx
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, eax
cmp esi, edi
je 0x4a187c
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
push 1
push 2
push edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov esi, eax
cmp esi, edi
je 0x4a187c
push str.Advapi32.dll
call fcn.00446c90
mov ebp, eax
add esp, 4
cmp ebp, edi
je 0x4a187c
push str.ConvertStringSidToSidW
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x4a187c
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x7c]
push edx
call eax
mov esi, eax
cmp esi, edi
je 0x4a187c
mov eax, dword [esp + 0x14]
push eax
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x20], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov ecx, dword [esp + 0x10]
add eax, 8
push eax
lea eax, [esp + 0x20]
push eax
push 0x19
push ecx
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov esi, eax
cmp esi, edi
je 0x4a187c
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
mov eax, dword [esp + 0x24]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, edi
je 0x4a188d
push eax
call ebx
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x4a1898
push eax
call ebx
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x4a18ae
push eax
call ebx
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x4a18b9
push eax
call ebx
cmp ebp, edi
je 0x4a18c4
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0xa0]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00613241
add esp, 0x94
ret
Function at 0x4a23d0
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x641e70
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x7496c8]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
cmp dword [0x74e9dc], 0
je 0x4a251b
cmp dword [0x74f3b0], 0
jne 0x4a242f
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
cmp dword [0x74f3a4], 0
jne 0x4a244c
call fcn.004a1630
mov dword [0x74f29c], eax
mov dword [0x74f3a4], 1
cmp dword [0x74f29c], 0
je 0x4a2478
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
mov esi, dword [esp + 0x2c]
push esi
call fcn.004a1ff0
mov edi, dword [esp + 0x2c]
add esp, 4
test eax, eax
jne 0x4a24d8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4a24c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4a24d8
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
cmp dword [esp + 0x30], 0
jne 0x4a24fc
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
push 0
push esi
push edi
call fcn.004a1af0
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ebp, eax
test ebp, ebp
jne 0x4a25ed
cmp dword [0x743d18], eax
jne 0x4a25ed
push eax
lea ecx, [esp + 0x18]
push edi
push ecx
call fcn.00402a70
mov dword [esp + 0x2c], ebp
push ebp
lea edx, [esp + 0x20]
push esi
push edx
call fcn.00402a70
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x2c]
push 0x3f
push eax
call fcn.00614820
add esp, 0x20
test eax, eax
jne 0x4a25ce
mov ecx, dword [esp + 0x10]
push 0x3f
push ecx
call fcn.00614820
add esp, 8
test eax, eax
jne 0x4a25ce
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov esi, eax
mov byte [esp + 0x20], 0
lea ecx, [esp + 0x10]
call fcn.00402570
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402570
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
mov byte [esp + 0x20], 0
lea ecx, [esp + 0x10]
call fcn.00402570
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402570
mov eax, ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
Function at 0x4a2610
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x638070
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x7496c8]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
cmp dword [0x74e9dc], 0
je 0x4a2747
cmp dword [0x74f3b0], 0
jne 0x4a2676
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
cmp dword [0x74f3a4], 0
jne 0x4a2693
call fcn.004a1630
mov dword [0x74f29c], eax
mov dword [0x74f3a4], 1
cmp dword [0x74f29c], 0
jne 0x4a264d
mov esi, dword [esp + 0x30]
push esi
call fcn.004a1ff0
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x30]
add esp, 4
test eax, eax
jne 0x4a2703
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4a26ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4a2703
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
cmp dword [esp + 0x38], 0
jne 0x4a2728
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
push edi
push esi
push ebx
call fcn.004a1c20
add esp, 0xc
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebp, eax
test ebp, ebp
jne 0x4a2820
cmp dword [0x743d18], eax
jne 0x4a2820
push eax
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.00402a70
mov dword [esp + 0x30], ebp
push ebp
lea ecx, [esp + 0x24]
push esi
push ecx
call fcn.00402a70
mov byte [esp + 0x3c], 1
mov edx, dword [esp + 0x30]
push 0x3f
push edx
call fcn.00614820
add esp, 0x20
test eax, eax
jne 0x4a2801
mov eax, dword [esp + 0x14]
push 0x3f
push eax
call fcn.00614820
add esp, 8
test eax, eax
jne 0x4a2801
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, eax
mov byte [esp + 0x24], 0
lea ecx, [esp + 0x14]
call fcn.00402570
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00402570
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov byte [esp + 0x24], 0
lea ecx, [esp + 0x14]
call fcn.00402570
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00402570
mov eax, ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4a2840
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x635b98
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x7496c8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
cmp dword [0x74e9dc], 0
je 0x4a2970
cmp dword [0x74f3b0], 0
jne 0x4a2896
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
cmp dword [0x74f3a4], 0
jne 0x4a28b3
call fcn.004a1630
mov dword [0x74f29c], eax
mov dword [0x74f3a4], 1
cmp dword [0x74f29c], 0
je 0x4a28d9
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
mov esi, dword [esp + 0x20]
push esi
call fcn.004a1ff0
add esp, 4
test eax, eax
jne 0x4a2932
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4a291b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4a2932
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
cmp dword [esp + 0x24], 0
jne 0x4a2955
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
push esi
call fcn.004a1d50
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
mov edi, dword [esp + 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
test esi, esi
jne 0x4a29ca
cmp dword [0x743d18], eax
jne 0x4a29ca
push eax
lea edx, [esp + 0x10]
push edi
push edx
call fcn.00402a70
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x18]
push 0x3f
push eax
call fcn.00614820
add esp, 0x14
test eax, eax
jne 0x4a29b9
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00402570
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x4a29e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x635b98
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x7496c8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
cmp dword [0x74e9dc], 0
je 0x4a2b3d
cmp dword [0x74f3b0], 0
jne 0x4a2a40
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
cmp dword [0x74f3a4], 0
jne 0x4a2a5d
call fcn.004a1630
mov dword [0x74f29c], eax
mov dword [0x74f3a4], 1
cmp dword [0x74f29c], 0
je 0x4a2a6d
mov edx, dword [esp + 0x20]
push edx
jmp 0x4a2a1e
mov esi, dword [esp + 0x20]
push esi
call fcn.004a1ff0
add esp, 4
test eax, eax
jne 0x4a2ac7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4a2ab0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4a2aff
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
mov eax, dword [0x74f3b4]
test eax, eax
jne 0x4a2ad5
mov eax, 0x74f3b8
push eax
push esi
call fcn.0061874a
add esp, 8
test eax, eax
je 0x4a2ab0
mov eax, dword [0x74f3c0]
test eax, eax
jne 0x4a2af1
mov eax, 0x74f3c4
push eax
push esi
call fcn.0061874a
add esp, 8
test eax, eax
je 0x4a2ab0
cmp dword [esp + 0x24], 0
jne 0x4a2b22
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
push esi
call fcn.004a1e30
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
mov edi, dword [esp + 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov esi, edx
test esi, esi
jne 0x4a2ba7
cmp dword [0x743d18], edx
jne 0x4a2ba7
push edx
lea eax, [esp + 0x10]
push edi
push eax
call fcn.00402a70
mov dword [esp + 0x24], esi
mov ecx, dword [esp + 0x18]
push 0x3f
push ecx
call fcn.00614820
add esp, 0x14
test eax, eax
jne 0x4a2b96
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov esi, ecx
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00402570
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x4a2bc0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x635b98
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x7496c8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
cmp dword [0x74e9dc], 0
je 0x4a2cf5
cmp dword [0x74f3b0], 0
jne 0x4a2c18
mov eax, dword [esp + 0x20]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
cmp dword [0x74f3a4], 0
jne 0x4a2c35
call fcn.004a1630
mov dword [0x74f29c], eax
mov dword [0x74f3a4], 1
cmp dword [0x74f29c], 0
je 0x4a2c5d
mov ecx, dword [esp + 0x20]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
mov esi, dword [esp + 0x20]
push esi
call fcn.004a1ff0
add esp, 4
test eax, eax
jne 0x4a2cb7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4a2ca0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4a2cb7
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
cmp dword [esp + 0x24], 0
jne 0x4a2cda
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
push esi
call fcn.004a1f10
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
mov edi, dword [esp + 0x20]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
test esi, esi
jne 0x4a2d52
cmp dword [0x743d18], eax
jne 0x4a2d52
push eax
lea edx, [esp + 0x10]
push edi
push edx
call fcn.00402a70
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x18]
push 0x3f
push eax
call fcn.00614820
add esp, 0x14
test eax, eax
jne 0x4a2d41
mov ecx, dword [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00402570
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x4a4300
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x642008
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x7496c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 4], 0
call fcn.0044ac80
mov ecx, dword [0x74ea0c]
test ecx, ecx
je 0x4a44d2
lea esi, [ebx + 8]
mov dword [ebp - 0x14], esi
mov eax, dword [esi]
lea edx, [ebp - 0x18]
push edx
push 0
push 0
push 0
push eax
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call edi
test eax, eax
jne 0x4a4472
mov eax, dword [ebx + 4]
test eax, eax
je 0x4a437b
push eax
call fcn.005e76a7
add esp, 4
mov dword [ebx + 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4a44d2
inc eax
push eax
call fcn.005e76b2
add esp, 4
mov dword [ebx + 4], eax
test eax, eax
je 0x4a44d2
mov esi, dword [esi]
lea ecx, [ebp - 0x18]
push ecx
push eax
push 0
push 0
push esi
mov edx, dword [0x74ea0c]
push edx
call edi
test eax, eax
mov eax, dword [ebx + 4]
je 0x4a43d3
push eax
call fcn.005e76a7
add esp, 4
mov dword [ebx + 4], 0
jmp 0x4a44d2
push 0x66b000
push eax
call fcn.006148e0
add esp, 8
test eax, eax
jne 0x4a4413
mov eax, dword [ebx + 4]
push 0x66afe0
push eax
call fcn.006148e0
add esp, 8
test eax, eax
jne 0x4a4413
mov eax, dword [ebx + 4]
push 0x66b420
push eax
call fcn.006148e0
add esp, 8
test eax, eax
je 0x4a44d2
mov eax, dword [ebx + 4]
push eax
lea ecx, [ebp - 0x14]
call fcn.004030c0
mov byte [ebp - 4], 1
push 0x66b96c
push 0x66b000
lea ecx, [ebp - 0x14]
call fcn.00402c10
push 0x66b96c
push 0x66b420
lea ecx, [ebp - 0x14]
call fcn.00402c10
push 0x66b96c
push 0x66afe0
lea ecx, [ebp - 0x14]
call fcn.00402c10
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, ebx
call fcn.004a3ce0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402570
jmp 0x4a44d2
push str.ExceptionServers
push esi
call fcn.00421ed0
add esp, 8
test al, al
je 0x4a44d2
push 0x84
call fcn.005e76b2
add esp, 4
mov dword [ebx + 4], eax
test eax, eax
je 0x4a44d2
mov ecx, 0x21
mov esi, str..update.microsoft.com_download.windowsupdate.com_.download.windowsupdate.com_siteseal.thawte.com_ecom.cimetz.com_.voice2page.com
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ebx, dword [ebx + 4]
mov eax, ebx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a44b0
sub eax, edx
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx]
inc eax
push eax
push ebx
push 1
push 0
push ecx
mov eax, dword [0x74ea0c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], 0xffffffff
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 0x4a77a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
mov al, byte [esi]
mov dword [esp + 0xc], ecx
mov cl, 0x22
xor ebp, ebp
push edi
cmp al, cl
je 0x4a77bd
cmp al, 0x27
jne 0x4a77ce
mov ebx, dword [esp + 0x20]
inc esi
mov cl, al
mov ebp, 1
sub ebx, 2
jmp 0x4a77d2
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
movsx eax, cl
push edi
push eax
mov dword [esp + 0x1c], eax
call fcn.00619067
mov eax, dword [esp + 0x30]
push edi
push eax
call fcn.00618f58
add esp, 0x10
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push ebx
push esi
call fcn.004a7750
test eax, eax
je 0x4a7822
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push edi
sub ecx, eax
push ecx
push 1
push eax
call fcn.00615dc5
add esp, 0x10
add esi, ebx
test ebp, ebp
je 0x4a7829
inc esi
mov edx, dword [esp + 0x14]
push edi
push edx
call fcn.00619067
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x10

Function at 0x4a7d70
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x6424a8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x7496c8]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
push 8
call fcn.005e7678
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4a7ed8
cmp dword [0x743d18], 0
push 0
je 0x4a7dd1
mov eax, dword [esp + 0x2c]
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
jmp 0x4a7e18
mov ecx, dword [esp + 0x2c]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.00402a70
add esp, 0xc
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x28]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.00402570
cmp edi, 0xffffffff
je 0x4a7e41
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a7e4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4a7e4f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.005e76a7
add esp, 4
jmp 0x4a7ed8
cmp dword [esp + 0x10], 0
ja 0x4a7e3a
test esi, esi
je 0x4a7e3a
push esi
call fcn.005e76b2
add esp, 4
mov dword [ebx], eax
test eax, eax
jne 0x4a7e7b
push ebx
call fcn.005e76a7
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4a7ed8
push esi
push 0
push eax
call fcn.00613900
mov eax, dword [ebx]
add esp, 0xc
push 0
lea edx, [esp + 0x18]
push edx
push esi
push eax
push edi
mov dword [ebx + 4], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4a7ec7
cmp dword [esp + 0x14], 0
jbe 0x4a7ec7
mov eax, ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 4
mov ecx, dword [ebx]
push ecx
call fcn.005e76a7
push ebx
call fcn.005e76a7
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 4
Function at 0x4a8230
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x64e1a8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x7496c8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 8]
call fcn.00402500
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
lea edx, [esp + 0x10]
push str._d__URL_s
push edx
call fcn.00402f80
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
add esp, 0x10
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
mov ecx, esi
call fcn.004a77a0
mov esi, eax
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 8]
call fcn.00402570
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x14