joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40db80
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
sub esp, 0x2c
mov eax, dword [0x49ef38]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
push edi
mov bl, 0x43
lea ebx, [ebx]
mov eax, dword [str..X:]
mov ecx, dword [0x47ebb4]
mov edx, dword [0x47ebb8]
mov esi, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [esp + 0x28], eax
mov ax, word [0x47ebbc]
mov word [esp + 0x34], ax
movsx ax, bl
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x47eba8]
mov dword [esp + 0x30], edx
mov edx, dword [0x47ebac]
mov dword [esp + 0x20], ecx
mov word [esp + 0x30], ax
mov word [esp + 0x20], ax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x28], edx
call esi
cmp eax, 2
je 0x40dc08
lea ecx, [esp + 0x20]
push ecx
call esi
cmp eax, 5
jne 0x40dc6a
push 0
push 0
push 3
push 0
push 3
push 0
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40dc6a
push 0
lea eax, [esp + 0x14]
push eax
push 0xc
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push 0x2d1080
push esi
mov dword [esp + 0x30], 0
call ebp
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x40dc6a
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x40]
cmp edx, dword [eax + 4]
jne 0x40dc6a
mov ecx, dword [esp + 0x14]
cmp ecx, dword [eax]
je 0x40dc8a
inc bl
cmp bl, 0x5a
jle 0x40dba0
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00471f66
add esp, 0x2c
ret
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
xor ecx, esp
call fcn.00471f66
add esp, 0x2c
ret
Function at 0x40e730
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x474fb0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x49ef38]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49ef38]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [0x49f4e4]
mov edx, dword [eax + 0xc]
mov edi, ecx
mov ecx, 0x49f4e4
mov dword [esp + 0x14], edi
call edx
add eax, 0x10
mov dword [edi], eax
mov ebp, dword [esp + 0x44]
xor ecx, ecx
cmp ebp, ecx
mov dword [esp + 0x38], ecx
jle 0x40e8d1
mov ax, word [esp + 0x40]
xor edx, edx
mov word [esp + 0x18], ax
mov word [esp + 0x1a], dx
lea esi, [ecx + 1]
cmp ax, cx
je 0x40e7bf
lea esi, [esp + 0x18]
lea edx, [esi + 2]
mov edi, edi
mov ax, word [esi]
add esi, 2
cmp ax, cx
jne 0x40e7b0
sub esi, edx
sar esi, 1
mov dword [esp + 0x1c], ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
mov byte [esp + 0x38], 1
cmp edx, ecx
ja 0x40e7db
cmp eax, 0xffffffff
jbe 0x40e7e5
push 0x80070057
call fcn.00401120
cmp eax, 0xa
jbe 0x40e7f6
push eax
lea ecx, [esp + 0x20]
call fcn.0040df70
jmp 0x40e7fe
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
push 2
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esi + esi + 2]
push edx
push eax
call dword [sym.imp.MSVCR90.dll_memcpy_s]
push eax
call fcn.00401160
mov eax, dword [edi]
mov edx, dword [eax - 8]
mov ebx, esi
imul ebx, ebp
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, ebx
add esp, 0x14
or ecx, edx
jge 0x40e841
push ebx
mov ecx, edi
call fcn.00401eb0
mov edi, dword [edi]
cmp esi, 1
jne 0x40e86a
mov eax, dword [esp + 0x1c]
movzx eax, word [eax]
test ebp, ebp
jle 0x40e898
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
mov ecx, ebp
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
jmp 0x40e898
mov ecx, edi
test ebp, ebp
jle 0x40e898
xor eax, eax
test esi, esi
jle 0x40e893
jmp 0x40e880
mov edx, dword [esp + 0x1c]
mov dx, word [edx + eax*2]
mov word [ecx], dx
inc eax
add ecx, 2
cmp eax, esi
jl 0x40e880
sub ebp, 1
jne 0x40e870
test ebx, ebx
jl 0x40e7db
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
cmp ebx, dword [eax - 8]
jg 0x40e7db
mov dword [eax - 0xc], ebx
mov eax, dword [ecx]
xor ecx, ecx
lea edx, [esp + 0x20]
mov word [eax + ebx*2], cx
cmp dword [esp + 0x1c], edx
je 0x40e8cd
lea ecx, [esp + 0x1c]
call fcn.0040def0
mov edi, dword [esp + 0x14]
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00471f66
add esp, 0x28
ret 8
Function at 0x4132e0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x47575a
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x49ef38]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov eax, dword [0x49ef38]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x22c]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
push 0x47dd5c
mov ecx, esi
mov dword [esp + 0x228], 1
call fcn.00406330
push 0x208
lea eax, [esp + 0x14]
push 0
push eax
mov dword [esp + 0x14], 1
call sub.MSVCR90.dll_memset
mov edx, dword [esp + 0x23c]
add esp, 0xc
push 0
push 0
push 0
push 0
push 0
push 0x208
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
lea eax, [esp + 0x10]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x413387
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.004028e0
mov eax, dword [esp + 0x230]
add eax, 0xfffffff0
mov byte [esp + 0x224], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4133ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00471f66
add esp, 0x220
ret 8
Function at 0x416940
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x475c53
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x49ef38]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49ef38]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov edi, dword [esp + 0x140]
xor ebx, ebx
mov esi, ecx
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x144]
mov dword [esp + 0x18], 0x114
mov eax, dword [ecx - 0xc]
or ebp, 0xffffffff
cmp eax, ebx
mov dword [esp + 0x138], ebx
jl 0x416a4f
push str._WIFIVID_SAMSUNGPID_SAMSUNGMI_01
push ecx
call dword [sym.imp.MSVCR90.dll_wcsstr]
add esp, 8
cmp eax, ebx
je 0x416a4f
mov ecx, dword [esp + 0x144]
sub eax, ecx
sar eax, 1
cmp eax, ebp
je 0x416a4f
lea eax, [ecx - 0x10]
push eax
call fcn.00401530
add eax, 0x10
add esp, 4
mov dword [esp + 0x14], eax
push 0x47e964
push 0x47ed8c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x140], 1
call fcn.00407b20
push 0x47dd5c
push 0x47ed80
lea ecx, [esp + 0x1c]
call fcn.00407b20
mov esi, dword [esp + 0x14]
add esi, 0xfffffff0
push esi
call fcn.00401530
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov byte [esp + 0x138], bl
lea eax, [esi + 0xc]
mov ecx, ebp
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x416ace
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
jmp 0x416ace
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x416aa7
cmp dword [esp + 0x1c], 6
jne 0x416aa7
mov eax, dword [esp + 0x144]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov ebx, esp
push eax
call fcn.00401530
add esp, 4
add eax, 0x10
push edi
mov ecx, esi
mov dword [ebx], eax
call fcn.00412490
mov eax, dword [esp + 0x144]
add eax, 0xfffffff0
mov dword [esp + 0x138], ebp
lea edx, [eax + 0xc]
lock xadd dword [edx], ebp
dec ebp
jmp 0x416ae7
mov eax, dword [esp + 0x144]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov ebx, esp
push eax
call fcn.00401530
add esp, 4
add eax, 0x10
push edi
mov ecx, esi
mov dword [ebx], eax
call fcn.00412990
mov eax, dword [esp + 0x144]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov dword [esp + 0x138], ebp
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x416af5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.00471f66
add esp, 0x128
ret 8
Function at 0x416b30
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x475c98
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x49ef38]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push esi
push edi
mov eax, dword [0x49ef38]
xor eax, esp
push eax
lea eax, [esp + 0x12c]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x13c]
mov dword [esp + 0x134], 0
call fcn.00407d50
mov ecx, dword [esp + 0x13c]
mov eax, dword [ecx - 0xc]
or ebx, 0xffffffff
test eax, eax
jl 0x416be0
push str.MI_
push ecx
call dword [sym.imp.MSVCR90.dll_wcsstr]
add esp, 8
test eax, eax
je 0x416be0
mov ecx, dword [esp + 0x13c]
sub eax, ecx
sar eax, 1
cmp eax, ebx
jle 0x416be0
lea eax, [ecx - 0x10]
mov dword [esp + 0x134], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x416bd6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x416c92
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x416c41
cmp dword [esp + 0x18], 6
jne 0x416c41
mov eax, dword [esp + 0x13c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x14], esp
mov edi, esp
push eax
call fcn.00401530
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [edi], eax
call fcn.004121c0
mov esi, eax
mov eax, dword [esp + 0x13c]
add eax, 0xfffffff0
mov dword [esp + 0x134], ebx
lea edx, [eax + 0xc]
lock xadd dword [edx], ebx
dec ebx
jmp 0x416c82
mov eax, dword [esp + 0x13c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x14], esp
mov edi, esp
push eax
call fcn.00401530
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [edi], eax
call fcn.00411f50
mov esi, eax
mov eax, dword [esp + 0x13c]
add eax, 0xfffffff0
mov dword [esp + 0x134], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x416c90
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.00471f66
add esp, 0x128
ret 4
Function at 0x4195f0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x476038
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x49ef38]
xor eax, esp
mov dword [esp + 0x118], eax
push esi
push edi
mov eax, dword [0x49ef38]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x138]
mov dword [esp + 0x130], 0
call fcn.00407d50
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x419688
cmp dword [esp + 0x14], 6
jne 0x419688
mov eax, dword [esp + 0x138]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x10], esp
mov edi, esp
push eax
call fcn.00401530
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [edi], eax
call fcn.00417950
jmp 0x4196ae
mov eax, dword [esp + 0x138]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x10], esp
mov edi, esp
push eax
call fcn.00401530
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [edi], eax
call fcn.00413400
mov esi, eax
mov eax, dword [esp + 0x138]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x130], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4196da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.00471f66
add esp, 0x128
ret 4
Function at 0x41f240
Capabilities:
Get disk information

