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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5793b8
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x5fb61c]
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 esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x244], esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov eax, 1
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x238], ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x238]
push eax
push 0x20019
push ebx
push str.SoftwareKingsoftOfficewpscloudsvr_refs
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43e095
push 0x206
lea edx, [ebp - 0x216]
xor ecx, ecx
push ebx
push edx
xor edi, edi
mov dword [ebp - 0x23c], 0x104
mov word [ebp - 0x218], cx
call fcn.005336c0
mov edx, dword [ebp - 0x238]
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x218]
push ecx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x43e095
jmp 0x43dff0
xor eax, eax
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x43e012
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x234]
call fcn.00437a20
lea edx, [ebp - 0x234]
push edx
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.0043de20
cmp dword [ebp - 0x220], 8
mov byte [ebp - 4], 1
jb 0x43e062
mov eax, dword [ebp - 0x234]
push eax
call int.0042bfd0
add esp, 4
mov eax, dword [ebp - 0x238]
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x23c]
push ecx
lea edx, [ebp - 0x218]
push edx
inc edi
push edi
push eax
mov dword [ebp - 0x23c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x43dff0
mov eax, dword [ebp - 0x238]
cmp eax, ebx
je 0x43e0ab
cmp eax, 0xffffffff
je 0x43e0ab
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
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.005332ca
mov esp, ebp
pop ebp
ret
Function at 0x43e550
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x579490
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x5fb61c]
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 esi, dword [ebp + 8]
lea edi, [esi + 0x1c]
push edi
call fcn.0043e460
push edi
call fcn.0043e2b0
add esp, 8
test al, al
je 0x43e5a2
push esi
call fcn.0043d860
add esp, 4
jmp 0x43e6b4
push 0xb
xor eax, eax
xor ebx, ebx
push str.wpscloudsvr
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
call fcn.00437a20
sub esp, 0x1c
mov ecx, esp
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x6c], esp
push edx
push ecx
mov dword [ebp - 4], ebx
call fcn.0043d5e0
lea eax, [ebp - 0x48]
add esp, 8
push eax
call fcn.0043d1d0
add esp, 0x20
mov esi, 8
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], esi
jb 0x43e5f7
mov eax, dword [eax]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x6c], esp
push 0xffffffffffffffff
push ebx
xor edx, edx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push edi
mov word [ecx], dx
call fcn.0042e5c0
lea eax, [ebp - 0x64]
push eax
call fcn.0043d1d0
add esp, 0x20
cmp dword [eax + 0x14], esi
jb 0x43e62b
mov eax, dword [eax]
push eax
call fcn.005347c1
add esp, 8
cmp eax, ebx
setne byte [ebp - 0x65]
cmp dword [ebp - 0x50], esi
jb 0x43e64b
mov ecx, dword [ebp - 0x64]
push ecx
call int.0042bfd0
add esp, 4
xor edx, edx
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], dx
cmp dword [ebp - 0x34], esi
jb 0x43e66c
mov eax, dword [ebp - 0x48]
push eax
call int.0042bfd0
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x18], esi
jb 0x43e68d
mov edx, dword [ebp - 0x2c]
push edx
call int.0042bfd0
add esp, 4
cmp byte [ebp - 0x65], bl
je 0x43e6b2
cmp dword [edi + 0x14], esi
jb 0x43e699
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x43e6b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
shl eax, 0x10
or eax, 5
jmp 0x43e6b4
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.005332ca
mov esp, ebp
pop ebp
ret
Function at 0x43e6d0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, ecx
push ebx
mov ebx, dword [eax]
cmp ebx, 0x10
je 0x43e6e9
cmp ebx, 0x20
jne 0x43e8da
shr ebx, 2
mov dword [ebp - 8], ebx
mov edx, 4
cmp ebx, 4
jl 0x43e6fb
mov edx, ebx
push edi
mov edi, dword [ebp + 8]
lea edx, [edx*4 + 0x1c]
mov dword [ebp - 4], edx
test edi, edi
je 0x43e8d9
mov dword [edi], 0x10
mov dword [edi + 4], edx
add edi, 8
xor edx, edx
push esi
test ebx, ebx
jle 0x43e759
add eax, 5
jmp 0x43e730
movzx ecx, byte [eax - 1]
movzx esi, byte [eax]
shl ecx, 8
or ecx, esi
movzx esi, byte [eax + 1]
shl ecx, 8
or ecx, esi
movzx esi, byte [eax + 2]
shl ecx, 8
or ecx, esi
mov dword [edi + edx*4], ecx
inc edx
add eax, 4
cmp edx, ebx
jl 0x43e730
mov ecx, dword [edi + edx*4 - 4]
mov esi, ebx
cmp ebx, dword [ebp - 4]
jge 0x43e84d
mov dword [ebp + 8], 0
mov dword [ebp - 0xc], edi
mov eax, esi
cdq
idiv ebx
test edx, edx
jne 0x43e7dc
mov eax, dword [ebp + 8]
mov edx, ecx
shr edx, 0x10
and edx, 0xff
movzx ebx, byte [edx + 0x595fa8]
cdq
idiv dword [ebp - 8]
mov edx, ecx
shr edx, 8
and edx, 0xff
movzx eax, byte [eax + 0x595f88]
xor ebx, eax
movzx eax, byte [edx + 0x595fa8]
shl ebx, 8
mov edx, ecx
xor ebx, eax
and edx, 0xff
movzx eax, byte [edx + 0x595fa8]
shl ebx, 8
shr ecx, 0x18
movzx ecx, byte [ecx + 0x595fa8]
xor ebx, eax
shl ebx, 8
xor ecx, ebx
mov ebx, dword [ebp - 8]
jmp 0x43e832
cmp ebx, 6
jle 0x43e832
cmp edx, 4
jne 0x43e832
mov edx, ecx
shr edx, 0x10
and edx, 0xff
movzx eax, byte [edx + 0x595fa8]
mov edx, ecx
shr edx, 0x18
movzx edx, byte [edx + 0x595fa8]
shl edx, 8
xor eax, edx
mov edx, ecx
shr edx, 8
and edx, 0xff
movzx edx, byte [edx + 0x595fa8]
shl eax, 8
and ecx, 0xff
movzx ecx, byte [ecx + 0x595fa8]
xor eax, edx
shl eax, 8
xor ecx, eax
mov eax, dword [ebp - 0xc]
xor ecx, dword [eax]
inc dword [ebp + 8]
mov dword [edi + esi*4], ecx
inc esi
add eax, 4
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 4]
jl 0x43e772
xor edx, edx
dec esi
js 0x43e8d8
mov eax, dword [ebp - 4]
lea ecx, [edi + eax*4]
mov dword [ebp + 8], ecx
nop
mov ecx, dword [edi + esi*4]
cmp edx, 4
jl 0x43e8c7
cmp esi, 4
jl 0x43e8c7
mov eax, ecx
shr eax, 0x10
and eax, 0xff
movzx eax, byte [eax + 0x595fa8]
mov eax, dword [eax*4 + 0x5975a8]
mov ebx, ecx
shr ebx, 8
and ebx, 0xff
movzx ebx, byte [ebx + 0x595fa8]
xor eax, dword [ebx*4 + 0x5979a8]
mov ebx, ecx
shr ebx, 0x18
movzx ebx, byte [ebx + 0x595fa8]
xor eax, dword [ebx*4 + 0x5971a8]
and ecx, 0xff
movzx ecx, byte [ecx + 0x595fa8]
xor eax, dword [ecx*4 + 0x597da8]
jmp 0x43e8c9
mov eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
add ecx, 4
inc edx
dec esi
mov dword [ebp + 8], ecx
jns 0x43e860
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x43f080
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x43f1e9
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x43f1e9
mov eax, 0xaaaaaaab
mul ebx
shr edx, 1
lea ecx, [edx + edx*2]
mov eax, ebx
sub eax, ecx
mov ecx, 0
setne cl
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], eax
add ecx, edx
add ecx, ecx
add ecx, ecx
mov dword [ebp - 0xc], ecx
test esi, esi
jne 0x43f0d3
pop esi
pop edi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
test edx, edx
je 0x43f14e
add edi, 2
mov dword [ebp - 4], edx
nop
movzx edx, byte [edi - 2]
shr edx, 2
movzx eax, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], al
movzx edx, byte [edi - 2]
movzx eax, byte [edi - 1]
and edx, 3
shr eax, 4
shl edx, 4
or edx, eax
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 1], dl
movzx eax, byte [edi - 1]
movzx edx, byte [edi]
and eax, 0xf
add eax, eax
add eax, eax
shr edx, 6
or eax, edx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 2], al
movzx edx, byte [edi]
and edx, 0x3f
movzx eax, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 3], al
add ecx, 4
add edi, 3
dec dword [ebp - 4]
jne 0x43f0e0
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 8]
dec eax
je 0x43f1b0
dec eax
jne 0x43f1df
movzx eax, byte [edi + ebx - 2]
lea edx, [edi + ebx - 2]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], al
movzx edx, byte [edx]
movzx eax, byte [edi + ebx - 1]
lea ebx, [edi + ebx - 1]
and edx, 3
shl edx, 4
shr eax, 4
or edx, eax
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 1], dl
movzx eax, byte [ebx]
and eax, 0xf
movzx edx, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov eax, dword [ebp - 0xc]
mov byte [ecx + esi + 2], dl
mov byte [ecx + esi + 3], 0x3d
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, byte [edi + ebx - 1]
shr eax, 2
movzx edx, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], dl
movzx eax, byte [edi + ebx - 1]
and eax, 3
shl eax, 4
movzx edx, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 1], dl
mov word [ecx + esi + 2], 0x3d3d
mov eax, dword [ebp - 0xc]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x442860
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsWindows_Error_ReportingRuntimeExceptionHelperModules
push 0x80000002
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [ebp - 4]
test eax, eax
je 0x4428ae
mov ecx, dword [ebp + 8]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp - 4]
test eax, eax
je 0x4428ae
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x442ac0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x579a00
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5fb61c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
mov dword [ebp - 4], 0
xor esi, esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x442be4
mov ecx, dword [ebp + 8]
push 0x591ff8
push str.GetWinSpecialFoldersFromReg
push str.Support
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.0045a680
mov eax, dword [ebp - 0x10]
push str.True
push eax
call fcn.005347c1
add esp, 0x1c
test eax, eax
jne 0x442b35
lea esi, [eax + 1]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x442b58
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x442be4
mov ebx, dword [ebp + 0x14]
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
mov edi, ecx
push edi
call fcn.00534575
mov esi, eax
add esp, 4
test esi, esi
je 0x442b94
push edi
push 0
push esi
call fcn.005336c0
add esp, 0xc
jmp 0x442b96
xor esi, esi
mov eax, dword [ebp + 0xc]
push 0xa
push 0xffffffffffffffff
push ebx
push esi
push eax
xor ecx, ecx
call fcn.00442550
mov edi, eax
add esp, 0x14
test edi, edi
je 0x442bc3
push edi
push str._KFuncAux::GetSpecialFolders__GetWinSpecialFoldersFromReg_Failed:_0x_08x.
push 0x5ff5f8
call fcn.00477930
add esp, 0xc
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, ebx
mov edx, esi
call fcn.004424f0
push esi
call fcn.00534304
xor edx, edx
add esp, 8
test edi, edi
sete dl
mov esi, edx
jmp 0x442bf8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push 0
push ecx
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [ebp - 4], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x442c1a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
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 0x4430d0
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5779c8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5fb61c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4431d9
mov edi, dword [ebp + 0xc]
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4431ed
cmp dword [ebp + 0x10], eax
je 0x4431d9
mov eax, dword [0x5fcb00]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcb00
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push edi
lea eax, [ebp - 0x10]
push str._s_d__x
push eax
call fcn.004237a0
mov esi, dword [ebp - 0x10]
push esi
push edi
call fcn.00535269
add esp, 0x18
test eax, eax
jne 0x4431b6
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 4
push 0
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4431a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4431d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 1
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 0x443290
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x579a28
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5fb61c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x4433d8
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x443339
mov eax, dword [0x5fcb00]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcb00
call edx
add eax, 0x10
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
mov eax, dword [esi]
push eax
lea ecx, [ebp + 8]
push str._s_d__x
push ecx
call fcn.004237a0
mov eax, dword [esi]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x44334f
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x443339
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0xc], 0
je 0x4433b2
mov edi, dword [ebp + 8]
mov eax, dword [esi]
push edi
push eax
call fcn.00535269
add esp, 8
push 4
push 0
test eax, eax
jne 0x443392
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp + 8]
test eax, eax
jne 0x443397
call fcn.00478740
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [esi]
push esi
jmp 0x44336d
call fcn.00478740
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4433d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4439a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x579b20
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5fb61c]
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 ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x40], eax
xor ecx, ecx
mov edi, 0x400
mov eax, edi
mov edx, 2
mul edx
seto cl
mov dword [ebp - 0x38], 0
neg ecx
or ecx, eax
push ecx
call fcn.00534575
mov esi, eax
mov dword [ebp - 0x38], esi
push 0x800
push 0
push esi
mov dword [ebp - 4], 0
call fcn.005336c0
add esp, 0x10
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0x30], edi
jb 0x443a27
mov eax, dword [ebx]
jmp 0x443a29
mov eax, ebx
mov edx, dword [ebp - 0x34]
lea ecx, [ebp - 0x30]
push ecx
push esi
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
jne 0x443ab6
add edi, 0x800
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00534575
add esp, 4
mov dword [ebp - 0x3c], eax
cmp eax, esi
je 0x443a7b
push esi
call fcn.00534304
mov esi, dword [ebp - 0x3c]
add esp, 4
mov dword [ebp - 0x38], esi
push 0
call fcn.00534304
lea eax, [edi + edi]
push eax
push 0
push esi
call fcn.005336c0
add esp, 0x10
lea ecx, [ebp - 0x30]
push ecx
push esi
push 0
push 0
mov ecx, ebx
mov dword [ebp - 0x30], edi
call fcn.0042d4b0
mov edx, dword [ebp - 0x34]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x443a44
xor eax, eax
mov word [ebp - 0x2c], ax
mov eax, esi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x443ad0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.00437a20
mov eax, dword [ebp - 0x2c]
mov ebx, 8
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], ebx
jae 0x443afd
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x40]
push eax
mov ecx, edi
call fcn.00422540
cmp dword [ebp - 0x18], ebx
jb 0x443b19
mov ecx, dword [ebp - 0x2c]
push ecx
call int.0042bfd0
add esp, 4
xor edx, edx
push esi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
call fcn.00534304
add esp, 4
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.005332ca
mov esp, ebp
pop ebp
ret
Function at 0x448000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
movzx ecx, word [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push edi
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x448022
pop edi
pop ebx
pop ebp
ret
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x44804c
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x44804c
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x448053
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 0x10]
lea edx, [esi + 1]
push edx
call fcn.00436d40
push esi
push ebx
push 0xffffffffffffffff
push eax
call fcn.00533641
mov ecx, dword [ebp + 0x10]
add esp, 0x10
push esi
call fcn.00436b00
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop esi
pop edi
mov eax, 1
pop ebx
pop ebp
ret
Function at 0x4486a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57a320
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5fb61c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
je 0x4487fd
mov edx, dword [0x5fcb00]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcb00
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov eax, dword [esi]
push ecx
push edx
push eax
lea ecx, [ebp - 0x10]
push str._s_d._s
push ecx
mov dword [ebp - 4], ebx
call fcn.004237a0
mov edx, dword [ebp - 0x10]
add esp, 0x14
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
cmp esi, 0xffffffff
je 0x4487c8
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x4487c8
push ebx
lea ecx, [ebp + 0x10]
push ecx
mov dword [ebp + 0x10], ebx
mov ebx, dword [ebp + 0xc]
push edi
lea edx, [edi + 0xa]
push edx
mov ecx, ebx
call fcn.00436d40
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp + 8], eax
test eax, eax
je 0x4487b1
cmp dword [ebp + 0x10], edi
jne 0x4487b1
push edi
mov ecx, ebx
call fcn.00436b00
mov byte [ebp - 4], 0
test esi, esi
je 0x448790
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x10]
call fcn.00478740
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx]
cmp dword [eax - 8], 0
jl 0x448813
mov dword [eax - 0xc], 0
mov eax, dword [ebx]
mov ebx, dword [ebp + 8]
mov byte [eax], 0
mov byte [ebp - 4], 0
test esi, esi
je 0x4487d7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4487fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0xc
push 0x80070057
call fcn.00421960
int3