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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4e52d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov edi, ecx
lea ecx, [ebp - 0x14]
push ecx
mov word [ebp - 0x14], ax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
xor ecx, ecx
lea eax, [ebp - 0x28]
mov dword [ebp - 8], ecx
push eax
lea ecx, [ebp - 0x14]
xor edx, edx
push ecx
mov dword [ebp - 0xc], edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
push 8
push 0x61c46800
push edx
push eax
call fcn.004961f0
mov esi, eax
mov eax, 4
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push str.InstallDate
push str.SoftwareBaofengStormPlayerConfigInstall
push SysReAllocStringLen
mov dword [ebp - 0x18], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ecx, dword [ebp - 0x18]
cmp esi, ecx
jb 0x401797
sub esi, ecx
add esi, 0x17
mov eax, 0xaaaaaaab
mul esi
shr edx, 4
push edx
jmp 0x4017ad
sub ecx, esi
add ecx, 0x17
mov eax, 0x19
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 0x1f
push ecx
push 0x4bb008
call fcn.00402360
mov ecx, dword [ebp - 4]
add esp, 8
pop edi
xor ecx, ebp
pop esi
call fcn.004912db
mov esp, ebp
pop ebp
ret
Function at 0x4017d0
Capabilities:
Check if file exists
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [0x4e52d0]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x212]
push ecx
mov word [ebp - 0x214], ax
call fcn.004950a0
add esp, 0xc
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x228]
push ecx
push str.InstallPath
push str.SoftwareBaofengPhoneAssistant
push SysReAllocStringLen
mov dword [ebp - 0x22c], 0x102
mov dword [ebp - 0x228], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40192e
push str..BFAssistantSvc.exe
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40192e
cmp byte [ebp + 8], 0
mov esi, str.__install
jne 0x40187f
mov esi, str.__uninstall
push 0x40
lea ecx, [ebp - 0x270]
push 0
push ecx
call fcn.004950a0
add esp, 0xc
xor eax, eax
xor edx, edx
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x274]
push ecx
push edx
push edx
push edx
push edx
push edx
push edx
mov word [ebp - 0x244], dx
push esi
lea edx, [ebp - 0x214]
push edx
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x274], 0x44
mov dword [ebp - 0x248], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40192e
mov eax, dword [ebp - 0x224]
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x224]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x220]
push edx
call esi
mov al, 1
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004912db
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
xor ecx, ebp
xor al, al
pop esi
call fcn.004912db
mov esp, ebp
pop ebp
ret
Function at 0x401e00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401e18
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401e4a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x401e46
cmp esi, eax
jae 0x401e4a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401e38
cmp esi, eax
jb 0x401e50
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x403370
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a97cb
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x4e52d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0
push 2
push 0
push 0
mov esi, ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4033e0
cmp byte [ebp + 8], 0
je 0x403418
push esi
call fcn.004035e0
add esp, 4
push 0
push 0
push 2
push 0
push 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x403418
lea eax, [ebp - 0x128]
push eax
mov dword [ebp - 0x128], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x124], 6
jb 0x403416
mov dword [ebp - method.CAccessRight.virtual_0], vtable.CAccessRight.0
mov dword [ebp - 4], 0
call fcn.00402bf0
mov eax, edi
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.004912db
mov esp, ebp
pop ebp
ret 4

