joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18006b10
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x18006b1d
xor al, al
pop esi
ret
push 0x1f4
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x18006b56
cmp eax, 0x80
je 0x18006b56
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.1800b4c6
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [esi + 9], 0
jmp 0x18006b19
mov al, 1
pop esi
ret

Function at 0x180075b5
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
lea ebx, [ecx + 4]
push edi
mov edi, edx
test ebx, ebx
je 0x180075eb
lea esi, [edi + 4]
test esi, esi
je 0x180075eb
call fcn.180048d2
test al, al
je 0x180075eb
mov ecx, edi
call fcn.180048d2
test al, al
je 0x180075eb
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
jmp 0x180075ed
xor al, al
pop edi
pop esi
pop ebx
ret

Function at 0x18008c8f
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x181cb008]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
push 0x250
xor ebx, ebx
lea eax, [esp + 0x1c]
mov edi, ecx
push ebx
push eax
mov dword [esp + 0x20], edi
call fcn.18147220
add esp, 0xc
lea ecx, [esp + 0x10]
push edi
call fcn.18006d94
push 0x181a6830
lea ecx, [esp + 0x14]
call fcn.18009d8f
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x18008d01
call fcn.18013c92
mov edi, eax
jmp 0x18008d97
push edi
lea ecx, [esp + 0x10]
call fcn.18006d94
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x10]
call fcn.18009d8f
lea eax, [esp + 0x44]
push 0x181a6838
push eax
call fcn.181515a4
pop ecx
pop ecx
test eax, eax
je 0x18008d5d
lea eax, [esp + 0x44]
push 0x181a6814
push eax
call fcn.181515a4
pop ecx
pop ecx
test eax, eax
je 0x18008d5d
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.1800913c
test eax, eax
jns 0x18008d54
mov ebx, eax
lea ecx, [edi - 0x10]
mov edi, dword [esp + 0x14]
jmp 0x18008d64
mov ecx, dword [esp + 0xc]
add ecx, 0xfffffff0
call fcn.18004665
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18008d01
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x12
je 0x18008d95
test edi, edi
jle 0x18008d97
movzx edi, di
or edi, 0x80070000
jmp 0x18008d97
mov edi, ebx
cmp esi, 0xffffffff
je 0x18008da3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.18004665
mov ecx, dword [esp + 0x26c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.18144705
mov esp, ebp
pop ebp
ret
Function at 0x18008dc6
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x181cb008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x250
xor ebx, ebx
lea eax, [ebp - 0x258]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x264], edi
call fcn.18147220
add esp, 0xc
lea ecx, [ebp - 0x25c]
push edi
call fcn.18006d94
push 0x5c
lea ecx, [ebp - 0x25c]
call fcn.18006e73
push 0x181a6840
lea ecx, [ebp - 0x25c]
call fcn.180071f9
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x18008e59
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x18008eee
call fcn.18013c92
mov ebx, eax
jmp 0x18008eee
test byte [ebp - 0x258], 0x10
jne 0x18008ec3
push edi
lea ecx, [ebp - 0x260]
call fcn.18006d94
push 0x5c
lea ecx, [ebp - 0x260]
call fcn.18006e73
lea eax, [ebp - 0x22c]
push eax
call fcn.1814b183
pop ecx
push eax
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x260]
call fcn.18006ea0
mov edi, dword [ebp - 0x260]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x18008eb5
mov ecx, edi
call fcn.1800ab34
mov ebx, eax
lea ecx, [edi - 0x10]
call fcn.18004665
mov edi, dword [ebp - 0x264]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18008e59
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x18008ee7
call fcn.18013c92
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x25c]
lea ecx, [ecx - 0x10]
call fcn.18004665
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18144705
leave
ret
Function at 0x18008f0d
Capabilities:
Check if file exists
Delete directory
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x181cb008]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], edi
test edi, edi
je 0x18008f8f
movzx eax, word [edi]
test ax, ax
je 0x18008f8f
push 0x3a
mov ecx, eax
xor dl, dl
pop eax
push 0x2e
mov esi, edi
pop ebx
cmp cx, 0x5c
je 0x18008f60
cmp cx, 0x2f
je 0x18008f60
cmp cx, ax
je 0x18008f60
cmp cx, bx
je 0x18008f65
mov dl, 1
cmp cx, bx
jne 0x18008f73
cmp esi, edi
jbe 0x18008f73
cmp word [esi - 2], bx
je 0x18009122
cmp cx, ax
push 0x3a
sete al
add esi, 2
dec al
and dl, al
movzx eax, word [esi]
mov ecx, eax
test ax, ax
pop eax
jne 0x18008f48
jmp 0x18008f91
xor dl, dl
test dl, dl
je 0x18009122
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x18008fc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x18008fb7
xor eax, eax
jmp 0x18009127
call fcn.18013c92
jmp 0x18009127
and eax, 0x410
cmp eax, 0x10
jne 0x18009122
mov ecx, edi
call fcn.18008dc6
push 0x250
mov ebx, eax
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.18147220
add esp, 0xc
lea ecx, [esp + 0x10]
push edi
call fcn.18006d94
mov esi, 0x181a6844
push esi
call fcn.1814b183
pop ecx
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.18006ea0
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x18009044
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x18009112
call fcn.18013c92
test ebx, ebx
jns 0x18009110
jmp 0x18009112
test byte [esp + 0x18], 0x10
je 0x180090db
push 0
push 2
mov edx, 0x181a6814
lea ecx, [esp + 0x4c]
call fcn.1800d0de
pop ecx
pop ecx
test eax, eax
je 0x180090db
push 0
push 3
mov edx, 0x181a6838
lea ecx, [esp + 0x4c]
call fcn.1800d0de
pop ecx
pop ecx
test eax, eax
je 0x180090db
push edi
lea ecx, [esp + 0x10]
call fcn.18006d94
mov edi, 0x181a5cc8
push edi
call fcn.1814b183
pop ecx
push eax
push edi
lea ecx, [esp + 0x14]
call fcn.18006ea0
lea eax, [esp + 0x44]
push eax
call fcn.1814b183
pop ecx
push eax
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x14]
call fcn.18006ea0
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.18008f0d
test ebx, ebx
js 0x180090cf
test eax, eax
jns 0x180090cf
mov ebx, eax
lea ecx, [edi - 0x10]
call fcn.18004665
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18009044
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x18009112
mov ecx, edi
call fcn.1800ab34
test ebx, ebx
js 0x18009112
test eax, eax
jns 0x18009112
mov ebx, eax
mov ecx, dword [esp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.18004665
mov eax, ebx
jmp 0x18009127
mov eax, 0x80004005
mov ecx, dword [esp + 0x26c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.18144705
mov esp, ebp
pop ebp
ret
Function at 0x180096ae
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x20]
call fcn.1800829c
xor ebx, ebx
mov esi, ebx
cmp dword [edi + 8], ebx
jne 0x18009708
call fcn.180111af
test al, al
je 0x18009708
call fcn.180081e7
mov esi, eax
test esi, esi
je 0x18009778
mov dword [edi + 8], esi
cmp dword [edi + 0xc], ebx
je 0x18009708
push str.runas
push dword [edi + 0xc]
call fcn.181514a3
pop ecx
pop ecx
test eax, eax
jne 0x18009708
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
setne byte [esp + 0xf]
test eax, eax
je 0x180097ca
mov ecx, dword [edi + 0x38]
test ecx, ecx
je 0x18009787
call fcn.180100ba
movzx ecx, byte [0x181d398a]
mov edi, eax
neg ecx
sbb ecx, ecx
and ecx, 0x181d2b40
je 0x1800976f
push 7
pop edx
xor eax, eax
mov dword [esp + 0x10], ecx
inc eax
mov dword [esp + 0x14], edx
push eax
push edx
mov dword [esp + 0x20], eax
call fcn.18005da9
push edi
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push str._Started_process___u_
push eax
call fcn.180041a3
add esp, 0xc
push edi
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
jmp 0x180097d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x180097e8
movzx ecx, byte [0x181d398a]
neg ecx
sbb ecx, ecx
and ecx, 0x181d2b40
je 0x180097d2
push 7
pop edx
xor eax, eax
mov dword [esp + 0x10], ecx
inc eax
mov dword [esp + 0x14], edx
push eax
push edx
mov dword [esp + 0x20], eax
call fcn.18005da9
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push str._Started_process__PID_unknown_
push eax
call fcn.180041a3
pop ecx
pop ecx
jmp 0x180097d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test esi, esi
je 0x180097dd
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov bl, byte [esp + 0xf]
lea ecx, [esp + 0x20]
call fcn.180082f6
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x18009873
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push esi
push edi
push str.Global_MSIExecute
xor edi, edi
push edi
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov esi, eax
test esi, esi
jne 0x180098a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x180098e9
test eax, eax
jle 0x180098d7
movzx edi, ax
or edi, 0x80070000
jmp 0x180098e9
push 0x493e0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x180098e2
cmp eax, 0x80
je 0x180098e2
cmp eax, 0x102
je 0x180098db
cmp eax, 0xffffffff
je 0x180098d2
mov edi, 0x80004005
jmp 0x180098e9
call fcn.18013c92
mov edi, eax
jmp 0x180098e9
mov edi, 0x800705b4
jmp 0x180098e9
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test esi, esi
je 0x180098f4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
Function at 0x18009a55
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov esi, ecx
mov edi, edx
mov dword [ebp - 8], edi
cmp esi, 0x40
ja 0x18009a7b
push dword [ebp + 8]
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
jmp 0x18009b0f
push ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
mov dword [ebp - 0xc], eax
mov byte [ebp - 1], bl
mov ecx, ebx
lea eax, [ecx + 0x40]
mov dword [ebp - 0x10], eax
cmp eax, esi
ja 0x18009a9b
push 0x40
pop edi
jmp 0x18009a9f
mov edi, esi
sub edi, ecx
mov eax, dword [ebp + 8]
sub eax, ebx
push eax
push 1
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ecx, eax
cmp ecx, 0x102
je 0x18009b0c
cmp ecx, 0xffffffff
je 0x18009b0c
cmp ecx, 0x80
jb 0x18009ad6
lea eax, [edi + 0x80]
cmp ecx, eax
jae 0x18009ad6
mov byte [ebp - 1], 1
cmp dword [ebp + 8], 0xffffffff
je 0x18009aef
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
sub ebx, dword [ebp - 0xc]
cmp ebx, dword [ebp + 8]
jbe 0x18009aef
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
add dword [ebp - 8], 0x100
cmp ecx, esi
jb 0x18009a8c
movzx eax, byte [ebp - 1]
neg eax
sbb eax, eax
and eax, 0x80
jmp 0x18009b0e
mov eax, ecx
pop ebx
pop edi
pop esi
leave
ret

Function at 0x1800a94b
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 8]
mov esi, ecx
lea ecx, [esi + 4]
call fcn.18006dc6
mov bl, byte [ebp + 0xc]
push 0
push 0x10000000
movzx eax, bl
add eax, 3
push eax
xor eax, eax
test bl, bl
push 0
push dword [ebp + 0x14]
sete al
dec eax
and eax, 0x102
inc eax
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x1800a999
call fcn.18013c92
jmp 0x1800a9bb
test bl, bl
je 0x1800a9af
push 0x2000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1800a992
and dword [esi + 0xc], 0
xor bl, 1
mov byte [esi + 8], bl
xor eax, eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x1800a9c1
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x181cb008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
mov esi, ecx
push dword [ebx + 4]
push dword [ebx]
call fcn.1800a113
mov eax, dword [ebx]
mov edx, esi
push ecx
push ecx
lea ecx, [ebp - 0x260]
mov dword [ebx + 4], eax
call fcn.1800cb56
push 0x250
lea eax, [ebp - 0x25c]
push 0
push eax
call fcn.18147220
push edi
lea edx, [ebp - 0x260]
lea ecx, [ebp - 0x268]
call fcn.18006bfe
add esp, 0x18
lea ecx, [ebp - 0x25c]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x268]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.18004665
cmp esi, 0xffffffff
jne 0x1800aa51
call fcn.18013c92
mov edi, eax
jmp 0x1800aabe
cmp dword [ebp - 0x25c], 0x80
je 0x1800aa66
test byte [ebp - 0x25c], 0x10
jne 0x1800aa9b
lea eax, [ebp - 0x230]
push eax
lea edx, [ebp - 0x260]
lea ecx, [ebp - 0x264]
call fcn.18006bfe
pop ecx
lea eax, [ebp - 0x264]
mov ecx, ebx
push eax
call fcn.18009e4a
mov ecx, dword [ebp - 0x264]
lea ecx, [ecx - 0x10]
call fcn.18004665
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1800aa51
call fcn.18013c92
mov edi, eax
cmp edi, 0x80070012
jne 0x1800aabe
xor edi, edi
cmp esi, 0xffffffff
je 0x1800aaca
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x260]
add ecx, 0xfffffff0
call fcn.18004665
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18144705
leave
ret

