joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4076f0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x42ae22
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
mov eax, dword [0x43f4a8]
push ebx
mov ecx, dword [eax]
push ecx
push 0x43cf88
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [0x43832c]
mov dword [esp + 4], edx
xor ebx, ebx
push 0x43cf88
lea ecx, [esp + 8]
mov dword [esp + 0x120], ebx
call fcn.00421ea0
push 0x5c
lea ecx, [esp + 8]
call fcn.0041d4cc
inc eax
lea ecx, [esp + 4]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.0041d454
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x120], 1
call fcn.00421e50
lea ecx, [esp + 0xc]
mov byte [esp + 0x11c], bl
call fcn.00421d17
lea ecx, [esp + 4]
push ecx
mov ecx, 0x43cf68
call fcn.00421e50
push 0x12b
mov ecx, 0x43cf7c
call fcn.00422132
push eax
push 0x12c
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0xffffffffffffffff
mov ecx, 0x43cf7c
call fcn.00422181
push 0x437e40
mov ecx, 0x43cf7c
call fcn.004220f3
push 0x12c
push 0x12b
mov ecx, 0x43cf6c
call fcn.00422132
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
mov ecx, 0x43cf6c
call fcn.00422181
push 0x437e40
mov ecx, 0x43cf6c
call fcn.004220f3
push 0x12c
push 0x12b
mov ecx, 0x43cf70
call fcn.00422132
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0xffffffffffffffff
mov ecx, 0x43cf70
call fcn.00422181
push 0x437e40
mov ecx, 0x43cf70
call fcn.004220f3
lea edx, [esp + 8]
push edx
call fcn.00407960
add esp, 4
push 0x437e40
push eax
lea eax, [esp + 0x14]
mov byte [esp + 0x124], 2
push eax
call fcn.00421fac
push eax
mov ecx, 0x43cf80
mov byte [esp + 0x120], 3
call fcn.00421e50
lea ecx, [esp + 0xc]
mov byte [esp + 0x11c], 2
call fcn.00421d17
lea ecx, [esp + 8]
mov byte [esp + 0x11c], bl
call fcn.00421d17
lea ecx, [esp + 0x10]
push ecx
push 7
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea ecx, [esp + 0x14]
push 0x437e40
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x14]
mov ecx, 0x43cf74
push edx
call fcn.00421ea0
lea eax, [esp + 8]
push 0x21
push eax
call fcn.00407640
add esp, 8
push eax
mov ecx, 0x43cf78
mov byte [esp + 0x120], 4
call fcn.00421e50
lea ecx, [esp + 8]
mov byte [esp + 0x11c], bl
call fcn.00421d17
lea ecx, [esp + 8]
push 2
push ecx
call fcn.00407640
add esp, 8
push eax
mov ecx, 0x43cf84
mov byte [esp + 0x120], 5
call fcn.00421e50
lea ecx, [esp + 8]
mov byte [esp + 0x11c], bl
call fcn.00421d17
lea ecx, [esp + 4]
mov dword [esp + 0x11c], 0xffffffff
call fcn.00421d17
mov ecx, dword [esp + 0x114]
pop ebx
mov dword fs:[0], ecx
add esp, 0x11c
ret
Function at 0x407960
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42ae55
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x140
mov eax, dword [0x43832c]
push esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
lea ecx, [esp + 0x18]
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push ecx
mov dword [esp + 0x154], 1
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x14]
lea eax, [esp + 4]
push edx
push eax
push 0
push 0x20019
push 0
push 0x43bf38
lea ecx, [esp + 0x30]
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x43bf38
call fcn.00421d85
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push str.ProgramFilesDir
push str.1081
push 0
push 0x43bf38
push 0
push eax
call fcn.00406b90
mov ecx, dword [esp + 0x28]
add esp, 0x24
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x154]
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.00421a8c
mov dword [esp + 0xc], 1
lea ecx, [esp + 8]
mov byte [esp + 0x14c], 0
call fcn.00421d17
mov ecx, dword [esp + 0x144]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x14c
ret

Function at 0x41685c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x43b868
cmp edx, dword [eax]
je 0x41687e
add eax, 8
inc ecx
cmp eax, 0x43b8f8
jl 0x41686f
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x43b868]
jne 0x4169ac
mov eax, dword [0x43f4e4]
cmp eax, 1
je 0x416986
test eax, eax
jne 0x4168af
cmp dword [0x438db8], 1
je 0x416986
cmp edx, 0xfc
je 0x4169ac
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4168e6
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00415ad0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00411870
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x416929
lea eax, [ebp - 0x1a4]
push eax
call fcn.00411870
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42f778
push edi
call fcn.00417720
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00415ad0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00415ae0
lea eax, [ebp - 0xa0]
push 0x42f758
push eax
call fcn.00415ae0
push dword [esi + 0x43b86c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00415ae0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004183a1
add esp, 0x2c
pop edi
jmp 0x4169ac
lea eax, [ebp + 8]
lea esi, [esi + 0x43b86c]
push 0
push eax
push dword [esi]
call fcn.00411870
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 0x41cca0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004103d0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41cd6b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41cd6b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41cd1e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41cd29
or bh, 8
and edi, 0x8000000
je 0x41cd44
mov eax, dword [0x440c7c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41cd6b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d140
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41d16b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41d18f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41d1aa
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x41f5ed
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x41f625
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004221a9
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00422181
jmp 0x41f631
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x420b73
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x420bb5
call fcn.00426f87
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x420bb5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x420bac
xor eax, eax
jmp 0x420bbd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00420bc3
pop edi
pop esi
pop ebx
ret 4

Function at 0x427bf6
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x427c24
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x427c42
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00427b5c
jmp 0x427c42
mov eax, dword [esi + 0x14]
test eax, eax
je 0x427c42
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00427b5c
test edi, edi
mov eax, edi
jne 0x427c2c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40570a
Capabilities:
Hash data using sha256

Disassembly:
cmp dword [0x441e68], 2
jl 0x40572f
movaps xmm0, xmmword [0x430480]
movaps xmmword [0x43ab80], xmm0
movaps xmm0, xmmword [0x430470]
movaps xmmword [0x43ab90], xmm0
push esi
mov esi, dword [esp + 8]
mov ecx, esi
call fcn.00405adb
xor edx, edx
mov ecx, dword [esi + 0xf4]
mov eax, dword [edx + 0x430450]
mov dword [edx + ecx], eax
add edx, 4
cmp edx, 0x20
jl 0x40573d
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 0x405e5f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x405e91
test dl, 7
je 0x405e91
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x43aba0]
inc edx
mov dword [ebp + 0xc], edx
sub esi, 1
jne 0x405e71
cmp esi, 8
jb 0x405f21
push edi
mov edi, esi
shr edi, 3
xor ebx, dword [edx]
sub esi, 8
mov edx, dword [edx + 4]
mov ecx, edx
shr ecx, 0x18
mov eax, edx
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x43aba0]
xor ecx, dword [eax*4 + 0x43afa0]
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x43b3a0]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x43bba0]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x43bfa0]
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x43c3a0]
movzx eax, dl
mov edx, dword [ebp + 0xc]
add edx, 8
mov dword [ebp + 0xc], edx
xor ecx, dword [eax*4 + 0x43b7a0]
movzx eax, bl
xor ecx, dword [eax*4 + 0x43c7a0]
mov ebx, ecx
sub edi, 1
jne 0x405ea0
pop edi
test esi, esi
je 0x405f3d
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x43aba0]
inc edx
sub esi, 1
jne 0x405f25
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc

Function at 0x4060aa
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebx, ebx
push 0x20
pop ebp
cmp dword [esi], 2
jne 0x406101
mov eax, dword [esi + 4]
push edi
push ebx
push ebx
push ebx
push ebx
mov dword [esp + 0x44], eax
lea eax, [esp + 0x20]
push eax
push 4
lea eax, [esp + 0x4c]
push eax
push ebp
push dword [esp + 0x58]
call fcn.00406784
mov dword [esi + 4], ebx
mov edx, ebx
mov edi, ebx
movzx eax, byte [esp + edx + 0x10]
mov ecx, edx
and ecx, 3
shl ecx, 3
shl eax, cl
xor edi, eax
inc edx
cmp edx, ebp
jb 0x4060e7
mov dword [esi + 4], edi
pop edi
cmp dword [esi], 3
jne 0x40612d
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x1c]
add esi, 4
push eax
push ebp
push esi
push ebp
push dword [esp + 0x54]
call fcn.00406784
push ebp
lea eax, [esp + 0x10]
push eax
push esi
call fcn.0041e010
add esp, 0xc
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
Function at 0x40652d
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 0x406729
push ebp
push esi
xor ebp, ebp
lea esi, [eax + 0x4b4]
push edi
mov edi, ebp
cmp dword [esi + 0x134], ebx
jne 0x406591
push dword [esp + 0x27c]
mov ecx, esi
call fcn.0040ddb4
test al, al
je 0x406591
push 0x10
push dword [esp + 0x288]
lea eax, [esi + 0x102]
push eax
call fcn.0041e95a
add esp, 0xc
test eax, eax
je 0x406733
inc edi
add esi, 0x178
cmp edi, 4
jb 0x406557
mov esi, 0x200
lea eax, [esp + 0x74]
push esi
push eax
push dword [esp + 0x288]
call fcn.00410963
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.00422170
pop ecx
push eax
lea eax, [esp + 0x90]
push eax
call fcn.0040698f
push esi
lea eax, [esp + 0x78]
push eax
call fcn.0040dfe2
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.0041e010
push 0x20
pop edi
push edi
lea eax, [esp + 0x24]
push eax
lea esi, [ebx + 0x112]
push esi
call fcn.0041e010
push edi
lea eax, [esp + 0x50]
push eax
lea eax, [ebx + 0x138]
push eax
call fcn.0041e010
push edi
lea eax, [esp + 0x7c]
push eax
lea eax, [ebx + 0x158]
push eax
call fcn.0041e010
add esp, 0x30
push ebp
push 1
push edi
push esi
call fcn.0040deed
cmp dword [esp + 0x290], ebp
je 0x4066b7
push edi
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x298]
call fcn.0041e010
add esp, 0xc
mov esi, dword [esp + 0x294]
test esi, esi
je 0x4066ea
push 8
push ebp
push esi
call fcn.0041deb0
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 0x4066ce
push edi
lea eax, [esp + 0x38]
push eax
call fcn.0040dfe2
cmp dword [esp + 0x288], 0
je 0x40671b
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.0040d48e
push edi
lea eax, [esp + 0x18]
push eax
call fcn.0040dfe2
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.0041e010
add esp, 0xc
lea eax, [esp + 0x14]
push ebp
push ebp
push edi
push eax
call fcn.0040deed
push edi
lea eax, [esi + 0x138]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0041e010
push edi
lea eax, [esi + 0x158]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.0041e010
add esp, 0x18
jmp 0x406699
Function at 0x406784
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 0x4067d9
lea eax, [esp + 0x164]
push eax
call fcn.0040ebaf
push ebx
push dword [esp + 0x1d4]
lea eax, [esp + 0x16c]
push eax
call fcn.0040ebf5
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x168]
push eax
call fcn.0040eac0
push 0x20
lea eax, [esp + 0x58]
pop ebx
jmp 0x4067e0
mov eax, dword [esp + 0x1d0]
mov ebp, dword [esp + 0x1e4]
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x40680b
mov edx, dword [esp + 0x1e8]
cmp byte [edx], 0
je 0x40680b
push 0x1a
pop ecx
mov esi, ebp
lea edi, [esp + 0x94]
rep movsd dword es:[edi], dword [esi]
jmp 0x40686c
xor edx, edx
test ebx, ebx
je 0x40682b
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 0x406819
cmp ebx, edi
jae 0x406845
mov eax, edi
lea ecx, [esp + 0x14]
sub eax, ebx
add ecx, ebx
push eax
push 0x36
push ecx
call fcn.0041deb0
add esp, 0xc
lea eax, [esp + 0x94]
push eax
call fcn.0040ebaf
push edi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.0040ebf5
mov edx, dword [esp + 0x1e8]
test ebp, ebp
je 0x406886
cmp byte [edx], 0
jne 0x406886
push 0x1a
pop ecx
lea esi, [esp + 0x94]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov byte [edx], 1
push dword [esp + 0x1dc]
lea eax, [esp + 0x98]
push dword [esp + 0x1dc]
push eax
call fcn.0040ebf5
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x98]
push eax
call fcn.0040eac0
mov ebp, dword [esp + 0x1ec]
test ebp, ebp
je 0x4068da
mov eax, dword [esp + 0x1f0]
cmp byte [eax], 0
je 0x4068da
push 0x1a
pop ecx
mov esi, ebp
lea edi, [esp + 0xfc]
rep movsd dword es:[edi], dword [esi]
jmp 0x406940
test ebx, ebx
je 0x4068fc
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 0x4068ea
cmp ebx, 0x40
jae 0x406918
push 0x40
pop eax
sub eax, ebx
lea ecx, [esp + 0x14]
push eax
add ecx, ebx
push 0x5c
push ecx
call fcn.0041deb0
add esp, 0xc
lea eax, [esp + 0xfc]
push eax
call fcn.0040ebaf
push 0x40
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x104]
push eax
call fcn.0040ebf5
mov eax, dword [esp + 0x1f0]
test ebp, ebp
je 0x40695a
cmp byte [eax], 0
jne 0x40695a
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.0040ebf5
push dword [esp + 0x1e0]
lea eax, [esp + 0x100]
push eax
call fcn.0040eac0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1bc
ret 0x24
Function at 0x40698f
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x58]
sub esp, 0x18c
push ebx
push esi
mov esi, dword [ebp + 0x6c]
push edi
push 0x40
pop eax
cmp esi, eax
jae 0x4069a9
mov eax, esi
push eax
push dword [ebp + 0x68]
lea eax, [ebp - 0x44]
push eax
call fcn.0041e010
add esp, 0xc
mov dword [ebp + esi - 0x44], 0x1000000
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp + 0x20]
push eax
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.00406784
push 0x20
pop ebx
push ebx
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp]
push eax
call fcn.0041e010
mov eax, dword [ebp + 0x7c]
add esp, 0xc
dec eax
mov byte [ebp + 0x6b], 0
mov dword [ebp + 0x4c], eax
xor esi, esi
mov byte [ebp + 0x6f], 0
push 0x10
pop eax
mov dword [ebp + 0x50], eax
mov dword [ebp + 0x54], eax
mov eax, dword [ebp + 0x70]
mov dword [ebp + 0x40], eax
mov eax, dword [ebp + 0x74]
mov dword [ebp + 0x44], eax
mov eax, dword [ebp + 0x78]
mov dword [ebp + 0x48], eax
mov edi, dword [ebp + esi + 0x4c]
test edi, edi
je 0x406a75
lea eax, [ebp + 0x6f]
push eax
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp + 0x6b]
push eax
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
lea eax, [ebp + 0x20]
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.00406784
push ebx
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0x20]
push eax
call fcn.0041e010
add esp, 0xc
xor ecx, ecx
mov al, byte [ebp + ecx + 0x20]
xor byte [ebp + ecx], al
inc ecx
cmp ecx, ebx
jb 0x406a63
sub edi, 1
jne 0x406a26
push ebx
lea eax, [ebp]
push eax
push dword [ebp + esi + 0x40]
call fcn.0041e010
add esi, 4
add esp, 0xc
cmp esi, 0xc
jb 0x406a1e
push 0x44
lea eax, [ebp - 0x44]
push eax
call fcn.0040dfe2
push ebx
lea eax, [ebp]
push eax
call fcn.0040dfe2
push ebx
lea eax, [ebp + 0x20]
push eax
call fcn.0040dfe2
push ebx
lea eax, [ebp - 0x64]
push eax
call fcn.0040dfe2
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x58]
pop ebp
ret 0x20