joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100662f0
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0x1c
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
push ebp
xor ebp, ebp
mov dword [esp + 0xc], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], ebp
cmp eax, ebp
je 0x10066430
cmp dword [esp + 0x28], ebp
je 0x10066430
push ebx
push 0x2800
call fcn.100d279b
mov ebx, eax
add esp, 4
cmp ebx, ebp
jne 0x10066353
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.100d0738
add esp, 0x1c
ret
push esi
push edi
xor edi, edi
jmp 0x10066360
push edi
push str..PhysicalDrive_d
mov ecx, 0x2800
call fcn.100642c0
add esp, 8
push ebp
push 0x80
push 3
push ebp
push 3
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10066406
xor eax, eax
push 0x2800
push ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
call fcn.100d4cc0
add esp, 0xc
push ebp
lea eax, [esp + 0x18]
push eax
push 0x2800
push ebx
push 0xc
lea ecx, [esp + 0x30]
push ecx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x100663f9
mov eax, dword [ebx + 0x18]
cmp eax, ebp
jbe 0x100663f9
mov edx, dword [esp + 0x18]
add eax, ebx
push eax
mov eax, dword [esp + 0x38]
push edx
push str.DISKID:
call fcn.100660a0
add esp, 0xc
mov dword [esp + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], ebp
jne 0x10066410
inc edi
cmp edi, 0x10
jl 0x10066360
push ebx
call fcn.100d1800
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.100d0738
add esp, 0x1c
ret
mov ecx, dword [esp + 0x1c]
pop ebp
xor ecx, esp
or eax, 0xffffffff
call fcn.100d0738
add esp, 0x1c
ret
Function at 0x100664e0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
xor esi, esi
push edi
xor edi, edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], esi
cmp dword [esp + 0x30], esi
je 0x1006651a
cmp dword [esp + 0x34], esi
je 0x1006651a
push 0x200
call fcn.100d279b
mov ebx, eax
add esp, 4
cmp ebx, esi
jne 0x10066525
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
lea eax, [esp + 0x14]
push eax
push 0x20119
push esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10066684
mov edx, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x20]
push ecx
push ebx
push esi
push edx
mov dword [esp + 0x30], 0x100
call ebp
test eax, eax
jne 0x1006661a
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x1006657d
mov eax, reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x1c]
push ecx
push 0x20119
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100665f3
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x20]
lea eax, [ebx + 4]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push str.ServiceName
push edx
mov dword [esp + 0x38], 1
mov dword [esp + 0x28], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100665e8
mov eax, ebx
mov dword [ebx], 0x5c2e5c5c
call fcn.10066450
cmp edx, edi
jb 0x100665e8
ja 0x100665e2
cmp eax, dword [esp + 0x24]
jbe 0x100665e8
mov dword [esp + 0x24], eax
mov edi, edx
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x14]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
push ebx
inc esi
push esi
push edx
mov dword [esp + 0x30], 0x100
call ebp
test eax, eax
je 0x10066570
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
ja 0x10066630
cmp dword [esp + 0x24], 0
jbe 0x10066684
mov ecx, dword [esp + 0x24]
push edi
push ecx
push str._012I64X
mov ecx, 0x200
call fcn.100642c0
add esp, 0xc
test eax, eax
jne 0x10066669
push ebx
mov dword [esp + 0x1c], 0xffffffff
call fcn.100d1800
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
push ebx
push edx
push str.MAC:
call fcn.100660a0
add esp, 0xc
mov dword [esp + 0x18], eax
push ebx
call fcn.100d1800
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x10069430
Capabilities:
Check mutex on windows

Disassembly:
push ebp
lea ebp, [esp - 0xc8]
sub esp, 0xc8
push 0xffffffffffffffff
push 0x100f17cb
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x10139d00]
xor eax, ebp
mov dword [ebp + 0xc4], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [0x101e2cf8], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.1830B7BD_F7A3_4c4d_989B_C004DE465EDE
push str._s__u
lea eax, [ebp]
push 0x40
push eax
call fcn.100ef7d2
add esp, 0x14
lea edx, [ebp]
push edx
push 1
xor ecx, ecx
push esi
mov word [ebp + 0x80], cx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
mov dword [ebp - 0x18], ebx
cmp ebx, esi
je 0x1006961d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100694ce
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x3e
lea ecx, [ebp + 0x86]
xor eax, eax
push esi
mov dword [ebp - 4], esi
push ecx
mov word [ebp + 0x84], ax
call fcn.100d4cc0
add esp, 0xc
push 0x1f
lea edx, [ebp + 0x84]
push edx
call fcn.10069120
mov dword [ebp - 0x14], esi
cmp eax, esi
je 0x10069535
lea edx, [ebp - 0x14]
xor ecx, ecx
push edx
mov word [ebp + eax*2 + 0x84], cx
lea eax, [ebp + 0x84]
push 0x1012cad4
push eax
call fcn.100ef78a
add esp, 0xc
cmp eax, 1
jne 0x10069535
mov eax, dword [ebp - 0x14]
mov dword [0x101e2cf8], eax
jmp 0x10069605
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x1006954f
push 0x5c0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x10069563
push ebx
push esi
call fcn.10069880
jmp 0x10069565
xor eax, eax
mov byte [ebp - 4], 0
mov dword [0x101e2cf8], eax
test eax, eax
jne 0x10069587
push 0x10132448
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x20], 1
call fcn.100d7b5b
push eax
lea edx, [ebp + 0x84]
push 0x1012cad4
push edx
mov edi, 1
call fcn.100ef8a5
add esp, 0xc
lea esi, [ebp + 0x84]
call fcn.10069260
test eax, eax
jne 0x100695fe
push 0x10132448
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 3
call fcn.100d7b5b
call fcn.10069300
mov edi, dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov esi, dword [0x101e2cf8]
test esi, esi
je 0x100695ef
call fcn.10069960
mov dword [0x101e2cf8], 0
jmp 0x100695f6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x100695fc
ret
mov eax, dword [0x101e2cf8]
xor esi, esi
inc dword [eax + 0x5bc]
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp edi, esi
jne 0x1006961d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x101e2cf8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc4]
xor ecx, ebp
call fcn.100d0738
add ebp, 0xc8
mov esp, ebp
pop ebp
ret
Function at 0x10069650
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f15a0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x10139d00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [0x101e2cf8]
xor edi, edi
cmp ecx, edi
jne 0x1006969b
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jne 0x100696a8
mov dword [ebp - 0x14], edi
jmp 0x100696c0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x10069756
mov ecx, dword [0x101e2cf8]
mov eax, dword [ecx]
cmp eax, edi
je 0x10069687
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10069687
mov ebx, 0x101e2cf8
mov dword [ebp - 4], edi
call fcn.10069770
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, edi
jne 0x100696fe
push 0x10132448
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], 1
call fcn.100d7b5b
mov ecx, dword [0x101e2cf8]
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x10069718
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, edi
jne 0x10069742
push 0x10132448
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], 4
call fcn.100d7b5b
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x10069739
call fcn.10069a80
mov eax, 0x1006973f
ret
mov eax, dword [0x101e2cf8]
mov eax, dword [eax]
test eax, eax
je 0x10069754
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10069770
Capabilities:
Print debug messages

Disassembly:
sub esp, 8
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x5b0]
add eax, 8
mov dword [eax + 0x5b0], ecx
cmp ecx, eax
jne 0x1006979d
xor ecx, ecx
jmp 0x100697a9
mov edx, dword [ecx + 0x5a8]
mov dword [eax + 0x5b0], edx
push esi
mov esi, ecx
test ecx, ecx
je 0x1006985d
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenThread]
mov eax, dword [esi]
cmp dword [esp + 0x10], eax
jne 0x100697d0
mov dword [esp + 0xc], esi
jmp 0x10069830
push eax
push 1
push 0x40
call edi
test eax, eax
jne 0x10069829
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1006981c
mov eax, dword [esi + 0x5ac]
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5a8], ecx
mov edx, dword [esi + 0x5a8]
mov eax, dword [esi + 0x5ac]
mov dword [edx + 0x5ac], eax
call ebp
test eax, eax
je 0x10069830
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10069830
push 0x101305f0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x10069830
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
mov esi, dword [eax + 0x5b8]
add eax, 8
cmp esi, eax
je 0x10069853
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5b0], ecx
test esi, esi
jne 0x100697c2
mov eax, dword [esp + 0xc]
pop edi
pop ebp
test eax, eax
jne 0x10069871
mov ecx, dword [ebx]
add ecx, 8
call fcn.100699b0
test eax, eax
je 0x10069871
mov edx, dword [esp + 8]
mov dword [eax], edx
pop esi
add esp, 8
ret

Function at 0x10069880
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x100f179b
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10139d00]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
lea esi, [edi + 8]
push 0x5a0
lea eax, [esi + 8]
push 0
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
push eax
mov dword [esi], 0
call fcn.100d4cc0
add esp, 0xc
mov dword [esi + 0x5ac], esi
mov dword [esi + 0x5a8], esi
mov dword [esi + 0x5b0], esi
mov dword [esp + 0x14], 0
mov dword [edi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x10069918
push 0x10132448
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 2
call fcn.100d7b5b
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8
Function at 0x10069f41
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + 0x10137984]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x10137914]
mov dl, byte [esi + edx]
test dl, bl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x10069f54
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x10069f95
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x101379bc]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x10069fc7
mov bl, byte [esp + ecx + 0x4c]
jmp 0x10069fcb
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x10069fbc
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x10069fe9
mov bl, byte [esp + ecx + 0x4c]
jmp 0x10069fed
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x10069fde
xor ecx, ecx
mov eax, 0x10137924
xor ebx, ebx
mov bl, byte [ecx + 0x101379cc]
cmp byte [esp + ebx + 0x14], 0
je 0x1006a018
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x101379e4]
cmp byte [esp + ebx + 0x14], 0
je 0x1006a02f
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, 0x10137984
jl 0x10069fff
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x10069f88
lea edx, [esp + 0x84]
push edx
call fcn.10069e93
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x1006a540
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x10138200]
mov dl, byte [esi + edx]
test dl, bl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x1006a553
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x1006a594
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x101382a8]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x1006a5c6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x1006a5ca
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x1006a5bb
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x1006a5e8
mov bl, byte [esp + ecx + 0x4c]
jmp 0x1006a5ec
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x1006a5dd
xor ecx, ecx
mov eax, 0x10138210
xor ebx, ebx
mov bl, byte [ecx + 0x101382b8]
cmp byte [esp + ebx + 0x14], 0
je 0x1006a617
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x101382d0]
cmp byte [esp + ebx + 0x14], 0
je 0x1006a62e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x1006a5fe
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x1006a587
lea edx, [esp + 0x84]
mov eax, dword [esp + 0x110]
push eax
push edx
call fcn.1006a48d
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x1006c040
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
jmp 0x1007f930
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push ebx
push eax
push ecx
call fcn.1007f400
add esp, 0xc
test eax, eax
jl 0x1007fb78
mov edx, dword [ebx + 0xf0]
add edx, edx
push esi
add edx, edx
xor esi, esi
push edi
test edx, edx
jle 0x1007f9ad
lea ecx, [ebx + edx*4 + 8]
lea eax, [ebx + 8]
push ebp
lea ebx, [ebx]
mov ebp, dword [ecx - 8]
mov edi, dword [eax - 8]
mov dword [eax - 8], ebp
mov ebp, dword [ecx - 4]
mov dword [ecx - 8], edi
mov edi, dword [eax - 4]
mov dword [eax - 4], ebp
mov ebp, dword [ecx]
mov dword [ecx - 4], edi
mov edi, dword [eax]
mov dword [eax], ebp
mov ebp, dword [ecx + 4]
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov dword [eax + 4], ebp
mov dword [ecx + 4], edi
add esi, 4
sub edx, 4
add eax, 0x10
sub ecx, 0x10
cmp esi, edx
jl 0x1007f970
pop ebp
mov edx, 1
cmp dword [ebx + 0xf0], edx
jle 0x1007fb74
lea eax, [ebx + 2]
mov ecx, dword [eax + 0xe]
movzx edi, byte [eax + 0xf]
mov edi, dword [edi*4 + 0x100ff470]
add eax, 0x10
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x100ff470]
and esi, 0xff
mov esi, dword [esi*4 + 0x10100070]
and edi, 0xff
xor esi, dword [edi*4 + 0x10100870]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x100ff470]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x10100c70]
movzx ecx, byte [eax]
mov ecx, dword [ecx*4 + 0x100ff470]
movzx edi, byte [eax + 3]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x10100470]
mov ecx, dword [eax + 2]
mov dword [eax - 2], esi
mov edi, dword [edi*4 + 0x100ff470]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x100ff470]
and esi, 0xff
mov esi, dword [esi*4 + 0x10100070]
and edi, 0xff
xor esi, dword [edi*4 + 0x10100870]
movzx edi, byte [eax + 4]
mov edi, dword [edi*4 + 0x100ff470]
and edi, 0xff
xor esi, dword [edi*4 + 0x10100470]
movzx edi, byte [eax + 7]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x100ff470]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x10100c70]
mov ecx, dword [eax + 6]
mov dword [eax + 2], esi
mov edi, dword [edi*4 + 0x100ff470]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x100ff470]
and esi, 0xff
mov esi, dword [esi*4 + 0x10100070]
and edi, 0xff
xor esi, dword [edi*4 + 0x10100870]
movzx edi, byte [eax + 8]
mov edi, dword [edi*4 + 0x100ff470]
and edi, 0xff
xor esi, dword [edi*4 + 0x10100470]
movzx edi, byte [eax + 0xb]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x100ff470]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x10100c70]
mov ecx, dword [eax + 0xa]
mov dword [eax + 6], esi
mov edi, dword [edi*4 + 0x100ff470]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x100ff470]
and esi, 0xff
mov esi, dword [esi*4 + 0x10100070]
and edi, 0xff
xor esi, dword [edi*4 + 0x10100870]
movzx edi, byte [eax + 0xc]
mov edi, dword [edi*4 + 0x100ff470]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x100ff470]
and edi, 0xff
xor esi, dword [edi*4 + 0x10100470]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x10100c70]
inc edx
mov dword [eax + 0xa], esi
cmp edx, dword [ebx + 0xf0]
jl 0x1007f9c1
pop edi
xor eax, eax
pop esi
pop ebx
ret
Function at 0x1006c6b0
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
call fcn.1006c080
mov edi, eax
add esp, 4
test edi, edi
jne 0x1006c756
push 0xaf
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.1007e710
push 0x100f69e0
push esi
push 0x100f69dc
push ebx
push str.fopen_
push 5
call fcn.1007e9e0
add esp, 0x2c
call fcn.100d4d7c
cmp dword [eax], 2
je 0x1006c735
call fcn.100d4d7c
cmp dword [eax], 6
je 0x1006c735
push 0xb8
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.1007e710
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0xb6
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.1007e710
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x10138b38
call fcn.1006b010
mov esi, eax
add esp, 4
test esi, esi
jne 0x1006c778
push edi
call fcn.100d11ec
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0
push esi
call fcn.1006aaa0
push edi
push 1
push 0x6a
push esi
call fcn.1006ae00
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x1006d440
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.0x1006d472
jmp dword [edx*4 + 0x1006d59c]
mov edi, 0xa
cmp ebx, edi
jle case.0x1006d472.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 0x1006d483
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 0x1006dbf0
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call fcn.100d4cc0
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov eax, 1
pop esi
ret
Function at 0x10071c40
Capabilities:
Hash data using sha256

Disassembly:
mov eax, 0x70
call fcn.100d4920
push esi
mov esi, dword [esp + 0x80]
test esi, esi
jne 0x10071c5b
mov esi, 0x101d3c14
push 0x70
lea eax, [esp + 8]
push 0
push eax
call fcn.100d4cc0
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x84]
push ecx
push edx
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0x6a09e667
mov dword [esp + 0x20], 0xbb67ae85
mov dword [esp + 0x24], 0x3c6ef372
mov dword [esp + 0x28], 0xa54ff53a
mov dword [esp + 0x2c], 0x510e527f
mov dword [esp + 0x30], 0x9b05688c
mov dword [esp + 0x34], 0x1f83d9ab
mov dword [esp + 0x38], 0x5be0cd19
mov dword [esp + 0x88], 0x20
call fcn.10071880
lea ecx, [esp + 0x1c]
push ecx
push esi
call fcn.10071960
lea edx, [esp + 0x24]
push 0x70
push edx
call fcn.1007cbd0
add esp, 0x28
mov eax, esi
pop esi
add esp, 0x70
ret
Function at 0x100743e0
Capabilities:
Hash data using sha1

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x60
push 0
push esi
call fcn.100d4cc0
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
mov eax, 1
pop esi
ret