joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a9716
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x20c], ax
mov ebx, ecx
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.004bf4f0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4a97a7
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadImageToMem_CreateFile_error:_d__path:_ws
push 0x55913c
call fcn.004a9ba2
add esp, 0x10
jmp 0x4a981b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push eax
push esi
push 2
push esi
push edi
mov dword [ebx + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebx], eax
test edi, edi
jne 0x4a97da
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFileByMem_CreateFileMapping_error:_d__path:_ws
jmp 0x4a9802
push dword [ebx + 8]
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebx + 4], eax
test eax, eax
jne 0x4a9811
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFileByMem_MapViewOfFile_error:_d__path:_ws
push 0x55913c
call fcn.004a9ba2
add esp, 0x10
jmp 0x4a9814
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc45f
mov esp, ebp
pop ebp
ret

Function at 0x4a9a1b
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 3
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4a9a46
xor eax, eax
jmp 0x4a9a61
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
push edi
cmove esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
ret 4
Function at 0x4a9a67
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, dword [ebp + 8]
mov ebx, ecx
lea edi, [ebp - 0xeb]
xor ecx, ecx
mov byte [ebp - 0xec], cl
stosd dword es:[edi], eax
push 0xc6
push ecx
mov dword [ebp - 0xd8], ecx
stosd dword es:[edi], eax
mov dword [ebp - 0xd4], ecx
mov dword [ebp - 0xd0], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov word [ebp - 0xcc], ax
lea eax, [ebp - 0xca]
push eax
call fcn.004bf4f0
push esi
call fcn.004241e6
add esp, 0x10
lea ecx, [ebx + 0x14]
push eax
push esi
call fcn.0042416d
mov ecx, ebx
call fcn.004a99ac
xor edi, edi
lea eax, [ebp - 0xec]
inc edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push edi
lea eax, [ebp - 0xec]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0xec]
mov dword [ebp - 0xd8], 0xc
mov dword [ebp - 0xd4], eax
lea eax, [ebx + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0xcc]
push str.GlobalBFD88F2D_0990_4de4_AD0F_764F5894389A__d
push eax
call fcn.004c05ea
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
lea eax, [ebp - 0xcc]
add esp, 0xc
push eax
push edi
push edi
lea eax, [ebp - 0xd8]
push eax
call esi
push 0
push 0
push edi
xor edi, edi
mov dword [ebx + 8], eax
push edi
call esi
mov dword [ebx + 0xc], eax
cmp dword [ebx + 8], edi
je 0x4a9b8d
test eax, eax
je 0x4a9b8d
push edi
push edi
push ebx
push 0x4a9d04
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [ebx + 0x10], eax
test eax, eax
setne cl
mov eax, ecx
jmp 0x4a9b8f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc45f
mov esp, ebp
pop ebp
ret 4

Function at 0x4a9d13
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
pop ebp
ret 8

