joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44bbc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x378
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x1c], esi
xor ebx, ebx
push ebx
lea eax, [esp + 0x78]
push str..PhysicalDrive_d
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0xc
lea ecx, [esp + 0x74]
push esi
push esi
push 3
push esi
push 3
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x44bd34
xor edx, edx
lea eax, [esp + 0x18]
mov dword [esp + 0x25], edx
push esi
mov dword [esp + 0x2d], edx
push eax
mov dword [esp + 0x35], edx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x39], edx
push 0x18
push ecx
mov dword [esp + 0x45], edx
push esi
push esi
mov word [esp + 0x51], dx
push 0x74080
push ebp
mov byte [esp + 0x44], 0
mov byte [esp + 0x5b], dl
mov dword [esp + 0x38], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x44bd27
mov dl, byte [esp + 0x27]
test dl, dl
je 0x44bd27
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x54]
mov dword [esp + 0x50], esi
rep stosd dword es:[edi], eax
mov cl, bl
lea edi, [esp + 0x175]
shr dl, cl
mov ecx, 0x84
mov byte [esp + 0x174], al
rep stosd dword es:[edi], eax
and dl, 0x10
lea ecx, [esp + 0x174]
neg dl
sbb dl, dl
and dl, 0xb5
add dl, 0xec
mov byte [esp + 0x20], dl
lea edx, [esp + 0x18]
stosw word es:[edi], ax
mov eax, dword [esp + 0x20]
push edx
push ebx
push eax
lea edx, [esp + 0x5c]
push ecx
push edx
push ebp
call fcn.0044bb60
add esp, 0x18
test eax, eax
je 0x44bd27
mov ecx, 5
lea esi, [esp + 0x198]
lea edi, [esp + 0x3c]
rep movsd dword es:[edi], dword [esi]
xor cl, cl
xor dl, dl
mov byte [esp + 0x10], cl
mov byte [esp + 0x14], dl
mov eax, dword [esp + 0x14]
and eax, 0xff
mov al, byte [esp + eax + 0x3c]
cmp al, 0x20
je 0x44bd12
test al, al
je 0x44bd12
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x38c]
and esi, 0xff
inc cl
cmp cl, 8
mov byte [esp + 0x10], cl
mov byte [esi + edi], al
je 0x44bd1d
inc dl
cmp dl, 0x14
mov byte [esp + 0x14], dl
jb 0x44bcde
mov dword [esp + 0x1c], 1
xor esi, esi
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x1c], esi
jne 0x44bd4b
inc ebx
cmp ebx, 0x10
jb 0x44bbd2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x378
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x378
ret
Function at 0x406296
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4062d5
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4062d5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4062d5
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4062d5
cmp dword [ecx + 0x74], 0xe
jbe 0x4062d5
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40bf1b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40bfb8
push ebx
push esi
call fcn.0040bee4
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040be2d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40bf65
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40bfb7
push edi
push eax
call fcn.0040a8fb
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40bf85
call fcn.0040aa56
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40bfb6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040be2d
add esp, 0x20
test eax, eax
jne 0x40bfa4
push edi
call fcn.0040aa56
jmp 0x40bfac
push ebx
call fcn.0040aa56
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40d1b0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415758
push 0x415750
push str.FlsAlloc
push 0x1e
call fcn.0040d071
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d1e4
push dword [ebp + 8]
mov ecx, esi
call dword [0x41312c]
call esi
jmp 0x40d1ea
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40d22e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415768
push 0x415760
push str.FlsGetValue
push 0x20
call fcn.0040d071
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d265
push dword [ebp + 8]
mov ecx, esi
call dword [0x41312c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x412650
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41267d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41267d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4059f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426d76
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x45190c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov eax, dword [ebp + 0x10]
mov dword [ebx], 0x428da8
mov dword [ebx + 4], edx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x14], edx
mov dword [ebx + 0x18], edx
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0x20], edx
mov dword [ebx + 0x24], edx
mov dword [ebx + 0x28], edx
or dword [ebx + 0x2c], 0xffffffff
mov dword [ebx + 0x30], edx
mov dword [ebx + 0x34], edx
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], edx
mov dword [ebx + 0x40], edx
mov dword [ebx + 0x44], edx
mov dword [ebx + 0x48], edx
mov dword [ebx + 0x4c], edx
mov dword [ebx + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x60], ecx
mov eax, dword [ecx + 4]
and dword [ebx + 0x8c], 0xffffffc0
and byte [ebx + 0x91], 0x80
or dword [ebx + 0x94], 0xffffffff
or dword [ebx + 0x98], 0xffffffff
mov dword [ebx + 0x64], eax
xor eax, eax
inc eax
mov dword [ebx + 0x68], edx
mov dword [ebx + 0x6c], edx
mov dword [ebx + 0x70], edx
mov dword [ebx + 0x74], edx
mov byte [ebx + 0x90], 0x4f
mov dword [ebx + 0x9c], eax
mov dword [ebx + 0xa0], eax
mov dword [ebx + 0xa4], edx
mov dword [ebx + 0xa8], edx
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x405acb
mov eax, dword [ecx + 0x24]
mov dword [ebx + 0x78], eax
mov dword [ecx + 0x24], ebx
mov eax, dword [ebx + 0x5c]
lea edi, [ebx + 0x58]
push 1
push edx
push edi
mov dword [eax + 4], ebx
lea esi, [ebx + 0x54]
mov ecx, dword [ebx + 0x60]
push esi
push ecx
mov eax, dword [ecx]
call dword [eax + 0x18]
push 4
push dword [esi]
mov esi, dword [0x4280f8]
push 6
call esi
push 8
push dword [edi]
mov dword [ebx + 0x7c], eax
push 2
call esi
mov ecx, dword [ebx + 0x7c]
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x88], eax
mov eax, ebx
mov dword [ebx + 0x84], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x401730
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
push ebx
xor ebx, ebx
sub esp, 0xb4
lea eax, [esp + 0x28]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], str.SYSTEMCurrentControlSetServicesDiskEnum
mov dword [esp], 0x80000002
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], pe_nt_image_headers32
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
je 0x401810
mov dword [esp], str.kernel32.dll
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
mov dword [esp + 4], str.IsDebuggerPresent
mov dword [esp], eax
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
test eax, eax
je 0x4017d0
mov dword [esp], str.kernel32.dll
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
mov dword [esp + 4], str.IsDebuggerPresent
mov dword [esp], eax
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
test eax, eax
je 0x4017d0
call eax
test eax, eax
je 0x4017d0
mov ebx, 1
call sub.msvcrt.dll_rand
mov edx, 0xea0ea0eb
mov esi, eax
imul edx
mov ecx, esi
sar ecx, 0x1f
add edx, esi
sar edx, 7
sub edx, ecx
imul eax, edx, 0x8c
sub esi, eax
add esi, 0x3c
mov dword [esp], esi
call sub.KERNEL32.dll_Sleep
sub esp, 4
nop
nop
nop
nop
add esp, 0xb4
mov eax, ebx
pop ebx
pop esi
ret
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x2c]
lea esi, [esp + 0x30]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], esi
mov dword [esp + 4], 0x4060c4
mov dword [esp], ecx
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne 0x401864
mov dword [esp + 4], str.VBOX
mov dword [esp], esi
mov ebx, 1
call sub.msvcrt.dll_strstr
test eax, eax
je 0x401880
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
jmp 0x401779
mov dword [esp + 4], str.VMware
mov dword [esp], esi
call sub.msvcrt.dll_strstr
test eax, eax
jne 0x401864
mov dword [esp + 4], str.QEMU
mov dword [esp], esi
call sub.msvcrt.dll_strstr
test eax, eax
setne bl
jmp 0x401864
Function at 0x4018b0
Capabilities:
Encode data using xor

