joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c790
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x47a160
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4a5eb0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push eax
push ecx
push str.CDeviceManager::UploadFileToPc
push str._s_source_object_ID:__s__target_path:__s.
mov byte [esp + 0x40], 3
call fcn.00403170
add esp, 0x10
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x20]
push ecx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
mov esi, esp
push eax
mov dword [esp + 0x2c], ebx
call fcn.004014f0
mov ecx, dword [esp + 0x54]
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00464bb0
mov esi, eax
cmp esi, ebx
jge 0x42c843
mov eax, dword [esp + 0x14]
mov byte [esp + 0x30], 2
cmp eax, ebx
je 0x42c8cc
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x42c8cc
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x14]
push ecx
push 0x1001
push edx
call dword [sym.imp.SHLWAPI.dll_SHCreateStreamOnFileW]
mov esi, eax
cmp esi, ebx
jl 0x42c8b7
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
mov ecx, edi
call fcn.0042c6a0
mov esi, eax
cmp esi, ebx
jl 0x42c8b7
cmp dword [esp + 0x10], ebx
je 0x42c89b
push ebx
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.ATL90.DLL_Ordinal_30]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push edx
push eax
push str.CDeviceManager::UploadFileToPc
push str._s_Succeeded____object_ID:__s__target_path:__s.
call fcn.00403170
add esp, 0x10
mov eax, dword [esp + 0x14]
mov byte [esp + 0x30], 2
cmp eax, ebx
je 0x42c8cc
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov byte [esp + 0x30], 1
cmp eax, ebx
je 0x42c8e1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x30], bl
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c905
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x30], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c929
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret 0xc
Function at 0x42edc0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [0x4a60c0]
test eax, eax
je 0x42edf3
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42edf2
mov eax, dword [0x4a60c4]
mov ecx, dword [esp + 4]
mov edx, dword [0x4a6180]
push eax
mov eax, dword [0x4a60c0]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
ret
mov dword [esp + 4], str.No_m_hNewDeviceHandler
jmp fcn.00403170
Function at 0x4353d0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x47d888
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a5eb0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [esp + 0x28]
xor ebx, ebx
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], ebx
call fcn.00406300
mov ecx, dword [esp + 0x28]
push 0x481880
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.MSVCR90.dll__wfopen_s]
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, ebx
je 0x435452
mov esi, dword [sym.imp.MSVCR90.dll_fseek]
push 2
push ebx
push eax
call esi
add esp, 0xc
cmp eax, ebx
je 0x435481
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x435452
push eax
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43547a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x435581
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.MSVCR90.dll_ftell]
mov edx, dword [esp + 0x18]
push ebx
push ebx
push edx
mov edi, eax
call esi
lea eax, [edi + 2]
push eax
call fcn.00467b98
mov ecx, dword [esp + 0x28]
push ecx
push edi
mov esi, eax
push 1
push esi
call dword [sym.imp.MSVCR90.dll_fread]
mov byte [eax + esi], 0
mov byte [eax + esi + 1], 0
mov al, byte [esi]
add esp, 0x24
cmp al, 0xff
jne 0x4354d5
cmp byte [esi + 1], 0xfe
jne 0x4354d5
lea edx, [esi + 2]
push edx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
jmp 0x43553a
cmp al, 0xef
jne 0x435534
cmp byte [esi + 1], 0xbb
jne 0x435534
cmp byte [esi + 2], 0xbf
jne 0x435534
push ebx
push ebx
push 0xffffffffffffffff
lea edi, [esi + 3]
push edi
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ebp, [eax + 1]
xor ecx, ecx
mov eax, ebp
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00467b98
add esp, 4
push ebp
mov ebx, eax
push ebx
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
jmp 0x43553a
push esi
call fcn.00467290
push esi
mov edi, eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
je 0x435557
push eax
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43557f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x446fa0
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
mov edx, dword [esp + 4]
push ebp
push esi
xor eax, eax
xor ecx, ecx
xor esi, esi
mov ebp, edx
cmp byte [edx], al
je 0x44703c
push ebx
push edi
mov edi, dword [esp + 0x18]
lea esp, [esp]
movsx edx, byte [ebp]
mov edx, dword [edx*4 + 0x4a2238]
cmp edx, 0xffffffff
je 0x447033
cmp esi, 3
ja case.default.0x446fd5
jmp dword [esi*4 + 0x447040]
mov esi, 1
jmp case.default.0x446fd5
cmp eax, dword [esp + 0x1c]
jge 0x446ffb
mov ebx, edx
sar ebx, 4
add cl, cl
and bl, 3
add cl, cl
or bl, cl
mov byte [eax + edi], bl
inc eax
mov esi, 2
jmp case.default.0x446fd5
cmp eax, dword [esp + 0x1c]
jge 0x447019
mov ebx, edx
sar ebx, 2
and bl, 0xf
shl cl, 4
or bl, cl
mov byte [eax + edi], bl
inc eax
mov esi, 3
jmp case.default.0x446fd5
cmp eax, dword [esp + 0x1c]
jge 0x44702f
shl cl, 6
or cl, dl
mov byte [eax + edi], cl
inc eax
xor esi, esi
mov ecx, edx
inc ebp
cmp byte [ebp], 0
jne 0x446fc0
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x44bb80
Capabilities:
Get disk information