Function at 0x1800b028
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push 0
push eax
push dword [ebp + 0xc]
mov esi, ecx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1800b052
call fcn.18013c92
jmp 0x1800b06d
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
test ecx, ecx
je 0x1800b05e
mov dword [ecx], eax
add dword [esi + 0xc], eax
sub eax, dword [ebp + 0xc]
neg eax
sbb eax, eax
and eax, 0x80004005
pop esi
leave
ret 0xc
Function at 0x1800b5a1
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x181cb008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x802
lea eax, [ebp - 0x808]
mov edi, edx
push 0
push eax
mov ebx, ecx
call fcn.18147220
mov esi, dword [0x181d2c18]
lea ecx, [ebp - 0x80c]
xor edx, edx
call fcn.1800e6ff
push edi
push str.baselogging.cc
push 0
push esi
push dword [ebp - 0x80c]
lea eax, [ebp - 0x808]
push ebx
push str.Exception__x_in__s__s__u_r_n_r_n_hs:_d_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 0x80c]
add esp, 0x2c
lea ecx, [ecx - 0x10]
call fcn.18004665
lea ecx, [ebp - 0x808]
call fcn.18013cd0
push 0x250012
push str.Exception
lea eax, [ebp - 0x808]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
pop ebx
sub eax, 3
je 0x1800b655
sub eax, 1
jne 0x1800b646
int3
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
call fcn.18144705
leave
ret
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1800ccdf
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
test edi, edi
jle 0x1800cdfb
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
cmp edi, 2
jle 0x1800cd5e
sub edx, 4
js 0x1800cdfb
movzx eax, byte [ebx]
shr eax, 2
mov al, byte [eax + ecx]
mov byte [esi], al
movzx ecx, byte [ebx]
movzx eax, byte [ebx + 1]
and ecx, 3
shr eax, 4
shl ecx, 4
add ecx, dword [ebp + 0x10]
mov al, byte [eax + ecx]
mov byte [esi + 1], al
movzx eax, byte [ebx + 2]
movzx ecx, byte [ebx + 1]
shr eax, 6
and ecx, 0xf
add eax, dword [ebp + 0x10]
mov al, byte [eax + ecx*4]
mov ecx, dword [ebp + 0x10]
mov byte [esi + 2], al
movzx eax, byte [ebx + 2]
add ebx, 3
and eax, 0x3f
mov al, byte [eax + ecx]
mov byte [esi + 3], al
add esi, 4
sub edi, 3
jmp 0x1800ccfa
sub edi, 1
je 0x1800cdbe
sub edi, 1
jne 0x1800cdf4
sub edx, 3
js 0x1800cdfb
movzx eax, byte [ebx]
mov edi, dword [ebp + 0x10]
shr eax, 2
mov al, byte [eax + ecx]
mov byte [esi], al
movzx ecx, byte [ebx]
movzx eax, byte [ebx + 1]
and ecx, 3
shr eax, 4
shl ecx, 4
add ecx, edi
mov al, byte [eax + ecx]
mov byte [esi + 1], al
movzx eax, byte [ebx + 1]
and eax, 0xf
mov al, byte [edi + eax*4]
mov byte [esi + 2], al
add esi, 3
cmp byte [ebp + 0x14], 0
je 0x1800cdf4
lea eax, [edx - 1]
test eax, eax
js 0x1800cdfb
mov byte [esi], 0x3d
inc esi
jmp 0x1800cdf4
sub edx, 2
js 0x1800cdfb
movzx eax, byte [ebx]
shr eax, 2
mov al, byte [eax + ecx]
mov byte [esi], al
movzx eax, byte [ebx]
and eax, 3
add eax, eax
mov al, byte [ecx + eax*8]
mov byte [esi + 1], al
add esi, 2
cmp byte [ebp + 0x14], 0
je 0x1800cdf4
lea eax, [edx - 2]
test eax, eax
js 0x1800cdfb
mov word [esi], 0x3d3d
add esi, 2
sub esi, dword [ebp + 8]
mov eax, esi
jmp 0x1800cdfd
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1800e594
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x181cb008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
mov ecx, esi
call fcn.18006e3e
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.18147220
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push ebx
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test edi, edi
jns 0x1800e62e
movzx ecx, bl
cmp ecx, 0x26
jne 0x1800e5f2
mov edx, str.ProgramFiles
jmp 0x1800e5fc
cmp ecx, 0x1c
jne 0x1800e61d
mov edx, str.LocalAppData
lea ecx, [ebp - 0x210]
call fcn.18005208
push eax
mov ecx, esi
call fcn.18006d3c
mov ecx, dword [ebp - 0x210]
lea ecx, [ecx - 0x10]
call fcn.18004665
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x1800e62a
xor eax, eax
inc eax
jmp 0x1800e64c
mov eax, edi
jmp 0x1800e64c
lea eax, [ebp - 0x20c]
push eax
call fcn.1814b183
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.1800704f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18144705
leave
ret

Function at 0x1800ec55
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea esi, [ecx + 4]
push esi
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
jne 0x1800ec96
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
jne 0x1800ec96
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jb 0x1800ec71
xor al, al
jmp 0x1800ec98
mov al, 1
pop esi
leave
ret 4
Function at 0x1800ecf1
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x181cb008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
mov dword [ebp - 0x25c], ebx
push dword [ebx + 4]
mov esi, ecx
push dword [ebx]
call fcn.1800a113
mov eax, dword [ebx]
mov dword [ebx + 4], eax
mov ecx, dword [esi]
call fcn.180050b2
test al, al
jne 0x1800ed38
mov eax, 0x80070003
jmp 0x1800edf1
push edi
mov edx, esi
lea ecx, [ebp - 0x260]
call fcn.1800ee00
mov dword [esp], 0x250
lea eax, [ebp - 0x258]
xor ebx, ebx
push ebx
push eax
call fcn.18147220
mov edi, dword [ebp - 0x260]
lea eax, [ebp - 0x258]
add esp, 0xc
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1800ed83
call fcn.18013c92
mov ebx, eax
jmp 0x1800ede7
mov edi, dword [ebp - 0x25c]
lea eax, [ebp - 0x258]
push eax
call fcn.18007a14
pop ecx
test al, al
je 0x1800edc8
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x25c]
call fcn.18006d94
lea eax, [ebp - 0x25c]
mov ecx, edi
push eax
call fcn.18009e4a
mov ecx, dword [ebp - 0x25c]
lea ecx, [ecx - 0x10]
call fcn.18004665
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1800ed89
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [ebp - 0x260]
lea ecx, [edi - 0x10]
call fcn.18004665
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18144705
leave
ret

Function at 0x1800f80a
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x181cb008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x234], ecx
push edi
push 2
mov dword [ebx], edi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x1800f8a6
push 0x22c
lea eax, [ebp - 0x230]
push edi
push eax
call fcn.18147220
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1800f8a6
mov ecx, dword [ebp - 0x234]
mov eax, dword [ebp - 0x228]
cmp eax, dword [ecx + 0x1c]
jne 0x1800f889
mov eax, dword [ebp - 0x218]
test eax, eax
jne 0x1800f8a2
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1800f86e
mov edi, 0x80004005
jmp 0x1800f8ad
mov dword [ebx], eax
jmp 0x1800f8ad
call fcn.18013c92
mov edi, eax
cmp esi, 0xffffffff
je 0x1800f8b9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18144705
leave
ret 4