Function at 0x4a9ee5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x4a9f15
push dword [esi + 4]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.004c2ccc
push dword [esi + 4]
push 2
push 1
push 0x50ca74
call fcn.004c2ccc
add esp, 0x20
pop esi
pop ebp
ret 8
Function at 0x4aadac
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor eax, eax
push eax
push 0x80
push 3
push eax
push 1
push SysReAllocString
push dword [ebp + 8]
mov dword [ebp - 8], eax
mov ebx, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x4aaedf
push esi
push edi
xor esi, esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp + 8], edi
cmp edi, 0x50
jb 0x4aaeb6
push edi
call fcn.004bb10a
pop ecx
push esi
mov ebx, eax
lea eax, [ebp - 0xc]
push eax
push edi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4aaeb8
cmp dword [ebp - 0xc], edi
jne 0x4aaeb8
mov edi, dword [ebp + 0xc]
mov esi, ebx
push 0x14
add edi, 4
pop ecx
rep movsd dword es:[edi], dword [esi]
cmp dword [ebx], 0x424b4c48
jne 0x4aaeb1
mov ecx, dword [ebp + 8]
cmp dword [ebx + 0x18], ecx
jne 0x4aaeb1
mov eax, dword [ebx + 0x24]
cmp eax, ecx
ja 0x4aaeb1
mov edx, dword [ebx + 0x28]
add eax, edx
cmp eax, ecx
ja 0x4aaeb1
xor edi, edi
inc edi
cmp dword [ebx + 0x2c], edi
jne 0x4aaeb1
lea eax, [edx + 1]
push eax
call fcn.004bb10a
push dword [ebx + 0x28]
mov esi, eax
mov eax, dword [ebx + 0x24]
add eax, ebx
push eax
push esi
call fcn.004beea0
mov al, byte [ebx + 0x30]
xor ecx, ecx
mov edx, dword [ebx + 0x28]
add esp, 0x10
mov byte [ebp + 0xb], al
mov eax, ecx
test edx, edx
jle 0x4aae9a
mov cl, byte [ebp + 0xb]
xor byte [eax + esi], cl
inc eax
cmp eax, edx
jl 0x4aae8f
mov ecx, dword [ebp - 8]
mov eax, dword [ebx + 0x28]
mov dword [ebp - 8], edi
mov byte [esi + eax], cl
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x54], esi
mov eax, dword [ebx + 0x28]
mov dword [ecx + 0x58], eax
jmp 0x4aaeb8
mov esi, dword [ebp - 4]
jmp 0x4aaeb8
mov esi, ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
jne 0x4aaed2
test esi, esi
je 0x4aaed2
push esi
call fcn.004bbf48
pop ecx
pop edi
pop esi
test ebx, ebx
je 0x4aaedf
push ebx
call fcn.004bbf48
pop ecx
mov eax, dword [ebp - 8]
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4ab01d
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x48], ebx
cmp dword [esi + 0x14], 8
jb 0x4ab047
mov eax, dword [esi]
jmp 0x4ab049
mov eax, esi
lea ecx, [ebp - 0x48]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x44], eax
test eax, eax
je 0x4ab111
push edi
push eax
call fcn.004bc592
mov edi, eax
mov dword [ebp - 0x58], edi
pop ecx
test edi, edi
je 0x4ab110
cmp dword [esi + 0x14], 8
jb 0x4ab07b
mov esi, dword [esi]
push edi
push dword [ebp - 0x44]
push dword [ebp - 0x48]
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4ab109
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], ebx
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], ebx
push eax
push 0x50c8fc
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4ab109
cmp dword [ebp - 0x4c], ebx
je 0x4ab109
mov eax, dword [ebp - 0x50]
push 0x3a
movzx ecx, word [eax + 0xa]
movzx ebx, word [eax + 8]
movzx edi, word [eax + 0xe]
movzx esi, word [eax + 0xc]
xor eax, eax
push eax
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x3e]
push eax
mov dword [ebp - 0x44], ecx
call fcn.004bf4f0
push esi
push edi
push ebx
push dword [ebp - 0x44]
lea eax, [ebp - 0x40]
push 0x50c710
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x40]
push eax
call fcn.00402df0
mov ecx, dword [ebp - 0x54]
add esp, 0x28
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00406500
mov edi, dword [ebp - 0x58]
mov bl, 1
push edi
call fcn.004bbf10
pop ecx
pop edi
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc45f
mov esp, ebp
pop ebp
ret 8
Function at 0x4ad429
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
xor edi, edi
push 0x208
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push edi
push eax
call fcn.004bf4f0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4ad4ea
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4ad47d
sub ecx, edx
sar ecx, 1
je 0x4ad4b2
cmp word [ebp + ecx*2 - 0x212], 0x5c
jne 0x4ad4b2
lea ecx, [ecx*2 - 2]
cmp ecx, 0x20a
jae 0x4ad4fa
xor eax, eax
mov word [ebp + ecx - 0x210], ax
push 0x6c
call fcn.00481491
mov esi, eax
pop ecx
test esi, esi
je 0x4ad4e4
push 0x160
sub esp, 0x18
lea eax, [ebp - 0x210]
mov ecx, esp
push eax
call fcn.004045f0
mov ecx, esi
call fcn.004accde
mov dword [0x55917c], eax
jmp 0x4ad4ea
mov dword [0x55917c], edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004bc45f
mov esp, ebp
pop ebp
ret
call fcn.004bfe6c
int3

