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

Disassembly:
push 0xffffffffffffffff
push 0x101ea96f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x10253adc]
push esi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x14], 1
mov cl, byte [eax + 0xf]
mov dl, byte [eax + 0xe]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + 0xd]
mov dl, byte [eax + 0xc]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + 0xb]
mov dl, byte [eax + 0xa]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + 9]
mov dl, byte [eax + 8]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cx, word [eax + 6]
mov dx, word [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
lea ecx, [esp + 0x30]
push str._08lX__04lX__04lX__02lX_02lX__02lX_02lX_02lX_02lX_02lX_02lX
push ecx
call fcn.101d13e5
mov esi, dword [esp + 0x50]
add esp, 0x34
lea edx, [esp + 4]
mov ecx, esi
push edx
call fcn.101d3978
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.101d3c0b
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x100a8a10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
push esi
test edx, edx
je 0x100a8ac5
mov esi, dword [esp + 0x10]
test esi, esi
je 0x100a8ac5
mov eax, dword [esp + 8]
cmp esi, 4
push ebx
not eax
jb 0x100a8a9a
push edi
mov edi, esi
shr edi, 2
mov ebx, dword [edx]
add edx, 4
xor eax, ebx
sub esi, 4
mov ecx, eax
mov ebx, eax
and ecx, 0xff
shr ebx, 8
mov eax, dword [ecx*4 + 0x101fe6b0]
xor eax, ebx
mov ecx, eax
and ecx, 0xff
shr eax, 8
mov ecx, dword [ecx*4 + 0x101fe6b0]
xor ecx, eax
mov eax, ecx
and eax, 0xff
shr ecx, 8
mov eax, dword [eax*4 + 0x101fe6b0]
xor eax, ecx
mov ecx, eax
and ecx, 0xff
shr eax, 8
mov ecx, dword [ecx*4 + 0x101fe6b0]
xor eax, ecx
dec edi
jne 0x100a8a3b
pop edi
mov ecx, esi
dec esi
test ecx, ecx
je 0x100a8ac0
inc esi
mov ecx, eax
xor ebx, ebx
mov bl, byte [edx]
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x101fe6b0]
xor eax, ecx
inc edx
dec esi
jne 0x100a8aa2
pop ebx
pop esi
not eax
ret
mov eax, dword [esp + 8]
pop esi
ret
Function at 0x100b31a0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov eax, dword [0x1027c74c]
push ebx
mov ebx, dword [esp + 0x10]
push esi
test eax, eax
push edi
jne 0x100b31c2
mov eax, dword [0x1027cedc]
test eax, eax
jne 0x100b31c2
mov eax, dword [0x1027d4f4]
test eax, eax
je 0x100b31c6
test ebx, ebx
je 0x100b3200
mov eax, dword [0x1025b410]
or esi, 0xffffffff
cmp eax, esi
jne 0x100b3200
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, esi
mov dword [0x1025b410], eax
je 0x100b3200
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x100b3200
mov eax, dword [0x1025b410]
push eax
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x1025b410], esi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push ebx
push esi
push edi
call fcn.100bba50
add esp, 0xc
test eax, eax
je 0x100b3243
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
push esi
push edi
call fcn.100cbae0
add esp, 0x10
test eax, eax
je 0x100b3243
push ebx
push esi
push edi
call fcn.100dae10
add esp, 0xc
test eax, eax
je 0x100b3243
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x100bc050
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x3ec
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
push esi
xor ebp, ebp
push edi
mov dword [0x1027c740], ebp
call ebx
mov dword [0x1027c748], eax
mov ecx, 0xf7
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
mov esi, dword [esp + 0x41c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp esi, ebp
stosb byte es:[edi], al
je 0x100bc18c
mov ecx, 0xf8
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.100c3120
mov esi, dword [esp + 0x408]
mov ebx, dword [esp + 0x414]
mov ebp, dword [esp + 0x410]
mov edi, dword [esp + 0x40c]
add esp, 4
mov dword [esp + 0x10], eax
test esi, esi
jne 0x100bc0f5
test edi, edi
jne 0x100bc0f5
test ebp, ebp
jne 0x100bc0f5
test ebx, ebx
jne 0x100bc0f5
mov ecx, dword [esp + 0x414]
test ecx, ecx
jne 0x100bc0f5
mov ecx, dword [esp + 0x418]
test ecx, ecx
je 0x100bc181
cmp eax, 3
jne 0x100bc181
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x1c]
push ecx
push 0x30
push edx
call fcn.100e3690
add esp, 0xc
test eax, eax
je 0x100bc17d
mov eax, dword [esp + 0x40]
test esi, esi
je 0x100bc125
mov ecx, eax
and ecx, 1
mov dword [esi], ecx
test edi, edi
je 0x100bc130
mov edx, eax
and edx, 2
mov dword [edi], edx
test ebp, ebp
je 0x100bc13c
mov ecx, eax
and ecx, 4
mov dword [ebp], ecx
test ebx, ebx
je 0x100bc15b
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [ebx], edx
mov edx, dword [esp + 0x34]
mov dword [ebx + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], ecx
mov ecx, dword [esp + 0x414]
test ecx, ecx
je 0x100bc16d
mov edx, eax
and edx, 8
mov dword [ecx], edx
mov ecx, dword [esp + 0x418]
test ecx, ecx
je 0x100bc17d
and eax, 0x10
mov dword [ecx], eax
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3ec
ret
mov esi, dword [esp + 0x400]
lea eax, [esp + 0x10]
push 1
push eax
mov dword [esp + 0x18], ebp
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call ebp
push 0
push 0
push 0
push esi
mov dword [esp + 0x28], eax
call ebp
cmp esi, 0xffffffff
je 0x100bc21d
lea ecx, [esp + 0x1c]
test ecx, ecx
je 0x100bc21d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x100bc238
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
xor edi, edi
lea eax, [esp + 0x1c]
push edi
push edx
push 0x34
push eax
push esi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100bc216
mov dword [0x1027c740], 0xd
mov dword [0x1027c744], 0x29f7
call ebx
mov dword [0x1027c748], eax
jmp 0x100bc23a
mov edi, 1
jmp 0x100bc23a
mov dword [0x1027c740], 1
mov dword [0x1027c744], 0x29ea
call ebx
mov dword [0x1027c748], eax
xor edi, edi
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push 0
push ecx
push edx
push esi
call ebp
test edi, edi
jne 0x100bc09e
mov dword [0x1027c740], 0xf
mov dword [0x1027c744], 0x1b63
call ebx
pop edi
pop esi
mov dword [0x1027c748], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x3ec
ret
Function at 0x100bc390
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x3ec
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
push esi
push edi
xor edi, edi
mov dword [0x1027c740], edi
call ebx
mov esi, dword [esp + 0x400]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x1027c748], eax
lea eax, [esp + 0x10]
push 1
push eax
push edi
push esi
mov dword [esp + 0x20], edi
call ebp
push edi
push edi
push edi
push esi
mov dword [esp + 0x28], eax
call ebp
mov ecx, 0xf7
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp esi, 0xffffffff
stosb byte es:[edi], al
je 0x100bc455
lea ecx, [esp + 0x1c]
test ecx, ecx
je 0x100bc455
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x100bc470
mov ecx, 0xf8
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
xor edi, edi
lea eax, [esp + 0x1c]
push edi
push edx
push 0x3e0
push eax
push esi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100bc44e
mov dword [0x1027c740], 0xd
mov dword [0x1027c744], 0x29f7
call ebx
mov dword [0x1027c748], eax
jmp 0x100bc472
mov edi, 1
jmp 0x100bc472
mov dword [0x1027c740], 1
mov dword [0x1027c744], 0x29ea
call ebx
mov dword [0x1027c748], eax
xor edi, edi
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push 0
push ecx
push edx
push esi
call ebp
test edi, edi
jne 0x100bc4ad
mov dword [0x1027c740], 0xf
mov dword [0x1027c744], 0x1bcd
call ebx
pop edi
pop esi
mov dword [0x1027c748], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x3ec
ret
lea eax, [esp + 0x1c]
push eax
call fcn.100c3120
add esp, 4
cmp eax, 3
jne 0x100bc524
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x1c]
push ecx
push 0x30
push edx
call fcn.100e3690
add esp, 0xc
test eax, eax
je 0x100bc509
mov eax, dword [esp + 0x404]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
pop edi
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
pop esi
pop ebp
mov dword [eax + 4], edx
mov edx, dword [esp + 0x2c]
pop ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, 1
add esp, 0x3ec
ret
mov dword [0x1027c740], 0x1c
mov dword [0x1027c744], 0x1bdb
call ebx
mov dword [0x1027c748], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3ec
ret
Function at 0x100bf4d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x3e0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
push edi
mov dword [0x1027c740], ebx
call esi
mov ebp, dword [esp + 0x3f4]
mov dword [0x1027c748], eax
lea eax, [esp + 0x14]
push 1
push eax
push ebx
push ebp
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x1c], eax
mov ecx, 0xf3
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], bl
cmp ebp, 0xffffffff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [esp + 0x18], ebx
stosb byte es:[edi], al
je 0x100bf582
lea ecx, [esp + 0x20]
test ecx, ecx
je 0x100bf582
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x100bf68c
lea edx, [esp + 0x10]
push ebx
push edx
lea eax, [esp + 0x28]
push 4
push eax
push ebp
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100bf5a2
mov dword [0x1027c740], 0xd
mov dword [0x1027c744], 0x29f7
call esi
mov dword [0x1027c748], eax
jmp 0x100bf68c
mov dword [0x1027c740], 1
mov dword [0x1027c744], 0x29ea
call esi
mov dword [0x1027c748], eax
jmp 0x100bf68c
mov ecx, 4
mov edi, 0x1025b77c
lea esi, [esp + 0x20]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x100bf5bb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x100bf5e0
mov ecx, 4
mov edi, 0x1025b754
lea esi, [esp + 0x20]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x100bf5d8
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x100bf68c
lea ecx, [esp + 0x24]
test ecx, ecx
je 0x100bf642
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x100bf68c
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
push ebx
push edx
lea eax, [esp + 0x2c]
push 0x34
push eax
push ebp
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100bf663
mov dword [0x1027c740], 0xd
mov dword [0x1027c744], 0x29f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1027c748], eax
jmp 0x100bf68c
mov dword [0x1027c740], 1
mov dword [0x1027c744], 0x29ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1027c748], eax
jmp 0x100bf68c
mov ecx, dword [esp + 0x400]
mov edx, dword [esp + 0x3fc]
mov eax, dword [esp + 0x3f8]
push ecx
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.100c1cb0
add esp, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push ebx
push edx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3e0
ret
Function at 0x100d6210
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x101ebbb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [0x1027ced0], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [esp + 0x80]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x1027ced8], eax
lea eax, [esp + 0x10]
push 1
push eax
push esi
push ebx
mov dword [esp + 0x20], esi
call edi
push esi
push esi
push 0x40
push ebx
mov dword [esp + 0x2c], eax
call edi
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x20], esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x80]
mov dword [esp + 0x14], esi
call fcn.1006d670
mov edx, dword [esp + 0x84]
xor ecx, ecx
push 0xffffffffffffffff
mov dword [esp + 0x7c], esi
mov cx, word [edx + 0x3e]
push ecx
lea ecx, [esp + 0x88]
call fcn.1006d850
lea ecx, [esp + 0x80]
call fcn.1006d840
lea ecx, [esp + 0x80]
mov esi, eax
call fcn.1006df80
cmp ebx, 0xffffffff
mov ebp, eax
je 0x100d63a2
test ebp, ebp
je 0x100d63a2
test esi, esi
je 0x100d63a2
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x100d633b
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
mov dword [esp + 0x1c], 0
rep stosb byte es:[edi], al
lea eax, [esp + 0x1c]
push eax
push esi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100d63bb
mov dword [0x1027ced0], 0xd
mov dword [0x1027ced4], 0x224e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1027ced8], eax
lea ecx, [esp + 0x80]
mov dword [esp + 0x78], 0xffffffff
call fcn.1006d7a0
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push 0
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
jne 0x100d6472
mov dword [0x1027ced0], 0xf
mov dword [0x1027ced4], 0x2e79
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1027ced8], eax
xor eax, eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret
mov dword [0x1027ced0], 1
mov dword [0x1027ced4], 0x2241
jmp 0x100d6330
lea ecx, [esp + 0x80]
call fcn.1006d840
push eax
lea ecx, [esp + 0x84]
call fcn.1006df80
mov ecx, dword [esp + 0x88]
push eax
push ecx
call fcn.100d7920
add esp, 0xc
test eax, eax
je 0x100d633b
lea ecx, [esp + 0x80]
call fcn.1006df60
mov edx, 0x50
cmp word [eax + 4], dx
jne 0x100d633b
mov ecx, 0x14
mov esi, eax
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
cmp word [esp + 0x24], dx
jne 0x100d633b
cmp word [esp + 0x30], 0x38
jne 0x100d633b
mov esi, dword [esp + 0x20]
mov dword [esp + 0x20], 0
push esi
push edx
lea edx, [esp + 0x28]
push edx
call fcn.100e3690
add esp, 0xc
mov dword [esp + 0x20], esi
test eax, eax
je 0x100d633b
mov edi, dword [esp + 0x88]
mov ecx, 0x14
lea esi, [esp + 0x20]
mov dword [esp + 0x14], 1
rep movsd dword es:[edi], dword [esi]
jmp 0x100d633b
mov ecx, dword [esp + 0x60]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x6c
ret
Function at 0x100d66e0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x101ebbf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebp, ebp
mov dword [0x1027ced0], ebp
call edi
mov esi, dword [esp + 0x2c]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x1027ced8], eax
lea eax, [esp + 0x14]
push 1
push eax
push ebp
push esi
mov dword [esp + 0x24], ebp
call ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], ebp
call fcn.1006d670
push ebp
push ebp
push 0xc8
push esi
mov dword [esp + 0x34], ebp
call ebx
mov edx, dword [esp + 0x34]
xor ecx, ecx
push 0xffffffffffffffff
mov cx, word [edx + 0x12]
push ecx
lea ecx, [esp + 0x18]
call fcn.1006d850
lea ecx, [esp + 0x10]
call fcn.1006d840
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.1006df80
cmp esi, 0xffffffff
mov ebp, eax
je 0x100d67e6
test ebp, ebp
je 0x100d67e6
test ebx, ebx
je 0x100d67e6
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x100d689f
mov ecx, ebx
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
mov dword [esp + 0x38], 0
rep stosb byte es:[edi], al
lea eax, [esp + 0x38]
push eax
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100d6806
mov dword [0x1027ced0], 0xd
mov dword [0x1027ced4], 0x224e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1027ced8], eax
jmp 0x100d689f
mov dword [0x1027ced0], 1
mov dword [0x1027ced4], 0x2241
call edi
mov dword [0x1027ced8], eax
jmp 0x100d689f
lea ecx, [esp + 0x10]
call fcn.1006d840
push eax
lea ecx, [esp + 0x14]
call fcn.1006df80
mov ecx, dword [esp + 0x34]
push eax
push ecx
call fcn.100d7920
add esp, 0xc
test eax, eax
je 0x100d689f
lea ecx, [esp + 0x10]
call fcn.1006df60
mov edi, eax
cmp word [edi], 1
jne 0x100d689f
xor edx, edx
xor ecx, ecx
mov dx, word [edi + 0xe]
mov cx, word [edi + 0xc]
imul edx, ecx
mov eax, dword [edi + 4]
add edx, 0x10
cmp eax, edx
jne 0x100d689f
mov ebx, dword [edi + 8]
mov dword [edi + 8], 0
push ebx
push eax
push edi
call fcn.100e3690
add esp, 0xc
mov dword [edi + 8], ebx
test eax, eax
je 0x100d689f
mov edi, dword [esp + 0x38]
lea edx, [esp + 0x10]
push edx
mov ecx, edi
call fcn.1006d7d0
mov ecx, edi
call fcn.1006df60
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x2c], 1
mov dword [ecx], eax
add eax, 0x10
mov dword [edx], eax
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push 0
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
jne 0x100d68ff
mov dword [0x1027ced0], 0xf
mov dword [0x1027ced4], 0x2ee2
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp]
mov dword [0x1027ced8], eax
mov dword [esp + 0x14], 0xffffffff
call fcn.1006d7a0
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
lea ecx, [esp]
mov dword [esp + 0x14], 0xffffffff
call fcn.1006d7a0
mov ecx, dword [esp + 0xc]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x100dbf70
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [0x1027d4e8], ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1027d4f0], eax
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
mov esi, dword [esp + 0x3c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp esi, ebp
stosb byte es:[edi], al
je 0x100dbfb4
mov ecx, 8
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
jmp 0x100dc01d
mov esi, dword [esp + 0x38]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
push 1
push eax
push ebp
push esi
mov dword [esp + 0x20], ebp
call edi
push ebp
push ebp
push ebp
push esi
mov ebx, eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x100dc00e
lea ecx, [esp + 0x3c]
push 0
push ecx
lea edx, [esp + 0x1c]
push 0x20
push edx
push esi
mov dword [esp + 0x50], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100dc00e
cmp dword [esp + 0x3c], 0x20
jne 0x100dc00e
mov ebp, 1
lea eax, [esp + 0x10]
push 0
push eax
push ebx
push esi
call edi
test ebp, ebp
je 0x100dc051
lea ecx, [esp + 0x14]
push ecx
call fcn.100dbb20
add esp, 4
test eax, eax
je 0x100dc070
mov ecx, dword [esp + 0x40]
mov eax, 1
test ecx, ecx
je 0x100dc072
mov bl, byte [esp + 0x1b]
xor edx, edx
cmp bl, 0xe
pop edi
setne dl
pop esi
pop ebp
mov dword [ecx], edx
pop ebx
add esp, 0x24
ret
mov dword [0x1027d4e8], 0xf
mov dword [0x1027d4ec], 0x2f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1027d4f0], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x100e356d
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x101ec05b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x101fe014]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea edi, [esi + 4]
mov dword [edi], eax
mov ebp, dword [esp + 0x24]
xor ebx, ebx
push ebp
mov ecx, edi
mov dword [esp + 0x20], ebx
mov dword [esi], 0x101feedc
call fcn.1005b9d0
mov edi, dword [edi]
mov dword [esi + 8], ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
test bl, 1
je 0x100e35b7
and ebx, 0xfffffffe
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x100e35b7
mov dword [esi + 8], ebx
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x100e44b0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x100e44bb
xor eax, eax
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
ret

