joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407a7a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov ebx, ecx
mov ecx, dword [ebx + 8]
xor edi, edi
inc edi
mov eax, edi
mov dword [ebp - 0x10], ebx
call fcn.0040cc98
mov esi, dword [ebp + 0x10]
xor ecx, ecx
cmp esi, ecx
jne 0x407aa6
mov dword [ebp - 8], edi
lea esi, [ebp - 0x14]
jmp 0x407aa9
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 0xc]
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [esi], ecx
push dword [ebx + 0x218]
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [esi]
cmp dword [ebp + 0xc], 0
jmp 0x407b0e
cmp dword [ebp - 4], 0
jne 0x407b16
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x407aeb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xa2
jne 0x407b16
mov eax, dword [esi]
sub dword [ebp + 0x10], eax
add dword [ebp + 8], eax
push 0
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
push dword [ebx + 0x218]
call dword [sym.imp.KERNEL32.dll_ReadFile]
add edi, dword [esi]
cmp dword [ebp + 0x10], 0
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], edi
ja 0x407acb
lea eax, [ebx + 0x220]
mov dword [esi], edi
add dword [eax], edi
adc dword [eax + 4], 0
mov eax, dword [ebp - 4]
test eax, eax
je 0x407b3e
cmp dword [ebp - 8], 0
je 0x407be2
cmp edi, dword [ebp + 0xc]
je 0x407be2
mov eax, dword [ebx + 8]
push 3
pop ecx
cmp dword [eax + 8], ecx
je 0x407b4c
mov dword [eax + 8], ecx
mov esi, dword [ebx + 8]
push 1
mov edi, 0x41b0c0
call fcn.0040cb78
xor esi, esi
cmp dword [ebp - 4], esi
je 0x407b73
mov ecx, dword [ebx + 8]
mov eax, dword [ecx]
lea edx, [ecx + 0x65]
push edx
mov dword [ecx + 0x61], esi
call dword [eax + 0x18]
jmp 0x407b82
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, dword [ebx + 8]
call fcn.0040d165
push dword [ebx + 0x218]
mov esi, dword [ebx + 8]
push str._IXStream__Handle__p_
call fcn.0040ce66
push dword [ebp - 8]
mov esi, dword [ebx + 8]
push str._IXStream__bExact__d_
call fcn.0040ce66
push dword [ebp - 0xc]
mov esi, dword [ebx + 8]
push dword [ebp + 0xc]
push str._IXStream__A_lire__u___lu__u_
call fcn.0040ce66
lea esi, [ebx + 0x234]
push dword [esi]
mov ebx, dword [ebx + 8]
push 0x6d63
push edi
call fcn.0040cccc
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax + 8]
add esp, 0x28
push dword [esi]
push 1
call fcn.0040ced7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x408a26
Capabilities:
Delete file

Disassembly:
push ecx
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
mov ebx, eax
call edi
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov dword [esp + 0x18], eax
call edi
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [esp + 0x10]
mov eax, ebx
call fcn.004087d9
test eax, eax
pop ecx
je 0x408a95
push 1
mov edi, 0x41b0c0
mov esi, ebx
call fcn.0040cb78
push ebp
push 0x6ddb
push edi
call fcn.0040ccb1
add esp, 0xc
push ebp
push 1
call fcn.0040ced7
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x408aa0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
mov ebx, eax
call edi
push dword [ebp + 8]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
call esi
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
call edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 4], 0
jne 0x408b26
call esi
cmp eax, 5
jne 0x408b26
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
mov eax, ebx
call fcn.00408f8a
test eax, eax
pop ecx
pop ecx
je 0x408b22
and dword [ebp - 4], 0xfffffffe
push dword [ebp - 4]
mov eax, ebx
push dword [ebp + 8]
call fcn.00409016
test eax, eax
pop ecx
pop ecx
je 0x408b22
push dword [ebp + 8]
mov eax, ebx
call fcn.00408a26
pop ecx
jmp 0x408b61
xor eax, eax
jmp 0x408b61
push dword [ebp - 4]
mov eax, ebx
call fcn.004087d9
test eax, eax
pop ecx
je 0x408b5e
push 1
mov edi, 0x41b0c0
mov esi, ebx
call fcn.0040cb78
push dword [ebp + 8]
push 0x6ddb
push edi
call fcn.0040ccb1
add esp, 0xc
push dword [ebp + 8]
push 1
call fcn.0040ced7
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408b89
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push esi
mov esi, dword [ebp + 8]
xor eax, eax
cmp word [esi], ax
je 0x408d13
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
call edi
push 0xffffffffffffffff
push esi
push 0x105
lea ebx, [ebp - 0x220]
mov dword [ebp - 8], eax
call fcn.0040b217
mov esi, ebx
call fcn.00408dbe
mov esi, dword [sym.imp.MSVCRT.dll_wcschr]
lea eax, [ebp - 0x21e]
push 0x5c
push eax
call esi
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x408c8a
lea eax, [ebp - 0x220]
cmp ebx, eax
jbe 0x408c09
cmp word [ebx - 2], 0x3a
je 0x408c7a
lea eax, [ebp - 0x21e]
cmp ebx, eax
jne 0x408c86
cmp word [ebp - 0x220], 0x5c
jne 0x408c86
push 0x5c
add ebx, 2
push ebx
call esi
test eax, eax
pop ecx
pop ecx
je 0x408cbf
push 0x5c
add eax, 2
push eax
jmp 0x408c80
and word [ebx], 0
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.00408b66
test eax, eax
pop ecx
pop ecx
jne 0x408c75
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x408c75
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x408d16
mov word [ebx], 0x5c
add ebx, 2
push 0x5c
push ebx
call esi
pop ecx
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x408c37
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x408cb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x408cbf
push 0
push dword [ebp + 8]
call fcn.00408f5c
test eax, eax
pop ecx
pop ecx
je 0x408cbf
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 8]
mov esi, eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [ebp + 0xc]
push dword [ebp - 4]
mov eax, ebx
call fcn.004087d9
test eax, eax
pop ecx
je 0x408d0e
push 1
mov edi, 0x41b0c0
mov esi, ebx
call fcn.0040cb78
push dword [ebp + 8]
push 0x6dde
push edi
call fcn.0040ccb1
add esp, 0xc
push dword [ebp + 8]
push 1
call fcn.0040ced7
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
leave
ret
lea eax, [ebp - 0x220]
mov dword [ebp + 8], eax
jmp 0x408cbf

Function at 0x408d21
Capabilities:
Delete directory

Disassembly:
push ecx
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
mov ebx, eax
call edi
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov dword [esp + 0x18], eax
call edi
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [esp + 0x10]
mov eax, ebx
call fcn.004087d9
test eax, eax
pop ecx
je 0x408d90
push 1
mov edi, 0x41b0c0
mov esi, ebx
call fcn.0040cb78
push ebp
push 0x6ddf
push edi
call fcn.0040ccb1
add esp, 0xc
push ebp
push 1
call fcn.0040ced7
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x408f8a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
mov esi, eax
call edi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp dword [ebx], 0xffffffff
setne al
push eax
mov eax, esi
call fcn.004087d9
test eax, eax
pop ecx
je 0x409009
push 1
mov edi, 0x41b0c0
call fcn.0040cb78
push dword [ebp + 0xc]
push dword [ebx]
mov ebx, esi
push 0x6de2
push edi
call fcn.0040ccb1
add esp, 0x10
push dword [ebp + 0xc]
push 1
call fcn.0040ced7
mov ebx, dword [ebp + 8]
xor eax, eax
cmp dword [ebx], 0xffffffff
pop edi
pop esi
setne al
pop ebx
leave
ret

Function at 0x409016
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
mov ebx, eax
call edi
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov dword [ebp - 8], eax
call edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 4]
mov eax, ebx
call fcn.004087d9
test eax, eax
pop ecx
je 0x40908b
push 1
mov edi, 0x41b0c0
mov esi, ebx
call fcn.0040cb78
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0x6de2
push edi
call fcn.0040ccb1
add esp, 0x10
push dword [ebp + 8]
push 1
call fcn.0040ced7
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409093
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
push 1
mov dword [esi + 8], eax
call edi
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x254]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
call ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [esi], 0xffffffff
jne 0x40912b
call ebx
cmp eax, 2
je 0x4090f9
call ebx
cmp eax, 0x12
je 0x4090f9
xor eax, eax
jmp 0x4090fc
xor eax, eax
inc eax
mov ebx, dword [ebp + 0x10]
push eax
mov eax, ebx
call fcn.004087d9
test eax, eax
pop ecx
je 0x409127
push 1
mov edi, 0x41b0c0
mov esi, ebx
call fcn.0040cb78
push 0x6de7
push edi
call fcn.0040ccb1
pop ecx
pop ecx
xor eax, eax
jmp 0x409157
lea edi, [ebp - 0x254]
call fcn.004092bd
test eax, eax
jne 0x409147
push dword [ebp + 0x10]
push esi
call fcn.0040915c
pop ecx
pop ecx
jmp 0x409157
lea eax, [ebp - 0x254]
mov edi, esi
call fcn.004098fb
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409406
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
call edi
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push dword [ebp + 0x10]
mov dword [ebp - 8], eax
push dword [ebp + 0xc]
call esi
mov ebx, eax
test ebx, ebx
jne 0x409497
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x409497
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 0x11c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x118], 4
jne 0x409497
cmp dword [ebp - 0x114], ebx
jne 0x409497
cmp dword [ebp - 0x10c], 2
jne 0x409497
mov dword [ebp - 4], 0x64
push dword [ebp + 8]
dec dword [ebp - 4]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
mov ebx, eax
test ebx, ebx
je 0x409497
cmp dword [ebp - 4], 0
jne 0x40947b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 8]
mov esi, eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test ebx, ebx
mov ebx, dword [ebp + 0x14]
setne al
mov dword [ebp - 4], eax
push eax
mov eax, ebx
call fcn.004087d9
test eax, eax
pop ecx
je 0x4094e7
push 1
mov edi, 0x41b0c0
mov esi, ebx
call fcn.0040cb78
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x6de6
push edi
call fcn.0040ccb1
add esp, 0x10
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409944
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 8]
lea ebx, [ebp - 0x210]
push 0x105
call fcn.0040b217
add esp, 0xc
mov edi, ebx
call fcn.0040b1be
mov esi, ebx
call fcn.00408d9b
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
call esi
mov edi, eax
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov dword [ebp - 4], eax
call esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x4099eb
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
push ebx
push esi
push edi
mov esi, eax
mov edi, ecx
mov ebx, edx
call fcn.00409c1d
test eax, eax
je 0x409aad
xor eax, eax
mov ax, word [esi]
push eax
call dword [sym.imp.MSVCRT.dll_towupper]
and word [ebp - 4], 0
mov word [ebp - 8], ax
lea eax, [ebp - 8]
push eax
mov word [ebp - 6], 0x3a
call fcn.00409944
cmp eax, 3
pop ecx
pop ecx
je 0x409aad
cmp eax, 2
je 0x409aad
push 0x104
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x409a86
push 0x1a
lea eax, [ebp - 0x214]
push 0x41b33c
push eax
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x409a86
lea eax, [ebp - 0x1e0]
push eax
lea eax, [ebp - 0x420]
call fcn.004099a9
test eax, eax
pop ecx
jne 0x409a8a
xor eax, eax
jmp 0x409abc
push 0xffffffffffffffff
lea eax, [ebp - 0x420]
push eax
push edi
call fcn.0040b217
push 0xffffffffffffffff
add esi, 4
mov eax, edi
push esi
mov edi, ebx
call fcn.0040b26d
add esp, 0x14
jmp 0x409ab9
push 0xffffffffffffffff
push esi
push edi
call fcn.0040b217
add esp, 0xc
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409ac1
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, edi
call fcn.00409c1d
test eax, eax
jne 0x409ae1
mov eax, 0x4b0
jmp 0x409bf3
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 1
push 1
call sub.MPR.dll_WNetOpenEnumW
test eax, eax
jne 0x409bf3
mov eax, 0x640
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
test esi, esi
pop ecx
jne 0x409b18
push 8
pop eax
jmp 0x409bf3
xor eax, eax
mov ax, word [edi]
push eax
call dword [sym.imp.MSVCRT.dll_towupper]
pop ecx
push ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x10]
call sub.MPR.dll_WNetEnumResourceW
cmp eax, 0xea
mov dword [ebp - 0x18], eax
jne 0x409b6c
mov eax, dword [ebp - 8]
push eax
push esi
mov dword [ebp - 0xc], eax
call dword [sym.imp.MSVCRT.dll_realloc]
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x409b29
push 8
pop eax
jmp 0x409bf2
xor edi, edi
cmp eax, edi
jne 0x409bdf
cmp dword [ebp - 4], edi
jle 0x409b29
lea ebx, [esi + 0x10]
mov eax, dword [ebx]
test eax, eax
je 0x409b91
movzx eax, word [eax]
push eax
call dword [sym.imp.MSVCRT.dll_towupper]
cmp word [ebp - 0x14], ax
pop ecx
je 0x409b9c
inc edi
add ebx, 0x20
cmp edi, dword [ebp - 4]
jl 0x409b7a
jmp 0x409b29
push 0xffffffffffffffff
shl edi, 5
push dword [edi + esi + 0x14]
mov edi, dword [ebp + 8]
push dword [ebp + 0xc]
mov ebx, edi
call fcn.0040b217
mov ebx, dword [ebp + 0x10]
add ebx, 4
add esp, 0xc
cmp word [ebx], 0x5c
je 0x409bd2
mov eax, dword [ebp + 0xc]
push 0xffffffffffffffff
push 0x41b3b0
call fcn.0040b26d
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
push 0xffffffffffffffff
push ebx
call fcn.0040b26d
pop ecx
pop ecx
push dword [ebp - 0x10]
call sub.MPR.dll_WNetCloseEnum
push esi
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [ebp - 0x18]
pop ecx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x40ba72
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2008
call fcn.00414e90
push ebx
push esi
push 0xc
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
xor ebx, ebx
cmp eax, ebx
pop ecx
je 0x40ba9a
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [ebp - 4], eax
jmp 0x40ba9d
mov dword [ebp - 4], ebx
push dword [edi + 0xc]
lea esi, [ebp - 8]
push str.R_03d
call fcn.0040bb8e
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
cmp ecx, ebx
jne 0x40babb
mov ecx, 0x4162fc
lea eax, [edi + 0x24]
call fcn.0040bdd4
push eax
push 0x1000
lea eax, [ebp - 0x2008]
push eax
mov esi, 0x41b580
push esi
push ecx
lea eax, [edi + 0x20]
call fcn.0040bdd4
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x2008]
push esi
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
jne 0x40bb10
push dword [ebp + 8]
mov eax, dword [ebp - 4]
push dword [0x41d0ec]
add eax, 8
call fcn.0040c49c
jmp 0x40bb3b
lea eax, [ebp - 0x2008]
push eax
mov eax, dword [ebp - 4]
add eax, 8
push eax
call fcn.0040bff3
mov eax, dword [ebp - 4]
push ebx
push ebx
push 0x41b578
push 0x41b574
add eax, 8
push eax
call fcn.0040c1b4
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
push esi
add eax, 4
push 0x41b56c
push eax
call fcn.0040c489
mov eax, dword [ebp - 4]
mov dword [eax], esi
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea esi, [edi + 4]
call fcn.0040bc8a
lea eax, [ebp - 8]
call fcn.0040bda0
pop esi
pop ebx
leave
ret 4

Function at 0x40d83c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push 0x11c
lea eax, [ebp - 0x11c]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 0x11c], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x118], 6
sbb eax, eax
inc eax
leave
ret

Function at 0x40d87e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x1c], edi
mov esi, ecx
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x440
jne 0x40d8a3
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x14]
movzx eax, word [eax + 0x30]
neg esi
sbb esi, esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x3c]
and esi, str.runas
push eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp eax, edi
pop edi
pop esi
je 0x40d8fc
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x18]
mov dword [edx], ecx
leave
ret
Function at 0x40d8fe
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
push 0x44
pop edi
push edi
mov esi, eax
xor ebx, ebx
lea eax, [ebp - 0x58]
push ebx
push eax
call sub.MSVCRT.dll_memset
push 0x10
lea eax, [ebp - 0x14]
push ebx
push eax
mov dword [ebp - 0x58], edi
mov word [ebp - 0x28], 1
call sub.MSVCRT.dll_memset
add esp, 0x18
mov dword [ebp - 0x14], ebx
call fcn.0040d83c
test eax, eax
je 0x40d962
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp + 0x14]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040d87e
add esp, 0x18
jmp 0x40da14
push dword [ebp + 8]
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
call edi
push dword [ebp + 0xc]
mov ebx, eax
call edi
add ebx, eax
lea eax, [ebx + ebx + 4]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00414e90
mov dword [ebp - 4], esp
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_wcscpy]
mov ebx, dword [sym.imp.MSVCRT.dll_wcscat]
push 0x41b5b8
push dword [ebp - 4]
call ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call ebx
xor ebx, ebx
add esp, 0x18
cmp esi, ebx
je 0x40d9c3
cmp word [esi], bx
je 0x40d9c3
push esi
call edi
pop ecx
inc eax
jmp 0x40d9c6
xor eax, eax
inc eax
add eax, eax
add eax, 3
and eax, 0xfffffffc
call fcn.00414e90
cmp esi, ebx
mov edi, esp
je 0x40d9e5
push esi
push edi
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
pop ecx
jmp 0x40d9e8
mov word [edi], bx
lea eax, [ebp - 0x14]
push eax
neg esi
lea eax, [ebp - 0x58]
push eax
sbb esi, esi
and esi, edi
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp dword [ebp - 0x10], ebx
je 0x40da14
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
lea esp, [ebp - 0x64]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40eb64
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x2c]
push ebx
push esi
push edi
mov dword [ebp - 4], edx
jmp 0x40eb7d
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
sub ecx, dword [eax + 0x74]
mov esi, dword [eax + 0x6c]
mov edi, dword [eax + 0x2c]
sub ecx, esi
lea edi, [edx + edi - 0x106]
cmp esi, edi
mov dword [ebp - 8], ecx
jb 0x40ebfc
mov edi, dword [eax + 0x38]
mov ecx, edx
mov ebx, ecx
shr ecx, 2
lea esi, [edi + edx]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [eax + 0x4c]
mov ecx, dword [eax + 0x44]
sub dword [eax + 0x70], edx
sub dword [eax + 0x6c], edx
sub dword [eax + 0x5c], edx
lea ecx, [ecx + esi*2]
dec ecx
dec ecx
movzx edi, word [ecx]
mov ebx, edi
sub ebx, edx
cmp edi, edx
sbb edi, edi
not edi
and edi, ebx
dec esi
mov word [ecx], di
jne 0x40ebc1
mov ecx, dword [eax + 0x40]
mov edi, edx
lea ecx, [ecx + edx*2]
dec ecx
dec ecx
movzx esi, word [ecx]
mov ebx, esi
sub ebx, edx
cmp esi, edx
sbb esi, esi
not esi
and esi, ebx
dec edi
mov word [ecx], si
jne 0x40ebe0
mov ecx, dword [ebp - 8]
add ecx, edx
mov ebx, dword [eax]
cmp dword [ebx + 4], 0
je 0x40ece1
mov edx, dword [eax + 0x74]
add edx, dword [eax + 0x6c]
add edx, dword [eax + 0x38]
push edx
call fcn.0040e9aa
mov edx, dword [ebp + 8]
add dword [edx + 0x74], eax
mov edi, dword [edx + 0x74]
cmp edi, 3
pop ecx
jb 0x40ec46
mov eax, dword [edx + 0x6c]
mov ecx, dword [edx + 0x38]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [edx + 0x58]
mov dword [edx + 0x48], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [edx + 0x54]
mov dword [edx + 0x48], eax
cmp edi, 0x106
jae 0x40ec5d
mov eax, dword [edx]
cmp dword [eax + 4], 0
jne 0x40eb77
mov edx, dword [ebp + 8]
mov ebx, dword [edx + 0x16c0]
mov eax, dword [edx + 0x3c]
cmp ebx, eax
jae 0x40ece1
mov esi, dword [edx + 0x6c]
add esi, edi
cmp ebx, esi
jae 0x40ecaa
sub eax, esi
mov ecx, eax
mov eax, 0x102
cmp ecx, eax
mov dword [ebp + 8], ecx
jbe 0x40ec88
mov ecx, eax
mov dword [ebp + 8], ecx
mov edi, dword [edx + 0x38]
mov ebx, ecx
shr ecx, 2
xor eax, eax
add edi, esi
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 8]
add eax, esi
mov dword [edx + 0x16c0], eax
jmp 0x40ece1
lea ecx, [esi + 0x102]
cmp ebx, ecx
jae 0x40ece1
sub esi, ebx
add esi, 0x102
sub eax, ebx
cmp esi, eax
jbe 0x40ecc4
mov esi, eax
mov edi, dword [edx + 0x38]
add edi, ebx
mov ecx, esi
mov ebx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
add dword [edx + 0x16c0], esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4111c6
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax + 0xc], ecx
mov dword [eax], 0x41ba08
mov dword [eax + 8], 0x41b9fc
mov dword [eax + 0x10], 0x67452301
mov dword [eax + 0x14], 0xefcdab89
mov dword [eax + 0x18], 0x98badcfe
mov dword [eax + 0x1c], 0x10325476
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
ret