joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000be50
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005ac15
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x10070068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub dword [ebp + 0xc], 1
jne 0x1000c01f
push 0x1b58
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 2
mov dword [ebp - 0x26c], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 1
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_Wow64EnableWow64FsRedirection]
cmp ebx, 0xffffffff
je 0x1000c01f
lea eax, [ebp - 0x26c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
jne 0x1000c018
lea eax, [ebp - 0x26c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x1000c018
nop dword [eax + eax]
push 0xc
mov edx, 0x10070bb4
lea ecx, [ebp - 0x40]
call fcn.10002070
mov dword [ebp - 4], 0
lea esi, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x28]
push 0xc
cmovae esi, dword [ebp - 0x40]
mov edx, 0x10070bc4
call fcn.10002070
mov byte [ebp - 4], 1
lea eax, [ebp - 0x248]
cmp dword [ebp - 0x14], 8
lea edi, [ebp - 0x28]
push esi
cmovae edi, dword [ebp - 0x28]
push eax
call fcn.1003bfb2
add esp, 0x10
test eax, eax
jne 0x1000bf51
mov ecx, dword [ebp - 0x264]
lea edx, [eax + 1]
call fcn.1000a650
lea eax, [ebp - 0x248]
push edi
push eax
call fcn.1003bfb2
add esp, 8
test eax, eax
jne 0x1000bf72
mov ecx, dword [ebp - 0x264]
xor edx, edx
call fcn.1000a650
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x1000bfb0
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000bfa6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000c042
push ecx
push edx
call fcn.10035423
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp ecx, 8
jb 0x1000c001
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000bff7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000c042
push ecx
push edx
call fcn.10035423
add esp, 8
lea eax, [ebp - 0x26c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x1000bef0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10035415
mov esp, ebp
pop ebp
ret 0xc
call fcn.1003a33a
int3
Function at 0x1004a2ee
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10036540
mov eax, dword [0x10070068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.10048696
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1004a330
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1004a48c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10059b90
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x10072798]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10049e77
mov ecx, dword [esi*4 + 0x10072798]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x1004a485
cmp eax, dword [ecx + edi + 0x24]
jne 0x1004a485
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1004a485
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10049e77
add esp, 0x14
test edx, edx
jl 0x1004a485
jg 0x1004a3fb
test eax, eax
jb 0x1004a485
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1004a485
jl 0x1004a415
cmp dword [ebp - 0x1008], eax
ja 0x1004a485
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1004a433
test ebx, ebx
je 0x1004a46c
cmp ecx, edi
jae 0x1004a46c
mov al, byte [ecx]
cmp al, 0xd
jne 0x1004a44d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1004a459
cmp byte [ecx + 1], 0xa
jne 0x1004a459
inc ecx
jmp 0x1004a459
movzx eax, al
movsx eax, byte [eax + 0x100702d8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1004a433
cmp edx, ebx
jne 0x1004a433
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1004a48a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10035415
leave
ret
Function at 0x1004a652
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x10072798]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1004a692
cmp byte [ebx], 0xa
jne 0x1004a692
or byte [edi + eax + 0x28], 4
jmp 0x1004a697
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x1004a796
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1004a779
inc eax
cmp dl, 0xd
je 0x1004a6c3
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1004a6e9
cmp eax, ecx
jae 0x1004a6f7
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1004a6ab
jmp 0x1004a796
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1004a774
cmp dword [ebp - 0x10], 0
je 0x1004a774
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10072798]
test byte [eax + edi + 0x28], 0x48
je 0x1004a74e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1004a739
mov byte [esi], dl
jmp 0x1004a74a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10072798]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1004a796
cmp byte [ebp - 1], 0xa
jne 0x1004a75d
cmp esi, ebx
jne 0x1004a75d
mov byte [esi], 0xa
jmp 0x1004a795
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10049e95
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1004a796
mov byte [esi], 0xd
jmp 0x1004a795
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10072798]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1004a793
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1004a796
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1004a79f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x10072798]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1004a7e5
cmp word [ebx], dx
jne 0x1004a7e5
or byte [eax + edi + 0x28], 4
jmp 0x1004a7ea
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1004a94d
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1004a92d
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1004a82b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1004a861
cmp eax, edx
jae 0x1004a86f
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1004a806
jmp 0x1004a94d
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1004a928
cmp dword [ebp - 0x18], 0
je 0x1004a928
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10072798]
test byte [eax + edi + 0x28], 0x48
je 0x1004a8fe
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1004a8c2
mov word [esi], cx
jmp 0x1004a8f9
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10072798]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x10072798]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10072798]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1004a94d
pop eax
cmp word [ebp - 4], ax
jne 0x1004a90e
cmp esi, ebx
jne 0x1004a90e
mov word [esi], ax
jmp 0x1004a94a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10049e95
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1004a94d
push 0xd
pop eax
jmp 0x1004a909
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10072798]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1004a947
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1004a94d
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10001270
Capabilities:
Allocate or change rwx memory
Check mutex on windows
Create thread
Execute shellcode via indirect call
Get hostname
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push str.msvcrt.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
jne 0x100012a7
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100013f8
mov esp, ebp
pop ebp
ret 4
push 0x104
lea eax, [ebp - 0x214]
mov dword [ebp - 0x218], 0x104
push 0
push eax
call fcn.100023f0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
xor eax, eax
nop dword [eax]
mov cl, byte [eax + str.free_]
test cl, cl
je 0x100012f7
mov byte [ebp + eax - 0x110], cl
inc eax
cmp eax, 5
jb 0x100012e0
mov byte [ebp + eax - 0x110], 0
lea eax, [ebp - 0x110]
cmp byte [ebp - 0x110], 0
je 0x10001316
nop
inc eax
cmp byte [eax], 0
jne 0x10001310
mov cl, byte [ebp - 0x214]
lea edx, [ebp - 0x214]
sub edx, eax
mov byte [eax], cl
lea eax, [eax + 1]
mov cl, byte [edx + eax]
test cl, cl
jne 0x10001324
mov byte [eax], cl
lea eax, [ebp - 0x110]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x100013dc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x100013db
push ebx
push edi
call fcn.10001000
push 0x40
push 0x3000
push 0x800
push 0
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test edi, edi
je 0x100013d9
push 0
push 0x800
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x100013d9
push 0
push 0
push 0
push edi
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
je 0x100013d9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
nop word [eax + eax]
push 0x186a0
call esi
jmp 0x100013d0
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.100013f8
mov esp, ebp
pop ebp
ret 4

