joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fca00
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
mov dword [esi + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
xor edi, edi
test ebx, ebx
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
je 0x4fca3a
mov dword [esi + 0x28], ebx
jmp 0x4fca52
lea edx, [esi + 0x28]
push edx
push 0
push esi
push 0x4fc9c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
mov eax, dword [esp + 0x18]
dec eax
je 0x4fca60
dec eax
jne 0x4fca69
push 1
jmp 0x4fca62
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test ebx, ebx
jne 0x4fca78
test edi, edi
je 0x4fca78
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
ret 0x10

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

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push edi
mov edi, ecx
mov byte [eax], 0
mov eax, dword [edi]
xor esi, esi
test eax, eax
mov dword [esp + 8], edi
je 0x4fdf8e
call fcn.004fdd50
mov eax, dword [edi]
test eax, eax
je 0x4fdea1
mov byte [eax + 0x18], 0
mov eax, dword [eax]
test eax, eax
jne 0x4fde97
push ebx
push ebp
mov ecx, dword [edi]
test ecx, ecx
je 0x4fdf8c
lea ecx, [ecx]
mov al, byte [ecx + 0x18]
test al, al
jne 0x4fdedf
test esi, esi
je 0x4fdedd
fild dword [edi + 0x78]
fild dword [ecx + 0x14]
fild dword [ecx + 0x10]
fdiv st(2)
fdivp st(1)
fild dword [esi + 0x14]
fild dword [esi + 0x10]
fdiv st(3)
fdivp st(1)
fcompp
fnstsw ax
fstp st(0)
test ah, 0x41
jne 0x4fdedf
mov esi, ecx
mov ecx, dword [ecx]
test ecx, ecx
jne 0x4fdeb0
test esi, esi
je 0x4fdf8c
mov eax, dword [esi + 0x34]
test eax, eax
jne 0x4fdf52
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
lea ebp, [esi + 0x3c]
push ebp
lea ecx, [esi + 0x38]
push ecx
push edx
push eax
call dword [esi + 4]
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4fdf29
lea edi, [esi + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
mov byte [esi + 0x1a], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [esp + 0x10]
test ebx, ebx
mov dword [esi + 0x34], ebx
je 0x4fdf40
mov ecx, dword [esp + 0x18]
mov byte [ecx], 1
mov edx, dword [edi + 0xa0]
sub dword [ebp], edx
mov eax, dword [esi + 0x34]
test eax, eax
jne 0x4fdf52
mov byte [esi + 0x18], 1
xor esi, esi
jmp 0x4fdea3
inc dword [esi + 0x14]
mov eax, dword [edi]
test eax, eax
je 0x4fdf73
mov ecx, dword [edi + 0x74]
movsx ecx, byte [ecx + edi + 0x10]
cmp dword [eax + 0x44], ecx
je 0x4fdf70
mov eax, dword [eax]
test eax, eax
jne 0x4fdf63
jmp 0x4fdf73
dec dword [eax + 0x14]
mov edx, dword [edi + 0x74]
mov al, byte [esi + 0x44]
mov byte [edx + edi + 0x10], al
mov eax, dword [edi + 0x74]
inc eax
cdq
mov ecx, 0x64
idiv ecx
mov dword [edi + 0x74], edx
pop ebp
pop ebx
pop edi
mov eax, esi
pop esi
pop ecx
ret 4
Function at 0x505850
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov ebx, eax
mov eax, dword [esp + 0x10]
cmp eax, 3
mov ecx, 0x9e3779b9
push edi
mov ebp, eax
mov edi, ecx
mov esi, edx
jb 0x5058f1
mov eax, 0xaaaaaaab
mul ebp
shr edx, 1
add ecx, dword [ebx + 4]
add esi, dword [ebx + 8]
mov eax, dword [ebx]
sub eax, esi
sub eax, ecx
add eax, edi
sub ecx, esi
mov edi, esi
shr edi, 0xd
xor eax, edi
sub ecx, eax
mov edi, eax
shl edi, 8
xor ecx, edi
sub esi, ecx
sub esi, eax
mov edi, ecx
shr edi, 0xd
xor esi, edi
sub eax, esi
sub eax, ecx
mov edi, esi
shr edi, 0xc
xor eax, edi
sub ecx, esi
sub ecx, eax
mov edi, eax
shl edi, 0x10
xor ecx, edi
sub esi, ecx
sub esi, eax
mov edi, ecx
shr edi, 5
xor esi, edi
sub eax, esi
sub eax, ecx
mov edi, esi
shr edi, 3
xor eax, edi
sub ecx, esi
mov edi, eax
shl eax, 0xa
sub ecx, edi
xor ecx, eax
sub esi, ecx
mov eax, ecx
sub esi, edi
shr eax, 0xf
xor esi, eax
add ebx, 0xc
sub ebp, 3
dec edx
jne 0x505877
mov eax, dword [esp + 0x14]
add esi, eax
dec ebp
je 0x5058fc
dec ebp
jne 0x5058fe
add ecx, dword [ebx + 4]
add edi, dword [ebx]
sub edi, esi
sub edi, ecx
sub ecx, esi
mov edx, esi
shr edx, 0xd
xor edi, edx
sub ecx, edi
mov eax, edi
shl eax, 8
xor ecx, eax
sub esi, ecx
sub esi, edi
mov edx, ecx
shr edx, 0xd
xor esi, edx
sub edi, esi
sub edi, ecx
mov eax, esi
shr eax, 0xc
xor edi, eax
sub ecx, esi
sub ecx, edi
mov edx, edi
shl edx, 0x10
xor ecx, edx
sub esi, ecx
mov eax, ecx
sub esi, edi
shr eax, 5
xor esi, eax
mov eax, esi
sub edi, eax
sub edi, ecx
mov edx, eax
shr edx, 3
xor edi, edx
sub ecx, eax
mov edx, edi
sub ecx, edi
shl edx, 0xa
xor ecx, edx
sub eax, ecx
sub eax, edi
pop edi
pop esi
shr ecx, 0xf
pop ebp
xor eax, ecx
pop ebx
ret
Function at 0x505e20
Capabilities:
Enumerate pe sections

Disassembly:
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x505f3d
push ebx
mov ebx, dword [edi + 0x20]
push ebp
mov ebp, dword [esp + 0x18]
push esi
push ebx
mov edx, 0x12311998
mov eax, ebp
call fcn.00505850
and eax, dword [edi + 0x28]
mov ecx, dword [edi + 0x30]
mov esi, dword [ecx + eax*8]
add esp, 4
test esi, esi
je 0x505f3a
xor eax, eax
test ebx, ebx
lea ecx, [esi + 0x14]
jbe 0x505e71
mov edx, dword [ecx]
add ecx, 4
cmp edx, dword [ebp + eax*4]
jne 0x505ec6
inc eax
cmp eax, ebx
jb 0x505e61
cmp dword [edi + 0x34], esi
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
jne 0x505e7f
mov dword [edi + 0x34], eax
cmp dword [edi + 0x38], esi
jne 0x505e87
mov dword [edi + 0x38], ecx
test eax, eax
je 0x505e8e
mov dword [eax + 0xc], ecx
test ecx, ecx
je 0x505e95
mov dword [ecx + 8], eax
mov eax, dword [esi]
test eax, eax
je 0x505ea1
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x505eac
mov edx, dword [esi]
mov dword [eax], edx
mov ecx, dword [edi + 0x18]
test ecx, ecx
mov eax, dword [esi + 0x10]
mov ebx, dword [esp + 0x14]
jne 0x505ed1
push eax
push ebx
call fcn.004ff850
add esp, 8
jmp 0x505ef3
mov esi, dword [esi]
test esi, esi
jne 0x505e58
pop esi
pop ebp
pop ebx
pop edi
ret
mov cx, word [eax]
movzx edx, word [eax + 4]
neg cx
sbb ecx, ecx
and ecx, 3
inc ecx
imul ecx, edx
movzx edx, word [eax + 2]
movzx eax, word [eax + 6]
imul ecx, edx
lea eax, [ecx + eax*4 + 0x14]
mov ecx, dword [edi + 0x2c]
mov ebp, dword [edi + 4]
mov edx, dword [edi + 0xc]
add ecx, eax
sub ebp, ecx
mov ecx, dword [edi + 0x18]
dec edx
test ecx, ecx
mov dword [edi + 4], ebp
mov dword [edi + 0xc], edx
mov eax, dword [esi + 0x10]
push eax
push ebx
jne 0x505f29
call fcn.00504e30
add esp, 8
push esi
call fcn.00439d00
add esp, 4
pop esi
pop ebp
pop ebx
pop edi
ret
call fcn.00505830
add esp, 8
push esi
call fcn.00439d00
add esp, 4
pop esi
pop ebp
pop ebx
pop edi
ret
Function at 0x51f4c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x14
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x40]
push esi
mov esi, dword [esp + 0x2c]
add edx, edx
add esi, esi
test ecx, ecx
mov dword [esp + 0xc], edx
jle 0x51f660
mov eax, dword [esp + 0x28]
sub eax, edx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x24]
sub eax, edx
mov edx, dword [esp + 0x3c]
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x34], eax
push ebp
mov eax, ebx
sub eax, esi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x48]
push edi
mov edi, dword [esp + 0x28]
lea edx, [edx + eax*4]
mov ebp, edi
sub ebp, esi
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x48]
add eax, ecx
lea eax, [edx + eax*4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
jmp 0x51f531
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx*4 + 0x54b4c8]
lea ecx, [edi + esi*2]
push ecx
lea edx, [esi + edi]
push edx
push edi
push ebp
push eax
mov dword [esp + 0x34], eax
call fcn.0051f1e0
lea eax, [edi + esi*2 + 0x10]
push eax
lea ecx, [esi + edi + 0x10]
push ecx
mov ecx, dword [esp + 0x3c]
lea edx, [edi + 0x10]
push edx
lea eax, [ebp + 0x10]
push eax
push ecx
call fcn.0051f1e0
mov edx, dword [esp + 0x3c]
mov eax, dword [edx]
lea ecx, [ebx + esi*2]
push ecx
add ebp, 0x20
lea edx, [esi + ebx]
push edx
mov dword [esp + 0x50], ebp
mov ebp, dword [eax*4 + 0x54b4c8]
mov eax, dword [esp + 0x68]
push ebx
push eax
push ebp
add edi, 0x20
call fcn.0051f1e0
lea ecx, [ebx + esi*2 + 0x10]
push ecx
mov ecx, dword [esp + 0x78]
lea edx, [esi + ebx + 0x10]
push edx
lea eax, [ebx + 0x10]
push eax
add ecx, 0x10
push ecx
push ebp
call fcn.0051f1e0
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x68]
add eax, 0x20
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x80]
add esp, 0x50
lea edx, [eax + ecx*2]
push edx
add ecx, eax
push ecx
push eax
mov eax, dword [esp + 0x48]
push eax
push ebp
add ebx, 0x20
call fcn.0051f1e0
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x2c]
lea edx, [eax + ecx*2]
push edx
add ecx, eax
push ecx
push eax
mov eax, dword [esp + 0x70]
push eax
push ebp
call fcn.0051f1e0
mov ebp, dword [esp + 0x58]
mov eax, 0x10
add esp, 0x28
add ebp, eax
mov dword [esp + 0x30], ebp
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
mov ebp, dword [esp + 0x50]
add edx, eax
add ecx, eax
add ebp, eax
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x14]
mov eax, 4
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x50], ebp
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
jne 0x51f52d
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x14
ret
Function at 0x51ff10
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x55fe60]
test eax, eax
je 0x51ff5e
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
push 0
mov dword [0x626d78], eax
call esi
push 0
push 0
push 0
push 0x51fed0
push 0
push 0
mov dword [0x626d74], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x55fe60], 0
pop esi
mov eax, dword [0x626d78]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
ret
Function at 0x528610
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
mov eax, ecx
cdq
and edx, 7
push ebx
mov ebx, dword [esp + 0x10]
add eax, edx
push ebp
sar eax, 3
and ecx, 7
test eax, eax
push esi
mov esi, dword [esp + 0x10]
mov ebp, ecx
jle 0x52865c
push edi
mov edi, eax
push 8
mov ecx, esi
call fcn.00523840
xor edx, edx
mov ecx, ebx
shr ecx, 8
mov dh, bl
xor eax, ecx
and eax, 0xff
xor edx, dword [eax*4 + 0x550840]
dec edi
mov ebx, edx
jne 0x528636
pop edi
test ebp, ebp
jle 0x528688
push 1
mov ecx, esi
call fcn.00523840
mov ecx, ebx
shr ecx, 0xf
and ecx, 1
and ebx, 0x7fff
xor eax, ecx
shl ebx, 1
test eax, eax
je 0x528685
xor ebx, 0x8005
dec ebp
jne 0x528660
pop esi
pop ebp
mov eax, ebx
pop ebx
ret

