joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467195
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4672ad
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4672ad
mov eax, dword [esi + 0x3c]
push eax
call fcn.0047e67c
mov esi, eax
test esi, esi
je 0x4672ad
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4672ad
mov ecx, esi
call fcn.00467120
cmp edi, eax
jge 0x4672ad
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x467233
mov dword [esp + 0x34], 1
jmp 0x46728e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4672ad
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00466690
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x47f020
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47f058
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0047d0d7
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047d0af
jmp 0x47f064
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x480715
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x480757
call fcn.004861c5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x480757
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48074e
xor eax, eax
jmp 0x48075f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00480765
pop edi
pop esi
pop ebx
ret 4
Function at 0x4866f5
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x486723
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x486741
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048665b
jmp 0x486741
mov eax, dword [esi + 0x14]
test eax, eax
je 0x486741
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048665b
test edi, edi
mov eax, edi
jne 0x48672b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4012a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4012b9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4012f4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4012f0
lea ebx, [ebx]
cmp esi, eax
jae 0x4012f4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4012e0
cmp esi, eax
jb 0x4012fa
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4031a0
Capabilities:
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x474130
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x49ef38]
xor eax, ebp
mov dword [ebp + 0x800], 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 + 0x80c]
lea eax, [ebp + 0x810]
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__vsnwprintf_s]
add esp, 0x14
test eax, eax
jle 0x4032ad
lea eax, [ebp]
push eax
push 0x47dad0
lea ecx, [ebp - 0x14]
push 0x47dac0
push ecx
call fcn.00402eb0
add esp, 0x10
push ebx
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
call fcn.00402820
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
cmp ecx, ebx
jne 0x403276
test ecx, ecx
jge 0x40326b
push 0x80070057
call fcn.00401120
movzx eax, word [eax]
cmp ax, 0xa
jne 0x403276
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 0x403295
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4032a3
push 0xa
lea ecx, [ebp - 0x14]
call fcn.00402e50
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
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 0x4032cd
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 + 0x800]
xor ecx, ebp
call fcn.00471f66
add ebp, 0x804
mov esp, ebp
pop ebp
ret
Function at 0x4081c0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x476ca8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x49ef38]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x49f4e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x49f4e4
call edx
add eax, 0x10
mov dword [esp + 8], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x18], 0
test eax, eax
jne 0x408215
push 0x80004003
call fcn.004633e0
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
push eax
mov eax, dword [ecx + 0x40]
call eax
mov eax, dword [esp + 0xc]
cmp eax, 0x40
je 0x408288
cmp eax, 1
je 0x408288
push eax
lea ecx, [esp + 0xc]
push 0x47e068
push ecx
call fcn.00402eb0
mov esi, dword [esp + 0x14]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408272
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
push eax
lea ecx, [esp + 0xc]
push 0x47e068
push ecx
call fcn.00402eb0
mov esi, dword [esp + 0x14]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4082ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x40a740
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x47aa58
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49ef38]
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.00406330
mov ecx, dword [esp + 0x28]
push 0x47e738
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]
mov esi, dword [sym.imp.MSVCR90.dll_fseek]
push 2
push ebx
push eax
call esi
add esp, 0x18
cmp eax, ebx
je 0x40a7ea
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40a7bb
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 0x40a7e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40a8ea
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.00463d88
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 0x40a83e
cmp byte [esi + 1], 0xfe
jne 0x40a83e
lea edx, [esi + 2]
push edx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
jmp 0x40a8a3
cmp al, 0xef
jne 0x40a89d
cmp byte [esi + 1], 0xbb
jne 0x40a89d
cmp byte [esi + 2], 0xbf
jne 0x40a89d
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.00463d88
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 0x40a8a3
push esi
call fcn.00463480
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 0x40a8c0
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 0x40a8e8
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 0x40c7b0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x214
mov eax, dword [0x49ef38]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
mov ebx, dword [esp + 0x224]
push ebp
mov ebp, dword [esp + 0x220]
lea eax, [esp + 8]
push eax
push 0x2001f
mov dword [ebx], 0
mov ecx, dword [str.SOFTWARESamsungKiesDeviceDB]
push 0
push ecx
push SysReAllocStringLen
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0x100
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40c8e9
push esi
push eax
push eax
push eax
push eax
push eax
push eax
push eax
lea edx, [esp + 0x2c]
push edx
push eax
push eax
push eax
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov esi, eax
test esi, esi
je 0x40c856
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00471f66
add esp, 0x214
ret
test ebp, ebp
jne 0x40c87a
mov edx, dword [esp + 0x10]
pop esi
pop ebp
mov dword [ebx], edx
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00471f66
add esp, 0x214
ret
xor esi, esi
cmp dword [esp + 0x10], esi
push edi
jle 0x40c8da
cmp esi, dword [esp + 0x22c]
jge 0x40c8da
mov edx, dword [esp + 0x10]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x34]
push ecx
push esi
push edx
mov dword [esp + 0x38], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
test edi, edi
jne 0x40c900
push 0xa
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.MSVCR90.dll_wcstol]
mov dword [ebp + esi*4], eax
inc esi
add esp, 0xc
cmp esi, dword [esp + 0x14]
mov dword [ebx], esi
jl 0x40c883
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x218]
pop ebp
pop ebx
xor ecx, esp
call fcn.00471f66
add esp, 0x214
ret
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x40c8e7

