joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101b702c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x54
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x101c6140], 0x132c
mov esi, dword [0x101c6144]
mov edi, esi
add edi, 0xdd7c
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], edx
jmp 0x101b7170
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x38]
add ecx, 0xd1ca
mov edx, dword [ebp - 0x34]
mov dword [0x101c6144], edx
mov dword [0x101c6140], ecx
mov dword [ebp - 0x40], eax
call fcn.101b694c
mov dword [esp], eax
mov eax, dword [ebp - 0x40]
mov dword [esp + 4], eax
call fcn.101b64f2
xor ecx, ecx
mov dword [0x101c6144], 0x123
cmp eax, 0
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ecx
je 0x101b714f
mov eax, dword [ebp - 0x44]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], ecx
mov dword [ebp - 0x4c], eax
call fcn.101b6f11
mov eax, dword [ebp - 0x4c]
mov word [eax], 0x5a4d
mov dword [eax + 0x3c], 0xc0
xor eax, eax
mov ecx, dword [ebp - 0x4c]
mov dword [ecx + 0xc0], 0x4550
add ecx, 0xffc00000
mov dword [0x101c6140], 0x528
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x28], ecx
mov ecx, dword [0x101c6140]
add ecx, 0xfffff810
mov dword [0x101c6140], ecx
mov ecx, dword [ebp - 0x4c]
mov dword [edx + 0x1c], ecx
mov dword [0x101c6144], 0xd26
cmp ecx, 0
mov dword [ebp - 0x48], eax
jne 0x101b7159
mov eax, dword [ebp - 0x48]
add esp, 0x54
pop esi
pop edi
pop ebp
ret
mov dword [0x101c6140], 0x1421
mov eax, dword [ebp - 0x4c]
add eax, 0x1c2a
mov dword [ebp - 0x48], eax
jmp 0x101b714f
mov eax, dword [ebp - 0x3c]
mov cl, byte [eax + 0x101b83d2]
mov dl, byte [eax + 0x101b83a3]
sub dl, cl
mov byte [ebp + eax - 0x28], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x3c], eax
je 0x101b7068
jmp 0x101b7170
Function at 0x101b7357
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x101c614c], 0
mov byte [0x101c6150], 0
mov dword [0x101c6144], 0x608
mov dword [0x101c6148], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x101b7488
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov edx, 0x1877
mov esi, 0x100
mov dword [0x101c6154], 0
mov edi, dword [0x101c614c]
mov ebx, dword [ebp - 0x18]
movzx ebx, byte [ebx + eax]
add ebx, edi
mov dword [ebp - 0x28], eax
xor edi, edi
mov dword [ebp - 0x2c], edx
mov edx, edi
mov edi, dword [ebp - 0x10]
div edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add ebx, edx
mov dword [0x101c6154], ebx
mov dword [0x101c6140], ecx
mov eax, ebx
cdq
idiv esi
mov dword [0x101c614c], edx
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x28]
mov cl, byte [ecx + esi]
mov byte [0x101c6150], cl
mov ebx, dword [ebp - 0x18]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x101c6150]
mov edx, dword [0x101c614c]
mov byte [ebx + edx], cl
mov dword [0x101c6140], 0x2706
mov edx, dword [0x101c6148]
add edx, 1
mov dword [0x101c6148], edx
cmp edx, 0x100
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
jl 0x101b73a1
jmp 0x101b7476
xor eax, eax
mov dword [0x101c6148], 0
mov ecx, dword [0x101c6140]
add ecx, 0xfffff171
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
jmp 0x101b73a1
mov dword [0x101c6144], 0xe07
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x101c6148]
add eax, 1
mov dword [0x101c6148], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x101b7488
jmp 0x101b7453
Function at 0x408f8c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x417b90]
jne 0x408f96
repz ret
jmp fcn.0041199c

Function at 0x40b5eb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417b90]
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.00404cb1
and dword [ebp - 0x14], 0
cmp dword [0x445c04], 0
mov dword [ebp - 0x18], eax
jne 0x40b69e
push 0x402acc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40b746
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402ac0
push ebx
call edi
test eax, eax
je 0x40b746
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402ab0
push ebx
mov dword [0x445c04], eax
call edi
push eax
call esi
push 0x402a9c
push ebx
mov dword [0x445c08], eax
call edi
push eax
call esi
push 0x402a80
push ebx
mov dword [0x445c0c], eax
call edi
push eax
call esi
mov dword [0x445c14], eax
test eax, eax
je 0x40b69e
push 0x402a68
push ebx
call edi
push eax
call esi
mov dword [0x445c10], eax
mov eax, dword [0x445c10]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40b6f7
cmp dword [0x445c14], ecx
je 0x40b6f7
push eax
call esi
push dword [0x445c14]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40b6f7
test ebx, ebx
je 0x40b6f7
call edi
test eax, eax
je 0x40b6ee
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40b6ee
test byte [ebp - 8], 1
jne 0x40b6f7
or dword [ebp + 0x10], 0x200000
jmp 0x40b72a
mov eax, dword [0x445c08]
cmp eax, dword [ebp - 0x18]
je 0x40b72a
push eax
call esi
test eax, eax
je 0x40b72a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40b72a
mov eax, dword [0x445c0c]
cmp eax, dword [ebp - 0x18]
je 0x40b72a
push eax
call esi
test eax, eax
je 0x40b72a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x445c04]
call esi
test eax, eax
je 0x40b746
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40b748
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408f8c
leave
ret