Disassembly:
sub esp, 0x204
mov eax, dword [0x49ef38]
xor eax, esp
mov dword [esp + 0x200], eax
push esi
push 0
push 0
push 0
push 0
push 0
mov esi, ecx
mov eax, dword [esi + 0x98]
push 0x1fe
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x41f2ab
mov esi, dword [esi + 0x94]
push esi
call fcn.00451e00
add esp, 4
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x19
pop esi
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.00471f66
add esp, 0x204
ret
mov ecx, dword [esp + 0x204]
pop esi
xor ecx, esp
mov eax, 0x15
call fcn.00471f66
add esp, 0x204
ret

Function at 0x41fa90
Capabilities:
Get disk information

Disassembly:
sub esp, 0x204
mov eax, dword [0x49ef38]
xor eax, esp
mov dword [esp + 0x200], eax
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x94]
push esi
push eax
call fcn.00451bb0
add esp, 4
test eax, eax
jne 0x41fb27
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.DiskLoading..._d
call fcn.004031a0
add esp, 8
cmp esi, 3
je 0x41fb0b
cmp esi, 2
je 0x41fb0b
cmp esi, 0x37
je 0x41fb0b
mov eax, dword [ebx + 0x94]
push eax
call fcn.00451e00
add esp, 4
pop esi
mov eax, 0x19
pop ebx
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.00471f66
add esp, 0x204
ret
pop esi
mov eax, 3
pop ebx
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.00471f66
add esp, 0x204
ret
cmp dword [ebx + 0x90], 0
push ebp
push edi
jne 0x41fba5
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
lea ebx, [ebx]
mov eax, dword [ebx + 0x98]
push 0
push 0
push 0
push 0
push 0
push 0x1fe
lea ecx, [esp + 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x41fba5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.DiskLoading..._d
call fcn.004031a0
add esp, 8
cmp esi, 3
je 0x41fb9e
cmp esi, 2
je 0x41fb9e
cmp esi, 0x37
je 0x41fb9e
push 0x1f4
call ebp
inc edi
cmp edi, 0x14
jl 0x41fb40
mov eax, 4
jmp 0x41fba7
mov eax, 3
jmp 0x41fba7
xor eax, eax
mov ecx, dword [esp + 0x210]
pop edi
pop ebp
pop esi
pop ebx
xor ecx, esp
call fcn.00471f66
add esp, 0x204
ret

Function at 0x420ef0
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
add eax, eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x420f66
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x420f35
cmp eax, 2
jne 0x420f51
mov eax, dword [esp + 0x14]
test esi, esi
je 0x420f60
test eax, eax
je 0x420f5b
test al, 1
jne 0x420f51
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x420f60
pop edi
mov eax, 0xd
pop esi
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc
Function at 0x4220c0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x49ef38]
xor eax, esp
mov dword [esp + 0x114], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4220f6
cmp dword [esp + 4], 6
mov eax, 0x1388
je 0x4220fb
mov eax, 0x3e8
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00471f66
add esp, 0x118
ret
Function at 0x422b00
Capabilities:
Hash data using sha1

