joyce8/EMBER2024-capa huggingface dataset:
Function at 0x587da5
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 0x587dcc
call fcn.005885e1
xor eax, eax
jmp 0x587ecc
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 0x587ead
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 0x587e91
mov eax, dword [ebp - 4]
mov ebx, eax
mov al, byte [eax]
jmp 0x587e73
inc ebx
cmp ebx, dword [ebp - 0x24]
je 0x587e9f
mov al, byte [ebx]
mov ecx, ebx
sub ecx, edx
cmp al, byte [ecx]
je 0x587e67
mov ecx, dword [ebp - 4]
sub ebx, ecx
cmp dword [ebp - 8], ebx
jae 0x587e94
lea eax, [edx - 1]
mov dword [edi], ebx
mov dword [edi + 4], eax
add edi, 8
mov dword [ebp - 8], ebx
jmp 0x587e94
mov ecx, dword [ebp - 4]
sub dword [ebp - 0x18], 1
je 0x587ead
mov eax, dword [ebp - 0xc]
jmp 0x587e2d
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 0x587eca
mov ecx, esi
call fcn.0058826b
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x5882dd
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 0x588313
mov dword [esi], ecx
inc edx
add esi, 4
cmp edx, 0x100
jb 0x58830e
pop edi
pop esi
ret
Function at 0x58a4d4
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
cmp edx, 8
jb 0x58a4f5
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 0x58a4e2
pop edi
cmp edx, 4
jb 0x58a4ff
xor esi, dword [ecx]
add ecx, 4
and edx, 3
cmp edx, 2
jbe 0x58a510
movzx eax, byte [ecx]
shl eax, 0x10
xor esi, eax
inc ecx
cmp edx, 1
jbe 0x58a51e
movzx eax, byte [ecx]
shl eax, 8
xor esi, eax
inc ecx
test edx, edx
je 0x58a527
movzx ecx, byte [ecx]
xor esi, ecx
mov eax, esi
pop esi
ret
Function at 0x58c1dd
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 0x58c213
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [ebx + esi*4], eax
inc esi
cmp esi, edi
jb 0x58c206
cmp esi, ecx
jae 0x58c2f6
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 0x58c28c
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 + 0x64e858]
xor ecx, eax
or ecx, edx
jmp 0x58c2dc
cmp edi, 6
jbe 0x58c2dc
cmp edx, 4
jne 0x58c2dc
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 0x58c225
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x58c4a4
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 0x593e2a
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 0x593ec0
cmp edx, 0x10
je 0x593e66
mov al, byte [esi + edx]
xor byte [ebx], al
inc edx
inc ebx
sub edi, 1
je 0x593e63
cmp edx, 0x10
jne 0x593e52
mov dword [ebp + 8], edi
lea ecx, [esi + 0x10]
mov dword [ebp - 8], ecx
cmp edi, 0x10
jb 0x593e92
mov esi, edi
mov edx, ebx
shr esi, 4
push esi
call dword [0x693fa0]
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 0x593ebb
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 [0x693fa0]
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 0x593eaf
mov eax, dword [ebp - 0xc]
mov dword [eax], edx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x5941bb
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 0x594214
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 + 0x693fc0]
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 + 0x693fc0]
inc edi
cmp edi, dword [ebp + 0x10]
jb 0x5941da
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 0x594228
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 0x5942ae
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 + 0x693fc0]
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 + 0x693fc0]
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 0x594249
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 0x5942c0
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 0x59434a
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 + 0x693fc0]
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 + 0x693fc0]
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, dword [ebp + 0x10]
jb 0x5942e1
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 0x594458
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x6817dc]
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.005c9930
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 0x59448c
lea ecx, [ebp - 0xa4]
call fcn.005a7b33
push 0x40
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0xa4]
call fcn.005a7b5e
mov edx, ebx
lea ecx, [ebp - 0xa4]
call fcn.005a720a
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055e6d4
leave
ret 4
Function at 0x59611a
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 0x59613d
xor eax, eax
jmp 0x596268
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 0x596161
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x59615e
inc edi
cmp edi, edx
jb 0x596151
mov eax, dword [ebp - 4]
mov ecx, edi
sub ecx, ebx
mov ebx, edi
sub ecx, eax
sub ebx, eax
cmp edi, edx
jae 0x596256
cmp ecx, 2
jbe 0x5961ea
xor esi, esi
movzx ecx, byte [edi + 4]
lea eax, [ecx + 1]
test al, 0xfe
jne 0x596244
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 0x59621e
and esi, 6
mov eax, ecx
shl esi, 2
mov ecx, esi
shr eax, cl
inc eax
test al, 0xfe
jne 0x59621c
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 0x59621a
add edx, eax
jmp 0x59621c
shr esi, cl
test esi, esi
je 0x59617a
cmp esi, 4
ja 0x59620f
cmp esi, 3
je 0x59620f
mov eax, esi
shr eax, 1
movzx eax, byte [eax + edi + 1]
inc eax
test al, 0xfe
jne 0x59617a
mov eax, dword [ebp - 4]
or esi, 8
shr esi, 1
inc ebx
jmp 0x59614a
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 0x59624c
or esi, 8
xor eax, eax
shr esi, 1
inc eax
add ebx, eax
mov eax, dword [ebp - 4]
jmp 0x59614a
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 0x596c5b
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 0x596d0f
lea edi, [esi + 0xc8]
mov ebx, ecx
cmp dword [edi + 8], edx
je 0x596cea
mov ecx, edi
call fcn.00596c37
xor edx, edx
add edi, 0x28
sub ebx, 1
jne 0x596cdc
mov edx, dword [esi + 0x5c]
test edx, edx
je 0x596d08
mov eax, dword [esi + 0x14]
mov ecx, eax
call dword [eax + 4]
xor edx, edx
mov dword [esi + 0x5c], edx
jmp 0x596d0a
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.00596c03
mov edi, eax
test edi, edi
jne 0x596da1
lea ecx, [ebx + 0x20]
call fcn.0059de9c
mov edi, eax
test edi, edi
jne 0x596da1
lea ecx, [ebx + 0x1c]
call fcn.0059de9c
mov edi, eax
test edi, edi
jne 0x596da1
push ebx
call fcn.00597bd0
mov edi, eax
test edi, edi
je 0x596da1
and dword [esi + 0x44], 0
lea ebx, [esi + 0xc8]
push 0x20
pop esi
mov ecx, ebx
call fcn.00596bc5
add ebx, 0x28
sub esi, 1
jne 0x596d8f
mov esi, dword [ebp - 4]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
test eax, eax
je 0x596db5
mov dword [esi + 0x40], eax
xor edx, edx
cmp dword [esi + 0x38], edx
jne 0x596dc9
cmp dword [esi + 0x40], edx
jne 0x596dc9
cmp dword [esi + 0x3c], edx
jne 0x596dc9
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 0x599dfd
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 0x599e19
pop edi
pop esi
pop ebx
leave
ret
Function at 0x59b97f
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 0x59ba06
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.0059d55f
mov edx, dword [ebp - 0x14]
lea eax, [edi + 0x20]
push ebx
push eax
lea ecx, [esi + 0x10]
call fcn.0059d55f
add edi, 0x440
add esi, 0x20
sub dword [ebp - 4], 1
jne 0x59b9d2
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edx, dword [edi]
cmp edx, 0x10
jbe 0x59bae4
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 0x59ba52
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 0x59ba3a
mov edi, dword [ebp - 0xc]
mov eax, dword [edi]
lea ebx, [eax*4 - 0x40]
mov eax, dword [ebp - 0x18]
cmp eax, 1
jbe 0x59bae4
lea esi, [edi + 0x484]
lea edi, [eax - 1]
push ebx
push ecx
push esi
call fcn.005c93b0
mov ecx, dword [ebp - 4]
add esp, 0xc
add esi, 0x440
sub edi, 1
jne 0x59bacb
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x59bc70
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 0x59bc83
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x59bcaa
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 0x59bcc0
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8

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

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x6817dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x8c]
push edi
call fcn.0058c4a4
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.0058c4e4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 4
lea edx, [ebp - 0x90]
mov dword [ebp - 0x90], eax
lea ecx, [ebp - 0x8c]
call fcn.0058c4e4
push 0x64ebf8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x59e121
push str.SystemFunction036
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x59e11a
push 0x20
lea ecx, [ebp - 0x24]
push ecx
call eax
test al, al
je 0x59e11a
push 0x64
pop ebx
push 0x20
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x8c]
call fcn.0058c4e4
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 0x59e145
push 8
lea edx, [ebp - 0x98]
lea ecx, [ebp - 0x8c]
call fcn.0058c4e4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 4
lea edx, [ebp - 0x90]
mov dword [ebp - 0x90], eax
lea ecx, [ebp - 0x8c]
call fcn.0058c4e4
push 0x64
pop edi
mov edx, esi
lea ecx, [ebp - 0x8c]
call fcn.0058c42a
lea ecx, [ebp - 0x8c]
call fcn.0058c4a4
push 0x20
mov edx, esi
lea ecx, [ebp - 0x8c]
call fcn.0058c4e4
sub edi, 1
jne 0x59e167
sub ebx, 1
jne 0x59e121
mov edx, esi
lea ecx, [ebp - 0x8c]
call fcn.0058c42a
mov ecx, dword [ebp - 4]
pop edi
mov byte [esi + 0x20], bl
xor ecx, ebp
pop esi
pop ebx
call fcn.0055e6d4
leave
ret

Function at 0x5a25df
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
cmp esi, 0x200
jb 0x5a2643
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x5a2643
mov edx, dword [ecx + 0x3c]
cmp edx, 0x1000
jae 0x5a2643
lea eax, [edx + 0x200]
cmp eax, esi
ja 0x5a2643
test dl, 7
jne 0x5a2643
add ecx, edx
cmp dword [ecx], 0x4550
jne 0x5a2643
movzx eax, word [ecx + 4]
sub eax, 0x14c
je 0x5a265f
sub eax, 0x74
je 0x5a2658
dec eax
sub eax, 1
je 0x5a2658
dec eax
sub eax, 1
je 0x5a2651
sub eax, 0x3c
je 0x5a264a
sub eax, 0x8464
je 0x5a265f
xor eax, eax
pop esi
pop ebp
ret 4
mov edx, 0x3030401
jmp 0x5a2664
mov edx, 0x3030701
jmp 0x5a2664
mov edx, 0x3030501
jmp 0x5a2664
mov edx, 0x3030103
mov eax, 0x400
cmp word [ecx + 0x14], ax
ja 0x5a2643
movzx eax, word [ecx + 0x18]
mov ecx, 0x10b
cmp ax, cx
je 0x5a2687
mov ecx, 0x20b
cmp ax, cx
jne 0x5a2643
mov eax, dword [ebp + 8]
mov dword [eax], edx
xor eax, eax
inc eax
jmp 0x5a2645