joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10021750
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x100e7c94]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push 0xff
push 0x100
push eax
call fcn.1001c400
push dword [eax + 4]
push dword [eax]
call fcn.10058ce0
or ecx, 0xffffffff
add esp, 0x20
test eax, eax
cmovs eax, ecx
test eax, eax
jle 0x100217ac
cmp eax, 0x100
jae 0x100217cb
mov byte [ebp + eax - 0x104], 0
jmp 0x100217b0
mov byte [ebp - 5], 0
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003acef
mov esp, ebp
pop ebp
ret
call fcn.1003bbcb
int3
Function at 0x100262d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x100e7c94]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
call fcn.1002dcd0
test eax, eax
je 0x10026363
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x3c]
push eax
push 0
push 0x20019
push 0
push 0
push 0
push str.SoftwareEmpiaTwain
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10026363
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x2c
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x38], 3
push eax
lea eax, [ebp - 0x38]
push eax
push 0
push str.WindowPlacement
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10026363
lea eax, [ebp - 0x30]
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowPlacement]
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003acef
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.1003acef
mov esp, ebp
pop ebp
ret

Function at 0x100263f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x100e7c94]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
call fcn.1002dcd0
test eax, eax
je 0x10026459
lea eax, [ebp - 0x30]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowPlacement]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareEmpiaTwain
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10026459
push 0x2c
lea eax, [ebp - 0x30]
push eax
push 3
push 0
push str.WindowPlacement
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1003acef
mov esp, ebp
pop ebp
ret
Function at 0x100283e0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100e7c94]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, 1
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x28], edx
movzx eax, word [ebx + 6]
add eax, 0xfffffffd
mov dword [ebp - 0x20], esi
cmp eax, 3
ja case.default.0x10028417
push edi
jmp dword [eax*4 + 0x100285c0]
movzx eax, word [ebx + 2]
push 3
push dword [ebx + 0x18]
push eax
push edx
call fcn.1002ea00
add esp, 0x10
jmp 0x1002859a
movzx ecx, word [ebx + 2]
lea edi, [ebx + 0xc]
xor eax, eax
mov word [ebp - 0x18], cx
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 0x14]
push ecx
mov dword [ebp - 0x16], eax
call fcn.1002e540
movzx eax, ax
push eax
push dword [ebx + 0x20]
push edi
call fcn.10028830
mov esi, dword [ebx + 0x18]
mov dword [ebp - 0x12], eax
movzx eax, word [ebx + 2]
push eax
call fcn.1002e540
movzx eax, ax
push eax
push esi
push edi
call fcn.10028830
push 1
mov dword [ebp - 0xe], eax
lea eax, [ebp - 0x18]
push esi
push eax
push dword [ebp - 0x28]
call fcn.1002e7c0
mov ecx, dword [ebp - 0x20]
add esp, 0x30
movzx eax, ax
mov word [ecx], ax
jmp 0x100285a0
mov ax, word [ebx + 2]
xorps xmm0, xmm0
movlpd qword [ebp - 0x24], xmm0
mov word [ebp - 0x24], ax
mov eax, dword [ebx + 0x14]
push 1
push dword [ebx + 0x18]
mov dword [ebp - 0x22], eax
lea eax, [ebp - 0x24]
push eax
push edx
call fcn.1002e5b0
add esp, 0x10
jmp 0x1002859a
movzx eax, word [ebx + 2]
xorps xmm0, xmm0
movlpd qword [ebp - 0x1a], xmm0
movlpd qword [ebp - 0x12], xmm0
mov dword [ebp - 0xa], 0
mov word [ebp - 0x1c], ax
cmp eax, 7
jne 0x10028538
mov edi, dword [ebx + 0x18]
push ecx
movss xmm0, dword [edi]
movss dword [esp], xmm0
call fcn.10027c70
mov esi, eax
mov dword [ebp - 0x1a], esi
movss xmm0, dword [edi + 4]
movss dword [esp], xmm0
call fcn.10027c70
mov dword [ebp - 0x16], eax
movss xmm0, dword [edi + 8]
movss dword [esp], xmm0
call fcn.10027c70
mov edx, dword [ebp - 0x28]
add esp, 4
mov dword [ebp - 0xa], esi
mov dword [ebp - 0xe], esi
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x12], eax
jmp 0x1002858b
cmp eax, 5
je 0x10028571
cmp eax, 2
je 0x10028571
cmp eax, 4
je 0x1002854c
cmp eax, 1
jne 0x1002858b
mov ecx, dword [ebx + 0x18]
movzx eax, word [ecx]
mov dword [ebp - 0x1a], eax
movzx eax, word [ecx + 2]
mov dword [ebp - 0x16], eax
movzx eax, word [ecx + 4]
mov dword [ebp - 0x12], eax
mov ax, word [ebp - 0x1a]
mov word [ebp - 0xa], ax
mov word [ebp - 0xe], ax
jmp 0x1002858b
mov ecx, dword [ebx + 0x18]
mov eax, dword [ecx]
mov dword [ebp - 0x1a], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x16], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0xa], eax
mov dword [ebp - 0xe], eax
push 3
lea eax, [ebp - 0x1c]
push eax
push edx
call fcn.1002eb80
add esp, 0xc
movzx eax, ax
mov word [esi], ax
xor ecx, ecx
test ax, ax
setne cl
movzx ecx, cx
pop edi
mov ax, cx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1003acef
mov esp, ebp
pop ebp
ret

