joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006321
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
push edi
push edi
push edi
lea eax, [ebx + 0x64]
push edi
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 8], eax
mov esi, edi
mov dword [ebp - 0x3c], edi
xor eax, eax
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
xor edi, edi
inc edi
cmp dword [ebp - 0x1c], esi
je 0x10006380
push dword [ebp - 0x1c]
call fcn.10018631
pop ecx
test eax, eax
je 0x10006380
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
jmp 0x100063e2
cmp dword [ebp - 0x20], esi
je 0x100063e0
push dword [ebp - 0x20]
call fcn.10018631
pop ecx
test eax, eax
je 0x100063e0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x3c], 2
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x28], edi
push eax
push dword [ebp + 8]
mov dword [ebp - 0x38], edi
push dword [ebp - 8]
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
jne 0x100063be
xor eax, eax
jmp 0x100064fc
cmp dword [ebp - 0x14], 3
jne 0x100063d8
push 0xc
lea eax, [ebp - 0x14]
push eax
push 0x26
push dword [ebx + 0x26c]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
jmp 0x100063e2
mov edi, esi
push dword [ebp - 8]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test esi, esi
je 0x100064b4
push esi
call fcn.10018631
pop ecx
test eax, eax
je 0x100064b4
push esi
call fcn.10018631
pop ecx
push esi
cmp eax, 0x28
jbe 0x10006419
push str.0x04__auto_proxy__s_too_long
jmp 0x100064db
mov eax, str.HTTPS
push eax
push eax
push str._s_s:___s
push 0x104
push ebx
call fcn.10018916
push ebx
push str.0x03___s
call fcn.10001f93
add esp, 0x20
test edi, edi
je 0x10006468
push edi
call fcn.10018631
pop ecx
test eax, eax
je 0x10006468
push edi
push edi
lea esi, [ebx + 0x2b6]
call fcn.10018631
pop ecx
inc eax
push eax
push esi
call fcn.10018ee3
add esp, 0xc
mov edi, esi
push edi
push ebx
push str.0x01___s_by__s
call fcn.10001f93
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
add esp, 0xc
cmp dword [ebp - 0x10], 0
je 0x10006488
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 0xc], 0
je 0x10006493
push dword [ebp - 0xc]
call esi
push 0
push edi
push ebx
push 3
lea eax, [ebx + 0x64]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebx + 0x26c], eax
test eax, eax
je 0x100063b7
push ecx
jmp 0x100064f2
xor esi, esi
lea eax, [ebx + 0x64]
push esi
push esi
push esi
push 1
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebx + 0x26c], eax
test eax, eax
jne 0x100064e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.0x01___d
call fcn.10001f93
pop ecx
pop ecx
jmp 0x100063b7
push 0x64
push esi
push ebx
call fcn.10017e80
pop ecx
pop ecx
push dword [ebp + 8]
mov ecx, ebx
call fcn.10005e14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10006505
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x14], edi
je 0x100065db
xor eax, eax
push 0x62
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x6e]
push edi
push eax
call fcn.10017e80
add esp, 0xc
add ebx, 0x31a
push 0x64
push edi
push ebx
call fcn.10017e80
mov eax, dword [ebp - 4]
add esp, 0xc
add eax, 0x37e
push 0x64
push edi
push eax
call fcn.10017e80
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x70]
add esp, 0xc
push 0x32
push eax
push 0xffffffffffffffff
push esi
push edi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call edi
push 0x32
push ebx
push 0xffffffffffffffff
lea eax, [esi + 0x32]
push eax
push 0
push 0
call edi
mov ebx, dword [ebp - 4]
push 0x32
lea eax, [ebx + 0x37e]
push eax
push 0xffffffffffffffff
lea eax, [esi + 0x64]
push eax
push 0
push 0
call edi
lea eax, [ebp - 0x70]
push str.HTTP
push eax
call fcn.10018f5f
pop ecx
pop ecx
test eax, eax
je 0x100065ae
xor eax, eax
jmp 0x10006605
lea eax, [ebp - 0x70]
push eax
push 0x32
push ebx
call fcn.10018ee3
add esp, 0xc
push 0x10032568
push ebx
call fcn.10018f5f
add eax, 4
push eax
push str.0x03__P__s
call fcn.10001f93
add esp, 0x10
xor edi, edi
push edi
push edi
push ebx
push 3
lea eax, [ebx + 0x64]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebx + 0x26c], eax
test eax, eax
je 0x100065aa
push ecx
push dword [ebp + 8]
mov ecx, ebx
call fcn.10005e14
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10006af7
Capabilities:
Set http header

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.1000660e
Function at 0x10007467
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
push 9
mov esi, ecx
lea edi, [ebp - 0x2a]
pop ecx
xor eax, eax
xor ebx, ebx
mov word [ebp - 0x2c], ax
rep stosd dword es:[edi], eax
push ebx
mov dword [ebp - 4], ebx
stosw word es:[edi], ax
lea eax, [ebp - 4]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push eax
push ebx
push ebx
push 0x13
push dword [esi + 0x27c]
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x100074ad
xor eax, eax
jmp 0x100074cb
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
push 0x13
push dword [esi + 0x27c]
call edi
lea eax, [ebp - 0x2c]
push eax
call fcn.1001b479
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100074f1
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov edi, ecx
mov dword [ebp - 4], esi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [edi + 0x27c]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x10007532
cmp dword [ebp - 4], 0
je 0x1000752e
add esi, dword [ebp - 4]
cmp esi, dword [ebp + 0xc]
jb 0x10007502
mov eax, esi
jmp 0x10007547
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.0x02__R_failed_0x_x.
call fcn.10001dcc
pop ecx
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10007cc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x338
mov eax, dword [0x100358f0]
xor eax, esp
mov dword [esp + 0x334], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x1a0
mov dword [esp + 0x10], eax
mov esi, edx
lea eax, [esp + 0x19c]
mov dword [esp + 0x14], ecx
push 0
push eax
call fcn.10017e80
push 0x118
lea eax, [esp + 0x28]
push 0
push eax
call fcn.10017e80
mov ecx, dword [esp + 0x24]
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x1c0], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x1c1], al
mov eax, ecx
shr eax, 8
push ecx
mov byte [esp + 0x1c6], al
lea eax, [esp + 0x1cc]
push esi
push eax
mov byte [esp + 0x1cf], cl
mov byte [esp + 0x1d3], 0x30
call fcn.10017fb0
mov eax, dword [esp + 0x30]
add esp, 0x24
lea esi, [eax + 0x19]
mov byte [esp + eax + 0x1b0], 0x80
mov dword [esp + 0x14], esi
xor eax, eax
lea esp, [esp]
mov byte [esp + eax + 0x178], al
inc eax
cmp eax, 0x20
jl 0x10007d70
push ecx
lea edx, [esp + 0x17c]
lea ecx, [esp + 0x1c]
call fcn.1000c5b0
mov cl, byte [esp + 0x19f]
add esp, 4
xor eax, eax
mov dword [esp + 0xc], eax
mov edi, edi
xorps xmm0, xmm0
mov edi, esi
movdqa xmmword [esp + 0x130], xmm0
test esi, esi
je 0x10007e1e
lea esi, [esp + 0x198]
lea eax, [esp + 0x130]
sub esi, eax
xor eax, eax
lea edx, [esp + 0x130]
add edx, eax
inc eax
mov cl, byte [esi + edx]
xor byte [edx], cl
cmp eax, 0x10
jl 0x10007dc4
add esi, 0x10
mov ecx, 0x10
cmp edi, 0x10
mov eax, edi
cmovae eax, ecx
sub edi, eax
lea edx, [ecx - 0xf]
lea eax, [esp + 0x130]
push eax
push eax
lea ecx, [esp + 0x20]
call fcn.1000d630
add esp, 8
test edi, edi
jne 0x10007dc2
movdqa xmm0, xmmword [esp + 0x130]
mov eax, dword [esp + 0xc]
mov cl, byte [esp + 0x19b]
mov esi, dword [esp + 0x14]
movdqu xmmword [esp + eax + 0x148], xmm0
add eax, 0x10
inc cl
mov byte [esp + 0x19b], cl
mov dword [esp + 0xc], eax
cmp eax, 0x30
jl 0x10007da0
push ecx
lea edx, [esp + 0x14c]
lea ecx, [esp + 0x1c]
call fcn.1000c5b0
add esp, 4
mov esi, 3
lea esp, [esp]
lea eax, [esp + 0x168]
mov edx, 1
push eax
push eax
lea ecx, [esp + 0x20]
call fcn.1000d630
mov eax, dword [esp + 0x18]
add esp, 8
movdqu xmm0, xmmword [esp + 0x168]
movdqu xmmword [eax], xmm0
add eax, 0x10
mov dword [esp + 0x10], eax
dec esi
jne 0x10007e60
mov eax, 0x118
lea ecx, [esp + 0x18]
mov edi, edi
mov byte [ecx], 0
lea ecx, [ecx + 1]
dec eax
jne 0x10007ea0
mov ecx, dword [esp + 0x33c]
pop edi
pop esi
xor ecx, esp
call fcn.1001f2b3
mov esp, ebp
pop ebp
ret
Function at 0x10007ec0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x100358f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x30
lea edi, [ebp - 0x34]
mov dword [ebp - 0x44], edx
mov eax, edi
mov ebx, ecx
push 0
push eax
mov dword [ebp - 0x40], ebx
call fcn.10017e80
mov esi, 1
mov dword [ebp - 0x38], 3
lea eax, [ebx + 0x20]
add esp, 0xc
lea ecx, [ebx + 0xf]
mov dword [ebp - 0x3c], eax
sub esi, ebx
mov eax, ecx
inc byte [eax]
jne 0x10007f12
dec eax
lea ecx, [esi + eax]
test ecx, ecx
jg 0x10007f06
push edi
push ebx
mov edx, 1
lea ecx, [ebx + 0x20]
call fcn.1000d630
add esp, 8
lea ecx, [ebx + 0xf]
add edi, 0x10
dec dword [ebp - 0x38]
jne 0x10007f04
mov ebx, dword [ebp - 0x44]
mov edx, 0x20
movdqu xmm0, xmmword [ebp - 0x34]
movdqu xmm1, xmmword [ebx]
pxor xmm1, xmm0
movdqu xmm0, xmmword [ebp - 0x24]
movdqu xmmword [ebp - 0x34], xmm1
movdqu xmm1, xmmword [ebx + 0x10]
pxor xmm1, xmm0
movdqu xmmword [ebp - 0x24], xmm1
lea esp, [esp]
mov al, byte [edx + ebx]
xor byte [ebp + edx - 0x34], al
inc edx
cmp edx, 0x30
jl 0x10007f60
push ecx
mov ecx, dword [ebp - 0x3c]
lea edx, [ebp - 0x34]
call fcn.1000c5b0
mov eax, dword [ebp - 0x40]
add esp, 4
movdqu xmm0, xmmword [ebp - 0x14]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
pop esi
movdqu xmmword [eax], xmm0
xor eax, eax
pop ebx
call fcn.1001f2b3
mov esp, ebp
pop ebp
ret
Function at 0x1000bb70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x100358f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push 0x40
mov dword [ebp - 0x50], eax
mov esi, ecx
lea eax, [ebp - 0x44]
mov dword [ebp - 0x48], edx
push 0
push eax
call fcn.10017e80
mov eax, dword [ebx]
add esp, 0xc
mov dword [ebp - 0x4c], 0
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x54], ecx
test eax, eax
je 0x1000bca1
push edi
jmp 0x1000bbc0
cmp eax, ecx
mov edi, ecx
cmovb edi, eax
mov eax, dword [ebx]
test eax, eax
je 0x1000bc1b
push dword [ebx + 4]
mov eax, dword [eax + 0xc]
call eax
mov eax, dword [ebx]
add esp, 4
test eax, eax
je 0x1000bc1b
push dword [ebp + 0xc]
mov eax, dword [eax + 0x10]
push dword [ebp - 0x50]
push dword [ebx + 4]
call eax
mov eax, dword [ebx]
add esp, 0xc
test eax, eax
je 0x1000bc1b
mov eax, dword [eax + 0x10]
lea ecx, [ebp - 0x4c]
push 4
push ecx
push dword [ebx + 4]
call eax
mov eax, dword [ebx]
add esp, 0xc
test eax, eax
je 0x1000bc1b
mov eax, dword [eax + 0x14]
lea ecx, [ebp - 0x44]
push ecx
push dword [ebx + 4]
call eax
add esp, 8
xor ecx, ecx
test edi, edi
je 0x1000bc8c
cmp edi, 0x20
jb 0x1000bc77
lea edx, [esi - 1]
lea eax, [ebp + edi - 0x45]
add edx, edi
cmp esi, eax
ja 0x1000bc3a
lea eax, [ebp - 0x44]
cmp edx, eax
jae 0x1000bc77
mov eax, edi
mov edx, edi
and eax, 0x1f
sub edx, eax
lea eax, [ebp - 0x34]
movdqu xmm0, xmmword [esi]
add ecx, 0x20
lea eax, [eax + 0x20]
movdqu xmm1, xmmword [eax - 0x30]
pxor xmm1, xmm0
movdqu xmmword [esi], xmm1
movdqu xmm0, xmmword [esi + 0x10]
movdqu xmm1, xmmword [eax - 0x20]
pxor xmm1, xmm0
movdqu xmmword [esi + 0x10], xmm1
add esi, 0x20
cmp ecx, edx
jb 0x1000bc46
cmp ecx, edi
jae 0x1000bc8c
jmp 0x1000bc80
mov al, byte [ebp + ecx - 0x44]
inc ecx
xor byte [esi], al
inc esi
cmp ecx, edi
jb 0x1000bc80
mov eax, dword [ebp - 0x48]
inc byte [ebp - 0x49]
sub eax, edi
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x48], eax
jne 0x1000bbc0
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1001f2b3
mov esp, ebp
pop ebp
ret
Function at 0x1000bf00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [0x100358f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
mov edx, ecx
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x464], eax
cmp dword [edx + 0xa4], 1
mov eax, dword [ebp + 0x1c]
push esi
mov dword [ebp - 0x450], eax
mov eax, dword [ebp + 0x20]
push edi
mov dword [ebp - 0x460], eax
jne 0x1000c12f
mov esi, dword [edx + 4]
mov dword [ebp - 0x45c], esi
lea eax, [esi - 0x10]
cmp eax, 0x3f0
ja 0x1000c12f
mov ecx, dword [edx + 0xa8]
call fcn.10012650
mov edi, eax
test edi, edi
je 0x1000c12f
lea eax, [ebp - 0x448]
mov ecx, edx
push eax
push dword [ebp - 0x450]
push ebx
call fcn.1000b840
add esp, 0xc
test eax, eax
jne 0x1000c134
movzx ebx, byte [edi + 8]
lea ecx, [ebp - 0x458]
xorps xmm0, xmm0
mov dword [ebp - 0x44c], ebx
mov edx, edi
movq qword [ebp - 0x458], xmm0
call fcn.100126e0
lea eax, [ebp - 0x48]
push eax
mov eax, dword [edi + 0x18]
push 0
push 0
call eax
add esp, 0xc
lea eax, [ebp - 0x458]
sub esi, ebx
lea edi, [ebp - 0x447]
dec esi
lea ecx, [ebp - 0x447]
add edi, ebx
mov edx, ebx
push eax
push esi
push edi
call fcn.1000bb70
add esp, 0xc
lea eax, [ebp - 0x458]
mov edx, esi
mov ecx, edi
push eax
lea eax, [ebp - 0x447]
push ebx
push eax
call fcn.1000bb70
add esp, 0xc
lea ecx, [ebp - 0x458]
call fcn.100126b0
mov esi, dword [ebp - 0x44c]
lea eax, [ebp - 0x447]
mov bh, byte [ebp - 0x448]
add eax, esi
xor edx, edx
test esi, esi
je 0x1000c033
mov cl, byte [ebp + edx - 0x48]
inc edx
xor cl, byte [eax]
inc eax
or bh, cl
cmp edx, esi
jb 0x1000c025
mov ecx, dword [ebp - 0x44c]
xor esi, esi
mov edx, dword [ebp - 0x45c]
add ecx, ecx
sub edx, ecx
mov dword [ebp - 0x450], esi
xor edi, edi
xor bl, bl
lea ecx, [edx - 2]
xor edx, edx
mov dword [ebp - 0x44c], ecx
cmp ecx, 2
jb 0x1000c095
nop
or bl, byte [eax + edx]
mov ecx, 0
sete cl
add esi, ecx
or bl, byte [eax + edx + 1]
mov ecx, 0
mov dword [ebp - 0x454], esi
sete cl
add edx, 2
add edi, ecx
mov ecx, dword [ebp - 0x44c]
dec ecx
cmp edx, ecx
jb 0x1000c060
mov ecx, dword [ebp - 0x44c]
cmp edx, ecx
jae 0x1000c0ac
mov cl, byte [edx + eax]
or cl, bl
mov ecx, 0
sete cl
mov dword [ebp - 0x450], ecx
lea ecx, [edi + esi]
add ecx, dword [ebp - 0x450]
add eax, ecx
mov cl, byte [eax]
inc eax
xor cl, 1
or bh, cl
je 0x1000c0d7
mov eax, 0xffffbf00
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001f2b3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x45c]
sub ecx, eax
lea ecx, [ebp + ecx - 0x448]
cmp ecx, 0x80
jbe 0x1000c104
mov eax, 0xffffbc00
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001f2b3
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x464]
push ecx
push eax
push dword [ebp - 0x460]
mov dword [edx], ecx
call fcn.10017fb0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001f2b3
mov esp, ebp
pop ebp
ret
mov eax, 0xffffbf80
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001f2b3
mov esp, ebp
pop ebp
ret
Function at 0x1000c330
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x100358f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov edx, 1
lea ecx, [ecx]
mov eax, edx
mov dword [ebp + esi*4 - 0x804], edx
and al, 0x80
mov dword [ebp + edx*4 - 0x404], esi
movsx ecx, al
lea eax, [edx + edx]
neg ecx
sbb ecx, ecx
inc esi
and ecx, 0x1b
xor ecx, eax
xor edx, ecx
and edx, 0xff
cmp esi, 0x100
jl 0x1000c350
mov esi, 1
mov edx, 0x1003a660
lea esp, [esp]
mov eax, esi
mov dword [edx], esi
and al, 0x80
movsx ecx, al
neg ecx
sbb ecx, ecx
add esi, esi
and ecx, 0x1b
add edx, 4
xor esi, ecx
and esi, 0xff
cmp edx, 0x1003a688
jl 0x1000c390
mov eax, 1
mov byte [0x1003ae90], 0x63
mov byte [0x10038dc3], 0
mov dword [ebp - 0x808], eax
mov edi, edi
mov ecx, dword [ebp + eax*4 - 0x404]
lea eax, [ebp - 0x408]
shl ecx, 2
sub eax, ecx
mov ebx, dword [eax]
mov ecx, ebx
sar ecx, 7
lea eax, [ebx + ebx]
or ecx, eax
and ecx, 0xff
mov edx, ecx
xor ebx, ecx
sar edx, 7
lea eax, [ecx + ecx]
or edx, eax
and edx, 0xff
mov esi, edx
xor ebx, edx
sar esi, 7
lea eax, [edx + edx]
or esi, eax
and esi, 0xff
mov ecx, esi
sar ecx, 7
lea eax, [esi + esi]
or ecx, eax
mov eax, dword [ebp - 0x808]
xor ecx, 0x63
and ecx, 0xff
xor ecx, esi
xor ebx, ecx
mov byte [eax + 0x1003ae90], bl
mov byte [ebx + 0x10038d60], al
inc eax
mov dword [ebp - 0x808], eax
cmp eax, 0x100
jl 0x1000c3d0
mov ebx, 0xff
xor esi, esi
mov dword [ebp - 0x80c], ebx
lea esp, [esp]
movzx edx, byte [esi + 0x1003ae90]
mov eax, edx
and al, 0x80
movsx ecx, al
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x1b
xor ecx, eax
and ecx, 0xff
mov eax, ecx
xor eax, edx
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, ecx
movzx ecx, byte [esi + 0x10038d60]
mov dword [esi*4 + 0x10038e60], eax
rol eax, 8
mov dword [esi*4 + 0x10039260], eax
rol eax, 8
mov dword [esi*4 + 0x10039660], eax
rol eax, 8
mov dword [esi*4 + 0x10039a60], eax
test ecx, ecx
je 0x1000c523
mov ecx, dword [ebp + ecx*4 - 0x404]
mov eax, dword [ebp - 0x3cc]
add eax, ecx
cdq
idiv ebx
mov eax, dword [ebp - 0x3e0]
add eax, ecx
mov edi, dword [ebp + edx*4 - 0x804]
cdq
idiv ebx
mov eax, dword [ebp - 0x3d0]
add eax, ecx
mov ebx, dword [ebp + edx*4 - 0x804]
cdq
idiv dword [ebp - 0x80c]
mov eax, dword [ebp + edx*4 - 0x804]
mov dword [ebp - 0x808], eax
mov eax, dword [ebp - 0x3d8]
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
mov eax, dword [ebp + edx*4 - 0x804]
jmp 0x1000c52f
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x808], ebx
xor eax, eax
shl eax, 8
xor eax, dword [ebp - 0x808]
shl eax, 8
xor eax, ebx
mov ebx, 0xff
shl eax, 8
xor eax, edi
mov dword [esi*4 + 0x10039e60], eax
rol eax, 8
mov dword [esi*4 + 0x1003a260], eax
rol eax, 8
mov dword [esi*4 + 0x1003a690], eax
rol eax, 8
mov dword [esi*4 + 0x1003aa90], eax
inc esi
cmp esi, 0x100
jl 0x1000c460
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001f2b3
mov esp, ebp
pop ebp
ret
Function at 0x1000d420
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x100358f0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0x118
lea eax, [ebp - 0x124]
mov esi, edx
push 0
push eax
mov ebx, ecx
call fcn.10017e80
add esp, 8
lea edi, [ebx + 8]
mov edx, esi
mov dword [ebx + 4], edi
lea ecx, [ebp - 0x124]
call fcn.1000c5b0
mov edx, eax
add esp, 4
mov dword [ebp - 0x128], edx
test edx, edx
jne 0x1000d605
mov ecx, dword [ebp - 0x124]
mov dword [ebx], ecx
shl ecx, 4
add ecx, dword [ebp - 0x120]
mov eax, dword [ecx]
mov dword [edi], eax
mov eax, dword [ecx + 4]
mov dword [edi + 4], eax
mov eax, dword [ecx + 8]
mov dword [edi + 8], eax
mov eax, dword [ecx + 0xc]
sub ecx, 0x10
mov dword [edi + 0xc], eax
add edi, 0x10
mov esi, dword [ebx]
dec esi
test esi, esi
jle 0x1000d5ef
mov edi, edi
movzx eax, byte [ecx + 3]
dec esi
movzx edx, byte [eax + 0x1003ae90]
movzx eax, byte [ecx + 2]
mov edx, dword [edx*4 + 0x1003aa90]
movzx eax, byte [eax + 0x1003ae90]
xor edx, dword [eax*4 + 0x1003a690]
movzx eax, byte [ecx + 1]
movzx eax, byte [eax + 0x1003ae90]
xor edx, dword [eax*4 + 0x1003a260]
movzx eax, byte [ecx]
movzx eax, byte [eax + 0x1003ae90]
xor edx, dword [eax*4 + 0x10039e60]
mov dword [edi], edx
movzx eax, byte [ecx + 4]
movzx edx, byte [eax + 0x1003ae90]
movzx eax, byte [ecx + 7]
mov edx, dword [edx*4 + 0x10039e60]
movzx eax, byte [eax + 0x1003ae90]
xor edx, dword [eax*4 + 0x1003aa90]
movzx eax, byte [ecx + 6]
movzx eax, byte [eax + 0x1003ae90]
xor edx, dword [eax*4 + 0x1003a690]
movzx eax, byte [ecx + 5]
movzx eax, byte [eax + 0x1003ae90]
xor edx, dword [eax*4 + 0x1003a260]
mov dword [edi + 4], edx
movzx eax, byte [ecx + 8]
movzx edx, byte [eax + 0x1003ae90]
movzx eax, byte [ecx + 0xb]
mov edx, dword [edx*4 + 0x10039e60]
movzx eax, byte [eax + 0x1003ae90]
xor edx, dword [eax*4 + 0x1003aa90]
movzx eax, byte [ecx + 0xa]
movzx eax, byte [eax + 0x1003ae90]
xor edx, dword [eax*4 + 0x1003a690]
movzx eax, byte [ecx + 9]
movzx eax, byte [eax + 0x1003ae90]
xor edx, dword [eax*4 + 0x1003a260]
mov dword [edi + 8], edx
movzx eax, byte [ecx + 0xc]
movzx edx, byte [eax + 0x1003ae90]
movzx eax, byte [ecx + 0xf]
mov edx, dword [edx*4 + 0x10039e60]
movzx eax, byte [eax + 0x1003ae90]
xor edx, dword [eax*4 + 0x1003aa90]
movzx eax, byte [ecx + 0xe]
movzx eax, byte [eax + 0x1003ae90]
xor edx, dword [eax*4 + 0x1003a690]
movzx eax, byte [ecx + 0xd]
sub ecx, 0x10
movzx eax, byte [eax + 0x1003ae90]
xor edx, dword [eax*4 + 0x1003a260]
mov dword [edi + 0xc], edx
add edi, 0x10
test esi, esi
jg 0x1000d4b0
mov edx, dword [ebp - 0x128]
mov eax, dword [ecx]
mov dword [edi], eax
mov eax, dword [ecx + 4]
mov dword [edi + 4], eax
mov eax, dword [ecx + 8]
mov dword [edi + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [edi + 0xc], eax
mov eax, 0x118
lea ecx, [ebp - 0x124]
mov byte [ecx], 0
lea ecx, [ecx + 1]
dec eax
jne 0x1000d610
mov ecx, dword [ebp - 8]
mov eax, edx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001f2b3
mov esp, ebp
pop ebp
ret
Function at 0x1000e0f0
Capabilities:
Hash data using sha224
Hash data using sha256

Disassembly:
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 0xe8], edx
test edx, edx
jne 0x1000e140
mov dword [ecx + 8], 0x6a09e667
mov dword [ecx + 0xc], 0xbb67ae85
mov dword [ecx + 0x10], 0x3c6ef372
mov dword [ecx + 0x14], 0xa54ff53a
mov dword [ecx + 0x18], 0x510e527f
mov dword [ecx + 0x1c], 0x9b05688c
mov dword [ecx + 0x20], 0x1f83d9ab
mov dword [ecx + 0x24], 0x5be0cd19
ret
mov dword [ecx + 8], 0xc1059ed8
mov dword [ecx + 0xc], 0x367cd507
mov dword [ecx + 0x10], 0x3070dd17
mov dword [ecx + 0x14], 0xf70e5939
mov dword [ecx + 0x18], 0xffc00b31
mov dword [ecx + 0x1c], 0x68581511
mov dword [ecx + 0x20], 0x64f98fa7
mov dword [ecx + 0x24], 0xbefa4fa4
ret