Function at 0x4144c0
Capabilities:
Delete file
Get uefi variable

Disassembly:
sub esp, 0xc18
cmp dword [0x2b6f75c], 0x37
jne 0x414528
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push 0
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableW]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0xc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
push 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
lea eax, [esp + 0x41c]
push eax
push 0x403408
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
mov ecx, dword [0x2b6fb70]
mov eax, dword [0x2b6f240]
mov dl, byte [ecx + esi + 0x38d6]
mov byte [eax + esi], dl
add esp, 0xc18
ret
Function at 0x4144f2
Capabilities:
Get uefi variable

Disassembly:
sub esp, 0xc18
cmp dword [0x2b6f75c], 0x37
jne 0x414528
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push 0
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableW]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0xc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
push 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
lea eax, [esp + 0x41c]
push eax
push 0x403408
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
mov ecx, dword [0x2b6fb70]
mov eax, dword [0x2b6f240]
mov dl, byte [ecx + esi + 0x38d6]
mov byte [eax + esi], dl
add esp, 0xc18
ret
Function at 0x401260
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
sub esp, 0x60
lea eax, [esp]
push esi
push eax
mov dword [esp + 8], 0
call fcn.004011c0
add esp, 4
test eax, eax
jne 0x401281
pop esi
add esp, 0x60
ret
mov ecx, 0x10
lea eax, [esp + 8]
lea ebx, [ebx]
mov byte [eax], 0
add eax, 1
sub ecx, 1
jne 0x401290
mov ecx, 0x44
lea eax, [esp + 0x18]
mov byte [eax], 0
add eax, 1
sub ecx, 1
jne 0x4012a4
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
mov dword [esp + 0x38], 0x44
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, dword [esp + 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, 1
pop esi
add esp, 0x60
ret
Function at 0x403480
Capabilities:
Enumerate gui resources
Get hostname

Disassembly:
mov eax, 0x200c
call fcn.0040c4a0
mov eax, dword [0x2b87bbc]
mov ecx, dword [0x2b87b30]
shr eax, 3
test eax, eax
jbe 0x4035b2
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextVolumeA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x4034d0
cmp dword [0x2b87bbc], 0x959
jne 0x403594
push 0
lea eax, [esp + 0x420]
push eax
push 0
push 0
push 0
push 0
call edi
push 0
lea ecx, [esp + 0x20]
push ecx
push 0
call ebx
push 0
push 0
call esi
push 0
call ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
push 0
push 0
lea edx, [esp + 0xc24]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadPriorityBoost]
push 0
lea eax, [esp + 0x1820]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x1420]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0
push 0x402d3c
push 0x402d4c
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov eax, dword [esp + 0x10]
push eax
call fcn.004032d0
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x4034d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x200c
ret
Function at 0x40911b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42fa00]
jne 0x409125
repz ret
jmp fcn.0040b3ec

