joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e610
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x475060
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x49eef8]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49eef8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [0x49f474]
mov edx, dword [eax + 0xc]
mov edi, ecx
mov ecx, 0x49f474
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 0x40e7b1
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 0x40e69f
lea esi, [esp + 0x18]
lea edx, [esi + 2]
mov edi, edi
mov ax, word [esi]
add esi, 2
cmp ax, cx
jne 0x40e690
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 0x40e6bb
cmp eax, 0xffffffff
jbe 0x40e6c5
push 0x80070057
call fcn.00401120
cmp eax, 0xa
jbe 0x40e6d6
push eax
lea ecx, [esp + 0x20]
call fcn.0040ded0
jmp 0x40e6de
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 0x40e721
push ebx
mov ecx, edi
call fcn.00401ea0
mov edi, dword [edi]
cmp esi, 1
jne 0x40e74a
mov eax, dword [esp + 0x1c]
movzx eax, word [eax]
test ebp, ebp
jle 0x40e778
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 0x40e778
mov ecx, edi
test ebp, ebp
jle 0x40e778
xor eax, eax
test esi, esi
jle 0x40e773
jmp 0x40e760
mov edx, dword [esp + 0x1c]
mov dx, word [edx + eax*2]
mov word [ecx], dx
inc eax
add ecx, 2
cmp eax, esi
jl 0x40e760
sub ebp, 1
jne 0x40e750
test ebx, ebx
jl 0x40e6bb
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
cmp ebx, dword [eax - 8]
jg 0x40e6bb
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 0x40e7ad
lea ecx, [esp + 0x1c]
call fcn.0040de50
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.00472076
add esp, 0x28
ret 8
Function at 0x4134c0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4758aa
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x49eef8]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov eax, dword [0x49eef8]
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 0x47dd68
mov ecx, esi
mov dword [esp + 0x228], 1
call fcn.004062a0
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 0x413567
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.00402840
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 0x4135ae
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.00472076
add esp, 0x220
ret 8
Function at 0x416be0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x475da3
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x49eef8]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49eef8]
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 0x416cef
push str._WIFIVID_SAMSUNGPID_SAMSUNGMI_01
push ecx
call dword [sym.imp.MSVCR90.dll_wcsstr]
add esp, 8
cmp eax, ebx
je 0x416cef
mov ecx, dword [esp + 0x144]
sub eax, ecx
sar eax, 1
cmp eax, ebp
je 0x416cef
lea eax, [ecx - 0x10]
push eax
call fcn.00401510
add eax, 0x10
add esp, 4
mov dword [esp + 0x14], eax
push 0x47e974
push 0x47ed94
lea ecx, [esp + 0x1c]
mov byte [esp + 0x140], 1
call fcn.00407a30
push 0x47dd68
push 0x47ed88
lea ecx, [esp + 0x1c]
call fcn.00407a30
mov esi, dword [esp + 0x14]
add esi, 0xfffffff0
push esi
call fcn.00401510
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 0x416d6e
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
jmp 0x416d6e
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x416d47
cmp dword [esp + 0x1c], 6
jne 0x416d47
mov eax, dword [esp + 0x144]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov ebx, esp
push eax
call fcn.00401510
add esp, 4
add eax, 0x10
push edi
mov ecx, esi
mov dword [ebx], eax
call fcn.00412670
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 0x416d87
mov eax, dword [esp + 0x144]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov ebx, esp
push eax
call fcn.00401510
add esp, 4
add eax, 0x10
push edi
mov ecx, esi
mov dword [ebx], eax
call fcn.00412b70
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 0x416d95
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.00472076
add esp, 0x128
ret 8
Function at 0x416dd0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x475de8
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x49eef8]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push esi
push edi
mov eax, dword [0x49eef8]
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.00407c60
mov ecx, dword [esp + 0x13c]
mov eax, dword [ecx - 0xc]
or ebx, 0xffffffff
test eax, eax
jl 0x416e80
push str.MI_
push ecx
call dword [sym.imp.MSVCR90.dll_wcsstr]
add esp, 8
test eax, eax
je 0x416e80
mov ecx, dword [esp + 0x13c]
sub eax, ecx
sar eax, 1
cmp eax, ebx
jle 0x416e80
lea eax, [ecx - 0x10]
mov dword [esp + 0x134], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x416e76
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x416f32
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x416ee1
cmp dword [esp + 0x18], 6
jne 0x416ee1
mov eax, dword [esp + 0x13c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x14], esp
mov edi, esp
push eax
call fcn.00401510
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [edi], eax
call fcn.00412390
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 0x416f22
mov eax, dword [esp + 0x13c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x14], esp
mov edi, esp
push eax
call fcn.00401510
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [edi], eax
call fcn.00412100
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 0x416f30
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.00472076
add esp, 0x128
ret 4
Function at 0x419650
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x476138
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x49eef8]
xor eax, esp
mov dword [esp + 0x118], eax
push esi
push edi
mov eax, dword [0x49eef8]
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.00407c60
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4196e8
cmp dword [esp + 0x14], 6
jne 0x4196e8
mov eax, dword [esp + 0x138]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x10], esp
mov edi, esp
push eax
call fcn.00401510
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [edi], eax
call fcn.00417970
jmp 0x41970e
mov eax, dword [esp + 0x138]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x10], esp
mov edi, esp
push eax
call fcn.00401510
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [edi], eax
call fcn.004135e0
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 0x41973a
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.00472076
add esp, 0x128
ret 4
Function at 0x41ac50
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4762b8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x49eef8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [esp + 0xc]
call fcn.0040e480
push 4
push str.04E8
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0
call fcn.00402840
push 4
push str.6721
lea ecx, [esp + 0x1c]
call fcn.00402840
mov edx, dword [esp + 0x30]
test edx, edx
jne 0x41acb4
xor eax, eax
jmp 0x41accf
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41acc0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x14]
call fcn.00402840
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
xor eax, eax
cmp dword [esp + 0x38], 8
push ecx
setne al
push edx
push str.vid___s__pid___s
lea eax, [eax*8 + 1]
mov dword [esp + 0x28], eax
call fcn.00403100
mov eax, dword [esp + 0x40]
add esp, 0xc
push 0x64
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call fcn.0041a330
lea ecx, [esp + 0xc]
call fcn.0040e4e0
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret 0xc
Function at 0x41cb50
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x476628
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebp
push esi
push edi
mov eax, dword [0x49eef8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x30], 0
lea ecx, [esp + 0x14]
call fcn.0040e480
mov esi, dword [esp + 0x38]
mov byte [esp + 0x30], 2
mov dword [esp + 0x24], 7
test esi, esi
jne 0x41cba4
xor eax, eax
jmp 0x41cbbf
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41cbb0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00402840
test esi, esi
jne 0x41cbd2
xor eax, eax
jmp 0x41cbe6
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41cbd7
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.00402840
test esi, esi
jne 0x41cbf9
xor eax, eax
jmp 0x41cc0f
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41cc00
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x24]
call fcn.00402840
mov edi, dword [esp + 0x3c]
or ebp, 0xffffffff
cmp edi, 0x8000
jne 0x41cca0
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x41cc7d
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
jl 0x41cc7d
mov esi, dword [sym.imp.MSVCR90.dll_wcsstr]
push ecx
push eax
call esi
add esp, 8
test eax, eax
je 0x41cc7d
sub eax, dword [esp + 0x18]
sar eax, 1
cmp eax, ebp
je 0x41cc7d
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x41cc7d
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], 0
jl 0x41cc7d
push ecx
push eax
call esi
add esp, 8
test eax, eax
je 0x41cc7d
sub eax, dword [esp + 0x1c]
sar eax, 1
cmp eax, ebp
jne 0x41cca0
lea ecx, [esp + 0x14]
call fcn.0040e4e0
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov byte [esp + 0x30], 0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x41ccd2
push 0x64
push edi
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.0041a330
lea ecx, [esp + 0x14]
call fcn.0040e4e0
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov byte [esp + 0x30], 0
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41ccde
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov dword [esp + 0x30], ebp
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x41ccff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x24
ret 0x10
Function at 0x41fa90
Capabilities:
Get disk information

