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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push ebx
push esi
push edi
mov ebx, eax
call fcn.00401c36
and dword [ebp - 8], 0
add ebx, 0x2c
and word [ebp - 0x228], 0
push 0x208
lea eax, [ebp - 0x226]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 8]
push dword [ebp + 8]
mov esi, str.data_0
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add eax, 0x31
movsw word es:[edi], word [esi]
mov word [ebp - 0x12], ax
call sub.msvcrt.dll_wcslen
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
call sub.msvcrt.dll_wcslen
lea eax, [esi + eax + 1]
add esp, 0x14
cmp eax, 0x104
jae 0x401bd5
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x228]
call fcn.004046c1
pop ecx
pop ecx
xor edi, edi
jmp 0x401bde
xor edi, edi
mov word [ebp - 0x228], di
lea eax, [ebp - 0x228]
push eax
call fcn.00404070
mov esi, eax
cmp esi, 0xffffffff
pop ecx
mov dword [ebx - 0xc], esi
je 0x401c1f
push edi
push edi
push 6
push esi
mov byte [ebp - 1], 1
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push edi
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push esi
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
movzx eax, byte [ebp - 1]
mov dword [ebx], eax
inc dword [ebp - 8]
add ebx, 4
cmp dword [ebp - 8], 3
jl 0x401b6a
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4040a2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call sub.msvcrt.dll_wcslen
pop ecx
add eax, eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
leave
ret

Function at 0x404230
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
xor esi, esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
test ebp, ebp
je 0x40428d
push ebx
push edi
push ebp
call sub.msvcrt.dll_wcslen
pop ecx
lea ebx, [eax + eax + 2]
push ebx
push 0x2000
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x40428b
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push ebx
push ebp
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
mov esi, eax
neg esi
sbb esi, esi
neg esi
pop edi
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, esi
pop esi
pop ebp
ret

Function at 0x404298
Capabilities:
Get file size
Read file on windows
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [ebp + 8]
call fcn.00404070
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 8], eax
je 0x40432a
push ebx
push esi
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
lea eax, [esi + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x404313
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push 0
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push esi
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x404313
shr esi, 1
and word [edi + esi*2], 0
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x40431c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
jmp 0x404333
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 4]
leave
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x404665
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push dword [ebp + 8]
call fcn.00404446
test eax, eax
pop ecx
je 0x40467f
xor eax, eax
leave
ret
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.msvcrt.dll_wcscpy
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call sub.msvcrt.dll_wcsrchr
add esp, 0x10
test eax, eax
je 0x4046b4
and word [eax], 0
lea eax, [ebp - 0x20c]
push eax
call fcn.00404665
pop ecx
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
leave
ret
Function at 0x40473b
Capabilities:
Get common file path

Disassembly:
cmp word [0x417b10], 0
push esi
mov esi, 0x417b10
jne 0x40475c
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
mov dword [0x417d1c], eax
push esi
push dword [esp + 0xc]
call sub.msvcrt.dll_wcscpy
mov eax, dword [0x417d1c]
pop ecx
pop ecx
pop esi
ret

Function at 0x404ac7
Capabilities:
Create process on windows

Disassembly:
push 5
mov eax, 0x410434
push eax
push eax
push dword [esp + 0x14]
push 0x410c08
push dword [esp + 0x18]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x20
pop ecx
cmp ecx, eax
sbb eax, eax
neg eax
ret

Function at 0x405a10
Capabilities:
Read .ini file

Disassembly:
and word [esi], 0
push 0x417530
push dword [esp + 0xc]
push esi
push 0x410434
push dword [esp + 0x14]
push 0x417740
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
mov eax, esi
ret

Function at 0x405a35
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0040fdd0
and word [ebp - 0x2004], 0
push 0x2000
lea eax, [ebp - 0x2002]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x417530
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x410434
push dword [ebp + 8]
push 0x417740
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
je 0x405aa4
lea eax, [ebp - 0x2004]
push eax
push dword [ebp + 0xc]
call sub.msvcrt.dll_wcscpy
pop ecx
xor eax, eax
pop ecx
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x405aa8
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0040fdd0
and word [ebp - 0x2004], 0
push esi
push edi
push 0x2000
lea eax, [ebp - 0x2002]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0x417530
push edi
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x410434
push dword [ebp + 8]
mov esi, 0x417740
push esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
jne 0x405b15
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringW]
jmp 0x405b17
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x405e66
Capabilities:
Read .ini file

Disassembly:
push dword [esp + 4]
call fcn.00404446
test eax, eax
pop ecx
je 0x405eed
push esi
push edi
push dword [esp + 0xc]
mov edi, 0x417530
push edi
call sub.msvcrt.dll_wcscpy
push str.general
mov esi, 0x417740
push esi
call sub.msvcrt.dll_wcscpy
add esp, 0x10
push edi
push 0
push 0x410cbc
push esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
dec eax
neg eax
sbb eax, eax
inc eax
push 0x3f
push str.charset
mov esi, 0x4177d0
mov dword [0x4177c8], eax
call fcn.00405a10
push 0x3f
push str.TranslatorName
mov esi, 0x417850
call fcn.00405a10
push 0xff
push str.TranslatorURL
mov esi, 0x4178d0
call fcn.00405a10
add esp, 0x18
pop edi
pop esi
ret
Function at 0x406d68
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0040fdd0
push ebx
push esi
mov esi, 0x1fff
xor ebx, ebx
push esi
lea eax, [ebp - 0x2003]
push ebx
push eax
mov byte [ebp - 0x2004], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
push ebx
push esi
lea eax, [ebp - 0x2004]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2004]
push eax
call sub.msvcrt.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x2004]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop esi
pop ebx
leave
ret

Function at 0x407b4a
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2c0
push ebx
push ebp
mov ebp, dword [sym.imp.COMCTL32.dll_ImageList_Create]
push esi
mov esi, eax
xor ebx, ebx
cmp dword [esi + 0x2a4], ebx
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
je 0x407bde
cmp dword [esi + 0x2ac], ebx
je 0x407baf
push 0x2b0
lea eax, [esp + 0x24]
push ebx
push eax
mov dword [esp + 0x28], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x4001
push 0x2b4
lea eax, [esp + 0x24]
push eax
push ebx
push 0x410434
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov dword [esi + 0x298], eax
push eax
jmp 0x407bcf
push 1
push 1
push 0x19
push 0x10
push 0x10
call ebp
push ebx
push eax
mov dword [esi + 0x298], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push dword [esi + 0x298]
push 1
push 0x1003
push dword [esi + 0x290]
call edi
cmp dword [esi + 0x2a8], ebx
je 0x407c14
push 1
push 1
push 0x19
push 0x20
push 0x20
call ebp
push ebx
push eax
mov dword [esi + 0x29c], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push dword [esi + 0x29c]
push ebx
push 0x1003
push dword [esi + 0x290]
call edi
push 1
push 1
push 0x19
push 0x10
push 0x10
call ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push ebx
mov dword [esi + 0x294], eax
call ebp
push 0x1000
push 0x10
push 0x10
push ebx
push 0x85
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
push ebx
mov dword [esp + 0x18], eax
call ebp
push 0x1000
push 0x10
push 0x10
push ebx
push 0x86
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
push ebx
push dword [esi + 0x294]
mov dword [esp + 0x18], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov ebp, dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
push eax
push dword [esp + 0x18]
mov dword [esp + 0x20], eax
push dword [esi + 0x294]
call ebp
push dword [esp + 0x18]
push dword [esp + 0x14]
push dword [esi + 0x294]
call ebp
push dword [esp + 0x14]
mov ebp, dword [sym.imp.GDI32.dll_DeleteObject]
call ebp
push dword [esp + 0x10]
call ebp
mov eax, dword [esi + 0x294]
mov esi, dword [esi + 0x290]
push eax
push ebx
push 0x1208
push esi
call fcn.004032b5
pop ecx
push eax
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c0
ret
Function at 0x408da5
Capabilities:
Delete file
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push edi
push 0x411180
lea edi, [ebp - 0x208]
call fcn.004043fb
mov eax, dword [esi + 0x694]
pop ecx
push 1
push 1
push 2
mov ecx, edi
push ecx
push esi
call fcn.0040885b
test eax, eax
pop edi
je 0x408e1e
push dword [esi + 0x208]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x408df9
lea eax, [ebp - 0x208]
push eax
call fcn.00404298
pop ecx
jmp 0x408dff
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x408e11
push dword [esi + 0x208]
mov ecx, eax
call fcn.004040e9
pop ecx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
leave
ret

Function at 0x4090ab
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [esi + 0x694]
lea eax, [ebp - 4]
push eax
mov eax, edi
call fcn.0040694d
test eax, eax
je 0x4090e5
mov eax, dword [ebp - 4]
push 5
push 0
push 0
call fcn.00402ab6
push eax
push 0x410c08
push dword [esi + 0x208]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, edi
call fcn.00406306
pop edi
leave
ret
Function at 0x40aa55
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4004
call fcn.0040fdd0
push esi
push edi
xor eax, eax
cmp dword [ebp + 8], eax
push 0x4000
push eax
mov word [ebp - 0x4004], ax
lea eax, [ebp - 0x4002]
mov edi, ecx
push eax
je 0x40aab4
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x4004]
push eax
push dword [edi]
push dword [ebp + 0x14]
call fcn.00404d01
add esp, 0x18
push dword [ebp + 0x18]
lea eax, [ebp - 0x4004]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringW]
mov esi, eax
jmp 0x40aaf5
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 0x18]
lea eax, [ebp - 0x4004]
push 0x2000
push eax
push 0x410434
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
push dword [ebp + 0x14]
xor ecx, ecx
cmp ecx, eax
sbb esi, esi
push edi
lea edi, [ebp - 0x4004]
neg esi
call fcn.00404d8a
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x40aafb
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push dword [ebp + 0x18]
je 0x40ab19
push dword [esi]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040aa08
add esp, 0x10
pop ebp
ret
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
mov dword [esi], eax
pop ebp
ret

Function at 0x40ab46
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40ab7f
mov ecx, dword [ebp - 4]
cmp ecx, 2
jb 0x40ab7b
shr ecx, 1
and word [esi + ecx*2], ax
leave
ret
and word [esi], 0
leave
ret

Function at 0x40ae0d
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
push edi
call fcn.0040adde
xor edi, edi
cmp dword [0x417adc], edi
je 0x40ae38
call fcn.00404630
push edi
push 0x1c
push ebx
push edi
call dword [0x417adc]
jmp 0x40aea6
push 0x206
lea eax, [ebp - 0x24a]
push edi
push eax
mov word [ebp - 0x24c], di
call sub.msvcrt.dll_memset
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call fcn.0040ab2c
add esp, 0x18
cmp eax, edi
jne 0x40ae8f
push esi
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 4]
mov eax, 0x104
lea esi, [ebp - 0x24c]
call fcn.0040ab46
pop ecx
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
lea eax, [ebp - 0x24c]
push eax
push ebx
call sub.msvcrt.dll_wcscpy
xor eax, eax
cmp word [ebx], di
pop ecx
pop ecx
setne al
pop edi
leave
ret
Function at 0x40b4fa
Capabilities:
Read file on windows

Disassembly:
cmp dword [esi + 0x3c], 0
je 0x40b504
or eax, 0xffffffff
ret
cmp dword [esi + 4], 0
jne 0x40b54d
call sub.msvcrt.dll__errno
and dword [eax], 0
push dword [esi + 0x40]
push 0x4000
push 1
push dword [esi + 0x44]
call sub.msvcrt.dll_fread
add esp, 0x10
test eax, eax
mov dword [esi + 4], eax
jne 0x40b548
push dword [esi + 0x40]
mov dword [esi + 0x3c], 1
call sub.msvcrt.dll_ferror
test eax, eax
pop ecx
je 0x40b500
or dword [esi + 0x38], 0xffffffff
jmp 0x40b500
mov eax, dword [esi + 0x44]
mov dword [esi], eax
mov eax, dword [esi]
dec dword [esi + 4]
mov cl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, cl
ret

Function at 0x40b55b
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, eax
xor ebx, ebx
push edi
mov edi, dword [esi + 4]
inc ebx
cmp edi, 2
jae 0x40b5cb
test edi, edi
je 0x40b578
mov eax, dword [esi]
mov ecx, dword [esi + 0x44]
mov al, byte [eax]
mov byte [ecx], al
call sub.msvcrt.dll__errno
and dword [eax], 0
push dword [esi + 0x40]
mov ecx, edi
mov eax, 0x4000
sar eax, cl
push eax
mov eax, dword [esi + 0x44]
add eax, edi
push ebx
push eax
call sub.msvcrt.dll_fread
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x40b5b3
push dword [esi + 0x40]
call sub.msvcrt.dll_ferror
test eax, eax
pop ecx
je 0x40b5b3
or dword [esi + 0x38], 0xffffffff
add dword [esi + 4], edi
mov eax, dword [esi + 4]
cmp eax, 2
mov ecx, dword [esi + 0x44]
mov dword [esi], ecx
jae 0x40b5cb
mov dword [esi + 0x58], eax
jmp 0x40b684
mov eax, dword [esi]
cmp byte [eax], 0x1f
jne 0x40b681
cmp byte [eax + 1], 0x8b
jne 0x40b681
add dword [esi + 4], 0xfffffffe
add eax, 2
mov dword [esi], eax
call fcn.0040b4fa
mov edi, eax
call fcn.0040b4fa
cmp edi, 8
mov ebx, eax
jne 0x40b678
test bl, 0xe0
jne 0x40b678
push 6
pop edi
call fcn.0040b4fa
dec edi
jne 0x40b604
test bl, 4
je 0x40b633
call fcn.0040b4fa
mov edi, eax
call fcn.0040b4fa
shl eax, 8
add edi, eax
mov eax, edi
dec edi
test eax, eax
je 0x40b633
call fcn.0040b4fa
cmp eax, 0xffffffff
jne 0x40b622
test bl, 8
je 0x40b646
call fcn.0040b4fa
test eax, eax
je 0x40b646
cmp eax, 0xffffffff
jne 0x40b638
test bl, 0x10
je 0x40b659
call fcn.0040b4fa
test eax, eax
je 0x40b659
cmp eax, 0xffffffff
jne 0x40b64b
test bl, 2
je 0x40b669
push 2
pop edi
call fcn.0040b4fa
dec edi
jne 0x40b661
mov eax, dword [esi + 0x3c]
neg eax
sbb eax, eax
and eax, 0xfffffffd
mov dword [esi + 0x38], eax
jmp 0x40b684
mov dword [esi + 0x38], 0xfffffffd
jmp 0x40b684
mov dword [esi + 0x58], ebx
pop edi
pop esi
pop ebx
ret
Function at 0x40b9a3
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [0x41404c]
test eax, eax
je 0x40baa3
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [0x41404c], 0
xor eax, eax
movzx edx, byte [eax + 0x412548]
push 0x1f
pop ecx
sub ecx, edx
xor edx, edx
inc edx
shl edx, cl
or esi, edx
inc eax
cmp eax, 0xe
jb 0x40b9c3
xor ecx, ecx
push 8
mov eax, ecx
pop edx
test al, 1
je 0x40b9ed
shr eax, 1
xor eax, esi
jmp 0x40b9ef
shr eax, 1
dec edx
jne 0x40b9e3
mov dword [ecx*4 + 0x414b88], eax
inc ecx
cmp ecx, 0x100
jl 0x40b9de
mov edi, 0x415b88
mov ecx, 0xff00
mov eax, dword [edi - 0x1000]
mov esi, eax
and esi, ecx
mov ebx, eax
shl ebx, 0x10
add esi, ebx
mov edx, eax
shr edx, 8
shl esi, 8
mov ebx, edx
and ebx, ecx
add esi, ebx
mov ebx, eax
shr ebx, 0x18
add esi, ebx
mov dword [edi], esi
lea esi, [edi + 0x400]
mov dword [esp + 0x10], 3
and eax, 0xff
mov eax, dword [eax*4 + 0x414b88]
xor eax, edx
mov ebx, eax
and ebx, ecx
mov ebp, eax
shl ebp, 0x10
add ebx, ebp
mov edx, eax
shr edx, 8
shl ebx, 8
mov ebp, edx
and ebp, ecx
add ebx, ebp
mov ebp, eax
shr ebp, 0x18
add ebx, ebp
mov dword [esi - 0x1000], eax
mov dword [esi], ebx
add esi, 0x400
dec dword [esp + 0x10]
jne 0x40ba42
add edi, 4
cmp edi, 0x415f88
jl 0x40ba0c
pop edi
pop esi
pop ebp
mov dword [0x414048], 0
pop ebx
pop ecx
ret
mov eax, dword [0x414048]
test eax, eax
jne 0x40baa3
pop ecx
ret
Function at 0x40d350
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
cmp eax, ecx
mov dword [ebp - 8], edi
jb 0x40d3dd
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
add esp, 0xc
sub dword [esi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x40d39d
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x40d3bf
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x40d49c
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 8]
cmp ecx, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
jbe 0x40d405
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
test edx, edx
jne 0x40d410
xor eax, eax
jmp 0x40d45d
sub ecx, edx
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x18]
cmp ecx, 1
jne 0x40d42e
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
push edx
call fcn.0040dc6f
pop ecx
jmp 0x40d441
cmp ecx, 2
jne 0x40d447
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.0040baae
add esp, 0xc
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
push dword [ebp - 4]
push dword [edi]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x74], eax
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x40d488
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x40d49c
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x40d35b
pop edi
pop ebx
leave
ret
Function at 0x40fb48
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x4103e0
call fcn.0040fd5c
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x40fb83
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40fb83
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40fb9b
cmp eax, 0x20b
je 0x40fb88
mov dword [ebp - 0x1c], edi
jmp 0x40fbaf
cmp dword [ecx + 0x84], 0xe
jbe 0x40fb83
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x40fba9
cmp dword [ecx + 0x74], 0xe
jbe 0x40fb83
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x417fb0], 0xffffffff
or dword [0x417fb4], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x4143fc]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x4143f8]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x417fac], eax
call fcn.0040fd56
cmp dword [section..data], edi
jne 0x40fc0c
push fcn.0040fd56
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0040fd44
push 0x4103b4
push 0x4103b0
call sub.msvcrt.dll__initterm
mov eax, dword [0x4143f4]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x4143f0]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x30], eax
push 0x4103ac
push 0x410394
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x40fc72
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x40fd2c
mov dword [ebp - 0x34], esi
cmp word [esi], 0x22
jne 0x40fcc0
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x40fc8e
cmp ax, 0x22
jne 0x40fc7b
cmp word [esi], 0x22
jne 0x40fc99
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x40fca7
cmp ax, 0x20
jbe 0x40fc94
mov dword [ebp - 0x4c], edi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoW]
test byte [ebp - 0x4c], 1
je 0x40fccd
movzx eax, word [ebp - 0x48]
jmp 0x40fcd0
cmp word [esi], 0x20
jbe 0x40fc99
add esi, ebx
mov dword [ebp - 0x34], esi
jmp 0x40fcc0
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], edi
jne 0x40fcf1
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x40fd26
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0040fd95
ret