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

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x67f46bfb
cmp byte [esi + ebx - 1], 0xa
je 0x67f46bcf
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x67f48138], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x67f46cc0
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ebx
push ecx
sub esp, 0x20
mov ebx, dword [ecx]
test byte [0x67f48048], 8
jne 0x67f46d30
mov ebx, dword [ebx]
test ebx, ebx
je 0x67f46d1c
mov eax, dword [ebx]
mov dword [eax + 0x18], 0
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_DeleteCriticalSection]
sub esp, 4
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 8]
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.__p__n
mov dword [esp + 8], str.omp_destroy_lock
mov dword [esp + 4], 0x67f48048
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x67f46cdd

Function at 0x67f46ea0
Capabilities:
Get thread local storage value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ebx
push ecx
sub esp, 0x10
mov eax, dword [0x67f48140]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x67f46f20
mov ebx, dword [eax]
test byte [0x67f48048], 8
jne 0x67f46ef0
mov eax, 1
test ebx, ebx
je 0x67f46ede
mov eax, dword [ebx + 4]
lea esp, [ebp - 8]
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp + 0xc], 0x67f4a088
mov dword [esp + 8], str.omp_get_num_threads
mov dword [esp + 4], 0x67f48048
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x67f46ed2
call sym._vcomp_init_thread_data.part.0
jmp 0x67f46ec7

Function at 0x67f46f30
Capabilities:
Get thread local storage value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x14
test byte [0x67f48048], 8
jne 0x67f46f70
mov eax, dword [0x67f48140]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x67f46fa0
mov ecx, dword [ebp - 4]
mov eax, dword [eax + 8]
leave
lea esp, [ecx - 4]
ret
mov dword [esp + 0xc], 0x67f4a088
mov dword [esp + 8], str.omp_get_thread_num
mov dword [esp + 4], 0x67f48048
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x67f46f4a
call sym._vcomp_init_thread_data.part.0
mov ecx, dword [ebp - 4]
mov eax, dword [eax + 8]
leave
lea esp, [ecx - 4]
ret
Function at 0x67f46ff0
Capabilities:
Get thread local storage value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x14
test byte [0x67f48048], 8
jne 0x67f47030
mov eax, dword [0x67f48140]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x67f47060
mov ecx, dword [ebp - 4]
mov eax, dword [eax + 0xc]
leave
lea esp, [ecx - 4]
ret
mov dword [esp + 0xc], 0x67f4a088
mov dword [esp + 8], str.omp_in_parallel
mov dword [esp + 4], 0x67f48048
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x67f4700a
call sym._vcomp_init_thread_data.part.0
mov ecx, dword [ebp - 4]
mov eax, dword [eax + 0xc]
leave
lea esp, [ecx - 4]
ret

Function at 0x67f47070
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x2c
mov esi, dword [ecx]
test byte [0x67f48048], 8
jne 0x67f470e0
mov dword [esp + 8], 0x18
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x67f4710a
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov eax, dword [ebx]
sub esp, 4
mov dword [eax + 0x18], str..._src_wine_dlls_vcomp_main.c:_critsect
mov dword [esi], ebx
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.__p__n
mov dword [esp + 8], str.omp_init_lock
mov dword [esp + 4], 0x67f48048
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x67f4708e
call sym._alloc_critsect.part.0
nop

Function at 0x67f47160
Capabilities:
Terminate process

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ebx
push ecx
sub esp, 0x20
mov ebx, dword [ecx]
test byte [0x67f48048], 8
jne 0x67f471b0
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_RtlIsCriticalSectionLockedByThread]
sub esp, 4
test eax, eax
jne 0x67f471da
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
lea esp, [ebp - 8]
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.__p__n
mov dword [esp + 8], str.omp_set_lock
mov dword [esp + 4], 0x67f48048
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x67f4717d
test byte [0x67f48048], 2
jne 0x67f471f0
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov eax, dword [ebx]
mov dword [esp + 0xc], str.omp_set_lock_called_while_holding_lock__p_n
mov dword [esp + 8], str.omp_set_lock
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x67f48048
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x67f471e3
Function at 0x67f47580
Capabilities:
Get process heap flags
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x67f48140]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x67f475d9
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [0x67f48140]
sub esp, 0xc
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
sub esp, 8
leave
ret

Function at 0x67f475e0
Capabilities:
Get process heap flags
Set thread local storage value
Terminate process

