joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402640
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bfee8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4f6414]
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, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0
test esi, esi
je 0x40270f
cmp byte [esi], 0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jne 0x4026ac
xor ecx, ecx
jmp 0x4026ba
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4026b1
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.00404ed0
push 0x4e88e8
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00403700
push edi
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
call fcn.00403700
add esp, 0x18
lea ecx, [ebp - 0x28]
push eax
call fcn.004030c0
lea ecx, [ebp - 0x58]
call fcn.004048f0
lea ecx, [ebp - 0x70]
call fcn.004048f0
lea ecx, [ebp - 0x40]
call fcn.004048f0
jmp 0x402733
cmp byte [edi], 0
jne 0x402718
xor ecx, ecx
jmp 0x402729
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402720
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.00404ed0
push dword [ebp + 0x14]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
push ebx
push eax
push 0x4e88ec
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [ebp - 0x28]
call fcn.004048f0
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.004640c2
mov esp, ebp
pop ebp
ret

Function at 0x402780
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bff18
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4f6414]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call fcn.00403340
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.00401c90
mov edi, dword [ebp - 0x14]
mov esi, dword [edi]
cmp esi, edi
je 0x402809
nop dword [eax]
push dword [esi + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x402803
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esi]
cmp esi, edi
jne 0x4027e0
mov eax, dword [edi]
mov dword [edi], edi
mov dword [edi + 4], edi
cmp eax, edi
je 0x402825
mov esi, dword [eax]
push eax
call fcn.0043a731
add esp, 4
mov eax, esi
cmp esi, edi
jne 0x402814
push edi
call fcn.0043a731
add esp, 4
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 0x402840
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bff48
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x4f6414]
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 dword [ebp - 0x30], edx
mov ebx, ecx
cmp byte [ebx], 0
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jne 0x402891
xor ecx, ecx
jmp 0x40289d
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402894
sub ecx, edx
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.00404ed0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
mov edi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
cmovae eax, edi
cmp byte [ecx + eax - 1], 0x5c
je 0x40292a
or eax, 0xffffffff
sub eax, ecx
cmp eax, 1
ja 0x4028db
push str.string_too_long
call fcn.00418567
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
jbe 0x4028ed
push str.string_too_long
call fcn.00418567
cmp edx, esi
jae 0x402936
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00404bf0
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x28]
test esi, esi
je 0x402927
cmp edx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, edi
mov byte [eax + ecx], 0x5c
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x18], esi
cmovae eax, dword [ebp - 0x28]
mov byte [eax + esi], 0
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
cmp byte [edi], 0
jne 0x40294b
xor ecx, ecx
jmp 0x402959
test esi, esi
jne 0x402908
cmp edx, 0x10
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x28]
cmovae eax, edi
mov byte [eax], 0
jmp 0x402927
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402950
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.00404790
push 0x38
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.00465ca0
add esp, 0xc
mov dword [ebp - 0x6c], 0x3c
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x68], 0x440
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
push 0xffffffffffffffff
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x28]
call fcn.004048f0
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.004640c2
mov esp, ebp
pop ebp
ret
Function at 0x4029f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bff78
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4f6414]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
lea edx, [ebp - 0x2c]
mov dword [ebp - 4], 0
push edx
push dword [ebp + 0x1c]
mov dword [ebp - 0x2c], 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402ab9
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x18]
cmp ecx, eax
ja 0x402a83
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
mov byte [eax + ecx], 0
jmp 0x402a90
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.00404000
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp + 0x18]
push ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push edi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
mov dword [esi + 0x14], 0xf
cmovae edx, dword [ebp - 0x28]
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [edx], 0
jne 0x402ade
xor ecx, ecx
jmp 0x402aec
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402ae3
sub ecx, edi
push ecx
push edx
mov ecx, esi
call fcn.00404ed0
lea ecx, [ebp - 0x28]
call fcn.004048f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004640c2
mov esp, ebp
pop ebp
ret

Function at 0x402b20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x402b45
xor al, al
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop esi
sete al
mov esp, ebp
pop ebp
ret

Function at 0x402b70
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402b9b
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esp, ebp
pop ebp
ret
Function at 0x402ba0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bffe2
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x4f6414]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x118]
push 0x105
push 0
push eax
call fcn.00465ca0
add esp, 0xc
lea eax, [ebp - 0x118]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 2
push 0x4e88f4
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
call fcn.00404ed0
cmp byte [ebp + 0xc], 0
mov dword [ebp - 4], 0
jne 0x402c43
push 3
push 0x4e88f8
lea ecx, [ebp - 0x130]
call fcn.00404790
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x134], 0xf
mov dword [ebp - 0x138], 0
mov byte [ebp - 0x148], 0
call fcn.00404a00
push 1
push 0
lea eax, [ebp - 0x1ac]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x148]
mov byte [ebp - 0x1ac], 0x20
call fcn.004031e0
cmp eax, 0xffffffff
je 0x402d69
push 1
push 0x4e88e4
lea ecx, [ebp - 0x178]
mov dword [ebp - 0x164], 0xf
mov dword [ebp - 0x168], 0
mov byte [ebp - 0x178], 0
call fcn.00404ed0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x160]
push 1
push 0x4e88e4
mov dword [ebp - 0x14c], 0xf
mov dword [ebp - 0x150], 0
mov byte [ebp - 0x160], 0
call fcn.00404ed0
lea eax, [ebp - 0x148]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x160]
lea ecx, [ebp - 0x190]
call fcn.00403750
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], 4
push ecx
mov edx, eax
lea ecx, [ebp - 0x1a8]
call fcn.00403780
add esp, 8
lea ecx, [ebp - 0x148]
push eax
call fcn.004030c0
lea ecx, [ebp - 0x1a8]
call fcn.004048f0
lea ecx, [ebp - 0x190]
call fcn.004048f0
lea ecx, [ebp - 0x160]
call fcn.004048f0
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], 1
call fcn.004048f0
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x190]
push 0x4e88fc
push eax
call fcn.00403830
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 5
call fcn.00404690
lea ecx, [ebp - 0x190]
mov byte [ebp - 4], 1
call fcn.004048f0
cmp dword [ebp - 0x11c], 0x10
lea eax, [ebp - 0x130]
mov edx, str.regsvr32.exe
lea ecx, [ebp - 0x118]
cmovae eax, dword [ebp - 0x130]
sub esp, 8
push eax
call fcn.00402840
add esp, 0xc
lea ecx, [ebp - 0x148]
call fcn.004048f0
lea ecx, [ebp - 0x130]
call fcn.004048f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004640c2
mov esp, ebp
pop ebp
ret
Function at 0x405b20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x4f6414]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x18], 0
call fcn.00405c20
test al, al
je 0x405bf2
cmp dword [edi + 0x14], 0x10
jb 0x405b5e
mov eax, dword [edi]
jmp 0x405b60
mov eax, edi
lea ecx, [esp + 0xc]
push ecx
push 0
lea ecx, [esp + 0x18]
push ecx
push 0
push eax
push dword [ebx + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405bf2
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x405b8f
cmp eax, 2
je 0x405b8f
cmp eax, 6
jne 0x405bf2
mov eax, dword [esp + 0xc]
test eax, eax
je 0x405bf2
inc eax
push eax
call fcn.00464a38
inc dword [esp + 0x10]
add esp, 4
cmp dword [edi + 0x14], 0x10
mov dword [esp + 0x14], eax
jb 0x405bb1
mov edi, dword [edi]
lea ecx, [esp + 0xc]
push ecx
push eax
push 0
push 0
push edi
push dword [ebx + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
push ecx
mov byte [ecx + eax], 0
lea ecx, [esp + 0x20]
call fcn.00404fd0
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.004045e0
lea ecx, [esp + 0x1c]
call fcn.004048f0
jmp 0x405c03
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov ecx, dword [esp + 0x34]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004640c2
mov esp, ebp
pop ebp
ret 8
Function at 0x408bb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c06c6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4f6414]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0046412d
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004189d4
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x409760
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c08ca
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4f6414]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.004183f8
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x409820
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.004663b4
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x4f2b94
push eax
call fcn.00466436
push edi
push esi
call fcn.00418ad7
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004640c2
mov esp, ebp
pop ebp
ret 4
Function at 0x40a840
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x914
mov eax, dword [0x4f6414]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x100
lea eax, [ebp - 0x104]
mov dword [ebp - 0x914], 0
push 0
push eax
mov esi, ecx
or edi, 0xffffffff
call fcn.00465ca0
push esi
lea eax, [ebp - 0x104]
push str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318_sConnection
push eax
call fcn.0040a4b0
add esp, 0x18
lea eax, [ebp - 0x914]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x104]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a975
push 0x800
push eax
lea eax, [ebp - 0x904]
push eax
call fcn.00465ca0
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x90c]
add esp, 0xc
mov dword [ebp - 0x90c], 0x800
push eax
lea eax, [ebp - 0x904]
push eax
push 0
push 0
push str.PnpInstanceID
push dword [ebp - 0x914]
call esi
test eax, eax
jne 0x40a969
push 3
push 0x4e8d94
lea eax, [ebp - 0x904]
push eax
push 0
call dword [sym.imp.SHLWAPI.dll_StrIsIntlEqualW]
test eax, eax
je 0x40a969
lea eax, [ebp - 0x910]
mov dword [ebp - 0x908], 0
push eax
lea eax, [ebp - 0x908]
mov dword [ebp - 0x910], 4
push eax
push 0
push 0
push str.MediaSubType
push dword [ebp - 0x914]
call esi
cmp eax, 2
je 0x40a967
test eax, eax
jne 0x40a969
mov eax, dword [ebp - 0x908]
cmp eax, 1
je 0x40a967
cmp eax, 2
jne 0x40a969
lea edi, [eax - 1]
jmp 0x40a969
xor edi, edi
push dword [ebp - 0x914]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004640c2
mov esp, ebp
pop ebp
ret
Function at 0x40c590
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4f6414]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00465ca0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push 0x25
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x40c5e2
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004640c2
mov esp, ebp
pop ebp
ret
push ebx
push str.kernel32.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x40c668
push esi
push ebx
call fcn.00464a38
add esp, 4
mov dword [ebp - 0x210], edi
mov esi, eax
mov dword [ebp - 0x214], edi
lea eax, [ebp - 0x20c]
push esi
push ebx
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40c65e
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
push 0x4e92a4
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40c65e
mov eax, dword [ebp - 0x214]
mov edi, dword [eax + 8]
push esi
call fcn.0046416e
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop ebx
xor ecx, ebp
pop edi
call fcn.004640c2
mov esp, ebp
pop ebp
ret

