joyce8/EMBER2024-capa huggingface dataset:
Function at 0xedb250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xeef808
push 0xedf288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xedb329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xedb329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00ede1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xedb329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xedb329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xedb32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00edb351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xedbd20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xedbd58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xedbd60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xedbd94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xedbd94
push eax
push esi
call fcn.00ede20b
add esp, 8
pop esi
ret 0x10

Function at 0xedbda0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xedbe22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xedbe15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xef4320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00edddff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xedbdda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xedbe30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xedbec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xedbeb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xef4320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00edddff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xedbeab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xedbe6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xedc000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xedc131
push esi
call fcn.00edf145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00ece080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xedc131
push 0
push ebp
call fcn.00ece3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00ece260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xedc08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00ece2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xedc121
push 0xef4918
push edi
call fcn.00edd3f0
push eax
push ebx
push esi
call fcn.00edbf60
push 0xef48f8
push edi
call fcn.00edd3f0
push eax
push ebx
push esi
call fcn.00edbf60
push 0xef48d8
push edi
call fcn.00edd3f0
push eax
push ebx
push esi
call fcn.00edbf60
push 0xef48c0
push edi
call fcn.00edd3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00edbf60
push 0xef48a0
push edi
call fcn.00edd3f0
push eax
push ebx
push esi
call fcn.00edbf60
push 0xef4888
push edi
call fcn.00edd3f0
push eax
push ebx
push esi
call fcn.00edbf60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xedd1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00edd140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00edd140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00edd140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00edd140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xeddbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xeddc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xeef87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xeddc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xeddc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43b004]
jne 0x40100a
repz ret
jmp fcn.0040148d

Function at 0x405933
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.004047aa
and dword [ebp - 4], 0
cmp dword [0x43cfbc], 0
mov ebx, eax
jne 0x4059e4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x405a95
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x405a95
push eax
call fcn.00404738
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43cfbc], eax
call esi
push eax
call fcn.00404738
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43cfc0], eax
call esi
push eax
call fcn.00404738
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43cfc4], eax
call esi
push eax
call fcn.00404738
pop ecx
mov dword [0x43cfcc], eax
test eax, eax
je 0x4059e4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404738
pop ecx
mov dword [0x43cfc8], eax
mov eax, dword [0x43cfc8]
cmp eax, ebx
je 0x405a3c
cmp dword [0x43cfcc], ebx
je 0x405a3c
push eax
call fcn.004047b3
push dword [0x43cfcc]
mov esi, eax
call fcn.004047b3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x405a3c
test edi, edi
je 0x405a3c
call esi
test eax, eax
je 0x405a33
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x405a33
test byte [ebp - 0xc], 1
jne 0x405a3c
or dword [ebp + 0x10], 0x200000
jmp 0x405a75
mov eax, dword [0x43cfc0]
cmp eax, ebx
je 0x405a75
push eax
call fcn.004047b3
pop ecx
test eax, eax
je 0x405a75
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x405a75
mov eax, dword [0x43cfc4]
cmp eax, ebx
je 0x405a75
push eax
call fcn.004047b3
pop ecx
test eax, eax
je 0x405a75
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43cfbc]
call fcn.004047b3
pop ecx
test eax, eax
je 0x405a95
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x405a97
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4343f0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1004
call fcn.00409640
mov eax, dword [0x43b004]
xor eax, esp
mov dword [esp + 0x1000], eax
mov eax, dword [0x43bf10]
push ebx
mov ebx, dword [0x822aec]
push edi
mov edi, dword [0x822934]
push eax
call fcn.004342d0
add esp, 4
cmp dword [0x822aec], 0x2f
jne 0x434433
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
call fcn.00434340
cmp dword [0x822aec], 0x568
pop edi
pop ebx
jne 0x434467
push 0
push 0
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
push 0
lea edx, [esp + 0x804]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.00401000
add esp, 0x1004
ret
Function at 0x91dd80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4c0000]
push edi
jmp 0x91dd9a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x91dda1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x91dd90
mov eax, 1
add ebx, ebx
jne 0x91ddb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x91ddc4
jne 0x91dde3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x91dde3
dec eax
add ebx, ebx
jne 0x91ddd0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x91dda8
add ebx, ebx
jne 0x91dddf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x91de35
xor ecx, ecx
sub eax, 3
jb 0x91ddfb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x91de6a
sar eax, 1
mov ebp, eax
jmp 0x91de06
add ebx, ebx
jne 0x91de06
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x91ddd4
inc ecx
add ebx, ebx
jne 0x91de14
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x91ddd4
add ebx, ebx
jne 0x91de21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x91de16
jne 0x91de32
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x91de16
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x91de54
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x91de46
jmp 0x91dd96
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x91de54
add edi, ecx
jmp 0x91dd96
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x91de72
cmp byte [edi], 0x11
jne 0x91de72
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 0x91de77
lea edi, [esi + 0x516000]
mov eax, dword [edi]
or eax, eax
je 0x91deef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x9564c8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x956644]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x91dea4
mov ecx, edi
jns 0x91ded3
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 + 0x956648]
or eax, eax
je 0x91dee9
mov dword [ebx], eax
add ebx, 4
jmp 0x91dec1
call dword [esi + 0x956658]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x91df20
cmp al, 0xef
ja 0x91df13
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x91def5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x91df02
mov ebp, dword [esi + 0x95664c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x91df54
sub esp, 0xffffff80
jmp 0x420577
Function at 0x402ee0
Capabilities:
Create mailslot

Disassembly:
push ecx
cmp dword [0x2b9b67c], 3
jne 0x402f02
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMailslotA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esp], 0
mov eax, dword [esp + 0x10]
mov dword [esp], eax
mov eax, dword [esp + 0xc]
xor dword [esp], eax
mov eax, dword [esp]
mov ecx, dword [esp + 8]
mov dword [ecx], eax
pop ecx
ret 0xc