Disassembly:
sub esp, 0x204
mov eax, dword [0x4a5eb0]
xor eax, esp
mov dword [esp + 0x200], eax
mov ecx, dword [ecx + 4]
push 0
push 0
push 0
push 0
push 0
push 0x1fe
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.00475d76
add esp, 0x204
ret

Function at 0x44bde0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x47c380
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x4a5eb0]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov eax, dword [0x4a5eb0]
xor eax, esp
push eax
lea eax, [esp + 0x218]
mov dword fs:[0], eax
mov esi, dword [esp + 0x228]
mov dword [esp + 8], 0
mov ecx, dword [ecx + 8]
mov edx, dword [esp + 0x22c]
push ecx
mov ecx, dword [esp + 0x234]
push 0x208
lea eax, [esp + 0x14]
push eax
push 0
push ecx
push edx
mov dword [esp + 0x238], 1
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00406300
mov eax, dword [esp + 0x22c]
add eax, 0xfffffff0
mov byte [esp + 0x220], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44be8f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x230]
add eax, 0xfffffff0
mov dword [esp + 0x220], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44bebd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x218]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00475d76
add esp, 0x21c
ret 0xc
Function at 0x44d510
Capabilities:
Check os version

Disassembly:
sub esp, 0x128
mov eax, dword [0x4a5eb0]
xor eax, esp
mov dword [esp + 0x124], eax
push ebx
push ebp
push esi
push str.IsWow64Process
xor ebx, ebx
push str.kernel32
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x44d558
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
push edi
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x24], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov edx, 1
cmp eax, edx
jne 0x44d634
cmp edi, 4
jne 0x44d634
cmp ecx, ebx
jne 0x44d634
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], ebx
cmp eax, edx
jne 0x44d656
cmp edi, 4
jne 0x44d656
cmp ecx, 0x5a
jne 0x44d656
mov dword [esp + 0x18], edx
xor ebp, ebp
cmp eax, 2
jne 0x44d5d6
cmp edi, 4
jne 0x44d677
cmp ecx, ebx
jne 0x44d677
mov ebx, edx
xor esi, esi
cmp eax, 2
jne 0x44d5ea
cmp edi, 5
jne 0x44d5ea
cmp ecx, edx
je 0x44d698
xor edx, edx
cmp eax, 2
jne 0x44d698
cmp edi, 5
jne 0x44d698
cmp ecx, eax
jne 0x44d698
lea ecx, [edx + 1]
xor eax, eax
cmp dword [esp + 0x14], 0
pop edi
je 0x44d6b4
pop esi
pop ebp
mov eax, 0xb
pop ebx
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.00475d76
add esp, 0x128
ret
mov dword [esp + 0x1c], ebx
cmp eax, edx
jne 0x44d59a
cmp edi, 4
jne 0x44d59a
cmp ecx, 0xa
jne 0x44d59a
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ebx
cmp eax, 2
jne 0x44d5bc
cmp edi, 3
jne 0x44d5bc
cmp ecx, 0x33
jne 0x44d5bc
mov ebp, edx
cmp eax, 2
jne 0x44d5d6
cmp edi, 5
jne 0x44d5d6
test ecx, ecx
jne 0x44d5d6
mov esi, edx
jmp 0x44d5ea
xor ecx, ecx
cmp eax, 2
jne 0x44d609
cmp edi, 6
jne 0x44d609
lea eax, [ecx + 1]
jmp 0x44d60b
cmp dword [esp + 0x18], 0
je 0x44d6d8
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.00475d76
add esp, 0x128
ret
cmp dword [esp + 0xc], 0
je 0x44d6fc
pop esi
pop ebp
mov eax, 2
pop ebx
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.00475d76
add esp, 0x128
ret
cmp dword [esp + 0x14], 0
je 0x44d720
pop esi
pop ebp
mov eax, 3
pop ebx
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.00475d76
add esp, 0x128
ret
test ebp, ebp
je 0x44d741
pop esi
pop ebp
mov eax, 4
pop ebx
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.00475d76
add esp, 0x128
ret
test ebx, ebx
je 0x44d762
pop esi
pop ebp
mov eax, 5
pop ebx
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.00475d76
add esp, 0x128
ret
test esi, esi
je 0x44d783
pop esi
pop ebp
mov eax, 6
pop ebx
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.00475d76
add esp, 0x128
ret
test edx, edx
je 0x44d7a4
pop esi
pop ebp
mov eax, 7
pop ebx
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.00475d76
add esp, 0x128
ret
test ecx, ecx
je 0x44d7c5
pop esi
pop ebp
mov eax, 8
pop ebx
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.00475d76
add esp, 0x128
ret
mov ecx, dword [esp + 0x130]
neg eax
pop esi
sbb eax, eax
pop ebp
and eax, 3
pop ebx
xor ecx, esp
add eax, 7
call fcn.00475d76
add esp, 0x128
ret
Function at 0x44ea40
Capabilities:
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x47c6eb
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x4a5eb0]
xor eax, esp
mov dword [esp + 0x414], eax
push ebx
push esi
push edi
mov eax, dword [0x4a5eb0]
xor eax, esp
push eax
lea eax, [esp + 0x428]
mov dword fs:[0], eax
mov esi, dword [esp + 0x438]
mov edi, dword [esp + 0x43c]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x226]
push ecx
mov word [esp + 0x228], ax
call sub.MSVCR90.dll_memset
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x2a]
push eax
mov word [esp + 0x2c], dx
call sub.MSVCR90.dll_memset
add esp, 0x18
mov dword [esp + 0x10], 0
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x430], 0
test esi, esi
je 0x44ebaf
test edi, edi
je 0x44ebaf
lea ecx, [esp + 0x21c]
push ecx
push 0x104
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x44eb32
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, 0xffff0000
jne 0x44ebb4
test esi, esi
jle 0x44ebb4
and esi, 0xffff
or esi, 0x80070000
jmp 0x44ebb4
lea edx, [esp + 0x14]
push edx
push 0
push str.DeviceIcon
lea eax, [esp + 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x44eb72
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, 0xffff0000
jne 0x44ebb4
test esi, esi
jle 0x44ebb4
and esi, 0xffff
or esi, 0x80070000
jmp 0x44ebb4
mov ecx, dword [esi]
mov eax, dword [ecx]
lea edx, [esp + 0x10]
push edx
push 0x48b464
push esi
call eax
mov esi, eax
test esi, esi
jl 0x44ebb4
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 0
push 0
lea edx, [esp + 0x1c]
push edx
push 5
push eax
mov eax, dword [ecx + 0x18]
call eax
mov esi, eax
test esi, esi
jl 0x44ebb4
lea ecx, [esp + 0x14]
push ecx
call ebx
jmp 0x44ebb4
mov esi, 0x80070057
cmp word [esp + 0x21c], 0
je 0x44ebc6
lea edx, [esp + 0x14]
push edx
call ebx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x430], 0xffffffff
test eax, eax
je 0x44ebe1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
mov ecx, dword [esp + 0x428]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.00475d76
add esp, 0x424
ret

