joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4062e5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40b508
cmp edx, dword [eax]
je 0x406307
add eax, 8
inc ecx
cmp eax, 0x40b598
jl 0x4062f8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40b508]
jne 0x406435
mov eax, dword [0x40ba54]
cmp eax, 1
je 0x40640f
test eax, eax
jne 0x406338
cmp dword [0x40b1b4], 1
je 0x40640f
cmp edx, 0xfc
je 0x406435
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40636f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004037b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004038a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4063b2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004038a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40957c
push edi
call fcn.004077b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004037b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004037c0
lea eax, [ebp - 0xa0]
push 0x40955c
push eax
call fcn.004037c0
push dword [esi + 0x40b50c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004037c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407726
add esp, 0x2c
pop edi
jmp 0x406435
lea eax, [ebp + 8]
lea esi, [esi + 0x40b50c]
push 0
push eax
push dword [esi]
call fcn.004038a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x19cb1bda
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data_1
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x56e859aa
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp int.00401219

Function at 0x430002
Capabilities:
Authenticate hmac
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0xa5c01c1
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data_1
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x53022c06
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x40be0d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esi + 4], vtable.CZMOutlookMAPI.1.0
lea ecx, [esi + 0x10]
mov dword [esi], vtable.CZMOutlookMAPI.0
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
call sym.ZoomOutlookMAPI.exe_public:_void___thiscall_Cmm::CEvent::constructor_void_
lea eax, [ebp - 4]
mov dword [esi + 0x14], edi
push eax
push edi
push esi
push 0x40bef0
push edi
push edi
mov dword [esi + 0x18], edi
call fcn.00488d5c
add esp, 0x18
mov dword [esi + 8], eax
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x40bf2d
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x40bf67
push 0xbb8
push dword [esi + 0x10]
mov dword [esi + 0xc], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40bf5a
push 0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 8], 0
xor eax, eax
inc eax
pop esi
ret

Function at 0x40f2b0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [ecx]
xor edx, edx
push esi
push edi
push 0
push 0
inc edx
mov ecx, ebx
call fcn.0040eea0
push dword [ebp + 0xc]
mov esi, edx
mov ecx, ebx
push dword [ebp + 8]
xor edx, edx
mov edi, eax
call fcn.0040eea0
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
push edi
xor edx, edx
mov ecx, ebx
call fcn.0040eea0
pop ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x410120
Capabilities:
Set current directory

Disassembly:
add ecx, 4
cmp dword [ecx + 0x14], 8
jb 0x41012b
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
ret

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

Disassembly:
push esi
xor esi, esi
test ecx, ecx
jne 0x4103c6
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4103e1
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4103e1
mov edx, 0x410
xor ecx, ecx
and eax, edx
inc ecx
cmp eax, edx
cmove esi, ecx
mov eax, esi
pop esi
ret
Function at 0x4104c3
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x58005c]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
push 0x250
xor ebx, ebx
mov dword [esp + 0x10], edx
lea eax, [esp + 0x1c]
mov esi, ecx
push ebx
push eax
call fcn.004821f0
add esp, 0xc
or edi, 0xffffffff
test esi, esi
je 0x410627
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x41050b
sub ecx, edx
sar ecx, 1
je 0x410627
push ecx
push 0x4cb574
mov ecx, esi
call fcn.004102cb
mov ebx, eax
mov dword [esp + 0x18], ebx
pop ecx
pop ecx
test ebx, ebx
jne 0x410546
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x41061b
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41060b
mov ebx, esi
test byte [esp + 0x18], 0x10
je 0x410590
lea eax, [esp + 0x44]
push 0x4cb578
push eax
call fcn.00489665
pop ecx
pop ecx
test eax, eax
je 0x4105f3
lea eax, [esp + 0x44]
push 0x4cb57c
push eax
call fcn.00489665
pop ecx
pop ecx
test eax, eax
je 0x4105f3
push ecx
lea eax, [esp + 0x48]
mov ecx, ebx
push eax
call fcn.004102cb
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4105f3
test byte [esp + 0x18], 0x10
je 0x4105cd
mov ecx, esi
call fcn.004103b5
test eax, eax
jne 0x4105c4
mov edx, dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004104c3
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4105e3
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push 0
push eax
push esi
call dword [0x4b4460]
call dword [esp + 0x18]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41055f
mov ebx, dword [esp + 0x10]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
inc eax
jmp 0x410631
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x26c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047f860
mov esp, ebp
pop ebp
ret
Function at 0x4106c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x410756
mov ecx, esi
push ebx
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4106da
sub ecx, edx
sar ecx, 1
je 0x410755
xor eax, eax
push edi
mov word [ebp - 2], ax
lea eax, [ebp - 2]
push ecx
push eax
lea eax, [ecx + 6]
push eax
lea ecx, [ebp - 0x10]
call fcn.00412f3a
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
sub eax, ebx
push 0xffffffffffffffff
push esi
sar eax, 1
push eax
push ebx
call sym.ZoomOutlookMAPI.exe_cmm_wstr_ncpy
xor edi, edi
add esp, 0x10
inc edi
movzx esi, word [ebx + edi*2]
cmp esi, 0x5c
je 0x410730
cmp esi, 0x2f
je 0x410730
test si, si
jne 0x410747
xor eax, eax
push eax
push ebx
mov word [ebx + edi*2], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov word [ebx + edi*2], si
test si, si
je 0x41074c
add edi, 1
jne 0x41071d
lea ecx, [ebp - 0x10]
call fcn.004133c1
pop edi
pop ebx
pop esi
leave
ret

