joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407a57
Capabilities:
Query or enumerate registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x495040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, dword [esi + 0x110]
push edi
xor edi, edi
mov dword [ebp - 0x30], eax
cmp ecx, edi
jne 0x407a84
xor eax, eax
jmp 0x407b95
mov eax, dword [esi + 0x114]
cmp eax, ecx
jge 0x407b95
lea eax, [esi + 0x88]
push eax
push str.Softwareprojone_secshare_ssps_
push str._s_hs
lea ecx, [ebp - 0x20]
call fcn.0040d940
mov eax, dword [ebp - 0x1c]
add esp, 0xc
cmp dword [ebp - 8], 8
jae 0x407aba
lea eax, [ebp - 0x1c]
push ebx
push 4
pop ebx
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x28]
push ecx
push 0x480abc
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x24], ebx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x407aec
cmp dword [ebp - 0x28], ebx
jne 0x407aec
mov ebx, dword [ebp - 0x2c]
jmp 0x407aee
xor ebx, ebx
mov eax, dword [esi + 0x114]
cmp ebx, eax
jg 0x407afa
mov ebx, eax
push edi
push edi
push 3
push edi
push edi
push 0x40000000
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
je 0x407b82
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
jae 0x407b22
lea eax, [ebp - 0x1c]
lea edi, [ebx + 1]
push edi
push 0x480abc
push eax
call fcn.0040d9f8
push 0xffc
push esi
mov eax, 0x5b11680a
mov dword [esi + 0x114], edi
call fcn.0040c431
and dword [ebp - 0x28], 0
push 0
mov dword [esi + 0xffc], eax
lea eax, [ebp - 0x28]
push eax
mov edi, 0x1000
push edi
push esi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407b70
cmp dword [ebp - 0x28], edi
je 0x407b75
mov ebx, 0x12345678
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
jmp 0x407b87
mov ebx, 0x12345678
push edi
push 1
lea esi, [ebp - 0x20]
call fcn.0040144b
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0045e86d
leave
ret
Function at 0x408117
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a971
mov eax, dword fs:[0]
push eax
mov eax, 0x1290
call fcn.0046a3d0
mov eax, dword [0x495040]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x1248], eax
xor eax, eax
push 0x206
mov word [ebp - 0x23c], ax
xor ebx, ebx
lea eax, [ebp - 0x23a]
push ebx
push eax
mov edi, ecx
call fcn.00460930
add esp, 0xc
lea esi, [ebp - 0x23c]
call fcn.0040bf04
test eax, eax
jne 0x408192
mov dword [ebp - 0x1240], 2
jmp 0x40834d
push 0xffc
lea eax, [ebp - 0x1238]
push ebx
push eax
mov dword [ebp - 0x123c], ebx
call fcn.00460930
lea eax, [ebp - 0x23c]
add esp, 0xc
push eax
lea edx, [ebp - 0x123c]
mov ecx, edi
call fcn.00407767
pop ecx
mov dword [ebp - 0x1240], eax
cmp eax, ebx
jne 0x40834d
push 7
xor eax, eax
mov byte [ebp - 0x34], bl
pop ecx
lea edi, [ebp - 0x33]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xc9c]
push eax
lea ecx, [ebp - 0x1264]
call fcn.00402c69
lea eax, [ebp - 0x1264]
push eax
lea eax, [ebp - 0x1280]
push eax
mov dword [ebp - 4], ebx
call fcn.00420691
pop ecx
pop ecx
mov byte [ebp - 4], 1
cmp dword [eax + 0x18], 0x10
jb 0x408219
mov eax, dword [eax + 4]
jmp 0x40821c
add eax, 4
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x10e4]
push ecx
mov ecx, eax
call fcn.0040753f
pop ecx
pop ecx
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x1280]
call fcn.00403021
or dword [ebp - 4], 0xffffffff
push ebx
push edi
lea ecx, [ebp - 0x1264]
call fcn.00403021
lea eax, [ebp - 0x23c]
push eax
lea esi, [ebp - 0x1264]
call fcn.00402cbb
mov eax, esi
push eax
lea eax, [ebp - 0x1280]
push eax
mov dword [ebp - 4], 2
call fcn.00406e6d
pop ecx
pop ecx
mov byte [ebp - 4], 3
cmp dword [eax + 0x18], 0x10
jb 0x40828a
mov eax, dword [eax + 4]
jmp 0x40828d
add eax, 4
lea ecx, [ebp - 0x34]
push ecx
push eax
call fcn.0040715a
pop ecx
pop ecx
push ebx
push edi
lea ecx, [ebp - 0x1280]
mov byte [ebp - 0x1244], al
call fcn.00403021
or dword [ebp - 4], 0xffffffff
push ebx
push edi
lea esi, [ebp - 0x1264]
call fcn.0040144b
cmp byte [ebp - 0x1244], 0
jne 0x4082d2
mov dword [ebp - 0x1240], 7
jmp 0x408339
movsx ax, byte [ebp - 0x1244]
movzx eax, ax
push eax
push str._c:_
lea ecx, [ebp - 0x129c]
call fcn.0040d940
pop ecx
pop ecx
mov dword [ebp - 4], 4
cmp dword [eax + 0x18], 8
jb 0x408302
mov eax, dword [eax + 4]
jmp 0x408305
add eax, 4
push dword [ebp - 0x1248]
push eax
call fcn.0040bf78
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
push 0
push edi
lea esi, [ebp - 0x129c]
inc bl
call fcn.0040144b
test bl, bl
je 0x408339
mov dword [ebp - 0x1240], 0x1c
cmp byte [ebp - 0x1244], 0
je 0x40834d
push dword [ebp - 0x1244]
call fcn.0041fa04
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x1240]
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.0045e86d
leave
ret
Function at 0x4092c7
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x495040]
xor eax, ebp
mov dword [ebp + 0x18c], eax
and dword [ebp - 0x80], 0
push ebx
mov ebx, dword [ebp + 0x198]
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
call fcn.00460930
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x47f23c
lea eax, [ebp - 0x7c]
push eax
call edi
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea esi, [ebp - 0x7c]
call fcn.0040bb3e
push str.taskbtn.png
mov eax, esi
push eax
call edi
mov eax, esi
push eax
mov esi, ebx
call fcn.00402cbb
mov ecx, dword [ebp + 0x18c]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0045e86d
add ebp, 0x190
leave
ret
Function at 0x40b659
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa94
mov eax, dword [0x495040]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x1c]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xa88], ecx
mov ecx, dword [ebp + 0x18]
push edi
mov dword [ebp - 0xa84], eax
mov dword [ebp - 0xa80], ecx
mov dword [ebp - 0xa8c], edx
test esi, esi
je 0x40b87e
test eax, eax
jne 0x40b6aa
test ecx, ecx
je 0x40b87e
movzx eax, word [esi + 2]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp ax, 0x3a
je 0x40b700
cmp ax, 0x5c
je 0x40b700
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x828], ax
lea eax, [ebp - 0x826]
push eax
call fcn.00460930
add esp, 0xc
lea eax, [ebp - 0x828]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
lea eax, [ebp - 0x828]
push eax
call edi
lea esi, [ebp - 0x828]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b87e
test al, 0x10
je 0x40b87e
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea eax, [ebp - 0x418]
push eax
call ebx
push 0x47f4d4
lea eax, [ebp - 0x418]
push eax
call edi
lea eax, [ebp - 0xa78]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xa90], eax
cmp eax, 0xffffffff
je 0x40b87e
mov dword [ebp - 0xa7c], 1
push 0x480c04
lea eax, [ebp - 0xa4c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40b843
push 0x47f3e0
lea eax, [ebp - 0xa4c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40b843
cmp dword [ebp - 0xa78], 0xffffffff
je 0x40b843
push esi
lea eax, [ebp - 0x210]
push eax
call ebx
lea eax, [ebp - 0xa4c]
push eax
lea eax, [ebp - 0x210]
push eax
call edi
test byte [ebp - 0xa78], 0x10
je 0x40b823
cmp dword [ebp - 0xa80], 0
je 0x40b7e7
push dword [ebp - 0xa8c]
lea eax, [ebp - 0x210]
push eax
call dword [ebp - 0xa80]
test eax, eax
je 0x40b860
cmp dword [ebp + 0xc], 0
je 0x40b843
push dword [ebp - 0xa8c]
lea eax, [ebp - 0x210]
push dword [ebp - 0xa80]
push dword [ebp - 0xa88]
push dword [ebp - 0xa84]
push dword [ebp + 0xc]
push eax
call fcn.0040b659
push 2
pop ecx
cmp eax, ecx
jne 0x40b843
mov dword [ebp - 0xa7c], ecx
jmp 0x40b86a
cmp dword [ebp - 0xa84], 0
je 0x40b843
push dword [ebp - 0xa88]
lea eax, [ebp - 0x210]
push eax
call dword [ebp - 0xa84]
test eax, eax
je 0x40b860
lea eax, [ebp - 0xa78]
push eax
push dword [ebp - 0xa90]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40b763
jmp 0x40b86a
mov dword [ebp - 0xa7c], 2
push dword [ebp - 0xa90]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0xa7c]
jmp 0x40b880
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045e86d
leave
ret 0x18
Function at 0x40b891
Capabilities:
Enumerate files on windows

Disassembly:
push 0x6bc
mov eax, 0x478aaf
call fcn.0045fd3a
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
and dword [ebp - 0x678], 0
mov dword [ebp - 0x674], eax
lea eax, [ebp - 0x6a0]
mov edi, ecx
push eax
mov dword [ebp - 0x67c], ebx
mov dword [ebp - 0x680], edi
call fcn.0040e622
xor esi, esi
inc esi
mov dword [ebp - 4], esi
test edi, edi
jne 0x40b901
lea eax, [ebp - 0x6a0]
push eax
push ebx
call fcn.0040e658
lea eax, [ebp - 0x6a0]
push eax
mov dword [ebp - 0x678], esi
mov byte [ebp - 4], 0
call fcn.00402d68
mov eax, ebx
jmp 0x40ba2e
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x218]
push eax
call edi
push dword [ebp - 0x674]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call ebx
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x674], eax
cmp eax, 0xffffffff
je 0x40ba00
push 0x480c04
lea eax, [ebp - 0x644]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40b9d9
push 0x47f3e0
lea eax, [ebp - 0x644]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40b9d9
cmp dword [ebp - 0x670], 0xffffffff
je 0x40b9d9
push dword [ebp - 0x680]
lea eax, [ebp - 0x420]
push eax
call edi
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x420]
push eax
call ebx
lea eax, [ebp - 0x420]
push eax
lea esi, [ebp - 0x6bc]
call fcn.00402cbb
mov eax, esi
push eax
lea eax, [ebp - 0x6c8]
push eax
lea eax, [ebp - 0x6a0]
push eax
mov byte [ebp - 4], 2
call fcn.0040e703
push 0
push 1
mov byte [ebp - 4], 1
call fcn.0040144b
xor esi, esi
inc esi
lea eax, [ebp - 0x670]
push eax
push dword [ebp - 0x674]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40b949
push dword [ebp - 0x674]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x6a0]
push eax
push dword [ebp - 0x67c]
call fcn.0040e658
lea eax, [ebp - 0x6a0]
push eax
mov dword [ebp - 0x678], esi
mov byte [ebp - 4], 0
call fcn.00402d68
mov eax, dword [ebp - 0x67c]
call fcn.0045fdbd
ret
Function at 0x40ba34
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x495040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
cmp edi, ebx
je 0x40bb2e
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jge 0x40bb2e
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.00460930
add esp, 0xc
lea esi, [ebp - 0x210]
mov ecx, edi
call fcn.0040c759
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40baab
shr eax, 4
not eax
and eax, 1
jmp 0x40bb30
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea esi, [ebp - 0x418]
call fcn.0040bb3e
test eax, eax
je 0x40bb2e
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x10000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x420], eax
cmp eax, ebx
je 0x40bb10
mov dword [ebp - 0x41c], 1
cmp eax, 0xffffffff
jne 0x40bb16
mov dword [ebp - 0x41c], ebx
lea eax, [ebp - 0x420]
call fcn.00404434
xor eax, eax
cmp byte [ebp - 0x41c], bl
setne al
jmp 0x40bb30
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0045e86d
leave
ret
Function at 0x40bf04
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x495040]
xor eax, ebp
mov dword [ebp - 4], eax
test esi, esi
je 0x40bf6a
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00460930
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40bf6a
push esi
push 0
push 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jbe 0x40bf6a
xor eax, eax
inc eax
jmp 0x40bf6c
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045e86d
leave
ret

Function at 0x40bf78
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x495040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
mov dword [ebp - 0x424], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40c012
test al, 0x10
je 0x40c012
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov edi, 0x104
push edi
push ebx
lea eax, [ebp - 0x420]
push eax
call esi
push edi
push dword [ebp - 0x424]
lea eax, [ebp - 0x218]
push eax
call esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x420]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call esi
and dword [ebp - 0xc], 0
lea eax, [ebp - 0x420]
push eax
mov eax, 0x40c025
push eax
lea ecx, [ebp - 0x420]
push ecx
push eax
push 1
push ebx
mov dword [ebp - 0x10], 0x40837a
call fcn.0040b659
jmp 0x40c014
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045e86d
leave
ret 8
Function at 0x40c0e3
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2038
call fcn.0046a3d0
mov eax, dword [0x495040]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x201c], eax
mov dword [ebp - 0x2020], ebx
cmp edi, ebx
je 0x40c2c1
cmp eax, ebx
je 0x40c2c1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40c13b
mov dword [ebp - 0x2020], 1
jmp 0x40c2c1
push ebx
push ebx
push 3
push ebx
push ebx
mov esi, connect
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
call edi
push ebx
push ebx
push 3
push ebx
push ebx
push esi
push dword [ebp - 0x201c]
mov dword [ebp - 0x2010], eax
call edi
mov esi, dword [ebp - 0x2010]
mov dword [ebp - 0x2014], eax
cmp esi, ebx
je 0x40c2ab
cmp esi, 0xffffffff
je 0x40c2ab
cmp eax, ebx
je 0x40c2ab
cmp eax, 0xffffffff
je 0x40c2ab
xor eax, eax
mov dword [ebp - 0x2034], ebx
lea edi, [ebp - 0x2030]
stosd dword es:[edi], eax
mov dword [ebp - 0x202c], ebx
lea edi, [ebp - 0x2028]
stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
lea eax, [ebp - 0x2034]
push eax
push esi
call edi
test eax, eax
je 0x40c2ab
lea eax, [ebp - 0x202c]
push eax
push dword [ebp - 0x2014]
call edi
test eax, eax
je 0x40c2ab
mov eax, dword [ebp - 0x2034]
cmp eax, dword [ebp - 0x202c]
jne 0x40c2ab
mov eax, dword [ebp - 0x2030]
cmp eax, dword [ebp - 0x2028]
jne 0x40c2ab
push ebx
lea eax, [ebp - 0x2018]
push eax
push 0x1000
lea eax, [ebp - 0x200c]
push eax
mov dword [ebp - 0x2018], ebx
push esi
jmp 0x40c295
cmp dword [ebp - 0x2018], ebx
je 0x40c2a1
push ebx
lea eax, [ebp - 0x201c]
push eax
push dword [ebp - 0x2018]
lea eax, [ebp - 0x100c]
push eax
push dword [ebp - 0x2014]
mov dword [ebp - 0x201c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40c2ab
mov ecx, dword [ebp - 0x2018]
cmp ecx, dword [ebp - 0x201c]
jne 0x40c2ab
lea edi, [ebp - 0x100c]
lea esi, [ebp - 0x200c]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40c277
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40c2ab
push ebx
lea eax, [ebp - 0x2018]
push eax
push 0x1000
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 0x2010]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40c21f
jmp 0x40c2ab
mov dword [ebp - 0x2020], 1
lea eax, [ebp - 0x2014]
call fcn.00404434
lea eax, [ebp - 0x2010]
call fcn.00404434
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x2020]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045e86d
leave
ret 4

Function at 0x40c431
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
cmp dword [esp + 8], ecx
jle 0x40c459
push esi
mov edx, dword [esp + 8]
movzx edx, byte [ecx + edx]
movzx esi, al
xor edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x4973a0]
inc ecx
cmp ecx, dword [esp + 0xc]
jl 0x40c43a
pop esi
not eax
ret 8
Function at 0x40c808
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x495040]
xor eax, ebp
mov dword [ebp + 0x19c], eax
push ebx
mov ebx, dword [ebp + 0x1a8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], ebx
test edi, edi
je 0x40c8e2
test ebx, ebx
je 0x40c8e2
mov esi, str.deviceMup_
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp eax, edi
jne 0x40c867
push ebx
push 0x480cc8
push esi
push edi
call fcn.0040d7c6
xor eax, eax
inc eax
jmp 0x40c8e4
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x80], eax
xor ebx, ebx
xor eax, eax
inc eax
mov ecx, ebx
shl eax, cl
mov ecx, dword [ebp - 0x80]
test ecx, eax
je 0x40c8dc
push 0x3a
lea eax, [ebx + 0x61]
mov word [ebp + 0x194], ax
pop eax
mov word [ebp + 0x196], ax
xor eax, eax
push 0x206
lea edi, [ebp + 0x198]
push eax
stosd dword es:[edi], eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
call fcn.00460930
add esp, 0xc
push 0x104
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jbe 0x40c8dc
push dword [ebp - 0x78]
lea esi, [ebp - 0x74]
call fcn.0040d8c3
test eax, eax
jne 0x40c8fe
inc ebx
cmp ebx, 0x1a
jl 0x40c872
xor eax, eax
mov ecx, dword [ebp + 0x19c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045e86d
add ebp, 0x1a0
leave
ret 4
push dword [ebp - 0x7c]
lea eax, [ebp + 0x194]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
jmp 0x40c85d

Function at 0x40cc0d
Capabilities:
Write clipboard data

Disassembly:
push ebx
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov ebx, eax
test ebx, ebx
je 0x40cc6d
test edi, edi
je 0x40cc6d
push esi
push edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40cc6c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40cc65
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x40cc65
inc ebx
jmp 0x40cc6c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, ebx
pop ebx
ret
Function at 0x40cc77
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x434
mov eax, dword [0x495040]
xor eax, esp
mov dword [esp + 0x430], eax
mov eax, fcn.0040d3ab
push esi
test eax, eax
je 0x40cd04
push 0x424
lea eax, [esp + 0x10]
push 0
push eax
call fcn.00460930
add esp, 0xc
push dword [ebp + 8]
mov dword [esp + 0xc], 0x428
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [esp + 4], esi
test esi, esi
je 0x40ccfb
cmp esi, 0xffffffff
je 0x40ccfb
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Module32FirstW
jmp 0x40ccf7
push edi
lea eax, [esp + 0xc]
push eax
call fcn.0040d3ab
test eax, eax
je 0x40ccfb
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x40ccdd
lea eax, [esp + 4]
call fcn.00404434
mov ecx, dword [esp + 0x434]
pop esi
xor ecx, esp
call fcn.0045e86d
mov esp, ebp
pop ebp
ret 4

Function at 0x40cd19
Capabilities:
Enumerate processes

Disassembly:
push ebp
sub esp, 0x22c
lea ebp, [esp - 4]
mov eax, dword [0x495040]
xor eax, ebp
mov dword [ebp + 0x22c], eax
push 8
mov eax, 0x47742a
call fcn.0045fcd1
mov eax, dword [ebp + 0x238]
mov dword [ebp - 0x14], eax
test edi, edi
je 0x40cdae
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x10], esi
and dword [ebp - 4], 0
test esi, esi
je 0x40cda6
cmp esi, 0xffffffff
je 0x40cda6
push 0x228
lea eax, [ebp + 4]
push 0
push eax
mov dword [ebp], 0x22c
call fcn.00460930
add esp, 0xc
lea eax, [ebp]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x40cda2
push dword [ebp - 0x14]
lea eax, [ebp]
push eax
call edi
test eax, eax
je 0x40cda6
lea eax, [ebp]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40cd8b
lea eax, [ebp - 0x10]
call fcn.00404434
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x22c]
xor ecx, ebp
call fcn.0045e86d
add ebp, 0x230
leave
ret 4

Function at 0x40cdd3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
xor esi, esi
push edi
cmp dword [ebp + 8], esi
jne 0x40cde6
xor eax, eax
jmp 0x40ce3f
push 0x40
lea eax, [ebp - 0x58]
push esi
push eax
mov dword [ebp - 0x5c], 0x44
call fcn.00460930
mov dword [ebp - 0x14], esi
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
add esp, 0xc
call fcn.0040b61f
mov edi, eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40ce37
push dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.0040b64c
mov eax, esi
pop edi
pop esi
leave
ret 4