joyce8/EMBER2024-capa huggingface dataset:
Function at 0x614950
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x614b8e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
inc dword [eax + 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov ebx, dword [ebp - 4]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x28], ecx
xor eax, eax
lea ebx, [eax + 0xc]
add ebx, ecx
xor edx, edx
push ebp
push 0x614b33
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 0xffffffffffffffff
push 0
call sub.kernel32.dll_CreateEventW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x6149c5
mov eax, 0x614bac
call fcn.005f2040
xor edx, edx
push ebp
push 0x614ac8
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x14
call fcn.004053f4
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
push 0x14
mov eax, dword [ebp - 4]
add eax, 0x4034
push eax
push ebx
mov eax, dword [ebp - 4]
add eax, 0x20
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
call sub.kernel32.dll_TransactNamedPipe
test eax, eax
jne 0x614ab1
call sub.kernel32.dll_GetLastError_2
cmp eax, 0x3e5
je 0x614a2d
mov eax, 0x614bd0
call fcn.005f2040
xor edx, edx
push ebp
push 0x614a9a
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [ebp + 8], 0
je 0x614a6d
mov eax, dword [ebp - 4]
cmp word [eax + 0x1a], 0
je 0x614a6d
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x1c]
call dword [ebx + 0x18]
push 0x4ff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xc]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x614a4b
pop dword fs:[0]
add esp, 8
push 0x614aa1
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
call sub.kernel32.dll_GetOverlappedResult
mov ebx, eax
call sub.kernel32.dll_GetLastError_2
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x614acf
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret

Function at 0x6165dc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
push 1
lea eax, [ebp - 4]
push eax
mov eax, ebx
call fcn.00408d1c
mov ecx, eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax - 1]
mov edx, 0x80000002
call fcn.0059b68c
test eax, eax
jne 0x61664f
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 8]
push eax
push 0
mov eax, esi
call fcn.00408d1c
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x61663e
cmp dword [ebp - 8], 4
je 0x616642
xor ebx, ebx
jmp 0x616644
mov bl, 1
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x616651
xor ebx, ebx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x61a768
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffe08
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x11f4], ebx
mov dword [ebp - 0x11f8], ebx
mov dword [ebp - 0x11ec], ebx
mov dword [ebp - 0x11f0], ebx
mov dword [ebp - 0x11e8], ebx
mov dword [ebp - 0x1004], ecx
mov dword [ebp - 0x11cc], edx
mov dword [ebp - 0x11d0], eax
lea esi, [ebp - 0x11de]
lea edi, [ebp - 0x11d0]
xor eax, eax
push ebp
push 0x61a995
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x11d4], eax
xor eax, eax
mov dword [ebp - 0x11c8], eax
mov eax, dword [edi]
add eax, 0x10
push eax
lea ecx, [ebp - 0x11c4]
mov edx, dword [ebp - 0x1004]
mov eax, dword [ebp - 0x11cc]
call fcn.00617410
cmp dword [ebp - 0x1084], 0x418
jle 0x61a82a
lea ecx, [ebp - 0x11e8]
mov edx, dword [ebp - 0x1004]
mov al, 0xd9
call fcn.005a1198
mov ecx, dword [ebp - 0x11e8]
mov dl, 1
mov eax, dword [0x41d264]
call fcn.00427be0
call fcn.00407354
lea eax, [ebp - 0x11f0]
lea edx, [ebp - 0x1184]
mov ecx, 0x80
push 0
call fcn.00408434
mov edx, dword [ebp - 0x11f0]
lea ecx, [ebp - 0x11ec]
mov eax, dword [edi]
mov eax, dword [eax]
call fcn.0061a0c0
mov edx, dword [ebp - 0x11ec]
mov eax, dword [edi]
add eax, 0x14
call fcn.00408038
lea eax, [ebp - 0x11f8]
lea edx, [ebp - 0x1104]
mov ecx, 0x80
push 0
call fcn.00408434
mov edx, dword [ebp - 0x11f8]
lea ecx, [ebp - 0x11f4]
mov eax, dword [edi]
mov eax, dword [eax]
call fcn.0061a0c0
mov edx, dword [ebp - 0x11f4]
mov eax, dword [edi]
add eax, 0x18
call fcn.00408038
lea eax, [ebp - 0x1078]
movzx eax, byte [eax]
mov edx, dword [edi]
mov byte [edx + 0x1d], al
mov ebx, dword [ebp - 0x1080]
test ebx, ebx
jle 0x61a956
push ebp
mov eax, esi
mov edx, 0xa
call fcn.0061a6f0
pop ecx
mov eax, dword [esi + 6]
push eax
mov eax, dword [edi]
mov eax, dword [eax]
mov ecx, dword [esi + 2]
movzx edx, word [esi]
call fcn.00617bb0
mov dword [ebp - 0x11e4], eax
cmp dword [ebp - 0x11e4], 0
jne 0x61a8f7
push ebp
call fcn.0061a548
pop ecx
xor eax, eax
push ebp
push 0x61a928
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
mov eax, dword [ebp - 0x11e4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x11e4]
add eax, 0x12
call fcn.0061a6f0
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x61a942
mov edx, dword [ebp - 0x11e4]
mov eax, dword [edi]
call fcn.00617bec
dec ebx
jne 0x61a8c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x61a99c
lea eax, [ebp - 0x11f8]
call fcn.00407c7c
lea eax, [ebp - 0x11f4]
call fcn.00407c58
lea eax, [ebp - 0x11f0]
call fcn.00407c7c
lea eax, [ebp - 0x11ec]
mov edx, 2
call fcn.00407cb8
ret
Function at 0x61c24c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov ebx, esi
test ebx, ebx
je 0x61c265
sub ebx, 4
mov ebx, dword [ebx]
inc ebx
mov eax, ebx
add eax, eax
push eax
mov eax, esi
call fcn.00408d1c
push eax
push 1
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x61c299
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
xor eax, eax
call fcn.0061c11c
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x61e128
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x61e259
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 2
lea eax, [ebp - 8]
push eax
mov eax, dword [0x65b208]
movzx eax, byte [eax]
mov ecx, dword [eax*4 + 0x65ac08]
mov edx, 0x80000002
xor eax, eax
call fcn.0059b68c
test eax, eax
jne 0x61e1bd
mov esi, edi
test esi, esi
je 0x61e180
sub esi, 4
mov esi, dword [esi]
inc esi
mov eax, esi
add eax, eax
push eax
mov eax, edi
call fcn.00408d1c
push eax
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00408d1c
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x61e1b2
mov eax, 0x61e274
call fcn.005faf10
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x61e1c7
mov eax, 0x61e2d8
call fcn.005faf10
test bl, bl
je 0x61e23e
mov eax, edi
call fcn.00408d1c
push eax
call sub.gdi32.dll_AddFontResourceW
test eax, eax
je 0x61e1ee
push 0
push 0
push 0x1d
push 0xffff
call sub.user32.dll_SendNotifyMessageW
jmp 0x61e23e
lea ecx, [ebp - 0x10]
mov edx, 0x61e32c
mov al, 0x3f
call fcn.005a1198
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.0059bf90
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x65b454]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x65b454]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [0x65b454]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x1c]
mov ecx, 2
pop eax
call fcn.0061b6f0
test al, al
je 0x61e1cb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x61e260
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00407cb8
ret
Function at 0x621478
Capabilities:
Check if file exists
Delete directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x621539
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00408d1c
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x62151e
test bl, 0x10
je 0x62151e
lea ecx, [ebp - 4]
mov edx, 0x621554
mov eax, esi
call fcn.00599d64
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
xor ecx, ecx
mov edx, 0x621578
mov eax, 0x621594
call fcn.0059a544
mov edx, 0x6215c0
mov eax, dword [ebp - 8]
call fcn.00421440
test eax, eax
jne 0x62151e
mov eax, dword [ebp - 4]
call fcn.004229ac
lea ecx, [ebp - 0xc]
mov edx, 0x62161c
mov eax, esi
call fcn.00599d64
mov eax, dword [ebp - 0xc]
call fcn.004229ac
and ebx, 0xfffffffe
push ebx
mov eax, esi
call fcn.00408d1c
mov edi, eax
push edi
call sub.kernel32.dll_SetFileAttributesW
push edi
call sub.kernel32.dll_RemoveDirectoryW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x621540
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00407cb8
ret