Function at 0x10004737
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10004776
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10004776
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10004776
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10004776
cmp dword [ecx + 0x74], 0xe
jbe 0x10004776
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x100073ff
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000749c
push ebx
push esi
call fcn.100073c8
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000735c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10007449
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000749b
push edi
push eax
call fcn.100083ba
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10007469
call fcn.10005ea4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000749a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000735c
add esp, 0x20
test eax, eax
jne 0x10007488
push edi
call fcn.10005ea4
jmp 0x10007490
push ebx
call fcn.10005ea4
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10007709
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000f518
push 0x1000f510
push str.FlsAlloc
push 0x1f
call fcn.10007625
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000773d
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000e138]
call esi
jmp 0x10007743
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10007787
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000f528
push 0x1000f520
push str.FlsGetValue
push 0x21
call fcn.10007625
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100077be
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000e138]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100077c6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000f530
push 0x1000f528
push str.FlsSetValue
push 0x22
call fcn.10007625
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10007800
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1000e138]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000ce80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000cead
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000cead
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4019d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
mov eax, dword [0x4130f0]
xor eax, ebp
mov dword [ebp - 4], eax
fld qword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
sub esp, 8
fstp qword [esp]
lea eax, [ebp - 0x104]
push 0x410460
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x10
push ebx
push 0xff
lea ecx, [ebp - 0x504]
push ecx
lea edx, [ebp - 0x104]
push edx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x504]
push eax
call dword [sym.imp.MSVCR100.dll_atof]
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f020
mov esp, ebp
pop ebp
ret
Function at 0x401b20
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x35c
mov eax, dword [0x4130f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x214]
push edi
mov dword [ebp - 0x358], esi
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401b48
lea eax, [ebp - 0x214]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401b60
mov cx, word [0x410488]
mov dl, byte [0x41048a]
mov word [eax], cx
mov byte [eax + 2], dl
lea edx, [ebp - 0x10c]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401b85
lea edi, [ebp - 0x10c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401b96
mov ax, word [0x410484]
lea ecx, [ebp - 0x354]
push ecx
lea edx, [ebp - 0x214]
push edx
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
xor eax, eax
mov dword [ebp - 0x35c], edi
cmp edi, 0xffffffff
je 0x401d13
mov edi, edi
mov cl, byte [ebp + eax - 0x10c]
mov byte [ebp + eax - 0x214], cl
inc eax
test cl, cl
jne 0x401bd0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ebx, [ebx]
lea eax, [ebp - 0x354]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x401ce4
cmp byte [ebp - 0x328], 0x2e
je 0x401bf0
lea eax, [ebp - 0x328]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401c17
lea edi, [ebp - 0x10c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401c27
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, byte [ebp - 0x354]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test al, 0x10
je 0x401c94
lea ecx, [ebp - 0x10c]
push ecx
call fcn.00401b20
add esp, 4
lea edx, [ebp - 0x10c]
push edx
call ebx
xor eax, eax
jmp 0x401c70
mov cl, byte [ebp + eax - 0x214]
mov byte [ebp + eax - 0x10c], cl
inc eax
test cl, cl
jne 0x401c70
mov esi, dword [ebp - 0x358]
mov edi, dword [ebp - 0x35c]
jmp 0x401bf0
test al, 1
je 0x401cad
lea eax, [ebp - 0x10c]
push 0x80
push eax
call dword [sym.imp.MSVCR100.dll__chmod]
add esp, 8
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
lea esp, [esp]
mov cl, byte [ebp + eax - 0x214]
mov byte [ebp + eax - 0x10c], cl
inc eax
test cl, cl
jne 0x401cc0
mov esi, dword [ebp - 0x358]
mov edi, dword [ebp - 0x35c]
jmp 0x401bf0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
cmp eax, 0x12
je 0x401d09
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f020
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call ebx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040f020
mov esp, ebp
pop ebp
ret
Function at 0x401d30
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
lea ecx, [ebp - 4]
push ecx
push ebx
mov dword [ebp - 4], 0
mov byte [eax], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x401dc2
push edi
push esi
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x401dc1
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x401db7
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 8]
push eax
push 0x410484
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x401db7
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0xc]
movzx edx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
push edx
movzx edx, word [eax + 0xa]
mov eax, dword [ebp + 0xc]
push ecx
push edx
push str._ld_ld_ld_ld
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x18
push edi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401dd0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x508
mov eax, dword [0x4130f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x3ff
lea eax, [ebp - 0x507]
push 0
push eax
mov byte [ebp - 0x508], 0
call sub.MSVCR100.dll_memset
mov edi, dword [sym.imp.MSVCR100.dll_sprintf]
push esi
lea ecx, [ebp - 0x108]
push str._spredefinito_medio_chiaro.mxtema
push ecx
call edi
mov ebx, dword [sym.imp.MSVCR100.dll__chmod]
lea edx, [ebp - 0x108]
push 0x180
push edx
call ebx
add esp, 0x20
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
lea ecx, [ebp - 0x108]
push str._spredefinito_medio_scuro.mxtema
push ecx
call edi
lea edx, [ebp - 0x108]
push 0x180
push edx
call ebx
add esp, 0x14
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str.mxdesk.ini
push esi
lea ecx, [ebp - 0x108]
push str._s_s
push ecx
call edi
lea edx, [ebp - 0x108]
push edx
push 0x400
lea eax, [ebp - 0x508]
push eax
push 0x410514
push str.ImpostazioniGUI_DRAP_ASSREM
push 0x420478
call fcn.00401980
add esp, 0x28
cmp byte [ebp - 0x508], 0
je 0x401f4a
mov esi, dword [sym.imp.MSVCR100.dll_strstr]
mov edi, str.predefinito_medio_chiaro
lea ecx, [ebp - 0x508]
push edi
push ecx
call esi
add esp, 8
test eax, eax
je 0x401ed7
mov ecx, str.predefinito_chiaro
jmp 0x401ef2
mov edi, str.predefinito_medio_scuro
lea edx, [ebp - 0x508]
push edi
push edx
call esi
add esp, 8
test eax, eax
je 0x401f4a
mov ecx, str.predefinito_scuro
mov esi, eax
mov edx, ecx
sub esi, ecx
mov bl, byte [edx]
mov byte [esi + edx], bl
inc edx
test bl, bl
jne 0x401ef8
mov edx, edi
lea esi, [edx + 1]
mov bl, byte [edx]
inc edx
test bl, bl
jne 0x401f07
sub edx, esi
lea esi, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x401f13
sub ecx, esi
add edx, eax
add ecx, eax
mov al, byte [edx]
mov byte [ecx], al
inc edx
inc ecx
test al, al
jne 0x401f20
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x508]
push ecx
push str.ImpostazioniGUI_DRAP_ASSREM
push 0x420478
call fcn.0040ee60
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f020
mov esp, ebp
pop ebp
ret