joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403830
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x409008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x4038ec
cmp byte [esi + 0x3d], 0
je 0x4038ec
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4038da
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x4038a1
sub eax, 1
je 0x4038a5
sub eax, 2
jne 0x4038da
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040493d
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4038c3
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x4038da
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040493d
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040493d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0040493d
mov esp, ebp
pop ebp
ret
Function at 0x2b8155f
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [0x2ba9fe4], 0
je 0x2b815a6
cmp dword [0x2ba9fe0], 0
je 0x2b815a6
cmp dword [0x2ba9fdc], 0
je 0x2b815a6
cmp dword [0x2ba9fd8], 0
je 0x2b815a6
cmp dword [0x2ba9fd4], 0
je 0x2b815a6
cmp dword [0x2ba9fd0], 0
je 0x2b815a6
xor eax, eax
inc eax
jmp 0x2b816e8
push ebx
push 0x104
lea eax, [ebp - 0x20c]
xor ebx, ebx
push eax
mov byte [ebp - 0x20c], bl
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x2b816e5
push esi
push edi
push str.IsWow64Process
push str.kernel32
mov byte [ebp - 0x108], bl
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov esi, eax
test esi, esi
je 0x2b81600
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 4], ebx
je 0x2b8161f
push 7
pop ecx
mov esi, str.X:WindowsSysWOW64_ntdll.dll
lea edi, [ebp - 0x108]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x2b81644
mov al, byte [ebp + ebx - 0x20c]
mov byte [ebp + ebx - 0x108], al
inc ebx
test al, al
jne 0x2b8161f
push 0x2b87254
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov al, byte [ebp - 0x20c]
mov byte [ebp - 0x108], al
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push str.RtlInitUnicodeString
push esi
call edi
push str.ZwOpenFile
push esi
mov dword [0x2ba9fe4], eax
call edi
push str.ZwCreateSection
push esi
mov dword [0x2ba9fe0], eax
call edi
push str.ZwMapViewOfSection
push esi
mov dword [0x2ba9fdc], eax
call edi
push str.NtUnmapViewOfSection
push esi
mov dword [0x2ba9fd8], eax
call edi
push 0x2b872c0
push esi
mov dword [0x2ba9fd4], eax
call edi
cmp dword [0x2ba9fe4], 0
pop edi
mov dword [0x2ba9fd0], eax
pop esi
je 0x2b816e5
cmp dword [0x2ba9fe0], 0
je 0x2b816e5
cmp dword [0x2ba9fdc], 0
je 0x2b816e5
cmp dword [0x2ba9fd8], 0
je 0x2b816e5
cmp dword [0x2ba9fd4], 0
je 0x2b816e5
test eax, eax
je 0x2b816e5
xor eax, eax
inc eax
jmp 0x2b816e7
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x2b81a46
Capabilities:
Allocate or change rwx memory
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, 0x5a4d
push ebx
push esi
push edi
cmp word [0x2b89260], ax
je 0x2b81a67
mov esi, dword [ebp - 4]
xor edi, edi
jmp 0x2b81b51
mov ebx, dword [0x2b8929c]
cmp dword [ebx + 0x2b89260], 0x4550
jne 0x2b81a5d
mov eax, 0x8664
cmp word [ebx + 0x2b89264], ax
jne 0x2b81a5d
mov edi, dword [ebx + 0x2b892b0]
mov ecx, edi
mov dword [ebp - 0x10], edi
call fcn.02b84f83
push 0x40
push 0x3000
push edi
xor edi, edi
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cdq
mov ecx, eax
mov dword [ebp - 0xc], eax
or ecx, edx
mov dword [ebp - 8], edx
je 0x2b81b51
mov eax, dword [ebp + 8]
mov edx, 0x2b89260
mov ecx, dword [ebx + 0x2b89288]
push dword [ebx + 0x2b892b4]
mov dword [eax], ecx
mov ecx, esi
call fcn.02b8550e
mov eax, dword [0x2b8929c]
pop ecx
xor ecx, ecx
cmp cx, word [ebx + 0x2b89266]
jae 0x2b81b1d
lea ecx, [eax + 0x2b8937c]
mov dword [ebp - 4], ecx
mov edx, dword [ecx]
push dword [ecx - 4]
mov ecx, dword [ecx - 8]
add edx, 0x2b89260
add ecx, esi
call fcn.02b8550e
movzx eax, word [ebx + 0x2b89266]
pop ecx
mov ecx, dword [ebp - 4]
add ecx, 0x28
inc edi
mov dword [ebp - 4], ecx
cmp edi, eax
jb 0x2b81af2
mov ebx, dword [ebp - 8]
mov ecx, esi
mov edi, dword [ebp - 0xc]
push ebx
push edi
call fcn.02b817b2
mov ecx, esi
call fcn.02b816ec
push dword [ebp - 0x10]
mov edx, esi
mov ecx, edi
call fcn.02b8550e
mov dword [0x2ba9fec], edi
add esp, 0xc
xor edi, edi
mov dword [0x2ba9ff0], ebx
inc edi
test esi, esi
je 0x2b81b5c
mov ecx, esi
call fcn.02b84f94
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x2b81fd2
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, eax
call fcn.02b81eb8
test eax, eax
jne 0x2b81ff2
xor eax, eax
jmp 0x2b82049
lea eax, [ebp - 0xc]
xor esi, esi
push eax
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov ecx, dword [ebp - 4]
test eax, eax
jne 0x2b82012
call fcn.02b81cd1
jmp 0x2b81fee
mov eax, dword [ebp - 0xc]
sub esp, 0xc
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call fcn.02b81f4f
test eax, eax
je 0x2b8203f
xor esi, esi
inc esi
mov ecx, dword [ebp - 4]
call fcn.02b81cd1
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x2b8251c
Capabilities:
Check if file exists
Delete file
Get number of processors
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
mov esi, ecx
push edi
test esi, esi
je 0x2b82589
push ecx
lea edx, [ebp - 0x210]
call fcn.02b81d4c
test eax, eax
js 0x2b82589
push esi
call fcn.02b81c12
mov edi, eax
test edi, edi
je 0x2b82589
xor esi, esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x2b82582
inc esi
cmp esi, 0x14
jb 0x2b8254b
jmp 0x2b82589
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edi, dword [eax + 0x10]
add edi, 0x40
je 0x2b82646
movzx ecx, word [edi]
add ecx, 2
call fcn.02b84f83
movzx ecx, word [edi]
mov esi, eax
add ecx, 2
push ecx
mov ecx, esi
call fcn.02b8553d
mov edx, dword [edi + 4]
pop ecx
movzx ecx, word [edi]
push ecx
mov ecx, esi
call fcn.02b8550e
mov dword [esp], 0x2b877b4
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrW]
lea edx, [ebp - 4]
lea ecx, [eax + 4]
call fcn.02b850bb
test eax, eax
je 0x2b82646
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x210]
call fcn.02b81d4c
test eax, eax
js 0x2b82646
push dword [ebp - 4]
call fcn.02b81c12
mov esi, eax
test esi, esi
je 0x2b82646
xor edi, edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x2b8263f
inc edi
cmp edi, 0x14
jb 0x2b82608
jmp 0x2b82646
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x2b82a89
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
mov esi, dword [ebp + 0x10]
push edi
mov dword [ebp - 4], edx
xor edi, edi
mov dword [ebp - 8], ecx
push 0x2ba9ffc
call dword [0x2baa000]
push dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov edx, eax
push dword [ebp + 8]
push dword [ebp - 8]
mov dword [ecx], eax
mov ecx, esi
call fcn.02b827f8
add esp, 0xc
test eax, eax
je 0x2b82b28
lea ecx, [ebp - 0x210]
call fcn.02b84f4a
test eax, eax
je 0x2b82b28
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push str..exe
push esi
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x2b82b1b
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x2b82b30
inc edi
cmp edi, 0xc8
jl 0x2b82a9f
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
xor eax, eax
inc eax
jmp 0x2b82b2a
Function at 0x2b82b43
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x520
push ebx
mov ebx, dword [ebp + 0x20]
push esi
push edi
mov esi, edx
mov edx, dword [ebp + 0x10]
push ebx
push dword [ebp + 0x14]
mov ecx, esi
call fcn.02b82a08
pop ecx
pop ecx
test eax, eax
je 0x2b82d07
cmp esi, 0x42
jne 0x2b82b81
mov ecx, dword [ebp + 8]
call fcn.02b8251c
xor eax, eax
inc eax
jmp 0x2b82d07
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, 0x40
jne 0x2b82b92
call edi
mov esi, eax
jmp 0x2b82b9a
cmp esi, 0x41
jne 0x2b82c08
mov esi, dword [ebp + 8]
push ecx
call edi
lea edx, [ebp - 0x214]
mov ecx, eax
call fcn.02b81d4c
test eax, eax
jns 0x2b82bb5
xor edi, edi
jmp 0x2b82d05
push ecx
lea ecx, [ebp - 0x214]
call fcn.02b83d2d
pop ecx
test eax, eax
je 0x2b82bae
mov edx, dword [0x2ba9ff4]
test edx, edx
je 0x2b82bae
mov ecx, dword [0x2ba9ff0]
test ecx, ecx
je 0x2b82bae
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x2b82bae
mov eax, dword [ecx + 0x3c]
cmp dword [ecx + eax], 0x4550
jne 0x2b82bae
push edx
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x2ba9ff8], eax
jmp 0x2b82c0c
xor edi, edi
mov esi, edi
lea ecx, [ebp - 0x41c]
call fcn.02b83e59
test eax, eax
je 0x2b82d05
lea ecx, [ebp - 0x41c]
call fcn.02b854ad
test eax, eax
je 0x2b82d05
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebx]
lea edx, [eax + 2]
push esi
call fcn.02b82a89
add esp, 0xc
test eax, eax
je 0x2b82d05
push dword [0x2ba9ff4]
mov esi, dword [0x2ba9ff8]
mov ecx, esi
mov edx, dword [0x2ba9ff0]
call fcn.02b8550e
mov ebx, dword [0x2ba9ff4]
pop ecx
test esi, esi
je 0x2b82ca1
test ebx, ebx
je 0x2b82ca1
push 4
lea edx, [ebp - 8]
lea ecx, [ebp - 0x51c]
call fcn.02b83292
pop ecx
push ebx
mov edx, esi
lea ecx, [ebp - 0x51c]
call fcn.02b83314
mov ebx, dword [0x2ba9ff4]
pop ecx
mov eax, dword [ebp + 0x20]
cmp dword [eax], 0x41
jne 0x2b82d0e
mov esi, dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 0x41c]
mov ebx, str..exe
push ebx
push eax
call esi
push ebx
lea eax, [ebp - 0x214]
push eax
call esi
push dword [0x2ba9ff4]
mov edx, dword [0x2ba9ff0]
lea ecx, [ebp - 0x214]
call fcn.02b840d6
pop ecx
test eax, eax
je 0x2b82d05
mov esi, dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [ebp - 0x41c]
push eax
push dword [ebp + 0x1c]
call esi
lea eax, [ebp - 0x214]
push eax
push dword [ebp + 0x18]
call esi
xor edi, edi
inc edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
mov edx, esi
lea ecx, [ebp - 0x41c]
jmp 0x2b82cda
Function at 0x2b83292
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
xor eax, eax
mov dword [ebp - 8], 0x100
push esi
mov esi, ecx
mov dword [ebp - 4], eax
push edi
mov ebx, eax
mov dword [ebp - 0x10], esi
mov edi, esi
lea eax, [ebp - 0x110]
sub edi, eax
mov esi, edx
xor edx, edx
lea ecx, [ebp - 0x110]
mov eax, ebx
add ecx, ebx
div dword [ebp + 8]
mov byte [edi + ecx], bl
inc ebx
mov al, byte [edx + esi]
mov byte [ecx], al
cmp ebx, 0x100
jb 0x2b832bd
mov esi, dword [ebp - 0x10]
lea edi, [ebp - 0x110]
mov ebx, esi
sub edi, esi
mov dl, byte [ebx]
movzx eax, byte [edi + ebx]
add eax, dword [ebp - 4]
movzx ecx, dl
add ecx, eax
movzx ecx, cl
mov dword [ebp - 4], ecx
mov al, byte [ecx + esi]
mov byte [ebx], al
inc ebx
sub dword [ebp - 8], 1
mov byte [ecx + esi], dl
jne 0x2b832ea
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x2b83314
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
mov dword [ebp - 4], edx
mov eax, esi
mov ebx, esi
push edi
mov edi, ecx
cmp dword [ebp + 8], eax
jbe 0x2b83365
inc eax
movzx ecx, al
mov dword [ebp - 8], ecx
mov dl, byte [ecx + edi]
movzx eax, dl
add eax, esi
movzx esi, al
mov al, byte [esi + edi]
mov byte [ecx + edi], al
mov byte [esi + edi], dl
movzx ecx, byte [ecx + edi]
movzx eax, dl
add ecx, eax
movzx eax, cl
mov ecx, dword [ebp - 4]
mov al, byte [eax + edi]
xor byte [ebx + ecx], al
inc ebx
mov eax, dword [ebp - 8]
cmp ebx, dword [ebp + 8]
jb 0x2b8332c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x2b8336c
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 8], 4
and dword [ebp - 4], esi
mov edi, ecx
push 3
pop ebx
test edi, edi
je 0x2b833ef
mov eax, ebx
dec ebx
test eax, eax
jle 0x2b833ef
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov esi, eax
test esi, esi
je 0x2b833e2
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push 0
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], 4
push eax
push 0x20000013
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov esi, eax
test esi, esi
je 0x2b833e2
cmp dword [ebp - 4], 0xc8
je 0x2b833ef
cmp dword [ebp - 4], 0xce
je 0x2b833ef
xor esi, esi
jmp 0x2b83389
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x2b83389
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x2b83d2d
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x2b83d69
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x2b83d72
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
mov ebx, eax
lea eax, [ebp - 4]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp edi, dword [ebp - 4]
je 0x2b83dac
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x2b83d62
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [0x2ba9ff4], edi
mov dword [0x2ba9ff0], ebx
inc eax
jmp 0x2b83d6b

Function at 0x2b83e59
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push esi
mov dword [ebp - 4], ecx
xor esi, esi
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x2b83f52
lea ecx, [ebp - 0x20c]
call fcn.02b854ad
test eax, eax
je 0x2b83f52
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [ebp - 0x20c]
push str.temp
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
push 0x2ba9ffc
call dword [0x2baa000]
xor edx, edx
push 5
pop ecx
div ecx
add edx, ecx
lea ecx, [ebp - 0x414]
call fcn.02b83e07
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push str..exe
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x2b83f28
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x2b83f35
inc esi
cmp esi, 0xc8
jl 0x2b83e68
cmp esi, 0xc8
jge 0x2b83f52
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
xor eax, eax
inc eax
jmp 0x2b83f54
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x2b83f5c
Capabilities:
Check if file exists
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
xor esi, esi
mov dword [ebp - 8], edx
push edi
mov dword [ebp - 0xc], ecx
mov edi, esi
push 0x104
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x2b84085
lea ecx, [ebp - 0x214]
call fcn.02b854ad
test eax, eax
je 0x2b84085
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [ebp - 0x214]
push str.temp
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
push 0x2ba9ffc
call dword [0x2baa000]
xor edx, edx
push 5
pop ecx
div ecx
add edx, ecx
lea ecx, [ebp - 0x41c]
call fcn.02b83e07
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push str..exe
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 0x214]
push eax
call ebx
test eax, eax
jne 0x2b84030
lea eax, [ebp - 0x41c]
push eax
call ebx
test eax, eax
je 0x2b8403d
inc edi
cmp edi, 0xc8
jl 0x2b83f78
cmp edi, 0xc8
jge 0x2b84085
push esi
push esi
push 2
push esi
push esi
push 0x10000000
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x2b84085
mov ebx, dword [ebp + 8]
lea eax, [ebp - 4]
push esi
push eax
push ebx
push dword [ebp - 8]
mov dword [ebp - 4], esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x2b8408e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], ebx
jne 0x2b8407e
push 0x104
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov ebx, dword [ebp - 0xc]
lea eax, [ebp - 0x41c]
push eax
push ebx
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x2b840cb
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x2b84087
Function at 0x2b840d6
Capabilities:
Check if file exists
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x2b840f4
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
push eax
push eax
push 2
push eax
push eax
push 0x10000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x2b84113
xor eax, eax
jmp 0x2b84163
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 0
push eax
push dword [ebp + 8]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x2b84137
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x2b8410f
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x2b8412e
mov eax, dword [ebp + 8]
push esi
cmp dword [ebp - 4], eax
je 0x2b8415a
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x2b8410f
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x2b846c5
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
lea eax, [ebp - 4]
push esi
push eax
push 9
xor esi, esi
push esi
push str.SYSTEMControlSet001EnumDISPLAY
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x2b847f3
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x2b847ea
mov esi, dword [ebp - 0xc]
jmp 0x2b847e1
xor eax, eax
push 0x100
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x420]
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
xor eax, eax
lea ecx, [ebp - 0x220]
mov edx, str.SYSTEMControlSet001EnumDISPLAY
mov word [ebp - 0x220], ax
call fcn.02b854e4
push 0x2b878c4
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 8]
push eax
push 9
push 0
lea eax, [ebp - 0x220]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x2b847e1
xor ecx, ecx
lea eax, [ebp - 0x10]
push ecx
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push ecx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push ecx
push ecx
push ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x2b847e1
cmp dword [ebp - 0x20], eax
je 0x2b847d8
lea ecx, [ebp - 0x220]
call fcn.02b843df
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esi, 1
jns 0x2b84723
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret