joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4afaf0
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4be9
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x5246a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor bl, bl
mov dword [ebp - 0x34], 0
cmp dword [esi + 0x10], 0
mov byte [ebp - 0x2d], bl
je 0x4afc42
cmp dword [esi + 0x14], 8
jb 0x4afb3d
mov eax, dword [esi]
jmp 0x4afb3f
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
je 0x4afc42
push 0x3c
lea eax, [ebp - 0x70]
push 0
push eax
call fcn.004b7180
mov eax, dword [esi + 0x10]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
mov dword [ebp - 0x70], 0x3c
neg ecx
or ecx, eax
push ecx
call fcn.00416893
add esp, 0x10
mov dword [ebp - 0x60], eax
test eax, eax
je 0x4afb8d
mov eax, dword [esi + 0x10]
inc eax
mov dword [ebp - 0x5c], eax
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x4afb98
mov esi, dword [esi]
lea ecx, [ebp - 0x70]
push ecx
push 0
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x4afc32
cmp dword [ebp - 0x64], 4
jne 0x4afc32
mov edx, 0x1bb
cmp word [ebp - 0x58], dx
jne 0x4afc32
mov ecx, dword [ebp - 0x60]
test ecx, ecx
je 0x4afc0d
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x4afc0d
push eax
xor edx, edx
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
call fcn.00406040
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x34], 1
call fcn.004af8d0
add esp, 4
test al, al
je 0x4afc0d
xor bl, bl
jmp 0x4afc0f
mov bl, 1
test byte [ebp - 0x34], 1
je 0x4afc27
cmp dword [ebp - 0x18], 8
jb 0x4afc27
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00406d09
add esp, 4
test bl, bl
jne 0x4afc2f
mov byte [ebp - 0x2d], 1
mov bl, byte [ebp - 0x2d]
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x4afc42
push eax
call fcn.004168eb
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
Function at 0x4b0580
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
push edi
push edi
push 1
push edi
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, eax
test ebx, ebx
je 0x4b061c
push 0x10
call fcn.00404fcd
add esp, 4
test eax, eax
je 0x4b05c7
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax], ebx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov edi, eax
jmp 0x4b05c9
xor edi, edi
push esi
push 0
push edi
push 0x4b0380
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x4b060a
mov edx, dword [0x526038]
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xc]
push eax
push 3
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.00406d09
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c54d9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5246a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00401868
and dword [ebp - 0x14], 0
cmp dword [0x528f90], 0
mov dword [ebp - 0x18], eax
jne 0x4c558c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4c5634
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x50ddfc
push ebx
call edi
test eax, eax
je 0x4c5634
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x50ddec
push ebx
mov dword [0x528f90], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x528f94], eax
call edi
push eax
call esi
push 0x50ddbc
push ebx
mov dword [0x528f98], eax
call edi
push eax
call esi
mov dword [0x528fa0], eax
test eax, eax
je 0x4c558c
push 0x50dda4
push ebx
call edi
push eax
call esi
mov dword [0x528f9c], eax
mov eax, dword [0x528f9c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4c55e5
cmp dword [0x528fa0], ecx
je 0x4c55e5
push eax
call esi
push dword [0x528fa0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4c55e5
test ebx, ebx
je 0x4c55e5
call edi
test eax, eax
je 0x4c55dc
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4c55dc
test byte [ebp - 8], 1
jne 0x4c55e5
or dword [ebp + 0x10], 0x200000
jmp 0x4c5618
mov eax, dword [0x528f94]
cmp eax, dword [ebp - 0x18]
je 0x4c5618
push eax
call esi
test eax, eax
je 0x4c5618
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4c5618
mov eax, dword [0x528f98]
cmp eax, dword [ebp - 0x18]
je 0x4c5618
push eax
call esi
test eax, eax
je 0x4c5618
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x528f90]
call esi
test eax, eax
je 0x4c5634
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4c5636
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401306
leave
ret
Function at 0x4ca15d
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x529024], 0
push esi
push edi
jne 0x4ca0d3
call fcn.004ca03f
test eax, eax
je 0x4ca118
mov eax, dword [0x529024]
cmp eax, 1
jne 0x4ca0f4
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4ca118
jmp 0x4ca15a
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x4ca15a
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4ca11c
xor eax, eax
jmp 0x4ca15a
mov eax, dword [esi]
push dword [0x529024]
call edi
mov edi, eax
test edi, edi
je 0x4ca13e
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4ca15a
lea edi, [esi + 0xff0]
push esi
push dword [0x529024]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x4ca144
mov eax, esi
pop edi
pop esi
ret
jmp 0x4ca0bf

Function at 0x4caae0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ecx + 4]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
xor esi, esi
mov eax, dword [edx + 0x3c]
movzx ecx, word [eax + edx + 6]
add eax, edx
cmp edi, ecx
jae 0x4cab30
movzx ecx, word [eax + 0x14]
add ecx, esi
lea eax, [ecx + eax + 0x18]
test eax, eax
je 0x4cab30
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x4cab1a
add ecx, edx
cmp ecx, ebx
ja 0x4cab2a
mov ebx, dword [eax + 8]
add ebx, ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
cmp dword [ebp - 4], ebx
ja 0x4cab32
inc edi
add esi, 0x28
jmp 0x4caaf1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4d0210
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5328
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5246a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea edi, [ebx + 0x2c]
push edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebx + 0x24], esi
jne 0x4d02de
push 0
push 0x50e04c
push 0x50e04c
push 0
inc esi
push 0x50e04c
mov dword [ebp - 0x14], esi
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4d02ae
mov edi, dword [ebx + 0x20]
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x10]
push eax
push ecx
push edi
lea ecx, [ebx + 0x20]
call fcn.004cdc30
mov ecx, dword [ebx + 0x24]
mov edx, 0x3ffffffe
sub edx, ecx
cmp edx, 1
jb 0x4d02d4
inc ecx
mov dword [ebx + 0x24], ecx
mov dword [edi + 4], eax
mov ecx, dword [eax + 4]
mov edi, dword [ebp - 0x18]
mov dword [ecx], eax
cmp esi, 3
jl 0x4d0258
cmp dword [ebx + 0x24], 0
jne 0x4d02de
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.list_T__too_long
call fcn.004b5647
mov edx, dword [ebx + 0x20]
mov eax, dword [edx]
mov esi, dword [eax + 8]
mov ecx, edx
mov eax, dword [ecx]
cmp eax, ecx
je 0x4d0309
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [ecx], edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
push eax
mov dword [ecx + 4], edx
call fcn.00406d09
add esp, 4
dec dword [ebx + 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40129b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41105c]
jne 0x4012a5
repz ret
jmp fcn.00401ba2

Function at 0x403017
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x411198]
je 0x403032
inc edi
cmp edi, 0x17
jb 0x403023
cmp edi, 0x17
jae 0x4031b2
push ebp
push 3
call fcn.0040657d
cmp eax, 1
pop ecx
je 0x40317e
push 3
call fcn.0040657d
test eax, eax
pop ecx
jne 0x403066
cmp dword [0x411058], 1
je 0x40317e
cmp ebx, 0xfc
je 0x4031b1
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4125d0
push ebp
call fcn.004057f1
add esp, 0xc
test eax, eax
je 0x40309c
push esi
push esi
push esi
push esi
push esi
call fcn.00403737
add esp, 0x14
push 0x104
mov esi, 0x4125e9
push esi
push 0
mov byte [0x4126ed], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4030e0
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004057f1
add esp, 0xc
test eax, eax
je 0x4030e0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00403737
add esp, 0x14
push esi
call fcn.00405860
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x403125
push esi
call fcn.00405860
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4128e4
push 0x40d78c
sub ecx, eax
push ecx
push eax
call fcn.004064ca
add esp, 0x14
test eax, eax
je 0x403125
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00403737
add esp, 0x14
jmp 0x403127
xor esi, esi
push 0x40d788
push ebx
push ebp
call fcn.00406459
add esp, 0xc
test eax, eax
je 0x403147
push esi
push esi
push esi
push esi
push esi
call fcn.00403737
add esp, 0x14
push dword [edi*8 + 0x41119c]
push ebx
push ebp
call fcn.00406459
add esp, 0xc
test eax, eax
je 0x403169
push esi
push esi
push esi
push esi
push esi
call fcn.00403737
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0040629c
add esp, 0xc
jmp 0x4031b1
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4031b1
cmp ebp, 0xffffffff
je 0x4031b1
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x41119c]
push dword [esi]
call fcn.00405860
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x40629c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00403a78
xor ebx, ebx
cmp dword [0x412b84], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x406372
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x406452
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x406452
push eax
call fcn.00403a0a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x412b84], eax
call esi
push eax
call fcn.00403a0a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x412b88], eax
call esi
push eax
call fcn.00403a0a
mov dword [0x412b8c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00402da4
test eax, eax
pop ecx
pop ecx
je 0x406340
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403737
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x406372
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00403a0a
cmp eax, ebx
pop ecx
mov dword [0x412b94], eax
je 0x406372
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403a0a
pop ecx
mov dword [0x412b90], eax
mov eax, dword [0x412b90]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4063f7
cmp dword [0x412b94], ecx
je 0x4063f7
push eax
call fcn.00403a81
push dword [0x412b94]
mov esi, eax
call fcn.00403a81
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4063f7
cmp edi, ebx
je 0x4063f7
call esi
cmp eax, ebx
je 0x4063c4
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4063c4
test byte [ebp - 0x18], 1
jne 0x4063f7
lea eax, [ebp - 0x10]
push eax
call fcn.00402ddb
test eax, eax
pop ecx
je 0x4063df
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403737
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4063ee
or dword [ebp + 0x10], 0x200000
jmp 0x406432
or dword [ebp + 0x10], 0x40000
jmp 0x406432
mov eax, dword [0x412b88]
cmp eax, dword [ebp - 8]
je 0x406432
push eax
call fcn.00403a81
cmp eax, ebx
pop ecx
je 0x406432
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x406432
mov eax, dword [0x412b8c]
cmp eax, dword [ebp - 8]
je 0x406432
push eax
call fcn.00403a81
cmp eax, ebx
pop ecx
je 0x406432
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x412b84]
call fcn.00403a81
cmp eax, ebx
pop ecx
je 0x406452
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406454
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a5d70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
push ebx
mov ebx, dword [esp + 0x5c]
push ebp
xor ebp, ebp
push esi
test ebx, ebx
je 0x4a5d84
mov esi, ebx
jmp 0x4a5d8e
push 0
call dword [0x2247d70]
mov esi, eax
test esi, esi
je 0x4a5e7f
lea eax, [esp + 0x18]
push eax
push 0x18
pop eax
push eax
push dword [esp + 0x68]
call dword [0x2247da4]
test eax, eax
je 0x4a5e74
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x30]
push edi
mov edi, dword [esp + 0x24]
push 0x2c
push 0
push eax
mov dword [esp + 0x20], ebp
call fcn.0045202f
add esp, 0xc
mov dword [esp + 0x34], 0x28
xor eax, eax
mov dword [esp + 0x38], ebp
inc eax
mov dword [esp + 0x3c], edi
mov word [esp + 0x40], ax
xor ecx, ecx
push 0x18
pop eax
push ecx
push ecx
mov word [esp + 0x4a], ax
lea eax, [esp + 0x18]
push eax
push ecx
lea eax, [esp + 0x44]
mov dword [esp + 0x54], ecx
push eax
push esi
call dword [0x2247dd0]
mov ebp, eax
mov dword [esp + 0x18], ebp
test ebp, ebp
je 0x4a5e73
push 0
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x18]
push edi
push 0
push dword [esp + 0x78]
push esi
call dword [0x2247de8]
imul edi, dword [esp + 0x14]
test edi, edi
jle 0x4a5e73
mov ebx, dword [esp + 0x10]
push 3
pop ebp
movzx ecx, byte [ebx + 1]
movzx eax, byte [ebx + 2]
add eax, ecx
movzx ecx, byte [ebx]
add eax, ecx
cdq
idiv ebp
mov byte [ebx], al
mov ecx, dword [esp + 0x10]
mov byte [ecx + 1], al
mov ecx, dword [esp + 0x10]
mov byte [ecx + 2], al
mov ebx, dword [esp + 0x10]
add ebx, ebp
mov dword [esp + 0x10], ebx
dec edi
jne 0x4a5e3c
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x18]
pop edi
test ebx, ebx
jne 0x4a5e7f
push esi
call dword [0x2247d5c]
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x50
ret 8
Function at 0x4ad2c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
mov ebx, edx
mov edx, dword [esp + 0x18]
push ebp
push esi
push edi
movzx esi, word [edx]
mov ebp, ecx
mov edi, dword [esp + 0x28]
mov eax, esi
xor eax, 0x7f0
shr esi, 4
shr eax, 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebp
mov ecx, dword [edi + esi*4]
mov eax, dword [edi + eax*4]
mov dword [esp + 0x28], eax
movzx eax, word [edx + 0x10]
mov esi, dword [esp + 0x28]
shr eax, 4
mov dword [esp + 0x1c], ecx
mov eax, dword [edi + eax*4]
add eax, esi
mov dword [esp + 0x18], eax
test ebx, ebx
je 0x4ad35a
lea ebx, [ebp + 4]
mov esi, edx
mov ebp, dword [esp + 0x14]
lea ebx, [ebx]
push edi
push ebx
push ecx
push esi
call fcn.004b1030
push edi
lea eax, [ebx + 0x20]
push eax
push dword [esp + 0x30]
lea eax, [esi + 0x10]
push eax
call fcn.004b1030
mov ecx, dword [esp + 0x3c]
add esp, 0x20
add ebx, 0x440
add esi, 0x20
dec ebp
jne 0x4ad320
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
mov ebp, dword [esp + 0x10]
mov ebx, dword [ebp]
cmp ebx, 0x10
jbe 0x4ad430
lea eax, [ebp + 0x44]
add ebx, 0xfffffff1
mov dword [esp + 0x18], eax
movzx eax, word [edx + 0x10]
xor eax, 0x7f0
shr ebx, 1
shr eax, 4
lea ebp, [ebx + 0x180]
add esi, dword [edi + eax*4]
lea ebp, [edx + ebp*2]
mov dword [esp + 0x28], esi
mov edi, edi
dec ebx
lea ebp, [ebp - 2]
mov dword [esp + 0x1c], ebx
lea eax, [ebx + 0x80]
mov ebx, dword [esp + 0x24]
mov edx, eax
shr eax, 1
and edx, 1
neg edx
shr edx, 4
movzx ecx, word [ebx + eax*2 + 0x200]
and edx, 0x7f
shr ecx, 4
xor ecx, edx
add esi, dword [edi + ecx*4]
cmp eax, 2
jae 0x4ad3a2
movzx ecx, word [ebp]
mov ebx, dword [esp + 0x1c]
mov eax, ecx
mov edx, dword [esp + 0x18]
xor ecx, 0x7f0
shr eax, 4
shr ecx, 4
mov eax, dword [edi + eax*4]
add eax, esi
mov dword [edx + ebx*8], eax
mov eax, dword [edi + ecx*4]
add eax, esi
mov esi, dword [esp + 0x28]
mov dword [edx + ebx*8 + 4], eax
test ebx, ebx
jne 0x4ad390
mov esi, dword [esp + 0x10]
mov eax, dword [esi]
lea ebx, [eax*4 - 0x40]
mov eax, dword [esp + 0x14]
cmp eax, 1
jbe 0x4ad430
add esi, 0x484
lea edi, [eax - 1]
push ebx
push edx
push esi
call fcn.004528f3
mov edx, dword [esp + 0x24]
add esp, 0xc
add esi, 0x440
dec edi
jne 0x4ad418
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
Function at 0x4d8fc0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [eax + 0x38]
mov bl, byte [eax + 0x34]
test esi, esi
jle 0x4d8ffb
mov edx, dword [eax + 0x260]
push edi
movzx edi, bl
lea ebx, [ebx]
mov ecx, edx
shl edx, 8
shr ecx, 0x18
xor ecx, edi
xor edx, dword [ecx*4 + 0x22464d8]
mov dword [eax + 0x260], edx
dec esi
jne 0x4d8fe0
pop edi
mov ecx, dword [eax + 0x34]
mov byte [eax + ecx + 0x58], 1
mov edx, dword [eax + 0x38]
mov ecx, edx
dec ecx
je 0x4d9082
dec ecx
je 0x4d9067
dec ecx
je 0x4d905b
mov byte [edx + eax + 0x54], 1
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov esi, dword [eax + 0x44]
mov dl, byte [eax + 0x38]
mov ecx, dword [eax + 0x24]
sub dl, 4
mov byte [esi + ecx], dl
inc dword [eax + 0x44]
pop esi
pop ebx
ret
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
pop esi
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
pop ebx
ret
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x24]
pop esi
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
pop ebx
ret
Function at 0x409a51
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
add ecx, eax
push ebx
push edi
mov edi, dword [ecx]
add eax, 4
mov dword [esi], eax
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00450507
mov ecx, dword [esi]
add ecx, dword [ebp + 8]
lea ebx, [edi + edi]
push ebx
push ecx
push eax
mov dword [ebp - 4], eax
call fcn.00450930
mov eax, dword [ebp - 4]
add dword [esi], ebx
xor ecx, ecx
add esp, 0x10
cmp edi, ecx
mov word [ebx + eax], cx
jle 0x409aaa
xor word [eax + ecx*2], di
inc ecx
cmp ecx, edi
jl 0x409aa1
pop edi
pop ebx
leave
ret 4

Function at 0x40dd64
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [esi]
test al, 3
je 0x40dde4
push ebx
xor ebx, ebx
inc ebx
test bl, al
je 0x40dd8d
lea eax, [ebp - 8]
push eax
push dword [esi + 4]
call fcn.004535aa
mov eax, dword [ebp - 8]
or eax, dword [ebp - 4]
pop ecx
pop ecx
jne 0x40dde3
mov eax, dword [esi]
test al, 0x20
je 0x40dda8
push dword [esi + 4]
push 2
push ebx
push 0x46cf30
call fcn.00453774
mov dword [esi + 0xc], ebx
jmp 0x40dde0
test al, 0x40
je 0x40ddc5
push dword [esi + 4]
push 2
push ebx
push str.CLASSNN
call fcn.00453774
mov dword [esi + 0xc], 2
jmp 0x40dde0
test al, al
jns 0x40dde3
push dword [esi + 4]
push 3
push ebx
push 0x46cf38
call fcn.00453774
mov dword [esi + 0xc], 4
add esp, 0x10
pop ebx
leave
ret

Function at 0x40de18
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and dword [esi + 0xc], 0
push edi
push 0x46cf3c
push dword [ebp + 8]
mov byte [esi + 8], 0
call fcn.0045348b
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x40dea3
push ebx
push edi
push 3
lea eax, [ebp + 8]
push 1
push eax
call fcn.00453b80
push edi
mov ebx, eax
call fcn.00453868
add esp, 0x14
push 2
pop eax
cmp ebx, eax
jb 0x40de80
cmp byte [ebp + 8], 0xff
jne 0x40de6f
cmp byte [ebp + 9], 0xfe
jne 0x40de80
mov dword [esi + 0xc], 1
jmp 0x40de9e
cmp byte [ebp + 8], 0xfe
jne 0x40de80
cmp byte [ebp + 9], 0xff
jne 0x40de80
mov dword [esi + 0xc], eax
jmp 0x40de9e
cmp ebx, 3
jb 0x40dea2
cmp byte [ebp + 8], 0xef
jne 0x40dea2
cmp byte [ebp + 9], 0xbb
jne 0x40dea2
cmp byte [ebp + 0xa], 0xbf
jne 0x40dea2
mov dword [esi + 0xc], 4
mov byte [esi + 8], 1
pop ebx
pop edi
pop ebp
ret 4

Function at 0x40df63
Capabilities:
Read file on windows

Disassembly:
test byte [esi], 4
push ebx
je 0x40df93
mov ebx, dword [edi]
push 0
push edi
push ebx
push dword [esp + 0x14]
push dword [esi + 4]
call dword [0x467130]
test eax, eax
jne 0x40dfb9
and dword [edi], eax
push 1
push eax
push ebx
push dword [esi + 4]
call dword [0x467134]
xor al, al
jmp 0x40dfbb
push dword [esi + 4]
push dword [edi]
push 1
push dword [esp + 0x14]
call fcn.00453b80
mov dword [edi], eax
push dword [esi + 4]
call fcn.00453396
add esp, 0x14
test eax, eax
je 0x40dfb9
and dword [edi], 0
jmp 0x40df8f
mov al, 1
pop ebx
ret 4