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

Disassembly:
push 0xfecfcae8
dec dword [ebx - 0x2174e78d]
mov dword [esp + 0x30], esi
test esi, esi
mov dword [esp + 0x1c], ebx
jle 0x48cdb5
mov edi, ebx
mov ecx, dword [esp + 0x14]
sub edi, esi
push 0
neg edi
sbb edi, edi
and edi, ebx
push edi
call fcn.0048993c
mov ebp, eax
test ebp, ebp
je 0x48cdb5
mov ecx, dword [esp + 0x14]
push edi
call fcn.0048a16c
cmp eax, 1
jne 0x48cb30
dec ebx
mov dword [esp + 0x1c], ebx
jmp 0x48cdad
mov eax, dword [ebp]
push 0
push eax
push 0x3ea
call fcn.0048ef0c
mov ebx, eax
test ebx, ebx
je 0x48ced5
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x48ced5
push 1
call eax
test eax, eax
mov dword [esp + 0x24], eax
je 0x48ced5
lea esi, [ebp + 0x18]
push esi
call fcn.0047a4fc
add esi, eax
push esi
call fcn.0047a4fc
add esp, 8
lea ecx, [esp + 0x90]
add esi, eax
push ecx
push ebp
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x50], esi
mov ecx, ebp
add esi, 4
invalid
not ch

Function at 0x48cd7c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test ch, ah
add byte [eax], al
add byte [ebx + 0x5748244c], cl

Function at 0x495354
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b3058
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [0x4b5604]
push 0
lea ecx, [esp + 0x20]
call 0x4e106e
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00494cf4
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call 0x4e0f9c
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
Function at 0x4954d4
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b3078
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call 0x4e106e
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00494cf4
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call 0x4e0f9c
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x4b5604]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x495598
cmp dword [esp + 0x40], 1
jne 0x495596
cmp ecx, eax
jge 0x495598
mov eax, ecx
cmp eax, 0xc8
jge 0x4955a4
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00495354
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x4b5600]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call 0x4e10e0
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x498fac
Capabilities:
Access peb ldr_data

Disassembly:
push edx
call ebx
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call 0x4dd17d
pop edi
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0x10
push eax
call ebx
mov ecx, dword [esp + 0x24]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret

Function at 0x49f1e4
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x92bb28]
xor edx, edx
cmp eax, edx
jne 0x49f20a
xor eax, eax
mov byte [eax + 0x92ba28], al
inc eax
cmp eax, 0x100
jl 0x49f1f2
mov dword [0x92bb28], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x92ba28
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x49f29b
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x49f26e
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x49f23c
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x49f2a4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]

