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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436ac8
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00404730
push eax
mov ecx, dword [ebp + 8]
call fcn.00404730
push eax
push str.createProcess_filename____s___param____s___show___d
push 0xed
push 0x43c0c8
call fcn.00423690
add esp, 0x18
mov ecx, dword [ebp + 8]
push ecx
mov edx, 0x43c0e8
lea ecx, [ebp - 0x58]
call fcn.0041d9c0
add esp, 4
mov dword [ebp - 0x68], eax
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x64], edx
mov dword [ebp - 4], 0
push 0x43c0e4
mov edx, dword [ebp - 0x64]
lea ecx, [ebp - 0x28]
call fcn.0041dab0
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.00404580
mov ecx, dword [ebp + 0xc]
call fcn.0040b4c0
movzx eax, al
test eax, eax
jne 0x42cdf4
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, 0x43c0ec
lea ecx, [ebp - 0x40]
call fcn.0041d9c0
add esp, 4
mov dword [ebp - 0x6c], eax
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x80], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x80]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040b610
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.00404580
mov dword [ebp - 0xc8], 0
push 0x40
push 0
lea ecx, [ebp - 0xc4]
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0xc8], 0x44
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0x9c], 1
movzx edx, byte [ebp + 0x10]
test edx, edx
je 0x42ce54
mov dword [ebp - 0x5c], 5
jmp 0x42ce5b
mov dword [ebp - 0x5c], 0
mov ax, word [ebp - 0x5c]
mov word [ebp - 0x98], ax
xor ecx, ecx
mov word [ebp - 0x96], cx
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x7c], 0
xor edx, edx
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x70], edx
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0xc8]
push ecx
push 0
push 0
push 0x10
push 0
push 0
push 0
lea ecx, [ebp - 0x28]
call fcn.00404730
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x42cef0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x43c0f0
push 0xff
push str.utility::process::create
call fcn.00423690
add esp, 0x10
mov dword [ebp - 0x60], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00404580
mov eax, dword [ebp - 0x60]
jmp 0x42cf26
mov edx, dword [ebp - 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x14], 0
je 0x42cf08
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x74]
mov dword [eax], ecx
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x84], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00404580
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004320a8
mov esp, ebp
pop ebp
ret
Function at 0x42d2d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 4]
cmp dword [edx + 8], 0
jne 0x42d30d
mov eax, dword [ebp - 4]
add eax, 4
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x42d430
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
je 0x42d31f
mov dword [ebp - 8], 1
jmp 0x42d326
mov dword [ebp - 8], 0
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x42dfe0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x80c], ecx
mov eax, dword [ebp - 0x80c]
cmp dword [eax], 0
jne 0x42e02c
mov ecx, dword [ebp + 8]
call fcn.00404730
push eax
push 0x43d65c
push 0xd9
push 0x43d69c
call fcn.00423690
add esp, 0x10
or eax, 0xffffffff
jmp 0x42e0b1
mov ecx, dword [ebp + 8]
call fcn.0040b4c0
mov dword [ebp - 0x810], 0x800
lea edx, [ebp - 0x810]
push edx
lea eax, [ebp - 0x804]
push eax
lea ecx, [ebp - 0x814]
push ecx
push 0
mov ecx, dword [ebp + 8]
call fcn.00404730
push eax
mov edx, dword [ebp - 0x80c]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x808], eax
cmp dword [ebp - 0x808], 0
jne 0x42e08d
lea ecx, [ebp - 0x804]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00413c80
jmp 0x42e0ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.read_reg_lastError___d
push 0xec
push str.utility::RegKeyEx::RegRead
call fcn.00423690
add esp, 0x10
mov eax, dword [ebp - 0x808]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004320a8
mov esp, ebp
pop ebp
ret 8
Function at 0x431420
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437030
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x3c], ecx
push 0
push 0
push 0
push 0
push 0x43d9ac
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edx, dword [ebp - 0x44]
mov dword [edx], eax
mov eax, dword [ebp - 0x44]
cmp dword [eax], 0
jne 0x431485
push 0
mov ecx, dword [ebp - 0x44]
call fcn.004317f0
xor al, al
jmp 0x43155c
lea ecx, [ebp - 0x28]
call fcn.00408f40
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00408f40
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.00431b70
add esp, 0x10
movzx edx, al
test edx, edx
jne 0x4314ed
push 1
mov ecx, dword [ebp - 0x44]
call fcn.004317f0
mov byte [ebp - 0x45], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00404580
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00404580
mov al, byte [ebp - 0x45]
jmp 0x43155c
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x44]
add ecx, 4
call fcn.00408f20
mov ecx, dword [ebp - 0x44]
mov dx, word [ebp - 0x4c]
mov word [ecx + 0x1c], dx
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x44]
add ecx, 0x20
call fcn.00408f20
push 8
push str.https:__
mov ecx, dword [ebp + 8]
call fcn.00404730
push eax
call dword [sym.imp.MSVCR120.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x43153a
mov ecx, dword [ebp - 0x44]
mov byte [ecx + 0x38], 1
mov byte [ebp - 0x46], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00404580
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00404580
mov al, byte [ebp - 0x46]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004320a8
mov esp, ebp
pop ebp
ret 0xc

Function at 0x431980
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
push eax
push 0
push 3
push 0
push 0
movzx ecx, word [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00404730
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0
jne 0x4319c5
xor al, al
jmp 0x4319c7
mov al, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x431a80
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 4
push 0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 0x20000013
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x431abb
xor al, al
jmp 0x431b10
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [ecx], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 4
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xffffffff
mov dword [eax + 4], 0xffffffff
push 0
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
push 0x20000005
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x431b0e
mov edx, dword [ebp - 4]
xor eax, eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov al, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x431b70
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x204], ax
push 0x1fe
push 0
lea ecx, [ebp - 0x202]
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x240], 0
push 0x38
push 0
lea edx, [ebp - 0x23c]
push edx
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x240], 0x3c
lea eax, [ebp - 0x204]
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], 0xff
mov dword [ebp - 0x210], 1
lea ecx, [ebp - 0x240]
push ecx
push 0
mov ecx, dword [ebp + 0x14]
call fcn.00404780
push eax
mov ecx, dword [ebp + 0x14]
call fcn.00404730
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x431c12
xor al, al
jmp 0x431c3f
mov edx, dword [ebp - 0x230]
push edx
mov ecx, dword [ebp + 8]
call fcn.00413c80
mov eax, dword [ebp + 0xc]
mov cx, word [ebp - 0x228]
mov word [eax], cx
mov edx, dword [ebp - 0x214]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.00413c80
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004320a8
mov esp, ebp
pop ebp
ret
Function at 0x406c80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a36a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x4d8094]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0
call fcn.0049089d
lea ecx, [esp + 0xc]
mov bl, 1
push ecx
lea ecx, [esi + 0x98]
mov byte [esp + 0x30], bl
call fcn.0048c724
push str.CollectorText.txt
lea edx, [esp + 0x14]
push 0x4decc4
push edx
call fcn.0048f8d6
mov eax, dword [eax]
push 0
push 0x1041
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 2
call fcn.004909af
lea ecx, [esp + 0x10]
mov edi, eax
mov byte [esp + 0x2c], bl
call fcn.0048f641
test edi, edi
je 0x406d27
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00490b06
lea ecx, [esp + 0x14]
call fcn.00490bca
lea eax, [esp + 0xc]
lea ecx, [esi + 0xd4]
push eax
call fcn.0048c724
push str.CollectorOutput.txt
lea ecx, [esp + 0x14]
push 0x4decc4
push ecx
call fcn.0048f8d6
mov eax, dword [eax]
push 0
push 0x1041
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 3
call fcn.004909af
lea ecx, [esp + 0x10]
mov edi, eax
mov byte [esp + 0x2c], bl
call fcn.0048f641
test edi, edi
je 0x406d91
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00490b06
lea ecx, [esp + 0x14]
call fcn.00490bca
lea edx, [esp + 0xc]
lea ecx, [esi + 0x110]
push edx
call fcn.0048c724
push str.CollectorScript.txt
lea eax, [esp + 0x14]
push 0x4decc4
push eax
call fcn.0048f8d6
mov eax, dword [eax]
push 0
push 0x1041
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 4
call fcn.004909af
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x2c], bl
call fcn.0048f641
pop edi
test esi, esi
pop esi
pop ebx
je 0x406dfe
mov eax, dword [esp]
mov ecx, dword [eax - 8]
push ecx
push eax
lea ecx, [esp + 0x10]
call fcn.00490b06
lea ecx, [esp + 8]
call fcn.00490bca
lea ecx, [esp + 8]
mov byte [esp + 0x20], 0
call fcn.004908f2
lea ecx, [esp]
mov dword [esp + 0x20], 0xffffffff
call fcn.0048f641
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x40e700
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4a41a5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x808
mov dword [esp + 4], 0
mov dword [esp + 0x810], 1
mov eax, dword [0x4d8094]
mov dword [esp], eax
lea ecx, [esp]
mov byte [esp + 0x810], 3
call fcn.0048f5cc
mov ecx, dword [esp + 0x81c]
mov eax, dword [esp + 0x820]
push ecx
lea edx, [esp + 0xc]
push 0x800
push edx
push 0
push eax
push 0x4d4658
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40e781
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 4]
call fcn.0048f7ca
push esi
mov esi, dword [esp + 0x81c]
lea edx, [esp + 4]
mov ecx, esi
push edx
call fcn.0048f3b6
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x814], 2
call fcn.0048f641
lea ecx, [esp + 0x820]
mov byte [esp + 0x814], 1
call fcn.0048f641
lea ecx, [esp + 0x824]
mov byte [esp + 0x814], 0
call fcn.0048f641
mov ecx, dword [esp + 0x80c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x814
ret
Function at 0x40eae0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4a4233
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x810
push ebx
push esi
mov dword [esp + 0xc], 0
mov eax, dword [0x4d8094]
mov ebx, 1
mov dword [esp + 0x820], ebx
mov dword [esp + 8], eax
lea ecx, [esp + 8]
mov byte [esp + 0x820], 2
call fcn.0048f5cc
mov ecx, dword [esp + 0x82c]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ecx
lea edx, [esp + 0x1c]
push 0x800
push edx
push 0
push str.HotIcon
push 0x4d4658
call esi
test eax, eax
jne 0x40eb95
mov eax, dword [esp + 0x82c]
lea ecx, [esp + 0x18]
push eax
push 0x800
push ecx
push 0
push str.Icon
push 0x4d4658
call esi
test eax, eax
jne 0x40eb95
mov esi, dword [esp + 0x828]
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.0048f3b6
mov dword [esp + 0xc], ebx
jmp 0x40ec19
push 0x5c
lea ecx, [esp + 0x830]
call fcn.00487af7
inc eax
lea ecx, [esp + 0x82c]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00487a7f
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
push eax
push edx
mov byte [esp + 0x82c], 3
call fcn.0048f8d6
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x824], 4
call fcn.0048f77a
lea ecx, [esp + 0x10]
mov byte [esp + 0x820], 3
call fcn.0048f641
lea ecx, [esp + 0x14]
mov byte [esp + 0x820], 2
call fcn.0048f641
mov esi, dword [esp + 0x828]
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.0048f3b6
mov dword [esp + 0xc], ebx
lea ecx, [esp + 8]
mov byte [esp + 0x820], bl
call fcn.0048f641
lea ecx, [esp + 0x82c]
mov byte [esp + 0x820], 0
call fcn.0048f641
mov ecx, dword [esp + 0x818]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x81c
ret
Function at 0x410250
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
mov dword [esp], 4
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x410276
xor eax, eax
pop ecx
ret
mov edx, dword [esp + 0x10]
lea eax, [esp]
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 0x10]
push ecx
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4102a0
mov dword [esp + 8], 0
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
pop ecx
ret

Function at 0x4102c0
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
push eax
push esi
push edi
xor ebx, ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4102f5
lea ecx, [esp + 0x14]
push ecx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4102f5
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push 4
push edx
push 4
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x410319
mov ebx, 1
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x410330
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4a44a5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
mov eax, dword [0x4d8094]
push esi
push edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
lea ecx, [esp + 8]
mov dword [esp + 0x124], 1
mov dword [esp + 0x14], 0x104
call fcn.0048f5cc
mov edx, dword [esp + 0x134]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x130]
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4103c3
mov esi, dword [esp + 0x12c]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.0048f3b6
mov dword [esp + 0xc], 1
jmp 0x41041c
mov ecx, dword [esp + 0x138]
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
push eax
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4103f6
lea eax, [esp + 0x18]
lea ecx, [esp + 8]
push eax
call fcn.0048f7ca
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x12c]
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.0048f3b6
mov dword [esp + 0xc], 1
lea ecx, [esp + 8]
mov byte [esp + 0x124], 0
call fcn.0048f641
mov ecx, dword [esp + 0x11c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x120
ret
Function at 0x410450
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x410481
lea ecx, [esp + 0x10]
push ecx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x410481
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x18]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov edx, dword [esp + 0x1c]
push 1
push eax
mov eax, dword [esp + 0x20]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
ret

Function at 0x4104c0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x4a44b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push ebx
push esi
push edi
mov ecx, dword [esp + 0x12c]
mov ebx, dword [esp + 0x128]
lea eax, [esp + 0xc]
mov dword [esp + 0x120], 0
push eax
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x410585
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea edx, [esp + 0x14]
push 0x104
push edx
push eax
mov eax, dword [esp + 0x18]
push eax
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x41056f
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
push edx
call edi
test eax, eax
je 0x410558
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.0048f6af
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004104c0
add esp, 8
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push 0x104
push edx
push 0
push eax
call esi
test eax, eax
je 0x41052a
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x12c]
push edx
push ebx
call edi
lea ecx, [esp + 0x12c]
mov dword [esp + 0x120], 0xffffffff
call fcn.0048f641
mov ecx, dword [esp + 0x118]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x118
ret
Function at 0x4105c0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a44d8
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
mov eax, dword [esp + 0x1c]
push 0
mov esi, dword [eax - 8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x410648
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x410648
inc esi
push esi
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x410648
mov edi, dword [esp + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.0048f641
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret

Function at 0x410670
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x4a450f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x4d8094]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov edi, 1
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], edi
call fcn.0048f5cc
push ebx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x4106cd
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.0048f3b6
mov dword [esp + 0x10], edi
jmp 0x410724
push edi
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
cmp esi, ebx
jne 0x4106e7
call dword [sym.imp.USER32.dll_CloseClipboard]
lea edx, [esp + 0xc]
push edx
jmp 0x410715
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
cmp eax, ebx
jbe 0x410703
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
lea ecx, [esp + 0x10]
call fcn.0048f7ca
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea eax, [esp + 0xc]
push eax
mov esi, dword [esp + 0x28]
mov ecx, esi
call fcn.0048f3b6
mov dword [esp + 0x10], edi
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], bl
call fcn.0048f641
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x41bc80
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a5af0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x148
mov eax, dword [0x4d4788]
push ebx
push esi
mov esi, ecx
push edi
xor ecx, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], ecx
xor ebx, ebx
push str.SoftwareMicrosoftInternet_ExplorerTypedUrls
push connect
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x20], cl
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea edx, [ebp - 0x18]
push edx
push str.SoftwareMicrosoftInternet_ExplorerTypedUrls
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x41bdac
lea eax, [ebp - 0x154]
mov dword [ebp - 0x50], 1
mov dword [ebp - 0x48], eax
mov eax, dword [esi + 0xba0]
mov dword [ebp - 0x44], 0x104
push ebx
mov ecx, dword [eax + 0x1c]
push ebx
push 0x146
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0x18
mov dword [ebp - 0x1c], eax
jle 0x41bd27
mov dword [ebp - 0x1c], 0x18
xor eax, eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0x1c]
jge 0x41bda2
mov ecx, dword [esi + 0xba0]
lea edx, [ebp - 0x50]
push edx
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x154], 0
call fcn.00489153
lea eax, [ebp - 0x25]
lea esi, [ebx + 1]
push 0xa
push eax
push esi
call fcn.00479ed6
mov edx, dword [ebp - 0x48]
add esp, 0xc
test edx, edx
je 0x41bd90
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x41bd90
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov edx, dword [ebp - 0x18]
push 1
lea ecx, [ebp - 0x28]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, esi
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x14], eax
jmp 0x41bd2c
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret