joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100f12c2
Capabilities:
Get disk information

Disassembly:
push ebp
sub esp, 0x19c
lea ebp, [esp - 4]
mov eax, dword [0x101cd7b4]
xor eax, ebp
mov dword [ebp + 0x19c], eax
push 0x1c
mov eax, 0x1018ec93
call fcn.1015e3cb
mov edi, dword [ebp + 0x1a8]
push 0x80
xor ebx, ebx
lea eax, [ebp + 0x11c]
push ebx
push eax
call fcn.101596b0
add esp, 0xc
cmp edi, ebx
je 0x100f1365
mov esi, 0x1019cc24
push esi
push edi
call fcn.1015a5c0
cmp eax, ebx
pop ecx
pop ecx
je 0x100f1358
mov ebx, eax
push esi
sub ebx, edi
call fcn.1015e340
pop ecx
mov ecx, eax
push 0x7f
add ecx, ebx
pop eax
cmp ecx, eax
ja 0x100f1338
push esi
call fcn.1015e340
pop ecx
add eax, ebx
push eax
push edi
lea eax, [ebp + 0x11c]
push 0x80
push eax
call fcn.1015bfcb
add esp, 0x10
lea esi, [ebp + 0x11c]
xor ebx, ebx
jmp 0x100f135a
mov esi, edi
push esi
call fcn.1015e340
test eax, eax
pop ecx
jne 0x100f1367
xor esi, esi
push ebx
lea ecx, [ebp]
mov dword [ebp + 0x18], 7
call fcn.10029900
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], ebx
call fcn.10006620
lea eax, [ebp]
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 1
call fcn.100f0d69
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.10003eb0
push 0x100
lea eax, [ebp + 0x1c]
push ebx
push eax
call fcn.101596b0
mov eax, dword [ebp + 4]
add esp, 0xc
cmp dword [ebp + 0x18], 8
jae 0x100f13bf
lea eax, [ebp + 4]
push 0x40
lea ecx, [ebp + 0x1c]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x100f1439
lea eax, [ebp + 0x1c]
push str.fat32
push eax
call fcn.1015ed47
test eax, eax
pop ecx
pop ecx
jne 0x100f141b
xor esi, esi
push ebx
push 1
lea ecx, [ebp]
call fcn.10029930
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x19c]
xor ecx, ebp
call fcn.10159cce
add ebp, 0x1a0
leave
ret
lea eax, [ebp + 0x1c]
push str.ntfs
push eax
call fcn.1015ed47
test eax, eax
pop ecx
pop ecx
jne 0x100f1434
xor esi, esi
inc esi
jmp 0x100f13eb
or esi, 0xffffffff
jmp 0x100f13eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x100f144e
cmp eax, 0x7b
jne 0x100f1434
push 0xfffffffffffffffd
pop esi
jmp 0x100f13eb
push 0xfffffffffffffffe
jmp 0x100f144b

