joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1bc390
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x70
or eax, 0xffffffff
push ebx
mov ebx, 1
push ebp
push esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x74], eax
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebx
call fcn.001ce838
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x16ef60]
fadd qword [0x16ef78]
call fcn.001d2830
mov ebp, eax
xor esi, esi
xor edi, edi
test ebp, ebp
jle 0x1bc4b0
call fcn.001ce838
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x16ef60]
fmul qword [0x16ef70]
fadd qword [0x16ef68]
call fcn.001d2830
mov ecx, eax
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jle 0x1bc498
lea esp, [esp]
add ecx, ebx
cmp ecx, 0x1a
jne 0x1bc489
xor ecx, ecx
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jg 0x1bc480
add esi, dword [esp + ecx*4 + 0x18]
mov eax, dword [esp + 0x84]
add ecx, 0x61
mov word [eax + edi*2], cx
add edi, ebx
cmp edi, ebp
jl 0x1bc447
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret

Function at 0x1bc550
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x173c20]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push 0x206
xor esi, esi
lea ecx, [esp + 0x12]
xor eax, eax
push esi
push ecx
mov word [esp + 0x18], ax
call fcn.001d0b10
add esp, 0xc
cmp edi, esi
je 0x1bc638
mov eax, 0x16ebb4
mov dword [esp + 4], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x1bc595
sub eax, edx
sar eax, 1
je 0x1bc5bf
push 0x16ebb8
lea edx, [esp + 8]
push 0x16ebb4
push edx
call fcn.001cec8b
add esp, 0xc
jmp 0x1bc5fa
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [fcn.00169234]
push 0x16ebc0
lea ecx, [esp + 0x10]
push 0x104
push ecx
call fcn.001ce73a
push 0x16ebdc
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.001cec8b
add esp, 0x18
mov eax, dword [esp + 4]
cmp eax, esi
je 0x1bc61d
push eax
push 1
push 0x200
push edi
call fcn.001cf251
mov ecx, dword [esp + 0x14]
push ecx
call fcn.001cf012
add esp, 0x14
mov eax, 1
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.001ce72b
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.001ce72b
add esp, 0x214
ret
Function at 0x1bc650
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push 0x16ebe4
push eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
call fcn.001cec8b
add esp, 0xc
test eax, eax
je 0x1bc674
xor eax, eax
pop ecx
ret
mov edx, dword [esp]
push ebx
push ebp
push esi
push edi
push 2
push 0
push edx
call fcn.001cf35d
mov eax, dword [esp + 0x1c]
push eax
call fcn.001cf57f
mov ecx, dword [esp + 0x20]
push 0
push 0
push ecx
mov esi, eax
call fcn.001cf35d
lea ebp, [esi + 0x32]
push ebp
call fcn.001cf63c
mov edx, dword [esp + 0x30]
push edx
push 1
mov edi, eax
push esi
push edi
call fcn.001cef7e
mov eax, dword [esp + 0x40]
push eax
call fcn.001cf012
lea ebx, [edi + esi]
mov eax, 0x32
call fcn.001bc720
mov ecx, dword [esp + 0x4c]
push 0x16ebec
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.001cec8b
add esp, 0x40
test eax, eax
je 0x1bc6f2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
push eax
push 1
push ebp
push edi
call fcn.001cf251
mov ecx, dword [esp + 0x20]
push ecx
call fcn.001cf012
add esp, 0x14
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret

Function at 0x1be340
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x100c
call fcn.001d2fc0
mov eax, dword [0x173c20]
xor eax, esp
mov dword [esp + 0x1008], eax
mov edx, dword [edi]
mov eax, dword [esp + 0x1010]
push ebx
push ebp
mov ebp, dword [0x1693f4]
xor ebx, ebx
push ebx
push 4
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x1c], eax
call ebp
cmp eax, 4
je 0x1be398
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.001ce72b
add esp, 0x100c
ret
cmp dword [esp + 8], ebx
jbe 0x1be3d7
push esi
nop
mov ecx, dword [edi]
push 0
push 0x1000
lea eax, [esp + 0x1c]
push eax
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x1be3d6
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
push eax
push esi
lea ecx, [esp + 0x1c]
push 1
push ecx
call fcn.001cf251
add ebx, esi
add esp, 0x10
cmp ebx, dword [esp + 0xc]
jb 0x1be3a0
pop esi
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
push eax
call fcn.001cf012
mov ecx, dword [esp + 0x1014]
add esp, 4
cmp ebx, dword [esp + 8]
pop ebp
sbb eax, eax
pop ebx
xor ecx, esp
inc eax
call fcn.001ce72b
add esp, 0x100c
ret
Function at 0x1c0000
Capabilities:
Hash data using sha1
Read file on windows

