joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001c6b0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
lea esi, [edi + 0x2c]
mov ecx, esi
call fcn.1000aec0
mov ecx, esi
call fcn.10008910
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001c704
push esi
lea eax, [ebp - 8]
mov ecx, edi
push eax
call fcn.1001c3c0
cmp dword [ebp - 4], 0
jl 0x1001c704
jg 0x1001c6f6
cmp dword [ebp - 8], 0x40000000
jbe 0x1001c704
mov ecx, esi
call fcn.10008910
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1001e250
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100aabd8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x100d8344]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x18]
xor ebx, ebx
push eax
mov dword [ebp - 0x18], ebx
call fcn.10008910
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x1001e3e1
push esi
call fcn.1000bbf0
mov edi, eax
add esp, 4
test edi, edi
je 0x1001e3e1
mov ecx, dword [ebp + 8]
push edi
push esi
push dword [ebp - 0x18]
call fcn.10008910
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1001e3d8
call fcn.1001e930
mov esi, dword [ebp + 0xc]
test eax, eax
je 0x1001e389
call fcn.1001e860
test eax, eax
jne 0x1001e389
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
lea eax, [ebp - 0x24]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1001e389
xor esi, esi
test dword [ebp - 0x14], 0xfffffffc
jbe 0x1001e386
nop dword [eax]
lea ecx, [ebp - 0x10]
call fcn.10008760
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], 0
lea ecx, [eax + esi*4]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x10]
push str.StringFileInfo_04x_04xFileVersion
push eax
call fcn.100090d0
add esp, 0x10
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.10008910
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x1001e3f5
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.10008890
mov eax, dword [ebp - 0x14]
inc esi
shr eax, 2
cmp esi, eax
jb 0x1001e310
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x20], 0
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], 0
push eax
push 0x100b27ec
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1001e3d8
mov ecx, dword [ebp - 0x20]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
push esi
call fcn.100090d0
add esp, 0x18
mov ebx, 1
push edi
call fcn.100454a0
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x1c]
mov esi, dword [ebp + 0xc]
mov ecx, esi
push dword [ebp - 0x20]
call fcn.1000a3e0
push 0x2e
push 0x2c
mov ecx, esi
call fcn.1001f330
push 0x20
mov ecx, esi
call fcn.1001f290
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
mov ebx, 1
call fcn.10008890
mov ecx, esi
call fcn.10009c40
test al, al
je 0x1001e3d8
jmp 0x1001e389
Function at 0x1001e7f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x100d8344]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], 0x114
push 0
push eax
call fcn.10055290
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1001e84d
cmp dword [ebp - 0x114], 6
jb 0x1001e84d
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10045358
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.10045358
mov esp, ebp
pop ebp
ret