Function at 0x40ab3e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405e7d
and dword [ebp - 4], 0
cmp dword [0x430d88], 0
mov ebx, eax
jne 0x40abef
push 0x402c1c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40aca0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402c10
push edi
call esi
test eax, eax
je 0x40aca0
push eax
call fcn.00405e0b
mov dword [esp], 0x402c00
push edi
mov dword [0x430d88], eax
call esi
push eax
call fcn.00405e0b
mov dword [esp], 0x402bec
push edi
mov dword [0x430d8c], eax
call esi
push eax
call fcn.00405e0b
mov dword [esp], 0x402bd0
push edi
mov dword [0x430d90], eax
call esi
push eax
call fcn.00405e0b
pop ecx
mov dword [0x430d98], eax
test eax, eax
je 0x40abef
push 0x402bb8
push edi
call esi
push eax
call fcn.00405e0b
pop ecx
mov dword [0x430d94], eax
mov eax, dword [0x430d94]
cmp eax, ebx
je 0x40ac47
cmp dword [0x430d98], ebx
je 0x40ac47
push eax
call fcn.00405e86
push dword [0x430d98]
mov esi, eax
call fcn.00405e86
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40ac47
test edi, edi
je 0x40ac47
call esi
test eax, eax
je 0x40ac3e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ac3e
test byte [ebp - 0xc], 1
jne 0x40ac47
or dword [ebp + 0x10], 0x200000
jmp 0x40ac80
mov eax, dword [0x430d8c]
cmp eax, ebx
je 0x40ac80
push eax
call fcn.00405e86
pop ecx
test eax, eax
je 0x40ac80
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40ac80
mov eax, dword [0x430d90]
cmp eax, ebx
je 0x40ac80
push eax
call fcn.00405e86
pop ecx
test eax, eax
je 0x40ac80
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x430d88]
call fcn.00405e86
pop ecx
test eax, eax
je 0x40aca0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40aca2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417c40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc000]
push edi
or ebp, 0xffffffff
jmp 0x417c62
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x417c69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x417c58
mov eax, 1
add ebx, ebx
jne 0x417c7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x417c70
jne 0x417c8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417c70
xor ecx, ecx
sub eax, 3
jb 0x417ca0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x417d12
mov ebp, eax
add ebx, ebx
jne 0x417cab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x417cb8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x417cdc
inc ecx
add ebx, ebx
jne 0x417cc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x417cbd
jne 0x417cd9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417cbd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x417cfc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x417ced
jmp 0x417c5e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x417cfc
add edi, ecx
jmp 0x417c5e
pop esi
mov edi, esi
mov ecx, 0xda
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x417d1a
cmp byte [edi], 7
jne 0x417d1a
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 0x417d1f
lea edi, [esi + 0x15000]
mov eax, dword [edi]
or eax, eax
je 0x417d97
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x177c4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x17844]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x417d4c
mov ecx, edi
jns 0x417d7b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1784c]
or eax, eax
je 0x417d91
mov dword [ebx], eax
add ebx, 4
jmp 0x417d69
call dword [esi + 0x17848]
mov ebp, dword [esi + 0x17850]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x417dcb
sub esp, 0xffffff80
jmp 0x409e35
Function at 0x4081ab
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b400]
jne 0x4081b5
repz ret
jmp fcn.0040e03b

Function at 0x40b040
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42b400]
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.004065c0
and dword [ebp - 0x14], 0
cmp dword [0x45ce50], 0
mov dword [ebp - 0x18], eax
jne 0x40b0f3
push 0x402228
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40b19b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40221c
push ebx
call edi
test eax, eax
je 0x40b19b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x40220c
push ebx
mov dword [0x45ce50], eax
call edi
push eax
call esi
push 0x4021f8
push ebx
mov dword [0x45ce54], eax
call edi
push eax
call esi
push 0x4021dc
push ebx
mov dword [0x45ce58], eax
call edi
push eax
call esi
mov dword [0x45ce60], eax
test eax, eax
je 0x40b0f3
push 0x4021c4
push ebx
call edi
push eax
call esi
mov dword [0x45ce5c], eax
mov eax, dword [0x45ce5c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40b14c
cmp dword [0x45ce60], ecx
je 0x40b14c
push eax
call esi
push dword [0x45ce60]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40b14c
test ebx, ebx
je 0x40b14c
call edi
test eax, eax
je 0x40b143
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40b143
test byte [ebp - 8], 1
jne 0x40b14c
or dword [ebp + 0x10], 0x200000
jmp 0x40b17f
mov eax, dword [0x45ce54]
cmp eax, dword [ebp - 0x18]
je 0x40b17f
push eax
call esi
test eax, eax
je 0x40b17f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40b17f
mov eax, dword [0x45ce58]
cmp eax, dword [ebp - 0x18]
je 0x40b17f
push eax
call esi
test eax, eax
je 0x40b17f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x45ce50]
call esi
test eax, eax
je 0x40b19b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40b19d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004081ab
leave
ret
Function at 0x414b80
Capabilities:
Access the windows event log
Connect pipe
Delete directory
Delete file
Get common file path
Get uefi variable
Read pipe
Write pipe