Function at 0x40c7e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x4f6414]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x64
mov dword [ebp - 0x74], eax
mov edi, edx
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], ebx
push 0
push eax
mov dword [ebp - 0x78], 0
call fcn.00465ca0
add esp, 0xc
mov dword [ebp - 0x70], 0x64
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], 0
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40c850
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x68]
push eax
push 0
push 0
push dword [ebp - 0x74]
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x40c85e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
cmp byte [ebp - 0x68], 0
jne 0x40c879
xor ecx, ecx
jmp 0x40c889
lea ecx, [ebp - 0x68]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c880
sub ecx, edx
push ecx
lea eax, [ebp - 0x68]
mov ecx, ebx
push eax
call fcn.00404ed0
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004640c2
mov esp, ebp
pop ebp
ret
Function at 0x40c970
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x4f6414]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x64
lea eax, [ebp - 0x68]
mov dword [ebp - 0x74], 0
mov esi, ecx
mov edi, edx
push 0
push eax
mov dword [ebp - 0x70], esi
call fcn.00465ca0
add esp, 0xc
mov dword [ebp - 0x70], 0x64
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], 0
push eax
push str.SoftwareJZipInstall
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40c9d6
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x40ca17
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40ca17
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x68]
push eax
push 0
push 0
push edi
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov eax, dword [ebp - 0x6c]
je 0x40ca00
test eax, eax
je 0x40ca17
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40ca17
test eax, eax
je 0x40ca0b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x70]
lea eax, [ebp - 0x68]
push eax
call fcn.0040f5f0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [ebp - 0x68], 0
jne 0x40ca32
xor ecx, ecx
jmp 0x40ca41
lea ecx, [ebp - 0x68]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ca38
sub ecx, edx
push ecx
lea eax, [ebp - 0x68]
mov ecx, esi
push eax
call fcn.00404ed0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004640c2
mov esp, ebp
pop ebp
ret

Function at 0x40ea50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x48
mov edi, ecx
call fcn.0046412d
push 0x48
mov esi, eax
push 0
push esi
mov dword [ebp - 4], esi
call fcn.00465ca0
add esp, 0x10
mov ecx, esi
call fcn.0040e760
mov edx, dword [ebp + 8]
mov ebx, eax
mov dword [edi + 0x68], ebx
cmp byte [edx], 0
jne 0x40ea8a
xor ecx, ecx
jmp 0x40ea99
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ea90
sub ecx, esi
push ecx
push edx
lea ecx, [ebx + 8]
call fcn.00404ed0
mov eax, dword [edi + 0x68]
push 9
push str.GET_test1
mov dword [eax + 4], 1
mov ecx, dword [edi + 0x68]
add ecx, 0x2c
call fcn.00404ed0
lea eax, [edi + 0x10]
push eax
push 0
push edi
push 0x40eb00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x14], eax
pop edi
pop esi
pop ebx
test eax, eax
je 0x40eaed
cmp eax, 0xffffffff
je 0x40eaed
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esp, ebp
pop ebp
ret 4