joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004ba0d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cf59e
mov eax, dword fs:[0]
push eax
mov eax, 0x1064
call fcn.100049d2
mov eax, dword [0x1000f7ac]
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 edi, dword [ebp + 8]
mov eax, dword [edi]
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
mov dword [eax - 4], ebx
mov eax, dword [edi]
xor edx, edx
mov byte [edi + 8], bl
mov word [eax], dx
mov dword [ebp - 0x1064], ecx
mov dword [ebp - 0x105c], ebx
lea eax, [ebp - 0x105c]
push eax
push ecx
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.1004be8e
test al, al
je 0x1004ba85
push dword [ebp - 0x105c]
jmp 0x1004bb2e
mov ecx, esi
call fcn.10006cce
test al, al
je 0x1004baca
cmp byte [esi + 0x18], 0
je 0x1004bac5
push 0x80070002
push 0x2e6e3576
lea eax, [ebp - 0x1070]
push eax
call fcn.10042c59
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.100420b4
lea ecx, [ebp - 0x1070]
mov byte [ebp - 4], bl
call fcn.10041a51
push 2
pop ebx
jmp 0x1004bb35
xor eax, eax
push 0x1046
mov word [ebp - 0x1058], ax
lea eax, [ebp - 0x1056]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [ebp - 0x1060], 0x1048
lea eax, [esi + 4]
test esi, esi
jne 0x1004bafb
mov eax, ebx
lea ecx, [ebp - 0x1060]
push ecx
lea ecx, [ebp - 0x1058]
push ecx
push ebx
push ebx
push dword [ebp - 0x1064]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
mov ecx, esi
call fcn.10006d6b
mov ebx, eax
test ebx, ebx
jne 0x1004bb35
lea eax, [ebp - 0x1058]
push eax
mov ecx, edi
call fcn.10046bba
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x105c]
call fcn.10006bef
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.10002059
leave
ret 8

Function at 0x1004bb62
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x100cf4dc
call fcn.10002415
mov esi, ecx
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
call fcn.10006cce
test al, al
je 0x1004bbba
cmp byte [esi + 0x18], 0
je 0x1004bbb5
push 0x80070002
push 0x2e6e3576
lea eax, [ebp - 0x24]
push eax
call fcn.10042c59
and dword [ebp - 4], 0
mov ecx, eax
call fcn.100420b4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.10041a51
push 2
pop eax
jmp 0x1004bbe4
and dword [ebp - 0x14], 0
test esi, esi
je 0x1004bbc7
lea eax, [esi + 4]
jmp 0x1004bbc9
xor eax, eax
push dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
push ebx
push ecx
push 0
push edi
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
mov ecx, esi
call fcn.10006d6b
call fcn.10002556
ret 0xc
Function at 0x1004d538
Capabilities:
Terminate process

Disassembly:
push 0x24
mov eax, 0x100cfba4
call fcn.100029fc
xor ebx, ebx
push ebx
call fcn.10002b97
mov dword [ebp - 4], ebx
cmp byte [ebp + 0xc], bl
je 0x1004d5c8
mov ecx, dword [0x1013a138]
test cl, 4
je 0x1004d577
push 0x666
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [0x1013a138]
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov edx, SysReAllocStringLen
and eax, edx
cmp eax, edx
jne 0x1004d5c8
test cl, 1
jne 0x1004d5a1
test cl, 2
je 0x1004d5c8
mov esi, dword [0x1013a140]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, esi
jne 0x1004d5c8
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x20], bl
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.1005903e
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.10041a51
or dword [ebp - 4], 0xffffffff
call fcn.100067a3
call fcn.10005fef
ret 8

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

Disassembly:
push 0x414
mov eax, 0x100cfd84
call fcn.10002415
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x410]
mov dword [ebp - 0x420], eax
xor eax, eax
xor ebx, ebx
lea edi, [ebp - 0x410]
mov dword [ebp - 0x41c], 0x200
mov byte [ebp - 0x418], bl
mov dword [ebp - 0x414], ebx
mov word [ebp - 0x410], ax
stosd dword es:[edi], eax
mov word [ebp - 0x40c], ax
lea eax, [ebp - 0x420]
push eax
push ecx
mov dword [ebp - 4], ebx
call fcn.1004e191
lea eax, [ebp - 0x420]
push eax
call fcn.1003f70f
cmp eax, 0x104
jbe 0x1004e5d6
mov eax, dword [ebp - 0x420]
xor ecx, ecx
mov word [eax + 0x208], cx
mov eax, dword [ebp - 0x420]
mov dword [eax - 4], 0x208
mov byte [ebp - 0x418], bl
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
lea eax, [ebp - 0x420]
push eax
mov ecx, eax
setne bl
call fcn.10008645
mov al, bl
call fcn.10002556
ret 4
Function at 0x1004f6cf
Capabilities:
Create thread