Disassembly:
mov eax, 0x1804
call fcn.0040ef10
cmp dword [0x80c93c], 0x37
jne 0x414c4e
push 0x403550
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLocaleInfoW]
push 0
lea eax, [esp + 0xc08]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0
lea ecx, [esp + 4]
push ecx
push 0
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [esp + 0x1008]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x4034e4
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
lea ecx, [esp + 0x408]
push ecx
push 0x4035f0
push 0x403650
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDevicePowerState]
push 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push 0
lea edx, [esp + 0x808]
push edx
push 0x4036ac
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
mov eax, dword [0x80cd50]
mov edx, dword [0x80c420]
mov cl, byte [eax + esi + 0x38d6]
mov byte [edx + esi], cl
add esp, 0x1804
ret
Function at 0x4152b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x80c93c]
sub esp, 0x884
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetDateFormatW]
mov ebp, 0x2443831
cmp eax, 0x47
jne 0x415336
xor eax, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x78]
push ecx
push 0x403ab8
mov dword [esp + 0x6c], 0
call esi
xor eax, eax
push eax
mov dword [esp + 0x56], eax
mov dword [esp + 0x5a], eax
mov dword [esp + 0x5e], eax
mov word [esp + 0x62], ax
lea eax, [esp + 0x94]
push eax
push 0x403b10
xor edx, edx
lea ecx, [esp + 0x5c]
push ecx
push edx
push edx
mov word [esp + 0x68], dx
call edi
dec ebp
mov eax, dword [0x45c500]
mov dword [0x80c93c], eax
jne 0x4152d5
mov dword [esp + 0x20], 0x764d11c7
mov dword [esp + 0x4c], 0x26b44f20
mov dword [esp + 0x24], 0x1f33c7de
mov dword [esp + 0x10], 0x2e56cff9
mov dword [esp + 0x28], 0x6cde8df8
mov dword [esp + 0x14], 0x796abd53
mov dword [esp + 0x34], 0x3ce56ad4
mov dword [esp + 0x1c], 0x581868fc
mov dword [esp + 0x18], 0xc596c70
mov dword [esp + 0x3c], 0x6d5e9115
mov dword [esp + 0x30], 0x22f372d9
mov dword [esp + 0x40], 0x2ad541d0
mov dword [esp + 0x38], 0x7a5f7c43
mov dword [esp + 0x2c], 0x28d520e
mov dword [esp + 0x48], 0x73f3bc07
mov dword [esp + 0x44], 0x51f578e1
add dword [esp + 0x4c], 0x73e38130
mov eax, 0x3a9c3a87
mul dword [esp + 0x20]
mov eax, dword [esp + 0x20]
add dword [esp + 0x24], 0x6b053f58
add dword [esp + 0x20], 0x2818faf9
add dword [esp + 0x4c], 0x3ab2fc3
sub dword [esp + 0x20], 0x30ad2d47
sub dword [esp + 0x20], 0x4442fc9b
sub dword [esp + 0x28], 0x2285667
add dword [esp + 0x4c], 0x262c99c6
sub dword [esp + 0x14], 0x4dc74448
mov eax, 0x53cf4e1b
mul dword [esp + 0x24]
mov eax, dword [esp + 0x24]
add dword [esp + 0x24], 0x1b067f32
mov eax, 0x67698c83
mul dword [esp + 0x14]
mov eax, dword [esp + 0x14]
sub dword [esp + 0x28], 0x7674af1e
mov eax, 0x173863dd
mul dword [esp + 0x28]
mov eax, dword [esp + 0x28]
mov eax, 0x3d786fdd
mul dword [esp + 0x3c]
mov eax, dword [esp + 0x3c]
mov eax, 0x38471b91
mul dword [esp + 0x14]
mov eax, dword [esp + 0x14]
mov eax, 0x45f07edf
mul dword [esp + 0x4c]
mov eax, dword [esp + 0x4c]
add dword [esp + 0x18], 0x6fea1ecd
sub dword [esp + 0x34], 0x32f1f16e
add dword [esp + 0x34], 0x6e380599
sub dword [esp + 0x18], 0x3ca08c1e
add dword [esp + 0x30], 0x154e8e1
add dword [esp + 0x14], 0x53bb032d
sub dword [esp + 0x14], 0x11166d6c
sub dword [esp + 0x18], 0x2a6a1594
add dword [esp + 0x14], 0x4fb1fe05
mov eax, 0x4b3ce8e6
mul dword [esp + 0x34]
mov eax, dword [esp + 0x34]
add dword [esp + 0x3c], 0x1bc84bb6
sub dword [esp + 0x30], 0x687c0c2b
add dword [esp + 0x48], 0x36e578c2
sub dword [esp + 0x10], 0x7b5e58ec
mov eax, 0x38d0a1fb
mul dword [esp + 0x48]
mov eax, dword [esp + 0x48]
sub dword [esp + 0x40], 0x15793cf4
mov edx, dword [0x45c4f4]
mov dword [0x80cd50], edx
call fcn.00414ee0
pop edi
xor eax, eax
pop esi
pop ebp
mov esp, ebp
pop ebp
ret 0x10