joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404842
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x414
mov eax, dword [0x448010]
xor eax, esp
mov dword [esp + 0x410], eax
mov eax, dword [esp + 0x420]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push ebp
mov ebp, dword [esp + 0x424]
push esi
mov esi, dword [esp + 0x424]
push edi
mov dword [esp + 0x10], eax
xor eax, eax
push 0x60
push eax
push esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
call ebx
mov edi, eax
push 2
pop eax
test edi, edi
jne 0x4048ad
push eax
push edi
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x4048ad
call fcn.004033a5
mov esi, eax
jmp 0x404969
push dword [esp + 0x10]
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4048c9
call fcn.004033a5
jmp 0x40495c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4048bf
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x4048ef
mov esi, 0x8007000e
jmp 0x40495e
push 2
pop ecx
mul ecx
test edx, edx
jne 0x404999
cmp eax, 0xffffffff
ja 0x404999
cmp eax, 0x400
jbe 0x404918
push eax
lea ecx, [esp + 0x20]
call fcn.00403383
jmp 0x404920
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x1c], 0
je 0x4048e8
push esi
push dword [esp + 0x20]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x4048bf
mov eax, dword [esp + 0x1c]
xor edx, edx
push dword [esp + 0x434]
mov word [eax + ecx*2], dx
lea ecx, [esp + 0x18]
push dword [esp + 0x20]
call fcn.004046f6
mov esi, eax
test edi, edi
je 0x404969
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [esp + 0x20]
cmp dword [esp + 0x1c], eax
je 0x40497c
lea ecx, [esp + 0x1c]
call fcn.0040337a
mov ecx, dword [esp + 0x420]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004246ea
add esp, 0x414
ret 0x10
push 0x80070216
call fcn.00405068
int3

Function at 0x404bce
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404c27
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404c18
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x10]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x404c14
cmp esi, ecx
jae 0x404c18
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x404c02
cmp esi, ecx
jb 0x404c1c
xor eax, eax
jmp 0x404c26
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x407c08
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x448010]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ecx + 0x7c], 1
push ebx
push esi
push edi
je 0x407c92
test dword [ecx + 0x7c], 0x2000
jne 0x407c92
call fcn.004089c5
mov edi, eax
mov ecx, dword [edi]
cmp dword [ecx - 0xc], 3
jl 0x407c92
xor esi, esi
mov ecx, edi
push esi
call fcn.00409eca
push 0x5c
pop ebx
cmp ax, bx
jne 0x407c67
push 1
mov ecx, edi
call fcn.00409eca
cmp ax, bx
jne 0x407c67
push 2
mov ecx, edi
call fcn.00409eca
cmp ax, bx
jne 0x407c92
push esi
mov ecx, edi
call fcn.00409eca
mov word [ebp + esi*2 - 0x10], ax
inc esi
cmp esi, 3
jl 0x407c67
xor eax, eax
mov word [ebp - 0xa], ax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
setne al
jmp 0x407c94
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004246ea
mov esp, ebp
pop ebp
ret

Function at 0x407ca5
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.004089c5
lea ecx, [esp + 0x14]
mov ebp, eax
call fcn.0040ab91
push 0x5c
push dword [ebp]
call fcn.00426705
pop ecx
pop ecx
test eax, eax
jne 0x407cd3
or eax, 0xffffffff
jmp 0x407cd8
sub eax, dword [ebp]
sar eax, 1
inc eax
mov ecx, ebp
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00409a20
lea ecx, [esp + 0x14]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00402b67
mov ecx, dword [esp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.004052ff
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407d1d
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor ebx, ebx
push ebx
push esi
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x407d34
inc ebx
mov dword [edi + 0x18], ebx
jmp 0x407db2
push ebp
push 3
lea ecx, [edi + 0x24]
call fcn.004141a6
call fcn.0040522e
push eax
lea ecx, [esp + 0x1c]
call fcn.004028b4
push ebx
lea eax, [esp + 0x20]
push eax
lea ecx, [edi + 0x24]
call fcn.0041423a
push dword [eax]
lea eax, [esp + 0x1c]
push esi
push 0x43fab8
push eax
call fcn.0040a5cf
mov ecx, dword [esp + 0x2c]
add esp, 0x10
lea ecx, [ecx - 0x10]
call fcn.004052ff
lea ecx, [edi + 0x188]
call fcn.0040f4f8
push ebx
push 0x20
push ebx
lea edx, [esp + 0x24]
lea ecx, [esp + 0x20]
call fcn.00410365
add esp, 0xc
test al, al
jne 0x407da6
xor ebx, ebx
inc ebx
mov dword [edi + 0x18], ebx
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.004052ff
lea ecx, [esi - 0x10]
call fcn.004052ff
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x14
ret
Function at 0x40ab91
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x448010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x20c]
mov esi, ecx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x40abdb
call fcn.0040522e
push eax
mov ecx, esi
call fcn.004028b4
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004246ea
mov esp, ebp
pop ebp
ret
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x20e], cx
je 0x40abf1
mov word [ebp + eax*2 - 0x20c], cx
inc eax
add eax, eax
cmp eax, 0x208
jae 0x40ac14
xor ecx, ecx
mov word [ebp + eax - 0x20c], cx
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.00404f61
jmp 0x40abca
call fcn.00424ce7
int3

Function at 0x40af4c
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x448010]
xor eax, esp
mov dword [esp + 0x260], eax
mov eax, ecx
push ebx
push esi
push edi
mov ecx, dword [eax]
mov bl, dl
sub ecx, 0x10
mov dword [esp + 0x10], eax
call fcn.0040ab13
add eax, 0x10
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], eax
call fcn.0040ab6c
push 0x44137c
lea ecx, [esp + 0x18]
call fcn.004028da
push 0x250
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00425780
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x24]
add esp, 0xc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40b086
mov esi, dword [esp + 0x10]
push 0x2e
pop eax
cmp word [esp + 0x44], ax
jne 0x40aff1
cmp word [esp + 0x46], 0
je 0x40b06b
cmp word [esp + 0x46], ax
jne 0x40aff1
cmp word [esp + 0x48], 0
je 0x40b06b
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.0040ab13
add eax, 0x10
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], eax
call fcn.0040ab6c
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x14]
call fcn.004028da
test byte [esp + 0x18], 0x10
je 0x40b036
mov dl, bl
lea ecx, [esp + 0x10]
call fcn.0040af4c
lea ecx, [esp + 0x10]
call fcn.0040b0aa
jmp 0x40b05f
test bl, bl
je 0x40b05f
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x40b056
and eax, 0xfffffffe
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x10]
call fcn.0040b121
mov ecx, dword [esp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.004052ff
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40afcf
mov esi, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esi - 0x10]
call fcn.004052ff
mov ecx, dword [esp + 0x26c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004246ea
mov esp, ebp
pop ebp
ret
Function at 0x40b60a
Capabilities:
Create directory

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov bl, dl
mov esi, ecx
call fcn.0040b323
test al, al
je 0x40b625
xor eax, eax
jmp 0x40b70d
mov ecx, esi
call fcn.0040b3dd
xor edi, edi
mov byte [esp + 0x17], al
mov edx, esi
mov dword [esp + 0x24], edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call fcn.0040b46b
push edi
lea ecx, [esp + 0x28]
call fcn.00409706
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.0040ab13
mov ebp, dword [esp + 0x28]
dec ebp
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
test bl, bl
je 0x40b66e
inc ebp
mov ebx, edi
xor edi, edi
inc edi
mov dword [esp + 0x20], edi
cmp ebp, edi
jle 0x40b6f1
lea ecx, [esi - 0x10]
call fcn.0040ab13
add eax, 0x10
lea ecx, [esp + 0x1c]
push 0x43f234
mov dword [esp + 0x20], eax
call fcn.004028da
push edi
lea ecx, [esp + 0x28]
call fcn.00409706
lea ecx, [esp + 0x1c]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00402b67
mov edi, dword [esp + 0x1c]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40b715
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb7
je 0x40b72a
cmp byte [esp + 0x17], 0
jne 0x40b72a
cmp dword [esp + 0x20], 1
jle 0x40b6e9
lea ecx, [esp + 0x18]
call fcn.0040b0aa
lea ecx, [edi - 0x10]
call fcn.004052ff
lea ecx, [esi - 0x10]
call fcn.004052ff
lea ecx, [esp + 0x24]
call fcn.0040972d
xor eax, eax
cmp ebx, 0xb7
cmovne eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
cmp dword [esp + 0x34], 0
je 0x40b72a
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x1c]
push eax
call fcn.00409766
push 0x43f234
lea ecx, [esp + 0x1c]
call fcn.004028da
push dword [esp + 0x20]
lea ecx, [esp + 0x28]
call fcn.00409706
lea ecx, [esp + 0x18]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00402b67
lea ecx, [edi - 0x10]
call fcn.004052ff
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
inc edi
mov dword [esp + 0x20], edi
cmp edi, ebp
jge 0x40b6f1
jmp 0x40b67b

Function at 0x40b772
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
mov edi, edx
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40b7a9
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x40b7a9
mov dword [edi], eax
mov bl, 1
test esi, esi
je 0x40b7b4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
ret
Function at 0x40c182
Capabilities:
Delete directory
Delete file

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x18], edi
cmp byte [edi + 0xc0], 0
je 0x40c2fb
cmp byte [edi + 0xd8], 0
jne 0x40c2fb
cmp dword [edi + 0x90], 3
je 0x40c1d4
call fcn.0040d6c4
mov eax, dword [edi + 0x90]
cmp eax, 2
je 0x40c1d4
cmp eax, 1
je 0x40c1d4
test byte [edi + 0x44], 0x48
je 0x40c1d4
mov ecx, edi
call fcn.0040c992
mov eax, dword [edi + 0xa8]
xor ecx, ecx
mov dword [esp + 0x28], ecx
mov ebp, ecx
mov dword [esp + 0x2c], ecx
mov ebx, ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], eax
test eax, eax
jle 0x40c247
mov ebp, dword [esp + 0x10]
lea eax, [edi + 0xa4]
mov edi, eax
push ebx
mov ecx, edi
call fcn.00409706
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x40c23a
push ebx
mov ecx, edi
call fcn.00409706
push eax
lea ecx, [esp + 0x2c]
call fcn.00409766
inc ebx
cmp ebx, ebp
jl 0x40c20c
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
mov ebx, dword [edi + 0xb4]
sub ebx, 1
js 0x40c28f
lea ebp, [edi + 0xb0]
push ebx
mov ecx, ebp
call fcn.00409706
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x40c286
push ebx
mov ecx, ebp
call fcn.00409706
push eax
lea ecx, [esp + 0x20]
call fcn.00409766
sub ebx, 1
jns 0x40c258
mov ebp, dword [esp + 0x20]
lea eax, [esp + 0x28]
push eax
lea ecx, [edi + 0xa4]
call fcn.0040ea74
lea ebx, [edi + 0xb0]
mov ecx, ebx
call fcn.0040972d
lea esi, [ebp - 1]
test esi, esi
js 0x40c2ca
push esi
lea ecx, [esp + 0x20]
call fcn.00409706
push eax
mov ecx, ebx
call fcn.00409766
sub esi, 1
jns 0x40c2b3
cmp dword [edi + 0xa8], 0
jne 0x40c2e1
cmp dword [edi + 0xb4], 0
jne 0x40c2e1
xor eax, eax
inc eax
jmp 0x40c2e3
xor eax, eax
lea ecx, [esp + 0x1c]
mov byte [edi + 0xd8], al
call fcn.0040972d
lea ecx, [esp + 0x28]
call fcn.0040972d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x40d6c4
Capabilities:
Delete file

Disassembly:
sub esp, 0x18
push edi
mov edi, ecx
test byte [edi + 0x44], 1
je 0x40d6da
test byte [edi + 0x44], 0x40
je 0x40d816
push ebx
push ebp
mov ebp, dword [edi + 0x7c]
xor ebx, ebx
test ebp, ebp
jle 0x40d814
lea eax, [edi + 0x78]
push esi
push ebx
mov ecx, eax
call fcn.0040e9b5
mov esi, eax
cmp byte [esi + 0x1c], 0
je 0x40d807
cmp dword [esi], 1
je 0x40d733
cmp dword [esi], 3
je 0x40d733
cmp dword [esi], 7
je 0x40d733
cmp dword [esi], 8
je 0x40d733
cmp dword [esi], 0x64
jb 0x40d75a
mov eax, dword [edi + 0x90]
cmp eax, 2
je 0x40d807
cmp eax, 5
jne 0x40d75a
jmp 0x40d807
mov eax, dword [edi + 0x90]
cmp eax, 4
je 0x40d75a
cmp eax, 2
je 0x40d807
cmp eax, 1
je 0x40d807
test byte [esi + 8], 1
jne 0x40d807
push dword [esi + 4]
mov ecx, edi
call fcn.0040e296
mov dword [esp + 0x14], eax
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.0040ab13
add eax, 0x10
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x18]
push dword [eax - 0xc]
push eax
call fcn.00402b67
mov esi, dword [esp + 0x10]
cmp dword [esi - 4], 1
jle 0x40d7a3
push dword [esi - 0xc]
lea ecx, [esp + 0x14]
call fcn.00404d3d
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40d7db
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x40d7db
push ecx
push ecx
lea ecx, [esp + 0x24]
call fcn.00405337
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
call fcn.00405361
lea ecx, [esp + 0x1c]
call fcn.00401ef2
lea edx, [esp + 0x10]
lea ecx, [esp + 0x18]
call fcn.0040ad8c
mov edx, dword [esp + 0x14]
mov ecx, eax
call fcn.0040b25a
mov ecx, dword [esp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.004052ff
lea ecx, [esi - 0x10]
call fcn.004052ff
inc ebx
lea eax, [edi + 0x78]
cmp ebx, ebp
jl 0x40d6ed
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x18
ret
Function at 0x40d81b
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x3c
xor eax, eax
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
push edi
cmp dword [ebp + 0x10], ebx
je 0x40d99f
mov ecx, dword [ebp + 0x1c]
add ecx, dword [ebp + 0x58]
push ebx
adc eax, dword [ebp + 0x5c]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
push ecx
push dword [ebp + 0x84]
mov dword [esp + 0x30], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40d879
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp + 0x60]
mov ecx, ebp
push eax
push 0x103
call fcn.0040e256
push 2
pop eax
jmp 0x40d99f
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.0040522e
push eax
lea ecx, [esp + 0x44]
call fcn.004028b4
mov esi, ebx
mov byte [esp + 0x44], bl
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], ebx
cmp dword [ebp + 0x10], ebx
jbe 0x40d98a
push ebx
lea eax, [esp + 0x1c]
push eax
push 0x18
lea eax, [esp + 0x34]
push eax
push dword [ebp + 0x84]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40d970
cmp dword [esp + 0x18], ebx
je 0x40d970
test esi, esi
je 0x40d8f1
push esi
call fcn.00424704
pop ecx
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x14]
inc eax
push eax
call fcn.0040eb18
mov esi, dword [esp + 0x14]
test al, al
je 0x40d96c
push ebx
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x44]
add eax, eax
push eax
push esi
push dword [ebp + 0x84]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40d970
cmp dword [esp + 0x18], ebx
je 0x40d970
mov eax, dword [esp + 0x3c]
xor ecx, ecx
mov word [esi + eax*2], cx
lea eax, [esp + 0x28]
push eax
lea ecx, [ebp + 0x78]
call fcn.0040e9dc
push dword [esp + 0x1c]
lea ecx, [ebp + 0x78]
call fcn.0040e9b5
push esi
lea ecx, [eax + 0x18]
call fcn.00404f39
mov edi, dword [esp + 0x1c]
inc edi
mov dword [esp + 0x1c], edi
cmp edi, dword [ebp + 0x10]
jb 0x40d8b7
jmp 0x40d98a
push 3
jmp 0x40d989
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp + 0x60]
mov ecx, ebp
push eax
push 0x103
call fcn.0040e256
push 2
pop ebx
push esi
call fcn.00424704
pop ecx
mov ecx, dword [esp + 0x40]
add ecx, 0xfffffff0
call fcn.004052ff
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
Function at 0x40d9a7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
xor eax, eax
push ebx
push esi
mov ebx, ecx
push edi
xor edi, edi
cmp dword [ebx + 0x9c], edi
jg 0x40db3d
mov ecx, dword [ebx + 0xc]
add ecx, dword [ebx + 0x58]
push edi
adc eax, dword [ebx + 0x5c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push ecx
push dword [ebx + 0x84]
mov dword [ebp - 0x28], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40da07
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebx + 0x60]
mov ecx, ebx
push eax
push 0x103
call fcn.0040e256
push 2
pop eax
jmp 0x40db3d
mov esi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], edi
cmp dword [ebx + 8], edi
jbe 0x40db34
push edi
lea eax, [ebp - 8]
push eax
push 8
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 0x84]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40db1a
cmp dword [ebp - 8], edi
je 0x40db1a
call fcn.0040522e
push eax
lea ecx, [ebp - 0x1c]
call fcn.004028b4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test esi, esi
je 0x40da68
push esi
call fcn.00424704
pop ecx
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 4]
inc eax
push eax
call fcn.0040eb18
mov esi, dword [ebp - 4]
test al, al
je 0x40db0a
push edi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
add eax, eax
push eax
push esi
push dword [ebx + 0x84]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40daef
cmp dword [ebp - 8], edi
je 0x40daef
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov word [esi + eax*2], cx
test esi, esi
jne 0x40dab2
mov eax, edi
jmp 0x40dab9
push esi
call fcn.0042a08a
pop ecx
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.00404eb4
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebx + 0x98]
call fcn.0040e92f
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.004052ff
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, dword [ebx + 8]
jb 0x40da1e
jmp 0x40db34
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebx + 0x60]
mov ecx, ebx
push eax
push 0x103
call fcn.0040e256
push 2
jmp 0x40db0c
push 3
mov ecx, dword [ebp - 0x1c]
pop edi
lea ecx, [ecx - 0x10]
call fcn.004052ff
jmp 0x40db34
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebx + 0x60]
mov ecx, ebx
push eax
push 0x103
call fcn.0040e256
push 2
pop edi
push esi
call fcn.00424704
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e8f5
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0xe4], edi
jle 0x40e922
push ebx
push edi
lea ecx, [esi + 0xe0]
call fcn.00409706
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc edi
cmp edi, dword [esi + 0xe4]
jl 0x40e904
pop ebx
pop edi
lea ecx, [esi + 0xe0]
pop esi
jmp fcn.0040972d

Function at 0x40ec12
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x2c], 0
je 0x40ec29
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 0xc]
cmp dword [eax - 0xc], 0
je 0x40ec84
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push edi
push eax
mov edi, str.SoftwareCaphyonSetups
push edi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp dword [ebp - 4], 0
je 0x40ec83
push dword [esi + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
lea ecx, [ebp - 8]
call fcn.00404f61
lea edx, [ebp - 8]
call fcn.00410281
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.004052ff
pop edi
lea ecx, [esi + 0x1c]
call fcn.0040a5e2
lea ecx, [esi + 0x10]
call fcn.0040a5e2
mov ecx, dword [esi + 0xc]
sub ecx, 0x10
call fcn.004052ff
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40eec5
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x448010]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push edi
mov edi, ecx
mov eax, dword [edi + 0xc]
cmp dword [eax - 0xc], 0
je 0x40ef57
push 0x104
lea eax, [ebp - 0x7c]
push eax
push dword [0x448e14]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40ef57
push esi
lea esi, [eax + eax]
cmp esi, 0x208
jae 0x40ef6d
xor eax, eax
and dword [ebp - 0x80], eax
mov word [ebp + esi - 0x7c], ax
lea eax, [ebp - 0x80]
push eax
push str.SoftwareCaphyonSetups
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
cmp dword [ebp - 0x80], 0
je 0x40ef56
lea eax, [esi + 2]
push eax
lea eax, [ebp - 0x7c]
push eax
push 1
push 0
push dword [edi + 0xc]
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
pop edi
call fcn.004246ea
lea esp, [ebp + 0x190]
pop ebp
ret
call fcn.00424ce7
int3