joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408db0
Capabilities:
Create thread

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
lea ecx, [esp + 0x14]
push eax
xor ebp, ebp
push ecx
push str.Default
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebp
call fcn.00407940
mov eax, dword [0x424584]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
add esp, 0xc
cmp eax, ebp
jne 0x408e5c
mov ecx, 0x64
xor eax, eax
mov edi, 0x428520
push str.NVSvcFSTaskExit
rep stosd dword es:[edi], eax
mov ecx, 0x64
mov edi, 0x4243f0
push ebp
push ebp
rep stosd dword es:[edi], eax
push ebp
call ebx
cmp eax, ebp
mov dword [0x42459c], eax
jne 0x408e24
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push ebp
push ebp
push ebp
push ebp
call ebx
cmp eax, ebp
mov dword [0x424580], eax
jne 0x408e52
mov eax, dword [0x42459c]
cmp eax, ebp
je 0x408f0d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x42459c], ebp
jmp 0x408f0d
mov dword [0x424584], 1
call fcn.00408d60
cmp eax, 0xffffffff
jne 0x408f2f
xor esi, esi
cmp dword [esi*4 + 0x4243f0], ebp
je 0x408e85
inc esi
cmp esi, 0x64
jb 0x408e6c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
cmp esi, 0x64
jb 0x408e94
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
call fcn.004090e0
mov dword [0x4245a0], eax
call fcn.00409250
push ebp
push ebp
push ebp
push ebp
mov dword [0x4245a4], eax
mov dword [0x4206c4], 1
call ebx
mov dword [0x424588], eax
lea eax, [esi*4 + 0x4243f0]
push eax
push ebp
push ebp
push 0x4092e0
push 0x10000
push ebp
lea edi, [esi*4 + 0x428520]
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi], eax
mov eax, dword [0x424588]
cmp eax, ebp
je 0x408f09
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [0x424588]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x424588], ebp
cmp dword [edi], ebp
jne 0x408f2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
call fcn.004079d0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.004079d0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x409030
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
mov ebp, dword [sym.imp.USER32.dll_PostThreadMessageW]
push esi
push edi
xor edi, edi
xor esi, esi
cmp dword [esi + 0x428520], edi
je 0x409063
mov eax, dword [esi + 0x4243f0]
push edi
push edi
push 0x800
push eax
mov byte [0x4245a8], 1
call ebp
mov eax, dword [esi + 0x428520]
cmp eax, edi
je 0x4090a3
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40908e
mov ecx, dword [esi + 0x428520]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0x428520]
push edx
call ebx
mov dword [esi + 0x428520], edi
mov dword [esi + 0x4243f0], edi
add esi, 4
cmp esi, 0x190
jb 0x409044
mov eax, dword [0x42459c]
cmp eax, edi
je 0x4090c0
push eax
call ebx
mov dword [0x42459c], edi
mov eax, dword [0x424580]
cmp eax, edi
je 0x4090d2
push eax
call ebx
mov dword [0x424580], edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x409250
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x64
push esi
push edi
mov ecx, 0x15
mov esi, str.SOFTWARENVIDIA_CorporationGlobalNVTweak
lea edi, [esp + 0x14]
lea eax, [esp + 8]
rep movsd dword es:[edi], dword [esi]
push eax
push 1
lea ecx, [esp + 0x1c]
push 0
push ecx
push 0x80000002
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 4
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [esp + 8]
pop edi
test eax, eax
pop esi
je 0x4092c7
lea edx, [esp + 8]
lea ecx, [esp + 4]
push edx
push ecx
push 0
push 0
push str.DetectAC
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 4]
and eax, 1
add esp, 0x64
ret
Function at 0x4094e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x64
push esi
push edi
mov ecx, 0x15
mov esi, str.SOFTWARENVIDIA_CorporationGlobalNVTweak
lea edi, [esp + 0x14]
lea eax, [esp + 8]
rep movsd dword es:[edi], dword [esi]
push eax
push 1
lea ecx, [esp + 0x1c]
push 0
push ecx
push 0x80000002
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 4
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [esp + 8]
test eax, eax
je 0x4095a5
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0xc]
push edx
push 0x4245ac
push 0
push 0
push str.SmartDimmerEnable
push eax
mov dword [esp + 0x28], 0x1000080
call esi
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0
push str.SmartDimmerTransFactor
push edx
call esi
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xc]
mov ecx, eax
push edx
shr eax, 0x10
push 0x4245b0
mov dword [0x4206cc], eax
mov eax, dword [esp + 0x10]
push 0
push 0
and ecx, 0xffff
push str.SmartDimmerConfig
push eax
mov dword [0x4206c8], ecx
call esi
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x4245ac]
pop edi
test eax, eax
pop esi
je 0x4095c2
mov edx, dword [0x4245b0]
and edx, 4
push edx
call fcn.00405a00
add esp, 4
add esp, 0x64
ret

Function at 0x40adf0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push 0x94
push 0
lea eax, [ebp - 0x98]
push eax
call fcn.0040f6f0
add esp, 0xc
mov dword [ebp - 0x98], 0x94
lea ecx, [ebp - 0x98]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 5
jbe 0x40ae3e
mov edx, dword [ebp - 0x88]
add edx, 1
mov dword [ebp - 0x88], edx
mov eax, dword [ebp - 0x88]
mov esp, ebp
pop ebp
ret
Function at 0x401b30
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp dbg.mark_section_writable

Function at 0x401b90
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x406054]
test esi, esi
jle 0x401c7d
mov edi, dword [0x406058]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x401bc4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x401c76
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x401bb0
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x401cba
lea ebx, [esi + esi*2]
mov esi, dword [0x406058]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x406058]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401c9a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x401c6f
sub eax, 0x40
and eax, 0xffffffbf
je 0x401c6f
mov eax, dword [esp + 0x20]
add ebx, dword [0x406058]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x401c84
add dword [0x406054], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x401bce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
mov eax, dword [0x406058]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
Function at 0x402180
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x406408
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x406400]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x4021d5
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4021ce
test esi, esi
je 0x4021ce
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4021b0
mov dword [esp], 0x406408
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4023f0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x402428
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x40241e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40242a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402410
xor eax, eax
pop ebx
pop esi
ret

Function at 0x402be0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push esi
push ebx
mov esi, eax
sub esp, 0x2e4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
sub esp, 4
cmp eax, 0xffffffff
jne 0x402c10
add esp, 0x2e4
mov eax, 0xffffffff
pop ebx
pop esi
ret
lea eax, [esp + 0x14]
mov dword [esp], esi
mov dword [esp + 0x14], 0x10003
mov ebx, 0xffffffff
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
sub esp, 8
test eax, eax
cmovne ebx, dword [esp + 0xcc]
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
sub esp, 4
add esp, 0x2e4
mov eax, ebx
pop ebx
pop esi
ret
Function at 0x408084
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43cbe8]
jne 0x40808e
repz ret
jmp fcn.00409f4e

Function at 0x4098ba
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43cbe8]
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.00405b4c
and dword [ebp - 0x14], 0
cmp dword [0x454160], 0
mov dword [ebp - 0x18], eax
jne 0x40996d
push 0x4029d4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x409a15
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4029c8
push ebx
call edi
test eax, eax
je 0x409a15
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4029b8
push ebx
mov dword [0x454160], eax
call edi
push eax
call esi
push 0x4029a4
push ebx
mov dword [0x454164], eax
call edi
push eax
call esi
push 0x402988
push ebx
mov dword [0x454168], eax
call edi
push eax
call esi
mov dword [0x454170], eax
test eax, eax
je 0x40996d
push 0x402970
push ebx
call edi
push eax
call esi
mov dword [0x45416c], eax
mov eax, dword [0x45416c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4099c6
cmp dword [0x454170], ecx
je 0x4099c6
push eax
call esi
push dword [0x454170]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4099c6
test ebx, ebx
je 0x4099c6
call edi
test eax, eax
je 0x4099bd
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4099bd
test byte [ebp - 8], 1
jne 0x4099c6
or dword [ebp + 0x10], 0x200000
jmp 0x4099f9
mov eax, dword [0x454164]
cmp eax, dword [ebp - 0x18]
je 0x4099f9
push eax
call esi
test eax, eax
je 0x4099f9
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4099f9
mov eax, dword [0x454168]
cmp eax, dword [ebp - 0x18]
je 0x4099f9
push eax
call esi
test eax, eax
je 0x4099f9
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x454160]
call esi
test eax, eax
je 0x409a15
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x409a17
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408084
leave
ret
Function at 0x577cb0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x172000]
push edi
jmp 0x577cca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x577cd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x577cc0
mov eax, 1
add ebx, ebx
jne 0x577ce3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x577cf4
jne 0x577d13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x577d13
dec eax
add ebx, ebx
jne 0x577d00
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x577cd8
add ebx, ebx
jne 0x577d0f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x577d65
xor ecx, ecx
sub eax, 3
jb 0x577d2b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x577d9a
sar eax, 1
mov ebp, eax
jmp 0x577d36
add ebx, ebx
jne 0x577d36
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x577d04
inc ecx
add ebx, ebx
jne 0x577d44
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x577d04
add ebx, ebx
jne 0x577d51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x577d46
jne 0x577d62
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x577d46
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x577d84
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x577d76
jmp 0x577cc6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x577d84
add edi, ecx
jmp 0x577cc6
pop esi
mov edi, esi
mov ecx, 0x255
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x577da2
cmp byte [edi], 1
jne 0x577da2
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 0x577da7
lea edi, [esi + 0x175000]
mov eax, dword [edi]
or eax, eax
je 0x577e1f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19a74c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x19a800]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x577dd4
mov ecx, edi
jns 0x577e03
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 + 0x19a804]
or eax, eax
je 0x577e19
mov dword [ebx], eax
add ebx, 4
jmp 0x577df1
call dword [esi + 0x19a814]
mov ebp, dword [esi + 0x19a808]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x577e53
sub esp, 0xffffff80
jmp 0x40354b
Function at 0x1005b350
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 8
xor ecx, ecx
xor eax, eax
push ebp
mov ebp, dword [esp + 0x18]
mov byte [eax + ebp], al
inc eax
cmp eax, 0x100
jl 0x1005b35c
mov eax, dword [esp + 0x14]
mov byte [ebp + 0x100], cl
cmp eax, ecx
mov byte [ebp + 0x101], cl
jle 0x1005b3ef
push ebx
push esi
push edi
mov byte [esp + 0x24], cl
xor esi, esi
mov ebx, ebp
mov dword [esp + 0x10], 0x100
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
and edi, 0xff
xor eax, eax
xor edx, edx
mov al, byte [edi + ecx]
mov dl, byte [ebx]
add esi, eax
add edx, esi
and edx, 0x800000ff
jns 0x1005b3b9
dec edx
or edx, 0xffffff00
inc edx
mov byte [esp + 0x14], dl
mov esi, dword [esp + 0x14]
and esi, 0xff
lea eax, [esi + ebp]
push eax
push ebx
call fcn.1005b400
lea eax, [edi + 1]
add esp, 8
cdq
idiv dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc ebx
dec eax
mov dword [esp + 0x10], eax
mov byte [esp + 0x24], dl
jne 0x1005b38e
pop edi
pop esi
pop ebx
pop ebp
add esp, 8
ret

Function at 0x1005b420
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
mov edx, dword [esp + 0x14]
push ebx
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
mov al, byte [esi + 0x100]
mov cl, byte [esi + 0x101]
test edx, edx
mov byte [esp + 0x20], al
mov byte [esp + 8], cl
jle 0x1005b51d
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x28]
and edi, 0xff
and ebp, 0xff
lea eax, [edi + 1]
and eax, 0x800000ff
jns 0x1005b472
dec eax
or eax, 0xffffff00
inc eax
mov byte [esp + 0x28], al
xor ecx, ecx
mov edi, dword [esp + 0x28]
and edi, 0xff
mov cl, byte [edi + esi]
lea eax, [edi + esi]
add ecx, ebp
mov dword [esp + 0x18], eax
and ecx, 0x800000ff
jns 0x1005b49e
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ebp, dword [esp + 0x10]
and ebp, 0xff
lea ecx, [esi + ebp]
push ecx
push eax
mov dword [esp + 0x1c], ecx
call fcn.1005b400
mov eax, dword [esp + 0x1c]
xor edx, edx
xor ecx, ecx
add esp, 8
mov dl, byte [eax]
mov eax, dword [esp + 0x18]
mov cl, byte [eax]
add edx, ecx
and edx, 0x800000ff
jns 0x1005b4df
dec edx
or edx, 0xffffff00
inc edx
mov eax, dword [esp + 0x20]
and edx, 0xff
mov cl, byte [edx + esi]
mov dl, byte [ebx + eax]
xor dl, cl
mov byte [ebx + eax], dl
mov eax, dword [esp + 0x24]
inc ebx
cmp ebx, eax
jl 0x1005b461
mov dl, byte [esp + 0x28]
mov al, byte [esp + 0x10]
pop edi
mov byte [esi + 0x100], dl
mov byte [esi + 0x101], al
pop ebp
pop esi
pop ebx
add esp, 0xc
ret
mov byte [esi + 0x100], al
mov byte [esi + 0x101], cl
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x1005c500
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x101e6bf4]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x1005c513
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x1005c554
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x101e6c9c]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x1005c586
mov bl, byte [esp + ecx + 0x4c]
jmp 0x1005c58a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x1005c57b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x1005c5a8
mov bl, byte [esp + ecx + 0x4c]
jmp 0x1005c5ac
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x1005c59d
xor ecx, ecx
mov eax, 0x101e6c04
xor ebx, ebx
mov bl, byte [ecx + 0x101e6cac]
cmp byte [esp + ebx + 0x14], 0
je 0x1005c5d7
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x101e6cc4]
cmp byte [esp + ebx + 0x14], 0
je 0x1005c5ee
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x1005c5be
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x1005c547
lea edx, [esp + 0x84]
push edx
call fcn.1005c630
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x1024d139
Capabilities:
Packed with generic packer

Disassembly:
pushfd
pushal
mov byte [esp + 4], al
lea ebx, [ebx + 1]
push 0x7512cc6a
mov dword [esp + 0x2c], ebx
movzx ebx, cl
call fcn.102157fe
jmp 0x1023c9ba
lea esp, [esp + 0x30]
jl 0x1023cc52
pushal
lea ebx, [ebx + 1]
pushfd
mov dword [esp + 0x28], ebx
movzx ebx, al
movsx bx, cl
mov byte [esp], 0xe6
push edx
mov ebx, 0x1004c653
pushfd
mov ebx, dword [ebx + 0x1cd1da]
lea esp, [esp + 0x2c]
jae 0x1024d9f3
pushfd
lea ebx, [ebx + 0x21ecc2b4]
call fcn.1027e331
push 0x7cdfff5e
lea ebx, [ebx + 0x21ecc2b4]
pushal
pushfd
call fcn.10218c7a
mov dh, 0x2c
scasd eax, dword es:[edi]
mov ch, 0xc3
cld
push dword [esi - 0x3c4a50d4]
add edi, dword [eax + 0x51]
shr byte [ecx + ebp*8], cl
jnp 0x1024da4a
mov dh, 0x73
aad 0x92
in al, dx
test eax, 0xfb3ed013
test dword [edx - 0x38], eax
test dword [ebx], edx
shl byte [esi], 1
jecxz 0x1024da6e
push es
int3
sub al, 0xc7
jbe 0x1024da62
fidivr word [ecx + eax*8]
popal
loope 0x1024dab7
insd dword es:[edi], dx
and dh, byte [eax + 0x56806dc3]
imul eax, dword [ebx + 0x56], 0xf90d4734
add eax, 0x86d0bd21
loope 0x1024da8c
jle 0x1024da03
stosd dword es:[edi], eax
pop ecx
jg 0x1024dac0
push ecx
mov dword [esp + 0x34], edx
pushfd
call fcn.10221541
add eax, dword [eax]
insb byte es:[edi], dx
cwde
push ds
add byte [esi - 0x77], ah
xor al, 0x24
Function at 0x10002be0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10054670]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov dword [ebp - 0x18], 0x10057030
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
xor eax, eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 3
push 0
push 3
push 0
push str..PhysicalDrive0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x10002c3a
push 0x10056f60
mov esi, 0x1004ea9a
call fcn.10004d10
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0x1000
push 0x10057030
push 0xc
lea edx, [ebp - 0x14]
push edx
push 0x2d1400
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10002c72
push 0x10056f60
mov esi, 0x1004ea9a
call fcn.10004d10
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x18], 0
jbe 0x10002c93
mov edx, dword [ebp - 0x18]
mov esi, dword [edx + 0x18]
add esi, 0x10057030
push 0x10056f60
call fcn.10004d10
jmp 0x10002ca2
push 0x10056f60
mov esi, 0x1004ea9a
call fcn.10004d10
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100106c0
mov esp, ebp
pop ebp
ret

Function at 0x10002cc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004193b
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x10054670]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x88]
call fcn.100049f0
mov dword [ebp - 4], 0
mov dword [ebp - 0x68], 0x40
mov dword [ebp - 0x60], 1
lea eax, [ebp - 0x64]
push eax
push 0x20119
push 0
push str.SOFTWAREMicrosoftCryptography
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x68]
push ecx
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 0x60]
push eax
push 0
push str.MachineGuid
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x5c], 0
jne 0x10002d65
cmp dword [ebp - 0x58], 0
jne 0x10002d65
lea edx, [ebp - 0x88]
push edx
lea esi, [ebp - 0x54]
call fcn.10004d10
mov eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x88]
call fcn.10004d60
push 0x10057000
mov esi, eax
call fcn.10004d10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.10004cd0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100106c0
mov esp, ebp
pop ebp
ret