Function at 0x4a1a44
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4b1958
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x44]
mov edx, dword [edi]
add edx, 0x18
mov eax, edx
mov dword [edi], edx
push eax
call fcn.00481614
mov ebx, dword [edi]
add ebx, eax
mov eax, ebx
mov dword [edi], ebx
push eax
call fcn.00481614
mov ecx, dword [edi]
add ecx, eax
mov eax, ecx
mov dword [edi], ecx
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
lea esi, [eax + 0xc]
mov eax, dword [0x92bb70]
push esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], eax
mov dword [edi], esi
call fcn.00481614
mov edx, dword [edi]
mov ebp, dword [esp + 0x58]
add eax, 4
add esp, 0xc
add edx, eax
mov eax, edx
mov dword [edi], edx
test ebp, ebp
mov dword [esp + 0x18], eax
jne 0x4a1ade
mov ecx, dword [esp + 0x40]
test ecx, ecx
jne 0x4a1ad8
add eax, 4
mov dword [esp + 0x18], eax
mov dword [eax], 0
mov ebx, dword [edi]
add ebx, 0x14
mov dword [edi], ebx
mov ebx, dword [esp + 0x48]
mov edx, dword [ebx]
dec edx
mov dword [ebx], edx
mov ecx, dword [0x92bb70]
inc ecx
mov dword [0x92bb70], ecx
mov ecx, dword [0x91ac60]
mov dword [esp + 0x44], ecx
test ebp, ebp
mov dword [esp + 0x38], 0
jne 0x4a1ba7
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4a1ba7
test byte [esp + 0x14], 1
Function at 0x4a85f8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [esp + 0x28], esi
movsx edi, word [ecx]
movsx ebx, word [eax]
dec edx
add eax, 0x80
add ecx, 0x80
mov dword [esp + 0x38], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x58], esi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x34], 0
mov dword [esp + 0x64], edx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], ecx
Function at 0x4aa394
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x4aa52c
cmp ebp, ebx
jle 0x4aa52c
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x4aa3f2
dec eax
or eax, 0xfffffff8
inc eax
je 0x4aa3f9
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, 0x80000001
jns 0x4aa408
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x4aa40f
inc edi
mov dword [esp + 0x10], edi
push 0x18
call 0x505b7a
add esp, 4
cmp eax, ebx
je 0x4aa430
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call 0x505b7a
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
sal dword [ebx], 1
rol cl, 0xe9
add cl, byte [ecx - 0x3b7cef85]
add al, 0xf3
stosd dword es:[edi], eax
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x4043da
Capabilities:
Contain obfuscated stackstrings
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
push ebx
push esi
push edi
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x404400
jmp 0x404516
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0xffffffff
jne 0x404420
jmp 0x404516
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov al, byte [ebp - 4]
mov byte [ebp - 0x1c], al
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0040894e
add esp, 4
mov dword [0x4150a0], 0
mov dword [ebp - 0x420], 0x646c6f47
mov dword [ebp - 0x41c], 0x6f736e65
mov byte [ebp - 0x418], 0x66
mov dword [ebp - 0x20], 0
jmp 0x40446d
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 9
jge 0x40448d
mov eax, dword [ebp - 0x20]
movsx eax, byte [eax + ebp - 0x420]
xor al, byte [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov byte [ecx + ebp - 0x420], al
jmp 0x40446a
mov al, byte [ebp - 0x1c]
mov byte [ebp - 0x417], al
push 0xa
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll__lwrite]
push 0x400
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll__lread]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4044f5
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.004084f1
add esp, 8
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll__lwrite]
jmp 0x4044a9
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40477c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
nop
nop
leave
add esp, 4
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push esi
push edx
push ecx
push ebx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
jne 0x404855
mov dword [ebp - 0x14], 0
jmp 0x4047e0
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x1e
jge 0x404855
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
cmp dword [eax*4 + 0x4150a4], ecx
jne 0x404853
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx*4 + 0x4151b2]
cmp dword [eax*4 + 0x41513a], ecx
jb 0x404842
mov eax, dword [ebp - 0xc]
cmp dword [0x4150a0], eax
je 0x404830
mov eax, dword [ebp - 0x14]
mov al, byte [eax + 0x41511c]
push eax
call fcn.0040894e
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [0x4150a0], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.004084a5
add esp, 8
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
add dword [ecx*4 + 0x41513a], eax
jmp 0x404855
jmp 0x4047dd
pop ebx
pop ecx
pop edx
pop esi
pop edi
mov eax, dword [ebp - 0x10]
leave
ret 0x14