Function at 0x410d6f
Capabilities:
Set current directory

Disassembly:
push 0x27c
mov eax, 0x4aa750
call fcn.004803aa
mov dword [ebp - 0x288], edx
mov esi, ecx
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x284], eax
xor eax, eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x2c], vtable.Cmm::CFileName.0
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x2c]
call sym.ZoomOutlookMAPI.exe_public:_void___thiscall_Cmm::CFileName::GetCurrentDirectoryW_void_
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x410e9e
lea eax, [ebp - 0x280]
push 0x4cb578
push eax
call sym.ZoomOutlookMAPI.exe_cmm_fs_find_first
pop ecx
pop ecx
mov esi, dword [ebp - 0x288]
mov byte [ebp - 4], 2
cmp word [ebp - 0x250], 0
je 0x410e92
push dword [ebp - 0x284]
lea eax, [ebp - 0x280]
mov ecx, ebx
push edi
push esi
push eax
call dword [0x4b4460]
call ebx
add esp, 0x10
cmp dword [edi], 0
jne 0x410e92
mov eax, dword [ebp - 0x27c]
and eax, 0x10
je 0x410e6b
push 0x2e
pop eax
cmp word [ebp - 0x250], ax
jne 0x410e52
cmp word [ebp - 0x24e], 0
je 0x410e6b
cmp word [ebp - 0x24e], ax
jne 0x410e52
cmp word [ebp - 0x24c], 0
je 0x410e6b
push dword [ebp - 0x284]
lea edx, [esi + 1]
push ebx
push edi
lea ecx, [ebp - 0x250]
call fcn.00410d6f
add esp, 0xc
lea eax, [ebp - 0x27c]
push eax
push dword [ebp - 0x280]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x410def
mov word [ebp - 0x250], ax
jmp 0x410def
push dword [ebp - 0x280]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], vtable.Cmm::CStringT_wchar_t_.0
call fcn.0040784f
call fcn.00480359
ret
Function at 0x411900
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x4119cd
movzx eax, word [esi]
test ax, ax
je 0x4119cd
push 0x2f
mov edi, eax
mov dword [ebp - 4], 0x5c
pop eax
push 0x2e
mov ecx, esi
xor edx, edx
pop ebx
jmp 0x411936
push 0x2f
pop eax
cmp di, 0x2a
je 0x4119cd
cmp di, word [ebp - 4]
je 0x41194b
cmp di, ax
jne 0x41197e
cmp edx, 2
jne 0x41195c
cmp word [ecx - 2], bx
jne 0x41197e
cmp word [ecx - 4], bx
jmp 0x41197c
jle 0x41197e
cmp word [ecx - 2], bx
jne 0x41197e
cmp word [ecx - 4], bx
jne 0x41197e
movzx eax, word [ecx - 6]
push 0x5c
pop edi
cmp ax, di
je 0x4119cd
push 0x2f
pop edi
cmp ax, di
je 0x4119cd
add ecx, 2
inc edx
movzx eax, word [ecx]
mov edi, eax
test ax, ax
jne 0x411933
cmp edx, 2
jl 0x4119b8
cmp word [ecx - 2], bx
jne 0x4119b8
cmp word [ecx - 4], bx
jne 0x4119b8
cmp edx, 2
je 0x4119cd
jle 0x4119b8
movzx eax, word [ecx - 6]
push 0x5c
pop ecx
cmp ax, cx
je 0x4119cd
push 0x2f
pop ecx
cmp ax, cx
je 0x4119cd
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4119cd
test al, 0x10
jne 0x4119cd
xor eax, eax
inc eax
jmp 0x4119cf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x412440
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.00414086

