joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e450
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
movzx eax, byte [ecx]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
movzx ebp, byte [esi + 0x55]
push edi
movzx edi, byte [esi + 0x54]
xor edi, eax
movzx eax, byte [ecx + 1]
xor ebp, eax
mov eax, dword [esi + 0x56]
xor eax, dword [ecx + 2]
lea edx, [esi + 0x800]
lea ecx, [eax + eax + 8]
and eax, 7
add esi, 0x80
or edi, 0x100
sub ecx, eax
xor ebx, ebx
cmp esi, edx
mov dword [esp + 0x14], edx
je 0x44e507
lea ebx, [ebx]
movzx eax, byte [edi + 0x61aa00]
movzx edx, byte [ebp + 0x61a900]
xor edx, eax
mov eax, edi
shr eax, 1
mov ebp, eax
mov eax, ecx
shr eax, 3
xor eax, ecx
shr eax, 1
xor eax, ecx
shr eax, 8
xor eax, ecx
and edi, 1
shr eax, 5
shl edi, 8
xor edi, edx
movzx edx, byte [edx + 0x61ad00]
and eax, 0xff
shl ecx, 8
or ecx, eax
movzx eax, byte [eax + 0x61ac00]
add edx, ebx
lea ebx, [edx + eax]
movzx eax, byte [esi]
mov dl, byte [eax + str.3s_ckv_6n.f]
xor dl, bl
mov byte [esi], dl
add esi, 1
shr ebx, 8
cmp esi, dword [esp + 0x14]
jne 0x44e4a0
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x44eb70
Capabilities:
Encode data using xor

Disassembly:
push ecx
movzx ecx, byte [eax + 2]
xor edx, edx
mov dh, byte [eax]
add dword [esp + 8], 1
push ebx
push ebp
push esi
push edi
movzx edi, byte [eax + 3]
mov dl, byte [eax + 1]
movzx eax, byte [eax + 4]
mov esi, ecx
and esi, 0xfffffffc
shl edi, 9
shl edx, 8
or edx, esi
or edx, 4
add edx, edx
and ecx, 7
or edi, eax
or edx, ecx
or edi, 0x100
mov esi, edx
xor bl, bl
xor ebp, ebp
mov byte [esp + 0x13], 0
mov eax, esi
shr eax, 0x18
mov ecx, esi
shr ecx, 0x15
xor al, cl
mov edx, esi
shr edx, 0x14
xor al, dl
mov ecx, esi
shr ecx, 0xc
xor al, cl
and al, 1
movzx edx, al
add esi, esi
or esi, edx
mov edx, edi
shr edx, 0x10
mov ecx, edi
shr ecx, 2
xor dl, cl
and dl, 1
movzx ecx, dl
add edi, edi
or edi, ecx
test dl, dl
sete dl
test al, al
sete al
add dl, al
add dl, bl
mov cl, dl
shr cl, 1
and cl, 1
mov bl, cl
and dl, 1
mov ecx, ebp
shl dl, cl
add ebp, 1
or byte [esp + 0x13], dl
cmp ebp, 8
jl 0x44ebb7
mov eax, dword [esp + 0x18]
mov dl, byte [esp + 0x13]
sub eax, 1
mov dword [esp + 0x18], eax
mov byte [eax], dl
mov eax, dword [esp + 0x1c]
sub eax, 1
test eax, eax
mov dword [esp + 0x1c], eax
jg 0x44ebb0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x44f5e0
Capabilities:
Get file size

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0xc]
push 0
push 0x800
push ecx
push eax
mov dword [edx], 0x800
call fcn.004735c0
mov edx, dword [esp + 0x10]
mov dword [edx], eax
mov al, 1
add esp, 8
ret
Function at 0x44f620
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, ecx
push edi
imul esi, ebx
push 0
push 0
push esi
push ebp
mov edi, eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, eax
jne 0x44f66c
mov ecx, dword [esp + 0x18]
imul edi, ebx
push 0
lea eax, [esp + 0x10]
push eax
push edi
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44f66c
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret

Function at 0x4558a3
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4558dc
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00419070
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0040a250
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x4574b7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x4574fa
call fcn.0045082d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4574fa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x457515
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00457071
test ebx, ebx
mov esi, eax
je 0x457513
test edi, edi
je 0x457513
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x45ac08
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x45ac1e
mov edi, dword [esi + 0xc]
jmp 0x45ac5e
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x45ac37
call fcn.00450af0
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x45ac4c
call fcn.00450af0
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x45ac5e
call fcn.00450af0
call fcn.0045082d
cmp dword [eax + 0x3c], 0
je 0x45ac73
push edi
mov ecx, ebx
call fcn.00459c7d
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0045ab22
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x45ac91
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x45ac9d
mov edi, eax
mov dword [ebx + 0x5c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x45fc05
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x45fc4b
call fcn.0045082d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x45fc4b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x45fc8e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x45fc77
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x45fc77
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x45fc8b
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x46062c
Capabilities:
Receive data
Receive data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_recv]
ret 0xc

Function at 0x460644
Capabilities:
Send data
Send data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_send]
ret 0xc

Function at 0x4606e9
Capabilities:
Connect socket

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

Function at 0x4623f5
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x4623fe
xor eax, eax
jmp 0x462467
cmp dword [esp + 8], 0
jne 0x46240a
call fcn.00457a83
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.004753c4
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x462445
push dword [esi + 0x10]
call fcn.00478a9c
test eax, eax
pop ecx
jne 0x462445
mov esi, dword [esi + 0xc]
call fcn.00475eb9
push esi
push dword [eax]
push 1
call fcn.0046ef5d
push dword [esi + 0x10]
call fcn.00478acb
test eax, eax
pop ecx
je 0x462464
push dword [esi + 0x10]
call fcn.004789f0
push eax
call fcn.004099f0
pop ecx
pop ecx
jmp 0x462433
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x462470
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x46247a
call fcn.00457a83
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.00478c14
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x4624a7
mov esi, dword [esi + 0xc]
call fcn.00475eb9
push esi
push dword [eax]
push 1
call fcn.0046ef5d
pop esi
ret 8

Function at 0x4721e8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x61c948]
jne 0x4721f2
repz ret
jmp fcn.0047b9ec
Function at 0x4741ce
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x4741fb
call fcn.00475eb9
mov dword [eax], esi
call fcn.00475ea6
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0047c68f
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4741d7
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x47422a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00475ecc
pop ecx
call fcn.00475ea6
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x474251
test al, 1
je 0x474251
test byte [esp + 0xc], 2
je 0x474251
call fcn.00475eb9
mov dword [eax], 5
call fcn.00475ea6
mov dword [eax], 0xd
jmp 0x474221
xor eax, eax
pop esi
ret
Function at 0x4876e0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0047a4b5
xor ebx, ebx
cmp dword [0x64d85c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4877b5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x487720
xor eax, eax
jmp 0x487879
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x487719
push eax
call fcn.0047a452
mov dword [esp], 0x599f60
push edi
mov dword [0x64d85c], eax
call esi
push eax
call fcn.0047a452
mov dword [esp], 0x599f4c
push edi
mov dword [0x64d860], eax
call esi
push eax
call fcn.0047a452
mov dword [0x64d864], eax
lea eax, [ebp - 8]
push eax
call fcn.00477b70
test eax, eax
pop ecx
pop ecx
je 0x487783
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0047c593
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4877b5
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0047a452
cmp eax, ebx
pop ecx
mov dword [0x64d86c], eax
je 0x4877b5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0047a452
pop ecx
mov dword [0x64d868], eax
mov eax, dword [0x64d868]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x48782e
cmp dword [0x64d86c], esi
je 0x48782e
push eax
call fcn.0047a4be
pop ecx
call eax
cmp eax, ebx
je 0x4877fb
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x64d86c]
call fcn.0047a4be
pop ecx
call eax
test eax, eax
je 0x4877fb
test byte [ebp - 0x18], 1
jne 0x48782e
lea eax, [ebp - 0xc]
push eax
call fcn.00477ba7
test eax, eax
pop ecx
je 0x487816
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0047c593
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x487825
or dword [ebp + 0x10], 0x200000
jmp 0x48785f
or dword [ebp + 0x10], 0x40000
jmp 0x48785f
mov eax, dword [0x64d860]
cmp eax, esi
je 0x48785f
push eax
call fcn.0047a4be
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x48785f
mov eax, dword [0x64d864]
cmp eax, esi
je 0x48785f
push dword [ebp - 4]
push eax
call fcn.0047a4be
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x64d85c]
call fcn.0047a4be
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x48f4e2
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x61c948]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0048f477
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004727f0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x48f531
cmp dword [ebp - 0x1c], 5
jb 0x48f549
jmp 0x48f545
cmp dword [ebp - 0x10], 1
jne 0x48f549
cmp dword [ebp - 0x1c], 4
ja 0x48f545
jne 0x48f549
cmp dword [ebp - 0x18], 0
jbe 0x48f549
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x59c140
call fcn.0048f368
test eax, eax
jge 0x48f56a
mov byte [0x655250], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004721e8
add ebp, 0x78
leave
ret

Function at 0x48f910
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x48f981
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x48f981
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
jne 0x48f96a
jmp 0x48f981
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x490840
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x100
push esi
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0xc]
push str.QTMLInitTermMutex_lx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
test edi, edi
je 0x490880
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x64d974]
test eax, eax
jle 0x490894
inc eax
mov dword [0x64d974], eax
jmp 0x490961
push str.QuickTime.qts
call fcn.00491030
add esp, 4
mov dword [0x64d978], eax
test eax, eax
jne 0x4908b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xfffff7d3
jmp 0x490929
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str._CallComponentFunctionWithStorage
push eax
call esi
test eax, eax
mov dword [0x61de48], eax
je 0x490924
mov edx, dword [0x64d978]
push str._CallComponent
push edx
call esi
test eax, eax
mov dword [0x61de44], eax
je 0x490924
mov eax, dword [0x64d978]
push str.theQuickTimeDispatcher
push eax
call esi
test eax, eax
mov dword [0x61de40], eax
je 0x490924
mov ecx, dword [esp + 0x10c]
mov dword [0x61de3c], 0
push ecx
call fcn.00490770
mov esi, eax
add esp, 4
test si, si
jne 0x490929
inc dword [0x64d974]
jmp 0x490961
mov esi, 0xfffff7d2
mov eax, dword [0x64d978]
test eax, eax
je 0x490943
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x64d978], 0
mov eax, 0x490790
mov dword [0x61de3c], 0x490980
mov dword [0x61de44], eax
mov dword [0x61de48], eax
mov dword [0x61de40], eax
test edi, edi
je 0x490973
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, si
pop edi
pop esi
add esp, 0x100
ret

Function at 0x4909f0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x100
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 8]
push str.QTMLInitTermMutex_lx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x490a2f
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x64d974]
test eax, eax
jg 0x490a44
mov dword [0x64d974], 0
jmp 0x490a7e
dec eax
test eax, eax
mov dword [0x64d974], eax
jg 0x490a7e
call fcn.00490780
mov edx, dword [0x64d978]
mov eax, 0x490790
push edx
mov dword [0x61de3c], 0x490980
mov dword [0x61de44], eax
mov dword [0x61de48], eax
mov dword [0x61de40], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
je 0x490a90
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
add esp, 0x100
ret
Function at 0x496300
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x57b9b0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x61c948]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
mov edi, dword [edx + 0x58]
xor ebx, ebx
cmp edi, ebx
mov eax, 0x80004001
mov dword [esp + 0x40], eax
je 0x49642e
mov eax, edi
mov edi, dword [edi]
mov esi, dword [eax + 8]
mov dword [esp + 0x38], ebx
mov ecx, dword [esi + 0xc]
lea eax, [esi + 0xc]
lea edx, [esp + 0x38]
push edx
push eax
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x88], ebx
call eax
test eax, eax
jge 0x496393
mov eax, dword [esp + 0x38]
cmp eax, ebx
mov dword [esp + 0x80], 0xffffffff
je 0x496422
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x496422
mov ecx, dword [esp + 0x38]
xor eax, eax
cmp ecx, ebx
mov dword [esp + 0x3c], eax
je 0x4963ba
mov eax, dword [ecx]
mov eax, dword [eax]
lea edx, [esp + 0x3c]
push edx
push 0x59d780
push ecx
call eax
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
cmp eax, ebx
mov byte [esp + 0x80], 1
je 0x4963f4
mov ecx, dword [eax]
fld qword [ebp + 0xc]
mov edx, dword [ecx + 0x20]
sub esp, 8
fstp qword [esp]
push eax
call edx
mov edx, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
call fcn.004942b0
mov ecx, dword [esp + 0x38]
cmp esi, eax
mov eax, dword [esp + 0x3c]
jne 0x4963f4
mov dword [esp + 0x40], edx
cmp eax, ebx
mov byte [esp + 0x80], bl
je 0x49640b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esp + 0x38]
cmp ecx, ebx
mov dword [esp + 0x80], 0xffffffff
je 0x496422
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 8]
call ecx
cmp edi, ebx
jne 0x496348
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x49b220
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push esi
mov esi, ecx
lea ecx, [eax + esi]
xor eax, eax
cmp esi, edx
jae 0x49b24d
sub edx, esi
mov esi, edx
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x61e410]
add ecx, 1
sub esi, 1
jne 0x49b230
pop esi
ret
Function at 0x49c446
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x40
mov eax, dword [0x61c948]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
or ebx, 0xffffffff
cmp eax, ebx
push edi
mov edi, dword [esp + 0x54]
je 0x49c45e
push eax
call ebp
mov dword [esi + 0x1c], ebx
push edi
lea ecx, [esp + 0x1c]
call fcn.0040a190
mov eax, dword [eax]
xor edi, edi
push edi
push 0x8000001
push 3
push edi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49c4a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x1c]
cmp eax, ebx
je 0x49c573
push edi
lea ecx, [esp + 0x20]
push ecx
push 0x2c
lea edx, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49c56a
cmp dword [esp + 0x20], 0x46464952
jne 0x49c56a
cmp dword [esp + 0x28], 0x41584443
jne 0x49c56a
mov eax, dword [esp + 0x48]
add eax, 0x24
cmp dword [esp + 0x24], eax
jne 0x49c56a
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x14]
push edi
mov dword [esp + 0x14], eax
sub eax, 0x2c
push 0x930
sbb ecx, edi
push ecx
push eax
call fcn.004735c0
imul eax, eax, 0x914
cdq
mov ecx, esi
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edx
call fcn.0049b8b0
test al, al
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
jne 0x49c550
mov edx, dword [esi + 0x1c]
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
push edx
jmp 0x49c56e
pop edi
mov dword [esi + 0x34], ebx
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.004721e8
add esp, 0x40
ret 4
mov eax, dword [esi + 0x1c]
push eax
call ebp
mov dword [esi + 0x1c], ebx
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor al, al
call fcn.004721e8
add esp, 0x40
ret 4