joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407010
Capabilities:
Enumerate pe sections

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

Function at 0x407120
Capabilities:
Parse pe header

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

Function at 0x437f90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x27000]
push edi
or ebp, 0xffffffff
jmp 0x437fb2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x437fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x437fa8
mov eax, 1
add ebx, ebx
jne 0x437fcb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x437fc0
jne 0x437fdc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x437fc0
xor ecx, ecx
sub eax, 3
jb 0x437ff0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x438062
mov ebp, eax
add ebx, ebx
jne 0x437ffb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x438008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43802c
inc ecx
add ebx, ebx
jne 0x438018
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43800d
jne 0x438029
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43800d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43804c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43803d
jmp 0x437fae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43804c
add edi, ecx
jmp 0x437fae
pop esi
mov edi, esi
mov ecx, 0x9b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43806a
cmp byte [edi], 5
jne 0x43806a
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 eax, ebx
loop 0x43806f
lea edi, [esi + 0x35000]
mov eax, dword [edi]
or eax, eax
je 0x4380de
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x38434]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x38498]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43809c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3849c]
or eax, eax
je 0x4380d8
mov dword [ebx], eax
add ebx, 4
jmp 0x4380b9
call dword [esi + 0x384a0]
popal
jmp 0x409516
Function at 0x4044b4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
cmp eax, 1
jne 0x4044f0
add esp, 0xfffffff4
push dword [edx + 0x4c]
call sym._getc
cmp eax, 0xffffffff
jne 0x4044e0
xor eax, eax
jmp 0x4044fc
mov byte [ebx], al
mov eax, 1
jmp 0x4044fc
push dword [edx + 0x4c]
push eax
push 1
push ebx
call sym._fread
mov ebx, dword [ebp - 0x18]
leave
ret

Function at 0x404504
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push ebx
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
push dword [ebx + 0x4c]
push esi
push 1
push dword [ebp + 0xc]
call sym._fwrite
mov edx, dword [ebx + 0x40]
test edx, edx
jl 0x40452c
add edx, esi
mov dword [ebx + 0x40], edx
lea esp, [ebp - 0x18]
pop ebx
pop esi
leave
ret

Function at 0x4045fc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx]
shr eax, 1
xor al, 1
test al, 1
jne 0x404625
push dword [edx + 0x4c]
push ecx
push 1
push ebx
call sym._fwrite
jmp 0x404630
add esp, 0xfffffffc
push ecx
push ebx
push edx
call sym._xsputn__9streambufPCci
mov ebx, dword [ebp - 0x18]
leave
ret

Function at 0x407490
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
add esp, 0xfffffffc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax + 0x38]
call sym._read
leave
ret

Function at 0x40ab64
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x40ab89
mov dword [0x413164], eax
add esp, 0xfffffff8
push sym._eh_context_free
push eax
call sym.___mingwthr_key_dtor
jmp 0x40ab8e
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x40aba4
mov dword [sym._eh_context_initialize], 0x40ac88
jmp 0x40abae
mov dword [sym._eh_context_initialize], 0x40ac3c
leave
ret

Function at 0x40ac88
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
add esp, 0xfffffff4
push dword [0x413164]
call sub.KERNEL32.dll_TlsGetValue
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x40acd5
call sym._new_eh_context
mov ebx, eax
add esp, 0xfffffff8
push ebx
push dword [0x413164]
call sub.KERNEL32.dll_TlsSetValue
add esp, 8
test eax, eax
jne 0x40acca
call sub.KERNEL32.dll_GetLastError
jmp 0x40accc
xor eax, eax
test eax, eax
je 0x40acd5
call sym.___terminate
mov eax, ebx
mov ebx, dword [ebp - 0x18]
leave
ret
Function at 0x40ae00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x65c
push edi
push esi
push ebx
mov eax, dword [sym._eh_context_initialize]
call eax
mov edx, eax
lea eax, [edx + 4]
mov dword [ebp - 0x644], eax
mov eax, dword [edx + 4]
lea ecx, [eax + 4]
mov dword [ebp - 0x648], ecx
cmp dword [eax + 4], 0
je 0x40aebd
lea ebx, [ebp - 0x640]
mov dword [ebp - 0x64c], ebx
mov dword [ebx + 4], 0
mov eax, dword [edx + 4]
mov dword [ebp - 0x640], eax
lea eax, [ebp - 0x638]
mov dword [ebp - 0x638], ebp
mov dword [eax + 4], 0x40ae68
mov dword [eax + 8], esp
jmp 0x40ae6a
mov edx, dword [ebp - 0x64c]
mov eax, dword [ebp - 0x644]
mov dword [eax], edx
mov ecx, dword [ebp - 0x648]
cmp dword [ecx], 0
je 0x40aea6
nop
mov ebx, dword [ebp - 0x648]
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov eax, dword [eax]
mov dword [ebx], eax
add esp, 0xfffffff8
push 2
push edx
call ecx
add esp, 0x10
cmp dword [ebx], 0
jne 0x40ae84
mov edx, dword [ebp - 0x64c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x644]
mov dword [ecx], eax
jmp 0x40aebd
mov ebx, dword [ebp - 0x644]
mov eax, dword [ebx]
mov eax, dword [eax]
mov dword [ebx], eax
call sym.___sjthrow
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
dec ecx
outsb dx, byte [esi]
je 0x40af4d
jb 0x40af58
popal
insb byte es:[edi], dx
and byte [ebx + 0x6f], al
insd dword es:[edi], dx
jo 0x40af5b
insb byte es:[edi], dx
jb 0x40af16
inc edx
jne sym.___get_eh_table_version
cmp ah, byte [eax]
dec esi
outsd dx, dword [esi]
and byte [edx + 0x75], dh
outsb dx, byte [esi]
je sym.___get_eh_table_language
insd dword es:[edi], dx
and byte gs:[ecx + edi*2 + 0x70], dh
and byte gs:[ebp + 0x61], ch
je 0x40af72
push 0x2e7265
in eax, 0x83
in al, dx
or al, ch
xor esp, edi
invalid
mov al, 0x41
inc ecx
add byte [ebx - 0x17afbf40], al
mov byte [0x31000043], al
add byte [eax], al
xor eax, eax
ror cl, 0xc3
mov esi, esi
leave
ret
movsx eax, word [eax + 4]
leave
ret
Function at 0x401580
Capabilities:
Create service
Modify service

Disassembly:
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x4015bb
mov eax, dword [0x40cb74]
test eax, eax
je 0x401674
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed___d__n
call fcn.00402fb0
add esp, 8
pop edi
pop esi
ret
mov eax, dword [esp + 0x10]
push 0
push 0
push 0
push 0
push 0
push eax
mov eax, dword [esp + 0x24]
push 1
push 3
push 1
push 0xf01ff
push eax
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
jne 0x401617
mov eax, dword [0x40cb74]
test eax, eax
je 0x4015fe
push str.CreateService_failed_n
call fcn.00402fb0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00402a10
add esp, 4
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
ret
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], str.This_is_a_test_description
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
test eax, eax
mov eax, dword [0x40cb74]
jne 0x401641
test eax, eax
je 0x401668
push str.ChangeServiceConfig2_failed_n
jmp 0x40164a
test eax, eax
je 0x401668
push str.Service_description_updated_successfully._n
call fcn.00402fb0
mov eax, dword [0x40cb74]
add esp, 4
test eax, eax
je 0x401668
push str.Service_installed_successfully_n
call fcn.00402fb0
add esp, 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
pop esi
ret
Function at 0x401680
Capabilities:
Delete registry value
Set registry value

Disassembly:
sub esp, 0x88
push ebx
push ebp
push esi
push edi
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
mov edi, str.IgnoreHWSerNum
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, dword [esp + 0x9c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [esp + 0x14], eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x14]
mov ecx, ebp
push eax
push 0xf003f
and ecx, 3
push 0
push str.SYSTEMCurrentControlSetControlusbflags
push 0x80000002
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40177c
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x40175d
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x13]
push 1
push ecx
push 3
lea edx, [esp + 0x24]
push 0
push edx
push eax
mov byte [esp + 0x2b], 1
call esi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x18]
push ebx
push 1
push eax
push str.usbmpid
push ecx
call esi
jmp 0x40176d
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40177c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret
Function at 0x401ca0
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x20c
push edi
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetControlClass36FC9E60_C465_11CF_8056_444553540000
push 0x80000002
mov dword [esp + 0x1c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
pop edi
jne 0x401da2
lea ecx, [esp + 4]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 4]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push str.LowerFilters
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401d93
mov eax, dword [esp + 8]
cmp eax, 1
jne 0x401d34
mov edx, dword [esp + 0x210]
lea eax, [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x401d93
jmp 0x401d5a
cmp eax, 7
jne 0x401d93
mov edx, dword [esp + 0x210]
lea eax, [esp + 0xc]
push edx
push eax
call fcn.004028a0
add esp, 8
cmp al, 1
jne 0x401d93
mov al, byte [esp + 0xc]
test al, al
jne 0x401d6c
mov ecx, dword [esp]
push str.LowerFilters
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x401d93
lea edx, [esp + 0xc]
push edx
call fcn.00402860
add esp, 4
mov ecx, dword [esp]
push eax
lea eax, [esp + 0x10]
push eax
push 7
push 0
push str.LowerFilters
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp]
test eax, eax
je 0x401da2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x20c
ret

Function at 0x401f00
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
mov esi, dword [esp + 0x60]
rep stosd dword es:[edi], eax
mov dword [esp + 8], eax
mov dword [esp + 0x18], 0x44
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov eax, dword [0x40cb74]
test eax, eax
je 0x401f45
push esi
push str.Create_Process____s__
call fcn.00402fb0
add esp, 8
lea ecx, [esp + 8]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401f8d
mov eax, dword [0x40cb74]
test eax, eax
je 0x401f85
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcess_failed___d__n
call fcn.00402fb0
add esp, 8
pop edi
xor eax, eax
pop esi
add esp, 0x54
ret
mov eax, dword [esp + 0x64]
test eax, eax
je 0x401fa2
mov eax, dword [esp + 8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
pop edi
mov eax, 1
pop esi
add esp, 0x54
ret
Function at 0x402220
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x404
mov ecx, 0x100
xor eax, eax
push edi
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x40c]
lea ecx, [esp + 8]
push eax
push str.SYSTEMCurrentControlSetServices_sParameters
push ecx
call fcn.00402e00
add esp, 0xc
lea edx, [esp + 4]
lea eax, [esp + 8]
push 0
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
pop edi
jne 0x40229f
mov edx, dword [esp]
lea ecx, [esp + 0x40c]
push 4
push ecx
push 4
push eax
push str.HubDelayMs
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x40cb74]
test eax, eax
je 0x4022ba
lea ecx, [esp + 4]
push ecx
push str.AddHunDelayReg____s_n
call fcn.00402fb0
add esp, 8
add esp, 0x404
ret

Function at 0x4022d0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x400
mov ecx, 0x100
xor eax, eax
push edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4023cf
lea edi, [esp + 4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
mov al, 0x5c
cmp byte [esp + ecx + 4], al
je 0x402323
test ecx, ecx
je 0x402323
mov dl, byte [esp + ecx + 3]
dec ecx
cmp dl, al
jne 0x402316
mov byte [esp + ecx + 4], 0
mov edi, str.LoadDrv.ini
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ebx
sub edi, ecx
push esi
lea edx, [esp + 0xc]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0x7d0
push str.HubDelayMs
push str.Setting
call esi
lea ecx, [esp + 0xc]
mov dword [0x40c764], eax
push ecx
push 1
push str.RestartHubMode
push str.Setting
call esi
lea edx, [esp + 0xc]
mov dword [0x40c760], eax
push edx
push 0
push str.LoadDriverForWin7
push str.Setting
call esi
mov dword [0x40cb78], eax
lea eax, [esp + 0xc]
push eax
push 0x400
push 0x40c768
push str.mpszfilt
push str.ServiceName
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop esi
pop ebx
pop edi
add esp, 0x400
ret
Function at 0x402460
Capabilities:
Copy file
Get common file path
Set file attributes

Disassembly:
sub esp, 0x800
mov ecx, 0x100
xor eax, eax
push ebx
push esi
push edi
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov ecx, 0x100
lea edi, [esp + 0x40c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4024a4
pop edi
pop esi
pop ebx
add esp, 0x800
ret
cmp eax, 0x400
jbe 0x4024b7
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x800
ret
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
mov al, 0x5c
cmp byte [esp + ecx + 0xc], al
je 0x4024dc
test ecx, ecx
je 0x4024dc
mov dl, byte [esp + ecx + 0xb]
dec ecx
cmp dl, al
jne 0x4024cf
mov byte [esp + ecx + 0xc], 0
mov edi, str.DrvCovEx.exe
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x40c]
and ecx, 3
push 0x400
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x402530
pop edi
pop esi
pop ebx
add esp, 0x800
ret
cmp eax, 0x400
jbe 0x402543
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x800
ret
mov edi, str.DrvCovEx.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x40c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x80
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x410]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [0x40cb74]
test eax, eax
je 0x4025aa
lea ecx, [esp + 0x40c]
lea edx, [esp + 0xc]
push ecx
push edx
push str.Copy_driver_from__s_to__s_n
call fcn.00402fb0
add esp, 0xc
lea eax, [esp + 0x40c]
push 0
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x4025de
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00402a10
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x800
ret
mov edi, str._RegisterOnly_DrvCovEx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x40c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x410]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00401f00
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x800
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

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

