joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10097310
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101bd7fd
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x1021e964]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, edi
mov dword [edi + 0x10], 0
cmp dword [edi + 0x14], 0x10
jb 0x1009734f
mov eax, dword [edi]
mov byte [eax], 0
lea eax, [ebp - 0x1c]
push eax
push dword [0x1021807c]
push 0
push 0x10011fc0
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1009744a
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x20], esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0x10011fac
push esi
call ebx
mov ecx, dword [ebp - 0x18]
cmp ecx, 1
je 0x100973aa
cmp ecx, 2
jne 0x10097435
test eax, eax
jne 0x10097435
push eax
push dword [ebp - 0x14]
mov ecx, edi
call fcn.1004c460
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x100973c7
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x10011fac
push dword [ebp - 0x1c]
call ebx
test eax, eax
jne 0x10097435
mov ecx, dword [edi + 0x14]
mov eax, edi
cmp ecx, 0x10
jb 0x100973ec
mov eax, dword [edi]
mov edx, dword [edi + 0x10]
lea ebx, [edx - 1]
add ebx, eax
mov eax, edi
cmp ecx, 0x10
jb 0x100973fd
mov eax, dword [edi]
sub ebx, eax
mov ecx, 1
mov eax, edx
sub eax, ebx
cmp eax, ecx
cmovb ecx, eax
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 0x20], ecx
mov eax, edi
jb 0x1009741a
mov eax, dword [edi]
lea ecx, [eax + ebx]
mov eax, dword [ebp - 0x20]
sub edx, eax
add eax, ecx
mov dword [edi + 0x10], edx
sub edx, ebx
inc edx
push edx
push eax
push ecx
call fcn.101a3c10
add esp, 0xc
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 0x10], 0
je 0x1009747a
push 0x13
push 0x10011e0c
mov ecx, edi
call fcn.1004a640
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1018d760
mov esp, ebp
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
push eax
lea ecx, [ebp - 0x24]
call fcn.10098610
push 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x50]
call fcn.100986f0
push 0x101ff7ac
lea eax, [ebp - 0x50]
push eax
call fcn.101a37e7
int3
Function at 0x1009a5f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x2c]
xor edx, edx
xor eax, eax
mov dword [esp + 4], 0x310030
mov dword [esp + 8], 0x330032
mov dword [esp + 0xc], 0x350034
mov dword [esp + 0x10], 0x370036
mov dword [esp + 0x14], 0x390038
mov dword [esp + 0x18], 0x420041
mov dword [esp + 0x1c], 0x440043
mov dword [esp + 0x20], 0x460045
test ebx, ebx
je 0x1009a67c
push esi
mov esi, dword [esp + 0x34]
push edi
mov edi, dword [esp + 0x30]
nop word [eax + eax]
movzx ecx, byte [eax + edi]
lea edx, [edx + 2]
shr ecx, 4
movzx ecx, word [esp + ecx*2 + 0xc]
mov word [esi + edx*2 - 4], cx
movsx ecx, byte [eax + edi]
inc eax
and ecx, 0xf
movzx ecx, word [esp + ecx*2 + 0xc]
mov word [esi + edx*2 - 2], cx
cmp eax, ebx
jne 0x1009a650
pop edi
pop esi
pop ebx
add esp, 0x20
ret

Function at 0x1009ba70
Capabilities:
Clear file content
Get file size
Write file on windows

Disassembly:
sub esp, 0x3c
mov eax, dword [0x1021e964]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
mov ebx, dword [ecx]
lea eax, [esp + 0x30]
push ebp
push esi
mov esi, dword [esp + 0x4c]
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1009bb31
mov ecx, dword [esp + 0x40]
xor edx, edx
cmp edx, ecx
jl 0x1009bb13
mov eax, dword [esp + 0x3c]
jg 0x1009bab0
cmp esi, eax
jbe 0x1009bb13
push 0
push 0
push ecx
push eax
push ebx
call fcn.1009b870
add esp, 0x14
test al, al
je 0x1009bb31
sub esi, dword [esp + 0x3c]
je 0x1009bafe
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, 0x200
cmp esi, 0x200
mov edi, esi
push 0
cmova edi, eax
lea eax, [esp + 0x48]
push eax
push edi
push 0x1022f9f8
push ebx
call ebp
cmp dword [esp + 0x44], edi
jne 0x1009bb31
mov eax, 0x200
sub esi, edi
jne 0x1009bad4
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1018d760
add esp, 0x3c
ret 8
push 0
push 0
push edx
push esi
push ebx
call fcn.1009b870
add esp, 0x14
test al, al
je 0x1009bb31
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1009bafe
call sub.KERNEL32.dll_GetLastError
push eax
lea ecx, [esp + 0x40]
call fcn.10098610
push 0
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x18]
call fcn.100986f0
push 0x101ff7ac
lea eax, [esp + 0x14]
push eax
call fcn.101a37e7
int3
Function at 0x1009bb90
Capabilities:
Check for time delay via queryperformancecounter
Get system information on windows

Disassembly:
sub esp, 0x3c
mov eax, dword [0x1021e964]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x1009bbd2
mov eax, dword [0x1022fbf8]
test eax, eax
jne 0x1009bbc0
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x2c]
mov ecx, 1
cmp ecx, eax
sbb eax, eax
and eax, 0xffffffe0
add eax, 0x20
mov dword [ebx + 0xc], eax
cmp eax, 8
jb 0x1009bce9
cmp eax, 0x20
jae 0x1009bbf5
pause
inc dword [ebx + 0xc]
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.1018d760
add esp, 0x3c
ret
jne 0x1009bcce
push 7
call fcn.1009aa90
add esp, 4
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
push ecx
call eax
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x1009bc38
mov ecx, dword [esp + 0xc]
mov eax, 0xd1b71759
lea ecx, [ecx - 1]
mul ecx
shr edx, 0xd
jmp 0x1009bc79
mov eax, dword [esp + 0xc]
mov ecx, 0x5f5e100
push esi
push edi
push dword [esp + 0x10]
mul ecx
push dword [esp + 0x10]
mov edi, eax
mov esi, edx
push 0x38d7e
sub edi, 1
push 0xa4c67fff
sbb esi, 0
call fcn.1018d9c0
add eax, 1
adc edx, 0
push edx
push eax
push esi
push edi
call fcn.1018d9c0
pop edi
mov edx, eax
pop esi
lea eax, [edx + 1]
mov dword [ebx + 8], eax
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x1009bcae
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
mov dword [ebx], eax
inc dword [ebx + 0xc]
mov dword [ebx + 4], ecx
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.1018d760
add esp, 0x3c
ret
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
inc dword [ebx + 0xc]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.1018d760
add esp, 0x3c
ret
cmp dword [ebx + 8], 0
jne 0x1009bcfc
and al, 1
je 0x1009bd34
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
test eax, eax
jne 0x1009bce9
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebx + 0xc]
mov ecx, dword [esp + 0x3c]
pop ebx
xor ecx, esp
call fcn.1018d760
add esp, 0x3c
ret
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x1009bd15
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
jmp 0x1009bd1d
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
sub eax, dword [ebx]
sbb ecx, dword [ebx + 4]
test ecx, ecx
jb 0x1009bcd8
ja 0x1009bd2d
cmp eax, dword [ebx + 8]
jb 0x1009bcd8
mov dword [ebx + 8], 0
push 1
jmp 0x1009bce3
Function at 0x1009e0d0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101bdfed
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x1021e964]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
push dword [esi]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], eax
call fcn.100b3060
mov ebx, dword [esi]
add esp, 4
add ebx, 0xa
add ebx, eax
mov eax, 7
mov word [edi], ax
mov eax, dword [ebp - 0x24]
mov dword [edi + 2], ebx
add eax, 0xfffffffa
mov ecx, dword [esi + 0x30]
add edi, 6
push eax
push edi
call fcn.1009ebe0
mov ecx, dword [esi + 0x2c]
add edi, eax
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], edi
test ecx, ecx
je 0x1009e1d8
mov eax, dword [ecx]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x20]
push edx
call dword [eax + 8]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
mov eax, dword [ebp - 0x24]
sub eax, edi
add eax, dword [ebp - 0x28]
push eax
push dword [esi]
push edi
call fcn.100b2f20
mov ecx, dword [esi + 0x30]
lea eax, [ebp - 0x3c]
add esp, 0x10
push eax
call fcn.1009e990
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push eax
mov dword [ebp - 4], 0
call fcn.100d6300
push esi
push edi
lea ecx, [ebp - 0x18]
call fcn.100d64c0
mov edx, dword [ebp - 0x38]
test edx, edx
je 0x1009e1b8
mov ecx, dword [ebp - 0x30]
sub ecx, edx
push ecx
push edx
lea ecx, [ebp - 0x3c]
call fcn.100609e0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1018d760
mov esp, ebp
pop ebp
ret 8
call fcn.1018e80d
int3
Function at 0x1009e1e0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101bdfed
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x1021e964]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
push dword [esi]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], eax
call fcn.100b3060
mov ebx, dword [esi]
add esp, 4
add ebx, 0x12
add ebx, eax
mov eax, 3
mov word [edi], ax
mov eax, dword [ebp - 0x24]
mov dword [edi + 2], ebx
add eax, 0xfffffffa
mov ecx, dword [esi + 0x30]
add edi, 6
push eax
push edi
call fcn.1009ec00
mov ecx, dword [esi + 0x2c]
add edi, eax
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], edi
test ecx, ecx
je 0x1009e2e8
mov eax, dword [ecx]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x20]
push edx
call dword [eax + 8]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
mov eax, dword [ebp - 0x24]
sub eax, edi
add eax, dword [ebp - 0x28]
push eax
push dword [esi]
push edi
call fcn.100b2f20
mov ecx, dword [esi + 0x30]
lea eax, [ebp - 0x3c]
add esp, 0x10
push eax
call fcn.1009e990
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push eax
mov dword [ebp - 4], 0
call fcn.100d6300
push esi
push edi
lea ecx, [ebp - 0x18]
call fcn.100d64c0
mov edx, dword [ebp - 0x38]
test edx, edx
je 0x1009e2c8
mov ecx, dword [ebp - 0x30]
sub ecx, edx
push ecx
push edx
lea ecx, [ebp - 0x3c]
call fcn.100609e0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1018d760
mov esp, ebp
pop ebp
ret 8
call fcn.1018e80d
int3
Function at 0x1009f030
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
sub esp, 0x154
mov eax, dword [0x1021e964]
xor eax, esp
mov dword [esp + 0x150], eax
movups xmm0, xmmword [ecx + 0x1c]
mov eax, dword [ecx]
mov edx, dword [ecx + 0x10]
movups xmmword [esp + 0x10], xmm0
push ebx
movups xmm0, xmmword [ecx + 0x2c]
mov ebx, dword [ecx + 4]
push ebp
movups xmmword [esp + 0x28], xmm0
push esi
movups xmm0, xmmword [ecx + 0x3c]
push edi
mov edi, dword [ecx + 0xc]
mov ebp, eax
movups xmmword [esp + 0x40], xmm0
mov dword [esp + 0x18], eax
mov esi, 0x40
movups xmm0, xmmword [ecx + 0x4c]
mov eax, dword [ecx + 8]
mov dword [esp + 0x10], edx
lea edx, [esp + 0x28]
mov dword [esp + 0x1c], ecx
movups xmmword [esp + 0x50], xmm0
mov ecx, dword [edx + 0x2c]
lea edx, [edx + 4]
xor ecx, dword [edx + 0x14]
xor ecx, dword [edx - 0xc]
xor ecx, dword [edx - 4]
rol ecx, 1
mov dword [edx + 0x34], ecx
sub esi, 1
jne 0x1009f091
nop word [eax + eax]
mov ecx, edi
mov edx, ebp
xor ecx, eax
rol edx, 5
and ecx, ebx
xor ecx, edi
add edx, ecx
mov ecx, dword [esp + 0x10]
add edx, dword [esp + esi*4 + 0x20]
add ecx, 0x5a827999
add ecx, edx
inc esi
mov edx, edi
mov edi, eax
mov eax, ebx
mov dword [esp + 0x10], edx
ror eax, 2
mov ebx, ebp
mov ebp, ecx
cmp esi, 0x14
jl 0x1009f0b0
nop word [eax + eax]
rol ecx, 5
add edx, 0x6ed9eba1
mov dword [esp + 0x10], ecx
mov ecx, edi
xor ecx, eax
xor ecx, ebx
add dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x10]
add ecx, dword [esp + esi*4 + 0x20]
inc esi
add ecx, edx
mov edx, edi
mov edi, eax
mov eax, ebx
ror eax, 2
mov ebx, ebp
mov ebp, ecx
cmp esi, 0x28
jl 0x1009f0f0
mov dword [esp + 0x10], edx
cmp esi, 0x3c
jae 0x1009f16d
mov dword [esp + 0x10], edx
rol ecx, 5
mov edx, eax
mov dword [esp + 0x14], ecx
or edx, ebx
mov ecx, eax
and edx, edi
and ecx, ebx
or edx, ecx
mov ecx, dword [esp + 0x14]
add edx, dword [esp + esi*4 + 0x20]
add ecx, 0x8f1bbcdc
add ecx, dword [esp + 0x10]
inc esi
mov dword [esp + 0x10], edi
add ecx, edx
mov edi, eax
mov eax, ebx
ror eax, 2
mov ebx, ebp
mov ebp, ecx
cmp esi, 0x3c
jl 0x1009f131
mov edx, ebp
cmp esi, 0x50
jae 0x1009f1a2
rol edx, 5
mov ecx, edi
xor ecx, eax
add edx, 0xca62c1d6
add edx, dword [esp + 0x10]
xor ecx, ebx
add ecx, dword [esp + esi*4 + 0x20]
inc esi
mov dword [esp + 0x10], edi
add edx, ecx
mov edi, eax
mov eax, ebx
ror eax, 2
mov ebx, ebp
mov ebp, edx
cmp esi, 0x50
jl 0x1009f174
mov ecx, dword [esp + 0x18]
add ecx, edx
mov edx, dword [esp + 0x1c]
add dword [edx + 0xc], edi
add dword [edx + 4], ebx
add dword [edx + 8], eax
mov eax, dword [esp + 0x10]
add dword [edx + 0x10], eax
pop edi
pop esi
mov dword [edx], ecx
mov ecx, dword [esp + 0x158]
pop ebp
pop ebx
xor ecx, esp
call fcn.1018d760
add esp, 0x154
ret

Function at 0x1009f1f0
Capabilities:
Hash data using sha1

Disassembly:
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x5c], 0
ret
Function at 0x1009f420
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [ecx + 4]
xor edx, edx
push ebx
push esi
mov esi, 0x5a4d
mov eax, ecx
cmp si, word [ecx]
push edi
cmovne eax, edx
mov edi, 0xf8
mov edx, 0x20b
mov eax, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
cmovne ecx, eax
mov eax, 0x108
cmp dx, word [ecx + 0x18]
movzx ebx, word [ecx + 6]
cmove edi, eax
or eax, 0xffffffff
add edi, ecx
xor esi, esi
test ebx, ebx
je 0x1009f489
nop word [eax + eax]
mov ecx, dword [edi + 0xc]
mov edx, eax
cmp ecx, eax
mov eax, ecx
cmovb esi, edi
add edi, 0x28
cmp ecx, edx
cmovae eax, edx
sub ebx, 1
jne 0x1009f470
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x1009f550
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [ecx + 4]
xor edx, edx
push esi
mov esi, 0x5a4d
mov eax, ecx
cmp si, word [ecx]
pop esi
cmovne eax, edx
mov eax, dword [eax + 0x3c]
add eax, ecx
xor ecx, ecx
cmp dword [eax], 0x4550
cmovne eax, ecx
mov ecx, dword [esp + 4]
cmp ecx, dword [eax + 0x74]
jbe 0x1009f58d
mov ecx, dword [esp + 8]
xor eax, eax
mov edx, dword [eax + 4]
mov dword [ecx], edx
mov eax, dword [eax]
ret 8
lea eax, [eax + ecx*8]
mov ecx, dword [esp + 8]
add eax, 0x78
mov edx, dword [eax + 4]
mov dword [ecx], edx
mov eax, dword [eax]
ret 8

Function at 0x100a0900
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101be34b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1021e964]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0xf
mov byte [esi + 8], 0
mov dword [esi + 4], 0x10010c38
mov dword [ebp - 4], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ebx, dword [ebp + 0xc]
mov edi, eax
mov byte [ebp - 4], 1
cmp byte [edi + 0xc], 0
mov ecx, dword [ebx + 0xc]
jne 0x100a0981
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 4]
mov ecx, eax
mov edx, dword [edi + 4]
add edx, ecx
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100a0990
sub ecx, edi
push ecx
push edx
lea ecx, [esi + 8]
call fcn.1004a870
mov eax, dword [ebx + 4]
mov dword [esi + 0x20], eax
mov eax, dword [ebx + 8]
mov dword [esi + 0x24], eax
mov eax, dword [ebx]
mov dword [esi + 0x28], eax
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x2c], eax
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 8

Function at 0x100a3eb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
add ecx, 4
cmp dword [ecx + 0x14], 0x10
jb 0x100a3ebb
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x100a3ece
test al, 0x10
je 0x100a3ece
mov al, 1
ret
xor al, al
ret
Function at 0x100a3ee0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
add ecx, 4
cmp dword [ecx + 0x14], 0x10
jb 0x100a3eeb
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x100a3efe
test al, 0x10
jne 0x100a3efe
mov al, 1
ret
xor al, al
ret
Function at 0x100a4980
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x214]
sub esp, 0x214
push 0xffffffffffffffff
push 0x101beb05
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x1021e964]
xor eax, ebp
mov dword [ebp + 0x210], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 0
jne 0x100a4a7b
push 0x105
lea eax, [ebp + 4]
push 0
push eax
call fcn.101a4190
add esp, 0xc
lea eax, [ebp + 4]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [ebp + 4]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x24], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100a4a00
sub ecx, edx
lea eax, [ebp + 4]
push ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.1004a870
mov dword [ebp - 0x28], 0x10010c40
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.100a1cb0
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x28], 0x10010c38
cmp edx, 0x10
jb 0x100a4b4c
mov ecx, dword [ebp - 0x24]
inc edx
mov eax, ecx
mov dword [ebp - 4], 1
cmp edx, 0x1000
jb 0x100a4b42
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100a4b6f
jmp 0x100a4b42
push 0x104
lea eax, [ebp + 0x10c]
push 0
push eax
call fcn.101a4190
lea eax, [esi + 4]
mov dword [ebp], 0
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x100a4aa3
mov eax, dword [eax]
lea ecx, [ebp]
push ecx
lea ecx, [ebp + 0x10c]
push ecx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea ecx, [ebp + 0x10c]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x40], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100a4ad5
sub ecx, edx
lea eax, [ebp + 0x10c]
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.1004a870
mov dword [ebp - 0x44], 0x10010c40
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 2
push eax
mov ecx, esi
call fcn.100a1cb0
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x44], 0x10010c38
cmp edx, 0x10
jb 0x100a4b4c
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
mov dword [ebp - 4], 3
cmp edx, 0x1000
jb 0x100a4b42
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100a4b74
push edx
push ecx
call fcn.1018d246
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x210]
xor ecx, ebp
call fcn.1018d760
lea esp, [ebp + 0x214]
pop ebp
ret
call fcn.100be3b4
call fcn.100be3b4
int3
Function at 0x100a4cf0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x10c]
sub esp, 0x10c
push 0xffffffffffffffff
push 0x101beb7d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x1021e964]
xor eax, ebp
mov dword [ebp + 0x108], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x105
lea eax, [ebp]
push 0
push eax
call fcn.101a4190
add esp, 0xc
lea eax, [ebp]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [ebp]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x24], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100a4d63
sub ecx, edx
lea eax, [ebp]
push ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.1004a870
mov dword [ebp - 0x28], 0x10010c40
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.100a1cb0
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x28], 0x10010c38
cmp edx, 0x10
jb 0x100a4dd7
mov ecx, dword [ebp - 0x24]
inc edx
mov eax, ecx
mov dword [ebp - 4], 1
cmp edx, 0x1000
jb 0x100a4dcd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100a4dfa
push edx
push ecx
call fcn.1018d246
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x108]
xor ecx, ebp
call fcn.1018d760
lea esp, [ebp + 0x10c]
pop ebp
ret
call fcn.100be3b4
int3