joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42079f
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x441610]
push esi
cmp eax, 0xffffffff
jne 0x420922
push edi
push 0x44
pop ecx
xor eax, eax
lea edi, [ebp - 0x110]
mov dword [ebp - 0x114], 0x114
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x114]
mov dword [0x441610], 0xfffffc18
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
pop edi
je 0x42091d
cmp dword [ebp - 0x104], 2
jne 0x42091d
cmp dword [ebp - 0x110], 5
jne 0x420896
cmp dword [ebp - 0x10c], 0
jne 0x420819
push 1
jmp 0x4208f0
cmp dword [ebp - 0x10c], 1
jne 0x420885
mov esi, dword [sym.imp.MSVCRT.dll__wcsnicmp]
lea eax, [ebp - 0x100]
push 0x7f
push eax
push 0x441618
call esi
add esp, 0xc
test eax, eax
jne 0x420846
push 3
jmp 0x4208f0
lea eax, [ebp - 0x100]
push 0x7f
push eax
push 0x4414ec
call esi
add esp, 0xc
test eax, eax
jne 0x420864
push 4
jmp 0x4208f0
lea eax, [ebp - 0x100]
push 0x7f
push eax
push str.Service_Pack_3
call esi
add esp, 0xc
neg eax
sbb eax, eax
and al, 0xfd
add eax, 5
jmp 0x420916
cmp dword [ebp - 0x10c], 2
jne 0x42091d
push 6
jmp 0x4208f0
cmp dword [ebp - 0x110], 6
jne 0x420900
cmp dword [ebp - 0x10c], 0
jne 0x4208e5
mov esi, dword [sym.imp.MSVCRT.dll__wcsnicmp]
lea eax, [ebp - 0x100]
push 0x7f
push eax
push 0x441618
call esi
add esp, 0xc
test eax, eax
jne 0x4208c9
push 8
jmp 0x4208f0
lea eax, [ebp - 0x100]
push 0x7f
push eax
push 0x4414ec
call esi
add esp, 0xc
neg eax
sbb eax, eax
add eax, 8
jmp 0x420916
cmp dword [ebp - 0x10c], 1
jne 0x4208f3
push 9
pop eax
jmp 0x420916
cmp dword [ebp - 0x10c], 2
jne 0x42091d
push 0xa
jmp 0x4208f0
xor eax, eax
cmp dword [ebp - 0x110], 7
setne al
dec eax
and ax, 0xfc21
add eax, 0x3e8
mov dword [0x441610], eax
jmp 0x420922
mov eax, dword [0x441610]
pop esi
leave
ret
Function at 0x420be0
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
mov eax, 0x432a44
call fcn.0042f560
mov eax, 0x1434
call fcn.0042f4a0
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x420c67
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x232]
mov word [ebp - 0x234], bx
rep stosd dword es:[edi], eax
push esi
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll_wcslen]
cmp word [esi + eax*2 - 2], 0x5c
pop ecx
push esi
jne 0x420c30
push 0x441644
jmp 0x420c35
push 0x441638
lea eax, [ebp - 0x234]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
or dword [ebp - 0x10], 0xffffffff
add esp, 0x10
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1440]
push 0x1000
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x420c6f
or eax, 0xffffffff
jmp 0x420da1
mov edx, dword [ebp - 0x28]
mov al, byte [ebp + 0xb]
shr edx, 2
mov byte [ebp - 0x24], al
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
push 0
mov ecx, 0x82
pop eax
lea edi, [ebp - 0x43e]
mov word [ebp - 0x440], bx
mov dword [ebp - 4], ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x14], ebx
je 0x420d92
lea esi, [ebp - 0x1440]
mov edi, edx
push dword [esi]
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x420d28
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x14]
push 4
push ecx
push eax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x420d1f
lea eax, [ebp - 0x440]
push 0x104
push eax
push dword [ebp - 0x14]
push dword [ebp + 8]
call sub.PSAPI.DLL_GetModuleFileNameExW
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x420d1f
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp + 8]
lea ecx, [ebp - 0x24]
push eax
call fcn.004210ef
jmp 0x420d28
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
dec edi
jne 0x420caf
cmp dword [ebp - 0x20], ebx
je 0x420d92
mov esi, dword [ebp - 0x1c]
sub esi, dword [ebp - 0x20]
sar esi, 2
je 0x420d92
mov eax, esi
shl eax, 2
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
pop ecx
cmp edi, ebx
je 0x420d7b
xor eax, eax
cmp esi, ebx
jbe 0x420d64
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx + eax*4]
mov dword [edi + eax*4], ecx
inc eax
cmp eax, esi
jb 0x420d56
push dword [ebp + 0xc]
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push edi
mov dword [ebp - 0x10], eax
call fcn.0042f3fe
pop ecx
xor edi, edi
cmp esi, ebx
jbe 0x420d92
mov eax, dword [ebp - 0x20]
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, esi
jb 0x420d81
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004210cf
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x42adf8
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x432d90
call fcn.0042f560
sub esp, 0x260
mov eax, dword [0x4416fc]
push esi
push edi
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov byte [ebp - 4], 1
jne 0x42ae2d
xor eax, eax
jmp 0x42ae32
push dword [ebp + 8]
call edi
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
push eax
call fcn.0042456f
mov esi, 0x441bf8
mov eax, esi
test eax, eax
je 0x42ae4c
push esi
call edi
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.004245a6
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
jne 0x42ae75
xor esi, esi
jmp 0x42afb7
mov esi, dword [sym.imp.MSVCRT.dll_wcscmp]
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll__wcsicmp]
lea eax, [ebp - 0x240]
push 0x43be74
push eax
call esi
pop ecx
test eax, eax
pop ecx
je 0x42af92
lea eax, [ebp - 0x240]
push 0x44081c
push eax
call esi
pop ecx
test eax, eax
pop ecx
je 0x42af92
cmp dword [ebp + 0xc], 0
jne 0x42aed0
lea eax, [ebp - 0x240]
push 0x441be0
push eax
call ebx
pop ecx
test eax, eax
pop ecx
je 0x42af92
xor eax, eax
cmp dword [ebp + 8], eax
je 0x42aedc
push dword [ebp + 8]
call edi
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
push eax
call fcn.0042456f
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x10]
push eax
push 1
mov dword [ebp - 0x1c], 0x5c
call fcn.004245a6
lea eax, [ebp - 0x240]
test eax, eax
je 0x42af10
lea eax, [ebp - 0x240]
push eax
call edi
lea ecx, [ebp - 0x240]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.004245a6
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x42af39
and al, 0xfe
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [ebp - 0x26c], 0x10
je 0x42af5e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call fcn.0042adf8
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x42af92
cmp dword [ebp + 0x10], 0
je 0x42af89
lea eax, [ebp - 0x240]
push str.index.dat
push eax
call ebx
pop ecx
test eax, eax
pop ecx
jne 0x42af89
lea eax, [ebp - 0x240]
push eax
push dword [ebp + 8]
call fcn.0042afdf
pop ecx
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x42ae82
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 1
pop esi
pop ebx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00424502
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00424502
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x42afdf
Capabilities:
Get file size
Write file on windows

Disassembly:
mov eax, 0x432da4
call fcn.0042f560
mov eax, 0x271c
call fcn.0042f4a0
mov eax, dword [0x4416fc]
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
mov edi, 0x2710
xor ebx, ebx
push edi
lea eax, [ebp - 0x2728]
push ebx
push eax
mov dword [ebp - 4], ebx
call sub.MSVCRT.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0xc
cmp dword [ebp + 8], ebx
jne 0x42b028
xor eax, eax
jmp 0x42b02d
push dword [ebp + 8]
call esi
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
push eax
call fcn.0042456f
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x10]
push eax
push 1
mov dword [ebp - 0x14], 0x5c
call fcn.004245a6
cmp dword [ebp + 0xc], ebx
jne 0x42b057
xor eax, eax
jmp 0x42b05c
push dword [ebp + 0xc]
call esi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
push eax
call fcn.004245a6
push ebx
push 0x80
push 3
push ebx
push 3
push 0x40000000
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x42b0e3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push ebx
push 0x40
mov esi, eax
push dword [ebp + 8]
sub esi, 0x40
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, ebx
jbe 0x42b0d7
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x18]
cmp esi, edi
push 0
push eax
jbe 0x42b0ca
lea eax, [ebp - 0x2728]
push edi
push eax
push dword [ebp + 8]
call ebx
sub esi, edi
jne 0x42b0ad
jmp 0x42b0d7
lea eax, [ebp - 0x2728]
push esi
push eax
push dword [ebp + 8]
call ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00424502
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x42b234
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4008
call fcn.0042f4a0
and word [ebp - 0x4008], 0
push edi
mov ecx, 0xfff
xor eax, eax
lea edi, [ebp - 0x4006]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x42b2e3
cmp eax, 0x3fff
ja 0x42b2e3
lea ecx, [ebp - 0x4008]
push ecx
push eax
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x42b2e3
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x4008]
push 0x43af64
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x42b2e3
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
movzx ecx, word [eax + 0xc]
push ecx
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
push ecx
movzx ecx, word [eax + 8]
mov eax, dword [eax + 8]
push ecx
shr eax, 0x10
push eax
push 0x43d760
push esi
push edi
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x1c
and word [edi + esi*2 - 2], 0
push 1
pop eax
pop esi
jmp 0x42b2e5
xor eax, eax
pop edi
leave
ret
Function at 0x42c632
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2d10
call fcn.0042f4a0
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x42c753
cmp dword [ebp + 0xc], esi
je 0x42c753
push ebx
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov edi, 0x2710
push dword [ebp - 4]
lea eax, [ebp - 0x600]
push 0x441d84
push 0x200
push eax
call fcn.0041c40b
add esp, 0x10
lea eax, [ebp - 0x600]
push esi
push esi
push 3
push esi
push 3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42c73f
push 0xc
lea eax, [ebp - 0x18]
push esi
push eax
mov dword [ebp - 0xc], esi
call sub.MSVCRT.dll_memset
push edi
lea eax, [ebp - 0x2d10]
push esi
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0xc]
push esi
push eax
lea eax, [ebp - 0x2d10]
push edi
push eax
lea eax, [ebp - 0x18]
push 0xc
push eax
push 0x2d1400
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x42c733
push 0x3e8
lea eax, [ebp - 0x400]
push esi
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x400]
push eax
push 1
push dword [ebp - 0x2cf8]
lea eax, [ebp - 0x2d10]
push eax
call fcn.0040681e
add esp, 0x1c
lea eax, [ebp - 0x400]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042c3fa
test eax, eax
jne 0x42c733
mov dword [ebp - 8], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], esi
jne 0x42c74c
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x10
jl 0x42c661
mov eax, dword [ebp - 8]
pop edi
pop ebx
jmp 0x42c755
xor eax, eax
pop esi
leave
ret
Function at 0x42ccc7
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4f0
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x42ce1f
cmp dword [ebp + 0xc], ebx
je 0x42ce1f
push esi
push 0x64
lea eax, [ebp - 0x7c]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 8
push ebx
push 0x441e90
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x42cdff
mov dword [ebp - 8], ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x2e8]
mov dword [ebp - 0x14], 0x104
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x42cdf6
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x2e8]
push ebx
push eax
push dword [ebp - 4]
call esi
test eax, eax
jne 0x42cdee
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], 1
push eax
lea eax, [ebp - 0x4f0]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push 0x441e78
mov dword [ebp - 0x10], 0x208
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42cde5
push 0x64
lea eax, [ebp - 0xe0]
push ebx
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0xe0]
push 0x64
push eax
lea eax, [ebp - 0x4f0]
push eax
call fcn.0042ce24
add esp, 0x18
test eax, eax
je 0x42cde5
cmp byte [ebp - 0x7c], bl
je 0x42cdd3
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0xe0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jge 0x42cde5
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0x7c]
push 0x64
push eax
call fcn.0042c3fa
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 8]
jmp 0x42cd19
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x7c], bl
pop esi
je 0x42ce1f
lea eax, [ebp - 0x7c]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042c3fa
xor ecx, ecx
test eax, eax
setge cl
mov eax, ecx
jmp 0x42ce21
xor eax, eax
pop ebx
leave
ret
Function at 0x63281c60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x63281cbb
cmp byte [esi + ebx - 1], 0xa
je 0x63281c8f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x632870a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x401c8f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x401c97
mov dword [ecx*4 + 0x4e6080], eax
inc ecx
cmp ecx, 0x100
jb 0x401c92
mov edx, 0x800
jmp 0x401ce4
mov eax, dword [ecx*4 + 0x4e5c80]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4e6080]
inc ecx
mov dword [ecx*4 + 0x4e607c], eax
cmp ecx, edx
jb 0x401cc3
mov dword [0x4dff80], 0x401107
call fcn.00404979
pop esi
test eax, eax
jne 0x401d06
mov dword [0x4dff80], 0x4011a3
ret

