joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002d60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10040e20
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x100c2004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov edi, dword [ebp + 8]
lea ecx, [esi + 4]
mov eax, dword [ebp + 0xc]
mov edx, edi
mov dword [ebp - 0x14], esi
xorps xmm0, xmm0
mov dword [esi], vtable.IniFileSettings.0
mov dword [ebp - 0x1c], eax
movups xmmword [ecx], xmm0
lea eax, [edx + 2]
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ebp - 0x18], eax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10002dc0
sub edx, dword [ebp - 0x18]
sar edx, 1
push edx
push edi
call fcn.10004a20
mov edx, dword [ebp - 0x1c]
lea ecx, [esi + 0x1c]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
lea eax, [edx + 2]
mov dword [ecx + 0x14], 0
mov dword [ebp - 0x18], eax
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10002e00
sub edx, dword [ebp - 0x18]
sar edx, 1
push edx
push dword [ebp - 0x1c]
call fcn.10004a20
cmp byte [ebp + 0x10], 0
je 0x10002e5a
push 0
push pe_nt_image_headers32
push 1
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10002e5a
push 0
lea eax, [ebp - 0x14]
push eax
push 2
push 0x1004b254
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
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.1002db4b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100037e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10041018
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push esi
push edi
mov eax, dword [0x100c2004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x24], ecx
xor edx, edx
mov byte [ecx + 4], 0
movups xmmword [ecx + 8], xmm0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 7
mov word [ecx + 8], dx
movups xmmword [ecx + 0x20], xmm0
mov dword [ecx + 0x30], edx
mov dword [ecx + 0x34], 7
mov word [ecx + 0x20], dx
mov dword [ebp - 4], edx
lea esi, [ecx + 0x3c]
mov dword [ecx], vtable.EnumIteratorIniFileBase_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___.0
mov dword [ecx + 0x38], eax
xor ecx, ecx
movups xmmword [esi], xmm0
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], 7
mov word [esi], cx
lea ecx, [eax + 4]
mov byte [ebp - 4], 1
add eax, 0x1c
mov dword [ebp - 0x1c], ecx
mov edi, 0x100
mov dword [ebp - 0x14], eax
push 0
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
cmp edi, edx
ja 0x100038a3
mov ecx, esi
cmp eax, 8
jb 0x10003898
mov ecx, dword [esi]
xor eax, eax
mov dword [esi + 0x10], edi
mov word [ecx + edi*2], ax
jmp 0x100038ef
mov ecx, edi
sub eax, edx
sub ecx, edx
cmp ecx, eax
ja 0x100038e2
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [esi + 0x10], edi
mov dword [ebp - 0x10], esi
jb 0x100038c0
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
lea edx, [eax + edx*2]
test ecx, ecx
je 0x100038da
xor eax, eax
mov edi, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov word [eax + edi*2], cx
jmp 0x100038ef
push ecx
push ecx
push dword [ebp - 0x24]
push ecx
mov ecx, esi
call fcn.10004fe0
mov eax, dword [ebp - 0x1c]
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x100038fc
mov edx, dword [eax]
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x10003906
mov ecx, dword [esi]
mov eax, dword [ebp - 0x14]
mov edi, eax
cmp dword [edi + 0x14], 8
mov edi, dword [ebp - 0x18]
jb 0x10003916
mov eax, dword [eax]
push edx
push edi
push ecx
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x1000393f
add edi, 0x100
jmp 0x1000387a
test eax, eax
jne 0x10003964
push ecx
push dword [ebp - 0x10]
mov ecx, esi
call fcn.10005120
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push eax
lea ecx, [ebp - 0x5c]
call fcn.10001290
push 0x100c015c
lea eax, [ebp - 0x5c]
push eax
call fcn.1002f43a
int3
Function at 0x10003980
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10041058
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push esi
push edi
mov eax, dword [0x100c2004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x24], ecx
xor edx, edx
mov byte [ecx + 4], 0
movups xmmword [ecx + 8], xmm0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 7
mov word [ecx + 8], dx
mov dword [ecx + 0x20], edx
mov dword [ebp - 4], edx
lea esi, [ecx + 0x28]
mov dword [ecx], vtable.EnumIteratorIniFileBase_int_.0
mov dword [ecx + 0x24], eax
xor ecx, ecx
movups xmmword [esi], xmm0
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], 7
mov word [esi], cx
lea ecx, [eax + 4]
mov byte [ebp - 4], 1
add eax, 0x1c
mov dword [ebp - 0x1c], ecx
mov edi, 0x100
mov dword [ebp - 0x14], eax
push 0
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
cmp edi, edx
ja 0x10003a34
mov ecx, esi
cmp eax, 8
jb 0x10003a29
mov ecx, dword [esi]
xor eax, eax
mov dword [esi + 0x10], edi
mov word [ecx + edi*2], ax
jmp 0x10003a80
mov ecx, edi
sub eax, edx
sub ecx, edx
cmp ecx, eax
ja 0x10003a73
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [esi + 0x10], edi
mov dword [ebp - 0x10], esi
jb 0x10003a51
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
lea edx, [eax + edx*2]
test ecx, ecx
je 0x10003a6b
xor eax, eax
mov edi, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov word [eax + edi*2], cx
jmp 0x10003a80
push ecx
push ecx
push dword [ebp - 0x24]
push ecx
mov ecx, esi
call fcn.10004fe0
mov eax, dword [ebp - 0x1c]
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x10003a8d
mov edx, dword [eax]
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x10003a97
mov ecx, dword [esi]
mov eax, dword [ebp - 0x14]
mov edi, eax
cmp dword [edi + 0x14], 8
mov edi, dword [ebp - 0x18]
jb 0x10003aa7
mov eax, dword [eax]
push edx
push edi
push ecx
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x10003ad0
add edi, 0x100
jmp 0x10003a0b
test eax, eax
jne 0x10003af5
push ecx
push dword [ebp - 0x10]
mov ecx, esi
call fcn.10005120
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push eax
lea ecx, [ebp - 0x5c]
call fcn.10001290
push 0x100c015c
lea eax, [ebp - 0x5c]
push eax
call fcn.1002f43a
int3
Function at 0x10003bd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10041095
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x100c2004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x20], edi
xor eax, eax
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 7
mov word [ebp - 0x54], ax
mov dword [ebp - 4], eax
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
mov byte [ebp - 4], 1
nop dword [eax]
push 0
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esi + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x10003d5f
mov eax, dword [ebp - 0x14]
push ecx
xor ecx, ecx
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
lea ecx, [ebp - 0x54]
call fcn.10005120
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
inc eax
push ecx
shr eax, 1
lea ecx, [ebp - 0x3c]
push eax
call fcn.10005120
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x1c]
add eax, eax
lea ecx, [ebp - 0x54]
cmp dword [ebp - 0x28], 8
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x40], 8
push edx
cmovae ecx, dword [ebp - 0x54]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push ecx
push dword [esi + 0x3c]
push dword [esi + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
je 0x10003d2c
cmp eax, 0xea
je 0x10003c40
test eax, eax
jne 0x10003d5f
inc dword [esi + 0x3c]
push ecx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x54]
call fcn.10005120
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x90]
call fcn.10004440
add esp, 0xc
mov ecx, edi
push eax
call fcn.100044d0
lea ecx, [ebp - 0x90]
call fcn.10003f30
jmp 0x10003d30
mov byte [edi + 0x38], 0
lea ecx, [ebp - 0x3c]
call fcn.10002650
lea ecx, [ebp - 0x54]
call fcn.10002650
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.1002db4b
mov esp, ebp
pop ebp
ret 4
push eax
lea ecx, [ebp - 0x90]
call fcn.10001290
push 0x100c015c
lea eax, [ebp - 0x90]
push eax
call fcn.1002f43a
int3
Function at 0x10003d80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10041095
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x100c2004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x20], edi
xor eax, eax
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 7
mov word [ebp - 0x54], ax
mov dword [ebp - 4], eax
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
mov byte [ebp - 4], 1
nop dword [eax]
push 0
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esi + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x10003f0f
mov eax, dword [ebp - 0x14]
push ecx
xor ecx, ecx
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
lea ecx, [ebp - 0x54]
call fcn.10005120
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
inc eax
push ecx
shr eax, 1
lea ecx, [ebp - 0x3c]
push eax
call fcn.10005120
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x1c]
add eax, eax
lea ecx, [ebp - 0x54]
cmp dword [ebp - 0x28], 8
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x40], 8
push edx
cmovae ecx, dword [ebp - 0x54]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push ecx
push dword [esi + 0x28]
push dword [esi + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
je 0x10003edc
cmp eax, 0xea
je 0x10003df0
test eax, eax
jne 0x10003f0f
inc dword [esi + 0x28]
push ecx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x54]
call fcn.10005120
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x90]
call fcn.10004440
add esp, 0xc
mov ecx, edi
push eax
call fcn.100044d0
lea ecx, [ebp - 0x90]
call fcn.10003f30
jmp 0x10003ee0
mov byte [edi + 0x38], 0
lea ecx, [ebp - 0x3c]
call fcn.10002650
lea ecx, [ebp - 0x54]
call fcn.10002650
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.1002db4b
mov esp, ebp
pop ebp
ret 4
push eax
lea ecx, [ebp - 0x90]
call fcn.10001290
push 0x100c015c
lea eax, [ebp - 0x90]
push eax
call fcn.1002f43a
int3
Function at 0x1000a8f0
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [0x100c4934], 0
push ebx
push esi
push edi
jne 0x1000a90d
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
lea esi, [ebp + 0x14]
test edx, edx
jle 0x1000a92c
mov eax, dword [ebp + 0x14]
lea esi, [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
dec edx
mov dword [ebp + 0x10], edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
jmp 0x1000a934
xorps xmm0, xmm0
movlpd qword [ebp - 0x10], xmm0
mov ecx, esi
test edx, edx
jle 0x1000a94e
dec edx
add esi, 8
mov dword [ebp + 0x10], edx
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
jmp 0x1000a956
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov ecx, esi
test edx, edx
jle 0x1000a970
dec edx
add esi, 8
mov dword [ebp + 0x10], edx
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
jmp 0x1000a978
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
mov ecx, esi
test edx, edx
jle 0x1000a992
dec edx
add esi, 8
mov dword [ebp + 0x10], edx
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
jmp 0x1000a99a
xorps xmm0, xmm0
movlpd qword [ebp - 0x28], xmm0
mov eax, edx
mov dword [ebp - 0x40], esi
cdq
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov word [ebp - 8], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 4], esp
and esp, 0xfffffff0
push 0x33
call 0x1000a9dc
add dword [esp], 5
retf

Function at 0x1000aa70
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5d0
mov eax, dword [0x100c2004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x100c4934], 0
push ebx
push esi
push edi
je 0x1000ad60
xorps xmm0, xmm0
movlpd qword [ebp - 0x10], xmm0
push 0x33
call 0x1000aaa2
add dword [esp], 5
retf
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002db4b
mov esp, ebp
pop ebp
ret

Function at 0x1000ae20
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ac
mov eax, dword [0x100c2004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.1000ada0
mov esi, eax
mov dword [ebp - 0x138], edx
mov dword [ebp - 0x134], esi
test esi, esi
jne 0x1000ae55
test edx, edx
je 0x1000b3a1
lea eax, [ebp - 0x1a8]
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x114], edx
push 0x33
call fcn.1000ae74
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
xor edx, edx
pop ebx
call fcn.1002db4b
mov esp, ebp
pop ebp
ret
Function at 0x1001e030
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10042590
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x100c2004]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov edi, dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0
call fcn.1001b020
test al, al
je 0x1001e16a
mov eax, dword [esi]
mov ecx, edi
xorps xmm0, xmm0
mov dword [ebp - 0x20], eax
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001e0a0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x40]
call fcn.10004a20
cmp dword [ebp - 0x2c], 8
lea edi, [ebp - 0x40]
mov eax, dword [ebp - 0x30]
mov edx, 0x811c9dc5
cmovae edi, dword [ebp - 0x40]
xor ecx, ecx
add eax, eax
mov dword [ebp - 0x24], eax
je 0x1001e0e7
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, dword [ebp - 0x24]
jb 0x1001e0d5
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x40]
push edx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.1001f190
mov edi, dword [eax + 4]
test edi, edi
jne 0x1001e105
mov eax, dword [ebp - 0x20]
mov edi, dword [eax + 4]
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x1001e13f
mov edx, dword [ebp - 0x40]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1001e135
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001e1e7
push ecx
push edx
call fcn.1002dd79
add esp, 8
mov eax, dword [esi]
cmp edi, dword [eax + 4]
je 0x1001e197
lea eax, [ebp - 0x19]
mov byte [ebp - 0x19], 0
lea ecx, [edi + 0x20]
push eax
call fcn.1001ad80
test al, al
lea eax, [ebp - 0x18]
push eax
jne 0x1001e188
mov ecx, dword [esi + 8]
lea eax, [ebp - 0x28]
push eax
call fcn.1001e720
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1002db4b
mov esp, ebp
pop ebp
ret 4
cmp byte [ebp - 0x19], 0
jne 0x1001e19b
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x28]
push eax
jmp 0x1001e165
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [esi + 0xc]
call fcn.1001e200
jmp 0x1001e16a
call fcn.10033a4a
int3
Function at 0x100291d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100c2004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea edx, [ebp - 0x210]
push esi
mov eax, edx
mov esi, 0x104
push edi
mov dword [ebx], 0
sub ecx, eax
mov dword [ebx + 4], 0
lea eax, [esi + 0x7ffffefa]
test eax, eax
je 0x10029223
movzx eax, word [ecx + edx]
test ax, ax
je 0x10029223
mov word [edx], ax
add edx, 2
sub esi, 1
jne 0x10029205
test esi, esi
lea eax, [edx - 2]
cmovne eax, edx
xor ecx, ecx
mov word [eax], cx
mov ecx, 0x104
lea eax, [ebp - 0x210]
nop dword [eax + eax]
cmp word [eax], 0
je 0x1002924e
add eax, 2
sub ecx, 1
jne 0x10029240
mov edx, 0x104
mov esi, ecx
mov eax, edx
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
test ecx, ecx
je 0x100292a6
lea ecx, [ebp - 0x210]
lea ecx, [ecx + esi*2]
sub edx, esi
je 0x10029299
mov edi, 0x100bb3e0
mov eax, 0x7ffffffe
sub edi, ecx
nop dword [eax]
test eax, eax
je 0x10029299
movzx esi, word [edi + ecx]
test si, si
je 0x10029299
mov word [ecx], si
dec eax
add ecx, 2
sub edx, 1
jne 0x10029280
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x210]
push eax
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov esi, eax
test esi, esi
jne 0x100292e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x100292cf
xor edi, edi
jmp 0x1002931b
mov ecx, dword [ebp + 4]
mov edx, 0xc9
push 0x100bb3dc
call fcn.10007850
add esp, 4
mov edi, eax
jmp 0x1002931b
lea edx, [ebp - 0x214]
mov dword [ebp - 0x214], 0
mov ecx, esi
call fcn.10029020
mov edi, eax
test edi, edi
jns 0x10029332
mov ecx, dword [ebp + 4]
mov edx, 0xcf
push edi
push 0x100bb3dc
call fcn.100071e0
add esp, 8
test esi, esi
jne 0x10029340
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002db4b
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x214]
xor edi, edi
cdq
mov dword [ebx], eax
mov dword [ebx + 4], edx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1002931f
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0x93e
call fcn.10008040
int3
Function at 0x1002b4f7
Capabilities:
Enumerate threads
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x100c2004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x2c], eax
cmp eax, 0xffffffff
je 0x1002b681
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1002b678
inc ebx
mov dword [ebp - 0x24], ebx
push edi
cmp dword [ebp - 0x20], 0x10
jb 0x1002b608
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x1002b608
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1002b608
push dword [ebp - 0x18]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
mov dword [ebp - 0x28], edi
test edi, edi
je 0x1002b608
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1002b598
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1002b608
cmp dword [esi], 0
jne 0x1002b5c7
push 0x200
push 0
push dword [0x100c4be0]
mov dword [esi + 4], pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi], eax
lea edi, [esi + 8]
neg eax
sbb eax, eax
and ebx, eax
mov dword [ebp - 0x24], ebx
jmp 0x1002b5f4
mov eax, dword [esi + 4]
lea edi, [esi + 8]
cmp dword [edi], eax
jb 0x1002b5f4
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push dword [esi]
push 0
push dword [0x100c4be0]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x1002b691
mov dword [esi], eax
test ebx, ebx
je 0x1002b696
mov ecx, dword [edi]
mov eax, dword [esi]
mov edx, dword [ebp - 0x28]
mov dword [eax + ecx*4], edx
inc dword [edi]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1002b541
lea edi, [esi + 8]
test ebx, ebx
je 0x1002b63b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1002b677
xor ebx, ebx
mov dword [ebp - 0x24], ebx
cmp dword [esi], 0
je 0x1002b677
xor ebx, ebx
cmp dword [edi], ebx
jbe 0x1002b661
mov eax, dword [esi]
push dword [eax + ebx*4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi]
push dword [eax + ebx*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [edi]
jb 0x1002b646
push dword [esi]
push 0
push dword [0x100c4be0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [esi], 0
mov ebx, dword [ebp - 0x24]
pop edi
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.1002db4b
leave
ret
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1002b627