joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d330
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x42e0f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [esp + 0x2c]
push ebx
push esi
push eax
lea ecx, [esp + 0x38]
call fcn.00423d56
mov cl, byte [0x42fce8]
mov dword [esp + 0x2c], 0
push ecx
lea ecx, [esp + 0x38]
call fcn.004231e4
mov eax, dword [0x439f2c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0xc]
push edx
mov byte [esp + 0x30], 5
mov dword [esp + 0x10], 0x42fc60
call fcn.0040ca90
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
mov byte [esp + 0x30], 6
call fcn.004095c0
mov ecx, dword [esp + 0x34]
mov eax, dword [eax]
push ecx
push eax
mov byte [esp + 0x34], 7
call fcn.00414ad6
add esp, 8
or esi, 0xffffffff
test eax, eax
je 0x40d3ed
mov edx, dword [esp + 0x34]
push edx
call fcn.0040cf90
add esp, 4
cmp eax, esi
sete al
test al, al
jne 0x40d3ed
xor bl, bl
jmp 0x40d3ef
mov bl, 1
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 6
call fcn.00423ce8
test bl, bl
jne 0x40d475
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
call fcn.004095c0
mov eax, dword [eax]
mov byte [esp + 0x2c], 8
push eax
call fcn.0040d330
add esp, 4
lea ecx, [esp + 8]
test al, al
sete bl
mov byte [esp + 0x2c], 6
call fcn.00423ce8
test bl, bl
jne 0x40d447
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0040d1f0
add esp, 4
test al, al
jne 0x40d475
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call fcn.0040ca10
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], esi
call fcn.00423ce8
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call fcn.0040ca10
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], esi
call fcn.00423ce8
mov ecx, dword [esp + 0x24]
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x40e050
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x42e3b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov ecx, dword [ecx + 0x1c]
lea edx, [esp]
push edx
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ecx, dword [esp]
mov dword [esp + 0x28], 0
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40e0aa
lea ecx, [esp]
mov dword [esp + 0x28], 0xffffffff
call fcn.00423ce8
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov eax, dword [0x439f2c]
push esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
push ecx
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 5
mov dword [esp + 0x10], 0x42fc60
call fcn.0040ca90
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
mov byte [esp + 0x30], 6
call fcn.004095c0
mov eax, dword [eax]
mov byte [esp + 0x2c], 7
push eax
call fcn.0040cd60
add esp, 4
lea ecx, [esp + 8]
mov esi, eax
mov byte [esp + 0x2c], 6
call fcn.00423ce8
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call fcn.0040ca10
lea ecx, [esp + 4]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00423ce8
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x40e140
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42e400
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push edi
mov edi, eax
mov esi, ecx
and edi, 0xffff
test ax, ax
mov dword [esi + 0x50], edi
je 0x40e269
mov ecx, dword [esi + 0x1c]
lea edx, [esp + 0x34]
push edx
mov eax, dword [ecx]
call dword [eax + 0x24]
mov eax, dword [esi + 0x20]
mov dword [esp + 0x2c], 0
cmp eax, 3
jne 0x40e1aa
mov eax, dword [esp + 0x34]
push eax
call fcn.0040cfc0
add esp, 4
neg al
sbb eax, eax
add eax, 2
mov dword [esi + 0x20], eax
jmp 0x40e1b1
mov dword [esi + 0x20], 2
cmp dword [esi + 0x20], 1
jne 0x40e1c9
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x40e1cc
push 0x67
mov ecx, esi
call fcn.0040d850
jmp 0x40e1cc
mov dword [esi + 0x28], edi
mov eax, dword [0x439f2c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x34]
mov byte [esp + 0x2c], 5
push ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x42fc60
call fcn.0040ca90
lea edx, [esp + 8]
lea ecx, [esp + 0xc]
push edx
mov byte [esp + 0x30], 6
call fcn.0040e540
push eax
lea ecx, [esi + 0x2c]
mov byte [esp + 0x30], 7
call fcn.00423dd5
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 6
call fcn.00423ce8
lea ecx, [esi + 0x3c]
call fcn.00409770
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call fcn.0040ca10
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00423ce8
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 4
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x20], 0
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x40ec90
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x40ec9f
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x438b64]
test eax, eax
je 0x40ecad
call fcn.0040ec30
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
cmp edx, 8
push ebx
not eax
jb 0x40edaf
push edi
mov edi, edx
shr edi, 3
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [ecx*4 + 0x43d640]
sub edx, 8
xor eax, ebx
inc esi
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x43d640]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x43d640]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x43d640]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x43d640]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x43d640]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x43d640]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x43d640]
xor eax, ecx
inc esi
dec edi
jne 0x40ecc7
pop edi
test edx, edx
je 0x40edd1
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x43d640]
xor eax, ecx
inc esi
dec edx
jne 0x40edb3
pop ebx
pop esi
not eax
ret 0xc
Function at 0x415263
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x415283
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00415ebe
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4152a6
test byte [esp + 8], 2
je 0x4152a6
call fcn.00415f31
mov dword [eax], 0xd
call fcn.00415f3a
mov dword [eax], 5
jmp 0x41527f
xor eax, eax
ret