Disassembly:
push edi
push esi
mov ecx, 0x62
mov esi, str.WlpaWlpaIFVVICAgVVUgIE1NICAgICBNTSAgTU0gICAgICBNTSAgRUVFRUVFRVkgIFlZICAgIFlZCgggIFpaICAgVVUgICAgVVUgIE1NTU0gTU0gIE1NTU0gTU0gIEVFICAgICAgICBZWSAgIFlZCgggIFpaICAgVVUgICAgVVUgICBNTSAgTU0gTU0gTU0gIEVFICAgICAgICBZWSAgIFlZCgpWVVVVVVVUIVVVIICAgVVUgICAgTU0gTU0gTU0gTU0gIEVFICAgICAgICAgIFlZCiAgU3VuIGF0dWFsaXphZG8uLi4gVVUgVVUgVVUgICAgICAgRUVFIEdFVkUgRU5WIFpBUkUgVVUgVVUgVU0gRUUgWSAgU1NUQVVTVkRBIFdBV1Y
sub esp, 0x1a4
lea eax, [esp + 0x14]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
movzx edx, word [esi]
mov word [edi], dx
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ecx, esi
xor esi, 0xfbfbfbfb
mov edx, edi
and ecx, 0x7f7f7f7f
xor edi, 0xfbfbfbfb
and edx, 0x7f7f7f7f
add ecx, 0x7b7b7b7b
and esi, 0x80808080
add edx, 0x7b7b7b7b
and edi, 0x80808080
xor esi, ecx
xor edi, edx
mov dword [eax], esi
mov edx, 2
mov dword [eax + 4], edi
mov ecx, dword [eax + edx*4]
mov esi, ecx
xor ecx, 0xfbfbfbfb
and esi, 0x7f7f7f7f
and ecx, 0x80808080
add esi, 0x7b7b7b7b
xor ecx, esi
lea esi, [edx + 1]
mov dword [eax + edx*4], ecx
mov ecx, dword [eax + esi*4]
mov edi, ecx
xor ecx, 0xfbfbfbfb
and edi, 0x7f7f7f7f
and ecx, 0x80808080
add edi, 0x7b7b7b7b
xor ecx, edi
mov dword [eax + esi*4], ecx
lea esi, [edx + 2]
mov ecx, dword [eax + esi*4]
mov edi, ecx
xor ecx, 0xfbfbfbfb
and edi, 0x7f7f7f7f
and ecx, 0x80808080
add edi, 0x7b7b7b7b
xor ecx, edi
mov dword [eax + esi*4], ecx
lea esi, [edx + 3]
mov ecx, dword [eax + esi*4]
mov edi, ecx
xor ecx, 0xfbfbfbfb
and edi, 0x7f7f7f7f
and ecx, 0x80808080
add edi, 0x7b7b7b7b
xor ecx, edi
mov dword [eax + esi*4], ecx
lea esi, [edx + 4]
mov ecx, dword [eax + esi*4]
mov edi, ecx
xor ecx, 0xfbfbfbfb
and edi, 0x7f7f7f7f
and ecx, 0x80808080
add edi, 0x7b7b7b7b
xor ecx, edi
mov dword [eax + esi*4], ecx
lea esi, [edx + 5]
mov ecx, dword [eax + esi*4]
mov edi, ecx
xor ecx, 0xfbfbfbfb
and edi, 0x7f7f7f7f
and ecx, 0x80808080
add edi, 0x7b7b7b7b
xor ecx, edi
mov dword [eax + esi*4], ecx
lea esi, [edx + 6]
mov ecx, dword [eax + esi*4]
mov edi, ecx
and edi, 0x7f7f7f7f
add edi, 0x7b7b7b7b
xor ecx, 0xfbfbfbfb
and ecx, 0x80808080
xor ecx, edi
mov dword [eax + esi*4], ecx
lea esi, [edx + 7]
add edx, 8
mov ecx, dword [eax + esi*4]
mov edi, ecx
xor ecx, 0xfbfbfbfb
and edi, 0x7f7f7f7f
and ecx, 0x80808080
add edi, 0x7b7b7b7b
xor ecx, edi
cmp edx, 0x61
mov dword [eax + esi*4], ecx
jbe 0x401917
mov dword [esp + 4], eax
mov dword [esp], 0x4060f6
sub byte [esp + 0x19c], 5
call sub.msvcrt.dll_printf
add esp, 0x1a4
pop esi
pop edi
ret
Function at 0x401c80
Capabilities:
Create process on windows
Create process suspended
Terminate process