Function at 0x1001ed80
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
call fcn.1001dd00
push dword [ebp + 0xc]
mov edx, dword [esi]
mov ecx, esi
push dword [ebp + 8]
mov edi, eax
call dword [edx + 0x40]
cmp edi, 1
jne 0x1001eea3
cmp dword [esi + 0x68], 0
je 0x1001eea3
push ebx
lea eax, [ebp + 8]
push eax
lea ecx, [esi + 4]
call fcn.1001f410
mov ecx, esi
call fcn.100193d0
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xf4]
test eax, eax
je 0x1001edeb
mov ecx, dword [eax]
push eax
call dword [ecx + 0x84]
test eax, eax
jne 0x1001edeb
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
ret 8
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 1
call edi
test eax, 0x8000
je 0x1001ee23
cmp dword [esi + 0x58], 0
jne 0x1001ee29
push 1
push 0
push 0x3401
lea ecx, [esi + 4]
mov dword [esi + 0x58], 1
mov dword [esi + 0x5c], 0
call fcn.1001f140
jmp 0x1001ee3d
cmp dword [esi + 0x58], 0
je 0x1001ee3d
cmp dword [esi + 0x5c], 0
jne 0x1001ee3d
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 1
push 2
call edi
test eax, 0x8000
je 0x1001ee79
cmp dword [esi + 0x60], 0
jne 0x1001ee7f
push 1
push 1
push 0x3401
lea ecx, [esi + 4]
mov dword [esi + 0x60], 1
mov dword [esi + 0x5c], 0
call fcn.1001f140
pop ebx
pop edi
mov eax, 2
pop esi
pop ebp
ret 8
cmp dword [esi + 0x60], 0
je 0x1001ee6d
cmp dword [esi + 0x5c], 0
mov eax, 2
jne 0x1001ede4
pop ebx
pop edi
mov dword [esi + 0x60], 0
mov dword [esi + 0x5c], 1
pop esi
pop ebp
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
ret 8
Function at 0x10027110
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x10027165
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi]
cmp dword [eax], 0xffffffff
jne 0x10027165
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
push eax
push str.create_file_error
push esi
call fcn.10028390
add esp, 0xc
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc
push 0
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100271a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
push eax
push str.write_file_error
push esi
call fcn.10028390
add esp, 0xc
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
cmp dword [ebp + 0x10], ecx
je 0x100271ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
push eax
push str.write_file_error_size_
push esi
call fcn.10028390
add esp, 0xc
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi + 4]
push 0x100b4db4
add dword [eax], ecx
mov ecx, dword [ebp + 8]
call fcn.10020e90
mov eax, dword [ebp + 8]
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10027510
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ab92a
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x100d8344]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x138], esi
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x134], 0
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.1000ad80
push 0
push 0
push 0
push 0
push str.WinInet
mov dword [ebp - 0x134], 1
mov dword [ebp - 0x130], 0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x13c], eax
test eax, eax
jne 0x100275ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.open_session_error
jmp 0x100276a4
push 0
push 0x84000000
push 0
push 0
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
mov dword [ebp - 0x130], ebx
test ebx, ebx
jne 0x100275dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.open_url_error
jmp 0x100276a4
mov ecx, esi
mov dword [ebp - 0x12c], 0
call fcn.10027f80
test al, al
jne 0x100276c6
nop word [eax + eax]
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.10055290
add esp, 0xc
lea eax, [ebp - 0x12c]
push eax
push 0x100
lea eax, [ebp - 0x110]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x10027698
mov esi, dword [ebp - 0x12c]
test esi, esi
je 0x100276c6
lea ecx, [ebp + 0x10]
call fcn.10026fe0
test al, al
je 0x10027683
push esi
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp + 0x10]
call fcn.100271f0
push eax
mov ecx, edi
call fcn.10026f70
lea ecx, [ebp - 0x128]
call fcn.1000ae10
mov ecx, edi
call fcn.1001b400
test al, al
je 0x100276c6
mov ecx, dword [ebp - 0x138]
call fcn.10027f80
test al, al
je 0x10027600
jmp 0x100276c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.read_url_file_error
lea eax, [ebp - 0x128]
push eax
call fcn.10028390
add esp, 0xc
mov ecx, edi
push eax
call fcn.10026f70
lea ecx, [ebp - 0x128]
call fcn.1000ae10
lea eax, [ebp - 0x13c]
push eax
call fcn.10027320
lea eax, [ebp - 0x130]
push eax
call fcn.10027320
add esp, 8
lea ecx, [ebp + 0x10]
call fcn.1000d2b0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10045358
mov esp, ebp
pop ebp
ret 0x30

Function at 0x100282f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 4], 0
jne 0x1002831f
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push esi
push 0x100281c0
push 0
push 0
call fcn.1006419f
add esp, 0x18
mov dword [esi + 4], eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1002b9e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xa
push 0
push 0
push dword [ebp + 0xc]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ebp
ret 8

Function at 0x100320b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ac9e0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100d8344]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [ebp - 0x24]
call fcn.10008760
movzx eax, word [ebp - 0x14]
push eax
movzx eax, word [ebp - 0x16]
push eax
movzx eax, word [ebp - 0x18]
push eax
movzx eax, word [ebp - 0x1a]
push eax
movzx eax, word [ebp - 0x1e]
push eax
movzx eax, word [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push str._04d__02d__02d__02d:_02d:_02d
push eax
call fcn.100090d0
add esp, 0x20
lea ecx, [ebp - 0x24]
call fcn.100097c0
add eax, eax
lea ecx, [ebp - 0x24]
push eax
call fcn.10008910
push eax
push 1
push str.recharge_mark
push str.SOFTWARE360WallPaperEver
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 2
push 0x54
push 0
lea ecx, [ebp - 0x38]
call fcn.10039cf0
mov ecx, dword [0x100dbe40]
mov byte [ebp - 4], 1
call fcn.1001a230
test eax, eax
je 0x10032180
mov edx, dword [eax]
lea ecx, [ebp - 0x38]
push 0
push ecx
mov ecx, eax
call dword [edx + 8]
lea ecx, [ebp - 0x38]
call fcn.10039d60
lea ecx, [ebp - 0x24]
call fcn.10008890
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10045358
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10037cd0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x100d8344]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x60], 0x690051
push ebx
push esi
mov word [ebp - 8], ax
lea esi, [ebp - 0x60]
mov eax, 0x100dc570
mov dword [ebp - 0x5c], 0x6f0068
push edi
mov dword [ebp - 0x58], 0x20006f
mov edx, 0x2d
mov dword [ebp - 0x54], 0x360033
sub esi, eax
mov dword [ebp - 0x50], 0x200030
mov dword [ebp - 0x4c], 0x6f0053
mov dword [ebp - 0x48], 0x740066
mov dword [ebp - 0x44], 0x610077
mov dword [ebp - 0x40], 0x650072
mov dword [ebp - 0x3c], 0x280020
mov dword [ebp - 0x38], 0x650042
mov dword [ebp - 0x34], 0x6a0069
mov dword [ebp - 0x30], 0x6e0069
mov dword [ebp - 0x2c], 0x290067
mov dword [ebp - 0x28], 0x430020
mov dword [ebp - 0x24], 0x6d006f
mov dword [ebp - 0x20], 0x610070
mov dword [ebp - 0x1c], 0x79006e
mov dword [ebp - 0x18], 0x4c0020
mov dword [ebp - 0x14], 0x6d0069
mov dword [ebp - 0x10], 0x740069
mov dword [ebp - 0xc], 0x640065
lea ecx, [edx + 0x7fffffd1]
test ecx, ecx
je 0x10037db0
movzx ecx, word [esi + eax]
test cx, cx
je 0x10037db0
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x10037d92
test edx, edx
lea ecx, [eax - 2]
pop edi
cmovne ecx, eax
xor eax, eax
pop esi
pop ebx
mov word [ecx], ax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10045358
mov esp, ebp
pop ebp
ret
Function at 0x100385b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x100d8344]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, 0x100dc800
mov dword [ebp - 0x5c], 0x680043
lea esi, [ebp - 0x5c]
mov dword [ebp - 0x58], 0x6e0065
push edi
mov dword [ebp - 0x54], 0x640067
mov edx, 0x2c
mov dword [ebp - 0x50], 0x200075
sub esi, eax
mov dword [ebp - 0x4c], 0x690041
mov dword [ebp - 0x48], 0x680073
mov dword [ebp - 0x44], 0x6e0061
mov dword [ebp - 0x40], 0x200067
mov dword [ebp - 0x3c], 0x66004f
mov dword [ebp - 0x38], 0x690066
mov dword [ebp - 0x34], 0x650063
mov dword [ebp - 0x30], 0x540020
mov dword [ebp - 0x2c], 0x630065
mov dword [ebp - 0x28], 0x6e0068
mov dword [ebp - 0x24], 0x6c006f
mov dword [ebp - 0x20], 0x67006f
mov dword [ebp - 0x1c], 0x200079
mov dword [ebp - 0x18], 0x6f0043
mov dword [ebp - 0x14], 0x2c002e
mov dword [ebp - 0x10], 0x4c0020
mov dword [ebp - 0xc], 0x640074
mov dword [ebp - 8], 0x2e
nop dword [eax]
lea ecx, [edx + 0x7fffffd2]
test ecx, ecx
je 0x1003868e
movzx ecx, word [esi + eax]
test cx, cx
je 0x1003868e
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x10038670
test edx, edx
lea ecx, [eax - 2]
pop edi
cmovne ecx, eax
xor eax, eax
pop esi
pop ebx
mov word [ecx], ax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10045358
mov esp, ebp
pop ebp
ret
Function at 0x1003f900
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ad6b8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x100d8344]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, word [ebp + 8]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x1003f94e
xor eax, eax
jmp 0x1003fa6c
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1003f96c
xor eax, eax
jmp 0x1003fa6c
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x1003f991
xor eax, eax
jmp 0x1003fa6c
mov edx, dword [ebp - 0x18]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1003f9b7
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x1003fa6c
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x1003f9e5
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x1003fa6c
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
call fcn.10054790
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.1003f0e0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x1c]
call fcn.1003f2e0
push eax
push 1
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x1003fa4a
push 0
lea ecx, [ebp - 0x1c]
call fcn.1003c0b0
push eax
call fcn.1003f760
add esp, 8
mov dword [ebp - 0x28], eax
jmp 0x1003fa54
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.1003f230
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x10046530
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ec
mov eax, dword [0x100d8344]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2ec], ebx
push edi
test ebx, ebx
je 0x10046734
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x10046734
push esi
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.10055290
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x2d8]
add esp, 0xc
push eax
push 8
push 0
push 0x100bae28
push 0x80000002
call esi
test eax, eax
jne 0x10046709
xor edi, edi
mov dword [ebp - 0x2dc], 0x104
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x2dc]
push eax
lea eax, [ebp - 0x1d0]
push eax
push edi
push dword [ebp - 0x2d8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x100466f8
lea eax, [ebp - 0x2e0]
push eax
push 1
push 0
lea eax, [ebp - 0x1d0]
push eax
push dword [ebp - 0x2d8]
call esi
test eax, eax
jne 0x100466c2
lea eax, [ebp - 0x2e4]
mov dword [ebp - 0x2e8], 1
push eax
lea eax, [ebp - 0x2d4]
mov dword [ebp - 0x2e4], 0x104
push eax
lea eax, [ebp - 0x2e8]
push eax
push 0
push 0x100bae64
push dword [ebp - 0x2e0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100466ba
push 0x64
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.10055290
push 0x64
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x2d4]
push eax
call fcn.10046750
add esp, 0x18
test eax, eax
je 0x100466ba
cmp byte [ebp - 0x68], 0
je 0x1004667c
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jns 0x100466ba
lea ecx, [ebp - 0x68]
mov edx, 0x64
lea esi, [ebp - 0xcc]
mov eax, ecx
sub esi, eax
nop
lea eax, [edx + 0x7fffff9a]
test eax, eax
je 0x100466a9
mov al, byte [esi + ecx]
test al, al
je 0x100466a9
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x10046690
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ecx - 1]
test edx, edx
cmovne eax, ecx
mov byte [eax], 0
push dword [ebp - 0x2e0]
call ebx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2dc]
mov dword [ebp - 0x2dc], 0x104
push eax
lea eax, [ebp - 0x1d0]
inc edi
push eax
push edi
push dword [ebp - 0x2d8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x100465d0
push dword [ebp - 0x2d8]
call ebx
mov ebx, dword [ebp - 0x2ec]
mov edi, dword [ebp + 0xc]
cmp byte [ebp - 0x68], 0
pop esi
je 0x10046734
lea eax, [ebp - 0x68]
push eax
push edi
push ebx
call fcn.1001b6b0
xor ecx, ecx
test eax, eax
pop edi
setns cl
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10045358
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.10045358
mov esp, ebp
pop ebp
ret
Function at 0x10046870
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50c
mov eax, dword [0x100d8344]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x100469ef
cmp dword [ebp + 0xc], 0x20
jb 0x100469ef
push 0x400
lea eax, [ebp - 0x504]
mov dword [ebp - 0x50c], 1
push 0
push eax
mov dword [ebp - 0x508], 0x400
call fcn.10055290
add esp, 0xc
lea eax, [ebp - 0x508]
push eax
lea eax, [ebp - 0x504]
push eax
lea eax, [ebp - 0x50c]
push eax
push 0x100baed0
push str.SoftwareMaster2Liveup
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x100469ef
lea ecx, [ebp - 0x504]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10046900
sub ecx, edx
cmp ecx, 0x40
jne 0x100469ef
lea edx, [ecx + 0x40]
push esi
lea ecx, [ebp - 0x84]
lea esi, [ebp - 0x504]
mov eax, ecx
sub esi, eax
lea eax, [edx - 0x60]
test eax, eax
je 0x1004693c
mov al, byte [esi + ecx]
test al, al
je 0x1004693c
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x10046926
test edx, edx
lea eax, [ecx - 1]
lea esi, [ebp - 0x4e4]
mov edx, 0x80
cmovne eax, ecx
lea ecx, [ebp - 0x104]
mov byte [eax], 0
mov eax, ecx
sub esi, eax
nop dword [eax]
lea eax, [edx + 0x7fffff7e]
test eax, eax
je 0x10046979
mov al, byte [esi + ecx]
test al, al
je 0x10046979
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x10046960
test edx, edx
lea eax, [ecx - 1]
push 0x400
cmovne eax, ecx
push 0
mov byte [eax], 0
lea eax, [ebp - 0x504]
push eax
call fcn.10055290
push 0x400
lea eax, [ebp - 0x504]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.10046a00
add esp, 0x18
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x504]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
pop esi
test eax, eax
jne 0x100469ef
lea eax, [ebp - 0x84]
push eax
push dword [ebp + 0xc]
push edi
call fcn.1001b6b0
neg eax
pop edi
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10045358
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.10045358
mov esp, ebp
pop ebp
ret
Function at 0x100472c0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2c10
call fcn.10045420
mov eax, dword [0x100d8344]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c10], eax
test eax, eax
je 0x1004742d
cmp dword [ebp + 0xc], 0
je 0x1004742d
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
nop dword [eax]
push esi
push 0x100badd8
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.10047720
add esp, 0x10
lea eax, [ebp - 0x104]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10047410
push 0x2710
xorps xmm0, xmm0
mov dword [ebp - 0x2c0c], 0
lea eax, [ebp - 0x2bfc]
movq qword [ebp - 0x2c08], xmm0
push 0
push eax
mov dword [ebp - 0x2c00], 0
mov dword [ebp - 0x2c08], 0
mov dword [ebp - 0x2c04], 0
call fcn.10055290
add esp, 0xc
lea eax, [ebp - 0x2c0c]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2bfc]
push eax
push 0xc
lea eax, [ebp - 0x2c08]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x10047405
push 0x3e8
lea eax, [ebp - 0x4ec]
push 0
push eax
call fcn.10055290
lea eax, [ebp - 0x4ec]
push eax
push 1
push dword [ebp - 0x2be4]
lea eax, [ebp - 0x2bfc]
push eax
call fcn.10048430
add esp, 0x1c
lea eax, [ebp - 0x4ec]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x2c10]
call fcn.1001b6b0
test eax, eax
mov eax, 1
cmove ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x1004741a
inc esi
cmp esi, 0x10
jl 0x10047300
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10045358
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.10045358
mov esp, ebp
pop ebp
ret