Disassembly:
push 0x14
mov eax, 0x100cfefc
call fcn.10002415
mov esi, ecx
xor edi, edi
cmp dword [esi], 0xffffffff
je 0x1004f70d
push 0x80004005
push 0x2e68367a
lea eax, [ebp - 0x20]
push eax
call fcn.10042c59
mov ecx, eax
mov dword [ebp - 4], edi
call fcn.100420b4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.10041a51
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x14]
push eax
push edi
push esi
push 0x1004f765
push edi
push edi
call dword [sym.imp.MSVCR100.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x1004f73e
or dword [esi], 0xffffffff
call fcn.10002556
ret 0xc

Function at 0x1004f8a1
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x100d0012
call fcn.10001e5b
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
push 0x14
mov dword [ebp - 4], ebx
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x1004f8e5
push dword [ebp + 0x18]
mov ecx, eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.10057943
mov edi, eax
jmp 0x1004f8e7
mov edi, ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.10057c2e
push esi
mov dword [ebp - 0x10], edi
mov dword [ebp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [esi + 0x18]
cmp dword [esi + 0x18], 1
mov byte [ebp - 4], 2
jne 0x1004f919
cmp dword [esi + 0x1c], ebx
jne 0x1004f919
mov ecx, dword [esi + 0x24]
call fcn.1002d87f
push esi
mov byte [ebp - 4], bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
push ebx
push 0x1004fa5d
mov dword [ebp - 0x10], ebx
call dword [sym.imp.MSVCR100.dll__beginthread]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x1004f945
push 0x2e6b6831
call fcn.10041c2d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.10057c2e
call fcn.10001e90
ret 0x14
Function at 0x1004f959
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x100d006e
call fcn.10001e5b
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
push 0x14
mov dword [ebp - 4], ebx
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x1004f99a
push dword [ebp + 0x14]
mov ecx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.10057aee
mov edi, eax
jmp 0x1004f99c
mov edi, ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.10057c2e
push esi
mov dword [ebp - 0x10], edi
mov dword [ebp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [esi + 0x18]
cmp dword [esi + 0x18], 1
mov byte [ebp - 4], 2
jne 0x1004f9ce
cmp dword [esi + 0x1c], ebx
jne 0x1004f9ce
mov ecx, dword [esi + 0x24]
call fcn.1002d87f
push esi
mov byte [ebp - 4], bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
push ebx
push 0x1004fa8a
mov dword [ebp - 0x10], ebx
call dword [sym.imp.MSVCR100.dll__beginthread]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x1004f9fa
push 0x2e6b6832
call fcn.10041c2d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.10057c2e
call fcn.10001e90
ret 0x10
Function at 0x100527d0
Capabilities:
Print debug messages

Disassembly:
push 0x81c
mov eax, 0x100d0838
call fcn.10002415
mov ebx, dword [ebp + 8]
push ebx
call fcn.1003f71e
mov esi, eax
mov ecx, 0x3e8
cmp esi, ecx
jle 0x100528a0
lea eax, [esi - 0x3e9]
xor edx, edx
div ecx
inc eax
mov ecx, eax
imul ecx, ecx, 0xfffffc18
add esi, ecx
mov dword [ebp - 0x824], esi
mov esi, eax
and dword [ebp - 0x814], 0
lea eax, [ebp - 0x810]
mov dword [ebp - 0x820], eax
xor eax, eax
lea edi, [ebp - 0x810]
mov dword [ebp - 0x81c], 0x400
mov byte [ebp - 0x818], 0
mov word [ebp - 0x810], ax
stosd dword es:[edi], eax
mov word [ebp - 0x80c], ax
and dword [ebp - 4], eax
lea eax, [ebp - 0x820]
push eax
push 0x3e8
push ebx
call fcn.1003f4c5
lea ecx, [ebp - 0x820]
add ebx, 0x7d0
call fcn.10046f42
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x820]
push eax
mov ecx, eax
call fcn.10008645
dec esi
jne 0x10052814
mov esi, dword [ebp - 0x824]
test esi, esi
je 0x100528ab
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.10002556
ret 4

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.100049d2
mov eax, dword [0x1000f7ac]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x2008], 0
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
lea eax, [ebp - 0x2004]
mov dword [ebp - 0x2014], eax
xor eax, eax
mov word [ebp - 0x2004], ax
mov dword [ebp - 0x2010], 0x1000
mov byte [ebp - 0x200c], 0
lea edi, [ebp - 0x2004]
stosd dword es:[edi], eax
mov word [ebp - 0x2000], ax
lea eax, [ebp - 0x2014]
push eax
push edx
mov esi, ecx
call fcn.100530d6
push dword [ebp - 0x2014]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
movzx ecx, bl
neg ecx
sbb ecx, ecx
and ecx, eax
lea eax, [ebp - 0x2014]
mov dword [esi], ecx
push eax
mov ecx, eax
call fcn.10008645
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.10002059
leave
ret 4
Function at 0x100541cd
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push 0x1c
mov eax, 0x100d0b14
call fcn.10002415
mov ebx, dword [ebp + 8]
mov esi, ecx
mov edi, edx
test esi, esi
je 0x100542d8
test edi, edi
je 0x100542d8
xor ecx, ecx
mov dword [ebp - 0x24], ecx
lea eax, [ebp - 0x24]
push eax
push ecx
push ecx
push 0x8003
mov dword [ebp - 4], ecx
call fcn.10050eaa
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x100542c9
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005421c
push 0
sub ecx, edx
push ecx
push esi
push dword [ebp - 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
call esi
test eax, eax
je 0x100542c9
push 0
push 1
push 0x100559d0
push dword [ebp - 0x24]
call esi
test eax, eax
je 0x100542c9
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10054253
push 0
sub ecx, edx
push ecx
push edi
push dword [ebp - 0x24]
call esi
test eax, eax
je 0x100542c9
push 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push 2
push dword [ebp - 0x24]
mov dword [ebp - 0x28], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x100542c9
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
push 0
push 0x3c9
push esi
push edi
call fcn.10010a36
movzx ecx, word [eax*2 + 0x10054308]
jmp 0x100542c4
movzx eax, cx
imul eax, eax, 0xc
cmp dword [eax + 0x10054aa0], edi
jne 0x100542bd
cmp dword [eax + 0x10054aa4], esi
je 0x100542e2
movzx ecx, word [eax + 0x10054aaa]
test cx, cx
jne 0x100542a7
cmp dword [ebp - 0x24], 0
je 0x100542d8
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor eax, eax
call fcn.10002556
ret 4
movzx eax, cx
imul eax, eax, 0xc
cmp dword [ebp - 0x24], 0
mov cx, word [eax + 0x10054aa8]
mov word [ebx], cx
je 0x10054301
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor eax, eax
inc eax
jmp 0x100542da
Function at 0x100588a0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push edi
xor edi, edi
test ebx, ebx
je 0x100589c1
mov edx, dword [ebp + 0x14]
xor eax, eax
push esi
mov esi, dword [ebp + 8]
inc eax
sub eax, esi
mov dword [ebp + 8], eax
push 2
pop eax
sub eax, esi
mov dword [ebp - 4], eax
lea eax, [esi + edi]
movzx eax, byte [eax]
shr eax, 2
movzx ecx, byte [eax + 0x100589c8]
mov eax, dword [edx]
mov word [eax], cx
mov eax, dword [ebp + 8]
add dword [edx], 2
lea ecx, [esi + edi]
add eax, ecx
cmp eax, ebx
je 0x1005898d
mov al, byte [ecx]
and al, 3
shl al, 4
movzx ecx, al
movzx eax, byte [edi + esi + 1]
shr eax, 4
or ecx, eax
movzx eax, byte [ecx + 0x100589c8]
mov ecx, dword [edx]
mov word [ecx], ax
mov eax, dword [ebp - 4]
add dword [edx], 2
lea ecx, [esi + edi]
add eax, ecx
cmp eax, ebx
mov al, byte [edi + esi + 1]
je 0x10058969
and al, 0xf
shl al, 2
movzx ecx, al
movzx eax, byte [edi + esi + 2]
shr eax, 6
or ecx, eax
movzx eax, byte [ecx + 0x100589c8]
mov ecx, dword [edx]
mov word [ecx], ax
add dword [edx], 2
movzx eax, byte [edi + esi + 2]
mov ecx, dword [edx]
and eax, 0x3f
movzx eax, byte [eax + 0x100589c8]
mov word [ecx], ax
add dword [edx], 2
add edi, 3
cmp edi, ebx
jae 0x100589c0
jmp 0x100588ca
mov ecx, dword [edx]
and al, 0xf
shl al, 2
movzx eax, al
movzx eax, byte [eax + 0x100589c8]
mov word [ecx], ax
add dword [edx], 2
cmp byte [ebp + 0x10], 0
mov eax, dword [edx]
je 0x100589c0
push 0x3d
pop ecx
jmp 0x100589ba
mov al, byte [edi + esi]
mov ecx, dword [edx]
and al, 3
shl al, 4
movzx eax, al
movzx eax, byte [eax + 0x100589c8]
mov word [ecx], ax
add dword [edx], 2
cmp byte [ebp + 0x10], 0
mov eax, dword [edx]
je 0x100589c0
push 0x3d
pop ecx
mov word [eax], cx
add dword [edx], 2
mov eax, dword [edx]
mov word [eax], cx
add dword [edx], 2
pop esi
pop edi
pop ebx
leave
ret 0x10

Function at 0x10059359
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1000f7ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0xc]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x100593d0
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100593be
lea eax, [esi + esi]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push edi
push ebx
push ebx
push 0x1005943c
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete bl
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.10002059
leave
ret
Function at 0x1005944e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x47c
mov eax, dword [0x1000f7ac]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x10059593
and dword [ebp - 0x47c], eax
push ebx
push esi
push edi
lea edi, [ebp - 0x478]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x46c], 0xc
lea edi, [ebp - 0x468]
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
lea eax, [ebp - 0x45c]
push 0
push eax
mov dword [ebp - 0x460], 0x44
call sub.MSVCR100.dll_memset
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
xor eax, eax
mov esi, 0x208
push esi
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call sub.MSVCR100.dll_memset
xor eax, eax
push esi
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call sub.MSVCR100.dll_memset
add esp, 0x18
mov ecx, 0x105
lea edi, [ebp - 0x41c]
call fcn.10059359
test eax, eax
je 0x10059590
xor edi, edi
push edi
xor eax, eax
inc eax
push edi
push eax
mov dword [ebp - 0x464], eax
lea eax, [ebp - 0x46c]
push eax
mov dword [ebp - 0x468], edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
test esi, esi
je 0x10059590
push esi
push ebx
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.1005959f
add esp, 0x10
lea eax, [ebp - 0x47c]
push eax
lea eax, [ebp - 0x460]
push eax
push edi
push edi
push edi
push 1
push edi
push edi
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1005958d
push dword [ebp - 0x47c]
call edi
push dword [ebp - 0x478]
call edi
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10002059
leave
ret
Function at 0x1005a686
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x248
mov eax, 0x100d1e26
call fcn.10002415
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x24c], eax
push eax
lea ecx, [ebp - 0x23c]
mov dword [ebp - 4], eax
call fcn.1004b52f
lea eax, [ebp - 0x254]
push eax
mov byte [ebp - 4], 1
call fcn.1005aa4c
xor ecx, ecx
mov esi, ecx
mov edi, dword [ebp - 0x254]
lea eax, [ebp - 0x244]
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push edi
mov dword [ebp - 0x220], 0x105
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc esi
mov dword [ebp - 0x248], esi
cmp eax, 0x103
jne 0x1005a719
push 0x80004005
push 0x2e6e3162
jmp 0x1005a737
test eax, eax
je 0x1005a73c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1005a731
and eax, 0xffff
or eax, 0x80070000
push eax
push 0x2e6e3163
call fcn.10041a9c
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x22c], edi
call fcn.10006b7b
push 0x20019
lea ecx, [ebp - 0x23c]
call fcn.10006c94
push eax
lea ecx, [ebp - 0x23c]
call fcn.10006d6b
push ebx
lea eax, [ebp - 0x23c]
push eax
call fcn.1005a856
mov eax, dword [ebx]
mov edx, dword [ebp + 8]
push 0
pop ecx
cmp eax, dword [edx]
jne 0x1005a6d5
lea eax, [edx + 4]
cmp word [eax], cx
je 0x1005a7d4
lea ecx, [ebx + 4]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x1005a7c0
test dx, dx
je 0x1005a7ba
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x1005a7c0
add ecx, 4
add eax, 4
test dx, dx
jne 0x1005a798
xor ecx, ecx
mov eax, ecx
jmp 0x1005a7c7
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
test eax, eax
jne 0x1005a6d5
mov byte [ebp - 4], cl
jmp 0x1005a838
mov eax, dword [ebx + 0x54]
cmp eax, dword [edx + 0x54]
jne 0x1005a6d5
mov eax, dword [ebx + 0xa8]
cmp eax, dword [edx + 0xa8]
jne 0x1005a6d5
push 4
pop ecx
xor eax, eax
lea edi, [edx + 0x44]
lea esi, [ebx + 0x44]
repe cmpsd dword [esi], dword es:[edi]
mov esi, dword [ebp - 0x248]
mov edi, dword [ebp - 0x254]
push eax
pop ecx
jne 0x1005a6d5
push 4
pop ecx
lea edi, [edx + 0x98]
lea esi, [ebx + 0x98]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x1005a835
mov esi, dword [ebp - 0x248]
xor ecx, ecx
jmp 0x1005a6cf
mov byte [ebp - 4], al
lea ecx, [ebp - 0x23c]
call fcn.10008662
lea ecx, [ebp - 0x254]
call fcn.10006d58
call fcn.10002556
ret 8
Function at 0x1006d5c6
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor eax, eax
push edi
mov edi, ecx
or ebx, 0xffffffff
mov byte [ebp - 1], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea esi, [edi + 0x24]
push esi
mov dword [ebp - 8], eax
mov byte [ebp - 0xc], 1
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
cmp dword [edi + 0x60], eax
je 0x1006d615
lea ecx, [edi + 0x74]
cmp byte [ecx], al
je 0x1006d615
lea eax, [ebp - 0xc]
push eax
call fcn.100502d4
mov ebx, eax
xor eax, eax
test ebx, ebx
jg 0x1006d611
mov ebx, eax
mov byte [ebp - 1], 1
cmp dword [ebp + 8], 0xffffffff
je 0x1006d62b
cmp ebx, 0xffffffff
je 0x1006d625
cmp dword [ebp + 8], ebx
jge 0x1006d62b
mov ebx, dword [ebp + 8]
mov byte [ebp - 1], al
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp ebx, 0xffffffff
jne 0x1006d646
mov ecx, dword [edi + 0x9c]
call fcn.1002d646
mov bl, 1
jmp 0x1006d673
cmp byte [ebp - 1], 0
je 0x1006d65b
test ebx, ebx
jne 0x1006d65b
cmp byte [edi + 0x3d], bl
je 0x1006d65b
xor ecx, ecx
mov bl, cl
jmp 0x1006d673
mov ecx, dword [edi + 0x9c]
push ebx
lea eax, [ebp + 0xa]
push eax
call fcn.1002d668
xor ecx, ecx
cmp word [eax], cx
setne bl
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 0x14], 1
call fcn.100502d4
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
test bl, bl
je 0x1006d6ab
push dword [ebp + 0x14]
mov ecx, edi
push dword [ebp + 0x10]
mov byte [edi + 0x3d], 1
push dword [ebp + 0xc]
call fcn.1006d336
jmp 0x1006d6c3
xor eax, eax
mov byte [edi + 0x3d], al
cmp byte [ebp - 1], al
jne 0x1006d6b9
xor al, al
jmp 0x1006d6c3
push dword [ebp + 0x10]
mov ecx, edi
call fcn.1006d482
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x1007116e
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x1000f7ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
push eax
push ebx
mov edi, ecx
call fcn.100713b4
mov esi, eax
test esi, esi
jne 0x1007125d
cmp dword [edi + 0x80], eax
je 0x1007124b
cmp dword [ebp + 0x14], 0xffffffff
je 0x100711c0
push dword [ebp + 0x14]
mov ecx, edi
call fcn.1007126e
jmp 0x10071245
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x1007123d
lea eax, [ebp - 0x254]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
or dword [ebp - 0x258], 0xffffffff
push 0
push 0
push eax
lea ecx, [ebp - 0x258]
call fcn.10053979
cmp dword [ebp - 0x258], 0xffffffff
je 0x10071223
cmp dword [ebp - 0x238], 0
ja 0x1007121f
cmp dword [ebp - 0x234], 0x7fffffff
ja 0x1007121f
push dword [ebp - 0x234]
mov ecx, edi
call fcn.1007126e
mov esi, eax
jmp 0x10071226
push 8
jmp 0x10071225
push 0x10
pop esi
cmp dword [ebp - 0x258], 0xffffffff
je 0x10071247
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x10071247
push ebx
mov ecx, edi
call fcn.10071289
mov esi, eax
test esi, esi
jne 0x1007125b
cmp byte [ebp + 0xc], 0
je 0x1007125b
push ebx
mov ecx, edi
call fcn.10071b18
mov esi, eax
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10002059
leave
ret 0x10