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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1820f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov ebx, ecx
test esi, esi
jne 0x1800bcd0
mov eax, 0x80070057
jmp 0x1800bd70
push edi
mov ecx, esi
call fcn.18006df7
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.181620e0
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 0x1800bd51
movzx ecx, bl
cmp ecx, 0x26
jne 0x1800bd15
mov edx, str.ProgramFiles
jmp 0x1800bd1f
cmp ecx, 0x1c
jne 0x1800bd40
mov edx, str.LocalAppData
lea ecx, [ebp - 0x210]
call fcn.1800c9a2
push eax
mov ecx, esi
call fcn.18009c40
mov ecx, dword [ebp - 0x210]
lea ecx, [ecx - 0x10]
call fcn.1800687d
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x1800bd4d
xor eax, eax
inc eax
jmp 0x1800bd6f
mov eax, edi
jmp 0x1800bd6f
lea eax, [ebp - 0x20c]
push eax
call fcn.18165959
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.18006e93
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1814cf3d
leave
ret

Function at 0x1800bd7e
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x1820f00c]
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.181620e0
add esp, 0xc
lea ecx, [esp + 0x10]
push edi
call fcn.18006d98
push 0x181dc16c
lea ecx, [esp + 0x14]
call fcn.1800da27
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1800bdf0
call fcn.18017850
mov edi, eax
jmp 0x1800be82
push edi
lea ecx, [esp + 0x10]
call fcn.18006d98
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x10]
call fcn.1800da27
lea eax, [esp + 0x44]
push 0x181dc174
push eax
call fcn.181692e2
pop ecx
pop ecx
test eax, eax
je 0x1800be4c
lea eax, [esp + 0x44]
push 0x181dc118
push eax
call fcn.181692e2
pop ecx
pop ecx
test eax, eax
je 0x1800be4c
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.1800c240
test eax, eax
jns 0x1800be43
mov ebx, eax
lea ecx, [edi - 0x10]
mov edi, dword [esp + 0x14]
jmp 0x1800be53
mov ecx, dword [esp + 0xc]
add ecx, 0xfffffff0
call fcn.1800687d
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1800bdf0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x12
je 0x1800be89
test edi, edi
jle 0x1800be82
movzx edi, di
or edi, 0x80070000
cmp esi, 0xffffffff
je 0x1800be92
jmp 0x1800be8b
mov edi, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.1800687d
mov ecx, dword [esp + 0x26c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1814cf3d
mov esp, ebp
pop ebp
ret
Function at 0x1800beb5
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x1820f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x250
xor ebx, ebx
lea eax, [ebp - 0x258]
mov esi, ecx
push ebx
push eax
mov dword [ebp - 0x264], esi
call fcn.181620e0
add esp, 0xc
lea ecx, [ebp - 0x25c]
push esi
call fcn.18006d98
push 0x5c
lea ecx, [ebp - 0x25c]
call fcn.18009d04
mov edi, 0x181dc17c
push edi
call fcn.18165959
pop ecx
push eax
push edi
lea ecx, [ebp - 0x25c]
call fcn.18009d31
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1800bf51
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1800bfe6
call fcn.18017850
mov ebx, eax
jmp 0x1800bfe6
test byte [ebp - 0x258], 0x10
jne 0x1800bfbb
push esi
lea ecx, [ebp - 0x260]
call fcn.18006d98
push 0x5c
lea ecx, [ebp - 0x260]
call fcn.18009d04
lea eax, [ebp - 0x22c]
push eax
call fcn.18165959
pop ecx
push eax
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x260]
call fcn.18009d31
mov esi, dword [ebp - 0x260]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1800bfad
mov ecx, esi
call fcn.1800e90c
mov ebx, eax
lea ecx, [esi - 0x10]
call fcn.1800687d
mov esi, dword [ebp - 0x264]
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1800bf51
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1800bfdf
call fcn.18017850
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x25c]
lea ecx, [ecx - 0x10]
call fcn.1800687d
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1814cf3d
leave
ret
Function at 0x1800c005
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 [0x1820f00c]
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 0x1800c226
movzx eax, word [edi]
test ax, ax
je 0x1800c226
push 0x2e
xor cl, cl
mov dword [esp + 0x10], 0x3a
mov esi, edi
mov edx, eax
pop ebx
mov al, cl
cmp dx, 0x5c
je 0x1800c07b
cmp dx, 0x2f
je 0x1800c07b
cmp dx, word [esp + 0xc]
je 0x1800c07b
cmp dx, bx
je 0x1800c06b
mov cl, 1
jmp 0x1800c07b
mov cl, al
cmp esi, edi
jbe 0x1800c07b
cmp word [esi - 2], bx
je 0x1800c226
push 0x3a
pop eax
cmp dx, ax
sete al
add esi, 2
dec al
and cl, al
movzx eax, word [esi]
mov edx, eax
test ax, ax
jne 0x1800c04d
test cl, cl
je 0x1800c226
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1800c0c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1800c0bb
xor eax, eax
jmp 0x1800c22b
call fcn.18017850
jmp 0x1800c22b
and eax, 0x410
cmp eax, 0x10
jne 0x1800c226
mov ecx, edi
call fcn.1800beb5
push 0x250
mov ebx, eax
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.181620e0
add esp, 0xc
lea ecx, [esp + 0xc]
push edi
call fcn.18006d98
mov esi, 0x181dc180
push esi
call fcn.18165959
pop ecx
push eax
push esi
lea ecx, [esp + 0x14]
call fcn.18009d31
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1800c148
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1800c216
call fcn.18017850
test ebx, ebx
jns 0x1800c214
jmp 0x1800c216
test byte [esp + 0x18], 0x10
je 0x1800c1df
push 0
push 2
mov edx, 0x181dc118
lea ecx, [esp + 0x4c]
call fcn.18010d18
pop ecx
pop ecx
test eax, eax
je 0x1800c1df
push 0
push 3
mov edx, 0x181dc174
lea ecx, [esp + 0x4c]
call fcn.18010d18
pop ecx
pop ecx
test eax, eax
je 0x1800c1df
push edi
lea ecx, [esp + 0x14]
call fcn.18006d98
mov edi, 0x181db514
push edi
call fcn.18165959
pop ecx
push eax
push edi
lea ecx, [esp + 0x18]
call fcn.18009d31
lea eax, [esp + 0x44]
push eax
call fcn.18165959
pop ecx
push eax
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x18]
call fcn.18009d31
mov edi, dword [esp + 0x10]
mov ecx, edi
call fcn.1800c005
test ebx, ebx
js 0x1800c1d3
test eax, eax
jns 0x1800c1d3
mov ebx, eax
lea ecx, [edi - 0x10]
call fcn.1800687d
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1800c148
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1800c216
mov ecx, edi
call fcn.1800e90c
test ebx, ebx
js 0x1800c216
test eax, eax
jns 0x1800c216
mov ebx, eax
mov ecx, dword [esp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.1800687d
mov eax, ebx
jmp 0x1800c22b
mov eax, 0x80004005
mov ecx, dword [esp + 0x26c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1814cf3d
mov esp, ebp
pop ebp
ret
Function at 0x1800c747
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 0x1800c7a0
call fcn.180132ba
test al, al
je 0x1800c7a0
call fcn.1800aff6
mov edi, eax
test edi, edi
je 0x1800c810
mov dword [esp + 0x14], eax
mov dword [esi + 8], edi
cmp dword [esi + 0xc], ebx
je 0x1800c7a0
push str.runas
push dword [esi + 0xc]
call fcn.1816947d
pop ecx
pop ecx
test eax, eax
jne 0x1800c7a0
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 0x1800c85d
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x1800c81a
call fcn.18014f56
movzx ecx, byte [0x18217983]
mov esi, eax
neg ecx
sbb ecx, ecx
and ecx, 0x18217880
je 0x1800c807
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.18008988
push esi
mov dword [esp + 0x28], eax
lea eax, [esp + 0x1c]
push str._Started_process___u_
push eax
call fcn.18006aa4
add esp, 0xc
push esi
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
jmp 0x1800c865
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1800c87c
movzx ecx, byte [0x18217983]
neg ecx
sbb ecx, ecx
and ecx, 0x18217880
je 0x1800c865
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.18008988
mov dword [esp + 0x24], eax
lea eax, [esp + 0x18]
push str._Started_process__PID_unknown_
push eax
call fcn.18006aa4
pop ecx
pop ecx
jmp 0x1800c865
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1800c874
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 0x1800c88e
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push ecx
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], edx
call fcn.18006d98
push ecx
lea ecx, [ebp - 4]
call fcn.1800db9a
mov eax, dword [ebp - 4]
xor esi, esi
cmp dword [eax - 0xc], esi
jne 0x1800c8bb
mov esi, 0x80070057
jmp 0x1800c90f
push edi
lea ecx, [ebp - 8]
mov dword [ebp - 8], esi
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
cmp dword [ebp - 8], esi
je 0x1800c904
test edi, edi
je 0x1800c904
push ebx
mov ebx, dword [edi]
test ebx, ebx
jne 0x1800c8e0
mov eax, esi
jmp 0x1800c8e7
push ebx
call fcn.18165959
pop ecx
mov ecx, dword [ebp - 0xc]
push eax
push ebx
call fcn.18006e93
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.1800db9a
pop ebx
jmp 0x1800c90b
call fcn.18017850
mov esi, eax
mov eax, dword [ebp - 4]
pop edi
lea ecx, [eax - 0x10]
call fcn.1800687d
mov eax, esi
pop esi
leave
ret
Function at 0x1800c91c
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 0x1800c951
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1800c992
test eax, eax
jle 0x1800c980
movzx edi, ax
or edi, 0x80070000
jmp 0x1800c992
push 0x493e0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1800c98b
cmp eax, 0x80
je 0x1800c98b
cmp eax, 0x102
je 0x1800c984
cmp eax, 0xffffffff
je 0x1800c97b
mov edi, 0x80004005
jmp 0x1800c996
call fcn.18017850
mov edi, eax
jmp 0x1800c992
mov edi, 0x800705b4
jmp 0x1800c992
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test esi, esi
je 0x1800c99d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

Function at 0x1800d36d
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 0x1800d393
push dword [ebp + 8]
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
jmp 0x1800d427
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 0x1800d3b3
push 0x40
pop edi
jmp 0x1800d3b7
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 0x1800d424
cmp ecx, 0xffffffff
je 0x1800d424
cmp ecx, 0x80
jb 0x1800d3ee
lea eax, [edi + 0x80]
cmp ecx, eax
jae 0x1800d3ee
mov byte [ebp - 1], 1
cmp dword [ebp + 8], 0xffffffff
je 0x1800d407
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
sub ebx, dword [ebp - 0xc]
cmp ebx, dword [ebp + 8]
jbe 0x1800d407
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
add dword [ebp - 8], 0x100
cmp ecx, esi
jb 0x1800d3a4
movzx eax, byte [ebp - 1]
neg eax
sbb eax, eax
and eax, 0x80
jmp 0x1800d426
mov eax, ecx
pop ebx
pop edi
pop esi
leave
ret

Function at 0x1800e672
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
jne 0x1800e685
xor eax, eax
jmp 0x1800e68c
push esi
call fcn.18165959
pop ecx
push eax
push esi
lea ecx, [edi + 4]
call fcn.18006e93
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 esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x1800e6d0
call fcn.18017850
jmp 0x1800e6f0
test bl, bl
je 0x1800e6e4
push 0x2000
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1800e6c9
and dword [edi + 0xc], 0
xor bl, 1
mov byte [edi + 8], bl
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x1800e780
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x1820f00c]
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.1800da90
push ecx
push ecx
mov edx, esi
lea ecx, [ebp - 0x260]
call fcn.180107a6
push 0x250
lea eax, [ebp - 0x25c]
push 0
push eax
call fcn.181620e0
push edi
lea edx, [ebp - 0x260]
lea ecx, [ebp - 0x268]
call fcn.18009a51
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.1800687d
cmp esi, 0xffffffff
jne 0x1800e808
call fcn.18017850
mov edi, eax
jmp 0x1800e873
cmp dword [ebp - 0x25c], 0x80
je 0x1800e81d
test byte [ebp - 0x25c], 0x10
jne 0x1800e852
lea eax, [ebp - 0x230]
push eax
lea edx, [ebp - 0x260]
lea ecx, [ebp - 0x264]
call fcn.18009a51
pop ecx
lea eax, [ebp - 0x264]
mov ecx, ebx
push eax
call fcn.18009979
mov ecx, dword [ebp - 0x264]
lea ecx, [ecx - 0x10]
call fcn.1800687d
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1800e808
call fcn.18017850
mov edi, eax
cmp edi, 0x80070012
je 0x1800e87a
cmp esi, 0xffffffff
je 0x1800e883
jmp 0x1800e87c
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x260]
add ecx, 0xfffffff0
call fcn.1800687d
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1814cf3d
leave
ret

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

