joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100055f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
push ebp
xor esi, esi
mov esi, dword fs:[esi + 0x30]
mov esi, dword [esi + 0xc]
mov esi, dword [esi + 0x1c]
mov ebp, dword [esi + 8]
mov esi, dword [esi]
mov ebx, dword [ebp + 0x3c]
mov ebx, dword [ebp + ebx + 0x78]
test ebx, ebx
je 0x10005602
add ebx, ebp
mov ecx, dword [ebx + 0x18]
jcxz 0x10005602
mov edi, dword [ebx + 0x20]
add edi, ebp
mov edi, dword [edi + ecx*4 - 4]
add edi, ebp
xor eax, eax
cdq
add dl, byte [edi]
ror edx, 4
scasb al, byte es:[edi]
jne 0x10005628
cmp edx, dword [esp + 0x1c]
loopne 0x1000561a
jne 0x10005602
mov edx, dword [ebx + 0x24]
add edx, ebp
movzx edx, word [edx + ecx*2]
mov edi, dword [ebx + 0x1c]
add edi, ebp
add ebp, dword [edi + edx*4]
mov eax, ebp
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x100062b0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret
Function at 0x1000efe0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call fcn.1000f360
mov ecx, dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 0xc], ebx
mov dword [ebp + 8], 0x200
mov edx, dword [ecx + 4]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebx + 4]
mov esi, ebx
sub esi, edx
mov dword [ebp + 0xc], esi
mov eax, dword [ecx + 4]
mov edi, eax
sub edi, edx
lea ecx, [edx + 8]
sub eax, ebx
mov dword [ebp - 8], edi
mov dword [ebp - 4], eax
nop
mov edx, dword [eax + ebx]
lea ecx, [ecx + 0x10]
mov esi, dword [edi + ecx - 0x10]
lea ebx, [ebx + 0x10]
mov eax, dword [eax + ebx - 0xc]
mov edi, dword [edi + ecx - 0xc]
xor eax, dword [ecx - 0x14]
xor edi, dword [ecx - 0xc]
xor esi, dword [ecx - 0x10]
xor edx, dword [ecx - 0x18]
sub dword [ebp + 8], 1
mov dword [ebx - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx - 0x10], edx
mov dword [eax + ecx - 0xc], edi
mov edi, dword [ebp - 8]
mov dword [eax + ecx - 0x10], esi
mov eax, dword [ebp - 4]
jne 0x1000f020
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x10]
pop edi
pop esi
mov dword [ecx], 0x2000
mov dword [eax], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000f080
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 0x14]
xor edx, edx
mov eax, dword [ebp + 0x18]
push esi
mov dword [ebp - 4], 0
lea eax, [ecx + eax*2]
mov esi, eax
sub esi, ecx
inc esi
shr esi, 1
cmp ecx, eax
mov eax, dword [ebp + 0xc]
cmova esi, edx
mov edx, dword [ebp + 0x10]
test esi, esi
je 0x1000f13a
push ebx
mov dword [ebp + 0x1c], edx
mov dword [ebp + 0x10], eax
push edi
nop dword [eax + eax]
movzx eax, word [ecx]
xor ebx, ebx
cdq
mov ecx, eax
and eax, 0x3f
shrd ecx, edx, 6
mov edx, dword [ebp + 8]
bts ebx, eax
mov edi, dword [edx + ecx*8 + 4]
lea edx, [edx + ecx*8]
mov ecx, dword [edx]
mov dword [ebp - 0xc], edx
xor edx, edx
cmp eax, 0x20
mov dword [ebp - 8], eax
cmovae edx, ebx
xor ebx, edx
cmp eax, 0x40
cmovae edx, ebx
not ebx
not edx
and ebx, ecx
and edx, edi
mov eax, ebx
mov dword [ebp - 0x10], edx
xor eax, ecx
mov ecx, dword [ebp - 8]
xor edx, edi
call fcn.100dff10
mov edi, dword [ebp - 0xc]
sub dword [ebp + 0x10], eax
mov ecx, dword [ebp - 0x10]
sbb dword [ebp + 0x1c], edx
mov eax, dword [ebp - 4]
mov dword [edi + 4], ecx
inc eax
mov ecx, dword [ebp + 0x14]
add ecx, 2
mov dword [edi], ebx
mov dword [ebp + 0x14], ecx
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x1000f0c0
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x1c]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000fd70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov eax, dword [eax + 4]
xor ebx, ebx
mov esi, dword [ecx + 4]
push edi
mov edi, dword [ebp + 0x10]
lea ecx, [eax + 0x1ff8]
mov edi, dword [edi + 4]
lea edx, [edi + 0x1ff8]
cmp edi, ecx
ja 0x1000fd9f
cmp edx, eax
jae 0x1000fdad
lea ecx, [esi + 0x1ff8]
cmp edi, ecx
ja 0x1000fde6
cmp edx, esi
jb 0x1000fde6
sub esi, eax
mov ebx, 0x400
sub edi, eax
mov edx, dword [eax + esi]
lea eax, [eax + 8]
mov ecx, dword [eax + esi - 4]
xor edx, dword [eax - 8]
xor ecx, dword [eax - 4]
mov dword [eax + edi - 8], edx
mov dword [eax + edi - 4], ecx
sub ebx, 1
jne 0x1000fdb6
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
mov dword [eax], 0xffffffff
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov dword [ebp + 0xc], edi
lea ecx, [eax + 0x10]
sub dword [ebp + 0xc], eax
lea edx, [edi + 0x20]
mov dword [ebp + 8], esi
sub dword [ebp + 8], eax
mov eax, esi
sub eax, edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
movups xmm0, xmmword [ecx - 0x10]
lea ecx, [ecx + 0x40]
movups xmm1, xmmword [esi + ebx*8]
lea edx, [edx + 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x40]
movups xmmword [edx - 0x60], xmm1
movups xmm1, xmmword [eax + ecx - 0x40]
mov eax, dword [ebp - 4]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x30]
movups xmmword [edi + ecx - 0x40], xmm1
movups xmm1, xmmword [eax + edx - 0x40]
mov eax, dword [ebp + 8]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x20]
movups xmmword [edx - 0x40], xmm1
movups xmm1, xmmword [esi + ebx*8 + 0x30]
add ebx, 8
pxor xmm1, xmm0
movups xmmword [edx - 0x30], xmm1
cmp ebx, 0x400
jb 0x1000fe05
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
mov dword [eax], 0xffffffff
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x1000fe80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0x14]
xor edx, edx
mov eax, dword [ebp + 0x18]
push esi
mov dword [ebp - 8], 0
lea eax, [ecx + eax*2]
mov esi, eax
sub esi, ecx
inc esi
shr esi, 1
cmp ecx, eax
cmova esi, edx
test esi, esi
je 0x1000ff55
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp + 0x10], eax
push edi
nop dword [eax + eax]
movzx eax, word [ecx]
xor ebx, ebx
cdq
mov edi, eax
mov eax, dword [ebp + 8]
mov ecx, edi
and edi, 0x3f
shrd ecx, edx, 6
lea edx, [eax + ecx*8]
xor ecx, ecx
mov eax, edi
mov dword [ebp - 4], edx
bts ebx, eax
cmp eax, 0x20
cmovae ecx, ebx
xor ebx, ecx
cmp eax, 0x40
mov eax, ebx
cmovae ecx, ebx
and eax, dword [edx]
mov edx, ecx
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 4]
and edx, dword [ecx + 4]
mov ecx, edi
call fcn.100dff10
mov edi, dword [ebp + 0x10]
mov ecx, 1
shld edx, eax, 1
add eax, eax
sub ecx, eax
mov eax, 0
sbb eax, edx
mov edx, dword [ebp + 0x1c]
add edi, ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp + 0x10], edi
adc edx, eax
mov eax, dword [ebp - 4]
mov dword [ebp + 0x1c], edx
xor dword [eax + 4], ecx
xor dword [eax], ebx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x14]
inc eax
add ecx, 2
mov dword [ebp - 8], eax
mov dword [ebp + 0x14], ecx
cmp eax, esi
jne 0x1000fec0
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10015ed0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
mov eax, dword [0x101636b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
imul eax, ebx, 0x10f4
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ebx
mov dword [ebp - 0x288], eax
cmp ebx, eax
ja 0x10016011
cmp esi, 0x2c8da
ja 0x10015fe6
je 0x10015fc0
cmp esi, 0xd2
je 0x10015f4c
cmp esi, 0x178
jne 0x10015ffd
mov eax, dword [ebp + 8]
mov dword [eax + 0x38], 1
push 0xffffffffffffffff
push 1
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
push ecx
add eax, 8
push eax
call fcn.100156d0
jmp 0x10015ffd
cmp dword [edi], 0xffffffff
jne 0x10015fd3
push 0x33f
lea eax, [ebp - 0x280]
mov dword [ebp - 0x284], 1
push eax
lea eax, [ebp - 0x278]
mov dword [ebp - 0x280], 2
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.10006ec0
add esp, 0x10
test al, al
je 0x10015ffd
push 1
push 0
lea eax, [ebp - 0x278]
push eax
push 0
push 0
push 0
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x10015ffd
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100dfe28
mov esp, ebp
pop ebp
ret
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x10015ffd
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100dfe28
mov esp, ebp
pop ebp
ret
cmp esi, 0x4fc58
je 0x10015ff8
cmp esi, 0x590e2
je 0x10015fad
jmp 0x10015ffd
add esp, 0x14
pop ebp
ret
imul eax, ebx, 0x364
add esi, eax
cmp esi, dword [ebp - 0x288]
jbe 0x10015f02
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x279]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100dfe28
mov esp, ebp
pop ebp
ret
Function at 0x100196c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10108368
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x101636b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.100df87e
mov edi, eax
add esp, 4
test edi, edi
je 0x1001975d
push 1
mov dword [ebp - 4], 0
call fcn.100e1302
add esp, 4
mov dword [edi + 4], eax
jmp 0x1001975f
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.10001d20
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov bl, al
mov dword [ebp - 4], 3
test edi, edi
je 0x100197c1
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x100197c1
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov byte [esi + 0x40], bl
jne 0x100197e4
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x10019807
cmp byte [ebp + 0xc], 0
je 0x100197f3
push esi
call fcn.100e155b
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x10019813
mov esi, str.ios_base::badbit_set
jmp 0x10019823
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.10019ed0
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.10002730
push 0x1015a508
lea eax, [ebp - 0x30]
push eax
call fcn.100e27f5
int3
Function at 0x1001a7d0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
imul ecx, eax, 0xeb4
push ebx
mov ebx, eax
push esi
push edi
cmp eax, ecx
mov dword [ebp - 8], ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
ja 0x1001a880
mov dword [ebp - 4], eax
cmp ebx, 0x2eea8
ja 0x1001a855
je 0x1001a841
cmp ebx, 0xcc
je 0x1001a832
cmp ebx, 0xac7
jne 0x1001a85d
inc esp
fmul qword [edx + 0x62]
stc
push 0x114c
push dword [ebp + 8]
push dword [ebp + 0x10]
call fcn.1001b0c0
mov ebx, dword [ebp - 8]
add esp, 0xc
mov dword [ebp - 4], eax
jmp 0x1001a860
mov eax, dword [ebp + 0x10]
push dword [eax]
call fcn.100e6ff0
add esp, 4
jmp 0x1001a85d
mov eax, dword [ebp + 0x10]
push eax
mov dword [eax], 0
call fcn.100e6ff0
add esp, 4
jmp 0x1001a85d
cmp ebx, 0x27a842
je 0x1001a878
mov eax, dword [ebp - 4]
imul ecx, dword [ebp + 0xc], 0x3ad
add ebx, ecx
mov dword [ebp - 8], ebx
cmp ebx, dword [ebp - 0xc]
jbe 0x1001a7f8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add dword [ebx], 0x8bee8ae0
inc ebp
cld
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100464e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.100e0610
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x18]
inc ebp
push edi
mov edi, dword [esp + 0x20]
mov eax, dword [esi + 4]
mov ecx, dword [edi + 8]
mov eax, dword [eax + 0x64]
test byte [eax + 0x30], 1
je 0x1004656a
mov edx, dword [esp + 0x24]
lea eax, [edx + ebp]
cmp eax, ecx
ja 0x1004656e
add dword [edi + 0x14], edx
sub ecx, edx
add dword [edi + 0x18], edx
sub dword [edi + 0xc], edx
mov dword [edi + 8], ecx
mov eax, dword [edi + 0x14]
push ebx
push dword [esi + 0x3c8]
mov al, byte [eax + ecx - 1]
movzx ebx, al
mov byte [esp + 0x30], al
mov dword [esp + 0x24], ebx
call fcn.100209f0
push eax
call fcn.10053490
mov esi, dword [edi + 8]
add esp, 8
mov dword [esp + 0x18], esi
and eax, 0x200000
je 0x10046577
sub esi, ebx
mov eax, 1
dec esi
pop ebx
mov dword [edi + 8], esi
pop edi
pop esi
pop ebp
add esp, 0xc
ret
cmp ebp, ecx
jbe 0x10046522
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
lea ecx, [ebx + ebp]
mov eax, esi
mov ebx, esi
xor eax, ecx
sub ebx, ecx
xor ebx, ecx
or ebx, eax
mov eax, 0x100
xor ebx, esi
shr ebx, 0x1f
dec ebx
cmp esi, eax
cmovb eax, esi
xor ebp, ebp
mov dword [esp + 0x14], eax
test eax, eax
je 0x100465f4
mov eax, dword [esp + 0x20]
dec esi
mov edi, dword [edi + 0x14]
shr eax, 0x1f
add edi, esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x10], eax
movzx eax, byte [esp + 0x10]
lea edi, [edi - 1]
mov edx, esi
mov ecx, ebp
sub edx, ebp
shr ecx, 0x1f
shr edx, 0x1f
xor al, cl
xor dl, cl
inc ebp
movzx ecx, byte [esp + 0x2c]
or dl, al
movzx eax, byte [edi + 1]
dec dl
movzx edx, dl
xor ecx, eax
and edx, ecx
not edx
and ebx, edx
cmp ebp, dword [esp + 0x14]
jb 0x100465b5
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
not ebx
movzx ecx, bl
inc eax
dec ecx
shr ecx, 0x1f
neg ecx
and eax, ecx
sub esi, eax
mov eax, ecx
pop ebx
mov dword [edi + 8], esi
and eax, 1
pop edi
not ecx
pop esi
or eax, ecx
pop ebp
add esp, 0xc
ret
Function at 0x10068ce0
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push dword [esp + 0x14]
call fcn.1009c410
push 0x62
push esi
mov edi, eax
mov ebx, 1
call fcn.100e39a0
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x10068d74
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.100559f0
push 0x1010e4e4
push esi
push 0x10127450
push dword [esp + 0x30]
push str.fopen_
push 5
call fcn.10055340
add esp, 0x2c
call fcn.100e6c8f
cmp dword [eax], 2
je 0x10068d58
call fcn.100e6c8f
cmp dword [eax], 6
lea eax, [edi + 2]
jne 0x10068d5d
mov eax, 0x80
push 0
push 0
push eax
push 0x6d
push 0x20
call fcn.100559f0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x10127410
call fcn.10053820
mov esi, eax
add esp, 4
test esi, esi
jne 0x10068d96
push edi
call fcn.100f309c
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push esi
call fcn.100531e0
push edi
push ebx
push 0x6a
push esi
call fcn.10053210
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x1006c710
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor dl, dl
test esi, esi
je 0x1006c737
mov eax, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
sub edi, eax
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or dl, cl
sub esi, 1
jne 0x1006c726
pop edi
movzx eax, dl
pop esi
ret
Function at 0x100705d0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x9c
call fcn.100e0610
mov eax, dword [0x101636b4]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0xb0]
push ebx
mov ebx, dword [esp + 0xac]
push ebp
mov ebp, dword [esp + 0xac]
push esi
mov esi, dword [esp + 0xac]
push edi
mov edi, dword [esp + 0xbc]
mov dword [esp + 0x14], eax
mov eax, dword [esi]
mov dword [esp + 0x10], 0
test edi, edi
je 0x1007063d
cmp edi, eax
je 0x10070631
test ebp, ebp
je 0x100706b0
test ebx, ebx
js 0x100706b0
mov dword [esp + 0x10], 1
mov dword [esi], edi
jmp 0x10070643
test eax, eax
je 0x100706b0
mov edi, eax
push edi
call fcn.10025690
add esp, 4
test al, 2
jne 0x100706b0
test ebp, ebp
je 0x100707bb
push edi
mov dword [esp + 0x14], 1
call fcn.10053480
add esp, 4
cmp eax, 0x90
jg 0x100706b0
cmp eax, ebx
jge 0x100706cb
push dword [esp + 0x14]
push edi
push dword [esi + 4]
call fcn.10057850
add esp, 0xc
test eax, eax
je 0x100706b0
push ebx
push ebp
push dword [esi + 4]
call fcn.100579d0
add esp, 0xc
test eax, eax
je 0x100706b0
lea ebp, [esi + 0x10]
push ebp
lea eax, [esi + 0x14]
push eax
push dword [esi + 4]
call fcn.100577c0
add esp, 0xc
test eax, eax
jne 0x100706e7
xor eax, eax
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100dfe28
add esp, 0x9c
ret
cmp ebx, 0x90
ja 0x100706b0
push ebx
lea eax, [esi + 0x14]
push ebp
push eax
call fcn.100e2d40
lea ebp, [esi + 0x10]
add esp, 0xc
mov dword [ebp], ebx
mov ecx, dword [ebp]
cmp ecx, 0x90
je 0x1007070a
mov eax, 0x90
sub eax, ecx
push eax
lea eax, [esi + 0x14]
add eax, ecx
push 0
push eax
call fcn.100e3840
add esp, 0xc
mov ebx, dword [esp + 0x10]
xor ecx, ecx
mov al, byte [esi + ecx + 0x14]
xor al, 0x36
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x90
jl 0x10070710
mov ebp, dword [esp + 0x14]
push ebp
push edi
push dword [esi + 8]
call fcn.10057850
add esp, 0xc
test eax, eax
je 0x100707c8
push edi
call fcn.10053480
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 8]
call fcn.100579d0
add esp, 0x10
test eax, eax
je 0x100707c8
xor ecx, ecx
nop dword [eax]
mov al, byte [esi + ecx + 0x14]
xor al, 0x5c
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x90
jl 0x10070760
push ebp
push edi
push dword [esi + 0xc]
call fcn.10057850
add esp, 0xc
test eax, eax
je 0x100707c8
push edi
call fcn.10053480
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 0xc]
call fcn.100579d0
add esp, 0x10
test eax, eax
je 0x100707c8
push dword [esi + 8]
push dword [esi + 4]
call fcn.10057b40
xor ebp, ebp
add esp, 8
test eax, eax
mov ecx, 1
cmovne ebp, ecx
jmp 0x100707ca
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x1007079f
jmp 0x1007070e
xor ebp, ebp
test ebx, ebx
je 0x100707e0
lea eax, [esp + 0x18]
push 0x90
push eax
call fcn.100630b0
add esp, 8
mov eax, ebp
jmp 0x100706b2
Function at 0x10089dc0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov eax, 4
call fcn.100e0610
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 1
push esi
xor edi, edi
call fcn.1005fc30
mov ebx, eax
push ebx
push esi
call fcn.1005fb40
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x10089e49
push 0xf0000040
push 1
push edi
push edi
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x10089e23
push ebp
push ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 0x14]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.1005fb90
push esi
call fcn.1005fca0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x10089e49
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 1
push esi
call fcn.1005fc30
mov ebx, eax
push ebx
push esi
call fcn.1005fb40
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x10089eb8
push 0xf0000040
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
xor edi, edi
lea eax, [esp + 0x1c]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x10089e9e
push ebp
push ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 0x14]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.1005fb90
push esi
call fcn.1005fca0
add esp, 0x10
mov edi, eax
test edi, edi
jne 0x10089e41
push esi
call fcn.1005fca0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x1008f6a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.100e0610
mov edx, dword [esp + 0x28]
push esi
mov esi, dword [esp + 0x24]
test esi, esi
je 0x1008f827
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x2c]
cmp esi, 0x10
jb 0x1008f720
mov eax, esi
shr eax, 4
mov dword [esp + 0x10], eax
mov eax, edi
sub edx, ebp
sub eax, ebp
mov ecx, ebp
mov dword [esp + 0x14], eax
mov ebx, 4
mov esi, eax
mov eax, dword [edx + ecx]
lea ecx, [ecx + 4]
xor eax, dword [ecx - 4]
mov dword [esi + ecx - 4], eax
sub ebx, 1
jne 0x1008f6e7
push dword [esp + 0x34]
push edi
push edi
call dword [esp + 0x48]
mov esi, dword [esp + 0x3c]
mov edx, edi
sub esi, 0x10
add esp, 0xc
add ebp, 0x10
mov dword [esp + 0x30], esi
add edi, 0x10
sub dword [esp + 0x10], 1
jne 0x1008f6d4
test esi, esi
je 0x1008f81a
mov ebx, edi
mov ecx, edx
sub ebx, ebp
sub ecx, ebp
mov dword [esp + 0x14], ebx
xor eax, eax
mov ebx, 1
mov dword [esp + 0x20], ecx
sub ebx, ebp
mov dword [esp + 0x10], ebx
mov ebx, 2
sub ebx, ebp
mov dword [esp + 0x18], ebx
mov ebx, 3
sub ebx, ebp
mov dword [esp + 0x1c], ebx
nop dword [eax + eax]
cmp eax, esi
jae 0x1008f7d2
mov esi, dword [esp + 0x14]
lea ebx, [eax + ebp]
mov cl, byte [ecx + ebx]
xor cl, byte [ebx]
mov byte [esi + ebx], cl
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x30]
add ecx, ebx
cmp ecx, esi
jae 0x1008f7d1
mov cl, byte [eax + ebp + 1]
xor cl, byte [eax + edx + 1]
mov byte [edi + eax + 1], cl
mov ecx, dword [esp + 0x18]
add ecx, ebx
cmp ecx, esi
jae 0x1008f7cc
mov cl, byte [eax + ebp + 2]
xor cl, byte [eax + edx + 2]
mov byte [edi + eax + 2], cl
mov ecx, dword [esp + 0x1c]
add ecx, ebx
cmp ecx, esi
jae 0x1008f7c7
mov cl, byte [eax + ebp + 3]
xor cl, byte [eax + edx + 3]
mov byte [edi + eax + 3], cl
add eax, 4
mov ecx, dword [esp + 0x20]
cmp eax, 0x10
jb 0x1008f760
jmp 0x1008f7f1
add eax, 3
jmp 0x1008f7d2
add eax, 2
jmp 0x1008f7d2
inc eax
cmp eax, 0x10
jae 0x1008f7f1
mov ebx, 0x10
lea ecx, [eax + edi]
sub edx, edi
sub ebx, eax
mov al, byte [edx + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub ebx, 1
jne 0x1008f7e3
push dword [esp + 0x34]
push edi
push edi
call dword [esp + 0x48]
add esp, 0xc
mov edx, edi
cmp esi, 0x10
jbe 0x1008f81a
sub esi, 0x10
add ebp, 0x10
add edi, 0x10
mov dword [esp + 0x30], esi
test esi, esi
jne 0x1008f728
mov eax, dword [esp + 0x38]
movups xmm0, xmmword [edx]
pop edi
pop ebp
movups xmmword [eax], xmm0
pop ebx
pop esi
add esp, 0x14
ret