Function at 0x4ade2c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x4adf13
test ebx, ebx
je 0x4adf13
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x4adf13
push 0x7ff
lea eax, [ebp - 0x803]
mov byte [ebp - 0x804], 0
push 0
push eax
call fcn.004bf4f0
add esp, 0xc
cmp edi, 0x800
ja 0x4adf13
lea eax, [ebp - 0x804]
push eax
push edi
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4adf13
and dword [ebp - 0x80c], 0
lea eax, [ebp - 0x80c]
and dword [ebp - 0x808], 0
push eax
lea eax, [ebp - 0x808]
push eax
push 0x50c8fc
lea eax, [ebp - 0x804]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4adf13
mov eax, dword [ebp - 0x808]
mov si, word [eax + 0xa]
mov dx, word [eax + 8]
mov cx, word [eax + 0xe]
mov ax, word [eax + 0xc]
movzx eax, ax
push eax
movzx eax, cx
push eax
movzx eax, dx
push eax
movzx eax, si
push eax
push 0x50c710
push dword [ebp + 0x10]
push ebx
call fcn.004c2ef4
add esp, 0x1c
mov al, 1
jmp 0x4adf15
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc45f
mov esp, ebp
pop ebp
ret
Function at 0x4adf26
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
test ebx, ebx
je 0x4adfe8
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4adfe8
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x4adfe8
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x4adfe8
mov dword [ebx], esi
mov dword [eax], esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ecx], esi
mov dword [edx], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4adfe8
push edi
push eax
call fcn.004bb10a
mov edi, eax
pop ecx
test edi, edi
je 0x4adfe7
push edi
push dword [ebp + 0xc]
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4adfe0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x50c8fc
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4adfe0
cmp dword [ebp - 8], esi
jbe 0x4adfdd
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov dword [ebx], eax
mov eax, dword [ecx + 0xc]
mov dword [edx], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ecx + 0x10]
mov dword [edx], eax
mov eax, dword [ecx + 0x14]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
xor esi, esi
inc esi
push edi
call fcn.004bbf48
pop ecx
pop edi
test esi, esi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ae1d3
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
lea edi, [ebp - 0x16]
mov word [ebp - 0x18], ax
stosd dword es:[edi], eax
push 0xa
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x18]
push eax
push str.LIEBAO_ENABLE_UPLOAD_DUMP
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp word [ebp - 0x18], 0x30
pop edi
setne al
xor ecx, ebp
call fcn.004bc45f
mov esp, ebp
pop ebp
ret
Function at 0x4ae7f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f43c8
mov eax, dword fs:[0]
push eax
mov eax, 0x1020
call fcn.004bf5a0
mov eax, dword [0x52de80]
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 - 0x102c], edi
call fcn.004955be
mov byte [edi + 0xc4], 0
xor ecx, ecx
mov dword [edi + 0xdc], 7
mov dword [edi + 0xd8], 0
mov dword [ebp - 4], 0
mov word [edi + 0xc8], cx
mov word [edi + 0xe0], cx
lea ecx, [edi + 0xe4]
push 6
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.h_lvse
mov byte [ebp - 4], 1
mov byte [ecx], 0
call fcn.004025a0
mov dword [ebp - 0x1024], 0
mov dword [ebp - 0x1020], 0
mov dword [ebp - 0x101c], 0
push 1
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push reloc.WS2_32.dll_accept
lea ecx, [ebp - 0x1024]
mov byte [ebp - 4], 3
mov dword [ebp - 0x1028], 0
call fcn.00425f7b
test eax, eax
jne 0x4aea60
mov esi, dword [ebp - 0x1024]
lea eax, [ebp - 0x1014]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
lea eax, [ebp - 0x1028]
mov dword [ebp - 0x1014], 4
push eax
lea eax, [ebp - 0x1018]
push eax
push 0
push str.ProxyEnable
push esi
call ebx
test eax, eax
jne 0x4aea66
cmp dword [ebp - 0x1018], 4
jne 0x4aea66
cmp dword [ebp - 0x1028], eax
je 0x4aea66
test esi, esi
je 0x4ae93e
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1024], 0
push 1
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push reloc.WS2_32.dll_accept
lea ecx, [ebp - 0x1024]
mov dword [ebp - 0x1020], 0
call fcn.00425f7b
test eax, eax
jne 0x4aea60
push 0xffe
push eax
mov word [ebp - 0x1010], ax
lea eax, [ebp - 0x100e]
push eax
call fcn.004bf4f0
mov esi, dword [ebp - 0x1024]
lea eax, [ebp - 0x1014]
add esp, 0xc
mov dword [ebp - 0x1014], 0x1000
push eax
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x1018]
push eax
push 0
push str.ProxyServer
push esi
call ebx
test eax, eax
jne 0x4aea66
mov eax, dword [ebp - 0x1018]
cmp eax, 1
je 0x4ae9ce
cmp eax, 2
jne 0x4aea66
mov ecx, dword [ebp - 0x1014]
test ecx, ecx
je 0x4ae9f2
test cl, 1
jne 0x4aea66
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x1012], 0
je 0x4ae9fb
jmp 0x4aea66
xor eax, eax
mov word [ebp - 0x1010], ax
shr ecx, 1
add ecx, ecx
cmp ecx, 0x1000
jae 0x4aea5b
xor eax, eax
mov word [ebp + ecx - 0x1010], ax
cmp word [ebp - 0x1010], ax
jne 0x4aea1e
xor ecx, ecx
jmp 0x4aea36
lea ecx, [ebp - 0x1010]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4aea27
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x1010]
push eax
lea ecx, [edi + 0xc8]
call fcn.00406500
cmp dword [edi + 0xd8], 0
je 0x4aea66
mov byte [edi + 0xc4], 1
jmp 0x4aea66
call fcn.004bfe6c
mov esi, dword [ebp - 0x1024]
test esi, esi
je 0x4aea71
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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 - 0x10]
xor ecx, ebp
call fcn.004bc45f
mov esp, ebp
pop ebp
ret
Function at 0x4aea90
Capabilities:
Access peb ldr_data
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f44c4
mov eax, dword fs:[0]
push eax
sub esp, 0x808
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 0x3c]
mov dword [esi], 0x500e40
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x50c78d
mov dword [ebp - 0x814], esi
mov byte [ecx], 0
call fcn.004025a0
lea ecx, [esi + 0x54]
mov dword [ebp - 4], 0
mov dword [ecx + 0x14], 0xf
push 0
mov dword [ecx + 0x10], 0
push 0x50c78d
mov byte [ecx], 0
call fcn.004025a0
lea ecx, [esi + 0x6c]
mov byte [ebp - 4], 1
mov dword [ecx + 0x14], 0xf
push 6
mov dword [ecx + 0x10], 0
push str.h_lvse
mov byte [ecx], 0
call fcn.004025a0
mov byte [esi + 0x84], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 0
mov byte [esi + 0x98], 0
mov byte [esi + 0x99], 0
mov byte [esi + 0x9a], 0
mov byte [esi + 0x9b], 0
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 0
mov dword [esi + 0xa8], 0
mov dword [esi + 0xac], 0
mov dword [esi + 0xb0], 0
mov dword [esi + 0xc8], 0xf
mov dword [esi + 0xc4], 0
mov byte [esi + 0xb4], 0
mov dword [esi + 0xe0], 0xf
mov dword [esi + 0xdc], 0
mov byte [esi + 0xcc], 0
mov dword [esi + 0xf8], 0xf
mov dword [esi + 0xf4], 0
mov byte [esi + 0xe4], 0
mov dword [esi + 0x110], 0xf
mov dword [esi + 0x10c], 0
mov byte [esi + 0xfc], 0
mov dword [esi + 0x128], 0xf
mov dword [esi + 0x124], 0
mov byte [esi + 0x114], 0
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x12c]
call fcn.004ae7f0
lea ecx, [esi + 0x228]
mov byte [ebp - 4], 0xb
call fcn.004aed30
lea eax, [esi + 0x324]
mov byte [ebp - 4], 0xc
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 0x810]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp byte [ebp - 0x810], 0
jne 0x4aeced
xor eax, eax
jmp 0x4aecff
lea eax, [ebp - 0x810]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4aecf6
sub eax, edx
push eax
lea eax, [ebp - 0x810]
push eax
lea ecx, [esi + 0xb4]
call fcn.004025a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bc45f
mov esp, ebp
pop ebp
ret
Function at 0x4af730
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x1c]
push ebx
xor ebx, ebx
push esi
mov dword [eax], ebx
cmp dword [ebp + 0x14], ebx
jne 0x4af742
int3
cmp byte [ebp + 0x10], bl
je 0x4af750
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x10], ebx
ja 0x4af750
int3
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x4af75b
mov eax, dword [eax]
push 0x50ca78
push eax
call fcn.004c1185
mov esi, eax
add esp, 8
test esi, esi
je 0x4af7f9
push edi
push 2
push 0
push esi
call fcn.004c16ad
push esi
call fcn.004c1ac0
push 0
push 0
push esi
mov edi, eax
call fcn.004c16ad
add esp, 0x1c
test edi, edi
jle 0x4af7ef
mov dl, byte [ebp + 0x10]
test dl, dl
je 0x4af7a8
mov ecx, dword [ebp + 0x1c]
lea eax, [edi + 0x18]
mov dword [ecx], eax
jmp 0x4af7af
mov eax, dword [ebp + 0x1c]
mov ecx, eax
mov dword [eax], edi
mov eax, dword [ebp + 0x18]
cmp eax, dword [ecx]
jb 0x4af7ef
test dl, dl
je 0x4af7db
mov ebx, dword [ebp + 0x14]
push 0x18
push ebx
push edi
push dword [ebp + 0xc]
call fcn.004af800
push esi
push edi
lea eax, [ebx + 0x18]
push 1
push eax
call fcn.004c1572
add esp, 0x20
jmp 0x4af7ea
push esi
push edi
push 1
push dword [ebp + 0x14]
call fcn.004c1572
add esp, 0x10
mov ebx, 1
push esi
call fcn.004c0ffe
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

Function at 0x4afa70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test edi, edi
jne 0x4afa82
int3
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
mov edx, esi
mov ecx, dword [eax]
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x4afaa2
int3
xor ebx, ebx
cmp ecx, esi
je 0x4afab2
add ebx, dword [ecx + 0x10]
add ecx, 0x18
cmp ecx, esi
jne 0x4afaa8
test bl, 7
je 0x4afac1
shr ebx, 3
lea ebx, [ebx*8 + 8]
push ebx
call fcn.004bc592
push ebx
mov esi, eax
push 0
push esi
call fcn.004bf4f0
mov ecx, dword [ebp - 4]
add esp, 0x10
push ebx
push esi
push dword [ebp + 8]
call fcn.004afbd0
push edi
push ebx
push 1
push esi
call fcn.004c2ccc
push edi
call fcn.004c386f
push esi
call fcn.004bbf10
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4afb10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4718
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x52de80]
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, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x4afbaf
cmp dword [ebx + 0x68], 0x10
lea edi, [ebx + 0x54]
jb 0x4afb54
mov ecx, dword [edi]
jmp 0x4afb56
mov ecx, edi
push eax
push dword [ebx + 0x64]
push 1
push ecx
call fcn.004c2ccc
push dword [ebp - 0x2c]
mov esi, eax
call fcn.004c386f
add esp, 0x14
cmp esi, 8
je 0x4afbaf
push 0x50c78d
lea ecx, [ebp - 0x28]
call fcn.00401f90
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
push edi
lea eax, [ebx + 0x3c]
mov ecx, ebx
push eax
lea eax, [ebp - 0x28]
push eax
push 6
call fcn.004b4a90
cmp dword [ebp - 0x14], 0x10
jb 0x4afbaf
push dword [ebp - 0x28]
call fcn.004814b9
add esp, 4
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.004bc45f
mov esp, ebp
pop ebp
ret 4