Disassembly:
push esi
mov esi, ecx
call fcn.1800e6f7
test al, al
je 0x1800e8de
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1800e8d3
test al, 1
je 0x1800e8d3
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1800e8d3
pop esi
jmp fcn.18017850
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1800e8cd
xor eax, eax
pop esi
ret

Function at 0x1800eced
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 0x1800ed17
call fcn.18017850
jmp 0x1800ed32
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
test ecx, ecx
je 0x1800ed23
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 0x1800f32e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x1820f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp edi, 0x80000003
jne 0x1800f35b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1814cf3d
leave
ret
push esi
push 0x802
lea eax, [ebp - 0x808]
push 0
push eax
call fcn.181620e0
mov esi, dword [0x1821787c]
lea ecx, [ebp - 0x80c]
xor edx, edx
call fcn.18012644
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.1800687d
lea ecx, [ebp - 0x808]
call fcn.18017890
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 0x1800f3ef
sub eax, 1
jne 0x1800f3e7
int3
xor eax, eax
inc eax
jmp 0x1800f34e
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1801091b
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 0x18010a37
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
cmp edi, 2
jle 0x1801099a
sub edx, 4
js 0x18010a37
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 0x18010936
sub edi, 1
je 0x180109fa
sub edi, 1
jne 0x18010a30
sub edx, 3
js 0x18010a37
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 0x18010a30
lea eax, [edx - 1]
test eax, eax
js 0x18010a37
mov byte [esi], 0x3d
inc esi
jmp 0x18010a30
sub edx, 2
js 0x18010a37
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 0x18010a30
lea eax, [edx - 2]
test eax, eax
js 0x18010a37
mov word [esi], 0x3d3d
add esi, 2
sub esi, dword [ebp + 8]
mov eax, esi
jmp 0x18010a39
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x180135fe
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x1820f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x120], 0x11c
push 0
push eax
call fcn.181620e0
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je case.0x180136da.2
mov ecx, dword [ebp - 0x11c]
cmp ecx, 6
je 0x1801369e
cmp ecx, 0xa
je 0x1801369e
cmp ecx, 5
jne case.0x180136da.2
cmp dword [ebp - 0x118], 2
jne 0x18013687
cmp byte [ebp - 6], 1
jne 0x18013670
call fcn.18013499
cmp eax, 9
je case.0x180136da.1
test dword [ebp - 8], 0x8000
je case.0x180136da.7
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1814cf3d
leave
ret
cmp dword [ebp - 0x118], 1
jne case.0x180136da.2
test dword [ebp - 8], 0x200
jne case.0x180136da.2
xor eax, eax
inc eax
jmp 0x1801367b
mov edx, dword [ebp - 0x118]
lea eax, [ebp - 0x124]
and dword [ebp - 0x124], 0
push eax
push ecx
push ecx
call fcn.1801310a
add esp, 0xc
test eax, eax
je case.0x180136da.2
mov eax, dword [ebp - 0x124]
cmp eax, 0x1b
ja 0x180136e6
je case.0x180136da.4
dec eax
cmp eax, 0x18
ja case.0x180136da.2
movzx eax, byte [eax + 0x18013746]
jmp dword [eax*4 + 0x18013736]
push 2
pop eax
jmp 0x1801367b
cmp eax, 0x54
ja 0x18013702
je case.0x180136da.4
sub eax, 0x30
je case.0x180136da.1
sub eax, 0x16
je case.0x180136da.4
dec eax
sub eax, 1
je case.0x180136da.4
jmp case.0x180136da.2
cmp eax, 0x79
jb case.0x180136da.2
cmp eax, 0x7a
jbe 0x18013730
cmp eax, 0x7c
jbe case.0x180136da.2
cmp eax, 0x7e
jbe case.0x180136da.4
add eax, 0xffffff7f
cmp eax, 1
ja case.0x180136da.2
push 3
jmp 0x180136e3
push 4
jmp 0x180136e3

Function at 0x180137d4
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x1820f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, ebx
push edi
mov edi, edx
call fcn.1800da90
mov ecx, dword [esi]
call fcn.1800e6f7
test al, al
jne 0x1801380d
mov eax, 0x80070003
jmp 0x180138bf
push edi
mov edx, esi
lea ecx, [ebp - 0x260]
call fcn.180138ce
mov dword [esp], 0x250
lea eax, [ebp - 0x258]
xor edi, edi
push edi
push eax
call fcn.181620e0
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x18013857
call fcn.18017850
mov edi, eax
jmp 0x180138af
lea eax, [ebp - 0x258]
push eax
call fcn.1800a8ca
pop ecx
test al, al
je 0x18013896
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x25c]
call fcn.18006d98
lea eax, [ebp - 0x25c]
mov ecx, ebx
push eax
call fcn.18009979
mov ecx, dword [ebp - 0x25c]
lea ecx, [ecx - 0x10]
call fcn.1800687d
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18013857
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x260]
lea ecx, [ecx - 0x10]
call fcn.1800687d
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1814cf3d
leave
ret