Function at 0x412450
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.00414221
Function at 0x4127f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x412817
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00402970
jmp 0x4128cc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x412839
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x41283b
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x4128c0
jg 0x412850
test esi, esi
je 0x4128c0
test ecx, ecx
jl 0x4128a3
jg 0x41285a
test eax, eax
je 0x4128a3
cmp edi, ecx
jg 0x41286e
jl 0x412864
cmp esi, eax
jae 0x41286e
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.00481c60
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
mov eax, dword [ebp + 8]
add eax, ecx
test edi, edi
jl 0x4128c0
jg 0x4128a6
test esi, esi
je 0x4128c0
jmp 0x4128a6
mov eax, dword [ebp + 8]
cmp dword [ebx + 0x4c], 0
je 0x4128c0
push dword [ebx + 0x4c]
push esi
push 1
push eax
call fcn.0048c519
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4128e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
jg 0x412903
jl 0x4128fa
test edi, edi
jne 0x412903
xor eax, eax
xor edx, edx
jmp 0x4129c1
cmp dword [ecx + 0x38], 0
je 0x412918
push esi
push edi
push dword [ebp + 8]
call fcn.00402a50
jmp 0x4129c1
mov eax, dword [ecx + 0x1c]
push ebx
mov ebx, edi
mov edx, dword [eax]
test edx, edx
je 0x41295c
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jbe 0x41295c
cmp dword [eax], edi
mov esi, edi
mov ebx, dword [ebp + 8]
cmovb esi, dword [eax]
push esi
push edx
push ebx
call fcn.00481c60
mov ecx, dword [ebp - 8]
add ebx, esi
mov dword [ebp - 4], ebx
add esp, 0xc
mov ebx, edi
sub ebx, esi
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0x10]
jmp 0x412962
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ecx + 0x4c], 0
mov edx, ebx
je 0x4129b7
call fcn.004131e3
mov edx, ebx
jmp 0x412995
push dword [ecx + 0x4c]
push eax
push 1
push dword [ebp - 4]
call fcn.0048ddd5
add dword [ebp - 4], eax
sub ebx, eax
add esp, 0x10
mov edx, ebx
cmp eax, 0xfff
jne 0x4129c7
mov ecx, dword [ebp - 8]
mov eax, 0xfff
cmp ebx, eax
ja 0x412973
test edx, edx
je 0x4129b7
push dword [ecx + 0x4c]
push ebx
push 1
push dword [ebp - 4]
call fcn.0048ddd5
mov edx, ebx
add esp, 0x10
sub edx, eax
sub edi, edx
sbb esi, 0
mov eax, edi
mov edx, esi
pop ebx
pop edi
pop esi
leave
ret 0xc
sub edi, ebx
jmp 0x4129b9
Function at 0x412c50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x58005c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
or ebx, 0xffffffff
push edi
mov edi, ecx
cmp dword [ebp + 8], ebx
jne 0x412c73
xor eax, eax
jmp 0x412d4f
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x412ca2
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [esi + ecx]
cmp ecx, eax
jae 0x412ca2
mov eax, dword [ebp + 8]
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], al
jmp 0x412d4e
cmp dword [edi + 0x4c], 0
je 0x412d4c
mov ecx, edi
call fcn.004131e3
mov ecx, dword [edi + 0x38]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], ecx
test ecx, ecx
jne 0x412cd6
push dword [edi + 0x4c]
movsx eax, al
push eax
call fcn.00488e16
cmp eax, ebx
pop ecx
cmovne ebx, dword [ebp + 8]
pop ecx
jmp 0x412d4c
mov byte [ebp - 0x25], al
lea eax, [ebp - 0x30]
mov esi, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
mov ecx, dword [esi + 0x1c]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x4b4460]
mov ecx, dword [ebp - 0x2c]
call dword [esi + 0x1c]
sub eax, 0
je 0x412d20
sub eax, 1
je 0x412d20
dec eax
sub eax, 1
jne 0x412d4c
push dword [edi + 0x4c]
movsx ecx, byte [ebp - 0x25]
push ecx
jmp 0x412cc7
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x412d3d
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.0048c519
add esp, 0x10
cmp esi, eax
jne 0x412d4c
lea eax, [ebp - 0x25]
mov byte [edi + 0x3d], 1
cmp dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
jne 0x412d4e
mov eax, ebx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0047f860
leave
ret 4