Disassembly:
push edi
xor eax, eax
mov ecx, 0x11
sub esp, 0x98
lea edx, [esp + 0x4c]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov edi, edx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 4
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.notepad.exe
mov dword [esp], 0
mov dword [esp + 0x4c], 0x44
call sub.KERNEL32.dll_CreateProcessA
sub esp, 0x28
test eax, eax
je 0x401d5e
mov edx, dword [esp + 0x44]
mov dword [esp], str.Processo_temporrio__d_criado._n
mov dword [esp + 4], edx
call sub.msvcrt.dll_printf
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.KERNEL32.dll_TerminateProcess
sub esp, 8
mov edi, dword [esp + 0x3c]
mov dword [esp], edi
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov ecx, dword [esp + 0x40]
mov dword [esp], ecx
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
nop
nop
nop
add esp, 0x98
pop edi
ret
Function at 0x4024b0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x4024fb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x4024f4
test esi, esi
je 0x4024f4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4024d0
mov dword [esp], 0x408044
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x4026e0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x402730
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x402808
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40276e
cmp eax, 4
jne 0x402790
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40277e
cmp edx, 4
je 0x40277e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.004026e0
Function at 0x42bcc0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section..BRD_1
lea edi, [esi - 0x24000]
push edi
or ebp, 0xffffffff
jmp 0x42bce2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42bce9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42bcd8
mov eax, 1
add ebx, ebx
jne 0x42bcfb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42bcf0
jne 0x42bd0c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42bcf0
xor ecx, ecx
sub eax, 3
jb 0x42bd20
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42bd92
mov ebp, eax
add ebx, ebx
jne 0x42bd2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42bd38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42bd5c
inc ecx
add ebx, ebx
jne 0x42bd48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42bd3d
jne 0x42bd59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42bd3d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42bd7c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42bd6d
jmp 0x42bcde
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42bd7c
add edi, ecx
jmp 0x42bcde
pop esi
mov edi, esi
mov ecx, 0x28c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42bd9a
cmp byte [edi], 0
jne 0x42bd9a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x42bd9f
lea edi, [esi + 0x29000]
mov eax, dword [edi]
or eax, eax
je 0x42be0e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2bc44]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2bce4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42bdcc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2bce8]
or eax, eax
je 0x42be08
mov dword [ebx], eax
add ebx, 4
jmp 0x42bde9
call dword [esi + 0x2bcf8]
mov ebp, dword [esi + 0x2bcec]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1e7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42be42
sub esp, 0xffffff80
jmp 0x4032ce
Function at 0x40888c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41dba0]
jne 0x408896
repz ret
jmp fcn.0040e9fc