Function at 0x62256c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 8], ecx
mov edi, edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x622644
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1c]
mov eax, edi
call fcn.005f214c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0x11
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0x11
lea edx, [ebp - 0x18]
mov ecx, 1
mov eax, 0x622660
call fcn.005fb194
mov eax, dword [0x65afec]
mov eax, dword [eax + 8]
mov edx, dword [ebp + 8]
call fcn.004953b4
mov esi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x6225dd
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [esi]
push eax
mov eax, ebx
mov ecx, 0x14
cdq
idiv ecx
push eax
movzx eax, byte [ebp - 1]
mov ecx, dword [ebp - 8]
mov edx, edi
call fcn.0061aff0
test al, al
jne 0x62262e
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
jne 0x622613
mov eax, 0x6226b0
call fcn.005faf10
jmp 0x62262e
call sub.kernel32.dll_GetLastError_2
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x622750
call fcn.005fb194
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x62264b
lea eax, [ebp - 0x1c]
call fcn.00407c58
ret
Function at 0x624b14
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor eax, eax
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x258], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x624cc7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x254]
push eax
lea edx, [ebp - 0x258]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00599bf0
lea eax, [ebp - 0x258]
mov edx, 0x624ce0
call fcn.00408f18
mov eax, dword [ebp - 0x258]
call fcn.00408d1c
push eax
call sub.kernel32.dll_FindFirstFileW_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x624ca1
lea eax, [ebp - 4]
lea edx, [ebp - 0x228]
mov ecx, 0x104
call fcn.00408dc0
mov eax, dword [ebp - 4]
test eax, eax
je 0x624ba6
sub eax, 4
mov eax, dword [eax]
cmp eax, 9
jl 0x624bdb
lea eax, [ebp - 0x25c]
push eax
mov ecx, 5
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00409140
mov eax, dword [ebp - 0x25c]
mov edx, 0x624d04
call fcn.00421440
test eax, eax
sete al
jmp 0x624bdd
xor eax, eax
test al, al
je 0x624bff
mov eax, 0x624d10
mov edx, dword [ebp - 4]
movzx edx, word [edx + 0xa]
cmp dx, 0xff
ja 0x624bfa
movzx edx, dx
bt dword [eax], edx
setb al
jmp 0x624c01
xor eax, eax
test al, al
je 0x624c23
mov eax, 0x624d10
mov edx, dword [ebp - 4]
movzx edx, word [edx + 0xc]
cmp dx, 0xff
ja 0x624c1e
movzx edx, dx
bt dword [eax], edx
setb al
jmp 0x624c25
xor eax, eax
test al, al
je 0x624c47
mov eax, 0x624d10
mov edx, dword [ebp - 4]
movzx edx, word [edx + 0xe]
cmp dx, 0xff
ja 0x624c42
movzx edx, dx
bt dword [eax], edx
setb al
jmp 0x624c49
xor eax, eax
test al, al
je 0x624c86
mov eax, dword [ebp - 4]
cmp word [eax + 0x10], 0x2e
jne 0x624c86
lea eax, [ebp - 0x260]
push eax
mov ecx, 3
mov edx, 6
mov eax, dword [ebp - 4]
call fcn.00409140
mov eax, dword [ebp - 0x260]
call fcn.00422310
mov edx, dword [ebp + 8]
mov byte [edx + eax - 0x3ec], 1
lea eax, [ebp - 0x254]
push eax
push ebx
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x624b87
push ebx
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x624cce
lea eax, [ebp - 0x260]
mov edx, 3
call fcn.00407cb8
lea eax, [ebp - 4]
call fcn.00407c58
ret
Function at 0x626ffc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov dword [ebp - 0x14], eax
mov eax, dword [edi]
mov edx, dword [eax]
call dword [edx]
mov dword [ebp - 0x10], eax
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
call fcn.00626ed0
lea eax, [ebp - 0x14]
push eax
push 0
push 0x4a
mov eax, dword [0x6640d0]
push eax
call sub.user32.dll_SendMessageW
mov ebx, eax
mov eax, dword [edi]
xor edx, edx
mov dword [edi], edx
call fcn.004060a0
cmp ebx, 0x6c840001
jne 0x627050
call fcn.00427bd4
mov eax, 0xffff0000
and eax, ebx
cmp eax, 0x6c830000
je 0x627074
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x1c]
xor ecx, ecx
mov eax, 0x627128
call fcn.005f1f44
mov word [ebp - 6], bx
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
call dword [ebp - 4]
call sub.kernel32.dll_GetTickCount_1
mov edx, eax
sub edx, ebx
cmp edx, 0xa
jb 0x6270ca
mov ebx, eax
mov edx, 1
movzx eax, word [ebp - 6]
call fcn.00626f50
mov esi, eax
mov eax, esi
sub ax, 2
je 0x6270ca
dec eax
sub ax, 2
jb 0x6270de
movzx eax, si
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x1c]
xor ecx, ecx
mov eax, 0x627188
call fcn.005f1f44
push 0x4ff
push 0xa
push 0
push 0
push 0
call sub.user32.dll_MsgWaitForMultipleObjects
jmp 0x62707f
mov edx, 2
movzx eax, word [ebp - 6]
call fcn.00626f50
movzx ebx, ax
mov edx, 3
movzx eax, word [ebp - 6]
call fcn.00626f50
movzx eax, ax
shl eax, 0x10
or ebx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
cmp si, 3
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x629470
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push ecx
mov ebx, eax
mov eax, ebx
call fcn.006294f4
call fcn.00404b80
mov esi, eax
push esp
push 0x40
mov eax, ebx
call fcn.006294f4
push eax
push esi
call sub.kernel32.dll_VirtualProtect
mov edx, esi
mov eax, ebx
call fcn.006294a4
mov eax, esi
pop edx
pop esi
pop ebx
ret
Function at 0x62af18
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ecx
mov esi, edx
mov ebx, eax
mov edi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x62b0ea
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
lea eax, [ebp - 4]
mov ecx, 0x200
xor edx, edx
call fcn.00407de0
push 0
movzx eax, byte [ebp + 8]
mov eax, dword [eax*4 + 0x65ac34]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00408d1c
mov ecx, eax
mov eax, ebx
mov edx, esi
call fcn.0059b68c
test eax, eax
jne 0x62b0cf
xor eax, eax
push ebp
push 0x62b0c4
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [edi + 4]
mov eax, dword [edi]
xor ecx, ecx
call fcn.005b6560
xor ebx, ebx
mov esi, dword [ebp - 4]
test esi, esi
je 0x62afa9
sub esi, 4
mov esi, dword [esi]
mov dword [ebp - 0x18], esi
cmp byte [ebp + 8], 0
je 0x62afd6
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
call fcn.00408210
push eax
push ebx
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov dword [ebp - 0x1c], eax
jmp 0x62aff8
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
call fcn.00408210
push eax
push ebx
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegEnumValueW
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
sub eax, 1
jb 0x62b06e
sub eax, 0xe9
je 0x62b012
sub eax, 0x19
je 0x62b0ad
jmp 0x62b067
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x62b029
mov eax, dword [ebp - 0x20]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x10000
jl 0x62b03c
call fcn.00407448
jmp 0x62b0cf
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x62b053
mov eax, dword [ebp - 0x24]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
add ecx, ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00407de0
jmp 0x62af9d
call fcn.00407448
jmp 0x62b0cf
lea ecx, [ebx + 1]
mov edx, dword [edi + 4]
mov eax, dword [edi]
call fcn.005b6560
lea eax, [ebp - 4]
call fcn.00408210
mov edx, eax
lea eax, [ebp - 8]
mov ecx, dword [ebp - 0x18]
call fcn.00407de0
lea ecx, [ebp - 0x30]
mov eax, edi
mov edx, ebx
call fcn.005c77e4
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 8]
call fcn.005b4724
inc ebx
jmp 0x62af9d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x62b0cb
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x62b0f1
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407cb8
ret
Function at 0x6310ac
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x631130
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
je 0x631118
mov ebx, esi
test ebx, ebx
je 0x6310de
sub ebx, 4
mov ebx, dword [ebx]
inc ebx
mov eax, ebx
add eax, eax
push eax
mov eax, esi
call fcn.00408d1c
push eax
push 1
push 0
lea eax, [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, 0x63114c
call fcn.00408f70
mov eax, dword [ebp - 8]
call fcn.00408d1c
push eax
push edi
call sub.advapi32.dll_RegSetValueExW
test eax, eax
sete al
mov ebx, eax
jmp 0x63111a
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x631137
lea eax, [ebp - 8]
call fcn.00407c58
ret

Function at 0x636f6c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x636f76
mov eax, dword [esp + 0x2000]
add esp, 4
mov edi, edx
mov esi, eax
push 0x63702c
push 0x637060
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.0040f4e8
mov ebx, eax
test ebx, ebx
je 0x637015
mov eax, esi
call fcn.00408d1c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x637015
test al, 0x10
je 0x636fc6
mov ebp, 0x2000000
jmp 0x636fc8
xor ebp, ebp
push 0
push ebp
push 3
push 0
push 7
push 0
mov eax, esi
call fcn.00408d1c
push eax
call sub.kernel32.dll_CreateFileW
mov ebp, eax
cmp ebp, 0xffffffff
je 0x637015
push 0
push 0x1000
lea eax, [esp + 8]
push eax
push ebp
call ebx
mov ebx, eax
push ebp
call sub.kernel32.dll_CloseHandle_1
test ebx, ebx
jle 0x637015
cmp ebx, 0xff0
jge 0x637015
mov edx, edi
mov eax, esp
call fcn.00636e84
jmp 0x63701e
mov eax, edi
mov edx, esi
call fcn.00408038
add esp, 0x2000
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x63707c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x20c], edx
mov esi, eax
xor eax, eax
push ebp
push 0x63710d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x208]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW_1
mov ebx, eax
test ebx, ebx
jle 0x6370e3
cmp ebx, 0x104
jge 0x6370e3
lea eax, [ebp - 0x20c]
lea edx, [ebp - 0x208]
mov ecx, 0x104
call fcn.00408dc0
mov eax, dword [ebp - 0x20c]
mov edx, esi
call fcn.00636f6c
jmp 0x6370f4
mov eax, 0x637128
call fcn.005f20f4
mov eax, esi
call fcn.00407c58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x637114
lea eax, [ebp - 0x20c]
call fcn.00407c58
ret
Function at 0x637150
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x63729f
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00636f6c
lea eax, [ebp - 8]
call fcn.0063707c
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x3c
call fcn.004053f4
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x44], 0x800540
mov eax, 0x6372ac
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 4]
call fcn.00408d1c
mov dword [ebp - 0x38], eax
mov eax, esi
call fcn.00408d1c
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 8]
call fcn.00408d1c
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 1
lea eax, [ebp - 0x48]
push eax
call sub.shell32.dll_ShellExecuteExW
test eax, eax
jne 0x6371fb
call sub.kernel32.dll_GetLastError_2
cmp eax, 0x4c7
jne 0x6371f1
call fcn.00427bb4
mov eax, 0x6372c4
call fcn.005f2040
cmp dword [ebp - 0x10], 0
jne 0x63720b
mov eax, 0x6372f0
call fcn.005f1eec
xor edx, edx
push ebp
push 0x63727d
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.00636c78
push 0x4ff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x10]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x637219
cmp eax, 0xffffffff
jne 0x637246
mov eax, 0x637344
call fcn.005f2040
call fcn.00636c78
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetExitCodeProcess
test eax, eax
jne 0x637266
mov eax, 0x637384
call fcn.005f2040
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x637284
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret

Function at 0x6373ac
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x63747b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x636a4c]
call fcn.006374a4
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x637454
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0
lea edx, [ebp - 0x10]
xor ecx, ecx
mov eax, 0x637494
call fcn.0042359c
mov edx, dword [ebp - 8]
mov eax, dword [0x65b440]
mov eax, dword [eax]
call fcn.0058edc0
call fcn.00636c78
call sub.user32.dll_GetFocus
mov edx, dword [0x65b440]
mov edx, dword [edx]
cmp eax, dword [edx + 0x178]
jne 0x637437
push 0x7a
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x63743e
call sub.user32.dll_WaitMessage
jmp 0x637411
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x63745b
mov eax, dword [ebp - 4]
call fcn.004060a0
ret