joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a221
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x4cc
push ebx
push ebp
mov ebp, dword [sym.imp.COMCTL32.dll_ImageList_Create]
push esi
mov esi, eax
xor ebx, ebx
cmp dword [esi + 0x2c0], ebx
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
je 0x40a2e8
cmp dword [esi + 0x2c8], ebx
je 0x40a2b8
push 0x2b0
lea eax, [esp + 0x230]
push ebx
push eax
mov dword [esp + 0x234], ebx
call sub.msvcrt.dll_memset
push 0x208
lea eax, [esp + 0x2e]
push ebx
push eax
mov word [esp + 0x34], bx
call sub.msvcrt.dll_memset
add esp, 0x18
push 0x104
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
push 0x4001
push 0x2b4
lea eax, [esp + 0x230]
push eax
push ebx
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov dword [esi + 0x2b4], eax
push eax
jmp 0x40a2d9
push 1
push 1
push 0x19
push 0x10
push 0x10
call ebp
push 1
push eax
mov dword [esi + 0x2b4], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push dword [esi + 0x2b4]
push 1
push 0x1003
push dword [esi + 0x2ac]
call edi
cmp dword [esi + 0x2c4], ebx
je 0x40a31f
push 1
push 1
push 0x19
push 0x20
push 0x20
call ebp
push 1
push eax
mov dword [esi + 0x2b8], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push dword [esi + 0x2b8]
push ebx
push 0x1003
push dword [esi + 0x2ac]
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 + 0x2b0], 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 + 0x14], 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 + 0x2b0]
mov dword [esp + 0x1c], 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 + 0x14]
mov dword [esp + 0x20], eax
push dword [esi + 0x2b0]
call ebp
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esi + 0x2b0]
call ebp
push dword [esp + 0x10]
mov ebp, dword [sym.imp.GDI32.dll_DeleteObject]
call ebp
push dword [esp + 0x14]
call ebp
mov eax, dword [esi + 0x2b0]
mov esi, dword [esi + 0x2ac]
push eax
push ebx
push 0x1208
push esi
call fcn.00402bfb
pop ecx
push eax
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4cc
ret
Function at 0x40b93f
Capabilities:
Delete file
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
push 0x411470
lea edi, [ebp - 0x208]
mov esi, eax
call fcn.00405dcc
mov eax, dword [esi + 0x69c]
pop ecx
push 1
push 1
push 2
mov ecx, edi
push ecx
push eax
call fcn.0040b61e
test eax, eax
je 0x40b9b6
push dword [esi + 0x208]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40b991
mov eax, edi
push eax
call fcn.00405ca7
pop ecx
jmp 0x40b997
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x40b9a9
push dword [esi + 0x208]
mov ecx, eax
call fcn.00405aff
pop ecx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
pop edi
pop esi
leave
ret