Disassembly:
mov eax, 0x1068
call fcn.001d2fc0
mov eax, dword [0x173c20]
xor eax, esp
mov dword [esp + 0x1064], eax
mov eax, dword [esp + 0x106c]
push ebx
push ebp
push 0x16e980
push eax
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
mov dword [esp + 0x14], ebx
xor ebp, ebp
call fcn.001cec8b
mov eax, dword [esp + 0x14]
add esp, 0xc
cmp eax, ebx
jne 0x1c006b
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
pop ebp
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
pop ebx
mov ecx, dword [esp + 0x1064]
xor ecx, esp
call fcn.001ce72b
add esp, 0x1068
ret
push esi
push 2
push ebx
push eax
call fcn.001cf35d
mov ecx, dword [esp + 0x18]
push ecx
call fcn.001cf57f
mov edx, dword [esp + 0x1c]
push ebx
push ebx
push edx
mov dword [esp + 0x2c], eax
call fcn.001cf35d
mov eax, dword [esp + 0x28]
push eax
push 0x1000
lea ecx, [esp + 0x94]
push 1
push ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], 0x67452301
mov dword [esp + 0x4c], 0xefcdab89
mov dword [esp + 0x50], 0x98badcfe
mov dword [esp + 0x54], 0x10325476
mov dword [esp + 0x58], 0xc3d2e1f0
call fcn.001cef7e
mov esi, eax
add esp, 0x2c
cmp esi, ebx
jbe 0x1c0116
lea edx, [esp + 0x70]
push esi
push edx
lea ebx, [esp + 0x1c]
call fcn.001bfe70
mov eax, dword [esp + 0x14]
push eax
push 0x1000
lea ecx, [esp + 0x80]
push 1
push ecx
add ebp, esi
call fcn.001cef7e
mov esi, eax
add esp, 0x18
test esi, esi
ja 0x1c00e1
xor ebx, ebx
push edi
lea esi, [esp + 0x18]
call fcn.001bff10
mov edx, dword [esp + 0x10]
push edx
call fcn.001cf012
add esp, 8
pop esi
cmp ebp, dword [esp + 0xc]
jb 0x1c0044
mov ecx, dword [esp + 0x106c]
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.001ce72b
add esp, 0x1068
ret

Function at 0x1c1ed0
Capabilities:
Encode data using xor

Disassembly:
test ecx, ecx
jne 0x1c1ed7
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x1c1fb4
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x16dde0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x16dde0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x16dde0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x16dde0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x16dde0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x16dde0]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x16dde0]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x16dde0]
inc ecx
sub edx, 8
sub esi, 1
jne 0x1c1ef0
pop edi
test edx, edx
je 0x1c1fdb
jmp 0x1c1fc0
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x16dde0]
inc ecx
sub edx, 1
jne 0x1c1fc0
not eax
pop esi
ret
Function at 0x1c1fe0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x16dde0]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x16dde0]
mov dword [edx + 8], ecx
ret

Function at 0x1c2030
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x16dde0]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x16dde0]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret
Function at 0x1c3430
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x1c344e
pop edi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x1c3442
cmp dword [edi + 0x7c], ebx
je 0x1c345d
call fcn.001c3810
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.001c31a0
add esp, 0xc
test eax, eax
je 0x1c3484
pop edi
pop ebp
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push esi
push 0x7e
call fcn.001cf63c
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x1c34c2
push 0x4000
call fcn.001cf63c
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
cmp eax, ebx
jne 0x1c34cf
push esi
call fcn.001cfb97
add esp, 4
pop esi
pop edi
pop ebp
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x1c3517
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.001c22f0
test eax, eax
jne 0x1c3517
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [esi + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [esi + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x1c353e
mov cl, byte [edi + 0x39]
mov byte [esi + 0x7d], cl
jmp 0x1c3544
mov dl, byte [edi + 0x3f]
mov byte [esi + 0x7d], dl
movzx eax, byte [esi + 0x6c]
neg eax
sbb eax, eax
and eax, 0xc
lea edx, [esi + 0x6d]
mov dword [esi + 0x79], eax
mov dword [edx], 0x12345678
mov dword [esi + 0x71], 0x23456789
mov dword [esi + 0x75], 0x34567890
cmp ebp, ebx
je 0x1c3581
lea ecx, [ecx]
mov cl, byte [ebp]
cmp cl, bl
je 0x1c3581
call fcn.001c1fe0
add ebp, 1
jne 0x1c3570
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [esi + 0x3c], eax
mov dword [esi + 8], ebx
mov dword [edi + 0x7c], esi
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x401000
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov esi, str.Main
push str.Delete_on_reboot:__s
push esi
call fcn.00401475
add esp, 0xc
push 4
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_MoveFileExA]
test eax, eax
jne 0x401044
push str.MoveFileEx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push esi
call fcn.004016da
add esp, 0xc
xor al, al
jmp 0x401046
mov al, 1
pop esi
pop ebp
ret

Function at 0x401049
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd44
mov eax, dword [0x41a020]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x404]
push edi
push 0x400
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpynA]
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
cmp byte [ebp + eax - 0x405], 0x5c
je 0x40109d
push 0x4121dc
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0xc04]
push str._s.
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0xd44]
push eax
lea eax, [ebp - 0xc04]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4010f9
lea eax, [ebp - 0xc04]
push eax
push str.FindFirstFile___s_
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Main
call fcn.004016da
add esp, 0x10
jmp 0x4011ee
test byte [ebp - 0xd44], 0x14
lea eax, [ebp - 0xd18]
je 0x40116b
push 0x4121fc
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpA]
test eax, eax
je 0x4011bf
push 0x412200
lea eax, [ebp - 0xd18]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpA]
test eax, eax
je 0x4011bf
lea eax, [ebp - 0xd18]
push eax
lea eax, [ebp - 0x404]
push eax
push str._s_s
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.004012d6
lea eax, [ebp - 0x804]
push eax
call fcn.00401049
add esp, 0x18
jmp 0x4011bf
push eax
lea eax, [ebp - 0x404]
push eax
push str._s_s
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.004012d6
add esp, 0x14
lea eax, [ebp - 0x804]
push 0x80
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
lea eax, [ebp - 0x804]
push 1
push eax
call fcn.00401819
pop ecx
pop ecx
test eax, eax
jne 0x4011bf
lea eax, [ebp - 0x804]
push eax
call section..text
pop ecx
lea eax, [ebp - 0xd44]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x4010f9
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
push esi
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
test eax, eax
jne 0x4011ee
push esi
call section..text
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00401b32
leave
ret
Function at 0x4014b6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x85c
mov eax, dword [0x41a020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x858], eax
lea eax, [ebp - 0x854]
push eax
call dword [sym.imp.KERNEL32.DLL_GetLocalTime]
movzx eax, word [ebp - 0x846]
push eax
movzx eax, word [ebp - 0x848]
push eax
movzx eax, word [ebp - 0x84a]
push eax
movzx eax, word [ebp - 0x84c]
push eax
movzx eax, word [ebp - 0x84e]
push eax
movzx eax, word [ebp - 0x852]
push eax
movzx eax, word [ebp - 0x854]
push eax
push str._04d__02d__02d__02d:_02d:_02d._03d
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.004012d6
add esp, 0x28
lea eax, [ebp - 0x844]
test esi, esi
jne 0x40154d
mov esi, 0x400
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpynA]
jmp 0x401560
push esi
push 0
push edi
mov esi, 0x400
push esi
push eax
call fcn.004012f2
add esp, 0x14
cmp dword [ebp + 0xc], 0
mov ebx, dword [sym.imp.KERNEL32.DLL_WriteFile]
push 0x45
pop edi
push 0x49
pop eax
cmove edi, eax
cmp dword [0x41a004], 0xffffffff
je 0x40161c
push 0x3e8
push dword [section..data]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
lea ecx, [ebp - 0x844]
cmp eax, 0x102
push ecx
mov edx, 0x41226d
mov ecx, str._LOG_MUTEX_LOCKED_
cmovne ecx, edx
push ecx
push dword [0x41a008]
push dword [ebp - 0x858]
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push eax
push edi
lea eax, [ebp - 0x44]
push eax
push str._s_t_c_t_d_t_s_t_s_t_s_s_r_n
lea eax, [ebp - 0x444]
push esi
push eax
call fcn.004012d6
add esp, 0x28
push 2
push 0
push 0
push dword [0x41a004]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 0
lea eax, [ebp - 0x85c]
push eax
lea eax, [ebp - 0x444]
push eax
call fcn.004035c0
pop ecx
push eax
lea eax, [ebp - 0x444]
push eax
push dword [0x41a004]
call ebx
push dword [section..data]
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
push str..mailslotAVITrace
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4016cb
lea eax, [ebp - 0x844]
push eax
push dword [ebp - 0x858]
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push eax
push dword [0x41a008]
lea eax, [ebp - 0x44]
push edi
push eax
push str._s__c__s__4d___8s__s
lea eax, [ebp - 0x1d4]
push 0x190
push eax
call fcn.004012d6
inc dword [0x41a00c]
lea eax, [ebp - 0x1d4]
push eax
mov byte [ebp - 0x45], 0
call fcn.004035c0
add esp, 0x28
inc eax
mov dword [0x41a018], eax
lea eax, [ebp - 0x858]
push 0
push eax
push 0x10
push 0x41a00c
push esi
call ebx
push 0
lea eax, [ebp - 0x858]
push eax
push dword [0x41a018]
lea eax, [ebp - 0x1d4]
push eax
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401b32
leave
ret
Function at 0x4017bb
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x41a020]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x41226d
push esi
call fcn.00401475
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
push eax
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.004013d1
lea eax, [ebp - 0x404]
push eax
push str.START___s_
push esi
call fcn.00401475
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
pop esi
call fcn.00401b32
leave
ret

Function at 0x401819
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
test eax, eax
jne 0x401878
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
cmp esi, 2
je 0x401878
cmp esi, 5
jne 0x401850
cmp byte [ebp + 0xc], 0
jne 0x401874
push edi
push dword [ebp + 8]
mov edi, str.Common
push str.Delete___s_
push edi
call fcn.00401475
push 0x41226d
push esi
push edi
call fcn.004016da
add esp, 0x18
pop edi
xor eax, eax
jmp 0x40187b
xor eax, eax
inc eax
pop esi
pop ebp
ret
Function at 0x401914
Capabilities:
Accept command line arguments
Create directory
Delete directory
Get common file path
Get hostname
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
mov eax, dword [0x41a020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x334], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [0x41a008], eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov ebx, 0x104
mov esi, eax
push ebx
lea eax, [ebp - 0x124]
push 0
push eax
call fcn.004026a0
push esi
push str.MCAFEE_FRAMEWORK_LOG_MUTEX__ul
lea eax, [ebp - 0x124]
push ebx
push eax
call fcn.00401b16
add esp, 0x1c
lea eax, [ebp - 0x124]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
mov dword [section..data], eax
cmp eax, 0xffffffff
je 0x401ad2
push edi
mov esi, str._LOGDIR
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov esi, eax
cmp byte [esi], 0
je 0x401a06
push 8
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.00404fef
add esp, 0xc
test eax, eax
je 0x4019bd
inc esi
cmp byte [esi], 0
jne 0x4019a4
cmp byte [esi], 0
je 0x401a06
mov bl, byte [esi + 8]
xor eax, eax
cmp bl, 0x22
push 0x104
sete al
add esi, 8
add eax, esi
mov esi, 0x41a8b0
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcpynA]
push 0x22
pop eax
push 0x20
pop ecx
cmp bl, al
cmovne eax, ecx
push eax
push esi
call fcn.004056d5
mov ebx, 0x104
pop ecx
pop ecx
test eax, eax
je 0x401a34
mov byte [eax], 0
jmp 0x401a34
lea eax, [ebp - 0x228]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
push str.McAfeeLogs
lea eax, [ebp - 0x228]
mov esi, 0x41a8b0
push eax
push str._s_s
push ebx
push esi
call fcn.004012d6
add esp, 0x14
lea eax, [ebp - 0x330]
mov dword [ebp - 0x330], 0x10
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_GetComputerNameA]
lea eax, [ebp - 0x20]
xor edi, edi
push eax
push esi
push str._sFrmInst__s.log
lea eax, [ebp - 0x32c]
push ebx
push eax
call fcn.004012d6
push esi
call fcn.00401402
mov ebx, dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
add esp, 0x18
test eax, eax
je 0x401a7e
push esi
call ebx
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
push 0
push 0x80
push 4
push dword [ebp - 0x334]
lea eax, [ebp - 0x32c]
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
push esi
mov dword [0x41a004], eax
call fcn.00401402
pop ecx
test eax, eax
je 0x401ad1
push dword [0x41a004]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push esi
call ebx
inc edi
cmp edi, 0x64
jge 0x401ae0
jmp 0x401a7e
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00401b32
leave
ret
push 1
call fcn.004056bf
int3
Function at 0x406624
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406787
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4698ec], 0
push esi
jne 0x4067be
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406798
mov dword [ecx*4 + 0x4698e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4698e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc

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

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