Function at 0x41323d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x58005c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
cmp dword [ebx + 0x38], 0
je 0x4132ae
cmp byte [ebx + 0x3d], 0
je 0x4132ae
mov eax, dword [ebx]
push 0xffffffffffffffff
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4b4460]
mov ecx, ebx
call esi
cmp eax, 0xffffffff
je 0x4132e7
push edi
mov edi, dword [ebx + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov esi, dword [edi]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebx + 0x40]
push eax
mov ecx, dword [esi + 0x20]
call dword [0x4b4460]
mov ecx, edi
call dword [esi + 0x20]
xor ecx, ecx
pop edi
sub eax, ecx
je 0x4132be
sub eax, 1
je 0x4132c1
dec eax
sub eax, 1
jne 0x4132e7
mov byte [ebx + 0x3d], cl
mov al, 1
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0047f860
leave
ret
mov byte [ebx + 0x3d], cl
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x4132de
push dword [ebx + 0x4c]
push esi
push 1
push eax
call fcn.0048c519
add esp, 0x10
cmp esi, eax
jne 0x4132e7
cmp byte [ebx + 0x3d], 0
sete al
jmp 0x4132b0
xor al, al
jmp 0x4132b0
Function at 0x413a5f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov dword [esp + 0x10], ecx
mov eax, edx
mov dword [esp + 0x14], eax
push esi
push edi
test ecx, ecx
jne 0x413a7f
xor eax, eax
jmp 0x413c13
or edi, 0xffffffff
lea ecx, [esp + 0x18]
test eax, eax
xorps xmm0, xmm0
movsd qword [esp + 0x20], xmm0
cmovne edi, eax
xor esi, esi
mov edx, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], esi
call fcn.0041499a
mov edx, dword [esp + 0x18]
xor ecx, ecx
mov byte [esp + 0xb], al
mov dword [esp + 0x10], ecx
cmp edx, edi
jae 0x413c11
movsd xmm2, qword [0x4d8910]
movzx eax, word [edx]
mov dword [esp + 0x18], eax
add eax, 0xffffffd0
cmp eax, 9
ja 0x413afd
mov eax, dword [esp + 0x18]
sub esi, ecx
movsd xmm1, qword [esp + 0x20]
add eax, 0xffffffd0
inc dword [esp + 0x10]
mulsd xmm1, xmm2
movd xmm0, eax
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
movsd qword [esp + 0x20], xmm1
jmp 0x413b08
cmp word [edx], 0x2e
jne 0x413b0f
test ecx, ecx
jne 0x413b0f
inc ecx
add edx, 2
cmp edx, edi
jb 0x413ac3
cmp dword [esp + 0x10], 0
push 0
mov dword [esp + 0x10], esi
pop ecx
je 0x413c11
movzx eax, word [edx]
cmp eax, 0x65
je 0x413b2e
cmp eax, 0x45
jne 0x413b9f
cmp edx, edi
jae 0x413b9f
add edx, 2
mov byte [esp + 0xa], cl
mov esi, edx
movzx eax, word [edx]
sub eax, 0x2b
je 0x413b4e
dec eax
sub eax, 1
jne 0x413b53
mov byte [esp + 0xa], 1
add edx, 2
mov esi, edx
cmp esi, edi
jae 0x413b87
movzx eax, word [edx]
mov ecx, eax
mov dword [esp + 0x18], ecx
cmp ecx, 0x30
mov ecx, dword [esp + 0x14]
jb 0x413b87
cmp eax, 0x39
ja 0x413b87
imul eax, ecx, 0xa
lea edx, [esi + 2]
mov ecx, dword [esp + 0x18]
mov esi, edx
add ecx, 0xffffffd0
add ecx, eax
mov dword [esp + 0x14], ecx
cmp edx, edi
jb 0x413b57
mov ecx, dword [esp + 0xc]
mov eax, ecx
sub eax, dword [esp + 0x14]
add ecx, dword [esp + 0x14]
cmp byte [esp + 0xa], 0
cmovne ecx, eax
jmp 0x413ba3
mov ecx, dword [esp + 0xc]
lea eax, [ecx + 0x3fd]
cmp eax, 0x7fd
ja 0x413bfb
cmp byte [esp + 0xb], 0
movsd xmm1, qword [esp + 0x20]
jne 0x413bc4
xorps xmm1, xmmword [0x4d89b0]
test ecx, ecx
jns 0x413be0
neg ecx
test cl, 1
je 0x413bd3
divsd xmm1, xmm2
sar ecx, 1
movaps xmm0, xmm2
mulsd xmm2, xmm0
jne 0x413bca
jmp 0x413c03
je 0x413c03
test cl, 1
je 0x413bee
movaps xmm0, xmm2
mulsd xmm1, xmm0
sar ecx, 1
movaps xmm0, xmm2
mulsd xmm2, xmm0
jne 0x413be2
jmp 0x413c03
movsd xmm1, qword [0x4d8940]
mov eax, dword [ebp + 8]
cmp edx, edi
cmovae edx, dword [esp + 0x1c]
movsd qword [eax], xmm1
mov eax, edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret