joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407160
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x830
mov dword [ebp - 0x828], edx
mov dword [ebp - 0x824], ecx
mov eax, dword fs:[0x18]
mov dword [esp + 8], 0xe3c
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, 0x38f
mov edx, esi
movdqa xmm0, xmmword [0x40d5a0]
mov ebx, eax
add eax, 0x578
sub esp, 0xc
mov dword [ebp - 0x820], eax
mov edi, ebx
xor eax, eax
rep stosd dword es:[edi], eax
movzx ecx, word [esi]
movups xmmword [ebx + 0x14c], xmm0
mov dword [ebx + 0x88], 1
mov dword [ebx + 0x120], 0x6f
mov dword [ebx + 0x130], 0x2c
mov dword [ebx + 0x138], 1
mov dword [ebx + 0x15c], 0x12c
test cx, cx
je 0x407410
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x407210
mov eax, edx
sub eax, esi
sar eax, 1
cmp cx, 0x22
je 0x4073b0
add eax, 1
lea edx, [ebx + 0x164]
cmp eax, 1
jbe 0x4073c3
mov ecx, edx
jmp 0x407252
sub eax, 1
add ecx, 2
add esi, 2
mov word [ecx - 2], di
cmp eax, 1
je 0x40725a
movzx edi, word [esi]
test di, di
jne 0x407240
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x414]
mov dword [esp], edx
mov dword [esp + 0x10], eax
lea edi, [ebp - 0x814]
lea eax, [ebp - 0x614]
mov dword [esp + 8], edi
lea esi, [ebp - 0x81c]
mov dword [esp + 0xc], eax
mov dword [esp + 4], esi
call dword [sym.imp.ucrtbase.dll__wsplitpath]
xor eax, eax
lea esi, [esi]
movzx edx, word [eax + 0x40d2c8]
mov word [ebx + eax + 0x36c], dx
add eax, 2
test dx, dx
jne 0x407298
mov dword [ebx + 0x574], 0x1f
xor eax, eax
mov dword [ebx + 0x58c], 0
lea esi, [esi]
movzx edx, word [esi + eax]
mov word [ebp + eax - 0x214], dx
add eax, 2
test dx, dx
jne 0x4072c8
cmp word [ebp - 0x214], 0
lea edx, [ebp - 0x214]
je 0x4072f9
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x4072f0
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [edi + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x407300
mov eax, dword [ebp - 0x824]
lea edx, [ebp - 0x214]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0xe38]
mov dword [esp], esi
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x828]
mov eax, dword [ebp - 0x820]
call fcn.00404030
cmp dword [ebx + 0x818], 1
mov edi, eax
je 0x4073d8
lea eax, [ebx + 0xc30]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
lea eax, [ebx + 0x5bc]
mov dword [esp + 4], 0x40d2b8
mov dword [esp], eax
call dword [sym.imp.user32.dll_wsprintfW]
mov eax, dword [ebp - 0x820]
mov edx, edi
xor ecx, ecx
mov dword [ebx + 0x590], 0x10
mov dword [ebx + 0x124], 0
mov dword [ebx + 0x90], eax
mov eax, dword [ebp - 0x824]
mov dword [esp], eax
mov eax, ebx
call fcn.00407070
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
cmp word [edx - 2], 0x22
jne 0x407229
add esi, 2
jmp 0x40722c
test eax, eax
je 0x40725f
mov ecx, edx
jmp 0x40725a
lea eax, [ebx + 0x5bc]
mov dword [esp + 0xc], 0x104
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4b4
mov eax, dword [0x416020]
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
sub esp, 0x10
jmp 0x407372
lea ecx, [ebx + 0x164]
mov edx, ecx
jmp 0x40725a
Function at 0x40b310
Capabilities:
Accept command line arguments
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call 0x40b380
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x54
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x40b3d7
xor ecx, ecx
xor edx, edx
jmp 0x40b3b9
cmp ax, 0x5c
jne 0x40b440
add edx, 1
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x40b3d7
cmp ax, 9
je 0x40b3c5
cmp ax, 0x20
jne 0x40b3a0
test ecx, ecx
je 0x40b42b
movzx eax, word [ebx + 2]
add ebx, 2
xor edx, edx
test ax, ax
jne 0x40b3b9
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x20], 1
je 0x40b460
movzx esi, word [ebp - 0x1c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.0040ad80
sub esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
add ebx, 2
movzx eax, word [ebx]
cmp ax, 9
je 0x40b428
cmp ax, 0x20
je 0x40b428
jmp 0x40b3d7
cmp ax, 0x22
jne 0x40b3c9
and edx, 1
jne 0x40b3c9
xor ecx, 1
jmp 0x40b3ad
mov eax, 1
mov esi, 1
mov word [ebp - 0x1c], ax
jmp 0x40b3f0
Function at 0x40b380
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call 0x40b380
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x54
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x40b3d7
xor ecx, ecx
xor edx, edx
jmp 0x40b3b9
cmp ax, 0x5c
jne 0x40b440
add edx, 1
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x40b3d7
cmp ax, 9
je 0x40b3c5
cmp ax, 0x20
jne 0x40b3a0
test ecx, ecx
je 0x40b42b
movzx eax, word [ebx + 2]
add ebx, 2
xor edx, edx
test ax, ax
jne 0x40b3b9
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x20], 1
je 0x40b460
movzx esi, word [ebp - 0x1c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.0040ad80
sub esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
add ebx, 2
movzx eax, word [ebx]
cmp ax, 9
je 0x40b428
cmp ax, 0x20
je 0x40b428
jmp 0x40b3d7
cmp ax, 0x22
jne 0x40b3c9
and edx, 1
jne 0x40b3c9
xor ecx, 1
jmp 0x40b3ad
mov eax, 1
mov esi, 1
mov word [ebp - 0x1c], ax
jmp 0x40b3f0
Function at 0x408b54
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x34], 0x9e3779b9
mov esi, edx
mov dword [ebp - 0x38], edi
lea ecx, [ebp - 8]
mov eax, dword [edi]
mov ebx, dword [edi + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], eax
call fcn.00408a98
mov eax, dword [esi + 8]
add dword [ebp - 8], 0x23f
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0xc]
push 0x20
mov dword [ebp - 0x2c], eax
pop esi
mov dword [ebp - 0x20], 2
add dword [ebp - 0x20], 3
mov edx, dword [ebp - 0xc]
mov eax, edx
mov ecx, dword [0x2d37054]
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x408bdb
push 0x4010f8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [0x2d37054]
add eax, dword [ebp - 0x28]
cmp ecx, 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x2d37098]
mov dword [ebp - 0x24], 0xedeb2e40
cmove eax, dword [ebp - 0x24]
and dword [ebp - 0x24], 0
cmp ecx, 0x3eb
mov dword [0x2d37098], eax
mov eax, dword [0x2d370a0]
cmove eax, dword [ebp - 0x24]
mov dword [0x2d370a0], eax
mov eax, dword [ebp - 8]
add eax, edx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x18], 0
mov dword [0x2d3709c], 0xf4ea3dee
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
xor eax, dword [ebp - 0x1c]
sub ebx, eax
mov dword [ebp - 0x14], eax
mov eax, ebx
mov dword [ebp - 0x1c], ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 8]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
nop
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
mov eax, ebx
shr eax, cl
add eax, edi
mov dword [ebp - 0x14], eax
xor eax, dword [ebp - 0x24]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x34]
sub dword [ebp - 8], eax
dec esi
jne 0x408ba3
mov edi, dword [ebp - 0x38]
mov eax, dword [ebp - 0xc]
mov dword [edi + 4], ebx
mov dword [edi], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408cb5
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
shr esi, 3
push edi
mov edi, ecx
test esi, esi
je 0x408cf1
cmp dword [0x2d37054], 0x959
jne 0x408ce1
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.00408b54
add edi, 8
dec esi
jne 0x408cc5
pop edi
pop esi
pop ebp
ret 4
Function at 0x4123f1
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4326e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00410f18
mov dword [ebp - 0x14], eax
cmp dword [0x2d37e38], esi
jne 0x4124e4
push 0x800
push esi
push 0x4052ac
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x412471
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4125c4
push esi
push esi
push 0x4052ac
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4125c4
push 0x4052c4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4125c4
push eax
call ebx
push 0x4052d0
push edi
mov dword [0x2d37e38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x4052e0
push edi
mov dword [0x2d37e3c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x4052f4
push edi
mov dword [0x2d37e40], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x2d37e48], eax
test eax, eax
je 0x4124e1
push 0x405310
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x2d37e44], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x412509
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4124fc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x41251e
push 4
pop eax
jmp 0x4125c6
cmp dword [ebp - 0x14], esi
je 0x41251e
push dword [0x2d37e38]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x412503
mov eax, dword [0x2d37e44]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41257c
cmp dword [0x2d37e48], edi
je 0x41257c
push eax
call ebx
push dword [0x2d37e48]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41257c
test eax, eax
je 0x41257c
call ecx
test eax, eax
je 0x412571
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x412571
test byte [ebp - 8], 1
jne 0x41257c
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4125ac
mov eax, dword [0x2d37e3c]
cmp eax, edi
je 0x4125a9
push eax
call ebx
test eax, eax
je 0x4125a9
call eax
mov esi, eax
test esi, esi
je 0x4125a9
mov eax, dword [0x2d37e40]
cmp eax, edi
je 0x4125a9
push eax
call ebx
test eax, eax
je 0x4125a9
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x2d37e38]
call ebx
test eax, eax
je 0x4125c4
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4125c6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b3ae
mov esp, ebp
pop ebp
ret
Function at 0x4054c6
Capabilities:
Hash data using sha256

Disassembly:
cmp dword [0x442494], 2
jl 0x4054eb
movaps xmm0, xmmword [0x430400]
movaps xmmword [0x43abb0], xmm0
movaps xmm0, xmmword [0x4303f0]
movaps xmmword [0x43abc0], xmm0
push esi
mov esi, dword [esp + 8]
mov ecx, esi
call fcn.00405891
xor edx, edx
mov ecx, dword [esi + 0xf4]
mov eax, dword [edx + 0x4303c8]
mov dword [edx + ecx], eax
add edx, 4
cmp edx, 0x20
jl 0x4054f9
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 0x405c20
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 0x405c52
test dl, 7
je 0x405c52
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x43abd8]
inc edx
mov dword [ebp + 0xc], edx
sub esi, 1
jne 0x405c32
cmp esi, 8
jb 0x405ce2
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 + 0x43abd8]
xor ecx, dword [eax*4 + 0x43afd8]
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x43b3d8]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x43bbd8]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x43bfd8]
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x43c3d8]
movzx eax, dl
mov edx, dword [ebp + 0xc]
add edx, 8
mov dword [ebp + 0xc], edx
xor ecx, dword [eax*4 + 0x43b7d8]
movzx eax, bl
xor ecx, dword [eax*4 + 0x43c7d8]
mov ebx, ecx
sub edi, 1
jne 0x405c61
pop edi
test esi, esi
je 0x405cfe
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x43abd8]
inc edx
sub esi, 1
jne 0x405ce6
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc

Function at 0x405e6b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push 0x20
pop ebx
cmp dword [esi], 2
jne 0x405eb9
mov eax, dword [esi + 4]
push edi
mov dword [ebp + 8], eax
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp + 8]
push eax
push ebx
push dword [ebp + 0xc]
call fcn.0040651f
xor edx, edx
mov dword [esi + 4], edx
mov edi, edx
movzx eax, byte [ebp + edx - 0x20]
mov ecx, edx
and ecx, 3
shl ecx, 3
shl eax, cl
xor edi, eax
inc edx
cmp edx, ebx
jb 0x405e9f
mov dword [esi + 4], edi
pop edi
cmp dword [esi], 3
jne 0x405ede
lea eax, [ebp - 0x20]
add esi, 4
push eax
push ebx
push esi
push ebx
push dword [ebp + 0xc]
call fcn.0040651f
push ebx
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.0041eeb0
add esp, 0xc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4062c9
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x264
push edi
mov edi, dword [esp + 0x280]
mov eax, ecx
mov dword [esp + 4], eax
cmp edi, 0x18
ja 0x4064be
push ebx
push ebp
xor ebp, ebp
lea ebx, [eax + 0x4b4]
push esi
mov esi, ebp
cmp dword [ebx + 0x134], edi
jne 0x40632d
push dword [esp + 0x27c]
mov ecx, ebx
call fcn.0040d9bd
test al, al
je 0x40632d
push 0x10
push dword [esp + 0x288]
lea eax, [ebx + 0x102]
push eax
call fcn.0041d730
add esp, 0xc
test eax, eax
je 0x4064c8
inc esi
add ebx, 0x178
cmp esi, 4
jb 0x4062f3
mov esi, 0x200
lea eax, [esp + 0x74]
push esi
push eax
push dword [esp + 0x288]
call fcn.0040ff2c
xor eax, eax
mov ecx, edi
inc eax
shl eax, cl
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x40]
push eax
push 0x10
push dword [esp + 0x298]
lea eax, [esp + 0x8c]
push eax
call fcn.00421750
pop ecx
push eax
lea eax, [esp + 0x90]
push eax
call fcn.00406692
push esi
lea eax, [esp + 0x78]
push eax
call fcn.0040dbf6
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
pop ecx
push 0x10
push dword [esp + 0x288]
mov dword [ebx + 0x134], edi
lea eax, [ebx + 0x102]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
call fcn.0041eeb0
push 0x20
pop edi
push edi
lea eax, [esp + 0x44]
push eax
lea esi, [ebx + 0x112]
push esi
call fcn.0041eeb0
push edi
lea eax, [esp + 0x30]
push eax
lea eax, [ebx + 0x138]
push eax
call fcn.0041eeb0
push edi
lea eax, [esp + 0x7c]
push eax
lea eax, [ebx + 0x158]
push eax
call fcn.0041eeb0
add esp, 0x30
push ebp
push 1
push edi
push esi
call fcn.0040dafa
cmp dword [esp + 0x290], ebp
je 0x40644c
push edi
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x298]
call fcn.0041eeb0
add esp, 0xc
mov esi, dword [esp + 0x294]
test esi, esi
je 0x40647f
push 8
push ebp
push esi
call fcn.0041d200
add esp, 0xc
mov al, byte [esp + ebp + 0x14]
mov ecx, ebp
and ecx, 7
xor byte [ecx + esi], al
inc ebp
cmp ebp, edi
jb 0x406463
push edi
lea eax, [esp + 0x18]
push eax
call fcn.0040dbf6
cmp dword [esp + 0x288], 0
pop esi
pop ebp
pop ebx
je 0x4064b3
push dword [esp + 0x27c]
mov ecx, dword [esp + 8]
lea eax, [esp + 0x2c]
push 0x100
push eax
push dword [esp + 0x278]
add ecx, 0xa9c
call fcn.0040d091
push edi
lea eax, [esp + 0x2c]
push eax
call fcn.0040dbf6
pop edi
add esp, 0x264
ret 0x20
push ebp
push ebp
push 0x20
pop edi
push edi
lea esi, [ebx + 0x112]
push esi
call fcn.0040dafa
push edi
lea eax, [esp + 0x38]
push esi
push eax
call fcn.0041eeb0
add esp, 0xc
push ebp
push 1
push edi
push esi
call fcn.0040dafa
push edi
lea eax, [ebx + 0x138]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0041eeb0
push edi
lea eax, [ebx + 0x158]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.0041eeb0
add esp, 0x18
jmp 0x40642e
Function at 0x40651f
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0x1d0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1e4]
push edi
push 0x40
pop ebp
cmp esi, ebp
jbe 0x406574
lea eax, [esp + 0x170]
push eax
call fcn.0040e20c
push esi
push dword [esp + 0x1e8]
lea eax, [esp + 0x178]
push eax
call fcn.0040e252
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x174]
push eax
call fcn.0040e165
push 0x20
lea ebx, [esp + 0x54]
pop esi
jmp 0x40657b
mov ebx, dword [esp + 0x1e4]
xor edi, edi
mov edx, edi
test esi, esi
je 0x4065a0
mov ebp, ebx
lea eax, [esp + 0x10]
sub ebp, eax
lea ecx, [esp + 0x10]
add ecx, edx
mov al, byte [ecx + ebp]
xor al, 0x36
inc edx
mov byte [ecx], al
cmp edx, esi
jb 0x40658b
push 0x40
pop ebp
cmp esi, ebp
jae 0x4065ba
mov eax, ebp
lea ecx, [esp + 0x10]
sub eax, esi
add ecx, esi
push eax
push 0x36
push ecx
call fcn.0041d200
add esp, 0xc
lea eax, [esp + 0x90]
push eax
call fcn.0040e20c
push ebp
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x98]
push eax
call fcn.0040e252
push dword [esp + 0x1f0]
lea eax, [esp + 0x94]
push dword [esp + 0x1f0]
push eax
call fcn.0040e252
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x94]
push eax
call fcn.0040e165
lea eax, [esp + 0x100]
push eax
call fcn.0040e20c
test esi, esi
je 0x406630
lea eax, [esp + 0x10]
sub ebx, eax
lea ecx, [esp + 0x10]
add ecx, edi
mov al, byte [ebx + ecx]
xor al, 0x5c
inc edi
mov byte [ecx], al
cmp edi, esi
jb 0x40661e
cmp esi, ebp
jae 0x40664a
mov eax, ebp
lea ecx, [esp + 0x10]
sub eax, esi
add ecx, esi
push eax
push 0x5c
push ecx
call fcn.0041d200
add esp, 0xc
push ebp
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x108]
push eax
call fcn.0040e252
push 0x20
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x108]
push eax
call fcn.0040e252
push dword [esp + 0x1f4]
lea eax, [esp + 0x104]
push eax
call fcn.0040e165
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1d0
ret 0x14
Function at 0x406692
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x58]
sub esp, 0xbc
push ebx
push esi
mov esi, dword [ebp + 0x6c]
push edi
push 0x40
pop eax
cmp esi, eax
jae 0x4066ac
mov eax, esi
push eax
push dword [ebp + 0x68]
lea eax, [ebp - 0x44]
push eax
call fcn.0041eeb0
add esp, 0xc
mov dword [ebp + esi - 0x44], 0x1000000
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.0040651f
push 0x20
pop ebx
push ebx
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp]
push eax
call fcn.0041eeb0
mov eax, dword [ebp + 0x7c]
add esp, 0xc
dec eax
xor esi, esi
mov dword [ebp + 0x4c], eax
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 0x406754
lea eax, [ebp - 0x64]
push eax
push ebx
lea eax, [ebp + 0x20]
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.0040651f
push ebx
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0x20]
push eax
call fcn.0041eeb0
add esp, 0xc
xor ecx, ecx
mov al, byte [ebp + ecx + 0x20]
xor byte [ebp + ecx], al
inc ecx
cmp ecx, ebx
jb 0x406742
sub edi, 1
jne 0x40671b
push ebx
lea eax, [ebp]
push eax
push dword [ebp + esi + 0x40]
call fcn.0041eeb0
add esi, 4
add esp, 0xc
cmp esi, 0xc
jb 0x406713
push 0x44
lea eax, [ebp - 0x44]
push eax
call fcn.0040dbf6
push ebx
lea eax, [ebp]
push eax
call fcn.0040dbf6
push ebx
lea eax, [ebp + 0x20]
push eax
call fcn.0040dbf6
push ebx
lea eax, [ebp - 0x64]
push eax
call fcn.0040dbf6
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x58]
pop ebp
ret 0x20