Disassembly:
push ebp
mov eax, dword fs:[0x18]
mov ebp, esp
push ebx
sub esp, 0x14
mov dword [esp + 8], 0x60
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
je 0x67f47684
mov dword [eax + 0x38], 0
mov ebx, eax
lea eax, [eax + 0x38]
mov dword [eax + 4], 0
mov dword [eax + 0x10], 0
mov dword [eax - 0x38], 0
mov dword [ebx + 4], eax
mov eax, dword [0x67f48140]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x20], 1
mov dword [ebx + 0x24], 1
mov dword [ebx + 0x28], 1
mov dword [ebx + 0x2c], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov eax, ebx
mov ebx, dword [ebp - 4]
sub esp, 8
leave
ret
test byte [0x67f48048], 2
jne 0x67f4769a
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.could_not_create_thread_data_n
mov dword [esp + 8], str.vcomp_init_thread_data
mov dword [esp + 4], 0x67f48048
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x67f4768d
Function at 0x48da22
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401d7a
mov eax, dword [0x6f0b80]
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.00405d80
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x48da64
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x48dbc0
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405eca
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 + 0x6f4478]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403247
mov ecx, dword [esi*4 + 0x6f4478]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x48dbb9
cmp eax, dword [edi + ecx + 0x24]
jne 0x48dbb9
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48dbb9
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403247
add esp, 0x14
test edx, edx
jl 0x48dbb9
jg 0x48db2f
test eax, eax
jb 0x48dbb9
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x48dbb9
jl 0x48db49
cmp dword [ebp - 0x1008], eax
ja 0x48dbb9
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x48db67
test ebx, ebx
je 0x48dba0
cmp ecx, edi
jae 0x48dba0
mov al, byte [ecx]
cmp al, 0xd
jne 0x48db81
lea eax, [edi - 1]
cmp ecx, eax
jae 0x48db8d
cmp byte [ecx + 1], 0xa
jne 0x48db8d
inc ecx
jmp 0x48db8d
movzx eax, al
movsx eax, byte [eax + 0x6f0ed0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x48db67
cmp edx, ebx
jne 0x48db67
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x48dbbe
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403021
leave
ret
Function at 0x48e2ff
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x6f4478]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x48e33f
cmp byte [ebx], 0xa
jne 0x48e33f
or byte [eax + edi + 0x28], 4
jmp 0x48e344
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x48e442
mov al, byte [edx]
cmp al, 0x1a
je 0x48e424
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x48e373
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x48e398
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x48e3a2
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x48e355
jmp 0x48e442
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48e41f
cmp dword [ebp - 0xc], 0
je 0x48e41f
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x6f4478]
test byte [eax + edi + 0x28], 0x48
je 0x48e3f9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x48e3e4
mov byte [esi], dl
jmp 0x48e3f5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x6f4478]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x48e442
cmp byte [ebp - 1], 0xa
jne 0x48e408
cmp esi, ebx
jne 0x48e408
mov byte [esi], 0xa
jmp 0x48e441
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040191a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x48e442
mov byte [esi], 0xd
jmp 0x48e441
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x6f4478]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x48e43e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x48e442
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x48e49e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x6f4478]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x48e4e1
cmp word [esi], dx
jne 0x48e4e1
or byte [edi + eax + 0x28], 4
jmp 0x48e4e6
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x48e639
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x48e619
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x48e528
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x48e55e
cmp eax, edx
jae 0x48e56a
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x48e500
jmp 0x48e639
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48e615
cmp dword [ebp - 0x14], 0
je 0x48e615
mov eax, dword [ebx*4 + 0x6f4478]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x48e5ed
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x48e5b6
mov word [esi], cx
jmp 0x48e5e9
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x6f4478]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x6f4478]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x6f4478]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x48e639
pop ebx
cmp word [ebp - 4], bx
jne 0x48e5fe
cmp esi, dword [ebp + 0xc]
jne 0x48e5fe
mov word [esi], bx
jmp 0x48e636
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040191a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x48e639
push 0xd
jmp 0x48e632
mov ecx, dword [ebx*4 + 0x6f4478]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x48e630
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x48e639
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49602f
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x6f0b80]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49607a
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004964f1
test al, al
jne 0x496074
sub edx, 2
cmp edx, edi
jne 0x49605a
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49609c
lea eax, [edi + 2]
cmp edx, eax
je 0x49609c
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00495c28
add esp, 0x10
jmp 0x496196
push esi
lea ecx, [ebp - 0x255]
call fcn.004964f1
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4960df
push dword [ebp - 0x25c]
jmp 0x49608c
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x49611c
cmp word [ebp - 0x226], 0
je 0x49613d
cmp word [ebp - 0x226], ax
jne 0x49611c
cmp word [ebp - 0x224], 0
je 0x49613d
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00495c28
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x496189
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4960f6
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x496171
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x496196
push 0x495610
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004054a7
add esp, 0x10
jmp 0x496166
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403021
leave
ret
Function at 0x10022b20
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x100940eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.10089105
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x10022ba2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.10087017
mov eax, dword [eax]
push 0x100b0c80
push eax
call fcn.10079d64
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.10089390
test bl, bl
je 0x10022ba2
push 0x100b0c80
lea ecx, [esp + 0xc]
call fcn.10089720
push 0x100b0c8c
lea ecx, [esp + 0xc]
call fcn.10089720
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x10022bde
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.10089390
jmp 0x10022ca9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.DLL_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x10022c62
lea edx, [esp + 0x7c]
push 0x100b0c88
push edx
call fcn.10079d64
add esp, 8
test eax, eax
je 0x10022c62
lea eax, [esp + 0x7c]
push 0x100b0c84
push eax
call fcn.10079d64
add esp, 8
test eax, eax
je 0x10022c62
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x10022bf2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.10089390
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x100234a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x10023502
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x10023510
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x1009416b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x100ba5c8]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x10023648
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x10023576
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.10089390
xor eax, eax
jmp 0x100236bf
push 0x100b0cc8
lea ecx, [esp + 0xc]
call fcn.100894cd
push esi
lea ecx, [esp + 0xc]
call fcn.1008975c
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x100b0cc0
push 0
call dword [sym.imp.SHELL32.DLL_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x1002369d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push 0x100b0cb8
push accept
call fcn.100234a0
test eax, eax
jne 0x1002369d
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [esp + 0x14]
push 0x100b0ca4
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.100234a0
test eax, eax
jne 0x1002369d
lea eax, [esp + 0x14]
push 0x100b0c9c
push eax
call fcn.1007ade0
mov esi, eax
add esp, 8
test esi, esi
jne 0x1002367c
lea ecx, [esp + 0x14]
push 0x100b0c98
push ecx
call fcn.1007ad60
mov esi, eax
add esp, 8
test esi, esi
jne 0x1002367c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x1002367f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.1008947d
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x1002358e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.10089390
xor eax, eax
jmp 0x100236bf
mov byte [esi], 0
push 0x100b0c94
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.DLL_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.10089390
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4