Function at 0x44f500
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x4501b0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x47c80b
mov eax, dword fs:[0]
push eax
sub esp, 0x80c
mov eax, dword [0x4a5eb0]
xor eax, esp
mov dword [esp + 0x808], eax
push ebp
push esi
push edi
mov eax, dword [0x4a5eb0]
xor eax, esp
push eax
lea eax, [esp + 0x81c]
mov dword fs:[0], eax
mov eax, dword [0x4a643c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a643c
mov dword [esp + 0x824], 1
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x830]
push eax
lea ecx, [esp + 0x14]
push str._s_version.dat
push ecx
mov byte [esp + 0x830], 2
call fcn.00402e80
mov edi, dword [esp + 0x1c]
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4502d8
lea eax, [edi - 0x10]
mov byte [esp + 0x824], 1
lea edx, [eax + 0xc]
or ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x450278
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x82c]
add eax, 0xfffffff0
mov byte [esp + 0x824], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4502a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x830]
add eax, 0xfffffff0
mov dword [esp + 0x824], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4502d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4503c1
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [esp + 0x22]
push edx
mov word [esp + 0x24], cx
call sub.MSVCR90.dll_memset
mov ebp, dword [esp + 0x838]
lea edx, [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x14], 0
mov eax, ebp
sub edx, ebp
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x450310
mov eax, dword [ebp - 0xc]
push 0
lea ecx, [esp + 0x18]
push ecx
add eax, eax
push eax
lea edx, [esp + 0x24]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
mov byte [esp + 0x824], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x450363
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x82c]
add eax, 0xfffffff0
mov byte [esp + 0x824], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45038e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x830]
add eax, 0xfffffff0
mov dword [esp + 0x824], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4503bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x81c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.00475d76
add esp, 0x818
ret 8
Function at 0x450a90
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x424
mov eax, dword [0x4a5eb0]
xor eax, esp
mov dword [esp + 0x420], eax
push esi
mov esi, dword [esp + 0x42c]
push 0x44
push 0
push 0x4a6218
call sub.MSVCR90.dll_memset
push esi
lea ecx, [esp + 0x24]
xor eax, eax
push str.regsvr32__s___s_
push ecx
mov dword [0x4a6218], 0x44
mov word [0x4a6248], ax
call fcn.00450a70
add esp, 0x18
lea edx, [esp + 4]
push edx
push 0x4a6218
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x34]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [esp + 8]
push ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 4]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x424]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00475d76
add esp, 0x424
ret
Function at 0x450b40
Capabilities:
Get common file path
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x47c950
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x4a5eb0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x4a643c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a643c
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
mov edi, 0x104
sub eax, edi
or eax, ecx
mov dword [esp + 0x20], 0
jge 0x450ba8
push edi
lea ecx, [esp + 0x18]
call fcn.00401e80
mov esi, dword [esp + 0x14]
cmp dword [esi - 8], edi
jge 0x450bb7
push 0x80070057
call fcn.00401100
push 1
push 0x2b
xor eax, eax
push esi
mov dword [esi - 0xc], edi
push eax
mov word [esi + 0x208], ax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x450cc6
mov eax, dword [esi - 8]
push eax
push esi
call dword [sym.imp.MSVCR90.dll_wcsnlen]
add esp, 8
test eax, eax
jl 0x450bad
cmp eax, dword [esi - 8]
jg 0x450bad
xor ecx, ecx
mov dword [esi - 0xc], eax
push 0x26
mov word [esi + eax*2], cx
push str.SamsungDeviceServiceDCAM_DSC_Codec_
lea ecx, [esp + 0x1c]
call fcn.004044d0
mov edx, dword [0x4a643c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4a643c
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x14]
push esi
lea ecx, [esp + 0x14]
push str._sPxtrAACD.dll
push ecx
mov byte [esp + 0x2c], 1
call fcn.00402e80
mov edx, dword [esp + 0x1c]
push edx
call fcn.00450a90
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add esp, 0x10
test eax, eax
jne 0x450c55
push str.PxtrAACD.dll_reg_failed
call ebp
push esi
lea eax, [esp + 0x14]
push str._sPxtrMP4S.dll
push eax
call fcn.00402e80
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00450a90
add esp, 0x10
test eax, eax
jne 0x450c7d
push str.PxtrMP4S.dll_reg_failed
call ebp
push esi
lea edx, [esp + 0x14]
push str._sPxtrVDF.dll
push edx
call fcn.00402e80
mov edi, dword [esp + 0x1c]
push edi
call fcn.00450a90
add esp, 0x10
test eax, eax
jne 0x450ca5
push str.PxtrVDF.dll_reg_failed
call ebp
lea eax, [edi - 0x10]
mov byte [esp + 0x20], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x450cc6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x450cea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
Function at 0x451600
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
jne 0x45161c
pop esi
pop ecx
ret
push edi
lea eax, [esp + 8]
push eax
push 0
push esi
push 0x451570
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x451644
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x451ef0
Capabilities:
Accept command line arguments

