joyce8/EMBER2024-capa huggingface dataset:
Function at 0x665508
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x66566c
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [ebp - 8]
test esi, esi
je 0x66554a
or ebx, 0xffff
mov eax, esi
call fcn.0040b278
mov esi, eax
jmp 0x66554c
xor esi, esi
xor eax, eax
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
push eax
call sub.winhttp.dll_WinHttpQueryHeaders
call sub.kernel32.dll_GetLastError
cmp eax, 0x2f76
jne 0x66557c
mov eax, edi
call fcn.0040a1c8
jmp 0x665651
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
je 0x6655cc
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
call sub.kernel32.dll_GetLastError
lea ecx, [ebp - 0x20]
mov edx, dword [0x6d5408]
call fcn.00427d54
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x11
lea eax, [ebp - 0x1c]
push eax
push 1
mov ecx, dword [0x6ccba0]
mov dl, 1
mov eax, dword [0x6683dc]
call fcn.00429100
call fcn.004098c4
mov edx, dword [ebp - 0xc]
shr edx, 1
dec edx
mov eax, edi
call fcn.0040b3f0
mov eax, dword [edi]
test eax, eax
je 0x6655e4
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x665651
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [edi]
call fcn.0040b278
push eax
push esi
push ebx
mov eax, dword [ebp - 4]
push eax
call sub.winhttp.dll_WinHttpQueryHeaders
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x665651
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
call sub.kernel32.dll_GetLastError
lea ecx, [ebp - 0x24]
mov edx, dword [0x6d5408]
call fcn.00427d54
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x11
lea eax, [ebp - 0x1c]
push eax
push 1
mov ecx, dword [0x6ccba0]
mov dl, 1
mov eax, dword [0x6683dc]
call fcn.00429100
call fcn.004098c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x665673
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.0040a228
ret

Function at 0x66587e
Capabilities:
Initialize winhttp library