Function at 0x10029610
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x100e9da8
pop ebp
jmp fcn.1003a080
Function at 0x10029ee0
Capabilities:
Create directory
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
push 1
push 0
push 0x18
mov dword [edi], 1
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
push 0x5a
push 0x78
mov dword [ebp - 4], edi
mov dword [edi + 0x22c], 0
mov dword [edi + 0x230], 0
mov dword [edi + 0x234], 0
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
push 0x208
lea esi, [edi + 0x24]
mov dword [edi + 0x1c], eax
push 0
push esi
call fcn.1003d670
add esp, 0xc
lea eax, [edi + 0x10]
push 0
push edi
push eax
call sub.gdiplus.dll_GdiplusStartup
push 0
push 0x27
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.Twain_Capture
push 0x104
push esi
call fcn.100596e0
add esp, 0xc
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1002a0e0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
mov eax, dword [0x100e7c94]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x66c], esi
mov eax, dword [esi + 0x238]
test eax, eax
je 0x1002a118
push eax
call dword [sym.imp.USER32.dll_CloseWindow]
mov dword [esi + 0x238], 0
push dword [esi + 0x10]
call sub.gdiplus.dll_GdiplusShutdown
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.1003d670
lea eax, [esi + 0x24]
push eax
push str._s.
mov dword [ebp - 0x668], eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1002afe0
add esp, 0x1c
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1002a1f3
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [ebp - 0x664]
push eax
push edi
call ebx
test eax, eax
je 0x1002a1f2
mov esi, dword [ebp - 0x668]
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.1003d670
add esp, 0xc
cmp word [ebp - 0x638], 0x2e
je 0x1002a1de
lea eax, [ebp - 0x638]
push eax
push esi
push str._s_s
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.1002afe0
add esp, 0x14
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x664]
push eax
push edi
call ebx
test eax, eax
jne 0x1002a190
mov esi, dword [ebp - 0x66c]
pop ebx
lea ecx, [esi + 0x22c]
call fcn.1002a070
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1003acef
mov esp, ebp
pop ebp
ret
Function at 0x1002a3f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
mov dword [ebp - 4], 0
call fcn.1002ad00
cmp dword [edi + 0x14], 0
mov ecx, eax
je 0x1002a4d6
cmp dword [edi + 0x1c], 0
je 0x1002a4d6
test ecx, ecx
js 0x1002a4d6
mov eax, dword [edi + 0x22c]
push esi
imul esi, ecx, 0x418
add eax, esi
push dword [eax + 0x414]
push dword [eax + 0x410]
push eax
push ecx
push str.Aquire:_select:__d_Name:__s_Resolution:__d_x__d_n
call fcn.1002afc0
mov eax, dword [edi + 0x22c]
add eax, 0x208
add eax, esi
push 0x100c5c14
push eax
lea eax, [ebp - 4]
push eax
call fcn.100599c1
add esp, 0x20
test eax, eax
je 0x1002a489
push 0
push str.Error
push str.Aqure_Fail.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop esi
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 8
push 2
push 0
push dword [ebp - 4]
call fcn.1005a221
push dword [ebp - 4]
call fcn.1005a9a9
push 0
push 0x36
push dword [ebp - 4]
lea esi, [eax - 0x36]
call fcn.1005a221
push dword [ebp - 4]
push esi
push 1
push dword [ebp + 8]
call fcn.10059d91
push dword [ebp - 4]
call fcn.10059af4
add esp, 0x30
mov ecx, edi
call fcn.1002a880
pop esi
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 8
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x1002a880
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x100e7c94]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
call fcn.1002ad00
push 0x208
mov esi, eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.1003d670
mov eax, dword [ebx + 0x14]
add esp, 0xc
test eax, eax
je 0x1002a96c
cmp dword [ebx + 0x1c], 0
je 0x1002a96c
test esi, esi
js 0x1002a96c
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x234], ecx
lea ecx, [ebp - 0x248]
push ecx
push esi
push 0x1073
push eax
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x230], 0x104
call edi
push 0
push esi
push 0x1008
push dword [ebx + 0x14]
call edi
mov eax, dword [ebx + 0x22c]
imul esi, esi, 0x418
add eax, 0x208
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebx + 0x22c]
add eax, esi
push eax
push dword [ebx + 0x230]
add eax, 0x418
push eax
call fcn.10029d10
add dword [ebx + 0x230], 0xfffffbe8
add esp, 0xc
push 0
push 0xffffffffffffffff
push 0x108c
push dword [ebx + 0x14]
call edi
mov ecx, ebx
call fcn.1002ad00
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1003acef
mov esp, ebp
pop ebp
ret