Disassembly:
push ecx
cmp byte [0x4a62b0], 0
push esi
mov esi, ecx
je 0x451f05
or eax, 0xffffffff
pop esi
pop ecx
ret 4
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 4]
push ecx
push eax
mov ecx, esi
call fcn.00451d70
cmp al, 1
jne 0x451f35
mov edx, dword [esp + 0xc]
push edx
mov ecx, esi
call fcn.00451c20
pop esi
pop ecx
ret 4
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4

Function at 0x451f40
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x47ca22
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x4a5eb0]
xor eax, esp
mov dword [esp + 0x218], eax
push esi
mov eax, dword [0x4a5eb0]
xor eax, esp
push eax
lea eax, [esp + 0x224]
mov dword fs:[0], eax
mov esi, dword [esp + 0x234]
mov dword [esp + 0x10], 0
mov eax, dword [0x4a643c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a643c
mov dword [esp + 0x22c], 0
mov dword [esp + 0x14], esi
call edx
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 8]
push eax
push 1
push 0
push str.SoftwareSamsungKies2.0
push SysReAllocString
mov dword [esp + 0x240], 0
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x452034
push 0x104
push eax
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x18], 0x104
call sub.MSVCR90.dll_memset
mov ecx, dword [esp + 0x14]
add esp, 0xc
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push str.LocalVer
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x452023
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.00403480
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00475d76
add esp, 0x228
ret