Function at 0x403440
Capabilities:
Check os version
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a7f0b
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x4e52d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
test edi, edi
je 0x4034e8
lea eax, [ebp - 0x168]
push eax
mov dword [ebp - 0x168], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x164], 6
jb 0x4034e8
mov dword [ebp - method.CAccessRight.virtual_0], vtable.CAccessRight.0
xor ecx, ecx
push 0x3e
push ecx
lea edx, [ebp - 0x4e]
mov dword [ebp - 4], 0
push edx
mov word [ebp - 0x50], cx
call fcn.004950a0
add esp, 0xc
push 0x20
push str.Users
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0
lea ecx, [ebp - 0x50]
push ecx
push esi
call fcn.00402c50
add esp, 0xc
mov eax, 1
jmp 0x4034ea
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004912db
mov esp, ebp
pop ebp
ret
Function at 0x403660
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4d0ad8
push 0x498100
mov eax, dword fs:[0]
push eax
sub esp, 0x87c
mov eax, dword [0x4e52d0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
test esi, esi
je 0x4036f8
mov bl, 1
mov dword [ebp - 0x88c], 0xffffffff
push 0x4bb1a8
push esi
push 0x4bb17c
push 0x104
lea eax, [ebp - 0x634]
push eax
call fcn.00492772
add esp, 0x14
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x884]
push ecx
lea edx, [ebp - 0x634]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x88c], eax
cmp eax, 0xffffffff
jne 0x4036ff
mov dword [ebp - 4], 0xfffffffe
xor al, al
jmp 0x403848
mov edi, dword [ebp + 0xc]
cmp word [ebp - 0x858], 0x2e
je 0x4037ba
test byte [ebp - 0x884], 0x10
je 0x403754
lea eax, [ebp - 0x858]
push eax
push esi
push str._s_s_
push 0x104
lea ecx, [ebp - 0x42c]
push ecx
call fcn.00492772
xor edx, edx
mov word [ebp - 0x226], dx
push edi
lea eax, [ebp - 0x42c]
push eax
call fcn.00403660
add esp, 0x1c
mov bl, al
jmp 0x4037b4
lea ecx, [ebp - 0x858]
push ecx
push esi
push 0x4bb17c
push 0x104
lea edx, [ebp - 0x224]
push edx
call fcn.00492772
add esp, 0x14
xor eax, eax
mov word [ebp - 0x1e], ax
test edi, edi
je 0x403784
cmp edi, 1
jne 0x4037ba
lea ecx, [ebp - 0x224]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
mov byte [ebp - 0x885], bl
lea ecx, [ebp - 0x884]
push ecx
mov edx, dword [ebp - 0x88c]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x403702
mov eax, dword [ebp - 0x88c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x88c], 0xffffffff
test edi, edi
je 0x4037f6
cmp edi, 2
jne 0x40383f
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
mov byte [ebp - 0x885], bl
jmp 0x40383f
mov dword [ebp - 4], 0xfffffffe
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004912db
mov esp, ebp
pop ebp
ret
Function at 0x403aa0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a95d8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4e52d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403b1d
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, dword [ebp + 8]
and eax, 0xfffffffe
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x403b1d
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x10], esp
mov esi, esp
call fcn.004046f0
add eax, 0x10
mov dword [esi], eax
call fcn.00403870
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403b43
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 esi
mov esp, ebp
pop ebp
ret
Function at 0x403e90
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4adb60
mov eax, dword fs:[0]
push eax
sub esp, 0x878
mov eax, dword [0x4e52d0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
test edi, edi
jne 0x403ecf
xor eax, eax
jmp 0x403fc5
push 0x4bb1a8
push edi
push 0x4bb17c
lea eax, [ebp - 0x62c]
push 0x104
push eax
mov esi, 1
call fcn.00492772
add esp, 0x14
lea ecx, [ebp - 0x87c]
push ecx
lea edx, [ebp - 0x62c]
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x880], eax
cmp eax, 0xffffffff
je 0x403ec8
mov ebx, dword [ebp + 0xc]
cmp word [ebp - 0x850], 0x2e
je 0x403f6c
test byte [ebp - 0x87c], 0x10
je 0x403fe1
lea eax, [ebp - 0x850]
push eax
push edi
push str._s_s_
lea ecx, [ebp - 0x424]
push 0x104
push ecx
call fcn.00492772
lea eax, [ebp - 0x424]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x21e], dx
call fcn.00403e90
add esp, 0x1c
mov esi, eax
mov eax, dword [ebp - 0x880]
lea edx, [ebp - 0x87c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x403f1c
mov ecx, dword [ebp - 0x880]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
je 0x403f9a
cmp ebx, 2
jne 0x403fc3
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test esi, esi
jne 0x403fc3
push 4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
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 - 0x14]
xor ecx, ebp
call fcn.004912db
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x850]
push ecx
push edi
push 0x4bb17c
lea edx, [ebp - 0x21c]
push 0x104
push edx
call fcn.00492772
xor eax, eax
add esp, 0x14
mov word [ebp - 0x16], ax
test ebx, ebx
je 0x404015
cmp ebx, 1
jne 0x403f6c
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
test esi, esi
jne 0x403f6c
push ecx
mov ecx, esp
mov dword [ebp - 0x884], esp
push ecx
lea ecx, [ebp - 0x21c]
call fcn.00402120
call fcn.00403870
add esp, 4
jmp 0x403f6c
Function at 0x404780
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
xor eax, eax
cmp dword [ebp + 8], eax
push 4
lea ecx, [ebp + 8]
push ecx
push 4
setne al
push ebx
push edi
push SysReAllocStringLen
mov dword [ebp + 8], eax
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov esi, eax
cmp esi, 5
jne 0x4047e8
push SysReAllocStringLen
mov ecx, edi
mov dword [ebp - 4], vtable.CAccessPermission.0
call fcn.004052a0
test eax, eax
je 0x4047e8
push 4
lea edx, [ebp + 8]
push edx
push 4
push ebx
push edi
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push SysReAllocStringLen
mov ecx, edi
mov esi, eax
call fcn.00405380
test esi, esi
sete al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404800
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 4
lea eax, [ebp + 8]
push eax
push 4
push ebx
push esi
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov edi, eax
cmp edi, 5
jne 0x40485d
push SysReAllocStringLen
mov ecx, esi
mov dword [ebp - 4], vtable.CAccessPermission.0
call fcn.004052a0
test eax, eax
je 0x40485d
push 4
lea ecx, [ebp + 8]
push ecx
push 4
push ebx
push esi
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push SysReAllocStringLen
mov ecx, esi
mov edi, eax
call fcn.00405380
test edi, edi
sete al
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4048b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4048c0
mov ecx, dword [ebp + 8]
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push ecx
push edi
push ebx
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov esi, eax
cmp esi, 5
jne 0x404932
push ebx
mov ecx, edi
mov dword [ebp - 4], vtable.CAccessPermission.0
call fcn.004052a0
test eax, eax
je 0x404932
mov esi, dword [ebp + 0xc]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404905
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
mov eax, dword [ebp + 8]
push edx
push esi
push 1
push eax
push edi
push ebx
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push ebx
mov ecx, edi
mov esi, eax
call fcn.00405380
test esi, esi
sete al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404d90
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4e52d0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 5
jne 0x404dd0
mov eax, 1
cmp dword [ebp - 0x110], eax
je 0x404dd2
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004912db
mov esp, ebp
pop ebp
ret