Function at 0x404866
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
nop
leave
add esp, 4
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push esi
push edx
push ecx
push ebx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
jmp 0x4048ae
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x1e
jge 0x404903
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
cmp dword [eax*4 + 0x4150a4], ecx
jne 0x404901
mov eax, dword [ebp - 8]
cmp dword [0x4150a0], eax
je 0x4048e8
mov eax, dword [ebp - 0x14]
mov al, byte [eax + 0x41511c]
push eax
call fcn.0040894e
add esp, 4
mov eax, dword [ebp - 8]
mov dword [0x4150a0], eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.004084f1
add esp, 8
mov dword [ebp - 0xc], 1
jmp 0x404903
jmp 0x4048ab
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0
je 0x404931
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.004084a5
add esp, 8
pop ebx
pop ecx
pop edx
pop esi
pop edi
mov eax, dword [ebp - 0x10]
leave
ret 0x14
Function at 0x408585
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 8], 0xffffffff
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 4], eax
push 0
push 0
push 0x1e
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0xc], 0
jmp 0x4085c4
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 3
jge 0x40869a
push 0
lea eax, [ebp - 0x14]
push eax
push 0xa
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
mov al, byte [ebp - 0x20]
cmp eax, 0x54
jne 0x408695
xor eax, eax
mov al, byte [ebp - 0x1f]
cmp eax, 0x44
je 0x408614
xor eax, eax
mov al, byte [ebp - 0x1f]
cmp eax, 0x64
je 0x408614
xor eax, eax
mov al, byte [ebp - 0x1f]
cmp eax, 0x53
jne 0x408695
mov al, byte [ebp - 0x17]
mov ecx, dword [ebp + 0x10]
mov byte [ecx], al
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
push eax
call fcn.0040894e
add esp, 4
xor eax, eax
mov al, byte [ebp - 0x1f]
cmp eax, 0x64
jne 0x408667
mov dword [0x4152d2], 1
mov dword [ebp - 0x10], 0
jmp 0x40864a
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 7
jge 0x408665
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cl, byte [eax + ebp - 0x1e]
xor cl, byte [ebp - 0x17]
mov eax, dword [ebp - 0x10]
mov byte [eax + ebp - 0x1e], cl
jmp 0x408647
jmp 0x408671
mov dword [0x4152d2], 0
mov eax, dword [ebp - 0x1e]
xor eax, 0x19611225
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1a]
xor eax, 0x198931
and eax, 0xffffff
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx]
mov dword [ebp - 8], eax
jmp 0x40869a
jmp 0x4085c1
push 0
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 8]
jmp 0x4086b1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4087db
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 4], 0xffffffff
push 0
lea eax, [ebp - 0xc]
push eax
push 0xa
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 8], 0
jmp 0x40880d
inc dword [ebp - 8]
cmp dword [ebp - 8], 9
jge 0x408828
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cl, byte [eax + ebp - 0x18]
xor cl, byte [ebp - 0xf]
mov eax, dword [ebp - 8]
mov byte [eax + ebp - 0x18], cl
jmp 0x40880a
cmp dword [ebp - 0x18], 0x646c6f47
jne 0x408872
cmp dword [ebp - 0x14], 0x6f736e65
jne 0x408872
xor eax, eax
mov al, byte [ebp - 0x10]
cmp eax, 0x66
jne 0x408872
mov al, byte [ebp - 0xf]
mov ecx, dword [ebp + 0x10]
mov byte [ecx], al
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
push eax
call fcn.0040894e
add esp, 4
cmp dword [ebp + 0xc], 0
je 0x408869
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov dword [ebp - 4], 0xa
jmp 0x408882
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 4]
jmp 0x408887
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408c1e
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
nop
leave
add esp, 4
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push esi
push edx
push ecx
push ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call fcn.004082a6
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.0040832e
add esp, 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.00408e50
add esp, 8
cmp eax, 0xffffffff
je 0x408c83
mov dword [ebp - 0x14], 1
jmp 0x408c8a
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 0xc], 2
jne 0x408cba
cmp dword [ebp - 8], 0
je 0x408cba
cmp dword [ebp - 0x14], 0
je 0x408cba
push 0x415638
mov eax, dword [ebp - 4]
push eax
call fcn.00408ccb
add esp, 8
pop ebx
pop ecx
pop edx
pop esi
pop edi
mov eax, dword [ebp - 8]
leave
ret 4

Function at 0x408e9e
Capabilities:
Contain obfuscated stackstrings
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
push edi
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 4], eax
push 2
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jne 0x408f73
cmp dword [ebp - 8], 0
jne 0x408f73
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov al, byte [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov al, byte [eax]
push eax
call fcn.0040894e
add esp, 4
mov dword [ebp - 0x41c], 0x646c6f47
mov dword [ebp - 0x418], 0x6f736e65
mov byte [ebp - 0x414], 0x66
mov dword [ebp - 0x1c], 0
jmp 0x408f2b
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 9
jge 0x408f4d
mov eax, dword [ebp - 0x1c]
movsx eax, byte [eax + ebp - 0x41c]
mov ecx, dword [ebp + 0xc]
xor al, byte [ecx]
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + ebp - 0x41c], al
jmp 0x408f28
mov eax, dword [ebp + 0xc]
mov al, byte [eax]
mov byte [ebp - 0x413], al
push 0
lea eax, [ebp - 0x1c]
push eax
push 0xa
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x408f85
push 0
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411405
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
mov byte [eax], 0
mov word [ebp - 8], 0
mov byte [ebp - 0xc], 0
jmp 0x411429
mov cx, word [ebp - 8]
add cx, 1
mov word [ebp - 8], cx
mov edx, dword [ebp - 8]
and edx, 0xffff
cmp edx, 8
jge 0x41148c
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov dx, word [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004114d8
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x41145e
mov eax, dword [ebp - 0x10]
jmp 0x4114d4
mov ecx, dword [ebp + 0x14]
xor edx, edx
mov dl, byte [ecx]
shl edx, 1
mov eax, dword [ebp - 4]
and eax, 0xff
or edx, eax
mov ecx, dword [ebp + 0x14]
mov byte [ecx], dl
mov edx, dword [ebp - 4]
and edx, 0xff
and edx, 1
mov al, byte [ebp - 0xc]
xor al, dl
mov byte [ebp - 0xc], al
jmp 0x41141d
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov ax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004114d8
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4114b3
mov eax, dword [ebp - 0x10]
jmp 0x4114d4
mov edx, dword [ebp - 4]
and edx, 0xff
and edx, 1
mov eax, dword [ebp - 0xc]
and eax, 0xff
cmp edx, eax
je 0x4114d2
mov eax, 9
jmp 0x4114d4
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x41285f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push es
mov ax, 0x101f
mov es, ax
xor eax, eax
mov esi, eax
mov ecx, 0x8000
xor al, byte es:[esi]
inc esi
loop 0x412877
pop es
mov byte [ebp - 4], al
movzx eax, byte [ebp - 4]
test eax, eax
jne 0x41288d
mov byte [ebp - 4], 0x55
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 4]
mov byte [eax], cl
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10002260
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
mov esi, ecx
lea eax, [esi + 8]
xor ebx, ebx
cmp dword [eax + 0x14], 8
jb 0x10002271
mov eax, dword [eax]
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
cmp eax, ebx
je 0x100022b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10002297
mov al, 1
mov byte [esi + 0x24], al
pop esi
pop ebx
ret
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], ebx
mov byte [esi + 0x24], bl
pop esi
mov al, bl
pop ebx
ret

Function at 0x100022f0
Capabilities:
Check mutex on windows

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateMutexW]
push edi
cmp dword [esi + 0x1c], 8
jb 0x10002303
mov eax, dword [esi + 8]
jmp 0x10002306
lea eax, [esi + 8]
push eax
push 1
push 0
call ebx
mov dword [esi + 4], eax
test eax, eax
jne 0x10002329
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x10002329
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100022f8
cmp dword [esi + 4], 0
je 0x10002381
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1000234f
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov bl, 1
mov ecx, esi
mov byte [esi + 0x24], bl
call edx
pop edi
mov al, bl
pop ebx
ret
mov eax, dword [esi + 4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10002381
mov ecx, dword [esi + 4]
push ecx
mov bl, 1
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, bl
mov dword [esi + 4], 0
pop ebx
ret
pop edi
xor al, al
pop ebx
ret

Function at 0x100066c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 3
mov edi, eax
push 0x40000000
push edi
mov dword [esi + 8], ebx
mov word [esi + 0xc], bx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x10006723
push ebx
push 0x80
push 1
push ebx
push 3
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
lea ecx, [ebp - 8]
push ecx
push 2
lea edx, [ebp - 4]
push edx
push eax
mov dword [esi], eax
mov dword [ebp - 4], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 8
call fcn.100b33f2
add esp, 4
cmp eax, ebx
je 0x1000673a
mov dword [eax], ebx
mov byte [eax + 4], bl
mov edi, eax
jmp 0x1000673c
xor edi, edi
mov dword [esi + 4], edi
cmp dword [edi], ebx
jne 0x10006755
push str.Local5071F542_DF26_4e46_810E_74570ED35255
push 1
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov dword [edi], eax
pop edi
mov eax, esi
pop ebx
mov esp, ebp
pop ebp
ret