joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004b90
Capabilities:
Enumerate services
Query service configuration

Disassembly:
sub esp, 0x270
push ebx
push ebp
mov ebp, dword [esp + 0x27c]
push esi
push edi
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 4]
mov eax, ebx
cmp eax, ebx
je 0x10004bc7
mov esi, eax
mov edi, edx
add eax, 0x210
mov ecx, 0x84
add edx, 0x210
cmp eax, ebx
rep movsd dword es:[edi], dword [esi]
jne 0x10004bad
mov eax, dword [ebp + 8]
xor edi, edi
push 0xf003f
push edi
push edi
mov dword [esp + 0x2c], eax
mov dword [ebp + 8], edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
cmp esi, edi
mov dword [esp + 0x24], esi
jne 0x10004c05
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x270
ret 4
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x58]
push 0x24
push ecx
push 3
push 0x30
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
mov edi, eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov ebp, eax
lea edx, [esp + 0x18]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
push edi
push ebp
push 3
push 0x30
push esi
mov dword [esp + 0x40], ebp
call ebx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], 0
test eax, eax
jbe 0x10004d35
mov ebx, ebp
mov edx, dword [ebx]
push 0xf003f
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, eax
test ebp, ebp
je 0x10004d12
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
push 0x24
push ecx
push ebp
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
mov eax, dword [esp + 0x2c]
mov edx, dword [ebx + 0xc]
mov edi, dword [ebx]
mov dword [esp + 0x27c], eax
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x278], edx
lea edx, [esp + 0x70]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x174]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x288]
push 1
mov edx, dword [ecx + 8]
push edx
call fcn.10005240
mov esi, dword [esp + 0x24]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
inc eax
add ebx, 0x24
cmp eax, ecx
mov dword [esp + 0x1c], eax
jb 0x10004c6c
mov ebp, dword [esp + 0x20]
push ebp
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [esp + 0x284]
mov eax, dword [ecx + 4]
test eax, eax
jne 0x10004d65
pop edi
xor edx, edx
pop esi
pop ebp
mov eax, edx
pop ebx
add esp, 0x270
ret 4
mov ecx, dword [ecx + 8]
pop edi
sub ecx, eax
mov eax, 0x3e0f83e1
imul ecx
sar edx, 7
mov eax, edx
pop esi
shr eax, 0x1f
add edx, eax
pop ebp
mov eax, edx
pop ebx
add esp, 0x270
ret 4
Function at 0x10004d90
Capabilities:
Modify service

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x10004da5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
mov eax, dword [esp + 0x18]
test eax, eax
ja 0x10004db6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x10004dd2
pop edi
pop esi
pop ebp
pop ebx
ret 8
push esi
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebp, eax
test ebp, ebp
jne 0x10004de8
push esi
call ebx
push 2
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x10004e0b
push ebp
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
push esi
call ebx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
mov eax, dword [esp + 0x18]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
push ebp
jne 0x10004e43
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
push edi
call ebx
push esi
call ebx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
push edi
call ebx
push esi
call ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 8

Function at 0x10004e60
Capabilities:
Start service

Disassembly:
sub esp, 0x1c
push ebx
push edi
xor edi, edi
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x10004f05
mov eax, dword [esp + 0x28]
push ebp
push esi
push 0xf01ff
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x10004ef6
mov eax, dword [esp + 0x34]
cmp eax, 4
jne 0x10004ec3
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
mov edi, eax
call ebp
push ebx
call ebp
pop esi
mov eax, edi
pop ebp
pop edi
pop ebx
add esp, 0x1c
ret 8
cmp eax, 1
jne 0x10004ed0
lea ecx, [esp + 0x10]
push ecx
push eax
jmp 0x10004eea
cmp eax, 7
jne 0x10004ede
lea edx, [esp + 0x10]
push edx
push 2
jmp 0x10004eea
cmp eax, 5
jne 0x10004ef3
lea eax, [esp + 0x10]
push eax
push 3
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, eax
push esi
call ebp
push ebx
call ebp
pop esi
mov eax, edi
pop ebp
pop edi
pop ebx
add esp, 0x1c
ret 8
mov eax, edi
pop edi
pop ebx
add esp, 0x1c
ret 8

Function at 0x100056e0
Capabilities:
Create thread

Disassembly:
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
je 0x100056f0
xor eax, eax
pop edi
ret 0xc
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
lea eax, [edi + 8]
push eax
push esi
push edi
push 0x10005630
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
or esi, 4
add esp, 0x18
neg esi
sbb esi, esi
xor ecx, ecx
neg esi
test eax, eax
mov dword [edi + 0xc], esi
mov dword [edi + 4], eax
setne cl
pop esi
mov eax, ecx
pop edi
ret 0xc
Function at 0x10005730
Capabilities:
Resume thread

Disassembly:
mov edx, dword [ecx + 4]
or eax, 0xffffffff
push esi
push edi
test edx, edx
je 0x1000575d
mov eax, dword [ecx + 0xc]
lea edi, [ecx + 0xc]
test eax, eax
jle 0x1000575d
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000575b
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, esi
pop edi
pop esi
ret
Function at 0x405dcd
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a94], 0
push esi
jne 0x405e04
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 0x405dde
mov dword [ecx*4 + 0x422a90], eax
inc ecx
cmp ecx, 0x100
jl 0x405dd9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e35
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 + 0x422a90]
xor eax, esi
inc ecx
dec edx
jne 0x405e17
pop edi
not eax
pop esi
ret 0xc

Function at 0x438860
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x22000]
push edi
or ebp, 0xffffffff
jmp 0x438882
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x438889
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x438878
mov eax, 1
add ebx, ebx
jne 0x43889b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x438890
jne 0x4388ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x438890
xor ecx, ecx
sub eax, 3
jb 0x4388c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x438932
mov ebp, eax
add ebx, ebx
jne 0x4388cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4388d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4388fc
inc ecx
add ebx, ebx
jne 0x4388e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4388dd
jne 0x4388f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4388dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43891c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43890d
jmp 0x43887e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43891c
add edi, ecx
jmp 0x43887e
pop esi
mov edi, esi
mov ecx, 0xe0e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43893a
cmp byte [edi], 0xa
jne 0x43893a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x43893f
lea edi, [esi + 0x36000]
mov eax, dword [edi]
or eax, eax
je 0x4389b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3820c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x382ac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43896c
mov ecx, edi
jns 0x43899b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x382b0]
or eax, eax
je 0x4389b1
mov dword [ebx], eax
add ebx, 4
jmp 0x438989
call dword [esi + 0x382b4]
popal
jmp 0x41be59
Function at 0x401150
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x128
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x140]
test edi, edi
jne 0x401172
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x128
ret
lea eax, [esp + 0x34]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__stat]
mov esi, dword [sym.imp.MSVCRT.dll_fopen]
lea eax, [esp + 0x3c]
push 0x403510
push eax
call esi
mov ecx, dword [esp + 0x14c]
mov ebx, eax
push 0
push ecx
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
mov edx, dword [esp + 0x160]
push 0x40350c
push edx
call esi
push edi
mov ebp, eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 0x28
test esi, esi
jne 0x4011e5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret
push ebx
push 1
push edi
push esi
call dword [sym.imp.MSVCRT.dll_fread]
push ebp
push 1
push edi
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0x28
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret

Function at 0x401220
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
mov esi, dword [esp + 0x60]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
push 0
push esi
mov dword [esp + 0x40], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401272
push 5
push eax
push eax
push esi
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x54
ret
Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40601c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x406028
push 0x406024
push 0x406020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x406028]
push dword [0x406024]
push dword [0x406020]
mov dword [0x406014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x40129c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x84], 0
call fcn.004019a4
mov edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, edi
or al, 0x40
push eax
lea eax, [0x4046d1]
lea edx, [fcn.00401a14]
sub eax, edx
push eax
push fcn.00401a14
call sub.KERNEL32.dll_VirtualProtect
cmp dword [ebp - 4], 0
je 0x40132e
push edi
call fcn.00401894
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.004018e3
mov eax, edi
add eax, 0x1e200
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
push eax
mov esi, dword [ebp - 0x88]
mov ecx, esi
mov ebx, edi
sar ebx, cl
sub esi, ebx
push esi
lea esi, [0x4060e4]
xor esi, edi
push esi
call fcn.00401a14
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4019a4
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push edi
and dword [ebp - 0x120], 0
xor edi, edi
mov dword [ebp - 0x11c], 0x14
mov byte [ebp - 0x104], 0
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x118]
push eax
push 1
push 1
lea eax, [ebp - 0x104]
push eax
call sub.CRYPT32.DLL_CryptBinaryToStringW
push 0
push 0
call sub.SHLWAPI.DLL_PathAppendA
movzx eax, word [ebp - 0x118]
mov edi, eax
sub edi, 0x41
mov eax, edi
pop edi
leave
ret
Function at 0x437490
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4374e2
test eax, edx
je 0x4374e5
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x4374a5
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4374cb
add ecx, 4
js 0x4374bb
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4374c8
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x4374f1
test edx, edx
jne 0x437498
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x401396
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
push esi
mov esi, ecx
cmp dword [0x40b0c4], edx
jne 0x4013d5
push ebx
push edi
push 8
mov ecx, edx
pop edi
mov ebx, ecx
and bl, 1
movzx ebx, bl
neg ebx
sbb ebx, ebx
and ebx, 0xedb88320
shr ecx, 1
xor ecx, ebx
dec edi
jne 0x4013aa
mov dword [edx*4 + 0x40b0c0], ecx
inc edx
cmp edx, 0x100
jl 0x4013a5
pop edi
pop ebx
not esi
jmp 0x4013f3
movzx ecx, byte [eax]
dec dword [esp + 8]
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x40b0c0]
inc eax
cmp dword [esp + 8], 0
ja 0x4013d9
mov eax, esi
not eax
pop esi
ret 4

Function at 0x40150b
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x793050]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4015a1
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x40155d
cmp dword [ebp + 0x10], ebx
jne 0x401595
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.0040150b
test eax, eax
jne 0x40156f
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x401544
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
pop eax
call fcn.00406f79
cmp eax, ebx
je 0x4015a8
push ebx
push dword [0x793050]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x4015a1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x793050], ebx
jne 0x40159e
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x40159e
jmp 0x4015a1
Function at 0x403b26
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [0x40d110], ebx
jne 0x403b65
mov esi, dword [ebp + 0xc]
push ebx
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 8]
push dword [0x40b08c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403b5e
cmp dword [ebp - 8], esi
je 0x403c95
xor eax, eax
jmp 0x403c98
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
jbe 0x403c95
mov edi, 0x792bc0
mov esi, dword [0x40d10c]
push dword [esi + 0x10]
mov eax, dword [esi + 0x18]
push dword [esi + 0xc]
dec eax
cdq
push edx
push eax
call fcn.00407b50
mov ecx, dword [0x40d118]
sub ecx, eax
mov eax, dword [0x40d11c]
sbb eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x20]
cmp dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [esi + 0x1c]
jg 0x403c0f
jl 0x403bb5
cmp dword [ebp - 0x10], ecx
jae 0x403c0f
mov esi, dword [ebp + 0xc]
xor ebx, ebx
sub esi, dword [ebp - 4]
push ebx
pop edx
sbb edx, ebx
sub ecx, dword [ebp - 0x10]
sbb eax, dword [ebp - 0xc]
cmp eax, edx
jg 0x403bd3
jl 0x403bd1
cmp ecx, esi
jae 0x403bd3
mov esi, ecx
xor ebx, ebx
push ebx
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 8]
push dword [0x40b08c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403b5e
cmp dword [ebp - 8], esi
jne 0x403b5e
add dword [ebp - 4], esi
add dword [0x40d118], esi
adc dword [0x40d11c], ebx
add dword [ebp + 8], esi
jmp 0x403c89
mov eax, dword [esi]
push dword [0x40b08c]
mov dword [0x40d10c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x79bc00
push edi
call fcn.00406a77
push 0x5c
push edi
call fcn.00407b20
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
jne 0x403c3f
mov esi, edi
lea eax, [esi + 1]
jmp 0x403c47
mov esi, eax
inc eax
push 0x2e
push eax
call fcn.00407a60
pop ecx
pop ecx
cmp eax, ebx
jne 0x403c44
mov eax, dword [0x40d10c]
push dword [eax + 0x18]
push str.._u.dat
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 3
push 0x80000000
push edi
call fcn.00406737
push ebx
push ebx
push 0x24
push eax
mov dword [0x40b08c], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jb 0x403b76
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x406235
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x78f5f0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x78f5f0], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x406270
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4062f3
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push edi
push esi
call fcn.00406711
mov edi, eax
cmp edi, 0xffffffff
je 0x40632f
test byte [esp + 8], 1
push esi
je 0x406318
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x406320
xor eax, eax
inc eax
jmp 0x406331
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40630f
test byte [esp + 8], 4
jne 0x40632f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
ret 4
Function at 0x406335
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, ebx
and eax, 4
push esi
mov dword [ebp - 4], eax
call fcn.0040661e
mov dword [ebp - 0xc], eax
test bl, 8
je 0x406374
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x793028], eax
jmp 0x40654c
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x40638e
test eax, eax
je 0x4064cf
test bl, 2
je 0x4064cf
push esi
mov edi, 0x790378
push edi
call fcn.00406a77
cmp dword [ebp + 8], 0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x4063b0
push str..
push edi
call ebx
jmp 0x4063b5
call fcn.00406590
cmp byte [esi], 0
jne 0x4063c3
cmp byte [0x790378], 0x5c
jne 0x4063cb
push 0x409714
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
lea eax, [ebp - 0x150]
push eax
push edi
add ebx, esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x4064c5
lea edi, [ebp - 0x124]
push 0x3f
mov eax, edi
call fcn.00406578
cmp byte [eax], 0
je 0x40640d
cmp byte [ebp - 0x20], 0
je 0x40640d
lea edi, [ebp - 0x20]
cmp byte [edi], 0x2e
jne 0x406427
mov al, byte [edi + 1]
test al, al
je 0x4064a4
cmp al, 0x2e
jne 0x406427
cmp byte [edi + 2], 0
je 0x4064a4
push edi
push ebx
call fcn.00406a77
test byte [ebp - 0x150], 0x10
je 0x40644c
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4064a4
push dword [ebp + 0xc]
push esi
call fcn.00406335
jmp 0x4064a4
push esi
push str.Delete:_DeleteFile___s__
call fcn.00406f22
pop ecx
pop ecx
push dword [ebp - 4]
call fcn.004062f3
push esi
test eax, eax
jne 0x40649d
cmp dword [ebp - 4], eax
je 0x406489
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.00406f22
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.00405d24
push 0
push esi
call fcn.00406937
jmp 0x4064a4
push str.Delete:_DeleteFile_failed___s__
call fcn.00406f22
inc dword [0x793028]
pop ecx
pop ecx
jmp 0x4064a4
push 0xfffffffffffffff2
call fcn.00405d24
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4063f0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4064cf
mov byte [ebx - 1], 0
xor edi, edi
cmp dword [ebp + 8], edi
je 0x40654c
push esi
cmp dword [ebp - 0xc], edi
jne 0x4064e3
push str.RMDir:_RemoveDirectory_invalid_input___s__
jmp 0x406536
call fcn.00406f52
test eax, eax
je 0x40654c
call fcn.00406553
push esi
push str.RMDir:_RemoveDirectory___s__
call fcn.00406f22
mov eax, dword [ebp - 4]
pop ecx
pop ecx
or eax, 1
push eax
call fcn.004062f3
push esi
test eax, eax
jne 0x406545
cmp dword [ebp - 4], edi
je 0x406531
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.00406f22
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.00405d24
push edi
push esi
call fcn.00406937
jmp 0x40654c
push str.RMDir:_RemoveDirectory_failed___s__
call fcn.00406f22
inc dword [0x793028]
pop ecx
pop ecx
jmp 0x40654c
push 0xffffffffffffffe5
call fcn.00405d24
pop edi
pop esi
pop ebx
leave
ret 8