joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005da40
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x208
call fcn.100feb80
mov eax, dword [0x1016fb90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x1005dab5
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x1005dab5
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x204]
push 0x200
push edx
call fcn.100ffdb6
add esp, 0x10
test eax, eax
jns 0x1005da98
mov eax, 0x200
push 0
lea ecx, [ebp - 0x208]
push ecx
push eax
lea edx, [ebp - 0x204]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1005dbfe
mov ebx, dword [ebp + 8]
mov eax, ebx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005dac0
sub eax, edx
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.100ffbf0
mov esi, esp
test esi, esi
jne 0x1005dae4
mov esi, str.no_stack_
jmp 0x1005db6f
push edi
push esi
push edi
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1005db11
test edi, edi
je 0x1005db11
lea ebx, [ebx]
mov ecx, dword [ebp + 8]
movsx dx, byte [eax + ecx]
mov word [esi + eax*2], dx
inc eax
cmp eax, edi
jb 0x1005db00
xor eax, eax
test edi, edi
je 0x1005db6f
cmp word [esi + eax*2], 0x25
jne case.0x1005db34.43
lea ecx, [esi + eax*2 + 2]
movzx edx, word [ecx]
add edx, 0xffffffd6
cmp edx, 0x49
ja case.0x1005db34.43
movzx edx, byte [edx + 0x1005dc30]
jmp dword [edx*4 + 0x1005dc18]
inc eax
add ecx, 2
jmp 0x1005db22
mov ecx, 0x53
mov word [esi + eax*2 + 2], cx
jmp case.0x1005db34.43
mov edx, 0x73
jmp 0x1005db65
mov ecx, 0x43
mov word [esi + eax*2 + 2], cx
jmp case.0x1005db34.43
mov edx, 0x63
mov word [esi + eax*2 + 2], dx
inc eax
cmp eax, edi
jb 0x1005db17
lea eax, [ebp + 0xc]
push eax
push esi
lea ecx, [ebp - 0x204]
push 0xff
push ecx
call fcn.100ffced
xor edx, edx
add esp, 0x10
mov word [ebp - 6], dx
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x1005dbe8
call fcn.1005d900
test eax, eax
jle 0x1005dbe8
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x1005dbfe
push 0
lea ecx, [ebp - 0x208]
push ecx
push 0
push 1
push 0
push 0
push 0
push 1
lea eax, [ebp - 0x204]
push esi
mov dword [ebp - 0x208], eax
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x1005dbfe
push 0x10
push str.OpenSSL:_FATAL
lea edx, [ebp - 0x204]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea esp, [ebp - 0x214]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100fef11
mov esp, ebp
pop ebp
ret
Function at 0x1005db41
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x208
call fcn.100feb80
mov eax, dword [0x1016fb90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x1005dab5
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x1005dab5
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x204]
push 0x200
push edx
call fcn.100ffdb6
add esp, 0x10
test eax, eax
jns 0x1005da98
mov eax, 0x200
push 0
lea ecx, [ebp - 0x208]
push ecx
push eax
lea edx, [ebp - 0x204]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1005dbfe
mov ebx, dword [ebp + 8]
mov eax, ebx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005dac0
sub eax, edx
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.100ffbf0
mov esi, esp
test esi, esi
jne 0x1005dae4
mov esi, str.no_stack_
jmp 0x1005db6f
push edi
push esi
push edi
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1005db11
test edi, edi
je 0x1005db11
lea ebx, [ebx]
mov ecx, dword [ebp + 8]
movsx dx, byte [eax + ecx]
mov word [esi + eax*2], dx
inc eax
cmp eax, edi
jb 0x1005db00
xor eax, eax
test edi, edi
je 0x1005db6f
cmp word [esi + eax*2], 0x25
jne case.0x1005db34.43
lea ecx, [esi + eax*2 + 2]
movzx edx, word [ecx]
add edx, 0xffffffd6
cmp edx, 0x49
ja case.0x1005db34.43
movzx edx, byte [edx + 0x1005dc30]
jmp dword [edx*4 + 0x1005dc18]
inc eax
add ecx, 2
jmp 0x1005db22
mov ecx, 0x53
mov word [esi + eax*2 + 2], cx
jmp case.0x1005db34.43
mov edx, 0x73
jmp 0x1005db65
mov ecx, 0x43
mov word [esi + eax*2 + 2], cx
jmp case.0x1005db34.43
mov edx, 0x63
mov word [esi + eax*2 + 2], dx
inc eax
cmp eax, edi
jb 0x1005db17
lea eax, [ebp + 0xc]
push eax
push esi
lea ecx, [ebp - 0x204]
push 0xff
push ecx
call fcn.100ffced
xor edx, edx
add esp, 0x10
mov word [ebp - 6], dx
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x1005dbe8
call fcn.1005d900
test eax, eax
jle 0x1005dbe8
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x1005dbfe
push 0
lea ecx, [ebp - 0x208]
push ecx
push 0
push 1
push 0
push 0
push 0
push 1
lea eax, [ebp - 0x204]
push esi
mov dword [ebp - 0x208], eax
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x1005dbfe
push 0x10
push str.OpenSSL:_FATAL
lea edx, [ebp - 0x204]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea esp, [ebp - 0x214]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100fef11
mov esp, ebp
pop ebp
ret
Function at 0x1005db4d
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x208
call fcn.100feb80
mov eax, dword [0x1016fb90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x1005dab5
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x1005dab5
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x204]
push 0x200
push edx
call fcn.100ffdb6
add esp, 0x10
test eax, eax
jns 0x1005da98
mov eax, 0x200
push 0
lea ecx, [ebp - 0x208]
push ecx
push eax
lea edx, [ebp - 0x204]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1005dbfe
mov ebx, dword [ebp + 8]
mov eax, ebx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005dac0
sub eax, edx
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.100ffbf0
mov esi, esp
test esi, esi
jne 0x1005dae4
mov esi, str.no_stack_
jmp 0x1005db6f
push edi
push esi
push edi
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1005db11
test edi, edi
je 0x1005db11
lea ebx, [ebx]
mov ecx, dword [ebp + 8]
movsx dx, byte [eax + ecx]
mov word [esi + eax*2], dx
inc eax
cmp eax, edi
jb 0x1005db00
xor eax, eax
test edi, edi
je 0x1005db6f
cmp word [esi + eax*2], 0x25
jne case.0x1005db34.43
lea ecx, [esi + eax*2 + 2]
movzx edx, word [ecx]
add edx, 0xffffffd6
cmp edx, 0x49
ja case.0x1005db34.43
movzx edx, byte [edx + 0x1005dc30]
jmp dword [edx*4 + 0x1005dc18]
inc eax
add ecx, 2
jmp 0x1005db22
mov ecx, 0x53
mov word [esi + eax*2 + 2], cx
jmp case.0x1005db34.43
mov edx, 0x73
jmp 0x1005db65
mov ecx, 0x43
mov word [esi + eax*2 + 2], cx
jmp case.0x1005db34.43
mov edx, 0x63
mov word [esi + eax*2 + 2], dx
inc eax
cmp eax, edi
jb 0x1005db17
lea eax, [ebp + 0xc]
push eax
push esi
lea ecx, [ebp - 0x204]
push 0xff
push ecx
call fcn.100ffced
xor edx, edx
add esp, 0x10
mov word [ebp - 6], dx
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x1005dbe8
call fcn.1005d900
test eax, eax
jle 0x1005dbe8
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x1005dbfe
push 0
lea ecx, [ebp - 0x208]
push ecx
push 0
push 1
push 0
push 0
push 0
push 1
lea eax, [ebp - 0x204]
push esi
mov dword [ebp - 0x208], eax
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x1005dbfe
push 0x10
push str.OpenSSL:_FATAL
lea edx, [ebp - 0x204]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea esp, [ebp - 0x214]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100fef11
mov esp, ebp
pop ebp
ret
Function at 0x1005db54
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x208
call fcn.100feb80
mov eax, dword [0x1016fb90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x1005dab5
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x1005dab5
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x204]
push 0x200
push edx
call fcn.100ffdb6
add esp, 0x10
test eax, eax
jns 0x1005da98
mov eax, 0x200
push 0
lea ecx, [ebp - 0x208]
push ecx
push eax
lea edx, [ebp - 0x204]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1005dbfe
mov ebx, dword [ebp + 8]
mov eax, ebx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005dac0
sub eax, edx
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.100ffbf0
mov esi, esp
test esi, esi
jne 0x1005dae4
mov esi, str.no_stack_
jmp 0x1005db6f
push edi
push esi
push edi
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1005db11
test edi, edi
je 0x1005db11
lea ebx, [ebx]
mov ecx, dword [ebp + 8]
movsx dx, byte [eax + ecx]
mov word [esi + eax*2], dx
inc eax
cmp eax, edi
jb 0x1005db00
xor eax, eax
test edi, edi
je 0x1005db6f
cmp word [esi + eax*2], 0x25
jne case.0x1005db34.43
lea ecx, [esi + eax*2 + 2]
movzx edx, word [ecx]
add edx, 0xffffffd6
cmp edx, 0x49
ja case.0x1005db34.43
movzx edx, byte [edx + 0x1005dc30]
jmp dword [edx*4 + 0x1005dc18]
inc eax
add ecx, 2
jmp 0x1005db22
mov ecx, 0x53
mov word [esi + eax*2 + 2], cx
jmp case.0x1005db34.43
mov edx, 0x73
jmp 0x1005db65
mov ecx, 0x43
mov word [esi + eax*2 + 2], cx
jmp case.0x1005db34.43
mov edx, 0x63
mov word [esi + eax*2 + 2], dx
inc eax
cmp eax, edi
jb 0x1005db17
lea eax, [ebp + 0xc]
push eax
push esi
lea ecx, [ebp - 0x204]
push 0xff
push ecx
call fcn.100ffced
xor edx, edx
add esp, 0x10
mov word [ebp - 6], dx
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x1005dbe8
call fcn.1005d900
test eax, eax
jle 0x1005dbe8
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x1005dbfe
push 0
lea ecx, [ebp - 0x208]
push ecx
push 0
push 1
push 0
push 0
push 0
push 1
lea eax, [ebp - 0x204]
push esi
mov dword [ebp - 0x208], eax
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x1005dbfe
push 0x10
push str.OpenSSL:_FATAL
lea edx, [ebp - 0x204]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea esp, [ebp - 0x214]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100fef11
mov esp, ebp
pop ebp
ret
Function at 0x1005db60
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x208
call fcn.100feb80
mov eax, dword [0x1016fb90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x1005dab5
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x1005dab5
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x204]
push 0x200
push edx
call fcn.100ffdb6
add esp, 0x10
test eax, eax
jns 0x1005da98
mov eax, 0x200
push 0
lea ecx, [ebp - 0x208]
push ecx
push eax
lea edx, [ebp - 0x204]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1005dbfe
mov ebx, dword [ebp + 8]
mov eax, ebx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005dac0
sub eax, edx
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.100ffbf0
mov esi, esp
test esi, esi
jne 0x1005dae4
mov esi, str.no_stack_
jmp 0x1005db6f
push edi
push esi
push edi
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1005db11
test edi, edi
je 0x1005db11
lea ebx, [ebx]
mov ecx, dword [ebp + 8]
movsx dx, byte [eax + ecx]
mov word [esi + eax*2], dx
inc eax
cmp eax, edi
jb 0x1005db00
xor eax, eax
test edi, edi
je 0x1005db6f
cmp word [esi + eax*2], 0x25
jne case.0x1005db34.43
lea ecx, [esi + eax*2 + 2]
movzx edx, word [ecx]
add edx, 0xffffffd6
cmp edx, 0x49
ja case.0x1005db34.43
movzx edx, byte [edx + 0x1005dc30]
jmp dword [edx*4 + 0x1005dc18]
inc eax
add ecx, 2
jmp 0x1005db22
mov ecx, 0x53
mov word [esi + eax*2 + 2], cx
jmp case.0x1005db34.43
mov edx, 0x73
jmp 0x1005db65
mov ecx, 0x43
mov word [esi + eax*2 + 2], cx
jmp case.0x1005db34.43
mov edx, 0x63
mov word [esi + eax*2 + 2], dx
inc eax
cmp eax, edi
jb 0x1005db17
lea eax, [ebp + 0xc]
push eax
push esi
lea ecx, [ebp - 0x204]
push 0xff
push ecx
call fcn.100ffced
xor edx, edx
add esp, 0x10
mov word [ebp - 6], dx
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x1005dbe8
call fcn.1005d900
test eax, eax
jle 0x1005dbe8
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x1005dbfe
push 0
lea ecx, [ebp - 0x208]
push ecx
push 0
push 1
push 0
push 0
push 0
push 1
lea eax, [ebp - 0x204]
push esi
mov dword [ebp - 0x208], eax
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x1005dbfe
push 0x10
push str.OpenSSL:_FATAL
lea edx, [ebp - 0x204]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea esp, [ebp - 0x214]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100fef11
mov esp, ebp
pop ebp
ret

Function at 0x1005dcb0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
xor cl, cl
test edi, edi
je 0x1005dcd5
sub esi, eax
push ebx
mov dl, byte [esi + eax]
mov bl, byte [eax]
xor dl, bl
or cl, dl
inc eax
dec edi
jne 0x1005dcc7
pop ebx
pop edi
movzx eax, cl
pop esi
ret
Function at 0x100608d0
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, 4
call fcn.100feb80
push 0x10060890
push 0x10172700
call fcn.100571e0
push 0x10060710
call fcn.10100909
add esp, 0xc
call fcn.100570e0
mov dword [0x10172710], eax
test eax, eax
jne 0x10060906
pop ecx
ret
call fcn.1008f570
lea eax, [esp]
push eax
push 0x10172718
push 5
mov dword [0x10172718], 1
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
dec eax
neg eax
sbb eax, eax
inc eax
pop ecx
ret
Function at 0x10068a10
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push esi
push ebx
call fcn.100a8990
push 0x62
push esi
mov edi, eax
mov ebp, 1
call fcn.100fd210
add esp, 0x10
test eax, eax
jne 0x10068a3c
lea ebp, [eax + 0x11]
test edi, edi
jne 0x10068ac5
push 0x4a
push str.crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.10053dd0
push 0x1011564c
push esi
push 0x1012ec3c
push ebx
push str.fopen_
push 5
call fcn.100540e0
add esp, 0x2c
call fcn.100fef96
cmp dword [eax], 2
je 0x10068aa6
call fcn.100fef96
cmp dword [eax], 6
je 0x10068aa6
push 0x53
push str.crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.10053dd0
add esp, 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0x51
push str.crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.10053dd0
add esp, 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0x1012ebe8
call fcn.10057820
mov esi, eax
add esp, 4
test esi, esi
jne 0x10068ae8
push edi
call fcn.100fe55d
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0
push esi
call fcn.100579e0
push edi
push ebp
push 0x6a
push esi
call fcn.10057e00
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x10070fd0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x88
call fcn.100feb80
mov eax, dword [0x1016fb90]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x9c]
push ebx
mov ebx, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0x94]
mov dword [esp + 8], eax
xor eax, eax
push edi
mov edi, dword [esp + 0x9c]
test ebx, ebx
je 0x10071033
cmp ebx, dword [esi]
je 0x1007102a
test edi, edi
je 0x100710c0
cmp dword [esp + 0xa0], eax
jl 0x100710c0
mov eax, 1
mov dword [esi], ebx
jmp 0x1007103d
mov ebx, dword [esi]
test ebx, ebx
je 0x100710c0
test edi, edi
je 0x1007111e
push ebp
push ebx
call fcn.10058520
mov ebp, eax
add esp, 4
cmp ebp, 0x80
jle 0x1007106d
push 0x28
push str.cryptohmachmac.c
push str.assertion_failed:_j____int_sizeof_ctx__key_
call fcn.1005dc80
add esp, 0xc
mov eax, dword [esp + 0xa4]
cmp ebp, eax
pop ebp
jge 0x100710da
mov ecx, dword [esp + 0xc]
mov edx, dword [esi + 4]
push ecx
push ebx
push edx
call fcn.1005ea60
add esp, 0xc
test eax, eax
je 0x100710c0
mov eax, dword [esp + 0xa0]
mov ecx, dword [esi + 4]
push eax
push edi
push ecx
call fcn.1005ec10
add esp, 0xc
test eax, eax
je 0x100710c0
mov eax, dword [esi + 4]
lea edi, [esi + 0x10]
push edi
lea edx, [esi + 0x14]
push edx
push eax
call fcn.1005ec20
add esp, 0xc
test eax, eax
jne 0x100710fb
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.100fef11
add esp, 0x88
ret
cmp eax, 0x80
ja 0x100710c0
push eax
lea ecx, [esi + 0x14]
push edi
push ecx
call fcn.100febb0
mov edx, dword [esp + 0xac]
lea edi, [esi + 0x10]
add esp, 0xc
mov dword [edi], edx
mov edi, dword [edi]
cmp edi, 0x80
je 0x10071126
mov eax, 0x80
sub eax, edi
push eax
lea ecx, [edi + esi + 0x14]
push 0
push ecx
call fcn.100fefe0
add esp, 0xc
jmp 0x10071126
test eax, eax
je 0x100711c9
xor eax, eax
jmp 0x10071130
mov dl, byte [esi + eax + 0x14]
xor dl, 0x36
mov byte [esp + eax + 0x10], dl
inc eax
cmp eax, 0x80
jl 0x10071130
mov edi, dword [esp + 0xc]
mov eax, dword [esi + 8]
push edi
push ebx
push eax
call fcn.1005ea60
add esp, 0xc
test eax, eax
je 0x100710c0
push ebx
call fcn.10058520
mov edx, dword [esi + 8]
push eax
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.1005ec10
add esp, 0x10
test eax, eax
je 0x100710c0
xor eax, eax
nop
mov cl, byte [esi + eax + 0x14]
xor cl, 0x5c
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x80
jl 0x10071180
mov edx, dword [esi + 0xc]
push edi
push ebx
push edx
call fcn.1005ea60
add esp, 0xc
test eax, eax
je 0x100710c0
push ebx
call fcn.10058520
mov ecx, dword [esi + 0xc]
push eax
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.1005ec10
add esp, 0x10
test eax, eax
je 0x100710c0
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
push edx
push eax
call fcn.1005eca0
add esp, 8
test eax, eax
je 0x100710c0
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.100fef11
add esp, 0x88
ret
Function at 0x10071c80
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 4]
push ebx
mov ebx, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x10]
dec ecx
push edi
mov edi, dword [esi + 4]
shr ecx, 0x1f
xor edx, edi
dec ecx
and edx, ecx
xor edi, edx
mov dword [esi + 4], edi
xor dword [eax + 4], edx
lea edx, [ebx - 1]
cmp edx, 9
ja case.default.0x10071cb2
jmp dword [edx*4 + 0x10071ddc]
mov edi, 0xa
cmp ebx, edi
jle case.0x10071cb2.10
push ebp
mov edx, dword [esi]
mov ebx, dword [edx + edi*4]
lea ebp, [edx + edi*4]
mov edx, dword [eax]
mov edx, dword [edx + edi*4]
xor edx, ebx
and edx, ecx
xor ebx, edx
mov dword [ebp], ebx
mov ebx, dword [eax]
xor dword [ebx + edi*4], edx
lea ebx, [ebx + edi*4]
inc edi
cmp edi, dword [esp + 0x20]
jl 0x10071cc3
pop ebp
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x24]
mov edx, dword [edx + 0x24]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x24], edi
mov edi, dword [eax]
xor dword [edi + 0x24], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x20]
mov edx, dword [edx + 0x20]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x20], edi
mov edi, dword [eax]
xor dword [edi + 0x20], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x1c]
mov edx, dword [edx + 0x1c]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x1c], edi
mov edi, dword [eax]
xor dword [edi + 0x1c], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x18]
mov edx, dword [edx + 0x18]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x18], edi
mov edi, dword [eax]
xor dword [edi + 0x18], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x14]
mov edx, dword [edx + 0x14]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x14], edi
mov edi, dword [eax]
xor dword [edi + 0x14], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x10]
mov edx, dword [edx + 0x10]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x10], edi
mov edi, dword [eax]
xor dword [edi + 0x10], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0xc]
mov edx, dword [edx + 0xc]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0xc], edi
mov edi, dword [eax]
xor dword [edi + 0xc], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 8]
mov edx, dword [edx + 8]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 8], edi
mov edi, dword [eax]
xor dword [edi + 8], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 4]
mov edx, dword [edx + 4]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 4], edi
mov edi, dword [eax]
xor dword [edi + 4], edx
mov esi, dword [esi]
mov edx, dword [eax]
mov edi, dword [esi]
mov edx, dword [edx]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [esi], edi
mov eax, dword [eax]
xor dword [eax], edx
pop edi
pop esi
pop ebx
ret
Function at 0x100798c0
Capabilities:
Hash data using sha224

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0xc1059ed8
mov dword [eax + 4], 0xcbbb9d5d
mov dword [eax + 8], 0x367cd507
mov dword [eax + 0xc], 0x629a292a
mov dword [eax + 0x10], 0x3070dd17
mov dword [eax + 0x14], 0x9159015a
mov dword [eax + 0x18], 0xf70e5939
mov dword [eax + 0x1c], 0x152fecd8
mov dword [eax + 0x20], 0xffc00b31
mov dword [eax + 0x24], 0x67332667
mov dword [eax + 0x28], 0x68581511
mov dword [eax + 0x2c], 0x8eb44a87
mov dword [eax + 0x30], 0x64f98fa7
mov dword [eax + 0x34], 0xdb0c2e0d
mov dword [eax + 0x38], 0xbefa4fa4
mov dword [eax + 0x3c], 0x47b5481d
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xd4], 0x30
lea eax, [ecx + 1]
ret

Function at 0x10079960
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0xf3bcc908
mov dword [eax + 4], 0x6a09e667
mov dword [eax + 8], 0x84caa73b
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0xfe94f82b
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x18], 0x5f1d36f1
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x20], 0xade682d1
mov dword [eax + 0x24], 0x510e527f
mov dword [eax + 0x28], 0x2b3e6c1f
mov dword [eax + 0x2c], 0x9b05688c
mov dword [eax + 0x30], 0xfb41bd6b
mov dword [eax + 0x34], 0x1f83d9ab
mov dword [eax + 0x38], 0x137e2179
mov dword [eax + 0x3c], 0x5be0cd19
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xd4], 0x40
lea eax, [ecx + 1]
ret