Function at 0x1002b470
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100e7c94]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push edi
mov edi, dword [ebp + 0x14]
push 0x208
push 0
push eax
call fcn.1003d670
add esp, 0xc
lea eax, [ebx + 0x1fa4034]
mov ecx, ebx
push eax
lea eax, [ebx + 0x1fa4030]
push eax
call fcn.1002d250
mov esi, dword [ebp + 0x18]
lea eax, [ebx + 0xfd202c]
push esi
push edi
push eax
mov dword [ebx + 0x1fa402c], esi
call fcn.1003cc70
movsd xmm0, qword [ebp + 0xc]
lea eax, [ebp - 0x20c]
add esp, 0xc
push esi
sub esp, 8
movsd qword [esp], xmm0
push str.buffer_cb_tm__f__d_n
push 0x104
push eax
call fcn.1002afe0
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
mov dword [ebx + 0x1c], 1
xor ecx, ebp
pop ebx
call fcn.1003acef
mov esp, ebp
pop ebp
ret 0x14
Function at 0x1002bd30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x100e7c94]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10c]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push ecx
push 0x20019
push 0
push str.settingsOEMSettings
push dword [eax + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1002bdb7
mov eax, dword [ebp + 0x14]
mov ecx, 0x104
cmp ecx, dword [eax]
sbb eax, eax
and eax, 5
add eax, 0xff
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push 0
push edi
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x10c]
test eax, eax
je 0x1002bdc9
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003acef
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x110]
lea eax, [ebp - 0x108]
push eax
push esi
call fcn.1003cc70
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov eax, 1
pop edi
pop esi
call fcn.1003acef
mov esp, ebp
pop ebp
ret
Function at 0x1002d310
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0x18], 0
push eax
push 0
push 0x20019
push 0
push 0
push 0
push str.SoftwareEmpiaTwain
push SysReAllocString
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1002d3aa
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 4
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 4
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push str.Width
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push str.Height
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [ecx], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
mov dword [ecx], eax
mov esp, ebp
pop ebp
ret 8

Function at 0x1002d3c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareEmpiaTwain
push SysReAllocString
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1002d442
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
push str.Width
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push str.Height
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 8

Function at 0x1002df70
Capabilities:
Delete file

Disassembly:
mov ecx, dword [0x14806248]
test ecx, ecx
je 0x1002df85
add ecx, 0x1fa4038
jmp fcn.1002a880
ret