Function at 0x40bc0c
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, eax
mov eax, dword [esi + 0x698]
xor dword [eax + 0x434], 1
mov eax, esi
call fcn.0040bac3
push 0
call fcn.0040aa36
mov eax, dword [esi + 0x698]
mov eax, dword [eax + 0x434]
neg eax
sbb eax, eax
and eax, 5
push eax
push dword [esi + 0x778]
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.0040af1b
mov eax, dword [esi + 0x698]
cmp dword [eax + 0x434], 0
je 0x40bc77
mov esi, dword [esi + 0x778]
push 0x40b
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
pop esi
ret
Function at 0x40d23b
Capabilities:
Get file size
Read file via mapping
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call fcn.0040d34d
test eax, eax
je 0x40d346
push esi
push edi
mov edi, 0x8000
lea esi, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], 0x1388
call fcn.00406f06
push dword [ebp - 4]
push ebx
push 0x40
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40d33c
push ebx
push ebx
push 0x80000000
lea eax, [ebp + 0x10]
push eax
mov dword [ebp + 0x10], ebx
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_DuplicateHandle]
cmp dword [ebp + 0x10], ebx
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
je 0x40d337
push ebx
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push dword [ebp + 0x14]
mov dword [ebp + 0xc], eax
call fcn.00405a9f
pop ecx
push ebx
push ebx
push ebx
push 2
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x40d32d
push dword [ebp + 0xc]
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov esi, eax
cmp esi, ebx
je 0x40d328
push ebx
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0xc]
mov dword [ebp + 0x14], ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
push dword [ebp - 8]
call edi
push dword [ebp + 8]
call edi
push dword [ebp + 0x10]
call edi
push dword [ebp - 4]
call edi
lea ecx, [ebp - 0x14]
call fcn.00406eed
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x10
Function at 0x40dae5
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x678
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [edi + 0x2c]
call fcn.004046a3
xor ebx, ebx
push ebx
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
push 0x228
mov dword [ebp - 8], eax
lea eax, [ebp - 0x674]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x678]
push eax
push dword [ebp - 8]
mov dword [ebp - 0x678], 0x22c
call sub.KERNEL32.DLL_Process32FirstW
jmp 0x40dc74
lea eax, [ebp - 0x240]
call fcn.0040d5e9
mov eax, dword [ebp - 0x670]
mov ecx, dword [ebp - 0x660]
mov esi, dword [sym.imp.KERNEL32.DLL_OpenProcess]
push eax
push ebx
push 0x410
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x30], ecx
call esi
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x40db9a
call fcn.00406052
cmp dword [eax + 4], 5
jbe 0x40dc65
push dword [ebp - 0x240]
push ebx
push 0x1000
call esi
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40dc65
push 0x208
lea eax, [ebp - 0x44a]
push ebx
push eax
mov word [ebp - 0x44c], bx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x44c]
push eax
push dword [ebp - 4]
mov eax, edi
call fcn.0040dc9b
cmp word [ebp - 0x44c], bx
je 0x40dbda
cmp word [ebp - 0x44c], 0x3f
jne 0x40dc2d
cmp dword [0x41572c], ebx
mov dword [ebp - 0xc], 0x104
jne 0x40dc13
push str.kernel32.dll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
cmp eax, ebx
je 0x40dc13
push str.QueryFullProcessImageNameW
push eax
mov dword [0x41572c], 1
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x415730], eax
mov eax, dword [0x415730]
cmp eax, ebx
je 0x40dc2d
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x44c]
push ecx
push ebx
push dword [ebp - 4]
call eax
lea esi, [ebp - 0x44c]
lea edi, [ebp - 0x23c]
call fcn.0040d744
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 4]
call fcn.0040da8f
add esp, 0x14
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x240]
push eax
lea eax, [edi + 0x2c]
call fcn.0040dd25
lea eax, [ebp - 0x678]
push eax
push dword [ebp - 8]
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x40db3c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40dcc3
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi], 0
jne 0x40dd24
push edi
push str.psapi.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.GetModuleBaseNameW
push eax
mov dword [esi], eax
call edi
push str.EnumProcessModules
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.EnumProcessModulesEx
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.GetModuleFileNameExW
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.EnumProcesses
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push str.GetModuleInformation
push dword [esi]
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x10], eax
pop edi
ret
Function at 0x40e523
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20000
call fcn.0040f310
cmp dword [ebp + 8], 0
je 0x40e588
test esi, esi
je 0x40e576
push 0x22
push esi
call sub.msvcrt.dll_wcschr
test eax, eax
pop ecx
pop ecx
je 0x40e576
and word [ebp - 0x20000], 0
push esi
push 0x4119c4
lea eax, [ebp - 0x20000]
push 0xfffe
push eax
call sub.msvcrt.dll__snwprintf
add esp, 0x10
push dword [ebp + 0x1c]
lea eax, [ebp - 0x20000]
push eax
jmp 0x40e57a
push dword [ebp + 0x1c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringW]
leave
ret
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
leave
ret

