joyce8/EMBER2024-capa huggingface dataset:
Function at 0x586637
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
mov dword [ebp - 0x2c], edi
mov ebx, dword [esi + 0x10]
mov dword [ebp - 0x28], ebx
cmp ebx, 3
jae 0x58665e
call fcn.00586e73
xor eax, eax
jmp 0x58675e
mov ecx, dword [esi]
mov dword [ebp - 8], 2
movzx edx, byte [ecx]
movzx eax, byte [ecx + 2]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 1]
mov ecx, dword [esi + 0x24]
xor edx, dword [esi + eax*4 + 0x60]
movzx edx, dx
mov eax, dword [ecx + edx*4]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 4]
mov dword [ecx + edx*4], eax
mov eax, dword [esi + 0x30]
mov ecx, dword [esi]
mov edx, dword [esi + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x1c], eax
lea eax, [ecx + ebx]
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], ecx
mov dword [ebx + edx*4], eax
mov edx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
sub edx, eax
cmp edx, ebx
jae 0x58673f
cmp dword [ebp - 0x10], edx
sbb eax, eax
sub ecx, edx
and eax, ebx
mov ebx, dword [ebp - 0x14]
sub eax, edx
add eax, dword [ebp - 0x10]
mov eax, dword [ebx + eax*4]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + ebx]
cmp al, byte [ecx + ebx]
jne 0x586723
mov eax, dword [ebp - 4]
mov ebx, eax
mov al, byte [eax]
jmp 0x586705
inc ebx
cmp ebx, dword [ebp - 0x24]
je 0x586731
mov al, byte [ebx]
mov ecx, ebx
sub ecx, edx
cmp al, byte [ecx]
je 0x5866f9
mov ecx, dword [ebp - 4]
sub ebx, ecx
cmp dword [ebp - 8], ebx
jae 0x586726
lea eax, [edx - 1]
mov dword [edi], ebx
mov dword [edi + 4], eax
add edi, 8
mov dword [ebp - 8], ebx
jmp 0x586726
mov ecx, dword [ebp - 4]
sub dword [ebp - 0x18], 1
je 0x58673f
mov eax, dword [ebp - 0xc]
jmp 0x5866bf
mov eax, dword [ebp - 0x28]
mov dword [edi], eax
lea eax, [edx - 1]
mov dword [edi + 4], eax
add edi, 8
sub edi, dword [ebp - 0x2c]
sar edi, 2
inc dword [esi + 0x14]
inc dword [esi]
inc dword [esi + 4]
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 8]
jne 0x58675c
mov ecx, esi
call fcn.00586afd
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x586b6f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
or dword [ecx + 0x468], 0xffffffff
xor edx, edx
or dword [ecx + 0x46c], 0xffffffff
push esi
push edi
mov dword [ecx + 0x34], edx
lea esi, [ecx + 0x60]
mov word [ecx + 0x1e], dx
mov dword [ecx + 0x24], edx
mov dword [ecx + 0x30], 0x20
mov byte [ecx + 0x1d], 1
mov dword [ecx + 0x48], 4
push 8
mov ecx, edx
pop edi
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor ecx, eax
sub edi, 1
jne 0x586ba5
mov dword [esi], ecx
inc edx
add esi, 4
cmp edx, 0x100
jb 0x586ba0
pop edi
pop esi
ret
Function at 0x588d66
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
cmp edx, 8
jb 0x588d87
push edi
mov edi, edx
shr edi, 3
mov eax, dword [ecx + 4]
sub edx, 8
xor eax, dword [ecx]
add ecx, 8
xor esi, eax
sub edi, 1
jne 0x588d74
pop edi
cmp edx, 4
jb 0x588d91
xor esi, dword [ecx]
add ecx, 4
and edx, 3
cmp edx, 2
jbe 0x588da2
movzx eax, byte [ecx]
shl eax, 0x10
xor esi, eax
inc ecx
cmp edx, 1
jbe 0x588db0
movzx eax, byte [ecx]
shl eax, 8
xor esi, eax
inc ecx
test edx, edx
je 0x588db9
movzx ecx, byte [ecx]
xor esi, ecx
mov eax, esi
pop esi
ret
Function at 0x58aa6e
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 0x58aaa4
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [ebx + esi*4], eax
inc esi
cmp esi, edi
jb 0x58aa97
cmp esi, ecx
jae 0x58ab87
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 0x58ab1d
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 + 0x64d858]
xor ecx, eax
or ecx, edx
jmp 0x58ab6d
cmp edi, 6
jbe 0x58ab6d
cmp edx, 4
jne 0x58ab6d
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 0x58aab6
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x58ad34
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 0x5926b8
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 0x59274e
cmp edx, 0x10
je 0x5926f4
mov al, byte [esi + edx]
xor byte [ebx], al
inc edx
inc ebx
sub edi, 1
je 0x5926f1
cmp edx, 0x10
jne 0x5926e0
mov dword [ebp + 8], edi
lea ecx, [esi + 0x10]
mov dword [ebp - 8], ecx
cmp edi, 0x10
jb 0x592720
mov esi, edi
mov edx, ebx
shr esi, 4
push esi
call dword [0x692fa0]
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 0x592749
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 [0x692fa0]
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 0x59273d
mov eax, dword [ebp - 0xc]
mov dword [eax], edx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x592a49
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 0x592aa2
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 + 0x692fc0]
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 + 0x692fc0]
inc edi
cmp edi, dword [ebp + 0x10]
jb 0x592a68
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 0x592ab6
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 0x592b3c
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 + 0x692fc0]
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 + 0x692fc0]
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 0x592ad7
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 0x592b4e
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 0x592bd8
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 + 0x692fc0]
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 + 0x692fc0]
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, dword [ebp + 0x10]
jb 0x592b6f
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 0x592ce6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x6807dc]
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.005c81c0
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 0x592d1a
lea ecx, [ebp - 0xa4]
call fcn.005a63bf
push 0x40
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0xa4]
call fcn.005a63ea
mov edx, ebx
lea ecx, [ebp - 0xa4]
call fcn.005a5a96
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055cf54
leave
ret 4
Function at 0x5949a8
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 0x5949cb
xor eax, eax
jmp 0x594af6
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 0x5949ef
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x5949ec
inc edi
cmp edi, edx
jb 0x5949df
mov eax, dword [ebp - 4]
mov ecx, edi
sub ecx, ebx
mov ebx, edi
sub ecx, eax
sub ebx, eax
cmp edi, edx
jae 0x594ae4
cmp ecx, 2
jbe 0x594a78
xor esi, esi
movzx ecx, byte [edi + 4]
lea eax, [ecx + 1]
test al, 0xfe
jne 0x594ad2
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 0x594aac
and esi, 6
mov eax, ecx
shl esi, 2
mov ecx, esi
shr eax, cl
inc eax
test al, 0xfe
jne 0x594aaa
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 0x594aa8
add edx, eax
jmp 0x594aaa
shr esi, cl
test esi, esi
je 0x594a08
cmp esi, 4
ja 0x594a9d
cmp esi, 3
je 0x594a9d
mov eax, esi
shr eax, 1
movzx eax, byte [eax + edi + 1]
inc eax
test al, 0xfe
jne 0x594a08
mov eax, dword [ebp - 4]
or esi, 8
shr esi, 1
inc ebx
jmp 0x5949d8
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 0x594ada
or esi, 8
xor eax, eax
shr esi, 1
inc eax
add ebx, eax
mov eax, dword [ebp - 4]
jmp 0x5949d8
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 0x5954e9
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 0x59559d
lea edi, [esi + 0xc8]
mov ebx, ecx
cmp dword [edi + 8], edx
je 0x595578
mov ecx, edi
call fcn.005954c5
xor edx, edx
add edi, 0x28
sub ebx, 1
jne 0x59556a
mov edx, dword [esi + 0x5c]
test edx, edx
je 0x595596
mov eax, dword [esi + 0x14]
mov ecx, eax
call dword [eax + 4]
xor edx, edx
mov dword [esi + 0x5c], edx
jmp 0x595598
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.00595491
mov edi, eax
test edi, edi
jne 0x59562f
lea ecx, [ebx + 0x20]
call fcn.0059c72a
mov edi, eax
test edi, edi
jne 0x59562f
lea ecx, [ebx + 0x1c]
call fcn.0059c72a
mov edi, eax
test edi, edi
jne 0x59562f
push ebx
call fcn.0059645e
mov edi, eax
test edi, edi
je 0x59562f
and dword [esi + 0x44], 0
lea ebx, [esi + 0xc8]
push 0x20
pop esi
mov ecx, ebx
call fcn.00595453
add ebx, 0x28
sub esi, 1
jne 0x59561d
mov esi, dword [ebp - 4]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
test eax, eax
je 0x595643
mov dword [esi + 0x40], eax
xor edx, edx
cmp dword [esi + 0x38], edx
jne 0x595657
cmp dword [esi + 0x40], edx
jne 0x595657
cmp dword [esi + 0x3c], edx
jne 0x595657
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 0x59868b
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 0x5986a7
pop edi
pop esi
pop ebx
leave
ret
Function at 0x59a20d
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 0x59a294
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.0059bded
mov edx, dword [ebp - 0x14]
lea eax, [edi + 0x20]
push ebx
push eax
lea ecx, [esi + 0x10]
call fcn.0059bded
add edi, 0x440
add esi, 0x20
sub dword [ebp - 4], 1
jne 0x59a260
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edx, dword [edi]
cmp edx, 0x10
jbe 0x59a372
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 0x59a2e0
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 0x59a2c8
mov edi, dword [ebp - 0xc]
mov eax, dword [edi]
lea ebx, [eax*4 - 0x40]
mov eax, dword [ebp - 0x18]
cmp eax, 1
jbe 0x59a372
lea esi, [edi + 0x484]
lea edi, [eax - 1]
push ebx
push ecx
push esi
call fcn.005c7c40
mov ecx, dword [ebp - 4]
add esp, 0xc
add esi, 0x440
sub edi, 1
jne 0x59a359
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x59a4fe
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 0x59a511
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x59a538
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 0x59a54e
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x59bded
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 0x59bdff
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x59c7f2
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.005db1c9
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x59c81c
call fcn.0059c73e
mov edi, eax
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x59c902
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x6807dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x8c]
push edi
call fcn.0058ad34
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.0058ad74
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 4
lea edx, [ebp - 0x90]
mov dword [ebp - 0x90], eax
lea ecx, [ebp - 0x8c]
call fcn.0058ad74
push 0x64dbf8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x59c9af
push str.SystemFunction036
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x59c9a8
push 0x20
lea ecx, [ebp - 0x24]
push ecx
call eax
test al, al
je 0x59c9a8
push 0x64
pop ebx
push 0x20
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x8c]
call fcn.0058ad74
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 0x59c9d3
push 8
lea edx, [ebp - 0x98]
lea ecx, [ebp - 0x8c]
call fcn.0058ad74
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 4
lea edx, [ebp - 0x90]
mov dword [ebp - 0x90], eax
lea ecx, [ebp - 0x8c]
call fcn.0058ad74
push 0x64
pop edi
mov edx, esi
lea ecx, [ebp - 0x8c]
call fcn.0058acba
lea ecx, [ebp - 0x8c]
call fcn.0058ad34
push 0x20
mov edx, esi
lea ecx, [ebp - 0x8c]
call fcn.0058ad74
sub edi, 1
jne 0x59c9f5
sub ebx, 1
jne 0x59c9af
mov edx, esi
lea ecx, [ebp - 0x8c]
call fcn.0058acba
mov ecx, dword [ebp - 4]
pop edi
mov byte [esi + 0x20], bl
xor ecx, ebp
pop esi
pop ebx
call fcn.0055cf54
leave
ret

Function at 0x5a0e6b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
cmp esi, 0x200
jb 0x5a0ecf
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x5a0ecf
mov edx, dword [ecx + 0x3c]
cmp edx, 0x1000
jae 0x5a0ecf
lea eax, [edx + 0x200]
cmp eax, esi
ja 0x5a0ecf
test dl, 7
jne 0x5a0ecf
add ecx, edx
cmp dword [ecx], 0x4550
jne 0x5a0ecf
movzx eax, word [ecx + 4]
sub eax, 0x14c
je 0x5a0eeb
sub eax, 0x74
je 0x5a0ee4
dec eax
sub eax, 1
je 0x5a0ee4
dec eax
sub eax, 1
je 0x5a0edd
sub eax, 0x3c
je 0x5a0ed6
sub eax, 0x8464
je 0x5a0eeb
xor eax, eax
pop esi
pop ebp
ret 4
mov edx, 0x3030401
jmp 0x5a0ef0
mov edx, 0x3030701
jmp 0x5a0ef0
mov edx, 0x3030501
jmp 0x5a0ef0
mov edx, 0x3030103
mov eax, 0x400
cmp word [ecx + 0x14], ax
ja 0x5a0ecf
movzx eax, word [ecx + 0x18]
mov ecx, 0x10b
cmp ax, cx
je 0x5a0f13
mov ecx, 0x20b
cmp ax, cx
jne 0x5a0ecf
mov eax, dword [ebp + 8]
mov dword [eax], edx
xor eax, eax
inc eax
jmp 0x5a0ed1