Disassembly:
push ebx
push esi
push edi
test dl, dl
je 0x66583f
add esp, 0xfffffff0
call fcn.00408a40
mov ebx, edx
mov edi, eax
mov eax, edi
call fcn.0066e6c4
mov dl, 1
mov eax, dword [0x663f34]
call fcn.00667f80
mov dword [edi + 0xa0], eax
mov dl, 1
mov eax, dword [0x64feb4]
call fcn.00658144
mov dword [edi + 0x9c], eax
mov eax, dword [0x663084]
call fcn.00667b68
push 0
push 0
push 0
push 1
push 0x6658e0
call sub.winhttp.dll_WinHttpOpen
mov esi, eax
mov dword [edi + 0x98], esi
test esi, esi
jne 0x6658ad
mov ecx, dword [0x6ccd64]
mov dl, 1
mov eax, dword [0x668494]
call fcn.004290c4
call fcn.004098c4
push 0
push 0x10010
push 0x66568c
mov eax, dword [edi + 0x98]
push eax
call sub.winhttp.dll_WinHttpSetStatusCallback
mov eax, edi
test bl, bl
je 0x6658da
call fcn.00408a98
pop dword fs:[0]
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x6668a0
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x666a6c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebx + 0xa0], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
jle 0x6668e3
mov esi, dword [ebp - 4]
movzx esi, word [esi + 0x10]
jmp 0x6668e5
xor esi, esi
push 0
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0040b278
push eax
mov eax, dword [ebx + 0x50]
mov eax, dword [eax + 0x98]
push eax
call sub.winhttp.dll_WinHttpConnect
mov edi, eax
mov dword [ebx + 0x88], edi
test edi, edi
jne 0x666939
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x6cc8bc]
mov dl, 1
mov eax, dword [0x66855c]
call fcn.00429100
call fcn.004098c4
xor esi, esi
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 0x666a88
call fcn.0040b660
jne 0x666952
or esi, 0x800000
push esi
push 0
push 0
push 0
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.006654c8
mov eax, dword [ebp - 0x10]
call fcn.0040b278
push eax
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.006555a8
mov eax, dword [ebp - 0x14]
call fcn.0040b278
push eax
mov eax, dword [ebx + 0x88]
push eax
call sub.winhttp.dll_WinHttpOpenRequest
mov edi, eax
mov dword [ebx + 0x8c], edi
test edi, edi
jne 0x6669de
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
call sub.kernel32.dll_GetLastError
lea ecx, [ebp - 0x28]
mov edx, dword [0x6d5408]
call fcn.00427d54
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0x11
lea eax, [ebp - 0x24]
push eax
push 1
mov ecx, dword [0x6cccdc]
mov dl, 1
mov eax, dword [0x66855c]
call fcn.00429100
call fcn.004098c4
mov edi, dword [ebx + 0x10]
push edi
push edi
mov esi, dword [ebx + 0xc]
push esi
push esi
mov eax, dword [ebx + 0x8c]
push eax
call sub.winhttp.dll_WinHttpSetTimeouts
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x666a44
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
call sub.kernel32.dll_GetLastError
lea ecx, [ebp - 0x2c]
mov edx, dword [0x6d5408]
call fcn.00427d54
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0x11
lea eax, [ebp - 0x24]
push eax
push 1
mov ecx, dword [0x6cce58]
mov dl, 1
mov eax, dword [0x66855c]
call fcn.00429100
call fcn.004098c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x666a73
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.0040a228
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a228
ret
Function at 0x67c728
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 0x67c741
sub ebx, 4
mov ebx, dword [ebx]
inc ebx
mov eax, ebx
add eax, eax
push eax
mov eax, esi
call fcn.0040b278
push eax
push 1
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x67c775
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.0067c5f4
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x67e608
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x67e779
push dword fs:[eax]
mov dword fs:[eax], esp
test cl, cl
je 0x67e65d
mov eax, dword [0x6ccda4]
cmp dword [eax], 0xa0042ee
jae 0x67e65d
mov eax, dword [ebp + 8]
cmp byte [eax], 0
jne 0x67e6e3
mov eax, 0x67e794
call fcn.00614eec
mov eax, dword [ebp + 8]
mov byte [eax], 1
jmp 0x67e6e3
test cl, cl
je 0x67e668
mov esi, 0x80000001
jmp 0x67e66d
mov esi, 0x80000002
push 0
push 2
lea eax, [ebp - 8]
push eax
mov eax, dword [0x6ccc80]
movzx eax, byte [eax]
mov ecx, dword [eax*4 + 0x6cc29c]
mov edx, esi
xor eax, eax
call fcn.005c7ce0
test eax, eax
jne 0x67e6d9
mov esi, ebx
test esi, esi
je 0x67e69c
sub esi, 4
mov esi, dword [esi]
inc esi
mov eax, esi
add eax, eax
push eax
mov eax, ebx
call fcn.0040b278
push eax
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.0040b278
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x67e6ce
mov eax, 0x67e870
call fcn.00614eec
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
jmp 0x67e6e3
mov eax, 0x67e8d4
call fcn.00614eec
cmp byte [ebp + 0xc], 0
je 0x67e75e

