joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407391
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov edi, eax
mov bl, pe_nt_image_headers32
test edi, edi
je 0x40740d
push 9
call esi
test bl, al
je 0x40740d
push 0x11
call esi
test bl, al
jne 0x40740d
push 0x10
call esi
test bl, al
jne 0x40740d
push 0x12
call esi
test bl, al
jne 0x40740d
push 5
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetClassNameA]
push 4
lea eax, [esp + 0x14]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x40740d
push eax
push eax
push 0x44e
push edi
call dword [sym.imp.USER32.DLL_SendMessageA]
test eax, 0x800
jne 0x40740d
xor eax, eax
jmp 0x40748f
push ebp
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x407436
push 0x11
call esi
test bl, al
jne 0x40742e
push 0x10
call esi
test bl, al
jne 0x40742e
push 0x12
call esi
test bl, al
je 0x407436
push 1
push ebp
call fcn.0040734a
mov esi, dword [sym.imp.USER32.DLL_GetPropA]
test edi, edi
je 0x40744c
push str.PB_Hotkey
push edi
call esi
test eax, eax
jne 0x40748c
push str.PB_WindowID
push ebp
call esi
mov esi, eax
test esi, esi
je 0x40748c
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x40748c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x10], eax
jne 0x40748c
dec esi
push esi
push dword [0x40e820]
call fcn.0040a1aa
test eax, eax
je 0x40748c
mov eax, dword [eax + 8]
jmp 0x40748e
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x407551
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push edi
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
mov dword [0x40e734], eax
cmp eax, edi
je 0x407584
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x40e738], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [0x40e730], 1
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4075c2
cmp dword [ebp - 0xc], 1
je 0x4075d3
cmp dword [ebp - 0xc], 2
jne 0x4075c2
cmp dword [ebp - 0x18], 5
jb 0x4075d3
jne 0x4075c2
cmp dword [ebp - 0x14], edi
jne 0x4075c2
mov dword [0x40e730], edi
cmp dword [0x40e730], edi
je 0x4075d9
call fcn.00407498
test eax, eax
jne 0x4075d9
mov dword [0x40e730], edi
pop edi
add ebp, 0x78
leave
ret

Function at 0x40817e
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x4081a7
test byte [esp + 8], 2
je 0x40819b
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4081a9
xor eax, eax
ret 8
Function at 0x4081ba
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [ebp + 8], 0
je 0x40822a
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 0
call sub.MSVCRT.dll_strlen
add esp, 0x10
lea eax, [ebp + eax - 0x108]
jmp 0x40820c
mov dl, byte [eax - 1]
cmp dl, 0x20
je 0x40820b
cmp dl, 0x5c
je 0x40820b
cmp dl, 0x2f
jne 0x408216
dec eax
lea ecx, [ebp - 0x108]
cmp eax, ecx
ja 0x4081f9
mov byte [eax], 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x40822c
xor eax, eax
leave
ret 4

Function at 0x408300
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
cmp dword [esi + 0x14], eax
jne 0x408335
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4

Function at 0x4086e0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 4], eax
test esi, esi
je 0x408727
cmp byte [esi], al
je 0x408727
mov eax, dword [esp + 0xc]
mov ecx, dword [0x40e8c0]
push eax
push ecx
call fcn.0040a1aa
test eax, eax
je 0x408755
cmp dword [eax + 4], 0
mov ecx, esi
push edi
lea edi, [ecx + 1]
je 0x408730
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x408715
sub ecx, edi
push ecx
push esi
push eax
call fcn.004088a0
pop edi
pop esi
pop ecx
ret 8
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x408730
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
sub ecx, edi
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 8
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 8

Function at 0x408760
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x4087b9
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x4087b8
mov eax, dword [esp + 0x10]
mov ecx, dword [0x40e8c0]
push eax
push ecx
call fcn.0040a1aa
test eax, eax
je 0x4087b4
cmp dword [eax + 4], 0
je 0x4087a2
push esi
push edi
push eax
call fcn.004088a0
pop esi
pop edi
pop ecx
ret 0xc
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop esi
pop edi
pop ecx
ret 0xc
Function at 0x4087c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov ecx, dword [0x40e8c0]
push esi
push eax
push ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.0040a1aa
mov esi, eax
test esi, esi
je 0x408887
mov ecx, dword [esp + 0x14]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
test ecx, ecx
je 0x40883f
cmp byte [ecx], 0
je 0x40883f
cmp dword [esi + 4], 0
mov eax, ecx
push edi
lea edi, [eax + 1]
je 0x408827
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408810
sub eax, edi
push eax
push ecx
push esi
call fcn.004088a0
mov dword [esp + 0xc], eax
jmp 0x40883e
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408827
push 0
lea edx, [esp + 0x10]
push edx
sub eax, edi
push eax
mov eax, dword [esi]
push ecx
push eax
call ebp
pop edi
cmp dword [esi + 4], 0
je 0x408862
push 2
push 0x40c1dc
push esi
call fcn.004088a0
mov ecx, eax
mov eax, dword [esp + 8]
pop ebp
add eax, ecx
pop esi
add esp, 8
ret 8
mov edx, dword [esi]
push 0
lea ecx, [esp + 0x10]
push ecx
push 2
push 0x40c1dc
push edx
call ebp
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
pop ebp
add eax, ecx
pop esi
add esp, 8
ret 8
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 8

Function at 0x4088a0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 1
push edi
mov dword [esp + 8], 0
jne 0x4088d5
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
push 1
push 0
neg eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], edx
mov ecx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ecx, edi
jle 0x40894a
mov eax, dword [esi + 8]
add eax, dword [esi + 4]
sub eax, ecx
mov ecx, edi
dec ecx
je 0x408937
dec ecx
je 0x408922
sub ecx, 2
je 0x40890f
mov ecx, dword [esp + 0x14]
push edi
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov dword [eax], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cx, word [edx]
mov word [eax], cx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cl, byte [edx]
mov byte [eax], cl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
push esi
call fcn.00408300
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x408977
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
push 0
lea edx, [esp + 0xc]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x14]
push edi
push edx
add ecx, eax
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
Function at 0x4095a0
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x18]
push ebx
push esi
or esi, 0xffffffff
xor ebx, ebx
mov dword [esp + 8], 0x80000
test eax, eax
je 0x4097ae
push edi
push ebx
push pe_nt_image_headers32
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [esp + 0x1c], edi
cmp edi, 0xffffffff
je 0x4097ad
mov eax, dword [0x40e3d8]
push ebp
push 0x80000
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x4097a5
cmp dword [esp + 0x30], ebx
jl 0x409621
mov eax, dword [esp + 0x2c]
jg 0x409612
test eax, eax
je 0x409621
push 0
lea ecx, [esp + 0x34]
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x34]
add edx, 0x80000
mov dword [esp + 0x28], edx
jmp 0x409635
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
sub dword [esp + 0x28], 0x80000
add ebx, 0x80000
and eax, ecx
mov dword [esp + 0x14], ebx
cmp eax, 0xffffffff
je 0x40966d
mov eax, ebx
cdq
cmp edx, ecx
jl 0x40966d
jg 0x409665
cmp eax, dword [esp + 0x34]
jbe 0x40966d
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
push 0
lea edx, [esp + 0x1c]
push edx
push eax
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [esp + 0x18]
mov eax, ebp
mov edx, ebx
cmp ebx, 8
jb 0x40976c
mov edi, ebx
shr edi, 3
jmp 0x4096a0
movzx ecx, byte [eax]
xor ecx, esi
and ecx, 0xff
mov dword [esp + 0x1c], ecx
mov ecx, esi
mov esi, dword [esp + 0x1c]
shr ecx, 8
xor ecx, dword [esi*4 + 0x40c228]
movzx esi, byte [eax + 1]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x40c228]
movzx esi, byte [eax + 2]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x40c228]
movzx esi, byte [eax + 3]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x40c228]
movzx esi, byte [eax + 4]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x40c228]
movzx esi, byte [eax + 5]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x40c228]
movzx esi, byte [eax + 6]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x40c228]
movzx esi, byte [eax + 7]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x40c228]
add eax, 8
sub edx, 8
dec edi
mov esi, ecx
jne 0x4096a0
mov edi, dword [esp + 0x20]
test edx, edx
je 0x409789
movzx ecx, byte [eax]
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x40c228]
inc eax
dec edx
jne 0x409770
cmp ebx, 0x80000
je 0x409631
mov edx, dword [0x40e3d8]
push ebp
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
mov eax, esi
pop esi
not eax
pop ebx
add esp, 0x14
ret 0x14

Function at 0x4097e0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x4051e0
Capabilities:
Create pipe

Disassembly:
mov eax, 0x100c
call fcn.0040d780
mov eax, dword [0x5e52cc]
mov ecx, dword [0x5e4d5c]
push ebx
push ebp
shr eax, 3
push esi
push edi
test eax, eax
je 0x4052ed
mov esi, dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov edi, dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
mov ebp, dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
cmp dword [0x5e52cc], 0x959
jne 0x4052d4
push 0
lea eax, [esp + 0x81c]
push eax
push 0
push 0
push 0
push 0
call esi
push 0x404d04
push 0
call edi
push 0
lea ecx, [esp + 0x1c]
push ecx
call ebx
push 0
push 0
push 0
call ebp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessVersion]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCalendarInfoA]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
call dword [sym.imp.KERNEL32.dll_TlsFree]
push 0
lea edx, [esp + 0x41c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [esp + 0x10]
push eax
call fcn.00404f50
add dword [esp + 0x10], 8
dec dword [esp + 0x14]
jne 0x405224
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100c
ret
Function at 0x409db6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43faf0]
jne 0x409dc0
repz ret
jmp fcn.0040c8b8

Function at 0x40c4e2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43faf0]
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.0040771e
and dword [ebp - 0x14], 0
cmp dword [0x457060], 0
mov dword [ebp - 0x18], eax
jne 0x40c595
push 0x40451c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40c63d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x404510
push ebx
call edi
test eax, eax
je 0x40c63d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x404500
push ebx
mov dword [0x457060], eax
call edi
push eax
call esi
push 0x4044ec
push ebx
mov dword [0x457064], eax
call edi
push eax
call esi
push 0x4044d0
push ebx
mov dword [0x457068], eax
call edi
push eax
call esi
mov dword [0x457070], eax
test eax, eax
je 0x40c595
push 0x4044b8
push ebx
call edi
push eax
call esi
mov dword [0x45706c], eax
mov eax, dword [0x45706c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40c5ee
cmp dword [0x457070], ecx
je 0x40c5ee
push eax
call esi
push dword [0x457070]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40c5ee
test ebx, ebx
je 0x40c5ee
call edi
test eax, eax
je 0x40c5e5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40c5e5
test byte [ebp - 8], 1
jne 0x40c5ee
or dword [ebp + 0x10], 0x200000
jmp 0x40c621
mov eax, dword [0x457064]
cmp eax, dword [ebp - 0x18]
je 0x40c621
push eax
call esi
test eax, eax
je 0x40c621
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40c621
mov eax, dword [0x457068]
cmp eax, dword [ebp - 0x18]
je 0x40c621
push eax
call esi
test eax, eax
je 0x40c621
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x457060]
call esi
test eax, eax
je 0x40c63d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40c63f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409db6
leave
ret
Function at 0x4056dd
Capabilities:
Hash data using sha256

Disassembly:
cmp dword [0x448190], 2
jl 0x405702
movaps xmm0, xmmword [0x433750]
movaps xmmword [0x43efc0], xmm0
movaps xmm0, xmmword [0x433740]
movaps xmmword [0x43efd0], xmm0
push esi
mov esi, dword [esp + 8]
mov ecx, esi
call fcn.00405a8a
xor edx, edx
mov ecx, dword [esi + 0xf4]
mov eax, dword [edx + 0x433720]
mov dword [edx + ecx], eax
add edx, 4
cmp edx, 0x20
jl 0x405710
mov eax, dword [esi + 0xf4]
xor dword [eax], 0x2080020
mov ecx, dword [esi + 0xf4]
mov eax, dword [esp + 0xc]
xor dword [ecx + 8], eax
mov ecx, dword [esi + 0xf4]
mov eax, dword [esp + 0x10]
or eax, 0x2000
shl eax, 0x10
xor dword [ecx + 0xc], eax
pop esi
ret 0xc

Function at 0x405dbe
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
test esi, esi
je 0x405de8
movzx ecx, byte [edi]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x43efe0]
inc edi
sub esi, 1
jne 0x405dd0
pop edi
mov eax, edx
pop esi
ret 0xc

Function at 0x405f75
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
push ebp
push esi
push edi
mov edi, dword [esp + 0x34]
xor ebp, ebp
cmp dword [edi], 2
lea esi, [edi + 4]
jne 0x405fcb
mov eax, dword [esi]
push ebx
push ebp
push ebp
push ebp
push ebp
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
push eax
push 4
lea eax, [esp + 0x28]
push eax
push 0x20
push dword [esp + 0x5c]
call fcn.00406629
mov edx, ebp
mov ebx, ebp
movzx eax, byte [esp + edx + 0x14]
mov ecx, edx
and ecx, 3
shl ecx, 3
shl eax, cl
xor eax, ebx
inc edx
mov ebx, eax
cmp edx, 0x20
jb 0x405faf
mov dword [esi], eax
pop ebx
cmp dword [edi], 3
jne 0x405ff7
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
push eax
push 0x20
push esi
push 0x20
push dword [esp + 0x58]
call fcn.00406629
push 0x20
lea eax, [esp + 0x14]
push eax
push esi
call fcn.0041fc00
add esp, 0xc
pop edi
pop esi
pop ebp
add esp, 0x24
ret 8
Function at 0x4063d2
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x264
push ebx
mov ebx, dword [esp + 0x280]
mov eax, ecx
mov dword [esp + 4], eax
cmp ebx, 0x18
ja 0x4065ce
push ebp
push esi
xor ebp, ebp
lea esi, [eax + 0x4b4]
push edi
mov edi, ebp
cmp dword [esi + 0x134], ebx
jne 0x406436
push dword [esp + 0x27c]
mov ecx, esi
call fcn.0040ede9
test al, al
je 0x406436
push 0x10
push dword [esp + 0x288]
lea eax, [esi + 0x102]
push eax
call fcn.0042052a
add esp, 0xc
test eax, eax
je 0x4065d8
inc edi
add esi, 0x178
cmp edi, 4
jb 0x4063fc
mov esi, 0x200
lea eax, [esp + 0x74]
push esi
push eax
push dword [esp + 0x288]
call fcn.004119f5
xor eax, eax
mov ecx, ebx
inc eax
shl eax, cl
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x20]
push eax
push 0x10
push dword [esp + 0x298]
lea eax, [esp + 0x8c]
push eax
call fcn.00423500
pop ecx
push eax
lea eax, [esp + 0x90]
push eax
call fcn.00406834
push esi
lea eax, [esp + 0x78]
push eax
call fcn.0040f025
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x27c]
push 0x40
mov ecx, dword [edx + 0xa94]
lea ebx, [edx + 0x4b4]
mov eax, ecx
and eax, 3
imul eax, eax, 0x178
add ebx, eax
lea eax, [ecx + 1]
mov dword [edx + 0xa94], eax
mov edi, ebx
mov eax, dword [esp + 0x290]
pop ecx
mov dword [ebx + 0x134], eax
lea eax, [ebx + 0x102]
rep movsd dword es:[edi], dword [esi]
push 0x10
push dword [esp + 0x288]
push eax
movsw word es:[edi], word [esi]
call fcn.0041fc00
push 0x20
pop edi
push edi
lea eax, [esp + 0x24]
push eax
lea esi, [ebx + 0x112]
push esi
call fcn.0041fc00
push edi
lea eax, [esp + 0x50]
push eax
lea eax, [ebx + 0x138]
push eax
call fcn.0041fc00
push edi
lea eax, [esp + 0x7c]
push eax
lea eax, [ebx + 0x158]
push eax
call fcn.0041fc00
add esp, 0x30
push ebp
push 1
push edi
push esi
call fcn.0040ef24
cmp dword [esp + 0x290], ebp
je 0x40655c
push edi
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x298]
call fcn.0041fc00
add esp, 0xc
mov esi, dword [esp + 0x294]
test esi, esi
je 0x40658f
push 8
push ebp
push esi
call fcn.0041f8d0
add esp, 0xc
mov al, byte [esp + ebp + 0x34]
mov ecx, ebp
and ecx, 7
xor byte [ecx + esi], al
inc ebp
cmp ebp, edi
jb 0x406573
push edi
lea eax, [esp + 0x38]
push eax
call fcn.0040f025
cmp dword [esp + 0x288], 0
je 0x4065c0
push dword [esp + 0x288]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push 0x100
push eax
push dword [esp + 0x284]
add ecx, 0xa9c
call fcn.0040e470
push edi
lea eax, [esp + 0x18]
push eax
call fcn.0040f025
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x264
ret 0x20
push 0x20
pop edi
push edi
lea eax, [esi + 0x112]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0041fc00
add esp, 0xc
lea eax, [esp + 0x14]
push ebp
push ebp
push edi
push eax
call fcn.0040ef24
push edi
lea eax, [esi + 0x138]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0041fc00
push edi
lea eax, [esi + 0x158]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.0041fc00
add esp, 0x18
jmp 0x40653e
Function at 0x406629
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0x1bc
push ebx
mov ebx, dword [esp + 0x1c8]
push ebp
push esi
push edi
push 0x40
pop edi
cmp ebx, edi
jbe 0x40667e
lea eax, [esp + 0x164]
push eax
call fcn.0040fbf6
push ebx
push dword [esp + 0x1d4]
lea eax, [esp + 0x16c]
push eax
call fcn.0040fc3c
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x168]
push eax
call fcn.0040fb13
push 0x20
lea eax, [esp + 0x58]
pop ebx
jmp 0x406685
mov eax, dword [esp + 0x1d0]
mov ebp, dword [esp + 0x1e4]
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x4066b0
mov ecx, dword [esp + 0x1e8]
cmp byte [ecx], 0
je 0x4066b0
push 0x1a
pop ecx
mov esi, ebp
lea edi, [esp + 0x94]
rep movsd dword es:[edi], dword [esi]
jmp 0x40670e
xor edx, edx
test ebx, ebx
je 0x4066d0
mov esi, eax
lea eax, [esp + 0x14]
sub esi, eax
lea ecx, [esp + 0x14]
add ecx, edx
mov al, byte [esi + ecx]
xor al, 0x36
inc edx
mov byte [ecx], al
cmp edx, ebx
jb 0x4066be
cmp ebx, edi
jae 0x4066ea
mov eax, edi
lea ecx, [esp + 0x14]
sub eax, ebx
add ecx, ebx
push eax
push 0x36
push ecx
call fcn.0041f8d0
add esp, 0xc
lea eax, [esp + 0x94]
push eax
call fcn.0040fbf6
push edi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.0040fc3c
test ebp, ebp
je 0x40672b
mov eax, dword [esp + 0x1e8]
cmp byte [eax], 0
jne 0x40672b
push 0x1a
pop ecx
lea esi, [esp + 0x94]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov byte [eax], 1
push dword [esp + 0x1dc]
lea eax, [esp + 0x98]
push dword [esp + 0x1dc]
push eax
call fcn.0040fc3c
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x98]
push eax
call fcn.0040fb13
mov ebp, dword [esp + 0x1ec]
test ebp, ebp
je 0x40677f
mov eax, dword [esp + 0x1f0]
cmp byte [eax], 0
je 0x40677f
push 0x1a
pop ecx
mov esi, ebp
lea edi, [esp + 0xfc]
rep movsd dword es:[edi], dword [esi]
jmp 0x4067e9
test ebx, ebx
je 0x4067a1
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
sub edx, eax
xor esi, esi
lea ecx, [esp + 0x14]
add ecx, esi
mov al, byte [edx + ecx]
xor al, 0x5c
inc esi
mov byte [ecx], al
cmp esi, ebx
jb 0x40678f
cmp ebx, 0x40
jae 0x4067bd
push 0x40
pop eax
sub eax, ebx
lea ecx, [esp + 0x14]
push eax
add ecx, ebx
push 0x5c
push ecx
call fcn.0041f8d0
add esp, 0xc
lea eax, [esp + 0xfc]
push eax
call fcn.0040fbf6
push 0x40
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x104]
push eax
call fcn.0040fc3c
test ebp, ebp
je 0x4067ff
mov eax, dword [esp + 0x1f0]
cmp byte [eax], 0
jne 0x4067ff
push 0x1a
pop ecx
lea esi, [esp + 0xfc]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov byte [eax], 1
push 0x20
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x104]
push eax
call fcn.0040fc3c
push dword [esp + 0x1e0]
lea eax, [esp + 0x100]
push eax
call fcn.0040fb13
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1bc
ret 0x24