Function at 0x1002dfb0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x14806248]
test ecx, ecx
je 0x1002dfc9
add ecx, 0x1fa4038
pop ebp
jmp fcn.1002aa20
pop ebp
ret 4
Function at 0x1002f5d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100e7c94]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
push ebx
mov ebx, dword [ebp + 0xc]
movq qword [ebp - 0x14], xmm0
mov dword [ebp - 0xc], 0
mov word [ebp - 8], 0
test ebx, ebx
je 0x1002f6b8
push edi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
je 0x1002f6b7
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, eax
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x1002f6b0
mov eax, 0x4d42
mov dword [ebp - 0x18], 0
mov word [ebp - 0x14], ax
movzx eax, word [ecx + 0xe]
imul eax, dword [ecx + 4]
push 0
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
imul eax, dword [ecx + 8]
add eax, dword [ecx + 0x20]
lea eax, [eax*4 + 0x36]
mov dword [ebp - 0x12], eax
xor eax, eax
mov dword [ebp - 0xe], eax
mov eax, dword [ecx + 0x20]
lea eax, [eax*4 + 0x36]
mov dword [ebp - 0xa], eax
lea eax, [ebp - 0x18]
push eax
push 0xe
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x12]
add eax, 0xfffffff2
push eax
push dword [ebp - 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1003acef
mov esp, ebp
pop ebp
ret

Function at 0x10030e80
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x100e7c94]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x204]
push 0xffffffffffffffff
push eax
call fcn.1001c400
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.10058d2e
add esp, 0x1c
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x100dc690
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003acef
mov esp, ebp
pop ebp
ret
Function at 0x10031a30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x100e7c94]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10c]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push ecx
push 0x20019
push 0
push str.settingsOEMSettings
push dword [eax + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10031ab1
lea eax, [ebp - 0x110]
mov ecx, 0x104
cmp dword [ebx], ecx
push eax
cmovbe ecx, dword [ebx]
lea eax, [ebp - 0x108]
push eax
push 0
push 0
push edi
push dword [ebp - 0x10c]
mov dword [ebp - 0x110], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x10c]
test eax, eax
je 0x10031ac4
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003acef
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x110]
lea eax, [ebp - 0x108]
push eax
push esi
call fcn.1003cc70
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.1003acef
mov esp, ebp
pop ebp
ret
Function at 0x100369a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x100e7c94]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.SoftwareUSB2800CameraAudio
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10036b91
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], 0x100
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x420]
push eax
push ebx
push str.AudioClass
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10036b85
mov ecx, 0x100cca88
lea eax, [ebp - 0x20c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10036a47
test dl, dl
je 0x10036a43
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10036a47
add eax, 2
add ecx, 2
test dl, dl
jne 0x10036a27
xor eax, eax
jmp 0x10036a4c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10036a92
test edi, edi
je 0x10036a66
movups xmm0, xmmword [0x100cca8c]
movups xmmword [edi], xmm0
mov al, byte [0x100cca9c]
mov byte [edi + 0x10], al
test esi, esi
je 0x10036b80
movups xmm0, xmmword [str.USB_Audio_Device]
movups xmmword [esi], xmm0
movups xmm0, xmmword [0x100ccab0]
movups xmmword [esi + 0x10], xmm0
mov ax, word [0x100ccac0]
mov word [esi + 0x20], ax
jmp 0x10036b80
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], 0x100
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x420]
push eax
push 0
push str.DeviceName
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10036b32
push 0x104
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x418]
lea eax, [ebp - 0x108]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test edi, edi
je 0x10036b0d
lea ecx, [ebp - 0x108]
mov eax, ecx
sub edi, eax
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edi + ecx - 1], al
test al, al
jne 0x10036b00
test esi, esi
je 0x10036b80
lea ecx, [ebp - 0x414]
mov eax, ecx
sub esi, eax
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [esi + ecx - 2], ax
test ax, ax
jne 0x10036b20
jmp 0x10036b80
test edi, edi
je 0x10036b50
movups xmm0, xmmword [0x100ccad0]
movups xmmword [edi], xmm0
mov eax, dword [0x100ccae0]
mov dword [edi + 0x10], eax
mov al, byte [0x100ccae4]
mov byte [edi + 0x14], al
test esi, esi
je 0x10036b80
movups xmm0, xmmword [str.USB_EMP_Audio_Device]
movups xmmword [esi], xmm0
movups xmm0, xmmword [0x100ccaf8]
movups xmmword [esi + 0x10], xmm0
movq xmm0, qword [0x100ccb08]
movq qword [esi + 0x20], xmm0
mov ax, word [0x100ccb10]
mov word [esi + 0x28], ax
mov ebx, 1
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003acef
mov esp, ebp
pop ebp
ret
Function at 0x10036d80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x100e7c94]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x30c]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.SoftwareUSB2800Camera
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10036f11
lea eax, [ebp - 0x308]
mov dword [ebp - 0x308], 0x100
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x310]
push eax
push ebx
push str.RealDSName
push dword [ebp - 0x30c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10036e65
push 0x104
lea eax, [ebp - 0x304]
push eax
push dword [ebp - 0x308]
lea eax, [ebp - 0x104]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test edi, edi
je 0x10036e34
lea ecx, [ebp - 0x104]
mov eax, ecx
sub edi, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edi + ecx - 1], al
test al, al
jne 0x10036e27
test esi, esi
je 0x10036f00
lea ecx, [ebp - 0x304]
mov eax, ecx
sub esi, eax
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [esi + ecx - 2], ax
test ax, ax
jne 0x10036e50
jmp 0x10036f00
lea eax, [ebp - 0x308]
mov dword [ebp - 0x308], 0x100
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x310]
push eax
push 0
push str.DSName
push dword [ebp - 0x30c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10036f05
push 0x104
lea eax, [ebp - 0x304]
push eax
push dword [ebp - 0x308]
lea eax, [ebp - 0x104]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test edi, edi
je 0x10036edd
lea ecx, [ebp - 0x104]
mov eax, ecx
sub edi, eax
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edi + ecx - 1], al
test al, al
jne 0x10036ed0
test esi, esi
je 0x10036f00
lea ecx, [ebp - 0x304]
mov eax, ecx
sub esi, eax
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [esi + ecx - 2], ax
test ax, ax
jne 0x10036ef0
mov ebx, 1
push dword [ebp - 0x30c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003acef
mov esp, ebp
pop ebp
ret