Function at 0x41c48d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x43cd70
cmp edx, dword [eax]
je 0x41c4af
add eax, 8
inc ecx
cmp eax, 0x43ce00
jl 0x41c4a0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x43cd70]
jne 0x41c5dd
mov eax, dword [0x43fab8]
cmp eax, 1
je 0x41c5b7
test eax, eax
jne 0x41c4e0
cmp dword [0x43a69c], 1
je 0x41c5b7
cmp edx, 0xfc
je 0x41c5dd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41c517
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041c7a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00417220
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41c55a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00417220
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4322b0
push edi
call fcn.00415dc0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041c7a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041c7b0
lea eax, [ebp - 0xa0]
push 0x432290
push eax
call fcn.0041c7b0
push dword [esi + 0x43cd74]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041c7b0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041de35
add esp, 0x2c
pop edi
jmp 0x41c5dd
lea eax, [ebp + 8]
lea esi, [esi + 0x43cd74]
push 0
push eax
push dword [esi]
call fcn.00417220
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x422490
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00414ba0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x42255b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x42255b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x42250e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x422519
or bh, 8
and edi, 0x8000000
je 0x422534
mov eax, dword [0x4411fc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x42255b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x422930
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x42295b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x42297f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x42299a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x427d79
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x427dbb
call fcn.0042b2c5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x427dbb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x427db2
xor eax, eax
jmp 0x427dc3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00427dc9
pop edi
pop esi
pop ebx
ret 4

Function at 0x42c2b8
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42c2e6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42c304
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042c21e
jmp 0x42c304
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42c304
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0042c21e
test edi, edi
mov eax, edi
jne 0x42c2ee
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40788b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417400]
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.00406579
and dword [ebp - 0x14], 0
cmp dword [0x449038], 0
mov dword [ebp - 0x18], eax
jne 0x40793e
push 0x401e7c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4079e6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401e70
push ebx
call edi
test eax, eax
je 0x4079e6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x401e60
push ebx
mov dword [0x449038], eax
call edi
push eax
call esi
push 0x401e4c
push ebx
mov dword [0x44903c], eax
call edi
push eax
call esi
push 0x401e30
push ebx
mov dword [0x449040], eax
call edi
push eax
call esi
mov dword [0x449048], eax
test eax, eax
je 0x40793e
push 0x401e18
push ebx
call edi
push eax
call esi
mov dword [0x449044], eax
mov eax, dword [0x449044]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x407997
cmp dword [0x449048], ecx
je 0x407997
push eax
call esi
push dword [0x449048]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x407997
test ebx, ebx
je 0x407997
call edi
test eax, eax
je 0x40798e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40798e
test byte [ebp - 8], 1
jne 0x407997
or dword [ebp + 0x10], 0x200000
jmp 0x4079ca
mov eax, dword [0x44903c]
cmp eax, dword [ebp - 0x18]
je 0x4079ca
push eax
call esi
test eax, eax
je 0x4079ca
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4079ca
mov eax, dword [0x449040]
cmp eax, dword [ebp - 0x18]
je 0x4079ca
push eax
call esi
test eax, eax
je 0x4079ca
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x449038]
call esi
test eax, eax
je 0x4079e6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4079e8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407c05
leave
ret

Function at 0x407c05
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x417400]
jne 0x407c0f
repz ret
jmp fcn.0040bc4c
Function at 0x414a00
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, 0x1004
call fcn.0040eef0
cmp dword [0x2b72bbc], 0x37
jne 0x414acc
push 0x4035a8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLocaleInfoW]
push 0
lea eax, [esp + 0x808]
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 0x40356c
push 0x403594
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
push 0x403628
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
lea eax, [esp + 0x408]
push eax
push 0x403644
push 0x403670
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 ecx, [esp + 0xc08]
push ecx
push 0x4036bc
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
mov edx, dword [0x2b72fd0]
mov ecx, dword [0x2b726a0]
mov al, byte [edx + esi + 0x38d6]
mov byte [ecx + esi], al
add esp, 0x1004
ret
Function at 0x415150
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x2b72bbc]
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 0x4151d6
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 0x403978
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 0x4039b8
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 [0x448708]
mov dword [0x2b72bbc], eax
jne 0x415175
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 [0x4486fc]
mov dword [0x2b72fd0], edx
call fcn.00414d60
pop edi
xor eax, eax
pop esi
pop ebp
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401bbf
Capabilities:
Parse pe header

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

Function at 0x402500
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x404c2c]
push edi
movzx edi, byte [0x404420]
mov edx, dword [esi + 0xc]
add edx, 0x14
mov ecx, dword [edx]
cmp ecx, edx
je 0x40254d
nop dword [eax + eax]
mov eax, dword [ecx + 0x28]
cmp dword [eax + 0xe], 0x2e0032
je 0x402544
mov ecx, dword [ecx]
cmp ecx, edx
jne 0x402530
jmp 0x40254d
mov esi, dword [ecx + 0x10]
mov dword [0x404c2c], esi
mov eax, dword [esi + 0x3c]
lea edx, [ebp - 8]
add eax, esi
mov dword [0x404c18], esi
mov dword [0x404c14], eax
add eax, 0x78
mov dword [0x404b44], eax
push 4
mov word [ebp - 7], 0x7463
mov ecx, dword [eax]
mov eax, dword [ecx + esi + 0x20]
add ecx, esi
add eax, esi
mov dword [0x404c1c], ecx
mov dword [0x404b40], eax
mov byte [ebp - 5], 0
mov eax, dword [ecx + 0x1c]
add eax, esi
mov byte [ebp - 8], 0x65
mov dword [0x404c20], eax
mov eax, dword [ecx + 0x24]
mov ecx, 0xb
add eax, esi
mov dword [0x404b38], eax
call fcn.00402430
lea ecx, [ebp - 0xc]
mov dword [0x404b3c], 0x404060
push ecx
lea ecx, [edi - 0x11]
add eax, esi
shl ecx, 4
push ecx
push 0x939
push str.pjqD
mov dword [0x404b34], eax
call eax
add esp, 0x14
mov dword [0x404c28], 0x4044a8
mov dword [0x404c24], 0x404448
mov esi, 0xd48d3939
mov edx, 0xdbe17bcf
mov edi, 0x3f
nop dword [eax]
mov eax, edx
mov ecx, esi
shld eax, ecx, 7
shrd esi, edx, 1
shl ecx, 7
or byte [edi + str.pjqD], cl
shr edx, 1
sub edi, 1
jns 0x402600
mov ecx, dword [0x404a64]
xor eax, eax
sub dword [eax + str.pjqD], ecx
add eax, 4
cmp eax, 0x59
jl 0x402624
push ebx
push 0x300
push ecx
push dword [0x404b3c]
mov eax, str.pjqD
call eax
mov eax, dword [0x404c1c]
add esp, 0xc
mov ebx, dword [0x404c2c]
xor esi, esi
mov edi, dword [eax + 0x18]
test edi, edi
je 0x40268c
nop dword [eax]
mov eax, dword [0x404b40]
mov edx, dword [eax + esi*4]
add edx, ebx
xor ecx, ecx
nop dword [eax]
mov al, byte [edx + ecx + 6]
cmp al, byte [ecx + 0x403158]
jne 0x402682
inc ecx
cmp ecx, 3
jb 0x402670
cmp ecx, 3
je 0x4026f6
inc esi
cmp esi, edi
jb 0x402660
xor esi, esi
push dword [0x404a64]
mov eax, dword [0x404b3c]
push esi
add eax, 0x7c
push ebx
call eax
add esp, 0xc
mov edi, eax
pop ebx
test edi, edi
je 0x4026e6
push 0x1d0
push edi
push dword [0x404c28]
mov eax, str.pjqD
call eax
add esp, 0xc
mov edx, 0x40315c
mov ecx, 0xa
push edi
push 3
call fcn.00402430
add esp, 4
push eax
push esi
push dword [0x404c2c]
call dword [0x404c28]
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040138e
mov esp, ebp
pop ebp
ret
mov eax, dword [0x404b38]
movzx ecx, word [eax + esi*2]
mov eax, dword [0x404c20]
mov esi, dword [eax + ecx*4]
jmp 0x40268e