joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ed00
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.004302c0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0x3c]
push ecx
push 0
push 0
push eax
mov dword [ebp - 0x3c], 0x3c
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x41ed3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41ed60
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp eax, 3
je 0x41ed5e
cmp eax, 4
je 0x41ed5e
cmp eax, 1
je 0x41ed5e
cmp eax, 2
je 0x41ed5e
push 2
pop eax
jmp 0x41ed60
xor eax, eax
leave
ret 8

Function at 0x41f5fc
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x421
push dword [edi + 4]
call esi
push 0x422
push dword [edi + 4]
mov ebx, eax
call esi
push 0x430
push dword [edi + 4]
call esi
push 0
push 0
push 0xf0
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 8], eax
call ebx
push 0x420
push dword [edi + 4]
mov dword [ebp - 0x14], eax
call esi
push 2
push 0xffffffffffffffff
push 0x100c
push eax
mov dword [ebp - 0x10], eax
call ebx
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x41f6d4
mov eax, dword [0x456f60]
mov ecx, 0x456f60
call dword [eax + 0xc]
push dword [ebp - 8]
add eax, 0x10
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebx, [eax + 1]
push ebx
lea esi, [ebp - 4]
call fcn.0040451d
push ebx
push eax
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
call fcn.00409b91
push dword [ebp - 0xc]
lea eax, [ebp - 0x10]
push eax
call fcn.0041ff09
mov ecx, esi
mov esi, dword [edi + 0x40]
push ecx
xor ecx, ecx
cmp dword [ebp - 0x14], ecx
sete cl
push ecx
call fcn.00416bb5
movzx eax, word [ebp + 8]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004046b1
pop esi
xor eax, eax
pop ebx
leave
ret 4
Function at 0x41ff49
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, eax
xor ebx, ebx
cmp dword [esi], ebx
jne 0x41ff5d
xor al, al
jmp 0x41ffc3
mov eax, dword [0x456f60]
push edi
mov ecx, 0x456f60
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0xc]
push str.SELECT__Value__FROM__Property__WHERE__Property____s
push eax
call fcn.004096ad
mov edi, dword [ebp - 0xc]
mov esi, dword [esi]
add esp, 0xc
lea eax, [ebp - 4]
push eax
push edi
push esi
mov dword [ebp - 4], ebx
call sub.msi.dll_MsiEnumClientsA
test eax, eax
jne 0x41ffab
push ebx
push dword [ebp - 4]
call sub.msi.dll_MsiViewModify
test eax, eax
je 0x41ffc9
cmp dword [ebp - 4], ebx
je 0x41ffb8
push dword [ebp - 4]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [edi - 0x10]
call fcn.004046b1
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
je 0x420002
cmp dword [ebp - 8], ebx
je 0x41ffe9
push dword [ebp - 8]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 4], ebx
je 0x41fff6
push dword [ebp - 4]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [edi - 0x10]
call fcn.004046b1
mov al, bl
jmp 0x41ffc2
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.00420120
mov byte [ebp + 0xb], al
cmp dword [ebp - 8], ebx
je 0x42001d
push dword [ebp - 8]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 4], ebx
je 0x42002a
push dword [ebp - 4]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov bl, byte [ebp + 0xb]
jmp 0x41fff6

Function at 0x420343
Capabilities:
Get graphical window text

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push 0x7d1
push dword [ebp + 4]
lea esi, [ebp + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
test ebx, ebx
je 0x420383
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
push edi
call fcn.0040451d
push edi
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
call fcn.00409b91
pop edi
jmp 0x420388
call fcn.00404630
push 1
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_EndDialog]
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
Function at 0x4203e6
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x455090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
test ecx, ecx
jne 0x420407
xor al, al
jmp 0x420527
push 2
lea esi, [ebp - 0x408]
pop edi
jmp 0x420419
mov word [esi], ax
add ecx, edi
add esi, edi
movzx eax, word [ecx]
test ax, ax
jne 0x420412
xor eax, eax
mov word [esi], ax
push 0x5c
xor dl, dl
pop ebx
sub esi, edi
xor al, al
mov byte [ebp - 0x409], dl
cmp word [ebp - 0x408], bx
jne 0x420457
cmp word [ebp - 0x406], bx
jne 0x420457
mov byte [ebp - 0x409], 1
cmp word [esi], bx
je 0x42045e
inc al
jmp 0x42045e
cmp word [esi], bx
jne 0x42045e
mov dl, 1
lea ecx, [ebp - 0x404]
mov dword [ebp - 0x410], ecx
cmp word [ebp - 0x404], bx
je 0x420480
add ecx, edi
cmp word [ecx], bx
jne 0x420473
mov dword [ebp - 0x410], ecx
test al, al
jne 0x42048a
test dl, dl
je 0x42049a
jmp 0x420493
add esi, edi
mov eax, ebx
mov word [esi], ax
add esi, edi
xor eax, eax
mov word [esi], ax
sub esi, edi
and dword [ebp - 0x418], 0
and dword [ebp - 0x414], 0
lea eax, [ebp - 0x420]
push eax
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x420508
cmp word [esi], bx
jne 0x4204d6
jmp 0x4204d4
cmp word [esi], bx
je 0x4204e0
sub esi, edi
lea eax, [ebp - 0x408]
cmp esi, eax
ja 0x4204cf
cmp esi, dword [ebp - 0x410]
jb 0x420400
cmp byte [ebp - 0x409], 0
jne 0x4204fd
cmp esi, dword [ebp - 0x410]
jne 0x4204ff
add esi, edi
xor eax, eax
mov word [esi], ax
sub esi, edi
jmp 0x4204a8
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x414]
ja 0x420525
jb 0x420520
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x418]
jae 0x420525
xor eax, eax
inc eax
jmp 0x420527
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043029b
leave
ret

Function at 0x420565
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp byte [esi], bl
je 0x420576
mov al, 1
jmp 0x4205fa
mov al, byte [ebp + 8]
push edi
mov byte [esi + 1], al
mov eax, dword [ebp + 0xc]
lea edi, [esi + 4]
mov byte [esi], 1
call fcn.004088ee
push 0x4514f0
lea eax, [ebp + 8]
call fcn.004045e3
mov edi, dword [edi]
push dword [edi - 0xc]
lea eax, [ebp + 8]
push edi
call fcn.00402383
mov edi, dword [ebp + 8]
cmp byte [esi + 1], bl
je 0x4205d3
push ebx
push 0x1388
mov eax, 0x7f90
push eax
push eax
push 0xff
push 6
push 3
push edi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 8], eax
cmp byte [esi + 1], bl
jne 0x4205e8
push ebx
push ebx
push 3
push ebx
push ebx
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp dword [esi + 8], 0xffffffff
lea eax, [edi - 0x10]
setne bl
call fcn.004046b1
mov al, bl
pop edi
pop ebx
pop ebp
ret 8
Function at 0x4207f6
Capabilities:
Connect pipe
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov esi, eax
mov edi, ecx
cmp byte [ebp + 0xc], bl
jne 0x42082d
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x42082d
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x217
neg eax
sbb eax, eax
inc eax
jne 0x42082d
cmp byte [edi + 0x11], bl
je 0x420881
mov eax, dword [edi + 0xc]
push ebx
lea ecx, [ebp + 0xc]
push ecx
push 0x7f90
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0xc]
mov edx, dword [edi + 0xc]
shr ecx, 1
xor ebx, ebx
mov word [edx + ecx*2], bx
test eax, eax
je 0x420881
cmp dword [ebp + 0xc], ebx
je 0x420881
push dword [edi + 0xc]
lea eax, [ebp + 8]
call fcn.004045e3
mov edi, dword [ebp + 8]
add edi, 0xfffffff0
mov eax, edi
call fcn.00409baf
add eax, 0x10
mov dword [esi], eax
mov eax, edi
call fcn.004046b1
jmp 0x42088b
mov ecx, 0x456f60
call fcn.00402131
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x420894
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, eax
jne 0x4208ac
mov ecx, 0x456f60
call fcn.00402131
jmp 0x4208da
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push 0
lea edx, [ebp + 0x10]
push edx
add ecx, ecx
push ecx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4208a0
mov ecx, dword [ebp + 8]
push 1
push dword [ebp + 0xc]
mov eax, esi
call fcn.004207f6
mov eax, esi
pop esi
pop ebp
ret 0xc

Function at 0x4208e1
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [eax]
push 0
lea ecx, [esp + 4]
push ecx
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop ecx
ret
Function at 0x4215ac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor esi, esi
inc esi
cmp byte [ebp + 0x10], 0
push edi
mov eax, esi
je 0x4215c5
mov eax, 0x101
lea ecx, [ebp - 0x14]
push ecx
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x14
mov dword [ebp - 0x10], esi
pop esi
push esi
mov edi, eax
call fcn.004302aa
push esi
mov ebx, eax
mov dword [ebp - 8], esi
call fcn.004302aa
push eax
mov dword [ebp - 4], esi
call fcn.004302b5
push esi
call fcn.004302aa
and dword [ebp + 0x10], 0
add esp, 0x10
mov dword [ebp - 0x1c], eax
test edi, edi
jne 0x4216de
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 0xc], str.InstallLanguage
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call edi
mov dword [ebp - 0x18], eax
cmp eax, 0xea
jne 0x42168a
push ebx
call fcn.004302b5
push dword [ebp - 8]
call fcn.004302aa
push dword [ebp - 0x1c]
mov ebx, eax
call fcn.004302b5
push dword [ebp - 4]
call fcn.004302aa
add esp, 0x10
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call edi
mov eax, dword [ebp - 0xc]
mov esi, ebx
sub esi, str.InstallLanguage
inc eax
mov cl, byte [esi + eax]
mov dl, byte [eax]
cmp cl, dl
jl 0x4216d1
jg 0x4216d1
test cl, cl
je 0x4216a9
test dl, dl
jne 0x421695
mov esi, dword [ebp - 0x1c]
or dword [ebp + 0x10], 0xffffffff
lea eax, [ebp + 0x10]
call fcn.00401337
mov esi, eax
push dword [ebp - 0x1c]
call fcn.004302b5
push ebx
call fcn.004302b5
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
inc dword [ebp + 0x10]
cmp dword [ebp - 0x18], 0
je 0x421628
xor esi, esi
jmp 0x4216ba
Function at 0x421a2d
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.004302c0
add esp, 0xc
push 0x64
pop eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x40], esi
mov edi, dword [eax - 0xc]
mov ebx, 0x456f60
push eax
mov ecx, ebx
lea esi, [ebp + 8]
call fcn.00409169
lea eax, [ebp - 0x40]
push eax
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x421aa4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004046b1
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
push dword [ebp - 0x30]
mov edi, dword [ebp - 0x2c]
mov ecx, ebx
lea esi, [ebp - 4]
call fcn.00409169
mov edi, dword [ebp + 0x14]
mov eax, esi
call fcn.004088ee
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004046b1
push dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov ecx, ebx
lea esi, [ebp - 4]
call fcn.00409169
mov edi, dword [ebp + 0x18]
mov eax, esi
call fcn.004088ee
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004046b1
cmp dword [ebp - 0x24], 0
je 0x421b19
push dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
mov ecx, ebx
lea esi, [ebp - 4]
call fcn.00409169
mov edi, dword [ebp + 0x1c]
mov eax, esi
call fcn.004088ee
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004046b1
cmp dword [ebp - 0x1c], 0
je 0x421b44
push dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
mov ecx, ebx
lea esi, [ebp - 4]
call fcn.00409169
mov edi, dword [ebp + 0x20]
mov eax, esi
call fcn.004088ee
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004046b1
cmp dword [ebp - 0xc], 0
je 0x421b6f
push dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov ecx, ebx
lea esi, [ebp - 4]
call fcn.00409169
mov edi, dword [ebp + 0x24]
mov eax, esi
call fcn.004088ee
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004046b1
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov ax, word [ebp - 0x28]
mov ecx, dword [ebp + 0x10]
mov word [ecx], ax
xor esi, esi
jmp 0x421a92
Function at 0x421cab
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x455090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push ecx
mov dword [ebp - 0x90], eax
mov byte [eax], bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x98], esi
cmp esi, 0xffffffff
jne 0x421cf5
push eax
jmp 0x421d2f
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x421d2a
cmp eax, dword [ebp + 0xc]
jbe 0x421d2a
sub eax, dword [ebp + 0xc]
mov edi, 0x10000
push edi
mov dword [ebp - 0x8c], eax
call fcn.004302aa
pop ecx
mov dword [ebp - 0x80], eax
cmp eax, ebx
jne 0x421d46
push ebx
call fcn.004302b5
pop ecx
cmp esi, ebx
je 0x421d35
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043029b
leave
ret
lea eax, [ebp - 0x78]
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ebx
mov byte [ebp - 0x79], bl
call fcn.0040158a
jmp 0x421d65
mov esi, dword [ebp - 0x98]
push ebx
lea eax, [ebp - 0x84]
push eax
push edi
push dword [ebp - 0x80]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x421dc1
mov esi, dword [ebp - 0x84]
cmp esi, ebx
je 0x421dc1
mov eax, dword [ebp - 0x88]
lea ecx, [esi + eax]
cmp ecx, dword [ebp - 0x8c]
jbe 0x421da9
mov esi, dword [ebp - 0x8c]
sub esi, eax
mov dword [ebp - 0x84], esi
mov byte [ebp - 0x79], 1
push dword [ebp - 0x80]
mov eax, esi
lea ecx, [ebp - 0x78]
call fcn.0040141b
add dword [ebp - 0x88], esi
cmp byte [ebp - 0x79], bl
je 0x421d5f
lea esi, [ebp - 0x78]
call fcn.004014cc
mov ebx, dword [ebp - 0x90]
mov eax, esi
call fcn.00401543
push dword [ebp - 0x80]
mov bl, al
call fcn.004302b5
cmp dword [ebp - 0x98], 0
pop ecx
je 0x421df6
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x421d37

Function at 0x4226c5
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x455090]
xor eax, ebp
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1a4]
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
mov esi, ecx
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x70]
push ecx
push edi
push eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x78], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x422758
push ebx
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x7c]
call fcn.004045e3
lea ebx, [ebp - 0x7c]
call fcn.004095ec
mov eax, dword [ebp - 0x7c]
inc dword [ebp - 0x74]
add eax, 0xfffffff0
call fcn.004046b1
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x104
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x422712
pop ebx
mov ecx, dword [ebp + 0x198]
pop edi
xor ecx, ebp
pop esi
call fcn.0043029b
add ebp, 0x19c
leave
ret 4
Function at 0x422771
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0xc]
push ecx
mov esi, eax
mov eax, dword [ebx]
push 0
push eax
push dword [ebp + 8]
call edi
mov dword [ebp - 8], eax
cmp eax, 0xea
jne 0x4227d3
push dword [ebp - 4]
call fcn.0040451d
mov ebx, dword [ebx]
lea eax, [ebp - 4]
push eax
call fcn.004020e5
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push ebx
push dword [ebp + 8]
call edi
mov dword [ebp - 8], eax
or eax, 0xffffffff
call fcn.00409b91
xor eax, eax
cmp dword [ebp - 8], eax
pop edi
pop esi
setne al
pop ebx
leave
ret
Function at 0x4227e0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x455090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
lea esi, [ebp + 8]
mov dword [ebp - 0x270], ecx
mov dword [ebp - 0x274], eax
call fcn.00409c29
mov eax, dword [0x456f60]
mov ecx, 0x456f60
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x264], eax
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
lea esi, [ebp - 0x264]
mov ebx, esp
call fcn.00409baf
add eax, 0x10
mov edx, esi
mov ecx, edi
mov dword [ebx], eax
call fcn.00422a3e
test al, al
je 0x4228d1
mov eax, esi
push eax
lea eax, [ebp - 0x288]
push eax
call fcn.00419880
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x288]
push eax
call fcn.00419a49
mov esi, dword [ebp - 0x274]
mov ebx, eax
call fcn.004095ec
mov eax, dword [ebp - 0x260]
add eax, 0xfffffff0
call fcn.004046b1
lea eax, [ebp - 0x288]
push eax
mov eax, dword [ebp - 0x270]
call fcn.00422b23
test al, al
je 0x4228d1
xor esi, esi
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
call fcn.004046b1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004046b1
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043029b
leave
ret 0x10
cmp dword [ebp + 0xc], 1
jge 0x4228dc
xor esi, esi
inc esi
jmp 0x4228a5
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00409baf
add eax, 0x10
mov dword [ebp - 0x25c], eax
push 0x449968
lea eax, [ebp - 0x25c]
push eax
call fcn.00402192
lea eax, [ebp - 0x258]
push eax
lea esi, [ebp - 0x25c]
call fcn.004020e5
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x26c], eax
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp dword [ebp - 0x26c], 0xffffffff
setne al
test al, al
je 0x4229b8
lea eax, [ebp - 0x258]
call fcn.00422a16
test al, al
je 0x4229a0
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp + 8]
lea ecx, [ebp - 0x260]
call fcn.00408dd7
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x260]
pop ecx
push dword [ebp - 0x274]
dec eax
push edi
push eax
push ecx
add esi, 0xfffffff0
mov eax, esi
mov ebx, esp
call fcn.00409baf
mov ecx, dword [ebp - 0x270]
add eax, 0x10
mov dword [ebx], eax
call fcn.004227e0
test eax, eax
je 0x4229e0
mov eax, esi
call fcn.004046b1
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x422941
cmp dword [ebp - 0x26c], 0
je 0x4229cd
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x25c]
add eax, 0xfffffff0
call fcn.004046b1
jmp 0x4228d7
mov eax, dword [ebp - 0x260]
add eax, 0xfffffff0
call fcn.004046b1
cmp dword [ebp - 0x26c], 0
je 0x422a03
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x25c]
add eax, 0xfffffff0
call fcn.004046b1
jmp 0x4228a3
Function at 0x422ccb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
mov esi, eax
cmp byte [ebp + 0xc], bl
jne 0x422d0c
push dword [ebp + 8]
call fcn.00422c4f
pop ecx
cmp byte [ebp + 0x10], bl
je 0x422d04
cmp eax, ebx
setne byte [ebp + 0x13]
cmp eax, ebx
je 0x422cfc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp + 0x13]
jmp 0x422d9c
cmp eax, ebx
sete byte [ebp + 0x13]
jmp 0x422cf1
push 0x5c
call fcn.00408c62
mov edi, eax
cmp edi, ebx
mov dword [ebp + 0xc], 3
jl 0x422d87
lea eax, [ebp - 4]
push eax
mov ecx, edi
xor edx, edx
mov eax, esi
call fcn.00408cf8
push dword [ebp + 8]
lea eax, [ebp - 4]
call fcn.00422c4f
pop ecx
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x422d7c
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
lea eax, [ebp + 0xc]
lea edx, [edi + 1]
push eax
sub ecx, edx
mov eax, esi
call fcn.00408cf8
mov esi, dword [ebp + 0xc]
push ebx
push ebx
push ebx
push ebx
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp + 0xc], eax
lea eax, [esi - 0x10]
call fcn.004046b1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004046b1
xor eax, eax
cmp byte [ebp + 0x10], bl
je 0x422d96
cmp dword [ebp + 0xc], ebx
sete al
jmp 0x422d9c
cmp dword [ebp + 0xc], ebx
setne al
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x423378
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov ebx, eax
mov eax, dword [ebp + 8]
push edi
xor edi, edi
mov dword [eax + 0x10], ebx
cmp dword [eax + 4], edi
je 0x42340a
cmp ebx, edi
je 0x4233b5
push edi
push edi
push edi
push edi
lea esi, [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
call fcn.00408e4e
push dword [esi]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x20]
mov eax, dword [ebp + 8]
xor edi, edi
lea ecx, [ebp - 4]
push ecx
push edi
push eax
push 0x423413
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp ebx, edi
je 0x4233d5
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x4233ff
mov ebx, dword [ebp - 4]
cmp esi, edi
je 0x4233fb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x42340c
cmp esi, edi
je 0x42340a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4