Function at 0x40c9b0
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x474d68
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x49ef38]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov eax, dword [0x49f4e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x49f4e4
call edx
add eax, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [str.SOFTWARESamsungKiesDeviceDB]
push eax
push ecx
lea edx, [esp + 0x14]
push 0x47ea98
push edx
mov dword [esp + 0x28], 0
call fcn.00402eb0
mov esi, dword [esp + 0x1c]
add esp, 0x10
push esi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ca45
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x40ca60
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x474d98
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x49ef38]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [0x49f4e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x49f4e4
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [str.SOFTWARESamsungKiesDeviceDB]
push eax
push ecx
lea edx, [esp + 0x18]
push 0x47ea98
push edx
mov dword [esp + 0x2c], 0
call fcn.00402eb0
mov edi, dword [esp + 0x20]
add esp, 0x10
lea eax, [esp + 0xc]
push eax
push 0x20006
push 0
push edi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x40cb2a
mov edx, dword [esp + 0x2c]
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40caf0
mov ecx, dword [esp + 0x28]
sub eax, esi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edx
mov edx, dword [esp + 0x14]
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x40cb62
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cb4e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40cb91
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x40cbb0
Capabilities:
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x474d98
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x49ef38]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [0x49f4e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x49f4e4
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [str.SOFTWARESamsungKiesDeviceDB]
push eax
push ecx
lea edx, [esp + 0x18]
push 0x47ea98
push edx
mov dword [esp + 0x2c], 0
call fcn.00402eb0
mov esi, dword [esp + 0x20]
add esp, 0x10
lea eax, [esp + 0xc]
push eax
push 0x20006
push 0
push esi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x40cc54
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0xc]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
test edi, edi
je 0x40cc8c
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cc78
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ccbb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x40ce80
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x474dcb
mov eax, dword fs:[0]
push eax
mov eax, 0x2018
call fcn.00472040
mov eax, dword [0x49ef38]
xor eax, esp
mov dword [esp + 0x2014], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49ef38]
xor eax, esp
push eax
lea eax, [esp + 0x202c]
mov dword fs:[0], eax
mov eax, dword [0x49f4e4]
mov edx, dword [eax + 0xc]
mov ebp, dword [esp + 0x2040]
mov edi, dword [esp + 0x2044]
mov ecx, 0x49f4e4
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x203c]
mov ecx, dword [str.SOFTWARESamsungKiesDeviceDB]
push eax
push ecx
lea edx, [esp + 0x24]
xor esi, esi
push 0x47ea98
push edx
mov dword [esp + 0x2044], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x28], 0x2000
call fcn.00402eb0
add esp, 0x10
mov ecx, edi
call fcn.00401da0
lea eax, [esp + 0x14]
push eax
push 0x20019
push esi
mov esi, dword [esp + 0x28]
push esi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x40cf6c
mov edx, dword [esp + 0x14]
push eax
push eax
push eax
push eax
lea ecx, [esp + 0x30]
push ecx
push eax
push eax
push eax
push eax
push eax
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, eax
test ebx, ebx
je 0x40cf9a
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov dword [esp + 0x2034], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cf93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
jmp 0x40d04e
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x2c]
push eax
push 0
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
je 0x40cff3
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov dword [esp + 0x2034], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cf93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
jmp 0x40d04e
cmp dword [esp + 0x24], 1
jne 0x40d01a
mov eax, dword [esp + 0x18]
cmp eax, 0x2000
jae 0x40d01a
xor ecx, ecx
shr eax, 1
lea edx, [esp + 0x28]
mov word [esp + eax*2 + 0x28], cx
push edx
mov ecx, edi
call fcn.004034b0
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov dword [esp + 0x2034], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d04c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x202c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2014]
xor ecx, esp
call fcn.00471f66
add esp, 0x2024
ret
Function at 0x40d250
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x474e68
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x49ef38]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
push 0x47eac4
lea ecx, [esp + 0xc]
call fcn.00406330
mov ecx, dword [str.Session_ID]
mov esi, dword [esp + 0x1c]
lea eax, [esp + 8]
push eax
push ecx
push esi
mov dword [esp + 0x20], 0
call fcn.0040ce80
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.MSVCR90.dll__wtol]
inc eax
push eax
lea eax, [esp + 0x1c]
push 0x47eabc
push eax
call fcn.00402eb0
mov ecx, dword [esp + 0x24]
mov edx, dword [str.Session_ID]
push ecx
push edx
push esi
call fcn.0040ca60
mov esi, eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0x28
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d2f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x40da20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
lea eax, [esp]
push eax
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
mov eax, dword [ecx]
push 0
push edx
push eax
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40da59
mov eax, dword [esp + 0xc]
sub eax, 4
neg eax
sbb eax, eax
and eax, 0xd
pop ecx
ret 8

Function at 0x40da60
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push edi
lea eax, [esp + 0x14]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jne 0x40da82
pop edi
pop ebx
add esp, 8
ret 0x14
push esi
push edi
call dword [sym.imp.MSVCR90.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x40db0f
mov ecx, dword [esp + 0x18]
push esi
push edi
push ecx
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40db05
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
push 0x47e964
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40db05
mov eax, dword [esp + 0xc]
movzx ecx, word [eax + 0xa]
mov edx, dword [esp + 0x1c]
mov word [edx], cx
movzx ecx, word [eax + 8]
mov edx, dword [esp + 0x20]
mov word [edx], cx
movzx ecx, word [eax + 0xe]
mov edx, dword [esp + 0x24]
mov word [edx], cx
mov ax, word [eax + 0xc]
mov ecx, dword [esp + 0x28]
push esi
mov word [ecx], ax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
pop esi
pop edi
mov eax, 1
pop ebx
add esp, 8
ret 0x14
push esi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 8
ret 0x14

Function at 0x40db20
Capabilities:
Get disk information via ioctl

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40db45
xor eax, eax
pop esi
pop ecx
ret
mov edx, dword [esp + 0x10]
push edi
push 0
lea ecx, [esp + 0xc]
push ecx
push 0xc
push edx
push 0
push 0
push 0x2d1080
push esi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test edi, edi
pop edi
setne al
pop esi
pop ecx
ret