joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410030a0
Capabilities:
Access peb ldr_data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41147056
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x411bade8]
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 eax, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [ebp + 0xc]
push 0x38
mov dword [esi + 8], eax
lea eax, [esi + 0x10]
push str.1.2.8
mov ebx, 1
push eax
mov dword [esi + 0xc], ecx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x30], 0x41002de0
mov dword [esi + 0x34], 0x41002dc0
mov dword [esi + 0x38], 0
mov dword [ebp - 0x218], eax
call fcn.41038fb0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x41003180
mov edx, dword [esi + 0x28]
push edx
lea ecx, [ebp - 0x218]
call fcn.41003000
mov eax, dword [ebp - 0x218]
push eax
push edi
push str.PPD_file_ZIP_ERROR:__d:_s
push 0x2000001
push 0x45
push str.Decompress.cpp
mov dword [ebp - 4], 0
call fcn.41002c10
mov eax, dword [ebp - 0x218]
add eax, 0xfffffff0
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41003178
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4100323f
lea ecx, [ebp - 0x214]
push ecx
push 0x200
lea edx, [ebp - 0x210]
push edx
mov ecx, esi
call fcn.41002e50
mov edi, eax
test edi, edi
je 0x410031a5
cmp edi, 1
jne 0x410031cc
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x410031c5
mov ecx, dword [esi + 4]
push ecx
push eax
lea edx, [ebp - 0x210]
push 1
push edx
call fcn.4112ed62
add esp, 0x10
cmp edi, 1
jne 0x41003180
jmp 0x4100322e
mov eax, dword [esi + 0x28]
push eax
lea ecx, [ebp - 0x214]
call fcn.41003000
mov ecx, dword [ebp - 0x214]
push ecx
push edi
push str.PPD_file_ZIP_ERROR:__d:_s
push 0x2000001
push 0x53
push str.Decompress.cpp
mov dword [ebp - 4], 1
call fcn.41002c10
mov eax, dword [ebp - 0x214]
add eax, 0xfffffff0
add esp, 0x18
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4100322e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x218]
push ecx
call fcn.4103a600
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.4112e1a6
mov esp, ebp
pop ebp
ret 8
Function at 0x410039d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x410039e6
push 0x80004005
call fcn.410011f0
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push edi
push esi
lea eax, [ebp + 0x10]
push eax
mov eax, dword [ecx]
push 0
push edx
push eax
mov dword [ebp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
je 0x41003a4b
mov ecx, dword [edi]
test ecx, ecx
je 0x41003a46
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x41003a6e
cmp edx, 2
jbe 0x41003a51
cmp edx, 7
jne 0x41003a6e
test cl, 1
jne 0x41003a41
shr ecx, 1
cmp ecx, 1
jb 0x41003a41
cmp word [esi + ecx*2 - 2], 0
jne 0x41003a41
cmp ecx, 1
jbe 0x41003a4b
cmp word [esi + ecx*2 - 4], 0
je 0x41003a4b
mov eax, 0xd
xor ecx, ecx
mov word [esi], cx
pop edi
pop esi
pop ebp
ret 0xc
test cl, 1
jne 0x41003a60
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x41003a4b
xor edx, edx
pop edi
mov word [esi], dx
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc

Function at 0x410053a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411472df
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x411bade8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [esi], vtable.CPostScriptDriver.0
cmp dword [esi + 0x88], 0
mov dword [ebp - 4], 3
je 0x41005457
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea esp, [esp]
mov eax, dword [esi + 0x80]
mov eax, dword [eax + 8]
push eax
call edi
push eax
mov eax, dword [esi + 0x80]
mov ecx, dword [eax + 8]
push ecx
push str.Delete_File___s____d
push 0x1000001
push 0xde
push str.PostScriptDriver.cpp
call fcn.41002c10
add esp, 0x18
lea edx, [ebp - 0x10]
push edx
lea ecx, [esi + 0x7c]
call fcn.41041d14
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4100544e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi + 0x88], 0
jne 0x410053f0
mov eax, dword [esi + 0x98]
sub eax, 0x10
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4100547d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 1
call fcn.41041cc9
lea ecx, [esi + 0x18]
call fcn.41004fb0
lea ecx, [esi + 8]
call fcn.41004fb0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41006f3c
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
push edi
push esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
add eax, 0xc
mov eax, dword [eax]
mov edx, dword [eax + 0x30]
test edx, edx
je 0x41006f4b
test ecx, ecx
je 0x41006f89
movzx edi, word [edx]
test di, di
je 0x41006f83
add edx, 2
xor esi, esi
lea ebx, [edi - 0x41]
cmp bx, 0x1a
jae 0x41006f71
add edi, 0x20
movzx edi, di
add esi, edi
movzx edi, word [edx]
add edx, 2
test di, di
jne 0x41006f65
jmp 0x41006f85
xor esi, esi
cmp esi, ecx
jne 0x41006f4b
mov eax, dword [eax + 0x18]
pop esi
pop edi
pop ebx
ret

Function at 0x41006f90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x21c
mov dword [esp + 0x10], edx
mov eax, dword [ecx + 0x3c]
mov eax, dword [ecx + eax + 0x78]
mov edx, dword [ecx + eax + 0x20]
add edx, ecx
mov dword [esp + 0xc], edx
mov edx, dword [ecx + eax + 0x1c]
mov dword [esp + 8], edx
mov dword [esp], ecx
mov eax, dword [ecx + eax + 0x24]
mov dword [esp + 4], eax
xor eax, eax
lea ebx, [esp + 0x14]
mov edi, eax
mov eax, dword [esp + 0xc]
mov ebp, dword [eax + edi*4]
add ebp, dword [esp]
mov ecx, ebx
call fcn.41007107
mov ecx, ebp
call fcn.410070a7
add byte [eax], al
test eax, eax
je 0x41006ff3
movsx ecx, byte [ebp + eax]
mov word [esp + eax*2 + 0x14], cx
dec eax
jne 0x41006fe6
movsx eax, byte [ebp]
mov word [esp + 0x14], ax
mov ecx, ebx
call fcn.410070d7
test eax, eax
je 0x41007026
mov ecx, dword [esp + 0x230]
mov edx, dword [ecx + 0x68]
xor ecx, ecx
mov ebp, ebx
imul ecx, edx
movzx esi, word [ebp]
add ecx, esi
add ebp, 2
dec eax
jne 0x41007015
jmp 0x41007028
xor ecx, ecx
lea eax, [edi + 1]
cmp ecx, dword [esp + 0x10]
jne 0x41006fc8
mov eax, dword [esp]
mov ecx, dword [esp + 4]
add ecx, eax
mov edx, dword [esp + 8]
add edx, eax
movzx ecx, word [ecx + edi*2]
add eax, dword [edx + ecx*4]
add esp, 0x21c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4100f570
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 4]
push ecx
push str.SoftwareThinPrintTPAutoConnect
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esi], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x4100f5cf
push str.SoftwareThinPrintTPAutoConnect
push str.cannot_open_regkey___s_
push 0x1000001
push 0x222
push str.TPADLL.cpp
call fcn.41002c10
add esp, 0x14
xor eax, eax
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp - 4]
push 0
lea eax, [ebp - 8]
push eax
push 0
push ecx
push edx
call ebx
test eax, eax
jne 0x4100f644
cmp dword [ebp - 8], 4
jne 0x4100f644
cmp dword [ebp - 0xc], eax
je 0x4100f644
mov edx, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push esi
lea ecx, [ebp - 8]
push ecx
push 0
push edx
push eax
call ebx
test eax, eax
jne 0x4100f62e
cmp dword [ebp - 8], 4
jne 0x4100f62e
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41010100
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ebp + 0xc]
push esi
lea eax, [ebp - 4]
push eax
push edx
mov edx, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
mov eax, dword [ecx]
push 0
push edx
push eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41010151
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x41010460
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41147ee8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x411bade8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov ecx, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.41001410
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [edi]
push ebx
lea ecx, [ebp - 0x14]
push ecx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edx
push eax
call ebx
mov ecx, eax
mov dword [ebp + 0xc], ecx
test ecx, ecx
jne 0x41010577
mov eax, dword [ebp - 0x14]
cmp eax, 1
je 0x410104db
cmp eax, 7
je 0x410104db
cmp eax, 2
jne 0x41010577
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x41010577
add edx, 0x80
mov dword [ebp - 0x10], edx
jns 0x410104fb
push 0x80070057
call fcn.410011f0
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or eax, ecx
jge 0x41010516
push edx
mov ecx, esi
call fcn.41001480
mov eax, dword [esi]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [edi]
push eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x14]
push edx
push 0
push eax
push ecx
call ebx
mov edx, dword [ebp - 0x10]
shr edx, 1
push edx
mov ecx, esi
mov edi, eax
call fcn.410078d0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41010561
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or esi, 0xffffffff
lock xadd dword [edx], esi
dec esi
test esi, esi
jg 0x410105a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 0xc]
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41016260
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x411bade8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push edi
or ecx, 0x2001f
push ecx
xor ebx, ebx
push eax
push edx
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x208], ebx
call fcn.41003910
mov edi, eax
cmp edi, ebx
je 0x410162da
mov eax, dword [ebp - 0x210]
cmp eax, ebx
je 0x410162c5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.4112e1a6
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x210]
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x204]
push edx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push eax
mov dword [ebp - 0x214], 0x100
call ebx
test eax, eax
jne 0x41016358
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x210]
call fcn.41016260
mov edi, eax
test edi, edi
jne 0x41016391
lea edx, [ebp - 0x220]
push edx
mov edx, dword [ebp - 0x210]
push eax
push eax
push eax
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x204]
push ecx
push edi
push edx
mov dword [ebp - 0x214], 0x100
call ebx
test eax, eax
je 0x41016310
mov eax, dword [ebp - 0x210]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
cmp eax, edi
je 0x41016373
push eax
call ebx
mov dword [ebp - 0x210], edi
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x218]
mov dword [ebp - 0x20c], edi
push eax
cmp ecx, edi
je 0x410163bb
mov edx, dword [esi]
push edx
call fcn.410157a0
jmp 0x410163c4
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x410162c5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.4112e1a6
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [ebp - 0x210]
cmp eax, edi
je 0x410163d3
push eax
call ebx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.4112e1a6
mov esp, ebp
pop ebp
ret 4
Function at 0x410190f0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
push edi
mov edi, ecx
mov dword [ebp - 4], 0x104
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, 0x104
or ecx, edx
jge 0x41019125
push 0x104
mov ecx, esi
call fcn.41001480
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [esi]
push ebx
push 0
push 0
push 0
lea ebx, [eax + 1]
push 0
mov dword [edx], ebx
lea edx, [ebp - 4]
push edx
push ecx
push eax
mov eax, dword [edi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
mov eax, dword [esi]
mov ecx, dword [eax - 8]
pop ebx
test eax, eax
je 0x41019163
push ecx
push eax
call fcn.4112dcda
add esp, 8
test eax, eax
js 0x4101917f
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x4101917f
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.410011f0
int3

Function at 0x41019190
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
push edi
mov edi, ecx
mov dword [ebp - 4], 0x104
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, 0x104
or ecx, edx
jge 0x410191c5
push 0x104
mov ecx, esi
call fcn.41001480
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [esi]
push ebx
push 0
push 0
lea ebx, [eax + 1]
mov dword [edx], ebx
mov edx, dword [ebp + 0x10]
push edx
push 0
lea edx, [ebp - 4]
push edx
push ecx
push eax
mov eax, dword [edi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
mov eax, dword [esi]
mov ecx, dword [eax - 8]
pop ebx
test eax, eax
je 0x41019205
push ecx
push eax
call fcn.4112dcda
add esp, 8
test eax, eax
js 0x41019221
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x41019221
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
push 0x80070057
call fcn.410011f0
int3
Function at 0x4101a0f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411486f8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x411bade8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
lea ebx, [eax + 1]
call fcn.41001410
mov esi, dword [edi + 4]
mov dword [edi + 0x1c], 0xffffffff
test esi, esi
je 0x4101a16b
mov eax, dword [esi + 8]
mov esi, dword [esi]
inc dword [edi + 0x1c]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
push 0
lea edx, [ebp - 0x14]
push edx
push 0
push ecx
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
cmp ebx, 2
jne 0x4101a1a7
test esi, esi
jne 0x4101a13e
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4101a191
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 8
test ebx, ebx
jne 0x4101a16b
mov eax, dword [ebp - 0x14]
cmp eax, 1
je 0x4101a1bd
cmp eax, 7
je 0x4101a1bd
cmp eax, 2
jne 0x4101a16b
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x4101a16b
add edx, 0x80
mov dword [ebp - 0x10], edx
jns 0x4101a1d9
push 0x80070057
call fcn.410011f0
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or eax, ecx
jge 0x4101a1f7
push edx
mov ecx, esi
call fcn.41001480
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x10]
push edx
mov edx, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov eax, dword [ebp - 0x10]
shr eax, 1
push eax
mov ecx, esi
call fcn.410078d0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4101a247
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4101a6f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41148786
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x411bade8]
xor eax, ebp
mov dword [ebp - 0x14], 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 [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor edx, edx
mov dword [ebp - 0x430], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], edx
mov dword [ebp - 0x418], edx
push 2
push edx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x420], esi
test esi, esi
jne 0x4101a76d
call fcn.41015120
mov edi, eax
jmp 0x4101a85d
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4101a786
call fcn.41015120
jmp 0x4101a854
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
jne 0x4101a7a4
call fcn.41015120
jmp 0x4101a854
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x41c], edi
cmp eax, edi
jae 0x4101a7c5
mov edi, 0x8007000e
jmp 0x4101a856
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.41017900
mov dword [ebp - 4], 1
jmp 0x4101a808
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x4101a819
mov edi, 0x8007000e
jmp 0x4101a856
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x4101a832
call fcn.41015120
jmp 0x4101a854
mov edx, dword [ebp - 0x418]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x418]
push eax
push ecx
lea ecx, [ebp - 0x42c]
call fcn.41019d00
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0x414]
cmp dword [ebp - 0x418], edx
je 0x4101a880
lea ecx, [ebp - 0x418]
call fcn.41001400
jmp 0x4101a880
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 - 0x14]
xor ecx, ebp
call fcn.4112e1a6
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4101b340
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41148866
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x411bade8]
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 ebx, dword [ebp + 8]
mov edi, ecx
call fcn.41040000
xor ecx, ecx
xor esi, esi
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x4101b38f
push 0x80004005
call fcn.410011f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x214], eax
push esi
push 0x411584dc
lea ecx, [ebp - 0x214]
mov dword [ebp - 4], esi
mov dword [ebp - 0x218], esi
call fcn.410016e0
mov ecx, dword [edi]
push 0x2001f
push ebx
push ecx
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], 1
call fcn.41010fa0
mov esi, eax
test esi, esi
jne 0x4101b4a5
lea edx, [ebp - 0x224]
push edx
mov edx, dword [ebp - 0x218]
push eax
push eax
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x210]
push ecx
push esi
push edx
mov dword [ebp - 0x21c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4101b46c
jmp 0x4101b420
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x218]
call fcn.4101b340
mov esi, eax
test esi, esi
jne 0x4101b4a5
lea ecx, [ebp - 0x224]
push ecx
mov ecx, dword [ebp - 0x218]
push eax
push eax
push eax
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x210]
push eax
push esi
push ecx
mov dword [ebp - 0x21c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4101b420
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x4101b487
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x218], 0
push 0
push 0x411584dc
lea ecx, [ebp - 0x214]
call fcn.410016e0
mov edx, dword [edi]
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], 0xffffffff
call fcn.41010de0
mov eax, esi
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.4112e1a6
mov esp, ebp
pop ebp
ret 4
Function at 0x41022a60
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x411bade8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
push edi
xor edi, edi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x218], edi
cmp eax, esi
je 0x41022b36
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x41022b36
push ebx
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
cmp ebx, esi
je 0x41022b35
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
cmp edi, esi
je 0x41022b2f
mov ecx, dword [ebp - 0x214]
push edi
push ebx
push ecx
lea edx, [ebp - 0x20c]
push edx
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x210]
push ecx
push 0x41158aa4
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41022b28
mov eax, dword [ebp - 0x210]
mov esi, dword [eax + 0x10]
movzx edx, word [eax + 0x16]
movzx eax, word [eax + 0x12]
shl esi, 0x10
or esi, edx
mov dword [ebp - 0x218], eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edi, dword [ebp - 0x218]
pop ebx
mov ecx, dword [ebp - 4]
mov edx, edi
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.4112e1a6
mov esp, ebp
pop ebp
ret