joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b92f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
xor ebx, ebx
cmp byte [0x419f90], bl
je 0x40b9ab
cmp byte [str.C:Program_Files__x86_DocCenterClt], bl
je 0x40b9ab
push esi
push str.C:Program_Files__x86_DocCenterClt
lea esi, [ebp - 0x408]
call fcn.0040b901
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
pop esi
test eax, eax
jne 0x40b9ab
push dword [ebp + 8]
call fcn.0040a384
inc eax
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x408]
push 1
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret 4

Function at 0x40b9b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
cmp byte [0x419f90], 0
je 0x40ba32
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x40c]
call fcn.0040b901
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop esi
test eax, eax
jne 0x40ba32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40ba29
lea eax, [ebp - 0x80c]
push eax
push dword [ebp + 8]
call fcn.0040a477
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 4

Function at 0x40bb8a
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp byte [0x419ede], 0
mov eax, dword [ebp + 0x10]
mov dword [0x419ee0], eax
mov eax, dword [ebp + 0x14]
mov dword [0x419ee4], eax
mov eax, dword [ebp + 0x18]
mov dword [0x419ed8], eax
je 0x40bbba
xor eax, eax
inc eax
jmp 0x40bbe3
cmp byte [0x419edf], 0
je 0x40bbc8
push 2
pop eax
jmp 0x40bbe3
push dword [ebp + 0xc]
push 0x40ae97
push dword [0x419f80]
push str.REPLACEFILEDLG
push dword [0x414c74]
call esi
dec eax
je 0x40bc44
dec eax
je 0x40bc23
dec eax
je 0x40bc3d
dec eax
jne 0x40bc16
push dword [ebp + 0xc]
push 0x40b193
push dword [0x419f80]
push str.RENAMEDLG
push dword [0x414c74]
call esi
test eax, eax
je 0x40bb94
mov eax, dword [ebp + 8]
mov byte [eax], 0x52
jmp 0x40bc55
dec eax
je 0x40bc2b
dec eax
jne 0x40bc55
mov byte [0x419edf], 1
mov eax, dword [ebp + 8]
mov byte [eax], 0x4e
jmp 0x40bc55
mov eax, dword [ebp + 8]
mov dword [0x419f78], 1
mov byte [eax], 0x43
jmp 0x40bc55
mov byte [0x419ede], 1
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
mov byte [eax], 0x59
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop esi
pop ebp
ret 0x18
Function at 0x40d33c
Capabilities:
Accept command line arguments
Set environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, 0x41fdc0
call fcn.0040e428
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov esi, eax
cmp esi, ebx
je 0x40d378
push esi
call fcn.0040b485
push esi
push str.sfxcmd
call edi
push 0x400
mov esi, str.C:UsersAdministratorDesktop23e948.exe
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
push str.sfxname
call edi
call fcn.00406ea5
test eax, eax
je 0x40d3ae
push 0x400
push 0x4192d8
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
jmp 0x40d3b6
xor eax, eax
mov word [0x4192d8], ax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
push 0x64
push edi
mov dword [0x414c78], edi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x65
push dword [0x414c78]
mov dword [0x4192d4], eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
lea ecx, [ebp - 8]
mov dword [0x4192d0], eax
call fcn.00411585
push esi
mov ecx, 0x414c88
call fcn.004098e0
lea ecx, [ebp - 0x40]
call fcn.00406479
lea ecx, [ebp - 0x24]
call fcn.00406479
push 0x64
call fcn.0040aca1
push 0x64
mov dword [ebp - 0x28], eax
call fcn.0040aca1
push ebx
push 0x40cc24
mov dword [ebp - 0xc], eax
push ebx
lea eax, [ebp - 0x40]
mov dword [0x418ecc], eax
push str.STARTDLG
lea eax, [ebp - 0x24]
push edi
mov dword [0x418ec8], eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
lea ecx, [ebp - 0x24]
mov dword [0x419f80], ebx
mov dword [0x418ec8], ebx
mov dword [0x418ecc], ebx
call fcn.0040648f
lea ecx, [ebp - 0x40]
call fcn.0040648f
lea ecx, [ebp - 8]
call fcn.004115fd
cmp byte [0x419f88], bl
je 0x40d477
call fcn.0040b729
push 0x80
push ebx
push 0x419ee8
call fcn.0040a289
cmp dword [0x41a824], ebx
jbe 0x40d49a
push dword [0x41a818]
call fcn.0040a205
push dword [0x4192d4]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x4192d0]
cmp eax, ebx
je 0x40d4b4
push eax
call esi
cmp dword [0x414c7c], ebx
jne 0x40d4d3
cmp dword [0x419f78], ebx
je 0x40d4d3
push 0xff
mov ecx, 0x414c7c
call fcn.0040325c
mov eax, dword [0x41a828]
mov dword [0x419f78], 2
cmp eax, ebx
je 0x40d4ec
push eax
call fcn.0040b6ea
call dword [sym.imp.ole32.dll_OleUninitialize]
push dword [0x414c7c]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x102cce98
Capabilities:
Access peb ldr_data