Function at 0x52ab30
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0x18
push ebx
push esi
push edi
lea eax, [esp + 0xc]
mov edi, ecx
push eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
lea ebx, [edi + 0x1ac]
mov ecx, ebx
mov dword [esp + 0x18], edx
call fcn.0040c250
mov esi, dword [edi + 0x1b0]
test esi, esi
je 0x52ab98
push ebp
lea ebp, [edi + 0x30]
lea ebx, [ebx]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
push ebp
push ecx
push eax
mov ecx, edi
call fcn.0052a530
mov esi, dword [esi + 8]
test esi, esi
jne 0x52ab80
pop ebp
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea eax, [edi + 0x30]
push eax
mov ecx, edi
call fcn.0052a860
lea ecx, [esp + 0x14]
call fcn.00529880
lea ecx, [esp + 0xc]
mov ebx, 1
push ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push 0
mov ecx, edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov byte [edi + 0x1a8], bl
call fcn.0052a9a0
lea ecx, [esp + 0x14]
mov byte [edi + 0x1a8], 0
mov byte [edi + 0x2d], 0
call fcn.00529880
pop edi
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x52ae00
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push esi
push edi
lea eax, [esp + 0x30]
push eax
mov edi, ecx
call ebx
mov esi, dword [edi + 0x18]
lea ecx, [esp + 0x10]
inc esi
push ecx
mov dword [edi + 0x18], esi
call ebx
mov eax, dword [edi + 0x30]
test eax, eax
lea esi, [edi + 0x30]
jne 0x52ae3f
mov ecx, edi
call fcn.0052ab30
jmp 0x52af34
lea edx, [esp + 0x28]
push edx
call ebx
mov eax, dword [0x626ec0]
or eax, dword [0x626ec4]
jne 0x52ae5e
push 0x626ec0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ecx, dword [0x626ec4]
mov edx, dword [0x626ec0]
mov eax, dword [ebp + 8]
push ecx
push edx
push 0
push eax
call fcn.004d47a0
push 0
push 0x3e8
push edx
push eax
call fcn.004d47e0
add eax, dword [esp + 0x10]
mov dword [esp + 0x18], eax
adc edx, dword [esp + 0x14]
mov dword [esp + 0x1c], edx
mov eax, dword [esi]
test eax, eax
je 0x52aeef
mov ecx, dword [0x55ff38]
cmp eax, ecx
jbe 0x52aea7
mov eax, ecx
test eax, eax
jbe 0x52aed2
mov ebx, eax
lea ecx, [ecx]
mov eax, dword [esi]
mov edx, dword [esi + 8]
dec eax
mov dword [esi], eax
mov ecx, dword [edx + eax*8]
mov eax, dword [edx + eax*8 + 4]
push esi
push eax
push ecx
mov ecx, edi
call fcn.0052a530
dec ebx
jne 0x52aeb0
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp + 0x20]
push eax
call ebx
mov ecx, dword [esp + 0x24]
cmp ecx, dword [esp + 0x1c]
jb 0x52ae95
ja 0x52aeef
mov edx, dword [esp + 0x20]
cmp edx, dword [esp + 0x18]
jb 0x52ae95
lea eax, [esp + 0x20]
push eax
call ebx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x2c]
mov edx, dword [edi + 0x1dc]
sub ecx, eax
mov eax, dword [esp + 0x24]
sbb eax, esi
cmp eax, edx
jb 0x52af34
ja 0x52af1e
cmp ecx, dword [edi + 0x1d8]
jbe 0x52af34
mov dword [edi + 0x1d8], ecx
mov dword [edi + 0x1dc], eax
mov dword [edi + 0x1e0], 0
lea ecx, [esp + 0x28]
push ecx
call ebx
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
sub edx, esi
mov esi, dword [edi + 0x10]
sbb eax, ecx
mov ecx, dword [edi + 0x14]
add esi, edx
adc ecx, eax
mov dword [edi + 0x14], ecx
lea ecx, [esp + 0x28]
push ecx
mov dword [edi + 0x10], esi
call ebx
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x34]
mov edx, dword [edi + 0x1dc]
sub ecx, ebx
sbb eax, esi
cmp eax, edx
jb 0x52afa4
ja 0x52af8e
cmp ecx, dword [edi + 0x1d8]
jbe 0x52afa4
mov dword [edi + 0x1d8], ecx
mov dword [edi + 0x1dc], eax
mov dword [edi + 0x1e0], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x52afd0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push ebp
push esi
push edi
lea eax, [esp + 0x10]
mov edi, ecx
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], 0
call ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x20], ecx
mov ecx, edi
mov dword [esp + 0x24], edx
mov byte [edi + 0x24], 0
mov byte [edi + 0x2d], 1
call fcn.005295b0
lea eax, [esp + 0x18]
push eax
call ebx
lea ecx, [edi + 0x1ac]
call fcn.0040c250
mov esi, dword [edi + 0x1b0]
test esi, esi
je 0x52b047
lea ebp, [edi + 0x30]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
push ebp
push ecx
push eax
mov ecx, edi
call fcn.0052a530
mov esi, dword [esi + 8]
test esi, esi
jne 0x52b030
push 0
lea eax, [edi + 0x1ac]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ecx, [esp + 0x10]
push ecx
call ebx
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
mov esi, dword [edi + 0x10]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [edi + 0x14]
sub edx, ebp
sbb eax, ebx
add esi, edx
adc ecx, eax
mov dword [edi + 0x14], ecx
push 0x19
mov ecx, edi
mov dword [edi + 0x10], esi
call fcn.0052ae00
lea ecx, [esp + 0x20]
call fcn.00529880
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x403059
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x403084
mov ecx, dword [0x424798]
push esi
add eax, ecx
push esi
push eax
mov dword [0x4178dc], eax
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.00403161
cmp eax, esi
jl 0x40315b
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.00405ce5
test eax, eax
je 0x40314b
push dword [ebp + 8]
add dword [0x4178dc], 4
call fcn.00403161
mov ebx, eax
cmp ebx, esi
jl 0x403159
cmp dword [ebp + 0x10], esi
jne 0x403127
cmp dword [ebp + 8], esi
jle 0x403159
mov esi, 0x4138d8
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x4030e9
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.00405ce5
test eax, eax
je 0x40314b
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00405d14
test eax, eax
je 0x403123
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x4178dc], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x4030d8
jmp 0x403159
push 0xfffffffffffffffe
jmp 0x40314d
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403132
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403150
push 0xfffffffffffffffd
pop eax
jmp 0x40315b
mov ebx, dword [ebp - 4]
add dword [0x4178dc], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10

Function at 0x4056c1
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x408374
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x408364
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x405712
xor eax, eax
jmp 0x405739
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405739
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
jne 0x40570e
call esi
pop esi
leave
ret 4

Function at 0x405773
Capabilities:
Create process on windows

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

Function at 0x4057b6
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
ret 4
Function at 0x405854
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405c48
mov edi, eax
cmp edi, 0xffffffff
je 0x405895
test byte [esp + 0x10], 1
push esi
je 0x405877
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x40587d
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x405886
xor eax, eax
inc eax
jmp 0x405897
test byte [esp + 0x10], 4
jne 0x405895
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x40589c
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405b5a
test bl, 8
mov dword [ebp - 0xc], eax
je 0x4058db
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4247c8], eax
jmp 0x405a65
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4058f5
test eax, eax
je 0x405a13
test bl, 2
je 0x405a13
mov esi, 0x421d38
push edi
push esi
call fcn.004060d4
cmp dword [ebp + 8], 0
je 0x405914
push 0x40a3c4
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x40591a
push edi
call fcn.00405ab3
cmp byte [edi], 0
jne 0x405928
cmp byte [0x421d38], 0x5c
jne 0x405933
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x405a09
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405a97
cmp byte [eax], 0
je 0x405979
cmp byte [ebp - 0x1c], 0
je 0x405979
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x40598f
mov al, byte [esi + 1]
test al, al
je 0x4059e8
cmp al, 0x2e
jne 0x40598f
cmp byte [esi + 2], 0
je 0x4059e8
push esi
push ebx
call fcn.004060d4
test byte [ebp - 0x14c], 0x10
je 0x4059b4
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4059e8
push dword [ebp + 0xc]
push edi
call fcn.0040589c
jmp 0x4059e8
push dword [ebp - 4]
push edi
call fcn.00405854
test eax, eax
jne 0x4059e0
cmp dword [ebp - 4], eax
je 0x4059d8
push edi
push 0xfffffffffffffff1
call fcn.004051fb
push 0
push edi
call fcn.00405eb3
jmp 0x4059e8
inc dword [0x4247c8]
jmp 0x4059e8
push edi
push 0xfffffffffffffff2
call fcn.004051fb
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405957
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405a13
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405a65
cmp dword [ebp - 0xc], esi
jne 0x405a27
inc dword [0x4247c8]
jmp 0x405a65
push edi
call fcn.004063d7
test eax, eax
je 0x405a65
push edi
call fcn.00405a6c
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405854
test eax, eax
jne 0x405a5d
cmp dword [ebp - 4], esi
je 0x405a1f
push edi
push 0xfffffffffffffff1
call fcn.004051fb
push esi
push edi
call fcn.00405eb3
jmp 0x405a65
push edi
push 0xffffffffffffffe5
call fcn.004051fb
pop edi
pop esi
pop ebx
leave
ret 8