Function at 0x404de0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4e52d0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x114]
cmp eax, 6
jbe 0x404e25
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004912db
mov esp, ebp
pop ebp
ret
jne 0x404e34
mov eax, 1
cmp dword [ebp - 0x110], eax
jae 0x404e36
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004912db
mov esp, ebp
pop ebp
ret

Function at 0x404e50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4e52d0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x114]
cmp eax, 6
jbe 0x404e95
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004912db
mov esp, ebp
pop ebp
ret
jne 0x404ea0
cmp dword [ebp - 0x110], 2
jae 0x404e85
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
call fcn.004912db
mov esp, ebp
pop ebp
ret

Function at 0x404eb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, 4
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0xc]
push edx
push str.CurrentMajorVersionNumber
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [ebp - 4], 0xa
setae al
mov esp, ebp
pop ebp
ret

Function at 0x4052a0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa1c
mov eax, dword [0x4e52d0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
add eax, 0x80000000
push edi
mov edi, ecx
cmp eax, 3
ja case.default.0x4052c8
jmp dword [eax*4 + 0x405364]
mov esi, str.CLASSES_ROOT
jmp 0x4052e9
mov esi, str.CURRENT_USER
jmp 0x4052e9
mov esi, str.MACHINE
jmp 0x4052e9
mov esi, str.USERS
lea eax, [ebp - 0xa18]
push eax
lea ecx, [ebp - 0x214]
push ecx
mov dword [ebp - 0xa18], 0x202
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push edi
push esi
push str._s_s
lea edx, [ebp - 0xa14]
push 0x800
push edx
call fcn.00492772
add esp, 0x14
push 0xf003f
lea eax, [ebp - 0x214]
push eax
push 2
lea edi, [ebp - 0xa14]
call fcn.004051a0
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004912db
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004912db
mov esp, ebp
pop ebp
ret 4
Function at 0x405380
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa1c
mov eax, dword [0x4e52d0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
add eax, 0x80000000
push edi
mov edi, ecx
cmp eax, 3
ja case.default.0x4053a8
jmp dword [eax*4 + 0x405440]
mov esi, str.CLASSES_ROOT
jmp 0x4053c9
mov esi, str.CURRENT_USER
jmp 0x4053c9
mov esi, str.MACHINE
jmp 0x4053c9
mov esi, str.USERS
lea eax, [ebp - 0xa18]
push eax
lea ecx, [ebp - 0x214]
push ecx
mov dword [ebp - 0xa18], 0x202
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push edi
push esi
push str._s_s
lea edx, [ebp - 0xa14]
push 0x800
push edx
call fcn.00492772
add esp, 0x14
push 2
lea eax, [ebp - 0x214]
push eax
push 3
lea edi, [ebp - 0xa14]
call fcn.004051a0
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004912db
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004912db
mov esp, ebp
pop ebp
ret 4
Function at 0x4092e0
Capabilities:
Check if file exists
Create directory
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac62f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4e52d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [edi], vtable.CLogEncryption.0
lea eax, [edi + 0x84]
mov dword [edi + 0xc4], eax
mov dword [edi + 4], 0x67452301
mov dword [edi + 8], 0xefcdab89
mov dword [edi + 0xc], 0x98badcfe
mov dword [edi + 0x10], 0x10325476
mov dword [edi + 0x14], 0xc3d2e1f0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [ebp - 4], 0
mov dword [edi + 0xc8], vtable.CBase64.0
mov dword [edi + 0xd0], vtable.CRSA.0
lea esi, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0040a260
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x10]
mov esi, 1
cmp dword [eax - 4], esi
jle 0x409393
mov ecx, dword [eax - 0xc]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.004021c0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4093c1
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], esi
jle 0x4093b6
mov eax, dword [eax - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.004021c0
mov eax, dword [ebp - 0x10]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4093e4
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
mov esp, ebp
pop ebp
ret 4

Function at 0x409400
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov dword [esi], vtable.CLogEncryption.0
mov dword [esi + 0xd0], vtable.CRSA.0
mov dword [esi + 0xc8], vtable.CBase64.0
xor eax, eax
test byte [ebp + 8], 1
mov dword [esi + 4], 0x67452301
mov dword [esi + 8], 0xefcdab89
mov dword [esi + 0xc], 0x98badcfe
mov dword [esi + 0x10], 0x10325476
mov dword [esi + 0x14], 0xc3d2e1f0
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
je 0x40945a
push esi
call fcn.004912d0
add esp, 4
mov eax, esi
pop esi
pop ebp
ret 4