joyce8/EMBER2024-capa huggingface dataset:
Function at 0x9d12e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x9d132c
mov cl, byte [ebx + esi]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [ebx + esi], cl
inc esi
cmp esi, edi
jb 0x9d12f2
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x9d1390
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x9d13e2
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x9d13e8
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], 0
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
mov eax, 1
pop esi
pop ebp
ret

Function at 0x9e98d5
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.009e9595

Function at 0x9ee6cf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.009ee54e

Function at 0x9f3c80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x9f3cad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x9f3cad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e072
mov ebx, 0x407ef8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x3deb08a4
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e0d2
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x32885cbc
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x4014fb
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ebx
push edx
mov eax, dword [ebp + 8]
xor ebx, ebx
imul edx, dword [ebx + 0x403041], 0x8088405
inc edx
mov dword [ebx + 0x403041], edx
mul edx
mov eax, edx
pop edx
pop ebx
pop ebp
ret 4
Function at 0x401fc9
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ADVAPI32.DLL_RegCreateKeyExA
test eax, eax
jne 0x40201d
push dword [ebp + 0x14]
call sub.KERNEL32.DLL_lstrlenA
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
push dword [ebp + 0x14]
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegSetValueExA
push eax
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegCloseKey
pop eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4075f0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
nop
jmp 0x407600
mov ebp, esp
nop
xor edx, edx
mov edx, dword fs:[edx + 0x30]
nop
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
jmp 0x407621
nop
jmp 0x40762c
movzx ecx, word [edx + 0x26]
nop
jmp 0x40763c
xor edi, edi
nop
mov esi, dword [edx + 0x28]
jmp 0x40764f
xor eax, eax
nop
lodsb al, byte [esi]
jmp 0x40765f
cmp al, 0x61
jmp 0x407670
jl 0x407693
jmp 0x407682
jmp 0x407690
sub al, 0x20
nop
jmp 0x4076a2
ror edi, 0xd
add edi, eax
nop
dec ecx
nop
jne 0x407642
nop
jmp 0x4076c1
jmp 0x4076ce
push edx
nop
jmp 0x4076de
push edi
nop
mov edx, dword [edx + 0x10]
nop
jmp 0x4076f0
mov eax, dword [edx + 0x3c]
nop
add eax, edx
mov eax, dword [eax + 0x78]
jmp 0x407704
test eax, eax
nop
jmp 0x407712
je 0x4078c7
jmp 0x407722
add eax, edx
mov ebx, dword [eax + 0x20]
nop
jmp 0x407736
add ebx, edx
jmp 0x407747
push eax
nop
jmp 0x407758
mov ecx, dword [eax + 0x18]
nop
jmp 0x407766
nop
jmp 0x407778
test ecx, ecx
jmp 0x407784
je 0x40789f
nop
jmp 0x407797
xor edi, edi
jmp 0x4077a3
dec ecx
mov esi, dword [ebx + ecx*4]
nop
add esi, edx
nop
xor eax, eax
jmp 0x4077be
lodsb al, byte [esi]
nop
ror edi, 0xd
nop
add edi, eax
nop
jmp 0x4077d2
cmp al, ah
nop
jne 0x4077aa
nop
jmp 0x4077e9
jmp 0x4077fa
add edi, dword [ebp - 8]
nop
cmp edi, dword [ebp + 0x24]
jmp 0x40780b
jne 0x407766
nop
jmp 0x407822
pop eax
nop
mov ebx, dword [eax + 0x24]
nop
add ebx, edx
mov cx, word [ebx + ecx*2]
mov ebx, dword [eax + 0x1c]
add ebx, edx
jmp 0x407845
mov eax, dword [ebx + ecx*4]
add eax, edx
jmp 0x40785a
mov dword [esp + 0x24], eax
jmp 0x407872
pop ebx
nop
pop ebx
nop
jmp 0x407887
popal
pop ecx
nop
pop edx
nop
push ecx
jmp eax
nop
jmp 0x4078b2
pop eax
nop
jmp 0x4078c7
nop
jmp 0x4078d6
pop edi
jmp 0x4078eb
pop edx
jmp 0x407900
mov edx, dword [edx]
jmp 0x407912
jmp 0x407621
Function at 0x4010a3
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
push ebx
push ebp
xor eax, eax
push esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
push edi
mov ebp, dword [ecx + eax*4]
mov esi, ebp
shr esi, 7
mov ebx, esi
and ebx, 0x1010101
imul ebx, ebx, 0x1b
and esi, 1
mov edi, ebp
imul esi, esi, 0x1b000000
rol edi, 0x10
mov eax, ebp
lea edx, [ebp*2]
rol eax, 8
xor edi, eax
xor edx, ebp
mov ecx, ebx
xor ecx, ebp
shr ecx, 1
mov eax, ebp
and eax, 0x7f7f7f00
xor ecx, eax
mov eax, dword [esp + 0x10]
shl edx, 0x18
shr ecx, 7
xor edx, esi
or edx, ecx
mov ecx, dword [esp + 0x14]
and ebp, 0xff7f7f7f
xor edi, edx
add ebp, ebp
xor edi, ebp
xor edi, ebx
mov dword [ecx + eax*4], edi
inc eax
mov dword [esp + 0x10], eax
cmp eax, 4
jl 0x4010b3
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x40142d
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
and dword [ebp - 0x40], 0
push ebx
push esi
push edi
push 4
pop ebx
mov dword [ebp - 0x14], 0x95414aa9
mov dword [ebp - 0x10], 0x2d4301e2
mov word [ebp - 0xc], 0xcb9b
mov byte [ebp - 0xa], 0x46
mov byte [ebp - 9], bl
mov dword [ebp - 8], 0x214ad805
lea esi, [ebp - 0x14]
mov edi, ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x38], 2
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], 8
mov dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x28], 0x20
mov dword [ebp - 0x24], 0x40
mov dword [ebp - 0x20], 0x80
mov dword [ebp - 0x1c], 0x1b
mov dword [ebp - 0x18], 0x36
mov edi, ebx
mov esi, ecx
mov edx, dword [esi + 0xc]
mov eax, edi
and eax, 0x80000003
jns 0x4014bf
dec eax
or eax, 0xfffffffc
inc eax
jne 0x4014ef
ror edx, 8
mov dword [ebp - 4], edx
xor edx, edx
movzx eax, byte [ebp + edx - 4]
inc edx
mov al, byte [eax + str.cw]
mov byte [ebp + edx - 5], al
cmp edx, ebx
jl 0x4014c9
mov eax, edi
cdq
and edx, 3
add eax, edx
sar eax, 2
mov edx, dword [ebp + eax*4 - 0x40]
xor edx, dword [ebp - 4]
mov eax, dword [esi]
xor eax, edx
mov dword [esi + 0x10], eax
inc edi
add esi, ebx
cmp edi, 0x2c
jl 0x4014ae
xor dword [ecx + 0x40], 0x73
xor dword [ecx + 0x60], 9
xor dword [ecx + 0x80], 0xe4
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401840
Capabilities:
Encode data using xor

Disassembly:
push esi
push 4
sub ecx, edx
pop esi
mov eax, dword [ecx + edx]
xor dword [edx], eax
lea edx, [edx + 4]
dec esi
jne 0x401846
pop esi
ret

Function at 0x4018e8
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
cmp dword [0x4097c0], 0
jne 0x401908
push 0xf0000000
push 0x18
push 0
push 0
push 0x4097c0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
ret
xor eax, eax
inc eax
ret
Function at 0x4019b2
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
xor eax, eax
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, ecx
mov edi, 0x408ce4
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor ebx, ebx
mov ebp, edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], 0x20
mov dword [esp + 0x1c], 0x800c
movsd dword es:[edi], dword [esi]
call fcn.004018e8
test eax, eax
je 0x401a79
lea eax, [esp + 0x14]
push eax
push ebx
push ebx
push 0x1c
push 0x408cd8
push dword [0x4097c0]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x401a79
lea eax, [esp + 0x10]
push eax
push ebx
push dword [esp + 0x1c]
push 0x8009
push dword [0x4097c0]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x401a79
push ebx
lea eax, [esp + 0x20]
push eax
push 5
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
test eax, eax
je 0x401a79
push ebx
push ebp
push dword [esp + 0x3c]
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x401a79
push ebx
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x40]
push 2
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x401a79
inc ebx
cmp dword [esp + 0x14], 0
je 0x401a8a
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [esp + 0x10], 0
je 0x401a9b
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x20
ret

Function at 0x401afc
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
sub esp, 0x1c
mov eax, ecx
push 7
pop ecx
mov edi, esp
mov esi, 0x4082e4
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 4]
push ecx
mov ecx, eax
mov ebx, edx
call fcn.00401aa5
add esp, 0x20
test eax, eax
je 0x401b4a
push 0x105
push dword [ebp + 8]
xor esi, esi
push ebx
push 0
inc esi
push esi
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x401b4c
xor esi, esi
cmp dword [ebp - 4], 0
je 0x401b5b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x401b62
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
shr ecx, 0x10
push esi
push edi
sub ecx, 5
je 0x401b85
dec ecx
je 0x401b77
xor eax, eax
jmp 0x401bd8
push dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0040166d
pop ecx
jmp 0x401bd8
and dword [ebp - 4], 0
sub esp, 0x1c
mov esi, 0x4082e4
push 7
pop ecx
mov edi, esp
lea eax, [ebp - 4]
rep movsd dword es:[edi], dword [esi]
push eax
xor ecx, ecx
call fcn.00401aa5
add esp, 0x20
test eax, eax
je 0x401bc5
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
inc esi
push 0
push esi
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x401bc7
xor esi, esi
cmp dword [ebp - 4], 0
je 0x401bd6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x401c11
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor esi, esi
mov edi, edx
mov ebx, ecx
mov dword [ebp - 4], esi
mov dword [ebp - 8], 0x20
call fcn.004018e8
test eax, eax
je 0x401c75
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x800c
push dword [0x4097c0]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x401c75
push esi
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x401c75
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x401c75
inc esi
cmp dword [ebp - 4], 0
je 0x401c84
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x402126
Capabilities:
Terminate process

Disassembly:
cmp dword [0x4097a8], 0
push esi
mov esi, ecx
je 0x402153
push 0x4099e4
push dword [0x4097c8]
mov dword [0x4099e8], 1
mov dword [0x4099f0], esi
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x402829
Capabilities:
Accept command line arguments
Execute command
Terminate process

Disassembly:
sub esp, 0x10
push ebp
push esi
push edi
mov dword [0x4097c4], 0x40328a
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x4097cc
push eax
mov dword [0x409a0c], eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
xor ebp, ebp
mov edx, 0x4097d8
mov dword [esp + 0xc], str.KMSEmulator
mov dword [esp + 0x10], fcn.004029de
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov ecx, dword [edi]
mov dword [0x4099e0], edi
mov esi, edx
movzx eax, word [ecx]
mov word [esi], ax
lea ecx, [ecx + 2]
lea esi, [esi + 2]
test ax, ax
jne 0x40287b
mov ecx, dword [edi]
mov esi, ecx
push ebx
lea ebx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bp
jne 0x402894
sub esi, ebx
push 0x2e
sar esi, 1
pop ebx
cmp word [ecx + esi*2 - 8], bx
jne 0x40290a
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bp
jne 0x4028b0
sub ecx, edx
sar ecx, 1
push 0x6c
pop eax
mov word [ecx*2 + 0x4097d2], ax
mov ecx, dword [edi]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bp
jne 0x4028cf
sub ecx, edx
sar ecx, 1
push 0x6f
pop eax
mov word [ecx*2 + 0x4097d4], ax
mov ecx, dword [edi]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bp
jne 0x4028ee
sub ecx, edx
push 0x67
sar ecx, 1
pop eax
mov word [ecx*2 + 0x4097d6], ax
jmp 0x40294f
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, bp
jne 0x40290d
push 0x6c
pop eax
sub edx, ecx
sar edx, 1
push 0x6f
mov word [edx*2 + 0x4097da], ax
pop eax
mov word [edx*2 + 0x4097dc], ax
push 0x67
pop eax
mov word [edx*2 + 0x4097de], ax
xor eax, eax
mov word [edx*2 + 0x4097d8], bx
mov word [edx*2 + 0x4097e0], ax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
pop ebx
test eax, eax
jne 0x4029d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x427
jne 0x4029d5
cmp dword [0x4097cc], 1
mov dword [0x4097a8], ebp
jle 0x4029d0
mov eax, dword [0x4099e0]
mov esi, dword [sym.imp.KERNEL32.dll_CompareStringW]
or edi, 0xffffffff
push edi
push 0x40677c
push edi
push dword [eax + 4]
push 1
push 0x7f
call esi
cmp eax, 2
je 0x4029b8
mov eax, dword [0x4099e0]
push edi
push 0x406784
push edi
push dword [eax + 4]
push 1
push 0x7f
call esi
cmp eax, 2
jne 0x4029d0
call fcn.0040274e
push str.pause
call dword [sym.imp.msvcrt.dll_system]
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.004029de
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x10
ret
Function at 0x406dcf
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x864
push ebp
mov ebp, dword [esp + 0x880]
mov eax, ecx
mov dword [esp + 4], eax
cmp ebp, 0x18
ja 0x406fad
push ebx
push esi
xor ebx, ebx
lea esi, [eax + 0xf4]
push edi
mov edi, ebx
push dword [esp + 0x87c]
mov ecx, esi
call fcn.00410551
test al, al
je 0x406e2d
lea eax, [esi + 0x10]
cmp dword [eax + 0x30], ebp
jne 0x406e2d
push 0x10
push dword [esp + 0x888]
push eax
call fcn.004215b2
add esp, 0xc
test eax, eax
je 0x406fb7
inc edi
add esi, 0x84
cmp edi, 4
jb 0x406df9
mov esi, 0x800
lea eax, [esp + 0x74]
push esi
push eax
push dword [esp + 0x888]
call fcn.00413150
xor eax, eax
mov ecx, ebp
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 + 0x898]
lea eax, [esp + 0x8c]
push eax
call fcn.004271c0
pop ecx
push eax
lea eax, [esp + 0x90]
push eax
call fcn.0040727f
push esi
lea eax, [esp + 0x78]
push eax
call fcn.00410775
mov edx, dword [esp + 0x10]
push dword [esp + 0x87c]
mov ecx, dword [edx + 0x304]
lea edi, [edx + 0xf4]
mov eax, ecx
and eax, 3
imul eax, eax, 0x84
add edi, eax
lea eax, [ecx + 1]
mov dword [edx + 0x304], eax
mov ecx, edi
mov dword [edi + 0x40], ebp
call fcn.00406960
push 0x10
push dword [esp + 0x888]
lea eax, [edi + 0x10]
push eax
call fcn.00422c30
push 0x20
pop ebp
push ebp
lea eax, [esp + 0x24]
push eax
lea esi, [edi + 0x20]
push esi
call fcn.00422c30
push ebp
lea eax, [esp + 0x50]
push eax
lea eax, [edi + 0x44]
push eax
call fcn.00422c30
push ebp
lea eax, [esp + 0x7c]
push eax
lea eax, [edi + 0x64]
push eax
call fcn.00422c30
add esp, 0x30
push ebx
push 1
push ebp
push esi
call fcn.00410686
cmp dword [esp + 0x890], ebx
je 0x406f3b
push ebp
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x898]
call fcn.00422c30
add esp, 0xc
mov esi, dword [esp + 0x894]
test esi, esi
je 0x406f6e
push 8
push ebx
push esi
call fcn.00421020
add esp, 0xc
mov al, byte [esp + ebx + 0x34]
mov ecx, ebx
and ecx, 7
xor byte [ecx + esi], al
inc ebx
cmp ebx, ebp
jb 0x406f52
push ebp
lea eax, [esp + 0x38]
push eax
call fcn.00410775
cmp dword [esp + 0x888], 0
pop edi
pop esi
pop ebx
je 0x406fa2
push dword [esp + 0x87c]
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push 0x100
push eax
push dword [esp + 0x878]
add ecx, 0x30c
call fcn.0040fba0
push ebp
lea eax, [esp + 0xc]
push eax
call fcn.00410775
pop ebp
add esp, 0x864
ret 0x20
push 0x20
pop ebp
push ebp
lea eax, [esi + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00422c30
add esp, 0xc
lea eax, [esp + 0x14]
push ebx
push ebx
push ebp
push eax
call fcn.00410686
push ebp
lea eax, [esi + 0x44]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00422c30
push ebp
lea eax, [esi + 0x64]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.00422c30
add esp, 0x18
jmp 0x406f1d
Function at 0x407074
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 0x4070c9
lea eax, [esp + 0x164]
push eax
call fcn.00411346
push ebx
push dword [esp + 0x1d4]
lea eax, [esp + 0x16c]
push eax
call fcn.0041138c
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x168]
push eax
call fcn.00411263
push 0x20
lea eax, [esp + 0x58]
pop ebx
jmp 0x4070d0
mov eax, dword [esp + 0x1d0]
mov ebp, dword [esp + 0x1e4]
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x4070fb
mov ecx, dword [esp + 0x1e8]
cmp byte [ecx], 0
je 0x4070fb
push 0x1a
pop ecx
mov esi, ebp
lea edi, [esp + 0x94]
rep movsd dword es:[edi], dword [esi]
jmp 0x407159
xor edx, edx
test ebx, ebx
je 0x40711b
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 0x407109
cmp ebx, edi
jae 0x407135
mov eax, edi
lea ecx, [esp + 0x14]
sub eax, ebx
add ecx, ebx
push eax
push 0x36
push ecx
call fcn.00421020
add esp, 0xc
lea eax, [esp + 0x94]
push eax
call fcn.00411346
push edi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.0041138c
test ebp, ebp
je 0x407176
mov eax, dword [esp + 0x1e8]
cmp byte [eax], 0
jne 0x407176
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.0041138c
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x98]
push eax
call fcn.00411263
mov ebp, dword [esp + 0x1ec]
test ebp, ebp
je 0x4071ca
mov eax, dword [esp + 0x1f0]
cmp byte [eax], 0
je 0x4071ca
push 0x1a
pop ecx
mov esi, ebp
lea edi, [esp + 0xfc]
rep movsd dword es:[edi], dword [esi]
jmp 0x407234
test ebx, ebx
je 0x4071ec
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 0x4071da
cmp ebx, 0x40
jae 0x407208
push 0x40
pop eax
sub eax, ebx
lea ecx, [esp + 0x14]
push eax
add ecx, ebx
push 0x5c
push ecx
call fcn.00421020
add esp, 0xc
lea eax, [esp + 0xfc]
push eax
call fcn.00411346
push 0x40
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x104]
push eax
call fcn.0041138c
test ebp, ebp
je 0x40724a
mov eax, dword [esp + 0x1f0]
cmp byte [eax], 0
jne 0x40724a
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.0041138c
push dword [esp + 0x1e0]
lea eax, [esp + 0x100]
push eax
call fcn.00411263
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1bc
ret 0x24
Function at 0x40727f
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x58]
sub esp, 0x190
push ebx
push esi
mov esi, dword [ebp + 0x6c]
push edi
push 0x40
pop eax
cmp esi, eax
jae 0x407299
mov eax, esi
push eax
push dword [ebp + 0x68]
lea eax, [ebp - 0x48]
push eax
call fcn.00422c30
add esp, 0xc
mov dword [ebp + esi - 0x48], 0x1000000
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp + 0x1c]
push eax
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.00407074
push 0x20
pop ebx
push ebx
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00422c30
mov eax, dword [ebp + 0x7c]
add esp, 0xc
dec eax
mov byte [ebp + 0x56], 0
mov dword [ebp + 0x48], eax
xor esi, esi
mov byte [ebp + 0x57], 0
push 0x10
pop eax
mov dword [ebp + 0x4c], eax
mov dword [ebp + 0x50], eax
mov eax, dword [ebp + 0x70]
mov dword [ebp + 0x3c], eax
mov eax, dword [ebp + 0x74]
mov dword [ebp + 0x40], eax
mov eax, dword [ebp + 0x78]
mov dword [ebp + 0x44], eax
mov edi, dword [ebp + esi + 0x48]
test edi, edi
je 0x407365
lea eax, [ebp + 0x57]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp + 0x56]
push eax
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.00407074
push ebx
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.00422c30
add esp, 0xc
xor ecx, ecx
mov al, byte [ebp + ecx + 0x1c]
xor byte [ebp + ecx - 4], al
inc ecx
cmp ecx, ebx
jb 0x407353
sub edi, 1
jne 0x407316
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + esi + 0x3c]
call fcn.00422c30
add esi, 4
add esp, 0xc
cmp esi, 0xc
jb 0x40730e
push 0x44
lea eax, [ebp - 0x48]
push eax
call fcn.00410775
push ebx
lea eax, [ebp - 4]
push eax
call fcn.00410775
push ebx
lea eax, [ebp + 0x1c]
push eax
call fcn.00410775
push ebx
lea eax, [ebp - 0x68]
push eax
call fcn.00410775
pop edi
pop esi
pop ebx
add ebp, 0x58
leave
ret 0x20