joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1011c0ca
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x10321598]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1011c110
cmp word [ebx], dx
jne 0x1011c110
or byte [eax + edi + 0x28], 4
jmp 0x1011c115
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1011c278
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1011c258
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1011c156
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1011c18c
cmp eax, edx
jae 0x1011c19a
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1011c131
jmp 0x1011c278
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1011c253
cmp dword [ebp - 0x18], 0
je 0x1011c253
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10321598]
test byte [eax + edi + 0x28], 0x48
je 0x1011c229
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1011c1ed
mov word [esi], cx
jmp 0x1011c224
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10321598]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x10321598]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10321598]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1011c278
pop eax
cmp word [ebp - 4], ax
jne 0x1011c239
cmp esi, ebx
jne 0x1011c239
mov word [esi], ax
jmp 0x1011c275
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1011bf1f
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1011c278
push 0xd
pop eax
jmp 0x1011c234
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10321598]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1011c272
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1011c278
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1011dad3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1010d5c0
mov eax, dword [0x102e5cc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.10115c06
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1011db15
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1011dc71
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1010d510
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x10321598]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1011bf01
mov ecx, dword [esi*4 + 0x10321598]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x1011dc6a
cmp eax, dword [ecx + edi + 0x24]
jne 0x1011dc6a
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1011dc6a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1011bf01
add esp, 0x14
test edx, edx
jl 0x1011dc6a
jg 0x1011dbe0
test eax, eax
jb 0x1011dc6a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1011dc6a
jl 0x1011dbfa
cmp dword [ebp - 0x1008], eax
ja 0x1011dc6a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1011dc18
test ebx, ebx
je 0x1011dc51
cmp ecx, edi
jae 0x1011dc51
mov al, byte [ecx]
cmp al, 0xd
jne 0x1011dc32
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1011dc3e
cmp byte [ecx + 1], 0xa
jne 0x1011dc3e
inc ecx
jmp 0x1011dc3e
movzx eax, al
movsx eax, byte [eax + 0x102e5e68]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1011dc18
cmp edx, ebx
jne 0x1011dc18
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1011dc6f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1010d06f
leave
ret

Function at 0x10123c59
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10123c98
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10123c98
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10123c98
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10123c98
cmp dword [ecx + 0x74], 0xe
jbe 0x10123c98
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1012bd52
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10291a84
push 0x10291a7c
push str.FlsAlloc
push 0x1f
call fcn.1012bbbd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1012bd86
push dword [ebp + 8]
mov ecx, esi
call dword [0x101f3264]
call esi
jmp 0x1012bd8c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1012bdd0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10291a94
push 0x10291a8c
push str.FlsGetValue
push 0x21
call fcn.1012bbbd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1012be07
push dword [ebp + 8]
mov ecx, esi
call dword [0x101f3264]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1012be0f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10291a9c
push 0x10291a94
push str.FlsSetValue
push 0x22
call fcn.1012bbbd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1012be49
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x101f3264]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1012eb6c
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1012eae8
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1012ecdb
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1012ecdb
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1012ec90
jg 0x1012ebc8
test eax, eax
je 0x1012ec86
push 1
push 0x1000
call fcn.1012856f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1012ebeb
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1012ec7d
push 0x8000
push ebx
call fcn.1012ea19
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1012ec14
jg 0x1012ec0f
cmp ecx, 0x1000
jb 0x1012ec14
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1012ddcb
add esp, 0x10
cmp eax, 0xffffffff
je 0x1012ec59
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1012ec0f
jl 0x1012ec40
test ecx, ecx
jne 0x1012ec01
push dword [ebp - 0xc]
push ebx
call fcn.1012ea19
push esi
call fcn.101285cc
add esp, 0xc
xor ebx, ebx
jmp 0x1012ece9
cmp byte [edi + 0x24], 0
je 0x1012ec70
cmp dword [edi + 0x20], 5
jne 0x1012ec70
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1012ec7b
mov ebx, dword [edi + 0x18]
jmp 0x1012ec7d
xor ebx, ebx
push esi
call fcn.101285cc
pop ecx
jmp 0x1012ece9
test ecx, ecx
jg 0x1012ec52
jl 0x1012ec90
test eax, eax
jae 0x1012ec52
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1011bf1f
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1012ecb0
cmp byte [edi + 0x1c], 0
je 0x1012ec52
jmp 0x1012ece1
push ebx
call fcn.1011ba76
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1012ec52
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1012ece9
cmp byte [edi + 0x1c], 0
je 0x1012ece6
mov ebx, dword [edi + 0x18]
jmp 0x1012ece9
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1011bf1f
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1013219d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1013223a
push ebx
push esi
call fcn.10132166
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.101308d0
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x101321e7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10132239
push edi
push eax
call fcn.10128606
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10132207
call fcn.101285cc
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10132238
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.101308d0
add esp, 0x20
test eax, eax
jne 0x10132226
push edi
call fcn.101285cc
jmp 0x1013222e
push ebx
call fcn.101285cc
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1013223d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1013224e
pop esi
ret
push ebx
push edi
push esi
call fcn.10132166
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10128606
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10132276
push ebx
push esi
push edi
call fcn.1010efe0
add esp, 0xc
push 0
call fcn.101285cc
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x101329d0
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.101324eb

