joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47d844
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
xor esi, esi
lea ecx, [edi + 0x1c]
shr edi, 2
mov eax, edi
mov dword [ebp - 0xc], ecx
shr eax, 1
add eax, 3
mov dword [ebx], eax
add ebx, 0x10
test edi, edi
je 0x47d87a
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [ebx + esi*4], eax
inc esi
cmp esi, edi
jb 0x47d86d
cmp esi, ecx
jae 0x47d95d
mov eax, esi
sub eax, edi
lea eax, [ebx + eax*4]
mov dword [ebp - 4], eax
xor edx, edx
mov ecx, dword [ebx + esi*4 - 4]
mov eax, esi
mov dword [ebp + 8], ecx
div edi
mov dword [ebp - 8], eax
test edx, edx
jne 0x47d8f3
movzx ecx, cl
movzx edx, byte [ecx + str.cw]
mov ecx, dword [ebp + 8]
shr ecx, 0x18
shl edx, 8
movzx eax, byte [ecx + str.cw]
mov ecx, dword [ebp + 8]
or edx, eax
mov eax, ecx
shl edx, 8
shr eax, 0x10
movzx eax, al
shr ecx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
movzx eax, cl
shl edx, 8
movzx ecx, byte [eax + str.cw]
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x609678]
xor ecx, eax
or ecx, edx
jmp 0x47d943
cmp edi, 6
jbe 0x47d943
cmp edx, 4
jne 0x47d943
mov edx, dword [ebp + 8]
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add edx, 4
xor eax, ecx
mov dword [ebp - 4], edx
mov dword [ebx + esi*4], eax
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x47d88c
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x47db08
Capabilities:
Hash data using sha256

Disassembly:
and dword [ecx + 0x20], 0
and dword [ecx + 0x24], 0
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
ret
Function at 0x48548c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ecx + 4]
mov ebx, edx
mov edx, dword [ecx]
add esi, 2
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
lea esi, [ecx + esi*4]
mov dword [ebp - 4], esi
test edi, edi
je 0x485522
cmp edx, 0x10
je 0x4854c8
mov al, byte [esi + edx]
xor byte [ebx], al
inc edx
inc ebx
sub edi, 1
je 0x4854c5
cmp edx, 0x10
jne 0x4854b4
mov dword [ebp + 8], edi
lea ecx, [esi + 0x10]
mov dword [ebp - 8], ecx
cmp edi, 0x10
jb 0x4854f4
mov esi, edi
mov edx, ebx
shr esi, 4
push esi
call dword [0x691f80]
mov ecx, dword [ebp - 8]
shl esi, 4
add ebx, esi
sub edi, esi
mov esi, dword [ebp - 4]
push 0x10
mov dword [ebp + 8], edi
pop edx
test edi, edi
je 0x48551d
xor eax, eax
mov edi, esi
push 1
mov edx, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call dword [0x691f80]
mov ecx, dword [ebp + 8]
xor edx, edx
sub esi, ebx
mov al, byte [esi + ebx]
xor byte [ebx], al
inc edx
inc ebx
sub ecx, 1
jne 0x485511
mov eax, dword [ebp - 0xc]
mov dword [eax], edx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x48581d
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
mov ecx, 0x12345678
mov esi, 0x23456789
mov edx, 0x34567890
cmp dword [ebp + 0x10], edi
jbe 0x485876
push ebx
mov ebx, dword [ebp + 0xc]
movzx eax, byte [edi + ebx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x691fa0]
movzx eax, cl
add eax, esi
imul esi, eax, 0x8088405
inc esi
mov eax, esi
shr eax, 0x18
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x691fa0]
inc edi
cmp edi, dword [ebp + 0x10]
jb 0x48583c
pop ebx
mov eax, dword [ebp + 8]
pop edi
mov dword [eax + 0x18], esi
mov dword [eax + 0x14], ecx
mov dword [eax + 0x1c], edx
xor eax, eax
pop esi
pop ebp
ret 0xc

Function at 0x48588a
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 8]
and dword [ebp - 4], 0
push ebx
push esi
mov ebx, dword [edx + 0xc]
mov eax, dword [edx + 0x10]
mov esi, dword [edx + 0x14]
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x485910
mov edx, eax
mov edi, dword [ebp + 0xc]
mov eax, esi
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
mov eax, dword [ebp - 4]
shr ecx, 8
xor cl, byte [eax + edi]
movzx eax, cl
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [eax*4 + 0x691fa0]
movzx eax, bl
add eax, edx
imul edx, eax, 0x8088405
inc edx
mov eax, edx
shr eax, 0x18
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x691fa0]
mov eax, dword [ebp - 4]
mov byte [eax + edi], cl
inc eax
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
cmp eax, edi
jb 0x4858ab
mov dword [ebp - 8], edx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [edx + 0x10], eax
mov eax, edi
pop edi
mov dword [edx + 0x14], esi
pop esi
mov dword [edx + 0xc], ebx
pop ebx
leave
ret 0xc
Function at 0x485922
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ecx, ecx
push edi
mov dword [ebp - 4], ecx
mov eax, dword [esi + 0x10]
mov ebx, dword [esi + 0xc]
mov edi, dword [esi + 0x14]
mov dword [ebp - 8], eax
cmp dword [ebp + 0x10], ecx
jbe 0x4859ac
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0xc]
mov dl, byte [ecx + eax]
mov eax, edi
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
mov eax, dword [ebp - 4]
shr ecx, 8
xor cl, dl
mov byte [eax + esi], cl
movzx eax, dl
xor eax, ebx
mov ecx, dword [ebp - 4]
movzx eax, al
shr ebx, 8
xor ebx, dword [eax*4 + 0x691fa0]
movzx eax, bl
add eax, dword [ebp - 8]
imul esi, eax, 0x8088405
inc esi
mov eax, esi
mov dword [ebp - 8], esi
shr eax, 0x18
xor eax, edi
shr edi, 8
movzx eax, al
xor edi, dword [eax*4 + 0x691fa0]
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, dword [ebp + 0x10]
jb 0x485943
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [esi + 0x14], edi
pop edi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x10]
pop esi
pop ebx
leave
ret 0xc