Disassembly:
setns cl
pushal
not cl
mov byte [ebp - 4], 0
push 0x4181fe50
lea ecx, [ebp - 0x288]
mov dword [esp], eax
pushfd
jmp loc.102c678a

Function at 0x102d39fd
Capabilities:
Packed with generic packer

Disassembly:
pushal
lea esp, [esp + 0x20]
call fcn.10070c21
pushfd
lea esp, [esp + 4]
leave
pushfd
pushfd
push ebx
pushfd
push dword [esp + 0x10]
ret 0x14
pushfd
bt ax, sp
xor ecx, ebp
lea esp, [esp + 4]
jne 0x102c5cef
push 0x229f5cd6
pushal
pushfd
lea esp, [esp + 0x28]
call fcn.10070c21
pushal
lea esp, [esp + 0x20]
leave
push ecx
push dword [esp + 4]
ret 8
pushfd
push 0x20f710af
lea esp, [esp + 0xc]
jge 0x102d313a
lea ecx, [ebp - 0x10]
pushal
lea esp, [esp + 0x20]
call fcn.1000abb5
sal ax, 7
mov eax, dword [ebp - 0x318]
and ecx, 0xb2fcb48f
mov ecx, dword [ebp - 0xc]
clc
clc
cmp bp, di
push 0xdb45cbfa
mov dword fs:[0], ecx
sub cl, al
sub cx, sp
mov ecx, dword [esp + 4]
shr ch, 3
add cl, dl
mov ecx, dword [ebp - 0x2c]
stc
pushal
clc
add esp, 0x28
jb 0x102d0c88
xor ecx, ebp
pushal
pushfd
lea esp, [esp + 0x24]
call fcn.10070c21
pushal
call fcn.102d255a
jmp loc.102c2806
Function at 0x41f993
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41f9d2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41f9d2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41f9d2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41f9d2
cmp dword [ecx + 0x74], 0xe
jbe 0x41f9d2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x432150
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43217d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43217d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x9c6058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.009c61a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x9c607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9c606a
add dl, dl
jne 0x9c6089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9c60dc
xor eax, eax
add dl, dl
jne 0x9c6096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9c617d
add dl, dl
jne 0x9c60a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9c60b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9c60bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9c60c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9c60d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x9c6075
mov eax, 1
add dl, dl
jne 0x9c60ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9c60f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9c60e1
sub eax, ebx
mov ebx, 1
jne 0x9c6128
mov ecx, 1
add dl, dl
jne 0x9c610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9c6119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9c6105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9c6075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x9c613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9c614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9c6136
cmp eax, 0x7d00
jae 0x9c616d
cmp eax, 0x500
jb 0x9c6168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9c6075
cmp eax, 0x7f
ja 0x9c6170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9c6075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x9c619e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x9c6075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x10001410
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x68
mov eax, dword [0x1014c240]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x6c]
xor ecx, ecx
push esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
push eax
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.100052e0
add esp, 4
lea esi, [esp + 8]
mov ecx, edi
call fcn.10005380
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
call fcn.100e200a
add esp, 0x68
ret
Function at 0x100015a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov esi, eax
lea eax, [esp + 0x18]
push eax
push 0x20119
xor edi, edi
push edi
push 0x10144b18
push reloc.WS2_32.dll_bind
mov ebx, ecx
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10001731
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
lea ecx, [esp + 0x10]
push ecx
mov dword [esi + 0x10], eax
push ebx
mov dword [esi + 0x14], eax
lea edx, [esp + 0x1c]
push edx
mov dword [esi + 0x18], eax
push eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x28]
push str.Operator
mov edi, 0x400
push eax
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10001633
cmp dword [esp + 0x14], 1
jne 0x10001718
mov eax, dword [esp + 0x10]
sub edi, eax
mov dword [esi], ebx
lea ebx, [eax + ebx]
je 0x10001718
mov eax, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x10]
push ecx
push ebx
lea edx, [esp + 0x1c]
push edx
push 0
push str.IssueDate
push eax
mov dword [esp + 0x28], edi
call ebp
test eax, eax
jne 0x10001678
cmp dword [esp + 0x14], 1
jne 0x10001718
mov eax, dword [esp + 0x10]
mov dword [esi + 4], ebx
sub edi, eax
add ebx, eax
test edi, edi
je 0x10001718
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push ebx
lea edx, [esp + 0x1c]
push edx
push 0
push str.ExpirationDate
push eax
mov dword [esp + 0x28], edi
call ebp
test eax, eax
jne 0x100016af
cmp dword [esp + 0x14], 1
jne 0x10001718
mov eax, dword [esp + 0x10]
mov dword [esi + 8], ebx
sub edi, eax
add ebx, eax
test edi, edi
je 0x10001718
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push ebx
lea edx, [esp + 0x1c]
push edx
push 0
push str.SignData
push eax
mov dword [esp + 0x28], edi
call ebp
test eax, eax
jne 0x10001718
cmp dword [esp + 0x14], 3
jne 0x10001718
mov eax, dword [esp + 0x10]
sub edi, eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ebx
je 0x10001718
lea eax, [esi + 0xc]
call fcn.10001480
test eax, eax
je 0x10001718
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov ecx, 0x400
sub ecx, edi
push eax
mov dword [edx], ecx
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x10001b50
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x6c
mov eax, dword [0x1014c240]
xor eax, esp
mov dword [esp + 0x68], eax
push esi
lea eax, [esp + 8]
mov esi, edx
push eax
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
call fcn.10003e40
add esp, 8
test eax, eax
jne 0x10001bbb
pop esi
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.100e200a
add esp, 0x6c
ret
mov eax, dword [esp + 0x74]
test eax, eax
jbe 0x10001bd0
push esi
lea ecx, [esp + 0x14]
call fcn.100052e0
add esp, 4
lea esi, [esp + 0x10]
mov ecx, ebx
call fcn.10005380
test edi, edi
je 0x10001bee
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp ecx, dword [esp + 8]
sete al
mov dword [edi], eax
mov ecx, dword [esp + 0x6c]
pop esi
xor ecx, esp
mov eax, 1
call fcn.100e200a
add esp, 0x6c
ret