Disassembly:
sub esp, 0x7c
mov eax, dword [0x49ef38]
xor eax, esp
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x84]
push esi
mov esi, dword [esp + 0x84]
push eax
lea ecx, [esp + 8]
push esi
push ecx
mov dword [esp + 0x10], 0x67452301
mov dword [esp + 0x14], 0xefcdab89
mov dword [esp + 0x18], 0x98badcfe
mov dword [esp + 0x1c], 0x10325476
mov dword [esp + 0x20], 0xc3d2e1f0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x6c], 0
call fcn.00422a20
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x74]
push eax
call fcn.004228d0
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
mov dword [esi], ecx
mov ecx, dword [esp + 0x80]
mov dword [esi + 4], edx
mov edx, dword [esp + 0x84]
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0x88]
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x90]
xor al, al
add esp, 0x14
mov byte [esi + 0x14], al
pop esi
xor ecx, esp
call fcn.00471f66
add esp, 0x7c
ret

Function at 0x426ad0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x476e4b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x49ef38]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov eax, dword [0x49ef38]
xor eax, esp
push eax
lea eax, [esp + 0x218]
mov dword fs:[0], eax
mov eax, dword [0x49f4e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x49f4e4
mov dword [esp + 0x10], 0xff
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.SOFTWARESamsungNew_PC_StudioSetting
push SysReAllocStringLen
mov dword [esp + 0x234], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x426bea
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push eax
push eax
mov eax, dword [esp + 0x18]
push str.EnableNOSIM
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x426bea
cmp dword [esp + 0x10], 1
jbe 0x426bea
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push 0x47ddf0
push edx
call fcn.00402eb0
mov esi, dword [esp + 0x18]
add esp, 0xc
mov ecx, str.473E8222_33F0_4039_92F6_815DC6A97379
mov eax, esi
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x426bc6
test dx, dx
je 0x426bc2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x426bc6
add eax, 4
add ecx, 4
test dx, dx
jne 0x426ba0
xor eax, eax
jmp 0x426bcb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x426bea
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
call fcn.00401e10
mov eax, 1
jmp 0x426c1e
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov dword [esp + 0x220], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x426c1c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x218]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00471f66
add esp, 0x21c
ret
Function at 0x427430
Capabilities:
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x404]
sub esp, 0x404
push 0xffffffffffffffff
push 0x476ed0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x49ef38]
xor eax, ebp
mov dword [ebp + 0x400], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [0x49f4e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x49f4e4
mov dword [ebp - 4], 0
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp + 0x40c]
lea eax, [ebp + 0x410]
push eax
push ecx
push 0x400
lea edx, [ebp]
push 0x400
mov ebx, 1
push edx
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCR90.dll__vsnprintf_s]
add esp, 0x14
test eax, eax
jle 0x427536
lea eax, [ebp]
push eax
push str.NPSDM
lea ecx, [ebp - 0x14]
push str.__s__s
push ecx
call fcn.0040c990
add esp, 0x10
push ebx
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
call fcn.00425450
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
cmp ecx, ebx
jne 0x4274ff
test ecx, ecx
jge 0x4274f7
push 0x80070057
call fcn.00401120
mov al, byte [eax]
cmp al, 0xa
jne 0x4274ff
xor bl, bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42751e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x42752c
push 0xa
lea ecx, [ebp - 0x14]
call fcn.00426810
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x427556
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.00471f66
add ebp, 0x404
mov esp, ebp
pop ebp
ret