Function at 0x681cec
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 0x681dad
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040b278
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x681d92
test bl, 0x10
je 0x681d92
lea ecx, [ebp - 4]
mov edx, 0x681dc8
mov eax, esi
call fcn.005c52e0
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
xor ecx, ecx
mov edx, 0x681dec
mov eax, 0x681e08
call fcn.005c6b98
mov edx, 0x681e34
mov eax, dword [ebp - 8]
call fcn.00422368
test eax, eax
jne 0x681d92
mov eax, dword [ebp - 4]
call fcn.00423a20
lea ecx, [ebp - 0xc]
mov edx, 0x681e90
mov eax, esi
call fcn.005c52e0
mov eax, dword [ebp - 0xc]
call fcn.00423a20
and ebx, 0xfffffffe
push ebx
mov eax, esi
call fcn.0040b278
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 0x681db4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040a228
ret
Function at 0x682df4
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 0x682ece
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1c]
mov eax, edi
call fcn.0060bd54
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, 0x682eec
call fcn.00615170
mov eax, dword [0x6cca34]
mov eax, dword [eax + 8]
mov edx, dword [ebp + 8]
call fcn.00464cd0
mov esi, eax
mov eax, dword [esi]
mov ebx, eax
test ebx, ebx
je 0x682e67
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.0062bc04
test al, al
jne 0x682eb8
call sub.kernel32.dll_GetLastError
cmp eax, 2
jne 0x682e9d
mov eax, 0x682f3c
call fcn.00614eec
jmp 0x682eb8
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x682fdc
call fcn.00615170
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x682ed5
lea eax, [ebp - 0x1c]
call fcn.0040a1c8
ret
Function at 0x6853b4
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
push esi
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 0x68553e
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.005c5170
lea eax, [ebp - 0x258]
mov edx, 0x685558
call fcn.0040b470
mov eax, dword [ebp - 0x258]
call fcn.0040b278
push eax
call sub.kernel32.dll_FindFirstFileW
mov esi, eax
cmp esi, 0xffffffff
je 0x685518
lea eax, [ebp - 4]
lea edx, [ebp - 0x228]
mov ecx, 0x104
call fcn.0040b318
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x685447
sub ebx, 4
mov ebx, dword [ebx]
cmp ebx, 9
jl 0x68548c
lea eax, [ebp - 0x25c]
push eax
mov ecx, 5
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0040b698
mov eax, dword [ebp - 0x25c]
mov edx, 0x68557c
call fcn.00422368
test eax, eax
jne 0x68548c
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0xa]
add eax, 0xffffffd0
sub ax, 0xa
setb al
jmp 0x68548e
xor eax, eax
test al, al
je 0x6854a5
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0xc]
add eax, 0xffffffd0
sub ax, 0xa
setb al
jmp 0x6854a7
xor eax, eax
test al, al
je 0x6854be
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0xe]
add eax, 0xffffffd0
sub ax, 0xa
setb al
jmp 0x6854c0
xor eax, eax
test al, al
je 0x6854fd
mov eax, dword [ebp - 4]
cmp word [eax + 0x10], 0x2e
jne 0x6854fd
lea eax, [ebp - 0x260]
push eax
mov ecx, 3
mov edx, 6
mov eax, dword [ebp - 4]
call fcn.0040b698
mov eax, dword [ebp - 0x260]
call fcn.0042339c
mov edx, dword [ebp + 8]
mov byte [edx + eax - 0x3ec], 1
lea eax, [ebp - 0x254]
push eax
push esi
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x685428
push esi
call sub.kernel32.dll_FindClose
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x685545
lea eax, [ebp - 0x260]
mov edx, 3
call fcn.0040a228
lea eax, [ebp - 4]
call fcn.0040a1c8
ret
Function at 0x693790
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
call fcn.00693664
lea eax, [ebp - 0x18]
push eax
push 0
push 0x4a
mov eax, dword [0x6d5448]
push eax
call sub.user32.dll_SendMessageW
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
xor ecx, ecx
mov dword [edx], ecx
call fcn.00408444
cmp ebx, 0x6c840001
jne 0x6937f0
call fcn.00428ffc
mov eax, 0xffff0000
and eax, ebx
cmp eax, 0x6c830000
je 0x693814
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x1c], 0
lea edx, [ebp - 0x20]
xor ecx, ecx
mov eax, 0x6938c8
call fcn.0060bb40
mov word [ebp - 0xa], bx
call sub.kernel32.dll_GetTickCount
mov ebx, eax
call dword [ebp - 8]
call sub.kernel32.dll_GetTickCount
mov edx, eax
sub edx, ebx
cmp edx, 0xa
jb 0x69386a
mov ebx, eax
mov edx, 1
movzx eax, word [ebp - 0xa]
call fcn.006936e4
mov esi, eax
mov eax, esi
sub ax, 2
je 0x69386a
dec eax
sub ax, 2
jb 0x69387e
movzx eax, si
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
lea edx, [ebp - 0x20]
xor ecx, ecx
mov eax, 0x693928
call fcn.0060bb40
push 0x4ff
push 0xa
push 0
push 0
push 0
call sub.user32.dll_MsgWaitForMultipleObjects
jmp 0x69381f
mov edx, 2
movzx eax, word [ebp - 0xa]
call fcn.006936e4
movzx ebx, ax
mov edx, 3
movzx eax, word [ebp - 0xa]
call fcn.006936e4
movzx eax, ax
shl eax, 0x10
or ebx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
cmp si, 3
sete al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x695bc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push ecx
mov ebx, eax
mov eax, ebx
call fcn.00695c44
call fcn.00406f0c
mov esi, eax
push esp
push 0x40
mov eax, ebx
call fcn.00695c44
push eax
push esi
call sub.kernel32.dll_VirtualProtect
mov edx, esi
mov eax, ebx
call fcn.00695bf4
mov eax, esi
pop edx
pop esi
pop ebx
ret
Function at 0x697ba8
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 0x697d7a
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.0040a350
push 0
movzx eax, byte [ebp + 8]
mov eax, dword [eax*4 + 0x6cc6a4]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.0040b278
mov ecx, eax
mov eax, ebx
mov edx, esi
call fcn.005c7ce0
test eax, eax
jne 0x697d5f
xor eax, eax
push ebp
push 0x697d54
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [edi + 4]
mov eax, dword [edi]
xor ecx, ecx
call fcn.005e21a4
xor ebx, ebx
mov esi, dword [ebp - 4]
test esi, esi
je 0x697c39
sub esi, 4
mov esi, dword [esi]
mov dword [ebp - 0x18], esi
cmp byte [ebp + 8], 0
je 0x697c66
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
call fcn.0040a774
push eax
push ebx
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov dword [ebp - 0x1c], eax
jmp 0x697c88
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
call fcn.0040a774
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 0x697cfe
sub eax, 0xe9
je 0x697ca2
sub eax, 0x19
je 0x697d3d
jmp 0x697cf7
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x697cb9
mov eax, dword [ebp - 0x20]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x10000
jl 0x697ccc
call fcn.004099b8
jmp 0x697d5f
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x697ce3
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.0040a350
jmp 0x697c2d
call fcn.004099b8
jmp 0x697d5f
lea ecx, [ebx + 1]
mov edx, dword [edi + 4]
mov eax, dword [edi]
call fcn.005e21a4
lea eax, [ebp - 4]
call fcn.0040a774
mov edx, eax
lea eax, [ebp - 8]
mov ecx, dword [ebp - 0x18]
call fcn.0040a350
lea ecx, [ebp - 0x30]
mov eax, edi
mov edx, ebx
call fcn.005f20ec
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 8]
call fcn.005e02e0
inc ebx
jmp 0x697c2d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x697d5b
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x697d81
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a228
ret
Function at 0x69e828
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 0x69e8ac
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
je 0x69e894
mov ebx, esi
test ebx, ebx
je 0x69e85a
sub ebx, 4
mov ebx, dword [ebx]
inc ebx
mov eax, ebx
add eax, eax
push eax
mov eax, esi
call fcn.0040b278
push eax
push 1
push 0
lea eax, [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, 0x69e8c8
call fcn.0040b4c8
mov eax, dword [ebp - 8]
call fcn.0040b278
push eax
push edi
call sub.advapi32.dll_RegSetValueExW
test eax, eax
sete al
mov ebx, eax
jmp 0x69e896
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x69e8b3
lea eax, [ebp - 8]
call fcn.0040a1c8
ret

Function at 0x6a4cc0
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
push edi
push ebp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x6a4cca
mov eax, dword [esp + 0x2000]
add esp, 4
mov edi, edx
mov esi, eax
push 0x6a4d80
push 0x6a4db4
call sub.kernel32.dll_GetModuleHandleW
push eax
call fcn.00414020
mov ebx, eax
test ebx, ebx
je 0x6a4d69
mov eax, esi
call fcn.0040b278
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x6a4d69
test al, 0x10
je 0x6a4d1a
mov ebp, 0x2000000
jmp 0x6a4d1c
xor ebp, ebp
push 0
push ebp
push 3
push 0
push 7
push 0
mov eax, esi
call fcn.0040b278
push eax
call sub.kernel32.dll_CreateFileW
mov ebp, eax
cmp ebp, 0xffffffff
je 0x6a4d69
push 0
push 0x1000
lea eax, [esp + 8]
push eax
push ebp
call ebx
mov ebx, eax
push ebp
call sub.kernel32.dll_CloseHandle
test ebx, ebx
jle 0x6a4d69
cmp ebx, 0xff0
jge 0x6a4d69
mov edx, edi
mov eax, esp
call fcn.006a4bd8
jmp 0x6a4d72
mov eax, edi
mov edx, esi
call fcn.0040a5a8
add esp, 0x2000
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x6a4ce5
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 0x6a4cca
mov eax, dword [esp + 0x2000]
add esp, 4
mov edi, edx
mov esi, eax
push 0x6a4d80
push 0x6a4db4
call sub.kernel32.dll_GetModuleHandleW
push eax
call fcn.00414020
mov ebx, eax
test ebx, ebx
je 0x6a4d69
mov eax, esi
call fcn.0040b278
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x6a4d69
test al, 0x10
je 0x6a4d1a
mov ebp, 0x2000000
jmp 0x6a4d1c
xor ebp, ebp
push 0
push ebp
push 3
push 0
push 7
push 0
mov eax, esi
call fcn.0040b278
push eax
call sub.kernel32.dll_CreateFileW
mov ebp, eax
cmp ebp, 0xffffffff
je 0x6a4d69
push 0
push 0x1000
lea eax, [esp + 8]
push eax
push ebp
call ebx
mov ebx, eax
push ebp
call sub.kernel32.dll_CloseHandle
test ebx, ebx
jle 0x6a4d69
cmp ebx, 0xff0
jge 0x6a4d69
mov edx, edi
mov eax, esp
call fcn.006a4bd8
jmp 0x6a4d72
mov eax, edi
mov edx, esi
call fcn.0040a5a8
add esp, 0x2000
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x6a4dd0
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 0x6a4e61
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x208]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
mov ebx, eax
test ebx, ebx
jle 0x6a4e37
cmp ebx, 0x104
jge 0x6a4e37
lea eax, [ebp - 0x20c]
lea edx, [ebp - 0x208]
mov ecx, 0x104
call fcn.0040b318
mov eax, dword [ebp - 0x20c]
mov edx, esi
call fcn.006a4cc0
jmp 0x6a4e48
mov eax, 0x6a4e7c
call fcn.0060bcf8
mov eax, esi
call fcn.0040a1c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6a4e68
lea eax, [ebp - 0x20c]
call fcn.0040a1c8
ret

Function at 0x6a4ea4
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 0x6a4ff3
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.006a4cc0
lea eax, [ebp - 8]
call fcn.006a4dd0
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x3c
call fcn.00407760
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x44], 0x800540
mov eax, 0x6a5000
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 4]
call fcn.0040b278
mov dword [ebp - 0x38], eax
mov eax, esi
call fcn.0040b278
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 8]
call fcn.0040b278
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 0x6a4f4f
call sub.kernel32.dll_GetLastError
cmp eax, 0x4c7
jne 0x6a4f45
call fcn.00428fdc
mov eax, 0x6a5018
call fcn.0060bc40
cmp dword [ebp - 0x10], 0
jne 0x6a4f5f
mov eax, 0x6a5044
call fcn.0060bae4
xor edx, edx
push ebp
push 0x6a4fd1
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.006a49cc
push 0x4ff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x10]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x6a4f6d
cmp eax, 0xffffffff
jne 0x6a4f9a
mov eax, 0x6a5098
call fcn.0060bc40
call fcn.006a49cc
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetExitCodeProcess
test eax, eax
jne 0x6a4fba
mov eax, 0x6a50d8
call fcn.0060bc40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6a4fd8
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
ret