joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420d72
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov eax, 1
push edi
mov dword [esi + 0x30], eax
mov dword [esi + 0x44], eax
or eax, 0xffffffff
xor edi, edi
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], eax
mov eax, dword [esi + 4]
mov dword [esi + 0x78], edi
mov dword [esi + 0x68], edi
cmp eax, 0x20
mov dword [esi + 0x7c], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
jbe 0x420ddb
mov eax, 0x20
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x58], edi
cmp eax, ecx
je 0x420e1c
lea ebx, [esi + 0xc8]
mov ebp, 0x20
cmp dword [ebx + 8], edi
je 0x420e01
mov ecx, ebx
call fcn.00420a60
add ebx, 0x28
dec ebp
jne 0x420df5
mov edx, dword [esi + 0x5c]
cmp edx, edi
je 0x420e17
mov ecx, dword [esi + 0x14]
call dword [ecx + 4]
mov dword [esi + 0x5c], edi
mov ecx, dword [esi]
mov dword [esi + 0x20], ecx
mov edx, dword [esi + 0x10]
lea ecx, [esi + 0x98]
call fcn.00420990
mov eax, dword [esi + 0x58]
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
lea edx, [eax + eax*4 + 0x19]
inc eax
mov dword [esi + 0x58], eax
lea ebp, [esi + edx*8]
mov ecx, ebp
call fcn.00420ec0
mov ebx, eax
cmp ebx, edi
jne 0x420e7f
lea ecx, [ebp + 0x20]
call fcn.00423530
mov ebx, eax
cmp ebx, edi
jne 0x420e7f
lea ecx, [ebp + 0x1c]
call fcn.00423530
mov ebx, eax
cmp ebx, edi
jne 0x420e7f
push ebp
call fcn.00420f10
mov ebx, eax
cmp ebx, edi
je 0x420e94
mov ecx, esi
mov dword [esi + 0x44], edi
call fcn.00420ef0
cmp ebx, edi
jle 0x420e8f
and ebx, 0xffff
or ebx, 0x80070000
cmp ebx, edi
je 0x420e94
mov dword [esi + 0x40], ebx
cmp dword [esi + 0x38], edi
jne 0x420ea6
cmp dword [esi + 0x40], edi
jne 0x420ea6
cmp dword [esi + 0x3c], edi
jne 0x420ea6
mov dword [esi + 0x44], edi
mov eax, dword [esi + 0x44]
pop edi
neg eax
sbb eax, eax
pop esi
not eax
and eax, ebx
pop ebp
pop ebx
ret
Function at 0x422ef0
Capabilities:
Hash data using sha256

Disassembly:
xor eax, eax
mov dword [ecx], 0x6a09e667
mov dword [ecx + 4], 0xbb67ae85
mov dword [ecx + 8], 0x3c6ef372
mov dword [ecx + 0xc], 0xa54ff53a
mov dword [ecx + 0x10], 0x510e527f
mov dword [ecx + 0x14], 0x9b05688c
mov dword [ecx + 0x18], 0x1f83d9ab
mov dword [ecx + 0x1c], 0x5be0cd19
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], eax
ret

Function at 0x4233f0
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov edi, dword [esi + 0x20]
and edi, 0x3f
mov byte [edi + esi + 0x28], 0x80
inc edi
xor ebx, ebx
mov ebp, edx
cmp edi, 0x38
je 0x423425
jmp 0x423410
and edi, 0x3f
jne 0x42341b
push esi
call fcn.00422f30
mov byte [esi + edi + 0x28], bl
inc edi
cmp edi, 0x38
jne 0x423410
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
shld ecx, eax, 3
add eax, eax
add eax, eax
add eax, eax
bswap ecx
bswap eax
push esi
mov dword [esi + 0x60], ecx
mov dword [esi + 0x64], eax
call fcn.00422f30
xor eax, eax
mov ecx, dword [esi + eax*4 + 4]
mov edx, dword [esi + eax*4]
bswap edx
bswap ecx
mov dword [ebp], edx
mov dword [ebp + 4], ecx
add eax, 2
add ebp, 8
cmp eax, 8
jb 0x423447
pop edi
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
pop esi
pop ebp
pop ebx
ret

Function at 0x4234f0
Capabilities:
Create thread

Disassembly:
push esi
lea eax, [esp + 8]
push eax
push 0
mov esi, ecx
mov ecx, dword [esp + 0x10]
push ecx
push edx
push 0
push 0
call sub.MSVCRT.dll__beginthreadex
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x423518
xor eax, eax
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x423527
mov eax, 1
ret 4
Function at 0x424a8c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429758
push 0x424a86
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x432634], 0xffffffff
or dword [0x432638], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x4305fc]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x4305f8]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x432630], eax
call fcn.00424bcf
cmp dword [0x42e220], 0
jne 0x424b0f
push 0x424bcc
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00424bba
push 0x42e05c
push 0x42e058
call sub.MSVCRT.dll__initterm
mov eax, dword [0x4305f4]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x4305f0]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x42e054
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.004129f3
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
mov ecx, 0x63407d92
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
mov ecx, 0x2a5d2431
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e06c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x1074d160
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1074d2b0
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1074d186
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1074d172
add dl, dl
jne 0x1074d191
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1074d1e4
xor eax, eax
add dl, dl
jne 0x1074d19e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1074d285
add dl, dl
jne 0x1074d1ad
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1074d1b8
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1074d1c3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1074d1ce
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1074d1da
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1074d17d
mov eax, 1
add dl, dl
jne 0x1074d1f2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1074d1fd
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1074d1e9
sub eax, ebx
mov ebx, 1
jne 0x1074d230
mov ecx, 1
add dl, dl
jne 0x1074d216
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1074d221
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1074d20d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1074d17d
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1074d247
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1074d252
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1074d23e
cmp eax, 0x7d00
jae 0x1074d275
cmp eax, 0x500
jb 0x1074d270
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1074d17d
cmp eax, 0x7f
ja 0x1074d278
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1074d17d
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1074d2a6
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1074d17d
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x422037
Capabilities:
Packed with generic packer

Disassembly:
pushal
call 0x42203d
pop eax
sub eax, 0x3d
push eax
lea edi, [eax - 0x21000]
push edi
lea esi, [eax + 0x1e8]
or ebp, 0xffffffff
xor ebx, ebx
nop
nop
nop
nop
add ebx, ebx
jne 0x422063
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x422070
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
jmp 0x422058
mov eax, 1
add ebx, ebx
jne 0x422080
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
ja 0x422075
jne 0x422091
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x422075
xor ecx, ecx
sub eax, 3
jb 0x4220ff
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42211a
mov ebp, eax
add ebx, ebx
jne 0x4220b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4220bd
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4220e1
inc ecx
add ebx, ebx
jne 0x4220cd
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
ja 0x4220c2
jne 0x4220de
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4220c2
add ecx, 2
cmp eax, 0xfffff300
adc ecx, 1
lea edx, [edi + eax]
cmp eax, 0xfffffffc
jle 0x422104
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4220f1
jmp 0x422058
mov eax, ebp
jmp 0x4220a5
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x422104
add edi, ecx
jmp 0x422058
pop esi
pop ebp
sub edi, dword [edi - 4]
push edi
lea edi, [esi]
mov ecx, 0x5bf
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42212b
cmp byte [edi], 1
jne 0x42212b
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 0x422130
pop edi
mov eax, dword [edi]
or eax, eax
je 0x422195
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1f000]
add ebx, esi
push eax
add edi, 8
call dword [ebp]
xchg edx, eax
mov al, byte [edi]
inc edi
or al, al
je 0x422158
push edx
mov ecx, edi
jns 0x422185
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push edx
call dword [ebp + 4]
pop edx
mov dword [ebx], eax
add ebx, 4
jmp 0x422172
lea ebx, [esi - 4]
add edi, 4
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4221c6
cmp al, 0xef
ja 0x4221b9
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x42219b
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4221a8
popal
jmp 0x406462
Function at 0x40b4e5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004041e5
xor ebx, ebx
cmp dword [0x434898], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40b5ba
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x40b525
sub eax, eax
jmp 0x40b67e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40b51e
push eax
call fcn.00404182
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x434898], eax
call esi
push eax
call fcn.00404182
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43489c], eax
call esi
push eax
call fcn.00404182
mov dword [0x4348a0], eax
lea eax, [ebp - 8]
push eax
call fcn.004067af
or eax, eax
pop ecx
pop ecx
je 0x40b588
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40b5ba
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00404182
cmp eax, ebx
pop ecx
mov dword [0x4348a8], eax
je 0x40b5ba
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404182
pop ecx
mov dword [0x4348a4], eax
mov eax, dword [0x4348a4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40b633
cmp dword [0x4348a8], esi
je 0x40b633
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
je 0x40b600
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4348a8]
call fcn.004041ee
pop ecx
call eax
or eax, eax
je 0x40b600
test byte [ebp - 0x18], 1
jne 0x40b633
lea eax, [ebp - 0xc]
push eax
call fcn.004067e6
or eax, eax
pop ecx
je 0x40b61b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40b62a
or dword [ebp + 0x10], 0x200000
jmp 0x40b664
or dword [ebp + 0x10], 0x40000
jmp 0x40b664
mov eax, dword [0x43489c]
cmp eax, esi
je 0x40b664
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40b664
mov eax, dword [0x4348a0]
cmp eax, esi
je 0x40b664
push dword [ebp - 4]
push eax
call fcn.004041ee
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x434898]
call fcn.004041ee
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x40547d
Capabilities:
Hash data using sha256

Disassembly:
cmp dword [0x441e58], 2
jl 0x4054a2
movaps xmm0, xmmword [0x430400]
movaps xmmword [0x43ab70], xmm0
movaps xmm0, xmmword [0x4303f0]
movaps xmmword [0x43ab80], xmm0
push esi
mov esi, dword [esp + 8]
mov ecx, esi
call fcn.0040584e
xor edx, edx
mov ecx, dword [esi + 0xf4]
mov eax, dword [edx + 0x4303d0]
mov dword [edx + ecx], eax
add edx, 4
cmp edx, 0x20
jl 0x4054b0
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 0x405bff
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 0x405c31
test dl, 7
je 0x405c31
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x43ab90]
inc edx
mov dword [ebp + 0xc], edx
sub esi, 1
jne 0x405c11
cmp esi, 8
jb 0x405cc1
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 + 0x43ab90]
xor ecx, dword [eax*4 + 0x43af90]
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x43b390]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x43bb90]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x43bf90]
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x43c390]
movzx eax, dl
mov edx, dword [ebp + 0xc]
add edx, 8
mov dword [ebp + 0xc], edx
xor ecx, dword [eax*4 + 0x43b790]
movzx eax, bl
xor ecx, dword [eax*4 + 0x43c790]
mov ebx, ecx
sub edi, 1
jne 0x405c40
pop edi
test esi, esi
je 0x405cdd
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x43ab90]
inc edx
sub esi, 1
jne 0x405cc5
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc

Function at 0x405e4a
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 0x405ea1
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.0040653c
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 0x405e87
mov dword [esi + 4], edi
pop edi
cmp dword [esi], 3
jne 0x405ecd
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.0040653c
push ebp
lea eax, [esp + 0x10]
push eax
push esi
call fcn.0041d740
add esp, 0xc
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
Function at 0x4062e5
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 0x4064e1
push ebp
push esi
xor ebp, ebp
lea esi, [eax + 0x4b4]
push edi
mov edi, ebp
cmp dword [esi + 0x134], ebx
jne 0x406349
push dword [esp + 0x27c]
mov ecx, esi
call fcn.0040da41
test al, al
je 0x406349
push 0x10
push dword [esp + 0x288]
lea eax, [esi + 0x102]
push eax
call fcn.0041e08a
add esp, 0xc
test eax, eax
je 0x4064eb
inc edi
add esi, 0x178
cmp edi, 4
jb 0x40630f
mov esi, 0x200
lea eax, [esp + 0x74]
push esi
push eax
push dword [esp + 0x288]
call fcn.00410547
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.004218c0
pop ecx
push eax
lea eax, [esp + 0x90]
push eax
call fcn.00406747
push esi
lea eax, [esp + 0x78]
push eax
call fcn.0040dc6f
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.0041d740
push 0x20
pop edi
push edi
lea eax, [esp + 0x24]
push eax
lea esi, [ebx + 0x112]
push esi
call fcn.0041d740
push edi
lea eax, [esp + 0x50]
push eax
lea eax, [ebx + 0x138]
push eax
call fcn.0041d740
push edi
lea eax, [esp + 0x7c]
push eax
lea eax, [ebx + 0x158]
push eax
call fcn.0041d740
add esp, 0x30
push ebp
push 1
push edi
push esi
call fcn.0040db7a
cmp dword [esp + 0x290], ebp
je 0x40646f
push edi
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x298]
call fcn.0041d740
add esp, 0xc
mov esi, dword [esp + 0x294]
test esi, esi
je 0x4064a2
push 8
push ebp
push esi
call fcn.0041d5e0
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 0x406486
push edi
lea eax, [esp + 0x38]
push eax
call fcn.0040dc6f
cmp dword [esp + 0x288], 0
je 0x4064d3
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.0040d115
push edi
lea eax, [esp + 0x18]
push eax
call fcn.0040dc6f
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.0041d740
add esp, 0xc
lea eax, [esp + 0x14]
push ebp
push ebp
push edi
push eax
call fcn.0040db7a
push edi
lea eax, [esi + 0x138]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0041d740
push edi
lea eax, [esi + 0x158]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.0041d740
add esp, 0x18
jmp 0x406451
Function at 0x40653c
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 0x406591
lea eax, [esp + 0x164]
push eax
call fcn.0040e83c
push ebx
push dword [esp + 0x1d4]
lea eax, [esp + 0x16c]
push eax
call fcn.0040e882
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x168]
push eax
call fcn.0040e74d
push 0x20
lea eax, [esp + 0x58]
pop ebx
jmp 0x406598
mov eax, dword [esp + 0x1d0]
mov ebp, dword [esp + 0x1e4]
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x4065c3
mov edx, dword [esp + 0x1e8]
cmp byte [edx], 0
je 0x4065c3
push 0x1a
pop ecx
mov esi, ebp
lea edi, [esp + 0x94]
rep movsd dword es:[edi], dword [esi]
jmp 0x406624
xor edx, edx
test ebx, ebx
je 0x4065e3
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 0x4065d1
cmp ebx, edi
jae 0x4065fd
mov eax, edi
lea ecx, [esp + 0x14]
sub eax, ebx
add ecx, ebx
push eax
push 0x36
push ecx
call fcn.0041d5e0
add esp, 0xc
lea eax, [esp + 0x94]
push eax
call fcn.0040e83c
push edi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.0040e882
mov edx, dword [esp + 0x1e8]
test ebp, ebp
je 0x40663e
cmp byte [edx], 0
jne 0x40663e
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.0040e882
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x98]
push eax
call fcn.0040e74d
mov ebp, dword [esp + 0x1ec]
test ebp, ebp
je 0x406692
mov eax, dword [esp + 0x1f0]
cmp byte [eax], 0
je 0x406692
push 0x1a
pop ecx
mov esi, ebp
lea edi, [esp + 0xfc]
rep movsd dword es:[edi], dword [esi]
jmp 0x4066f8
test ebx, ebx
je 0x4066b4
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 0x4066a2
cmp ebx, 0x40
jae 0x4066d0
push 0x40
pop eax
sub eax, ebx
lea ecx, [esp + 0x14]
push eax
add ecx, ebx
push 0x5c
push ecx
call fcn.0041d5e0
add esp, 0xc
lea eax, [esp + 0xfc]
push eax
call fcn.0040e83c
push 0x40
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x104]
push eax
call fcn.0040e882
mov eax, dword [esp + 0x1f0]
test ebp, ebp
je 0x406712
cmp byte [eax], 0
jne 0x406712
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.0040e882
push dword [esp + 0x1e0]
lea eax, [esp + 0x100]
push eax
call fcn.0040e74d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1bc
ret 0x24