Function at 0x10001c60
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x64
mov eax, dword [0x1014c240]
xor eax, esp
mov dword [esp + 0x5c], eax
xor eax, eax
push esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
push edi
lea eax, [esp + 8]
mov edi, ecx
push eax
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.10004040
add esp, 4
test eax, eax
jne 0x10001cbe
pop edi
pop esi
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.100e200a
add esp, 0x64
ret
lea esi, [esp + 8]
mov ecx, ebx
call fcn.10005380
mov ecx, dword [esp + 0x64]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.100e200a
add esp, 0x64
ret

Function at 0x10001ce0
Capabilities:
Hash data using sha256

Disassembly:
sub esp, 0x74
mov eax, dword [0x1014c240]
xor eax, esp
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x78]
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
push edi
lea ecx, [esp + 8]
push ecx
push eax
mov dword [esp + 0x10], 0x6a09e667
mov dword [esp + 0x14], 0xbb67ae85
mov dword [esp + 0x18], 0x3c6ef372
mov dword [esp + 0x1c], 0xa54ff53a
mov dword [esp + 0x20], 0x510e527f
mov dword [esp + 0x24], 0x9b05688c
mov dword [esp + 0x28], 0x1f83d9ab
mov dword [esp + 0x2c], 0x5be0cd19
call fcn.10004130
add esp, 8
test eax, eax
jne 0x10001d5f
pop edi
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.100e200a
add esp, 0x74
ret
mov eax, esi
lea edi, [esp + 8]
call fcn.10004ec0
mov ecx, dword [esp + 0x74]
pop edi
xor ecx, esp
mov eax, 1
call fcn.100e200a
add esp, 0x74
ret