Function at 0x40e5a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4004
call fcn.0040f310
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 0x40e5ff
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x4004]
push eax
push dword [edi]
push dword [ebp + 0x14]
call fcn.004065b1
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 0x40e640
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 0x18]
lea eax, [ebp - 0x4004]
push 0x2000
push eax
push 0x410484
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.0040663a
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x40e646
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push dword [ebp + 0x18]
je 0x40e664
push dword [esi]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040e4d6
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 0x40e677
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 0x40e6b0
mov ecx, dword [ebp - 4]
cmp ecx, 2
jb 0x40e6ac
shr ecx, 1
and word [esi + ecx*2], ax
leave
ret
and word [esi], 0
leave
ret
Function at 0x40ea84
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
push edi
call fcn.0040ea55
xor edi, edi
cmp dword [0x4152a4], edi
je 0x40eaaf
call fcn.00406052
push edi
push 0x1c
push ebx
push edi
call dword [0x4152a4]
jmp 0x40eb24
push 0x206
lea eax, [ebp - 0x24a]
push edi
push eax
mov word [ebp - 0x24c], di
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x40eb0d
push esi
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 4]
mov eax, 0x104
lea esi, [ebp - 0x24c]
call fcn.0040e677
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 0x40edff
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x10], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, esi
mov dword [ebp - 4], eax
jbe 0x40ef91
push ebx
mov eax, edi
call fcn.00406f8d
push dword [ebp - 4]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ebx, eax
push ebx
push dword [ebp - 4]
push esi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x410ac8
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40ee82
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x30]
mov dword [edi + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edi], ecx
mov ecx, dword [eax + 0x14]
mov dword [edi + 0xc], ecx
mov ecx, dword [eax + 0x10]
mov dword [edi + 8], ecx
mov ecx, dword [eax + 0x24]
mov dword [edi + 0x10], ecx
mov eax, dword [eax + 0x28]
mov dword [edi + 0x14], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push str.VarFileInfoTranslation
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40eed1
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push str._4.4X_4.4X
lea eax, [ebp - 0x38]
push 0x14
push eax
call sub.msvcrt.dll__snwprintf
add esp, 0x14
push 0x410484
lea eax, [ebp - 0x38]
push eax
push ebx
lea esi, [ebp - 0x238]
call fcn.0040ed70
test eax, eax
jne 0x40eee1
lea eax, [ebp - 0x38]
push str.040904E4
push eax
call sub.msvcrt.dll_wcscpy
pop ecx
pop ecx
push 0x411c2c
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x18]
push ebx
call fcn.0040ed70
push 0x411c44
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x218]
push ebx
call fcn.0040ed70
push 0x411c64
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x418]
push ebx
call fcn.0040ed70
push 0x411c7c
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x618]
push ebx
call fcn.0040ed70
push 0x411c9c
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x818]
push ebx
call fcn.0040ed70
push 0x411cb4
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0xa18]
push ebx
call fcn.0040ed70
push 0x411cd0
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0xc18]
push ebx
call fcn.0040ed70
push str.OriginalFileName
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0xe18]
push ebx
call fcn.0040ed70
xor esi, esi
push ebx
inc esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
mov eax, esi
pop esi
leave
ret 4
Function at 0x40f07e
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x410420
call fcn.0040f28c
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x40f0b9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40f0b9
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40f0d1
cmp eax, 0x20b
je 0x40f0be
mov dword [ebp - 0x1c], edi
jmp 0x40f0e5
cmp dword [ecx + 0x84], 0xe
jbe 0x40f0b9
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x40f0df
cmp dword [ecx + 0x74], 0xe
jbe 0x40f0b9
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 [0x415740], 0xffffffff
or dword [0x415744], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x4143cc]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x4143c8]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x41573c], eax
call fcn.00401ca1
cmp dword [section..data], edi
jne 0x40f142
push fcn.00401ca1
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0040f27a
push 0x4103f0
push 0x4103ec
call sub.msvcrt.dll__initterm
mov eax, dword [0x4143c4]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x4143c0]
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 0x4103e8
push 0x4103c0
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x40f1a8
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x40f262
mov dword [ebp - 0x34], esi
cmp word [esi], 0x22
jne 0x40f1f6
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x40f1c4
cmp ax, 0x22
jne 0x40f1b1
cmp word [esi], 0x22
jne 0x40f1cf
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x40f1dd
cmp ax, 0x20
jbe 0x40f1ca
mov dword [ebp - 0x4c], edi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoW]
test byte [ebp - 0x4c], 1
je 0x40f203
movzx eax, word [ebp - 0x48]
jmp 0x40f206
cmp word [esi], 0x20
jbe 0x40f1cf
add esi, ebx
mov dword [ebp - 0x34], esi
jmp 0x40f1f6
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 0x40f227
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x40f25c
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0040f2c5
ret
Function at 0x401e00
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x401f61
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x53b0d0]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x53b0d0]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x53b0d0]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x53b0d0]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x53b0d0]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x53b0d0]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x53b0d0]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x53b0d0]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x401e0c
cmp dword [ebp + 0x10], 0
je 0x401f9a
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x53b0d0]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
jne 0x401f67
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x401fb0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor eax, dword [ecx]
and eax, 0xff
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
shr ecx, 8
xor ecx, dword [eax*4 + 0x53b0d0]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 0xff
mov edx, dword [ebp + 8]
add ecx, dword [edx + 4]
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
imul edx, edx, 0x8088405
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
shr edx, 0x18
mov eax, dword [ebp + 8]
xor edx, dword [eax + 8]
and edx, 0xff
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x53b0d0]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
pop ebp
ret

Function at 0x405920
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 1
jne 0x405963
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40595e
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], 7
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x4059b2
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
add eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x10]
jbe 0x405983
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x10]
sub ecx, dword [eax + 0x14]
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov edx, dword [ebp + 8]
add ecx, dword [edx + 0x14]
push ecx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00511270
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
add edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], edx
mov eax, dword [ebp + 0x10]
mov esp, ebp
pop ebp
ret