Disassembly:
sub esp, 0x204
mov eax, dword [0x49eef8]
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 0x41fafb
mov esi, dword [esi + 0x94]
push esi
call fcn.004524b0
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.00472076
add esp, 0x204
ret
mov ecx, dword [esp + 0x204]
pop esi
xor ecx, esp
mov eax, 0x15
call fcn.00472076
add esp, 0x204
ret

Function at 0x4202e0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x204
mov eax, dword [0x49eef8]
xor eax, esp
mov dword [esp + 0x200], eax
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x94]
push esi
push eax
call fcn.00452260
add esp, 4
test eax, eax
jne 0x420377
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.DiskLoading..._d
call fcn.00403100
add esp, 8
cmp esi, 3
je 0x42035b
cmp esi, 2
je 0x42035b
cmp esi, 0x37
je 0x42035b
mov eax, dword [ebx + 0x94]
push eax
call fcn.004524b0
add esp, 4
pop esi
mov eax, 0x19
pop ebx
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.00472076
add esp, 0x204
ret
pop esi
mov eax, 3
pop ebx
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.00472076
add esp, 0x204
ret
cmp dword [ebx + 0x90], 0
push ebp
push edi
jne 0x4203f5
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 0x4203f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.DiskLoading..._d
call fcn.00403100
add esp, 8
cmp esi, 3
je 0x4203ee
cmp esi, 2
je 0x4203ee
cmp esi, 0x37
je 0x4203ee
push 0x1f4
call ebp
inc edi
cmp edi, 0x14
jl 0x420390
mov eax, 4
jmp 0x4203f7
mov eax, 3
jmp 0x4203f7
xor eax, eax
mov ecx, dword [esp + 0x210]
pop edi
pop ebp
pop esi
pop ebx
xor ecx, esp
call fcn.00472076
add esp, 0x204
ret

