joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800bb5d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1826b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov ebx, ecx
test esi, esi
jne 0x1800bb84
mov eax, 0x80070057
jmp 0x1800bc24
push edi
mov ecx, esi
call fcn.18007010
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.180c7aa0
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 0x1800bc05
movzx ecx, bl
cmp ecx, 0x26
jne 0x1800bbc9
mov edx, str.ProgramFiles
jmp 0x1800bbd3
cmp ecx, 0x1c
jne 0x1800bbf4
mov edx, str.LocalAppData
lea ecx, [ebp - 0x210]
call fcn.1800c794
push eax
mov ecx, esi
call fcn.18009d7d
mov ecx, dword [ebp - 0x210]
lea ecx, [ecx - 0x10]
call fcn.18006a60
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x1800bc01
xor eax, eax
inc eax
jmp 0x1800bc23
mov eax, edi
jmp 0x1800bc23
lea eax, [ebp - 0x20c]
push eax
call fcn.180d0fcb
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.180070d0
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.180b1200
leave
ret

Function at 0x1800bc32
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x1826b00c]
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.180c7aa0
add esp, 0xc
lea ecx, [esp + 0x10]
push edi
call fcn.18006fb5
push 0x18232b24
lea ecx, [esp + 0x14]
call fcn.1800cd5b
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1800bca4
call fcn.18016093
mov edi, eax
jmp 0x1800bd3a
push edi
lea ecx, [esp + 0x10]
call fcn.18006fb5
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x10]
call fcn.1800cd5b
lea eax, [esp + 0x44]
push 0x18232b2c
push eax
call fcn.180d4914
pop ecx
pop ecx
test eax, eax
je 0x1800bd00
lea eax, [esp + 0x44]
push 0x18232ad0
push eax
call fcn.180d4914
pop ecx
pop ecx
test eax, eax
je 0x1800bd00
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.1800c0d9
test eax, eax
jns 0x1800bcf7
mov ebx, eax
lea ecx, [edi - 0x10]
mov edi, dword [esp + 0x14]
jmp 0x1800bd07
mov ecx, dword [esp + 0xc]
add ecx, 0xfffffff0
call fcn.18006a60
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1800bca4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x12
je 0x1800bd38
test edi, edi
jle 0x1800bd3a
movzx edi, di
or edi, 0x80070000
jmp 0x1800bd3a
mov edi, ebx
cmp esi, 0xffffffff
je 0x1800bd46
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.18006a60
mov ecx, dword [esp + 0x26c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.180b1200
mov esp, ebp
pop ebp
ret
Function at 0x1800bd69
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x1826b00c]
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.180c7aa0
add esp, 0xc
lea ecx, [ebp - 0x25c]
push edi
call fcn.18006fb5
push 0x5c
lea ecx, [ebp - 0x25c]
call fcn.18009e1a
push 0x18232b34
lea ecx, [ebp - 0x25c]
call fcn.1800a022
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1800bdfc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1800be91
call fcn.18016093
mov ebx, eax
jmp 0x1800be91
test byte [ebp - 0x258], 0x10
jne 0x1800be66
push edi
lea ecx, [ebp - 0x260]
call fcn.18006fb5
push 0x5c
lea ecx, [ebp - 0x260]
call fcn.18009e1a
lea eax, [ebp - 0x22c]
push eax
call fcn.180d0fcb
pop ecx
push eax
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x260]
call fcn.18009e47
mov edi, dword [ebp - 0x260]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1800be58
mov ecx, edi
call fcn.1800dc45
mov ebx, eax
lea ecx, [edi - 0x10]
call fcn.18006a60
mov edi, dword [ebp - 0x264]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1800bdfc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1800be8a
call fcn.18016093
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x25c]
lea ecx, [ecx - 0x10]
call fcn.18006a60
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.180b1200
leave
ret
Function at 0x1800beb0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x1826b00c]
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 0x1800bf32
movzx eax, word [edi]
test ax, ax
je 0x1800bf32
push 0x3a
mov ecx, eax
xor dl, dl
pop eax
push 0x2e
mov esi, edi
pop ebx
cmp cx, 0x5c
je 0x1800bf03
cmp cx, 0x2f
je 0x1800bf03
cmp cx, ax
je 0x1800bf03
cmp cx, bx
je 0x1800bf08
mov dl, 1
cmp cx, bx
jne 0x1800bf16
cmp esi, edi
jbe 0x1800bf16
cmp word [esi - 2], bx
je 0x1800c0bf
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 0x1800beeb
jmp 0x1800bf34
xor dl, dl
test dl, dl
je 0x1800c0bf
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1800bf64
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1800bf5a
xor eax, eax
jmp 0x1800c0c4
call fcn.18016093
jmp 0x1800c0c4
test al, 0x10
je 0x1800c0bf
mov ecx, edi
call fcn.1800bd69
push 0x250
mov ebx, eax
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.180c7aa0
add esp, 0xc
lea ecx, [esp + 0x10]
push edi
call fcn.18006fb5
mov esi, 0x18232b38
push esi
call fcn.180d0fcb
pop ecx
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.18009e47
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1800bfe1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1800c0af
call fcn.18016093
test ebx, ebx
jns 0x1800c0ad
jmp 0x1800c0af
test byte [esp + 0x18], 0x10
je 0x1800c078
push 0
push 2
mov edx, 0x18232ad0
lea ecx, [esp + 0x4c]
call fcn.1800fe91
pop ecx
pop ecx
test eax, eax
je 0x1800c078
push 0
push 3
mov edx, 0x18232b2c
lea ecx, [esp + 0x4c]
call fcn.1800fe91
pop ecx
pop ecx
test eax, eax
je 0x1800c078
push edi
lea ecx, [esp + 0x10]
call fcn.18006fb5
mov edi, 0x18231f48
push edi
call fcn.180d0fcb
pop ecx
push eax
push edi
lea ecx, [esp + 0x14]
call fcn.18009e47
lea eax, [esp + 0x44]
push eax
call fcn.180d0fcb
pop ecx
push eax
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x14]
call fcn.18009e47
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.1800beb0
test ebx, ebx
js 0x1800c06c
test eax, eax
jns 0x1800c06c
mov ebx, eax
lea ecx, [edi - 0x10]
call fcn.18006a60
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1800bfe1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1800c0af
mov ecx, edi
call fcn.1800dc45
test ebx, ebx
js 0x1800c0af
test eax, eax
jns 0x1800c0af
mov ebx, eax
mov ecx, dword [esp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.18006a60
mov eax, ebx
jmp 0x1800c0c4
mov eax, 0x80004005
mov ecx, dword [esp + 0x26c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.180b1200
mov esp, ebp
pop ebp
ret
Function at 0x1800c0d9
Capabilities:
Check if file exists
Delete directory
Enumerate files on windows
Get file attributes

Disassembly:
push esi
mov esi, ecx
call fcn.1800da32
test al, al
jne 0x1800c0ec
mov eax, 0x80070002
pop esi
ret
mov ecx, esi
call fcn.1800da6e
mov ecx, esi
test al, al
je 0x1800c0ff
pop esi
jmp fcn.1800beb0
call fcn.1800dbdb
test eax, eax
jns 0x1800c0ea
mov ecx, esi
pop esi
jmp fcn.1800dc45

Function at 0x1800c54e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [esp + 0x14], eax
mov ebx, eax
cmp dword [esi + 8], eax
jne 0x1800c5a7
call fcn.180121de
test al, al
je 0x1800c5a7
call fcn.1800b156
mov edi, eax
test edi, edi
je 0x1800c617
mov dword [esp + 0x14], eax
mov dword [esi + 8], edi
cmp dword [esi + 0xc], ebx
je 0x1800c5a7
push str.runas
push dword [esi + 0xc]
call fcn.180d4aa0
pop ecx
pop ecx
test eax, eax
jne 0x1800c5a7
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
setne byte [esp + 0x13]
test eax, eax
je 0x1800c664
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x1800c621
call fcn.18013cca
movzx ecx, byte [0x1827e6e4]
mov esi, eax
neg ecx
sbb ecx, ecx
and ecx, 0x1827e000
je 0x1800c60e
push 7
pop edx
xor eax, eax
mov dword [esp + 0x18], ecx
inc eax
mov dword [esp + 0x1c], edx
push eax
push edx
mov dword [esp + 0x28], eax
call fcn.18008c56
push esi
mov dword [esp + 0x28], eax
lea eax, [esp + 0x1c]
push str._Started_process___u_
push eax
call fcn.18006ca0
add esp, 0xc
push esi
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
jmp 0x1800c66c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1800c683
movzx ecx, byte [0x1827e6e4]
neg ecx
sbb ecx, ecx
and ecx, 0x1827e000
je 0x1800c66c
push 7
pop edx
xor eax, eax
mov dword [esp + 0x18], ecx
inc eax
mov dword [esp + 0x1c], edx
push eax
push edx
mov dword [esp + 0x28], eax
call fcn.18008c56
mov dword [esp + 0x24], eax
lea eax, [esp + 0x18]
push str._Started_process__PID_unknown_
push eax
call fcn.18006ca0
pop ecx
pop ecx
jmp 0x1800c66c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1800c67b
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov al, byte [esp + 0x13]
mov byte [esp + 0x14], al
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1800c70e
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 0x1800c743
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1800c784
test eax, eax
jle 0x1800c772
movzx edi, ax
or edi, 0x80070000
jmp 0x1800c784
push 0x493e0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1800c77d
cmp eax, 0x80
je 0x1800c77d
cmp eax, 0x102
je 0x1800c776
cmp eax, 0xffffffff
je 0x1800c76d
mov edi, 0x80004005
jmp 0x1800c784
call fcn.18016093
mov edi, eax
jmp 0x1800c784
mov edi, 0x800705b4
jmp 0x1800c784
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test esi, esi
je 0x1800c78f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

Function at 0x1800c9d0
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 0x1800c9f6
push dword [ebp + 8]
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
jmp 0x1800ca8a
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 0x1800ca16
push 0x40
pop edi
jmp 0x1800ca1a
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 0x1800ca87
cmp ecx, 0xffffffff
je 0x1800ca87
cmp ecx, 0x80
jb 0x1800ca51
lea eax, [edi + 0x80]
cmp ecx, eax
jae 0x1800ca51
mov byte [ebp - 1], 1
cmp dword [ebp + 8], 0xffffffff
je 0x1800ca6a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
sub ebx, dword [ebp - 0xc]
cmp ebx, dword [ebp + 8]
jbe 0x1800ca6a
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
add dword [ebp - 8], 0x100
cmp ecx, esi
jb 0x1800ca07
movzx eax, byte [ebp - 1]
neg eax
sbb eax, eax
and eax, 0x80
jmp 0x1800ca89
mov eax, ecx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x1800dabb
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x1826b00c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, ebx
push edi
mov edi, edx
call fcn.1800cdc4
push ecx
push ecx
mov edx, esi
lea ecx, [ebp - 0x260]
call fcn.1800f96b
push 0x250
lea eax, [ebp - 0x25c]
push 0
push eax
call fcn.180c7aa0
push edi
lea edx, [ebp - 0x260]
lea ecx, [ebp - 0x268]
call fcn.18009b89
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.18006a60
cmp esi, 0xffffffff
jne 0x1800db43
call fcn.18016093
mov edi, eax
jmp 0x1800dbb0
cmp dword [ebp - 0x25c], 0x80
je 0x1800db58
test byte [ebp - 0x25c], 0x10
jne 0x1800db8d
lea eax, [ebp - 0x230]
push eax
lea edx, [ebp - 0x260]
lea ecx, [ebp - 0x264]
call fcn.18009b89
pop ecx
lea eax, [ebp - 0x264]
mov ecx, ebx
push eax
call fcn.18009b08
mov ecx, dword [ebp - 0x264]
lea ecx, [ecx - 0x10]
call fcn.18006a60
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1800db43
call fcn.18016093
mov edi, eax
cmp edi, 0x80070012
jne 0x1800dbb0
xor edi, edi
cmp esi, 0xffffffff
je 0x1800dbbc
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x260]
add ecx, 0xfffffff0
call fcn.18006a60
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.180b1200
leave
ret

Function at 0x1800dbdb
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, ecx
call fcn.1800da32
test al, al
je 0x1800dc17
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1800dc0c
test al, 1
je 0x1800dc0c
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1800dc0c
pop esi
jmp fcn.18016093
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1800dc06
xor eax, eax
pop esi
ret
Function at 0x1800e50c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x1826b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp edi, 0x80000003
jne 0x1800e539
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.180b1200
leave
ret
push esi
push 0x802
lea eax, [ebp - 0x808]
push 0
push eax
call fcn.180c7aa0
mov esi, dword [0x1827e104]
lea ecx, [ebp - 0x80c]
xor edx, edx
call fcn.18011641
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push str.baselogging.cc
push 0
push esi
push dword [ebp - 0x80c]
push edi
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.18006a60
lea ecx, [ebp - 0x808]
call fcn.180160d3
push 0x250012
push str.Exception
lea eax, [ebp - 0x808]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop esi
sub eax, 3
je 0x1800e5cd
sub eax, 1
jne 0x1800e5c5
int3
xor eax, eax
inc eax
jmp 0x1800e52c
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1800fae5
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 0x1800fc01
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
cmp edi, 2
jle 0x1800fb64
sub edx, 4
js 0x1800fc01
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 0x1800fb00
sub edi, 1
je 0x1800fbc4
sub edi, 1
jne 0x1800fbfa
sub edx, 3
js 0x1800fc01
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 0x1800fbfa
lea eax, [edx - 1]
test eax, eax
js 0x1800fc01
mov byte [esi], 0x3d
inc esi
jmp 0x1800fbfa
sub edx, 2
js 0x1800fc01
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 0x1800fbfa
lea eax, [edx - 2]
test eax, eax
js 0x1800fc01
mov word [esi], 0x3d3d
add esi, 2
sub esi, dword [ebp + 8]
mov eax, esi
jmp 0x1800fc03
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x18011f3b
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 0x18011f7c
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 0x18011f7c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jb 0x18011f57
xor al, al
jmp 0x18011f7e
mov al, 1
pop esi
leave
ret 4

Function at 0x18012573
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x1826b00c]
xor eax, esp
mov dword [esp + 0x260], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], eax
push edi
mov ecx, eax
mov edi, edx
call fcn.1800cdc4
mov ecx, dword [esi]
call fcn.1800da32
test al, al
jne 0x180125b7
mov eax, 0x80070003
jmp 0x18012658
push edi
mov edx, esi
lea ecx, [esp + 0x18]
call fcn.1801266d
mov dword [esp], 0x250
lea eax, [esp + 0x1c]
xor ebx, ebx
push ebx
push eax
call fcn.180c7aa0
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x24]
add esp, 0xc
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x180125fa
call fcn.18016093
mov ebx, eax
jmp 0x1801264e
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
call fcn.1800a9c3
pop ecx
test al, al
je 0x18012633
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x14]
call fcn.18006fb5
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.18009b08
mov ecx, dword [esp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.18006a60
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x180125fe
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [esp + 0x14]
lea ecx, [edi - 0x10]
call fcn.18006a60
mov eax, ebx
mov ecx, dword [esp + 0x26c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.180b1200
mov esp, ebp
pop ebp
ret

Function at 0x18012f16
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1826b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], ebx
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x18012f7c
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
test eax, eax
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop ebx
call fcn.180b1200
leave
ret
Function at 0x1801345b
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x1826b00c]
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 0x180134f7
push 0x22c
lea eax, [ebp - 0x230]
push edi
push eax
call fcn.180c7aa0
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 0x180134f7
mov ecx, dword [ebp - 0x234]
mov eax, dword [ebp - 0x228]
cmp eax, dword [ecx + 0x1c]
jne 0x180134da
mov eax, dword [ebp - 0x218]
test eax, eax
jne 0x180134f3
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x180134bf
mov edi, 0x80004005
jmp 0x180134fe
mov dword [ebx], eax
jmp 0x180134fe
call fcn.18016093
mov edi, eax
cmp esi, 0xffffffff
je 0x1801350a
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.180b1200
leave
ret 4
Function at 0x180138c8
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1826b00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ax, word [0x18218228]
push ebx
push esi
push edi
push 0x206
mov word [ebp - 0x20c], ax
xor ebx, ebx
lea eax, [ebp - 0x20a]
mov edi, edx
push ebx
push eax
mov esi, ecx
call fcn.180c7aa0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
test eax, eax
jne 0x18013921
xor al, al
jmp 0x18013966
call fcn.18006a78
push eax
lea ecx, [ebp - 0x210]
call fcn.18007187
lea edx, [ebp - 0x210]
lea ecx, [ebp - 0x20c]
call fcn.18016b26
mov esi, dword [ebp - 0x210]
test eax, eax
js 0x1801395c
push dword [ebp + 8]
mov edx, edi
mov ecx, esi
call fcn.1801385e
pop ecx
mov bl, al
lea ecx, [esi - 0x10]
call fcn.18006a60
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.180b1200
leave
ret