Function at 0x100e4680
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov eax, ebp
mov esi, dword [esp + 0x1c]
cdq
and edx, 7
push edi
add eax, edx
mov edi, ecx
mov ebx, eax
sar ebx, 3
test esi, esi
je 0x100e47a2
test ebx, ebx
jl 0x100e47a2
jle 0x100e4774
mov eax, dword [esp + 0x1c]
push 0
push eax
call fcn.100e4b80
test ebx, ebx
jle 0x100e4774
add esi, 6
mov ebp, ebx
xor eax, eax
xor ecx, ecx
mov al, byte [esi - 6]
mov cl, byte [esi - 5]
shl eax, 0x18
shl ecx, 0x10
xor edx, edx
or eax, ecx
mov dh, byte [esi - 4]
xor ecx, ecx
mov cl, byte [esi - 3]
or eax, edx
or eax, ecx
xor edx, edx
mov dl, byte [esi - 1]
mov dword [esp + 0x10], eax
xor eax, eax
xor ecx, ecx
mov al, byte [esi - 2]
mov ch, byte [esi]
shl eax, 0x18
shl edx, 0x10
or eax, edx
xor edx, edx
mov dl, byte [esi + 1]
or eax, ecx
or eax, edx
mov ecx, edi
mov dword [esp + 0x14], eax
lea eax, [edi + 4]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.100e4f20
mov eax, dword [esp + 0x10]
add esi, 8
mov ecx, eax
mov edx, eax
shr ecx, 0x18
mov byte [esi - 0xe], cl
mov ecx, eax
shr edx, 0x10
shr ecx, 8
mov byte [esi - 0xd], dl
mov byte [esi - 0xc], cl
mov byte [esi - 0xb], al
mov eax, dword [esp + 0x14]
mov edx, eax
mov ecx, eax
shr edx, 0x18
mov byte [esi - 0xa], dl
mov edx, eax
shr ecx, 0x10
shr edx, 8
mov byte [esi - 9], cl
mov byte [esi - 8], dl
mov byte [esi - 7], al
dec ebp
jne 0x100e46cd
mov esi, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
shl ebx, 3
sub ebp, ebx
test ebp, ebp
lea eax, [ebx + esi]
jle 0x100e4793
mov ecx, dword [esp + 0x1c]
sub ecx, eax
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec ebp
jne 0x100e4786
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0xc
Function at 0x100e47b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov eax, ebp
mov esi, dword [esp + 0x1c]
cdq
and edx, 7
push edi
add eax, edx
mov edi, ecx
mov ebx, eax
sar ebx, 3
test esi, esi
je 0x100e48d2
test ebx, ebx
jl 0x100e48d2
jle 0x100e48a4
mov eax, dword [esp + 0x1c]
push 1
push eax
call fcn.100e4b80
test ebx, ebx
jle 0x100e48a4
add esi, 6
mov ebp, ebx
xor eax, eax
xor ecx, ecx
mov al, byte [esi - 6]
mov cl, byte [esi - 5]
shl eax, 0x18
shl ecx, 0x10
xor edx, edx
or eax, ecx
mov dh, byte [esi - 4]
xor ecx, ecx
mov cl, byte [esi - 3]
or eax, edx
or eax, ecx
xor edx, edx
mov dl, byte [esi - 1]
mov dword [esp + 0x10], eax
xor eax, eax
xor ecx, ecx
mov al, byte [esi - 2]
mov ch, byte [esi]
shl eax, 0x18
shl edx, 0x10
or eax, edx
xor edx, edx
mov dl, byte [esi + 1]
or eax, ecx
or eax, edx
mov ecx, edi
mov dword [esp + 0x14], eax
lea eax, [edi + 4]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.100e4f20
mov eax, dword [esp + 0x10]
add esi, 8
mov ecx, eax
mov edx, eax
shr ecx, 0x18
mov byte [esi - 0xe], cl
mov ecx, eax
shr edx, 0x10
shr ecx, 8
mov byte [esi - 0xd], dl
mov byte [esi - 0xc], cl
mov byte [esi - 0xb], al
mov eax, dword [esp + 0x14]
mov edx, eax
mov ecx, eax
shr edx, 0x18
mov byte [esi - 0xa], dl
mov edx, eax
shr ecx, 0x10
shr edx, 8
mov byte [esi - 9], cl
mov byte [esi - 8], dl
mov byte [esi - 7], al
dec ebp
jne 0x100e47fd
mov esi, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
shl ebx, 3
sub ebp, ebx
test ebp, ebp
lea eax, [ebx + esi]
jle 0x100e48c3
mov ecx, dword [esp + 0x1c]
sub ecx, eax
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec ebp
jne 0x100e48b6
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0xc