Function at 0x421720
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 0x421796
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x421765
cmp eax, 2
jne 0x421781
mov eax, dword [esp + 0x14]
test esi, esi
je 0x421790
test eax, eax
je 0x42178b
test al, 1
jne 0x421781
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x421790
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 0x4228b0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x49eef8]
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 0x4228e6
cmp dword [esp + 4], 6
mov eax, 0x1388
je 0x4228eb
mov eax, 0x3e8
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00472076
add esp, 0x118
ret
Function at 0x4232f0
Capabilities:
Hash data using sha1

Disassembly:
sub esp, 0x7c
mov eax, dword [0x49eef8]
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.00423210
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x74]
push eax
call fcn.004230c0
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.00472076
add esp, 0x7c
ret

Function at 0x427260
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x476f6b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x49eef8]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov eax, dword [0x49eef8]
xor eax, esp
push eax
lea eax, [esp + 0x218]
mov dword fs:[0], eax
mov eax, dword [0x49f474]
mov edx, dword [eax + 0xc]
mov ecx, 0x49f474
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 0x42737a
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 0x42737a
cmp dword [esp + 0x10], 1
jbe 0x42737a
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push 0x47ddf8
push edx
call fcn.00402e10
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 0x427356
test dx, dx
je 0x427352
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x427356
add eax, 4
add ecx, 4
test dx, dx
jne 0x427330
xor eax, eax
jmp 0x42735b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x42737a
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
call fcn.00401e00
mov eax, 1
jmp 0x4273ae
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 0x4273ac
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.00472076
add esp, 0x21c
ret
Function at 0x428020
Capabilities:
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x404]
sub esp, 0x404
push 0xffffffffffffffff
push 0x477030
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x49eef8]
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 [0x49f474]
mov edx, dword [eax + 0xc]
mov ecx, 0x49f474
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 0x428126
lea eax, [ebp]
push eax
push str.NPSDM
lea ecx, [ebp - 0x14]
push str.__s__s
push ecx
call fcn.0040c950
add esp, 0x10
push ebx
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
call fcn.00425c50
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
cmp ecx, ebx
jne 0x4280ef
test ecx, ecx
jge 0x4280e7
push 0x80070057
call fcn.00401120
mov al, byte [eax]
cmp al, 0xa
jne 0x4280ef
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 0x42810e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x42811c
push 0xa
lea ecx, [ebp - 0x14]
call fcn.00426fd0
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 0x428146
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.00472076
add ebp, 0x404
mov esp, ebp
pop ebp
ret

Function at 0x4281b0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [0x49f0f4]
test eax, eax
je 0x4281e0
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4281df
mov eax, dword [esp + 4]
mov ecx, dword [0x49f1a8]
mov edx, dword [0x49f0f4]
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.00403100