Function at 0x10002750
Capabilities:
Read file on windows

Disassembly:
push ecx
push 0
lea eax, [esp + 4]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10002782
push str.ReadFile__
push 0xfc
push str..QHImageHlp.c
xor edx, edx
call fcn.10006210
add esp, 0xc
xor eax, eax
pop ecx
ret
cmp esi, dword [esp]
je 0x100027a7
push 0x10144cb0
push 0xfe
push str..QHImageHlp.c
mov edx, 1
call fcn.10006340
add esp, 0xc
xor eax, eax
pop ecx
ret
mov eax, 1
pop ecx
ret
Function at 0x100030d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x1014c240]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
push ebx
push ebp
xor ebx, ebx
push esi
mov esi, ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ebx
cmp eax, ebx
jne 0x10003103
mov dword [esp + 0x10], 0xffffffff
jmp 0x10003109
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push ebx
push ebx
push ebp
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x100031f8
push 0
lea edx, [esp + 0x1c]
push edx
push 8
lea eax, [esp + 0x30]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000315b
push str.ReadFile__
push 0xfc
push str..QHImageHlp.c
xor edx, edx
call fcn.10006210
add esp, 0xc
jmp 0x1000322e
mov eax, 8
cmp dword [esp + 0x18], eax
je 0x10003185
push 0x10144cb0
push 0xfe
lea edx, [eax - 7]
push str..QHImageHlp.c
call fcn.10006340
add esp, 0xc
jmp 0x1000322e
cmp dword [esp + 0x40], ebx
je 0x100031cb
mov ebx, eax
cmp dword [esp + 0x10], eax
jae 0x100031b1
push 0x10144d64
push 0x321
mov edx, 5
push str..QHImageHlp.c
call fcn.10006340
add esp, 0xc
jmp 0x1000322e
mov ecx, dword [esp + 0x24]
mov dx, word [esp + 0x28]
mov dword [esi], ecx
mov cx, word [esp + 0x2a]
mov word [esi + 4], dx
mov word [esi + 6], cx
jmp 0x10003226
mov esi, dword [esp + 0x24]
cmp esi, dword [esp + 0x10]
jbe 0x100031e3
push 0x10144d64
mov ebx, esi
push 0x32d
jmp 0x1000319d
mov edx, dword [esp + 0x38]
xor ebx, ebx
push ebx
push ebx
push ebp
push edx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x10003213
push str.SetFilePointerEx__
push 0xf9
push str..QHImageHlp.c
xor edx, edx
call fcn.10006210
add esp, 0xc
jmp 0x1000322e
mov ecx, dword [esp + 0x20]
mov edx, edi
call fcn.10002750
test eax, eax
je 0x1000322e
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10003238
mov dword [eax], ebx
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100e200a
add esp, 0x28
ret
Function at 0x10004660
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0x1c
mov eax, dword [0x1014c240]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
push ebp
xor ebp, ebp
mov dword [esp + 0xc], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], ebp
cmp eax, ebp
je 0x100047a0
cmp dword [esp + 0x28], ebp
je 0x100047a0
push ebx
push 0x2800
call fcn.100e425d
mov ebx, eax
add esp, 4
cmp ebx, ebp
jne 0x100046c3
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.100e200a
add esp, 0x1c
ret
push esi
push edi
xor edi, edi
jmp 0x100046d0
push edi
push str..PhysicalDrive_d
mov ecx, 0x2800
call fcn.100025e0
add esp, 8
push ebp
push 0x80
push 3
push ebp
push 3
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10004776
xor eax, eax
push 0x2800
push ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
call fcn.100e1f90
add esp, 0xc
push ebp
lea eax, [esp + 0x18]
push eax
push 0x2800
push ebx
push 0xc
lea ecx, [esp + 0x30]
push ecx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x10004769
mov eax, dword [ebx + 0x18]
cmp eax, ebp
jbe 0x10004769
mov edx, dword [esp + 0x18]
add eax, ebx
push eax
mov eax, dword [esp + 0x38]
push edx
push str.DISKID:
call fcn.10004400
add esp, 0xc
mov dword [esp + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], ebp
jne 0x10004780
inc edi
cmp edi, 0x10
jl 0x100046d0
push ebx
call fcn.100e4180
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.100e200a
add esp, 0x1c
ret
mov ecx, dword [esp + 0x1c]
pop ebp
xor ecx, esp
or eax, 0xffffffff
call fcn.100e200a
add esp, 0x1c
ret
Function at 0x10004850
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
xor esi, esi
push edi
xor edi, edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], esi
cmp dword [esp + 0x30], esi
je 0x1000488a
cmp dword [esp + 0x34], esi
je 0x1000488a
push 0x200
call fcn.100e425d
mov ebx, eax
add esp, 4
cmp ebx, esi
jne 0x10004895
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
lea eax, [esp + 0x14]
push eax
push 0x20119
push esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100049f4
mov edx, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x20]
push ecx
push ebx
push esi
push edx
mov dword [esp + 0x30], 0x100
call ebp
test eax, eax
jne 0x1000498a
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x100048ed
mov eax, reloc.WS2_32.dll_bind
lea ecx, [esp + 0x1c]
push ecx
push 0x20119
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10004963
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x20]
lea eax, [ebx + 4]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push str.ServiceName
push edx
mov dword [esp + 0x38], 1
mov dword [esp + 0x28], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10004958
mov eax, ebx
mov dword [ebx], 0x5c2e5c5c
call fcn.100047c0
cmp edx, edi
jb 0x10004958
ja 0x10004952
cmp eax, dword [esp + 0x24]
jbe 0x10004958
mov dword [esp + 0x24], eax
mov edi, edx
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x14]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
push ebx
inc esi
push esi
push edx
mov dword [esp + 0x30], 0x100
call ebp
test eax, eax
je 0x100048e0
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
ja 0x100049a0
cmp dword [esp + 0x24], 0
jbe 0x100049f4
mov ecx, dword [esp + 0x24]
push edi
push ecx
push str._012I64X
mov ecx, 0x200
call fcn.100025e0
add esp, 0xc
test eax, eax
jne 0x100049d9
push ebx
mov dword [esp + 0x1c], 0xffffffff
call fcn.100e4180
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
push ebx
push edx
push str.MAC:
call fcn.10004400
add esp, 0xc
mov dword [esp + 0x18], eax
push ebx
call fcn.100e4180
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret