joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406f50
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
mov edi, edx
push esi
push ebx
lea ebx, [ecx - 1]
mov ecx, 0x66666667
sub esp, 0x2c
mov dword [esp + 0x1c], eax
mov eax, ebx
mov dword [esp + 0x10], ebx
sar eax, 0x1f
mov esi, dword [esp + 0x40]
mov dword [esp + 0x14], eax
mov eax, ebx
sar ebx, 0x1f
imul ecx
mov ecx, edx
sar ecx, 2
sub ecx, ebx
mov ebx, 1
je 0x406fa3
mov ebp, 0x66666667
mov eax, ecx
sar ecx, 0x1f
add ebx, 1
imul ebp
sar edx, 2
sub edx, ecx
mov ecx, edx
jne 0x406f90
mov edx, dword [esi + 0x28]
cmp edx, 0xffffffff
je 0x407020
mov ecx, dword [esi + 8]
cmp ebx, edx
cmovl ebx, edx
lea edx, [ebx + 2]
mov eax, ecx
sub eax, edx
cmp ecx, edx
mov edx, 0xffffffff
cmovle eax, edx
mov ecx, 1
mov edx, edi
mov dword [esi + 8], eax
mov eax, dword [esp + 0x1c]
add ebx, 1
mov dword [esp], esi
call fcn.00406810
mov eax, dword [esi + 0x28]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
mov edx, eax
and eax, 0x20
or edx, 0x1c0
or eax, 0x45
mov dword [esi + 4], edx
mov edx, esi
call fcn.004063c0
add dword [esi + 8], ebx
mov eax, dword [esp + 0x10]
mov ecx, esi
mov edx, dword [esp + 0x14]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00406c50
mov eax, dword [0x40f04c]
cmp eax, 0xffffffff
je 0x40704b
test eax, eax
je 0x40703b
mov edx, 2
mov dword [esi + 0x28], edx
jmp 0x406fab
call fcn.0040e2f0
test al, 1
mov edx, 3
jne 0x40702e
jmp 0x407033
mov dword [esp], str.PRINTF_EXPONENT_DIGITS
call sub.msvcrt.dll_getenv
test eax, eax
je 0x407071
movsx eax, byte [eax]
sub eax, 0x30
cmp eax, 2
setbe al
movzx eax, al
mov dword [0x40f04c], eax
jmp 0x40702a
xor eax, eax
jmp 0x407067
Function at 0x40e8b0
Capabilities:
Enumerate gui resources

Disassembly:
push edi
push esi
mov esi, str.3cee576c923c105dfff58c9d208675356500a635395dff5e354a858600a665000001008604a663b85dfff58c9d2086756540a600a65dff652a5b0f86ce5780e4ffc0470c585dff16475a9986756501a6795dff0efdf0ae8605040504050505056e9808ae0020860074606286a0a65dff00b608928605454c92000010098b0dff8e98706277c48645f5233777860000233386d5ffffff089e21b8a5f5850eff15a59516b5b5424244980d10b840b83d10c185b8b4c0b8663d104285b8850e5742d7b38fd7304f570e837c10d0fc1cca0c136d10ff13b843b894c3479c583d100285b88184b8050d10c4470c58758704b80d10c324b80125b825fe57947c10d0fc1c02c220c716c3ca0c13ff1362a47bf08227b85e984125b8c025b80325b8462d1306000000f88ecf
push ebx
sub esp, 0x270
mov eax, dword [str.3cee576c923c105dfff58c9d208675356500a635395dff5e354a858600a665000001008604a663b85dfff58c9d2086756540a600a65dff652a5b0f86ce5780e4ffc0470c585dff16475a9986756501a6795dff0efdf0ae8605040504050505056e9808ae0020860074606286a0a65dff00b608928605454c92000010098b0dff8e98706277c48645f5233777860000233386d5ffffff089e21b8a5f5850eff15a59516b5b5424244980d10b840b83d10c185b8b4c0b8663d104285b8850e5742d7b38fd7304f570e837c10d0fc1cca0c136d10ff13b843b894c3479c583d100285b88184b8050d10c4470c58758704b80d10c324b80125b825fe57947c10d0fc1c02c220c716c3ca0c13ff1362a47bf08227b85e984125b8c025b80325b8462d1306000000f88ecf]
lea ebx, [esp + 0x1f]
lea edi, [esp + 0x20]
mov dword [esp + 0x1f], eax
mov ecx, ebx
mov eax, dword [0x410271]
sub ecx, edi
sub esi, ecx
add ecx, 0x251
mov dword [esp + 0x26c], eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 4], 1
mov dword [esp], 0x128
call sub.msvcrt.dll_calloc
test eax, eax
je 0x40e9b0
mov dword [esp], ebx
mov dword [esp + 4], eax
mov esi, eax
call fcn.0040e800
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x40000
call dword [sym.imp.KERNEL32.dll_HeapCreate]
sub esp, 0xc
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
mov ebx, eax
je 0x40e990
mov dword [esp + 4], esi
mov dword [esp + 8], 0x128
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov dword [esp], ebx
mov dword [esp + 4], 0
call dword [sym.imp.USER32.dll_EnumWindows]
sub esp, 8
add esp, 0x270
pop ebx
pop esi
pop edi
ret
mov dword [esp], str.HeapAlloc_error
call fcn.0040e860
add esp, 0x270
pop ebx
pop esi
pop edi
ret
mov dword [esp], str.malloc_error
call fcn.0040e860
add esp, 0x270
pop ebx
pop esi
pop edi
ret
Function at 0x571610
Capabilities:
Terminate process