Function at 0x40e32d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41dba0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040500e
and dword [ebp - 0x14], 0
cmp dword [0x44c180], 0
mov dword [ebp - 0x18], eax
jne 0x40e3e0
push 0x402bb8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40e488
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402bac
push ebx
call edi
test eax, eax
je 0x40e488
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402b9c
push ebx
mov dword [0x44c180], eax
call edi
push eax
call esi
push 0x402b88
push ebx
mov dword [0x44c184], eax
call edi
push eax
call esi
push 0x402b6c
push ebx
mov dword [0x44c188], eax
call edi
push eax
call esi
mov dword [0x44c190], eax
test eax, eax
je 0x40e3e0
push 0x402b54
push ebx
call edi
push eax
call esi
mov dword [0x44c18c], eax
mov eax, dword [0x44c18c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40e439
cmp dword [0x44c190], ecx
je 0x40e439
push eax
call esi
push dword [0x44c190]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40e439
test ebx, ebx
je 0x40e439
call edi
test eax, eax
je 0x40e430
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40e430
test byte [ebp - 8], 1
jne 0x40e439
or dword [ebp + 0x10], 0x200000
jmp 0x40e46c
mov eax, dword [0x44c184]
cmp eax, dword [ebp - 0x18]
je 0x40e46c
push eax
call esi
test eax, eax
je 0x40e46c
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40e46c
mov eax, dword [0x44c188]
cmp eax, dword [ebp - 0x18]
je 0x40e46c
push eax
call esi
test eax, eax
je 0x40e46c
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44c180]
call esi
test eax, eax
je 0x40e488
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40e48a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040888c
leave
ret
Function at 0x41b230
Capabilities:
Delete file
Get uefi variable

Disassembly:
sub esp, 0xc2c
cmp dword [0x2b75ce4], 0x37
jne 0x41b2a6
push 0x4035d8
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleSelectionInfo]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByteEx]
push 0
lea ecx, [esp + 0x2c]
push ecx
push 0x4035e8
push 0x403614
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableW]
lea edx, [esp]
push edx
push 0
lea eax, [esp + 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
push 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
lea ecx, [esp + 0x42c]
push ecx
push 0x403640
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
mov edx, dword [0x2b760f8]
mov ecx, dword [0x2b757c8]
mov al, byte [edx + esi + 0x38d6]
mov byte [ecx + esi], al
add esp, 0xc2c
ret