joyce8/EMBER2024-capa huggingface dataset:
Function at 0x516130
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0x40
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.00407ab0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.004077c0
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x516171
mov edx, dword [ebp - 0xc]
dec edx
mov eax, dword [ebp - 8]
call fcn.00407ab0
jmp 0x51618d
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x7a
jne 0x516180
dec dword [ebp - 0xc]
jmp 0x516140
mov edx, dword [ebp - 8]
mov eax, dword [0x56721c]
call fcn.0040ad18
mov esp, ebp
pop ebp
ret

Function at 0x516900
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040771c
xor eax, eax
push ebp
push 0x516993
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
mov eax, 0x5169b0
call fcn.004081e4
test eax, eax
jg 0x516946
mov edx, dword [ebp - 4]
mov eax, 0x5169c0
call fcn.004081e4
test eax, eax
jle 0x51694f
mov dword [ebp - 0xc], 0xffffffff
jmp 0x51695f
mov edx, dword [ebp - 4]
mov eax, dword [0x5168c0]
call fcn.0042a2d8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jl 0x51697d
lea eax, [ebp - 8]
push eax
xor eax, eax
mov al, byte [ebp - 0xc]
mov eax, dword [eax*4 + 0x565dcc]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51699a
lea eax, [ebp - 4]
call fcn.00407724
ret

Function at 0x5169c4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov byte [ebp - 1], al
xor eax, eax
mov dword [ebp - 8], eax
cmp byte [ebp - 1], 0
jb 0x5169fe
cmp byte [ebp - 1], 0x2e
jae 0x5169fe
xor eax, eax
mov al, byte [ebp - 1]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
xor eax, eax
mov al, byte [ebp - 0xc]
mov eax, dword [eax*4 + 0x565dcc]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x522d5c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406d60
xor eax, eax
push ebp
push 0x522e7b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x522daa
mov eax, dword [ebp - 0x1c]
sub eax, 0xa
cmp word [eax], 1
je 0x522daa
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.00406828
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x522dc1
mov eax, dword [ebp - 0x20]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov edx, dword [ebp - 0x20]
call fcn.00406f98
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x522df6
mov eax, dword [ebp - 0x24]
sub eax, 0xa
cmp word [eax], 1
je 0x522df6
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.00406828
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x522e0d
mov eax, dword [ebp - 0x28]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
test eax, eax
jle 0x522e65
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x10]
call fcn.00406de8
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp - 0x14]
mov cl, byte [ecx + ebx - 1]
mov ebx, dword [ebp - 8]
shr ebx, 8
xor cl, bl
mov byte [eax + edx - 1], cl
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov edx, dword [ebp - 0x14]
movzx eax, byte [eax + edx - 1]
add eax, dword [ebp - 8]
imul eax, eax, 0xce6d
add eax, 0x58bf
mov dword [ebp - 8], eax
inc dword [ebp - 0x14]
dec dword [ebp - 0x18]
jne 0x522e1e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x522e82
lea eax, [ebp - 4]
call fcn.0040660c
ret
Function at 0x522f00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406d60
xor eax, eax
push ebp
push 0x52301d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x522f4e
mov eax, dword [ebp - 0x1c]
sub eax, 0xa
cmp word [eax], 1
je 0x522f4e
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.00406828
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x522f65
mov eax, dword [ebp - 0x20]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov edx, dword [ebp - 0x20]
call fcn.00406f98
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x522f9a
mov eax, dword [ebp - 0x24]
sub eax, 0xa
cmp word [eax], 1
je 0x522f9a
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.00406828
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x522fb1
mov eax, dword [ebp - 0x28]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
test eax, eax
jle 0x523007
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x10]
call fcn.00406de8
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp - 0x14]
mov cl, byte [ecx + ebx - 1]
mov ebx, dword [ebp - 8]
shr ebx, 8
xor cl, bl
mov byte [eax + edx - 1], cl
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
movzx eax, byte [eax + edx - 1]
add eax, dword [ebp - 8]
imul eax, eax, 0xce6d
add eax, 0x58bf
mov dword [ebp - 8], eax
inc dword [ebp - 0x14]
dec dword [ebp - 0x18]
jne 0x522fc2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x523024
lea eax, [ebp - 4]
call fcn.0040660c
ret

Function at 0x527510
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, 0x104
call fcn.00407ab0
push 0x104
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.004077c0
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.00407ab0
mov esp, ebp
pop ebp
ret