Function at 0x404726
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x40473f
leave
ret
add dword [ebp + 0x10], 5
or dword [ebp + 0xc], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + ecx - 4]
push edi
mov dword [ebp - 4], ecx
lea edi, [eax + esi]
jmp 0x404762
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x404767
inc edi
cmp edi, dword [ebp - 4]
jb 0x404759
mov eax, edi
sub eax, esi
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 4]
jae 0x40485f
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x4047be
xor edx, edx
mov cl, byte [edi + 4]
mov dword [ebp + 0xc], eax
test cl, cl
je 0x404792
cmp cl, 0xff
jne 0x4047e9
movzx esi, cl
movzx ecx, byte [edi + 3]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 2]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 1]
shl esi, 8
or esi, ecx
cmp dword [ebp + 0x18], 0
je 0x4047f7
lea ebx, [esi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x4047fe
dec ecx
shl edx, cl
and edx, 7
je 0x404783
movzx ecx, byte [edx + 0x473424]
mov ebx, edi
sub ebx, ecx
cmp byte [edx + 0x47341c], 0
mov cl, byte [ebx + 4]
je 0x4047e6
test cl, cl
je 0x4047e6
cmp cl, 0xff
jne 0x404783
mov dword [ebp + 0xc], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x404754
sub esi, eax
sub esi, dword [ebp + 0x10]
mov ebx, esi
test edx, edx
je 0x404832
movzx esi, byte [edx + 0x473424]
push 0x18
shl esi, 3
pop ecx
sub ecx, esi
mov eax, ebx
shr eax, cl
test al, al
je 0x40481d
cmp al, 0xff
jne 0x40482f
mov eax, dword [ebp - 8]
push 0x20
pop ecx
sub ecx, esi
xor esi, esi
inc esi
shl esi, cl
dec esi
xor esi, ebx
jmp 0x4047b0
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [edi + 2], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x404754
mov esi, eax
sub esi, dword [ebp + 0xc]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret
Function at 0x404a2c
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x14], ecx
lea ecx, [esi + 0xc]
push ecx
movzx ecx, byte [esp + 0x10]
neg ecx
sbb ecx, ecx
and ecx, 4
push ecx
lea eax, [esi + 0x10]
push eax
push 0x403df6
push 0
push 0
mov dword [eax], esi
call fcn.0044da5a
add esp, 0x18
xor ecx, ecx
test eax, eax
mov dword [esi + 4], eax
setne cl
mov al, cl
pop esi
ret 8
Function at 0x408291
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xa8]
sub esp, 0x128
mov eax, dword [0x4de668]
xor eax, ebp
mov dword [ebp + 0xa4], eax
mov eax, dword [ebp + 0xb4]
push ebx
push esi
mov esi, dword [ebp + 0xb8]
push edi
mov edi, dword [ebp + 0xbc]
push 0x4736dc
push dword [ebp + 0xb0]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x64], edi
call fcn.0044ee6d
xor ebx, ebx
pop ecx
pop ecx
mov dword [ebp - 0x50], eax
cmp eax, ebx
jne 0x408310
cmp esi, ebx
je 0x408309
lea eax, [ebp - 0x80]
push eax
call fcn.004078db
pop ecx
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
call fcn.00407371
push ebx
push 1
lea ecx, [ebp - 0x80]
call fcn.00407093
xor al, al
jmp 0x408400
cmp edi, ebx
je 0x40831b
mov eax, dword [edi]
mov dword [ebp - 0x5c], eax
jmp 0x40831e
mov dword [ebp - 0x5c], ebx
push 9
xor eax, eax
pop ecx
mov word [ebp + 0x7c], ax
lea edi, [ebp + 0x7e]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x58]
push 0xffffffffffffffff
push ebx
stosw word es:[edi], ax
call fcn.00407013
push 2
push ebx
push dword [ebp - 0x50]
call fcn.0044ed22
push dword [ebp - 0x50]
call fcn.0044ec2a
push ebx
push ebx
push dword [ebp - 0x50]
mov edi, eax
call fcn.0044ed22
add esp, 0x1c
xor esi, esi
cmp edi, ebx
je 0x4083c2
push edi
call fcn.0044ddfe
push dword [ebp - 0x50]
mov ebx, eax
push 1
push edi
push ebx
call fcn.0044ea70
push edi
push ebx
push esi
call fcn.004068ab
mov esi, eax
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044ddfe
push edi
push ebx
push eax
mov dword [ebp - 0x54], eax
call fcn.004068ab
mov ecx, dword [ebp - 0x58]
add esp, 0x30
push esi
push dword [ebp - 0x54]
call fcn.00407583
push dword [ebp - 0x54]
call fcn.0044e034
push ebx
call fcn.0044e034
pop ecx
pop ecx
xor ebx, ebx
push esi
push edi
lea eax, [ebp + 0x7c]
push eax
lea eax, [ebp - 0x4c]
push 0x4736a4
push eax
call fcn.0044e5c6
mov ecx, dword [ebp - 0x60]
add esp, 0x14
cmp ecx, ebx
je 0x4083e9
lea eax, [ebp - 0x4c]
push eax
call fcn.00407621
push dword [ebp - 0x50]
call fcn.0044e754
mov eax, dword [ebp - 0x64]
pop ecx
cmp eax, ebx
je 0x4083fe
mov ecx, dword [ebp - 0x5c]
mov dword [eax], ecx
mov al, 1
mov ecx, dword [ebp + 0xa4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044d52b
add ebp, 0xa8
leave
ret

Function at 0x416ca9
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x466e8c
Capabilities:
Write file on windows

Disassembly:
push 0x48
mov eax, 0x46b159
call fcn.00469ea4
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x3c], ebx
je 0x466f9e
cmp byte [esi + 0x42], bl
je 0x466f9e
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 4]
movzx eax, ax
cmp di, ax
jne 0x466ec8
xor al, al
jmp 0x466fa0
push ebx
push 8
lea ecx, [ebp - 0x2c]
call fcn.00466e62
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00466c3e
mov ecx, eax
call fcn.004665e5
mov edi, dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00466c3e
mov ecx, eax
call fcn.004665e5
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x30]
push eax
add edi, ebx
push edi
push dword [ebp - 0x34]
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x466f38
dec eax
je 0x466f3c
dec eax
dec eax
je 0x466f9a
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040954e
mov al, bl
jmp 0x466fa0
mov byte [esi + 0x42], 0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00466c3e
mov ecx, eax
call fcn.004665e5
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x466f7c
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00466c3e
mov ecx, eax
call fcn.004665e5
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0044efe6
add esp, 0x10
cmp edi, eax
jne 0x466f26
cmp byte [esi + 0x42], 0
je 0x466f9a
test edi, edi
jne 0x466ed6
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00409a15
jmp 0x466ed6
mov bl, 1
jmp 0x466f28
mov al, 1
call fcn.00469eee
ret