Function at 0x10136672
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.101299e7
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x101366e1
cmp esi, dword [ebp - 4]
je 0x101366dc
cmp dword [ebp + 0xc], 0
je 0x101366dc
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x101366b9
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.101361c4
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x101366e3
xor eax, eax
inc eax
jmp 0x101366e3
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10136748
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x102e5cc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.101299e7
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.101299e7
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x101367bf
cmp word [ecx], dx
je 0x101367bf
mov eax, dword [0x1029a9bc]
push edi
dec eax
push eax
push 0x1029a8a8
call fcn.101366e7
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10136832
cmp word [eax], dx
je 0x10136832
mov eax, dword [edi]
test eax, eax
je 0x101367e3
cmp word [eax], dx
je 0x101367e3
lea eax, [ebp - 0x10]
push eax
call fcn.101360ca
jmp 0x101367ec
lea eax, [ebp - 0x10]
push eax
call fcn.10136165
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1013685c
mov eax, dword [0x1029a8a4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1029a598
call fcn.101366e7
add esp, 0xc
test al, al
je 0x1013685c
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10136827
cmp word [eax], di
je 0x10136827
lea eax, [ebp - 0x10]
push eax
call fcn.101360ca
pop ecx
jmp 0x1013685e
lea eax, [ebp - 0x10]
push eax
call fcn.10136165
jmp 0x10136824
mov eax, dword [edi]
test eax, eax
je 0x10136849
cmp word [eax], dx
je 0x10136849
lea eax, [ebp - 0x10]
push eax
call fcn.1013607f
pop ecx
jmp 0x1013685c
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x10136927
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1013656c
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10136927
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10136927
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10136927
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x101368b4
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1012bfeb
test ebx, ebx
je 0x10136922
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1012bfeb
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10136927
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10136927
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1013aa02
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10136929
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1010d06f
leave
ret
Function at 0x1013d130
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101f223d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x102e5cc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov edx, edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
cmp dword [edi + 0x14], 7
mov dword [ebp - 0x30], eax
jbe 0x1013d173
mov edx, dword [edi]
mov ecx, edx
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1013d190
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10007b5b
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
push 0
cmova eax, dword [ebp - 0x28]
push 0x2200000
push 3
push 0
push 7
push 0x88
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x38], esi
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 0
cmp ecx, 7
jbe 0x1013d213
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1013d209
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1013d2cc
push ecx
push edx
call fcn.1010d0f5
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp esi, 0xffffffff
jne 0x1013d297
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
cmp eax, 5
jne 0x1013d284
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x1013d244
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1013d279
test esi, 0x400
jne 0x1013d281
push esi
push edi
call fcn.1013c8a0
mov ecx, dword [ebp - 0x2c]
and esi, 0x10
or esi, 0x20
add esp, 8
shr esi, 4
mov dword [ecx + 4], eax
mov eax, ecx
mov dword [ecx], esi
jmp 0x1013d2b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1013d284
mov eax, dword [ebp - 0x34]
push dword [ebp - 0x30]
push edi
mov edi, dword [ebp - 0x2c]
push eax
push edi
call fcn.1013cbd0
add esp, 0x10
jmp 0x1013d2af
push dword [ebp - 0x30]
push edi
mov edi, dword [ebp - 0x2c]
push esi
push edi
call fcn.1013ccf0
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1010d06f
mov esp, ebp
pop ebp
ret
call fcn.101159de
int3
Function at 0x1014bd00
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
call fcn.1014cf50
mov edi, dword [esi + 0x14]
add esp, 4
test edi, edi
je 0x1014bd81
mov edx, dword [esi]
mov eax, dword [esi + 0x10]
mov ecx, dword [edx + eax*8]
mov eax, dword [edx + eax*8 + 4]
mov edx, dword [esi + 0x20]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
cmp edx, edi
jae 0x1014bd81
push ebx
mov ebx, dword [esi + 0x18]
nop dword [eax + eax]
movq xmm1, qword [esp + 0xc]
mov eax, 0x38
sub eax, edx
add edx, 8
movd xmm0, eax
psrlq xmm1, xmm0
movd eax, xmm1
movzx ecx, al
mov eax, ebx
shr eax, 8
xor ecx, eax
movzx ebx, bl
shl ebx, 8
movzx ecx, word [ecx*2 + 0x1029f6d8]
xor ebx, ecx
mov dword [esi + 0x20], edx
mov dword [esi + 0x18], ebx
cmp edx, edi
jb 0x1014bd40
pop ebx
mov ax, word [esi + 0x18]
pop edi
pop esi
add esp, 8
ret

Function at 0x1014d030
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
xor eax, eax
push edi
mov edi, dword [esp + 0x10]
cmp edi, 8
jb 0x1014d0d0
push ebx
mov ebx, edi
shr ebx, 3
nop dword [eax + eax]
movzx edx, byte [esi]
sub edi, 8
movzx ecx, byte [esi + 1]
movzx eax, ax
shl edx, 8
or edx, ecx
xor edx, eax
movzx eax, byte [esi + 6]
mov ecx, edx
shr ecx, 8
mov cx, word [ecx*2 + 0x102a04d8]
xor cx, word [eax*2 + 0x1029f8d8]
movzx eax, byte [esi + 5]
xor cx, word [eax*2 + 0x1029fad8]
movzx eax, byte [esi + 4]
xor cx, word [eax*2 + 0x1029fcd8]
movzx eax, byte [esi + 3]
xor cx, word [eax*2 + 0x1029fed8]
movzx eax, byte [esi + 7]
xor cx, word [eax*2 + 0x1029f6d8]
movzx eax, byte [esi + 2]
add esi, 8
xor cx, word [eax*2 + 0x102a00d8]
movzx eax, dl
xor cx, word [eax*2 + 0x102a02d8]
movzx eax, cx
sub ebx, 1
jne 0x1014d050
pop ebx
test edi, edi
je 0x1014d0f5
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, ax
shr edx, 8
xor edx, ecx
shl eax, 8
xor ax, word [edx*2 + 0x1029f6d8]
movzx eax, ax
sub edi, 1
jne 0x1014d0d4
pop edi
pop esi
ret

Function at 0x1014d100
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x1014d1a4
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0x10]
add ecx, 2
push ebx
push esi
nop word [eax + eax]
mov edx, dword [ecx + 2]
lea ecx, [ecx + 8]
movzx eax, ax
mov ebx, dword [ecx - 0xa]
shr edx, 0x10
xor edx, eax
movzx eax, byte [ecx - 9]
mov dword [esp + 0x18], edx
movzx edx, byte [ecx - 7]
mov si, word [eax*2 + 0x1029f8d8]
movzx eax, byte [ecx - 6]
xor si, word [edx*2 + 0x1029fcd8]
mov edx, dword [esp + 0x18]
xor si, word [eax*2 + 0x1029fed8]
movzx eax, byte [ecx - 5]
xor si, word [eax*2 + 0x102a00d8]
mov eax, edx
shr eax, 8
xor si, word [eax*2 + 0x102a04d8]
movzx eax, bl
xor si, word [eax*2 + 0x1029f6d8]
movzx eax, dl
xor si, word [eax*2 + 0x102a02d8]
movzx eax, byte [ecx - 8]
xor si, word [eax*2 + 0x1029fad8]
movzx eax, si
sub edi, 1
jne 0x1014d120
pop esi
pop ebx
pop edi
ret
mov ax, word [esp + 0x10]
pop edi
ret
Function at 0x1014d1b0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
xor al, al
test edx, edx
je 0x1014d1d7
push esi
mov esi, dword [esp + 8]
nop
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx eax, al
xor ecx, eax
mov al, byte [ecx + 0x102a06d8]
sub edx, 1
jne 0x1014d1c0
pop esi
ret
Function at 0x10154550
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
xor ecx, ecx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
xor esi, esi
mov dword [esp + 0x10], esi
test edi, edi
je 0x101545d6
cmp edi, 8
jb 0x101545d6
cmp dword [0x103211f4], 2
jl 0x101545d6
mov eax, edi
xorps xmm2, xmm2
and eax, 0xfffffff8
xorps xmm1, xmm1
nop dword [eax]
nop dword [eax + eax]
movups xmm0, xmmword [ebx + ecx*4]
pabsd xmm0, xmm0
paddd xmm2, xmm0
movups xmm0, xmmword [ebx + ecx*4 + 0x10]
add ecx, 8
pabsd xmm0, xmm0
paddd xmm1, xmm0
cmp ecx, eax
jb 0x10154590
paddd xmm1, xmm2
movaps xmm0, xmm1
psrldq xmm0, 8
paddd xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
paddd xmm1, xmm0
movd esi, xmm1
mov dword [esp + 0x10], esi
xor ebp, ebp
mov dword [esp + 0x14], ebp
cmp ecx, edi
jae 0x1015462e
mov eax, edi
sub eax, ecx
cmp eax, 2
jb 0x1015461c
lea eax, [edi - 1]
xor edi, edi
mov esi, eax
mov eax, dword [ebx + ecx*4]
cdq
xor eax, edx
sub eax, edx
add ebp, eax
mov eax, dword [ebx + ecx*4 + 4]
cdq
add ecx, 2
xor eax, edx
sub eax, edx
add edi, eax
mov eax, ecx
cmp ecx, esi
jb 0x101545f0
mov esi, dword [esp + 0x10]
mov dword [esp + 0x14], edi
cmp eax, dword [esp + 0x24]
jae 0x10154626
mov eax, dword [ebx + ecx*4]
cdq
xor eax, edx
sub eax, edx
add esi, eax
mov ecx, dword [esp + 0x14]
add ecx, ebp
add esi, ecx
mov eax, 1
test esi, esi
cmove esi, eax
mov eax, esi
cdq
push edx
push eax
call fcn.1015d0d0
add esp, 8
add eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x10154660
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
xor esi, esi
xor ecx, ecx
mov dword [esp + 0x10], esi
test edi, edi
je 0x101546e8
cmp edi, 8
jb 0x101546e8
cmp dword [0x103211f4], 2
mov edx, dword [esp + 0x20]
jl 0x101546ec
mov eax, edi
xorps xmm2, xmm2
and eax, 0xfffffff8
xorps xmm1, xmm1
nop dword [eax]
nop dword [eax + eax]
movups xmm0, xmmword [edx + ecx*4]
pabsd xmm0, xmm0
paddd xmm2, xmm0
movups xmm0, xmmword [edx + ecx*4 + 0x10]
add ecx, 8
pabsd xmm0, xmm0
paddd xmm1, xmm0
cmp ecx, eax
jb 0x101546a0
paddd xmm1, xmm2
movaps xmm0, xmm1
psrldq xmm0, 8
paddd xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
paddd xmm1, xmm0
movd esi, xmm1
mov dword [esp + 0x10], esi
jmp 0x101546ec
mov edx, dword [esp + 0x20]
xor ebx, ebx
xor ebp, ebp
cmp ecx, edi
jae 0x10154743
mov eax, edi
sub eax, ecx
cmp eax, 2
jb 0x10154730
lea eax, [edi - 1]
mov edi, eax
lea esi, [edx + 4]
mov eax, dword [edx + ecx*4]
cdq
xor eax, edx
sub eax, edx
add ebx, eax
mov eax, dword [esi + ecx*4]
cdq
add ecx, 2
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x20]
add ebp, eax
mov eax, ecx
cmp ecx, edi
jb 0x10154705
mov esi, dword [esp + 0x10]
cmp eax, dword [esp + 0x24]
jae 0x1015473e
mov eax, dword [esp + 0x20]
mov eax, dword [eax + ecx*4]
cdq
xor eax, edx
sub eax, edx
add esi, eax
lea ecx, [ebx + ebp]
add esi, ecx
mov eax, 1
test esi, esi
cmove esi, eax
mov eax, esi
cdq
push edx
push eax
call fcn.1015d0d0
mov ebx, dword [esp + 0x24]
add esp, 8
mov edx, ebx
sub edx, dword [esp + 0x28]
add edx, eax
pop edi
pop esi
cmp ebx, edx
lea ecx, [ebx + 1]
lea eax, [edx + 1]
pop ebp
cmovg eax, ecx
pop ebx
add esp, 8
ret