Function at 0x427a20
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [0x49f134]
test eax, eax
je 0x427a50
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x427a4f
mov eax, dword [esp + 4]
mov ecx, dword [0x49f1e8]
mov edx, dword [0x49f134]
push 0
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
ret
mov dword [esp + 4], str.No_m_hNewDeviceHandler
jmp fcn.004031a0
Function at 0x448430
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 0x4484cc
push ebx
push edi
mov edi, dword [esp + 0x18]
lea esp, [esp]
movsx edx, byte [ebp]
mov edx, dword [edx*4 + 0x49b2a8]
cmp edx, 0xffffffff
je 0x4484c3
cmp esi, 3
ja case.default.0x448465
jmp dword [esi*4 + 0x4484d0]
mov esi, 1
jmp case.default.0x448465
cmp eax, dword [esp + 0x1c]
jge 0x44848b
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.0x448465
cmp eax, dword [esp + 0x1c]
jge 0x4484a9
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.0x448465
cmp eax, dword [esp + 0x1c]
jge 0x4484bf
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 0x448450
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x448790
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
push esi
push edi
lea eax, [esp + 0x14]
push eax
xor esi, esi
lea ecx, [esp + 0xc]
push ecx
push esi
push 0x2001f
push esi
push esi
push esi
push 0x4852bc
push SysReAllocStringLen
mov dword [esp + 0x30], 0xb4
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4487f3
mov esi, dword [esp + 8]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push 0x485e78
push esi
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, dword [esp + 0xc]
test esi, esi
je 0x448802
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
add esp, 0x14
ret

Function at 0x44bc80
Capabilities:
Get disk information

Disassembly:
sub esp, 0x204
mov eax, dword [0x49ef38]
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.00471f66
add esp, 0x204
ret
Function at 0x44be70
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x479620
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x49ef38]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov eax, dword [0x49ef38]
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.00406330
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 0x44bf1f
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 0x44bf4d
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.00471f66
add esp, 0x21c
ret 0xc