Function at 0x485aba
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x67a374]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
movzx eax, dl
mov edi, ecx
push 0x40
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.005c7440
lea eax, [ebp - 0x44]
add esp, 0xc
xor esi, esi
sub edi, eax
lea ecx, [ebp - 0x44]
add ecx, esi
mov al, byte [edi + ecx]
xor byte [ecx], al
inc esi
cmp esi, 0x14
jb 0x485aee
lea ecx, [ebp - 0xa4]
call fcn.00499193
push 0x40
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0xa4]
call fcn.004991be
mov edx, ebx
lea ecx, [ebp - 0xa4]
call fcn.0049886a
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004503a3
leave
ret 4
Function at 0x48777c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, ecx
xor ebx, ebx
mov dword [ebp - 4], eax
mov esi, dword [esi]
and esi, 7
cmp edx, 5
jae 0x48779f
xor eax, eax
jmp 0x4878ca
add dword [ebp + 8], 5
add edx, 0xfffffffc
add edx, eax
mov dword [ebp - 0xc], edx
push edi
lea edi, [ebx + eax]
cmp edi, edx
jae 0x4877c3
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x4877c0
inc edi
cmp edi, edx
jb 0x4877b3
mov eax, dword [ebp - 4]
mov ecx, edi
sub ecx, ebx
mov ebx, edi
sub ecx, eax
sub ebx, eax
cmp edi, edx
jae 0x4878b8
cmp ecx, 2
jbe 0x48784c
xor esi, esi
movzx ecx, byte [edi + 4]
lea eax, [ecx + 1]
test al, 0xfe
jne 0x4878a6
movzx eax, byte [edi + 3]
mov edx, dword [ebp + 8]
shl ecx, 8
add edx, ebx
or ecx, eax
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
mov eax, ecx
add ecx, edx
sub eax, edx
cmp dword [ebp + 0x10], 0
cmove ecx, eax
mov dword [ebp - 8], ecx
mov edx, ecx
test esi, esi
je 0x487880
and esi, 6
mov eax, ecx
shl esi, 2
mov ecx, esi
shr eax, cl
inc eax
test al, 0xfe
jne 0x48787e
mov eax, dword [ebp + 8]
mov edx, 0x100
shl edx, cl
add eax, ebx
dec edx
xor edx, dword [ebp - 8]
cmp dword [ebp + 0x10], 0
je 0x48787c
add edx, eax
jmp 0x48787e
shr esi, cl
test esi, esi
je 0x4877dc
cmp esi, 4
ja 0x487871
cmp esi, 3
je 0x487871
mov eax, esi
shr eax, 1
movzx eax, byte [eax + edi + 1]
inc eax
test al, 0xfe
jne 0x4877dc
mov eax, dword [ebp - 4]
or esi, 8
shr esi, 1
inc ebx
jmp 0x4877ac
sub edx, eax
xor esi, esi
mov eax, edx
mov byte [edi + 1], dl
shr eax, 8
mov byte [edi + 2], al
mov eax, edx
shr edx, 0x18
shr eax, 0x10
and dl, 1
neg dl
mov byte [edi + 3], al
push 5
mov byte [edi + 4], dl
mov edx, dword [ebp - 0xc]
pop eax
jmp 0x4878ae
or esi, 8
xor eax, eax
shr esi, 1
inc eax
add ebx, eax
mov eax, dword [ebp - 4]
jmp 0x4877ac
xor eax, eax
shr esi, cl
cmp ecx, 2
pop edi
cmova esi, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, ebx
pop esi
pop ebx
leave
ret 0xc
Function at 0x4882bd
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
xor edx, edx
xor eax, eax
push ebx
push esi
mov esi, ecx
inc eax
push edi
push 0x20
pop ecx
or dword [esi + 0x90], 0xffffffff
or dword [esi + 0x94], 0xffffffff
mov dword [esi + 0x30], eax
mov dword [esi + 0x44], eax
mov eax, dword [esi + 4]
cmp eax, ecx
mov dword [ebp - 4], esi
cmova eax, ecx
mov dword [esi + 0x78], edx
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x7c], edx
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], edx
mov dword [esi + 0x70], edx
mov dword [esi + 0x88], edx
mov dword [esi + 0x68], edx
mov dword [esi + 0x6c], edx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x50], edx
mov dword [esi + 0x60], edx
mov dword [esi + 0x64], edx
mov dword [esi + 0x80], edx
mov dword [esi + 0x84], edx
mov dword [esi + 0x58], edx
cmp eax, dword [esi + 0x20]
je 0x488371
lea edi, [esi + 0xc8]
mov ebx, ecx
cmp dword [edi + 8], edx
je 0x48834c
mov ecx, edi
call fcn.00488299
xor edx, edx
add edi, 0x28
sub ebx, 1
jne 0x48833e
mov edx, dword [esi + 0x5c]
test edx, edx
je 0x48836a
mov eax, dword [esi + 0x14]
mov ecx, eax
call dword [eax + 4]
xor edx, edx
mov dword [esi + 0x5c], edx
jmp 0x48836c
xor edx, edx
mov eax, dword [esi]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x98], eax
mov dword [esi + 0x9c], edx
mov dword [esi + 0xa0], edx
mov dword [esi + 0xa4], edx
mov dword [esi + 0xa8], edx
mov dword [esi + 0xac], edx
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x24], edx
mov dword [esi + 0x28], edx
lea eax, [ecx + 5]
imul ebx, eax, 0x28
lea eax, [ecx + 1]
mov dword [esi + 0x58], eax
add ebx, esi
mov ecx, ebx
call fcn.00488265
mov edi, eax
test edi, edi
jne 0x488403
lea ecx, [ebx + 0x20]
call fcn.0048f4fe
mov edi, eax
test edi, edi
jne 0x488403
lea ecx, [ebx + 0x1c]
call fcn.0048f4fe
mov edi, eax
test edi, edi
jne 0x488403
push ebx
call fcn.00489232
mov edi, eax
test edi, edi
je 0x488403
and dword [esi + 0x44], 0
lea ebx, [esi + 0xc8]
push 0x20
pop esi
mov ecx, ebx
call fcn.00488227
add ebx, 0x28
sub esi, 1
jne 0x4883f1
mov esi, dword [ebp - 4]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
test eax, eax
je 0x488417
mov dword [esi + 0x40], eax
xor edx, edx
cmp dword [esi + 0x38], edx
jne 0x48842b
cmp dword [esi + 0x40], edx
jne 0x48842b
cmp dword [esi + 0x3c], edx
jne 0x48842b
mov dword [esi + 0x44], edx
xor ecx, ecx
cmp dword [esi + 0x44], edx
pop edi
pop esi
cmovne eax, ecx
pop ebx
leave
ret
Function at 0x48b45f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, ecx
xor eax, eax
push ebx
push esi
mov dword [ebp - 4], edx
lea ecx, [edx + 0x11fc]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
push edi
mov esi, eax
mov edi, eax
movzx eax, word [edx + 0x1e1e]
and esi, 1
mov ecx, esi
shr edi, 1
neg ecx
and ecx, 0x7f0
xor ecx, eax
mov eax, dword [ebp - 4]
shr ecx, 4
mov ebx, dword [edx + ecx*4 + 0x748]
mov edx, edi
movzx ecx, word [eax + esi*2 + 0x1e20]
and edx, 1
mov eax, edx
shr ecx, 4
neg eax
shr edi, 1
shr eax, 4
and edi, 1
and eax, 0x7f
lea edx, [edx + esi*2]
xor ecx, eax
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
lea edx, [edx + 4]
add ebx, dword [eax + ecx*4 + 0x748]
movzx ecx, word [eax + edx*2 + 0x1e1c]
mov eax, edi
neg eax
shr ecx, 4
shr eax, 4
and eax, 0x7f
xor ecx, eax
mov eax, dword [ebp - 4]
add ebx, dword [eax + ecx*4 + 0x748]
lea eax, [edi + edx*2]
mov edx, dword [ebp - 4]
movzx ecx, word [edx + eax*2 + 0x1e1c]
mov eax, ecx
xor ecx, 0x7f0
shr eax, 4
shr ecx, 4
mov eax, dword [edx + eax*4 + 0x748]
add eax, ebx
mov dword [esi - 0x20], eax
mov eax, dword [edx + ecx*4 + 0x748]
add eax, ebx
mov dword [esi], eax
add esi, 4
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], eax
cmp eax, 8
jb 0x48b47b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x48cfe1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], edi
movzx esi, word [ecx]
mov eax, esi
shr esi, 4
xor eax, 0x7f0
shr eax, 4
mov eax, dword [ebx + eax*4]
mov dword [ebp + 0xc], eax
mov eax, dword [ebx + esi*4]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
movzx eax, word [ecx + 0x10]
shr eax, 4
mov eax, dword [ebx + eax*4]
add eax, esi
mov dword [ebp - 0x14], eax
test edx, edx
je 0x48d068
lea eax, [edi + 4]
mov dword [ebp - 4], edx
mov esi, ecx
mov edi, eax
mov edx, dword [ebp - 0x10]
mov ecx, esi
push ebx
push edi
call fcn.0048ebc1
mov edx, dword [ebp - 0x14]
lea eax, [edi + 0x20]
push ebx
push eax
lea ecx, [esi + 0x10]
call fcn.0048ebc1
add edi, 0x440
add esi, 0x20
sub dword [ebp - 4], 1
jne 0x48d034
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edx, dword [edi]
cmp edx, 0x10
jbe 0x48d146
lea eax, [edi + 0x44]
add edx, 0xfffffff1
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
movzx eax, word [ecx + 0x10]
xor eax, 0x7f0
shr edx, 1
shr eax, 4
add esi, dword [ebx + eax*4]
lea eax, [edx + 0x180]
mov dword [ebp + 0xc], esi
lea eax, [ecx + eax*2]
dec edx
sub eax, 2
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], edx
lea esi, [edx + 0x80]
mov dword [ebp + 8], eax
mov edx, eax
mov ecx, esi
shr esi, 1
and ecx, 1
neg ecx
shr ecx, 4
movzx eax, word [edi + esi*2 + 0x200]
and ecx, 0x7f
shr eax, 4
xor eax, ecx
add edx, dword [ebx + eax*4]
cmp esi, 2
jae 0x48d0b4
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov dword [ebp + 8], edx
movzx ecx, word [eax]
mov eax, ecx
xor ecx, 0x7f0
shr eax, 4
shr ecx, 4
mov eax, dword [ebx + eax*4]
add eax, edx
mov edx, dword [ebp - 0x14]
mov dword [esi + edx*8], eax
mov eax, dword [ebx + ecx*4]
mov ecx, esi
add eax, dword [ebp + 8]
mov dword [ecx + edx*8 + 4], eax
mov eax, dword [ebp - 8]
test edx, edx
jne 0x48d09c
mov edi, dword [ebp - 0xc]
mov eax, dword [edi]
lea ebx, [eax*4 - 0x40]
mov eax, dword [ebp - 0x18]
cmp eax, 1
jbe 0x48d146
lea esi, [edi + 0x484]
lea edi, [eax - 1]
push ebx
push ecx
push esi
call fcn.005c6940
mov ecx, dword [ebp - 4]
add esp, 0xc
add esi, 0x440
sub edi, 1
jne 0x48d12d
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x48d2d2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
mov edi, ecx
or edx, 0x100
mov esi, edx
shr edx, 1
and esi, 1
neg esi
shr esi, 4
movzx ecx, word [edi + edx*2]
and esi, 0x7f
shr ecx, 4
xor ecx, esi
add eax, dword [ebx + ecx*4]
cmp edx, 2
jae 0x48d2e5
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x48d30c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, 0x100
mov dword [ebp - 4], ecx
xor edi, edi
or edx, esi
add ebx, ebx
mov ecx, esi
and ecx, ebx
mov eax, edx
add ecx, esi
shr eax, 8
add eax, ecx
mov ecx, dword [ebp - 4]
movzx ecx, word [ecx + eax*2]
mov eax, edx
shr eax, 7
add edx, edx
and eax, 1
shr ecx, 4
neg eax
shr eax, 4
and eax, 0x7f
xor ecx, eax
mov eax, dword [ebp + 0xc]
add edi, dword [eax + ecx*4]
mov ecx, edx
xor ecx, ebx
not ecx
and esi, ecx
cmp edx, 0x10000
jb 0x48d322
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x48ebc1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov dword [ebp - 8], edx
xor ebx, ebx
push esi
mov edx, ecx
push edi
mov dword [ebp - 4], edx
mov edi, ebx
mov esi, ebx
shr esi, 2
shr edi, 1
mov eax, edi
and eax, 1
movzx ecx, word [edx + esi*2 + 4]
neg eax
shr eax, 4
neg esi
and eax, 0x7f
shr ecx, 4
xor ecx, eax
and esi, 0x7f0
movzx eax, word [edx + 2]
xor esi, eax
mov eax, dword [ebp + 0xc]
shr esi, 4
mov edx, dword [eax + ecx*4]
add edx, dword [eax + esi*4]
mov eax, dword [ebp - 4]
mov esi, dword [ebp + 0xc]
add edx, dword [ebp - 8]
movzx ecx, word [eax + edi*2 + 8]
mov edi, dword [ebp + 8]
mov eax, ecx
shr eax, 4
xor ecx, 0x7f0
shr ecx, 4
mov eax, dword [esi + eax*4]
add eax, edx
mov dword [edi + ebx*4], eax
mov eax, dword [esi + ecx*4]
add eax, edx
mov edx, dword [ebp - 4]
mov dword [edi + ebx*4 + 4], eax
add ebx, 2
cmp ebx, 8
jb 0x48ebd3
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x48f5c6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push edi
push dword [ebp + 8]
mov esi, ecx
push edx
push edi
push edi
call fcn.005d78c2
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x48f5f0
call fcn.0048f512
mov edi, eax
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x48f6d6
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x67a374]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x8c]
push edi
call fcn.0047db08
mov ebx, 0x3e8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 4
lea edx, [ebp - 0x90]
mov dword [ebp - 0x90], eax
lea ecx, [ebp - 0x8c]
call fcn.0047db48
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 4
lea edx, [ebp - 0x90]
mov dword [ebp - 0x90], eax
lea ecx, [ebp - 0x8c]
call fcn.0047db48
push 0x609a18
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x48f783
push str.SystemFunction036
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x48f77c
push 0x20
lea ecx, [ebp - 0x24]
push ecx
call eax
test al, al
je 0x48f77c
push 0x64
pop ebx
push 0x20
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x8c]
call fcn.0047db48
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x48f7a7
push 8
lea edx, [ebp - 0x98]
lea ecx, [ebp - 0x8c]
call fcn.0047db48
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 4
lea edx, [ebp - 0x90]
mov dword [ebp - 0x90], eax
lea ecx, [ebp - 0x8c]
call fcn.0047db48
push 0x64
pop edi
mov edx, esi
lea ecx, [ebp - 0x8c]
call fcn.0047da8e
lea ecx, [ebp - 0x8c]
call fcn.0047db08
push 0x20
mov edx, esi
lea ecx, [ebp - 0x8c]
call fcn.0047db48
sub edi, 1
jne 0x48f7c9
sub ebx, 1
jne 0x48f783
mov edx, esi
lea ecx, [ebp - 0x8c]
call fcn.0047da8e
mov ecx, dword [ebp - 4]
pop edi
mov byte [esi + 0x20], bl
xor ecx, ebp
pop esi
pop ebx
call fcn.004503a3
leave
ret

Function at 0x493c3f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
cmp esi, 0x200
jb 0x493ca3
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x493ca3
mov edx, dword [ecx + 0x3c]
cmp edx, 0x1000
jae 0x493ca3
lea eax, [edx + 0x200]
cmp eax, esi
ja 0x493ca3
test dl, 7
jne 0x493ca3
add ecx, edx
cmp dword [ecx], 0x4550
jne 0x493ca3
movzx eax, word [ecx + 4]
sub eax, 0x14c
je 0x493cbf
sub eax, 0x74
je 0x493cb8
dec eax
sub eax, 1
je 0x493cb8
dec eax
sub eax, 1
je 0x493cb1
sub eax, 0x3c
je 0x493caa
sub eax, 0x8464
je 0x493cbf
xor eax, eax
pop esi
pop ebp
ret 4
mov edx, 0x3030401
jmp 0x493cc4
mov edx, 0x3030701
jmp 0x493cc4
mov edx, 0x3030501
jmp 0x493cc4
mov edx, 0x3030103
mov eax, 0x400
cmp word [ecx + 0x14], ax
ja 0x493ca3
movzx eax, word [ecx + 0x18]
mov ecx, 0x10b
cmp ax, cx
je 0x493ce7
mov ecx, 0x20b
cmp ax, cx
jne 0x493ca3
mov eax, dword [ebp + 8]
mov dword [eax], edx
xor eax, eax
inc eax
jmp 0x493ca5
Function at 0x49877a
Capabilities:
Hash data using sha1

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, dword [edi + 0x18]
and esi, 0xf
mov dword [edi + esi*4 + 0x20], SysReAllocStringLen
jmp 0x4987a6
and esi, 0xf
jne 0x4987a1
push edi
lea edx, [edi + 0x20]
mov ecx, edi
call fcn.004988f7
and dword [edi + esi*4 + 0x20], 0
inc esi
cmp esi, 0xe
jne 0x498791
mov ecx, dword [edi + 0x18]
lea edx, [edi + 0x20]
mov eax, dword [edi + 0x1c]
shld eax, ecx, 5
push ebx
shl ecx, 5
mov dword [edi + 0x5c], ecx
mov ecx, edi
mov dword [edi + 0x58], eax
call fcn.004988f7
mov ecx, edi
pop edi
pop esi
pop ebx
jmp fcn.00499193
Function at 0x499193
Capabilities:
Hash data using sha1

Disassembly:
and dword [ecx + 0x18], 0
and dword [ecx + 0x1c], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
ret

Function at 0x49937c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x67a374]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea edx, [ebp - 0x44]
push esi
push edi
mov esi, ecx
push 5
mov dword [ebp - 0x88], esi
call fcn.004987d4
lea eax, [esi + 0x60]
push 5
lea edx, [ebp - 0x84]
mov dword [ebp - 0x8c], eax
mov ecx, eax
call fcn.004987d4
push 5
pop ecx
mov esi, ebx
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x499416
lea esi, [ebp - 0x44]
sub esi, ebx
mov ecx, dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
lea edx, [ebp - 0x44]
call fcn.004988f7
mov ecx, dword [ebp - 0x8c]
lea eax, [ebp - 0x44]
push eax
lea edx, [ebp - 0x84]
call fcn.004988f7
push 5
mov ecx, ebx
pop edx
mov eax, dword [esi + ecx]
xor dword [ecx], eax
lea ecx, [ecx + 4]
sub edx, 1
jne 0x499404
sub edi, 1
jne 0x4993d5
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004503a3
leave
ret 8

Function at 0x499427
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x67a374]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x10
xor eax, eax
mov dword [ebp - 0xbc], ebx
pop ecx
lea edi, [ebp - 0x58]
mov dword [ebp - 0xc0], esi
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0xc]
cmp edi, 0x40
jbe 0x49949f
lea ecx, [ebp - 0xb8]
call fcn.00499193
push edi
mov edx, esi
lea ecx, [ebp - 0xb8]
call fcn.004991be
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0xb8]
call fcn.0049886a
xor esi, esi
mov ecx, esi
mov eax, dword [ebp + ecx - 0x18]
bswap eax
mov dword [ebp + ecx - 0x58], eax
add ecx, 4
cmp ecx, 0x14
jb 0x49948b
jmp 0x4994d6
xor esi, esi
mov ebx, esi
test edi, edi
je 0x4994d0
mov esi, dword [ebp - 0xc0]
mov eax, ebx
mov edx, ebx
and eax, 3
shr edx, 2
push 3
pop ecx
sub ecx, eax
movzx eax, byte [esi + ebx]
shl ecx, 3
shl eax, cl
or dword [ebp + edx*4 - 0x58], eax
inc ebx
cmp ebx, edi
jb 0x4994ad
xor esi, esi
mov ebx, dword [ebp - 0xbc]
mov eax, esi
movups xmm0, xmmword [ebp + eax*4 - 0x58]
pxor xmm0, xmmword [str.6666666666666666jjjjjjjjjjjjjjjjd]
movups xmmword [ebp + eax*4 - 0x58], xmm0
add eax, 4
cmp eax, 0x10
jb 0x4994d8
mov ecx, ebx
call fcn.00499193
push 0x10
lea edx, [ebp - 0x58]
mov ecx, ebx
call fcn.00498822
movups xmm0, xmmword [ebp + esi*4 - 0x58]
pxor xmm0, xmmword [0x60a0b0]
movups xmmword [ebp + esi*4 - 0x58], xmm0
add esi, 4
cmp esi, 0x10
jb 0x499505
lea ecx, [ebx + 0x60]
call fcn.00499193
push 0x10
lea edx, [ebp - 0x58]
lea ecx, [ebx + 0x60]
call fcn.00498822
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004503a3
leave
ret 8