Disassembly:
sub esp, 0x2c
cmp dword [0x10045efc], 0
push ebx
push ebp
push esi
push edi
mov eax, 1
jne 0x5716b7
cmp dword [0x10045f00], 0
mov dword [0x10045efc], eax
jne 0x57163c
mov dword [0x10045f00], eax
cmp dword [0x10045f04], 0
jne 0x57164f
call fcn.005758de
mov dword [0x10045f04], eax
cmp dword [0x10045f08], 0
jne 0x571665
call fcn.005758de
add eax, 0x20
mov dword [0x10045f08], eax
mov ebx, dword [0x10045ef4]
test ebx, ebx
je 0x57167d
mov eax, dword [0x10045eec]
cmp dword [ebx + eax*4], 0
lea esi, [ebx + eax*4]
jne 0x57169e
call fcn.00572b80
mov ecx, dword [0x10045ef4]
mov edx, dword [0x10045eec]
lea esi, [ecx + edx*4]
call fcn.00572a30
mov ebx, dword [0x10045ef4]
mov dword [esi], eax
mov esi, dword [esi]
mov edx, dword [esi]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 8]
mov dword [0x10045f04], edx
mov dl, byte [ecx]
mov dword [0x10045e5c], eax
jmp 0x5716d0
mov dl, byte [0x1003f991]
mov ecx, dword [0x10045ef8]
mov ebx, dword [0x10045ef4]
lea esp, [esp]
mov esi, dword [0x10045f00]
mov edi, ecx
mov byte [ecx], dl
mov dword [esp + 0x14], ecx
mov edi, edi
movzx eax, byte [edi]
mov dl, byte [eax*4 + 0x1002b330]
lea eax, [esi + esi]
cmp word [eax + 0x1002a7f8], 0
je 0x571703
mov dword [0x10045e68], esi
mov dword [0x10045e58], edi
movsx ebp, word [eax + 0x1002b808]
movzx ecx, dl
add ebp, ecx
movsx ebp, word [ebp*2 + 0x10030fe8]
cmp ebp, esi
je 0x571751
jmp 0x571720
movsx esi, word [eax + 0x1002c6d8]
cmp esi, 0x59a
jl 0x571736
mov dl, byte [ecx*4 + 0x1002b730]
lea eax, [esi + esi]
movsx ebp, word [eax + 0x1002b808]
movzx ecx, dl
add ebp, ecx
movsx ebp, word [ebp*2 + 0x10030fe8]
cmp ebp, esi
jne 0x571720
movsx ecx, word [esi*2 + 0x1002b808]
movzx edx, dl
add ecx, edx
movsx esi, word [ecx*2 + 0x1002d5a8]
add edi, 1
cmp word [esi*2 + 0x1002b808], 0x1ce9
jne 0x5716e0
lea esp, [esp]
mov ecx, dword [0x10045e68]
mov edx, dword [0x10045e58]
lea esp, [esp]
movsx eax, word [esi*2 + 0x1002a7f8]
test eax, eax
jne 0x5717a6
movsx eax, word [ecx*2 + 0x1002a7f8]
mov edi, edx
mov ebp, dword [esp + 0x14]
mov dl, byte [edi]
mov ecx, edi
sub ecx, ebp
mov dword [0x100470a8], ecx
mov dword [0x100470a4], ebp
mov byte [0x1003f991], dl
mov byte [edi], 0
mov ecx, edi
cmp eax, 0x92
mov dword [0x10045ef8], ecx
ja 0x572219
jmp dword [eax*4 + 0x10019034]
mov eax, 0x1003a5b0
jmp 0x572ce0
push eax
push 0x1003a77c
call fcn.005758de
add eax, 0x40
push eax
call fcn.00575bb5
add esp, 0xc
push 2
call fcn.00577424
int3

Function at 0x572a30
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov edi, dword [0x10045f04]
push 0x30
call fcn.0057457c
mov esi, eax
add esp, 4
test esi, esi
jne 0x572a52
mov eax, 0x1003a698
jmp 0x572ce0
push 0x4002
mov dword [esi + 0xc], 0x4000
call fcn.0057457c
add esp, 4
test eax, eax
mov dword [esi + 4], eax
jne 0x572a77
mov eax, 0x1003a698
jmp 0x572ce0
mov dword [esi + 0x14], 1
call fcn.00572a90
pop edi
mov eax, esi
pop esi
ret
Function at 0x572b80
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x10045ef4]
test eax, eax
jne 0x572bc1
push 4
call fcn.0057457c
add esp, 4
test eax, eax
mov dword [0x10045ef4], eax
jne 0x572ba6
mov eax, 0x1003a6c8
jmp 0x572ce0
mov dword [eax], 0
mov dword [0x10045ef0], 1
mov dword [0x10045eec], 0
ret
push esi
mov esi, dword [0x10045ef0]
lea ecx, [esi - 1]
cmp dword [0x10045eec], ecx
jb 0x572c23
push edi
lea edi, [esi + 8]
lea edx, [edi*4]
push edx
push eax
call fcn.00576e4f
add esp, 8
test eax, eax
mov dword [0x10045ef4], eax
jne 0x572bfb
mov eax, 0x1003a6c8
jmp 0x572ce0
xor ecx, ecx
mov dword [eax + esi*4], ecx
mov dword [eax + esi*4 + 4], ecx
mov dword [eax + esi*4 + 8], ecx
mov dword [eax + esi*4 + 0xc], ecx
mov dword [eax + esi*4 + 0x10], ecx
mov dword [eax + esi*4 + 0x14], ecx
mov dword [eax + esi*4 + 0x18], ecx
mov dword [0x10045ef0], edi
mov dword [eax + esi*4 + 0x1c], ecx
pop edi
pop esi
ret
Function at 0x576b98
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x576bd5
cmp dword [ebp + 0x14], edi
je 0x576bd5
cmp ecx, edi
jne 0x576bdc
call fcn.0057467a
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0057850a
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x576bf0
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x576c11
cmp ebx, 0xffffffff
je 0x576c00
push ebx
push edi
push ecx
call fcn.00578bb0
add esp, 0xc
cmp esi, edi
je 0x576bbd
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x576bbd
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x576c2d
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x576c34
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x576d25
test word [esi + 0xc], 0x10c
je 0x576c88
mov eax, dword [esi + 4]
test eax, eax
je 0x576c88
jl 0x576d86
cmp ebx, eax
mov edi, ebx
jb 0x576c59
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x576d2d
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0057dd71
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x576d1d
cmp ebx, dword [ebp - 0xc]
jb 0x576cf5
cmp dword [ebp - 0xc], 0
je 0x576cb2
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x576ca7
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x576cae
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x576cbd
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x576cbd
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x576d59
push eax
push dword [ebp - 8]
push esi
call fcn.00575d04
pop ecx
push eax
call fcn.0057dc74
add esp, 0xc
test eax, eax
je 0x576d98
cmp eax, 0xffffffff
je 0x576d86
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x576d1d
push esi
call fcn.0057a0ab
cmp eax, 0xffffffff
pop ecx
je 0x576d8a
cmp dword [ebp - 4], 0
je 0x576d59
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x576c3c
mov eax, dword [ebp + 0x14]
jmp 0x576bd7
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x576d44
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00578bb0
add esp, 0xc
call fcn.0057467a
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x576bcd
cmp dword [ebp + 0xc], 0xffffffff
je 0x576d6f
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00578bb0
add esp, 0xc
call fcn.0057467a
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x576bcd
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x576bd7
or dword [esi + 0xc], 0x10
jmp 0x576d8a
Function at 0x79d4c0
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x79d4c6
pop ebp
sub ebp, 6
sub ebp, 0x39d4c0
jmp 0x79d524
sahf
push ecx
mov esi, 0x22de486e
mov ebp, 0x77e2a302
mov byte [esi - 0x10], bh
shl dword [edi - 0x17], 1
add al, 0
add byte [eax], al
nop
push ebx
mov bh, 0xdd
jmp 0x79d52d
mov eax, 0x39d4c0
add eax, ebp
add eax, 0x93
add byte [eax], al
mov ecx, 0x619
mov edx, 0x6033552e
xor byte [eax], dl
inc eax
dec ecx
jne 0x79d544
jmp 0x79d557
inc esp
outsb dx, byte [esi]
inc esi
inc esi
loop 0x79d564
sbb eax, 0xbbd17eee
ljmp 0xe3a5
out dx, al
jle 0x79d538
mov ebx, 0x2e1e8eea
jle 0x79d513
jecxz 0x79d515
cmpsd dword [esi], dword es:[edi]
adc ch, byte [esi]
scasd eax, dword es:[edi]
out dx, eax
salc
sub eax, 0x2e2a96e3
xchg esp, eax
push es
fxch st(4)
sub eax, 0x22afa5e6
sub eax, 0x6c467eeb
sbb al, 0x27
inc esi
push ebp
mov word [esi], ds
das
add cl, byte [edx]
inc esi
invalid
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

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
mov ebx, 0x408ecc
nop
mov ecx, 0x381241
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x8142f80
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x406291
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4261d0]
jne 0x40629b
repz ret
jmp fcn.0040871c

Function at 0x40adfc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4261d0]
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.004074b2
and dword [ebp - 0x14], 0
cmp dword [0x427a30], 0
mov dword [ebp - 0x18], eax
jne 0x40aeaf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40af57
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40af57
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x427a30], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x427a34], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x427a38], eax
call edi
push eax
call esi
mov dword [0x427a40], eax
test eax, eax
je 0x40aeaf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x427a3c], eax
mov eax, dword [0x427a3c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40af08
cmp dword [0x427a40], ecx
je 0x40af08
push eax
call esi
push dword [0x427a40]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40af08
test ebx, ebx
je 0x40af08
call edi
test eax, eax
je 0x40aeff
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40aeff
test byte [ebp - 8], 1
jne 0x40af08
or dword [ebp + 0x10], 0x200000
jmp 0x40af3b
mov eax, dword [0x427a34]
cmp eax, dword [ebp - 0x18]
je 0x40af3b
push eax
call esi
test eax, eax
je 0x40af3b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40af3b
mov eax, dword [0x427a38]
cmp eax, dword [ebp - 0x18]
je 0x40af3b
push eax
call esi
test eax, eax
je 0x40af3b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x427a30]
call esi
test eax, eax
je 0x40af57
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40af59
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406291
leave
ret

Function at 0x79d934
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x79d93a
pop ebp
sub ebp, 6
sub ebp, 0x39d934
jmp 0x79d998
jmp 0x79d9a1
mov eax, 0x39d934
add eax, ebp
add eax, 0x93
mov ecx, 0x63f
mov edx, 0xe7e937c0
xor byte [eax], dl
inc eax
dec ecx
jne 0x79d9b8
jmp 0x79d9cb
stosb byte es:[edi], al
sub byte [eax - 0x3f3f2f40], 0xa8
ror byte [esp + ebp*8], 0xc0
inc ecx
xor byte [eax + 0x32], ch
jns 0x79da01
inc ecx
xor byte [eax + 0x32], ch
jns 0x79da07
add byte [eax + 0x6004553f], dl
invalid
sar byte [edx - 0x18], 0xc0
rol al, 0x37
aaa
and al, bl
or byte [ebx + 0x41], cl
int3
Function at 0x4144de
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x420044]
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.0040c83f
and dword [ebp - 0x14], 0
cmp dword [0x4225d8], 0
mov dword [ebp - 0x18], eax
jne 0x414591
push 0x41b314
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x414639
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41b308
push ebx
call edi
test eax, eax
je 0x414639
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x41b2f8
push ebx
mov dword [0x4225d8], eax
call edi
push eax
call esi
push 0x41b2e4
push ebx
mov dword [0x4225dc], eax
call edi
push eax
call esi
push 0x41b2c8
push ebx
mov dword [0x4225e0], eax
call edi
push eax
call esi
mov dword [0x4225e8], eax
test eax, eax
je 0x414591
push 0x41b2b0
push ebx
call edi
push eax
call esi
mov dword [0x4225e4], eax
mov eax, dword [0x4225e4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4145ea
cmp dword [0x4225e8], ecx
je 0x4145ea
push eax
call esi
push dword [0x4225e8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4145ea
test ebx, ebx
je 0x4145ea
call edi
test eax, eax
je 0x4145e1
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4145e1
test byte [ebp - 8], 1
jne 0x4145ea
or dword [ebp + 0x10], 0x200000
jmp 0x41461d
mov eax, dword [0x4225dc]
cmp eax, dword [ebp - 0x18]
je 0x41461d
push eax
call esi
test eax, eax
je 0x41461d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41461d
mov eax, dword [0x4225e0]
cmp eax, dword [ebp - 0x18]
je 0x41461d
push eax
call esi
test eax, eax
je 0x41461d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4225d8]
call esi
test eax, eax
je 0x414639
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41463b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a7df
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401000
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x404004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 5
mov eax, 0x20019
jne 0x401049
cmp dword [ebp - 0x110], 0
je 0x40104e
mov eax, 0x20219
test esi, esi
je 0x401080
lea ecx, [ebp - 0x11c]
push ecx
push eax
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 0x11c]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401583
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00401583
mov esp, ebp
pop ebp
ret

Function at 0x4010a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push str.SoftwareMcAfeeSystemCore
push 0x80000002
mov edi, 3
call section..text
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x401137
mov eax, dword [ebp + 0x14]
add eax, eax
cmp byte [ebp + 8], 0
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
je 0x4010e7
lea eax, [ebp - 4]
push eax
push esi
lea ecx, [ebp + 8]
push ecx
push 0
push str.szInstallDir32
jmp 0x4010f7
lea edx, [ebp - 4]
push edx
push esi
lea eax, [ebp + 8]
push eax
push 0
push 0x403168
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x40112f
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40112f
push eax
xor ecx, ecx
push 0x403164
push esi
mov word [esi + eax*2 - 2], cx
call sub.msvcrt.dll_wcsncat
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
push edx
push eax
push esi
call sub.msvcrt.dll_wcsncat
add esp, 0x18
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor eax, eax
test edi, edi
pop edi
sete al
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401b12
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x403468
call fcn.00401e24
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x404678
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x401931
cmp eax, esi
jne 0x401924
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x401934
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40190b
xor esi, esi
inc esi
mov eax, dword [0x404674]
cmp eax, esi
jne 0x401947
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x401982
mov eax, dword [0x404674]
test eax, eax
jne 0x40197c
mov dword [0x404674], esi
push 0x4030c8
push 0x4030bc
call fcn.00401892
pop ecx
pop ecx
test eax, eax
je 0x401982
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x401a4c
mov dword [0x40433c], esi
mov eax, dword [0x404674]
cmp eax, esi
jne 0x4019a6
push 0x4030b8
push 0x4030b0
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x404674], 2
cmp dword [ebp - 0x1c], ebx
jne 0x4019b3
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x40467c], ebx
je 0x4019d4
push 0x40467c
call fcn.00401d54
pop ecx
test eax, eax
je 0x4019d4
push ebx
push 2
push ebx
call dword [0x40467c]
push dword [0x404324]
push dword [0x404328]
push dword [0x404320]
call fcn.004012c0
add esp, 0xc
mov dword [0x404338], eax
cmp dword [0x40432c], ebx
jne 0x401a32
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x40433c], ebx
jne 0x401a40
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x404338]
call fcn.00401e69
ret
call fcn.00401f53
jmp 0x4018e9