Function at 0x403110
Capabilities:
Enumerate gui resources
Get disk information

Disassembly:
mov eax, dword [0x2b9b67c]
mov ecx, dword [0x2b98588]
shr eax, 3
sub esp, 0x808
test eax, eax
jbe 0x4031e1
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
cmp dword [0x2b9b67c], 0x959
jne 0x4031c3
call esi
push 0
lea eax, [esp + 0x1c]
push eax
push 0
call edi
push 0
push 0
call ebx
push 0
call ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00402f50
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x403150
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x808
ret
Function at 0x408c50
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x444c30]
jne 0x408c5a
repz ret
jmp fcn.0040b76c

Function at 0x40af37
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.004050e7
and dword [ebp - 4], 0
cmp dword [0x445fc4], 0
mov ebx, eax
jne 0x40afe8
push 0x402ab4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b099
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402aa8
push edi
call esi
test eax, eax
je 0x40b099
push eax
call fcn.00405075
mov dword [esp], 0x402a98
push edi
mov dword [0x445fc4], eax
call esi
push eax
call fcn.00405075
mov dword [esp], 0x402a84
push edi
mov dword [0x445fc8], eax
call esi
push eax
call fcn.00405075
mov dword [esp], 0x402a68
push edi
mov dword [0x445fcc], eax
call esi
push eax
call fcn.00405075
pop ecx
mov dword [0x445fd4], eax
test eax, eax
je 0x40afe8
push 0x402a50
push edi
call esi
push eax
call fcn.00405075
pop ecx
mov dword [0x445fd0], eax
mov eax, dword [0x445fd0]
cmp eax, ebx
je 0x40b040
cmp dword [0x445fd4], ebx
je 0x40b040
push eax
call fcn.004050f0
push dword [0x445fd4]
mov esi, eax
call fcn.004050f0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b040
test edi, edi
je 0x40b040
call esi
test eax, eax
je 0x40b037
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b037
test byte [ebp - 0xc], 1
jne 0x40b040
or dword [ebp + 0x10], 0x200000
jmp 0x40b079
mov eax, dword [0x445fc8]
cmp eax, ebx
je 0x40b079
push eax
call fcn.004050f0
pop ecx
test eax, eax
je 0x40b079
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b079
mov eax, dword [0x445fcc]
cmp eax, ebx
je 0x40b079
push eax
call fcn.004050f0
pop ecx
test eax, eax
je 0x40b079
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x445fc4]
call fcn.004050f0
pop ecx
test eax, eax
je 0x40b099
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b09b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40943b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41d400]
jne 0x409445
repz ret
jmp fcn.0040fbb0

Function at 0x40c1d8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41d400]
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.00406b89
and dword [ebp - 0x14], 0
cmp dword [0x43d77c], 0
mov dword [ebp - 0x18], eax
jne 0x40c28b
push 0x402398
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40c333
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40238c
push ebx
call edi
test eax, eax
je 0x40c333
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x40237c
push ebx
mov dword [0x43d77c], eax
call edi
push eax
call esi
push 0x402368
push ebx
mov dword [0x43d780], eax
call edi
push eax
call esi
push 0x40234c
push ebx
mov dword [0x43d784], eax
call edi
push eax
call esi
mov dword [0x43d78c], eax
test eax, eax
je 0x40c28b
push 0x402334
push ebx
call edi
push eax
call esi
mov dword [0x43d788], eax
mov eax, dword [0x43d788]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40c2e4
cmp dword [0x43d78c], ecx
je 0x40c2e4
push eax
call esi
push dword [0x43d78c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40c2e4
test ebx, ebx
je 0x40c2e4
call edi
test eax, eax
je 0x40c2db
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40c2db
test byte [ebp - 8], 1
jne 0x40c2e4
or dword [ebp + 0x10], 0x200000
jmp 0x40c317
mov eax, dword [0x43d780]
cmp eax, dword [ebp - 0x18]
je 0x40c317
push eax
call esi
test eax, eax
je 0x40c317
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40c317
mov eax, dword [0x43d784]
cmp eax, dword [ebp - 0x18]
je 0x40c317
push eax
call esi
test eax, eax
je 0x40c317
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43d77c]
call esi
test eax, eax
je 0x40c333
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40c335
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040943b
leave
ret

Function at 0x41b2c0
Capabilities:
Delete file
Get uefi variable

Disassembly:
sub esp, 0x800
cmp dword [0x2b672e4], 0x37
jne 0x41b330
push 0x4035c8
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x4035e0
push 0x403630
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
push 0
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
push 0
lea eax, [esp + 4]
push eax
push 0x4036a8
push 0x4036c4
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetMessageWaitingIndicator]
push 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
lea ecx, [esp + 0x404]
push ecx
push 0x4036d8
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
mov edx, dword [0x2b676f8]
mov ecx, dword [0x2b66dc8]
mov al, byte [edx + esi + 0x38d6]
mov byte [ecx + esi], al
add esp, 0x800
ret
Function at 0x44aac8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x44ab0f
cmp edx, 0x10
jl 0x44aafb
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x44aae8
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x44ab0f
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x44ab07
and edx, 3
cmp edx, 3
jne 0x44ab23
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x44ab28
cmp edx, 2
jne 0x44ab34
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x44ab39
cmp edx, 1
jne 0x44ab3f
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x10003f00
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ecx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
mov dword [0x1000fec8], eax
jne 0x10003f1b
pop ecx
ret
mov ecx, dword [esp + 8]
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
push 2
push 0x110
push 0xf01ff
push str.Knsett_Oqrtieo_Zoi__tbe_Fcnq
push str.Osqfcd_HkicfhnGcm
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
mov dword [0x1000fec4], eax
jne 0x10003f54
pop ecx
ret
mov edx, dword [0x1000fec8]
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov ecx, dword [0x1000fec4]
mov esi, eax
lea eax, [esp + 4]
mov dword [esp + 4], str.Nbtlhsr
push eax
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
push esi
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
mov eax, 1
pop esi
pop ecx
ret

Function at 0x10003f90
Capabilities:
Modify service

Disassembly:
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
push 0xf003f
push str.Osqfcd_HkicfhnGcm
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
xor eax, eax
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], eax
push esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], 0x15180
mov dword [esp + 0x28], 0x3e8
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], 1
mov dword [esp + 0x1c], 3
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
lea edx, [esp + 0xc]
push edx
push 2
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x2c
ret