Function at 0x407120
Capabilities:
Parse pe header

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

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x40ef4e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x40ef5d
pop dword [ebp - 0x50]
mov eax, 0xaf47d7ff
sub eax, 0xaf06e8a2
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xbc1298c3
sub dword [ebp - 0x60], 0x6dc05378
mov dword [ebp - 0x5c], 0xae503bc7
add dword [ebp - 0x5c], 0x83e3107e
mov dword [ebp - 0x58], 0x403b37ed
sub dword [ebp - 0x58], 0xf3eef3bf
mov dword [ebp - 0x54], 0x10e10744
sub dword [ebp - 0x54], 0x10e10744
lea eax, [ebp - 0x60]
push eax
mov eax, 0xcd2b1c08
add eax, 0x3317146c
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x7176cf93
add dword [ebp - 0x60], 0x2fb99c3
mov dword [ebp - 0x5c], 0xf982248
sub dword [ebp - 0x5c], 0xce2bc0d3
mov dword [ebp - 0x58], 0xed7f7bec
sub dword [ebp - 0x58], 0x8a100f80
mov dword [ebp - 0x54], 0x165171e6
add dword [ebp - 0x54], 0xe9ae8e1a
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x36774839
sub eax, 0x36351715
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x40eee
push 0
call eax
mov ecx, 0x54f4
mov ebx, eax
mov edi, 0x39174bb0
add edi, 0xc72bf850
add edi, dword [ebp - 0x50]
mov edx, 0x8d7fb7bf
sub dword [ebp - 0x28], ebx
mov esi, dword [edi]
sub esi, edx
xor dword [ebp - 0x20], 0xae01dbf8
mov dword [ebx], esi
mov dword [ebp - 0x3c], 0x22adb7f3
add ebx, 4
add edi, 0x1db43e9c
add edi, 0xe24bc168
loop 0x40f073
add eax, 0x146a3
xor ebx, ebx
add ebx, eax
add eax, 0xfcbabefa
add eax, 0x345410b
mov ecx, 0x73b4a97
sub ecx, 0x6fb4a97
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x409070
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x40907f
pop dword [ebp - 0x50]
mov eax, 0x29a7792
sub eax, 0x259e713
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x36486
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0xd6734708
add ecx, 0x298cf549
mov edi, eax
mov ebx, 0x5d12cd09
sub ebx, 0x5cd19145
add ebx, dword [ebp - 0x50]
mov edx, 0x28b2f01
sub edx, 0x1c18a03e
sub dword [ebp - 4], 0x8b8a8347
mov esi, dword [ebx]
add dword [ebp - 0x20], ecx
sub esi, edx
xor dword [ebp - 0x20], edx
mov dword [edi], esi
add dword [ebp - 0x3c], 0xc323c0fc
add edi, 0xe3ef0945
add edi, 0x1c10f6bf
add ebx, 0xdadb17c1
add ebx, 0x2524e843
loop 0x4090d9
add eax, 0xe417
xor ebx, ebx
add ebx, eax
add eax, 0xce1d03bf
sub eax, 0xce1d03ba
mov ecx, 0x664622ce
sub ecx, 0x660622ce
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x19a0519d
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x45df08ff
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
jmp 0x401219