Function at 0x527550
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, 0x104
call fcn.00407ab0
push 0x104
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.004077c0
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.00407ab0
mov esp, ebp
pop ebp
ret
Function at 0x529ba8
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
or dword [ebp - 8], 8
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov dword [eax + 8], edx
mov eax, dword [ebp - 8]
push eax
push 0x2b4
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetFileInfoW
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 4
Function at 0x536c8c
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd3c
test dl, dl
je 0x536ca1
add esp, 0xfffffff0
call fcn.00405880
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0052f588
mov eax, dword [ebp - 4]
add eax, 0x68
push eax
push 0x11
mov eax, dword [0x567548]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4bba10]
call fcn.004d9de8
mov edx, dword [ebp - 4]
mov dword [edx + 0x64], eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4bba10]
call fcn.004d9de8
mov edx, dword [ebp - 4]
mov dword [edx + 0x60], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x64]
mov dl, 1
call fcn.004da0c0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x60]
mov dl, 1
call fcn.004da0c0
mov dword [ebp - 0x10], 0x2b4
push 0x4001
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x2c4]
push eax
push 0
push 0x536e08
call sub.shell32.dll_SHGetFileInfoW
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x64]
call fcn.004da144
push 0x4000
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x2c4]
push eax
push 0
push 0x536e08
call sub.shell32.dll_SHGetFileInfoW
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x60]
call fcn.004da144
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x64]
mov edx, 0x1fffffff
call fcn.004daaec
push 0x536e0c
call sub.user32.dll_RegisterClipboardFormatW
push 0x536e28
call sub.user32.dll_RegisterClipboardFormatW
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x6c], edx
mov eax, dword [ebp - 4]
mov byte [eax + 0x79], 0
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00538a5c
mov dl, 1
mov eax, dword [0x42ed98]
call fcn.0043b38c
mov edx, dword [ebp - 4]
mov dword [edx + 0x70], eax
mov dl, 1
mov eax, dword [0x42ed98]
call fcn.0043b38c
mov edx, dword [ebp - 4]
mov dword [edx + 0x74], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x78], 0
mov dl, 1
mov eax, dword [0x42ed98]
call fcn.0043b38c
mov edx, dword [ebp - 4]
mov dword [edx + 0x7c], eax
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x536e00
call fcn.004058d8
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x537a04
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd38
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov dl, 1
mov eax, dword [0x45a8ac]
call fcn.00465be0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], pe_nt_image_headers32
test byte [ebp - 9], 1
je 0x537a36
or dword [ebp - 0x14], 1
test byte [ebp - 9], 2
je 0x537a40
or dword [ebp - 0x14], 2
mov eax, dword [ebp - 0x14]
push eax
push 0x2b4
lea eax, [ebp - 0x2c8]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetFileInfoW
mov edx, dword [ebp - 0x2c8]
mov eax, dword [ebp - 0x10]
call fcn.00466074
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x54fde8
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd5c
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x2a4], eax
mov dword [ebp - 0x2a0], eax
mov dword [ebp - 0x29c], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x54ff56
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [0x56e904]
mov edx, dword [eax]
call dword [edx + 0x44]
lea eax, [ebp - 0x198]
push eax
push 0x102
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x54ff25
xor edx, edx
push ebp
push 0x54ff1e
push dword fs:[edx]
mov dword fs:[edx], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x298]
push eax
call sub.wsock32.dll_gethostname
test eax, eax
jne 0x54ff07
lea eax, [ebp - 0x298]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x54ff07
mov ebx, dword [eax + 0xc]
test ebx, ebx
je 0x54ff07
cmp dword [ebx], 0
je 0x54ff07
mov eax, dword [ebx]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
lea edx, [ebp - 0x29c]
call fcn.00415870
mov edx, dword [ebp - 0x29c]
lea eax, [ebp - 4]
call fcn.00407950
mov edx, dword [ebp - 4]
mov eax, 0x54ff74
call fcn.004081e4
mov esi, eax
lea eax, [ebp - 0x2a0]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00407e74
mov eax, dword [ebp - 0x2a0]
or edx, 0xffffffff
call fcn.00414960
mov esi, eax
lea edx, [ebp - 0x2a4]
mov eax, esi
call fcn.00414690
mov edx, dword [ebp - 0x2a4]
mov eax, dword [0x56e904]
mov ecx, dword [eax]
call dword [ecx + 0x38]
add ebx, 4
cmp dword [ebx], 0
jne 0x54fe8a
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54ff25
call sub.wsock32.dll_WSACleanup
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54ff5d
lea eax, [ebp - 0x2a4]
mov edx, 2
call fcn.0040772c
lea eax, [ebp - 0x29c]
call fcn.0040660c
lea eax, [ebp - 4]
call fcn.00407724
ret
Function at 0x550024
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x414], ebx
mov esi, ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040771c
xor eax, eax
push ebp
push 0x5501b0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040660c
mov eax, dword [0x566f98]
call fcn.0054ff78
test al, al
je 0x55018f
mov dword [0x56e900], 0x3e8
push 0
push 0
push 0
push 0
push 0x5501c0
call sub.wininet.dll_InternetOpenW
mov ebx, eax
test ebx, ebx
je 0x550179
push 4
push 0x56e900
push 2
push ebx
call sub.wininet.dll_InternetSetOptionW
push 0
push 0x80000000
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004077c0
push eax
push ebx
call sub.wininet.dll_InternetOpenUrlW
mov edi, eax
test edi, edi
je 0x550131
lea eax, [ebp - 0x40d]
xor ecx, ecx
mov edx, 0x401
call fcn.00404bb4
lea eax, [ebp - 0x414]
lea edx, [ebp - 0x40d]
mov ecx, 0x401
push 0
call fcn.00406974
mov edx, dword [ebp - 0x414]
mov eax, esi
call fcn.004069f8
lea eax, [ebp - 0x40d]
xor ecx, ecx
mov edx, 0x401
call fcn.00404bb4
lea eax, [ebp - 0xc]
push eax
push 0x401
lea eax, [ebp - 0x40d]
push eax
push edi
call sub.wininet.dll_InternetReadFile
cmp dword [ebp - 0xc], 0
jne 0x5500d6
push edi
call sub.wininet.dll_InternetCloseHandle
jmp 0x550171
cmp byte [ebp - 5], 0
jne 0x55018f
cmp byte [0x56e8f8], 0
jne 0x55018f
mov eax, dword [ebp - 4]
mov dword [ebp - 0x41c], eax
mov byte [ebp - 0x418], 0x11
lea eax, [ebp - 0x41c]
push eax
push 0
mov ecx, 0x5501e4
mov dl, 1
mov eax, dword [0x40ef30]
call fcn.004196fc
call fcn.00405e24
jmp 0x55018f
push ebx
call sub.wininet.dll_InternetCloseHandle
jmp 0x55018f
mov ecx, 0x550218
mov dl, 1
mov eax, dword [0x40ef30]
call fcn.004196c0
call fcn.00405e24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5501b7
lea eax, [ebp - 0x414]
call fcn.0040660c
lea eax, [ebp - 4]
call fcn.00407724
ret
Function at 0x4080e0
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x43231b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
mov ecx, dword [0x442c5c]
push esi
lea eax, [esp + 4]
push edi
push eax
call fcn.0040a660
mov esi, eax
mov eax, dword [esi + 8]
mov edx, dword [esi]
xor edi, edi
push eax
mov ecx, esi
mov dword [esp + 0x128], edi
call dword [edx + 4]
mov edx, dword [esp + 0x12c]
mov esi, dword [esi + 4]
lea ecx, [esp + 0x18]
push 0x104
push ecx
push edx
push esi
call fcn.00407fc0
mov esi, eax
mov eax, dword [esp + 0x1c]
add esp, 0x10
cmp eax, edi
mov dword [esp + 8], 0x4352ac
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
je 0x408168
push eax
call fcn.00415ab8
add esp, 4
cmp esi, edi
jbe 0x40817f
cmp esi, 0x104
jae 0x40817f
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x120
ret
Function at 0x409320
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4324b7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov dword [esp + 0xc], 0
call fcn.00409310
mov ebx, eax
test ebx, ebx
jne 0x409378
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x34]
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.00403cb0
mov dword [esi], 0x4352bc
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
push ebp
push edi
push 0
push 0
lea ecx, [esp + 0x24]
call fcn.00403a90
push 0
push 0
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 1
mov dword [esp + 0x24], 0x4352fc
call fcn.00403c40
mov dword [esp + 0x1c], 0x4352bc
mov edi, dword [esp + 0x40]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push 0
push edx
push 0
push edi
push ebx
mov dword [esp + 0x4c], 2
call ebp
mov esi, eax
test esi, esi
jne 0x40942e
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x20]
call dword [edx + 4]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x20]
call dword [edx + 4]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
push esi
push edi
push ebx
call ebp
mov edx, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x1c]
push eax
call dword [edx + 4]
mov edi, dword [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x24], ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebp
test esi, esi
mov esi, dword [esp + 0x34]
push 0
push 0
mov ecx, esi
jne 0x409493
call fcn.00403a90
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x34], 3
mov dword [esi], 0x4352fc
call fcn.00403c40
mov dword [esi], 0x4352bc
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], 0x4352ac
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 4
call fcn.00403ca0
test eax, eax
je 0x4094f8
jmp 0x4094ef
call fcn.00403a90
mov ecx, dword [esp + 0x3c]
xor eax, eax
test ecx, ecx
mov byte [esp + 0x2c], 5
mov dword [esi], 0x4352fc
je 0x4094bb
cmp byte [ecx], 0
je 0x4094bb
mov dl, byte [eax + ecx + 1]
inc eax
test dl, dl
jne 0x4094b2
push eax
push ecx
mov ecx, esi
call fcn.00403c40
mov dword [esi], 0x4352bc
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], 0x4352ac
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 6
call fcn.00403ca0
test eax, eax
je 0x4094f8
push eax
call fcn.00415ab8
add esp, 4
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x409510
Capabilities:
Delete registry value
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jne 0x409547
call fcn.00409310
mov esi, eax
test esi, esi
jne 0x409528
pop edi
pop esi
ret
mov eax, dword [esp + 0xc]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
pop edi
pop esi
sete al
ret
call fcn.00409310
mov esi, eax
test esi, esi
jne 0x409555
pop edi
pop esi
ret
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0xc]
inc eax
push eax
push edi
push 1
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
pop edi
pop esi
sete al
ret
Function at 0x4098a0
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x14]
push esi
lea eax, [esp + 0x20]
push edi
mov edi, dword [esp + 0x24]
push eax
push 0x10000
push edi
push ebx
push ebp
push 0
mov dword [esp + 0x28], 0
call fcn.00417c82
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x4098ee
lea ecx, [esp + 0x24]
push ecx
push eax
push edi
push ebx
push ebp
push eax
call fcn.00417c82
mov esi, eax
add esp, 0x18
test esi, esi
je 0x409914
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push edi
call ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x40b050
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43292d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x13c
push ebx
push ebp
push esi
lea eax, [esp + 0x44]
push edi
push eax
mov esi, ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edx, dword [esi + 0x34]
add esi, 0x34
xor ebp, ebp
mov ecx, esi
push ebp
call dword [edx + 4]
lea eax, [esp + 0x48]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x18]
call fcn.00403de0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x15c], ebp
call fcn.00403c40
lea eax, [esp + 0x28]
push 1
push eax
mov ecx, esi
mov dword [esp + 0x15c], 0xffffffff
call fcn.004048c0
mov edi, eax
push 0xffffffffffffffff
push 0x43e938
lea ecx, [esp + 0x18]
mov dword [esp + 0x15c], 1
call fcn.00403de0
lea ecx, [esp + 0x10]
mov byte [esp + 0x154], 2
push ecx
mov ecx, edi
call fcn.0040a900
cmp eax, ebp
mov byte [esp + 0x154], 1
je 0x40b184
lea edx, [esp + 0x38]
push 1
push edx
mov ecx, esi
call fcn.004048c0
mov edi, eax
push 0xffffffffffffffff
push 0x43e934
lea ecx, [esp + 0x18]
mov byte [esp + 0x15c], 3
call fcn.00403de0
lea eax, [esp + 0x10]
mov ecx, edi
push eax
mov byte [esp + 0x158], 4
call fcn.0040a900
cmp eax, ebp
mov dword [esp + 0x38], 0x4352ac
setne bl
lea ecx, [esp + 0x38]
mov byte [esp + 0x154], 5
call fcn.00403ca0
cmp eax, ebp
je 0x40b174
push eax
call fcn.00415ab8
add esp, 4
test bl, bl
mov dword [esp + 0x38], 0x4352a8
je 0x40b184
mov bl, 1
jmp 0x40b186
xor bl, bl
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x154], 0xffffffff
cmp eax, ebp
mov dword [esp + 0x28], 0x4352ac
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
je 0x40b1b6
push eax
call fcn.00415ab8
add esp, 4
test bl, bl
je 0x40b20d
push 0xffffffffffffffff
push 0x43e934
lea ecx, [esp + 0x24]
call fcn.00404330
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], 0x435304
jne 0x40b1f9
xor eax, eax
cmp ecx, ebp
mov dword [esp + 0x24], eax
je 0x40b1f9
cmp byte [ecx], 0
je 0x40b1f9
inc eax
mov dword [esp + 0x24], eax
cmp byte [ecx + eax], 0
jne 0x40b1ee
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x15c], 6
call fcn.00403c40
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x148
ret