Function at 0x100f160a
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x100f161d
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
and dword [esi + 4], 0
pop esi
ret
Function at 0x100fc432
Capabilities:
Check mutex on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x101cd7b4]
xor eax, ebp
mov dword [ebp + 0x8c], eax
mov eax, dword [ebp + 0xa8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xa4]
xor ebx, ebx
push 0x103
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x77]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x80], edi
mov byte [ebp - 0x78], bl
call fcn.101596b0
push edi
call fcn.1015e340
mov edi, eax
mov eax, 0x102
add esp, 0x10
cmp edi, eax
jb 0x100fc48e
mov edi, eax
push 0x104
lea eax, [ebp - 0x78]
push ebx
push eax
call fcn.101596b0
push edi
push dword [ebp - 0x80]
lea eax, [ebp - 0x78]
push eax
call fcn.1015a650
mov edx, dword [ebp + 0xa0]
mov eax, dword [ebp + 0x98]
mov ecx, dword [ebp + 0x9c]
add esp, 0x18
dec edx
dec edx
lea edi, [ebp + edi - 0x78]
mov byte [edi], 0x31
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
je 0x100fc4eb
dec edx
dec edx
je 0x100fc4e2
sub edx, 4
jne 0x100fc53e
mov dword [esi + 0x10], 2
jmp 0x100fc4f2
mov dword [esi + 0x10], 0xf001f
jmp 0x100fc4f2
mov dword [esi + 0x10], 4
lea edx, [ebp - 0x78]
push edx
push eax
push ecx
push dword [ebp + 0xa0]
push ebx
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [esi + 8], eax
je 0x100fc53e
cmp eax, 0xffffffff
je 0x100fc53e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push ebx
push ebx
push ebx
push dword [esi + 0x10]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x100fc55a
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi + 8], 0xffffffff
xor al, al
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10159cce
add ebp, 0x90
leave
ret 0x14
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
mov byte [edi], 0x32
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
mov dword [esi + 0x20], eax
jne 0x100fc58b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x100fc58b
lea eax, [ebp - 0x78]
push eax
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [esi + 0x20], eax
mov al, 1
jmp 0x100fc540
Function at 0x100fd408
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
push str.metnsdclsid
push accept
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x100fd4a8
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push ebx
push ebx
mov edi, str.SequenceID
push edi
push dword [ebp - 8]
call esi
test eax, eax
jne 0x100fd4a8
cmp dword [ebp - 4], 0x10
jne 0x100fd4a8
push 0x10
call fcn.10158e03
pop ecx
lea ecx, [ebp - 4]
push ecx
push eax
push ebx
push ebx
push edi
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
call esi
test eax, eax
jne 0x100fd496
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.1015a240
push dword [ebp - 0xc]
call fcn.1015960f
add esp, 0x10
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x100fd4aa
push dword [ebp - 0xc]
call fcn.1015960f
pop ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x100fd4b1
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov edi, str.metnsdclsid
push edi
mov esi, accept
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor ebx, ebx
test eax, eax
jne 0x100fd4fb
push 0x10
push dword [ebp + 8]
push 3
push ebx
push str.SequenceID
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x100fd527
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x100fd532
lea eax, [ebp - 4]
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x100fd527
push 0x10
push dword [ebp + 8]
push 3
push ebx
push str.SequenceID
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x100fd527
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100fd96b
Capabilities:
Write file on windows

Disassembly:
push 0x144
mov eax, 0x1018fa18
call fcn.1015e3cb
mov dword [ebp - 0x18], ecx
xor esi, esi
inc esi
push esi
xor ebx, ebx
push 2
lea ecx, [ebp - 0x150]
mov byte [ebp - 0xd], bl
call fcn.100112f0
mov ecx, dword [ebp - 0x18]
push ebx
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 4], ebx
call fcn.100fd58a
mov edi, str.Global.db
push edi
push eax
lea eax, [ebp - 0x150]
push eax
mov byte [ebp - 4], 1
call fcn.100258f0
pop ecx
pop ecx
push eax
call fcn.10010130
pop ecx
pop ecx
push ebx
push esi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], bl
call fcn.10003eb0
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x150]
call fcn.10008a20
cmp dword [eax + 0x18], 0x10
jb 0x100fd9eb
mov eax, dword [eax + 4]
jmp 0x100fd9ee
add eax, 4
push ebx
push ebx
push 2
push ebx
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push esi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x14], eax
call fcn.10003eb0
cmp dword [ebp - 0x14], 0xffffffff
jne 0x100fdab0
push esi
push 2
lea ecx, [ebp - 0xd0]
call fcn.100112f0
mov ecx, dword [ebp - 0x18]
push esi
lea eax, [ebp - 0x50]
push eax
mov byte [ebp - 4], 2
call fcn.100fd58a
push edi
push eax
lea eax, [ebp - 0xd0]
push eax
mov byte [ebp - 4], 3
call fcn.100258f0
pop ecx
pop ecx
push eax
call fcn.10010130
pop ecx
pop ecx
push ebx
push esi
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.10003eb0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0xd0]
call fcn.10008a20
cmp dword [eax + 0x18], 0x10
jb 0x100fda7a
mov eax, dword [eax + 4]
jmp 0x100fda7d
add eax, 4
push ebx
push ebx
push 2
push ebx
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push esi
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x14], eax
call fcn.10003eb0
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], bl
call fcn.10004820
cmp dword [ebp - 0x14], 0xffffffff
je 0x100fdada
push ebx
lea eax, [ebp + 8]
push eax
push 0x10
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100fdad1
cmp dword [ebp + 8], 0x10
jne 0x100fdad1
mov byte [ebp - 0xd], 1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.10004820
mov al, byte [ebp - 0xd]
call fcn.1015e4a3
ret 4
Function at 0x100febc9
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x5c], ecx
ret

Function at 0x100fec9f
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x14]
mov dword [ebp + 0xc], eax
mov eax, ebx
shr eax, 3
and eax, 0x3f
mov byte [eax + esi + 0x1c], 0x80
inc eax
cmp eax, 0x38
jle 0x100fecee
push 0x40
pop ecx
sub ecx, eax
push ecx
lea eax, [eax + esi + 0x1c]
push 0
push eax
call fcn.101596b0
mov eax, esi
call fcn.100fdfd5
push 0x38
lea eax, [esi + 0x1c]
push 0
push eax
call fcn.101596b0
add esp, 0x18
jmp 0x100fed03
push 0x38
pop ecx
sub ecx, eax
push ecx
lea eax, [eax + esi + 0x1c]
push 0
push eax
call fcn.101596b0
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, eax
shr ecx, 0x18
mov byte [esi + 0x54], cl
mov ecx, eax
mov byte [esi + 0x57], al
shr ecx, 0x10
mov byte [esi + 0x55], cl
mov ecx, eax
mov eax, ebx
shr eax, 0x18
mov byte [esi + 0x58], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 0x59], al
mov eax, ebx
shr eax, 8
shr ecx, 8
mov byte [esi + 0x5a], al
mov eax, esi
mov byte [esi + 0x56], cl
mov byte [esi + 0x5b], bl
call fcn.100fdfd5
mov cl, byte [esi + 3]
mov eax, dword [ebp + 8]
mov byte [eax], cl
mov cl, byte [esi + 2]
mov byte [eax + 1], cl
mov cl, byte [esi + 1]
mov byte [eax + 2], cl
mov cl, byte [esi]
mov byte [eax + 3], cl
mov cl, byte [esi + 7]
mov byte [eax + 4], cl
mov cl, byte [esi + 6]
mov byte [eax + 5], cl
mov cl, byte [esi + 5]
mov byte [eax + 6], cl
mov cl, byte [esi + 4]
mov byte [eax + 7], cl
mov cl, byte [esi + 0xb]
mov byte [eax + 8], cl
mov cl, byte [esi + 0xa]
mov byte [eax + 9], cl
mov cl, byte [esi + 9]
mov byte [eax + 0xa], cl
mov cl, byte [esi + 8]
mov byte [eax + 0xb], cl
mov cl, byte [esi + 0xf]
mov byte [eax + 0xc], cl
mov cl, byte [esi + 0xe]
mov byte [eax + 0xd], cl
mov cl, byte [esi + 0xd]
mov byte [eax + 0xe], cl
mov cl, byte [esi + 0xc]
mov byte [eax + 0xf], cl
mov cl, byte [esi + 0x13]
mov byte [eax + 0x10], cl
mov cl, byte [esi + 0x12]
mov byte [eax + 0x11], cl
mov cl, byte [esi + 0x11]
mov byte [eax + 0x12], cl
mov cl, byte [esi + 0x10]
pop esi
mov byte [eax + 0x13], cl
pop ebx
pop ebp
ret
Function at 0x100fedc0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
je 0x100feeb3
mov eax, dword [esp + 0xc]
test eax, eax
jle 0x100feeb3
cmp eax, 8
push ebx
push esi
mov esi, dword [esp + 0xc]
not esi
mov ecx, 0xff
jl 0x100fee93
push edi
mov edi, eax
shr edi, 3
mov ebx, edi
imul ebx, ebx, 0xfffffff8
add eax, ebx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x1019cd78]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x1019cd78]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x1019cd78]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x1019cd78]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x1019cd78]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x1019cd78]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x1019cd78]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x1019cd78]
inc edx
dec edi
jne 0x100fedfb
pop edi
test eax, eax
je 0x100feeac
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x1019cd78]
inc edx
dec eax
jne 0x100fee97
mov eax, esi
pop esi
not eax
pop ebx
ret
mov eax, dword [esp + 4]
ret
Function at 0x100ff771
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
ret

Function at 0x100ff953
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
push edi
mov edi, eax
push dword [edi]
call esi
push dword [edi + 4]
mov ebx, eax
call esi
and dword [ebp - 4], 0
mov edi, eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
sub eax, ecx
mov dword [ebp - 8], eax
jmp 0x100ff985
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
lea eax, [eax + ecx*4]
push dword [ebp + eax - 0x18]
call esi
mov ecx, dword [ebp - 4]
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
mov dword [ebp + ecx*4 - 0x18], eax
jl 0x100ff982
push 0x10
xor eax, eax
pop ecx
mov edx, edi
shr edx, 5
add edx, dword [ebp - 0x14]
mov esi, edi
shl esi, 4
add esi, dword [ebp - 0x18]
sub eax, 0x61c88647
xor edx, esi
lea esi, [eax + edi]
xor edx, esi
add ebx, edx
mov edx, ebx
shr edx, 5
add edx, dword [ebp - 0xc]
mov esi, ebx
shl esi, 4
add esi, dword [ebp - 0x10]
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
add edi, edx
dec ecx
jne 0x100ff9a6
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push ebx
call esi
mov ebx, dword [ebp + 0xc]
push edi
mov dword [ebx], eax
call esi
pop edi
pop esi
mov dword [ebx + 4], eax
pop ebx
leave
ret

Function at 0x100ff9f9
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
push edi
mov edi, eax
push dword [edi]
call esi
push dword [edi + 4]
mov ebx, eax
call esi
and dword [ebp - 4], 0
mov edi, eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
sub eax, ecx
mov dword [ebp - 8], eax
jmp 0x100ffa2b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
lea eax, [eax + ecx*4]
push dword [ebp + eax - 0x18]
call esi
mov ecx, dword [ebp - 4]
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
mov dword [ebp + ecx*4 - 0x18], eax
jl 0x100ffa28
push 0x10
mov eax, 0xe3779b90
pop ecx
mov edx, ebx
shr edx, 5
add edx, dword [ebp - 0xc]
mov esi, ebx
shl esi, 4
add esi, dword [ebp - 0x10]
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
sub edi, edx
mov edx, edi
shr edx, 5
add edx, dword [ebp - 0x14]
mov esi, edi
shl esi, 4
add esi, dword [ebp - 0x18]
xor edx, esi
lea esi, [eax + edi]
xor edx, esi
sub ebx, edx
add eax, 0x61c88647
dec ecx
jne 0x100ffa4f
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push ebx
call esi
mov ebx, dword [ebp + 0xc]
push edi
mov dword [ebx], eax
call esi
pop edi
pop esi
mov dword [ebx + 4], eax
pop ebx
leave
ret
Function at 0x10100d3c
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x101021b5
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [ecx]
mov edx, eax
xor edx, dword [esp + 4]
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edi + edx*4]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edi + edx*4]
pop esi
mov dword [ecx + 8], eax
mov eax, dword [esp + 4]
ret

Function at 0x10102230
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x101cd7b4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], ebx
jge 0x10102263
xor eax, eax
jmp 0x10102364
inc dword [0x101cf21c]
cmp dword [0x101cf21c], 1
jne 0x10102286
push 0
call fcn.1015972a
xor eax, 0xbb40e64e
push eax
call fcn.1015a060
pop ecx
pop ecx
push edi
mov ecx, ebx
mov eax, esi
call fcn.101021f8
add esp, 4
xor esi, esi
call fcn.1015a06d
mov ebx, eax
mov eax, dword [ebp - 0x14]
sar ebx, 7
and ebx, 0xff
call fcn.1010219e
mov ecx, dword [ebp - 0x14]
push ebx
mov dword [ebp - 0x18], eax
call fcn.101021b5
xor bl, byte [ebp - 0x18]
add esp, 4
mov byte [ebp + esi - 0x10], bl
inc esi
cmp esi, 0xa
jl 0x10102295
mov eax, dword [ebp - 0x20]
push edi
call fcn.101021f8
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
add esp, 4
xor esi, esi
sub eax, ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
call fcn.1010219e
mov bl, byte [ebp + esi - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
movzx eax, bl
push eax
call fcn.101021b5
xor bl, byte [ebp - 0x18]
mov eax, dword [ebp - 0x20]
add eax, esi
add esp, 4
inc esi
cmp esi, 0xa
mov byte [ebp + eax - 0x10], bl
jl 0x101022e2
mov eax, ecx
call fcn.1010219e
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
shr ebx, 0x10
mov eax, ebx
and eax, 0xff
push eax
call fcn.101021b5
xor bl, byte [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov byte [eax + esi], bl
mov eax, ecx
inc esi
call fcn.1010219e
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x14]
shr ebx, 0x18
push ebx
mov dword [ebp - 0x18], eax
call fcn.101021b5
mov eax, dword [ebp - 0x1c]
add esp, 8
xor bl, byte [ebp - 0x18]
mov byte [eax + esi], bl
lea eax, [esi + 1]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10159cce
leave
ret
Function at 0x10103306
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
xor edi, edi
cmp dword [esi + 0x100ac], edi
mov dword [ebp - 8], edi
je 0x10103366
cmp dword [esi + 0x7c], edi
jbe 0x10103366
mov dword [ebp - 4], 0xffffff5c
sub dword [ebp - 4], esi
lea ebx, [esi + 0xa4]
lea edx, [esi + 0x100d0]
mov eax, edx
call fcn.1010219e
mov edi, dword [esi + 0x100dc]
mov dword [ebp - 0xc], eax
movzx eax, byte [ebx]
push eax
mov ecx, edx
call fcn.101021b5
mov al, byte [ebp - 0xc]
xor byte [ebx], al
mov eax, dword [ebp - 4]
add esp, 4
inc ebx
add eax, ebx
cmp eax, dword [esi + 0x7c]
jb 0x10103330
xor edi, edi
mov ebx, dword [esi + 0x7c]
push ebx
lea eax, [esi + 0xa4]
push eax
push dword [esi + 0x2c]
push dword [esi + 0x1c]
call dword [esi + 8]
add esp, 0x10
cmp eax, ebx
je 0x10103385
or dword [ebp - 8], 0xffffffff
mov ecx, dword [esi + 0x48]
lea eax, [esi + 0x100c0]
add dword [eax], ebx
mov dword [esi + 0x48], edi
mov dword [esi + 0x7c], edi
adc dword [eax + 4], edi
lea eax, [esi + 0x100c8]
add dword [eax], ecx
adc dword [eax + 4], edi
mov eax, dword [ebp - 8]
pop edi
pop ebx
leave
ret
Function at 0x10103c25
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
cmp edi, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
jne 0x10103c44
push 0xffffffffffffff9a
pop eax
jmp 0x10103d60
cmp dword [edi + 0x38], 1
jne 0x10103c54
push edi
call fcn.10103c14
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], ebx
jne 0x10103c62
mov eax, dword [edi + 0x10100]
mov dword [ebp + 0xc], eax
push esi
push dword [edi + 0x2c]
push edi
call fcn.10106514
cmp dword [ebp - 4], ebx
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
jne 0x10103cb3
mov esi, dword [edi + 0x30]
test esi, esi
je 0x10103cb3
cmp dword [ebp - 4], 0
jne 0x10103ca7
mov eax, dword [esi + 8]
test eax, eax
jbe 0x10103ca7
push eax
lea eax, [esi + 0x10]
push eax
push dword [edi + 0x2c]
push dword [edi + 0x1c]
call dword [edi + 8]
add esp, 0x10
cmp eax, dword [esi + 8]
je 0x10103ca7
or dword [ebp - 4], 0xffffffff
add ebx, dword [esi + 8]
mov esi, dword [esi]
test esi, esi
jne 0x10103c80
mov dword [ebp - 8], ebx
lea esi, [edi + 0x30]
call fcn.101023af
mov eax, dword [ebp - 0x10]
sub eax, dword [edi + 0x100f0]
mov ecx, dword [ebp - 0xc]
sbb ecx, dword [edi + 0x100f4]
mov dword [ebp - 0x14], ecx
jne 0x10103cd7
cmp eax, 0xffffffff
jb 0x10103cfe
push dword [edi + 0x2c]
push edi
call fcn.10106514
push dword [ebp - 0xc]
mov esi, eax
push dword [ebp - 0x10]
mov ebx, edx
push dword [ebp - 8]
push edi
call fcn.10103996
push ebx
push esi
push edi
call fcn.1010391f
add esp, 0x24
cmp dword [ebp - 4], 0
pop esi
jne 0x10103d2c
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 8]
push edi
call fcn.10103a8f
add esp, 0x10
test eax, eax
mov dword [ebp - 4], eax
jne 0x10103d2c
push dword [ebp + 0xc]
push edi
call fcn.10103b9f
pop ecx
pop ecx
mov dword [ebp - 4], eax
push dword [edi + 0x2c]
push dword [edi + 0x1c]
call dword [edi + 0x14]
test eax, eax
pop ecx
pop ecx
je 0x10103d45
cmp dword [ebp - 4], 0
jne 0x10103d45
or dword [ebp - 4], 0xffffffff
mov eax, dword [edi + 0x10100]
test eax, eax
je 0x10103d56
push eax
call fcn.10159614
pop ecx
push edi
call fcn.10159614
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop ebx
leave
ret