joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007df7c
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [0x1017be80]
mov ebx, ecx
mov dword [ebp - 8], ebx
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ecx, dword [0x1017ca0c]
test eax, eax
cmovne ecx, eax
mov edi, dword [ecx]
mov ecx, dword [edi]
cmp ebx, 0x40000000
ja 0x1007e041
lea edx, [ebx + 0xf]
mov ebx, dword [edi + 0xc]
and edx, 0xfffffff8
and ebx, 0x20
je 0x1007dfc4
add edx, 0x1f
and edx, 0xfffffff8
mov eax, dword [ecx]
lea esi, [ebp - 4]
push 0
push esi
push edx
call dword [eax + 0x14]
mov esi, eax
test esi, esi
je 0x1007e041
test ebx, ebx
je 0x1007e037
test byte [edi + 0xc], 0x80
je 0x1007dfe7
mov ecx, edi
call fcn.1000b2b4
mov eax, dword [0x1017ca0c]
mov ecx, dword [eax]
test ecx, ecx
je 0x1007e001
cmp ecx, edi
je 0x1007e001
test byte [ecx + 0xc], 0x80
je 0x1007e001
call fcn.1000b2b4
mov ecx, edi
call fcn.1007dbb9
mov dword [esi], eax
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
or dword [esi + 0xc], 0xffffffff
mov ecx, edi
mov dword [esi + 4], eax
mov eax, dword [ebp - 8]
mov dword [esi + 8], str._unknown_file_
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
push dword [ebp - 4]
call fcn.1000b2b4
add esi, 0x18
mov dword [esi], edi
lea eax, [esi + 8]
pop edi
pop esi
pop ebx
leave
ret
call fcn.1000b2b4
int3

Function at 0x1007e242
Capabilities:
Get system information on windows

Disassembly:
push 0x28
mov eax, 0x100e38cc
call fcn.1000131b
mov edi, ecx
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov ebx, dword [ebp - 0x20]
xor ecx, ecx
push 0x18
mov eax, ebx
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
cmp dword [0x1017ca10], 0
je 0x1007e28e
push 2
pop edx
mov ecx, eax
call fcn.1000b2b4
jmp 0x1007e296
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
mov dword [ebp - 0x10], eax
xor esi, esi
mov dword [ebp - 4], esi
test eax, eax
je 0x1007e2ba
push 0x1007f877
push 0x1007e2c4
push ebx
lea esi, [eax + 4]
mov dword [eax], ebx
push 0x18
push esi
call fcn.100db088
mov dword [edi], esi
mov eax, edi
call fcn.100013b7
ret
Function at 0x1007eb3d
Capabilities:
Get system information on windows

Disassembly:
push 0x28
mov eax, 0x100e38cc
call fcn.1000131b
mov edi, ecx
xor ebx, ebx
xor esi, esi
inc ebx
mov dword [edi + 8], esi
push ebx
mov dword [edi + 0x10], esi
call fcn.1007eec0
mov dword [edi], eax
cmp dword [0x1017ca10], esi
je 0x1007eb73
push 2
pop edx
push 4
pop ecx
call fcn.1000b2b4
jmp 0x1007eb7c
push 4
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], esi
test eax, eax
je 0x1007eb8f
mov ecx, eax
call fcn.1007e242
jmp 0x1007eb91
mov eax, esi
push esi
mov esi, dword [sym.imp.kernel32.dll_CreateMemoryResourceNotification]
mov dword [edi + 4], eax
call esi
push ebx
mov dword [edi + 0x10], eax
call esi
mov dword [edi + 0x14], eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov dword [edi + 0x18], eax
mov eax, dword [edi]
test eax, eax
je 0x1007ebcb
mov eax, dword [eax]
test eax, eax
je 0x1007ebcb
cmp dword [eax + 0x28], 0xdeadbeef
je 0x1007ebcd
xor ebx, ebx
mov dword [edi + 0xc], ebx
mov eax, edi
call fcn.100013b7
ret

Function at 0x1007ed05
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x10148250]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x1017ca0c]
xor eax, eax
mov dword [ebp - 0x48], eax
test ecx, ecx
je 0x1007ed7e
cmp dword [ecx + 0x10], eax
je 0x1007ed7e
lea eax, [ebp - 0x48]
push eax
push dword [ecx + 0x10]
call dword [sym.imp.kernel32.dll_QueryMemoryResourceNotification]
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x1007ed7e
push 0x40
push eax
lea eax, [ebp - 0x44]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x44], 0x40
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.kernel32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x1007ed7b
cmp dword [ebp - 0x10], 0
ja 0x1007ed77
jb 0x1007ed72
cmp dword [ebp - 0x14], 0x18000000
jae 0x1007ed77
xor eax, eax
inc eax
jmp 0x1007ed7e
xor eax, eax
jmp 0x1007ed7e
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100013a8
leave
ret

Function at 0x1007f3d6
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push esi
push dword [0x1017be80]
mov dword [ebp - 4], esi
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ecx, dword [0x1017ca0c]
test ecx, ecx
jne 0x1007f403
call fcn.1007ebd8
mov ecx, dword [0x1017ca0c]
lea eax, [ebp - 4]
push eax
call fcn.1000b2b4
test eax, eax
je 0x1007f451
cmp dword [0x1017ca10], esi
je 0x1007f425
push 2
pop edx
push 0x1c
pop ecx
call fcn.1000b2b4
jmp 0x1007f42e
push 0x1c
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
test eax, eax
je 0x1007f43e
push dword [ebp - 4]
mov ecx, eax
call fcn.1000b2b4
mov esi, eax
test esi, esi
je 0x1007f451
push esi
push dword [0x1017be80]
call dword [sym.imp.kernel32.dll_TlsSetValue]
jmp 0x1007f466
cmp dword [ebp - 4], 0
je 0x1007f466
mov ecx, dword [0x1017ca0c]
lea eax, [ebp - 4]
push eax
call sym.fpsrvutl.dll_Ordinal_4892
mov eax, esi
pop esi
leave
ret
Function at 0x1007f576
Capabilities:
Print debug messages

Disassembly:
push 0x224
mov eax, 0x100e3a17
call fcn.10001af6
mov esi, ecx
mov eax, dword [esi + 0x10]
sub eax, 1
je 0x1007f594
sub eax, 3
jne 0x1007f59b
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x54]
and dword [ebp - 0x218], 0
mov ebx, dword [esi]
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov ecx, dword [esi + 0xc]
mov edi, 0x100
mov dword [ebp - 0x22c], eax
mov eax, ecx
shr eax, 5
and eax, 0xffffff01
mov byte [ebp - 0x211], 0
mov dword [ebp - 0x224], eax
test edi, ecx
je 0x1007f75a
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
mov ecx, dword [esi + 0xc]
test edi, ecx
jne 0x1007f780
jmp 0x1007f75a
cmp byte [ebp - 0x212], 0
je 0x1007f75a
mov edi, dword [ebp - 0x218]
mov eax, dword [ebp - 0x224]
lea ecx, [edi + 0x18]
test al, al
jne 0x1007f610
mov ecx, edi
xor edx, edx
test al, al
cmove edi, edx
add ecx, 8
mov dword [ebp - 0x230], ecx
cmp byte [ebp - 0x211], dl
jne 0x1007f69e
test dword [esi + 0xc], 0x100
je 0x1007f654
test al, al
je 0x1007f647
mov eax, dword [ebp - 0x22c]
cmp dword [edi + 4], eax
jne 0x1007f755
and dword [edi + 4], edx
push str._r_nGlobal_memory_allocations__not_freed__by_this_request__not_necessarily_a_leak__r_n
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
jmp 0x1007f68b
push ecx
lea ecx, [ebp - 0x21c]
call fcn.10001e74
xor ecx, ecx
push str._r_nDetected_memory_leaks__r_n
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [vtable.VprocessGlobals.0]
push ecx
push 0x10178fec
call dword [eax + 0x24]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
add esp, 0x10
call fcn.1000221e
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x230]
mov byte [ebp - 0x211], 1
test al, al
je 0x1007f6d6
push dword [edi + 0xc]
cmp dword [edi + 8], 0
mov eax, 0x100ea6e8
cmovne eax, dword [edi + 8]
push eax
push 0
push dword [edi + 0x10]
lea eax, [edi + 0x18]
push eax
push dword [edi]
lea eax, [ebp - 0x210]
push str.Memory_leak:__Allocation__08d__Address_0x_08p_total__I64u_bytes__n_____________in__s_at_line__d_n
push 0xffffffffffffffff
push eax
call fcn.1000b2b4
add esp, 0x24
jmp 0x1007f6f9
mov eax, dword [ebp - 0x228]
push 0
add eax, 0xfffffffc
push eax
push ecx
push str.Memory_leak:_Address_0x_08p_approximate_total__I64u_bytes__n
lea eax, [ebp - 0x210]
push 0xffffffffffffffff
push eax
call fcn.1000b2b4
add esp, 0x18
mov edi, 0x100
mov byte [ebp - 0x11], 0
test dword [esi + 0xc], edi
je 0x1007f716
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
jmp 0x1007f75a
push ecx
lea ecx, [ebp - 0x220]
call fcn.10001e74
lea ecx, [ebp - 0x210]
mov dword [ebp - 4], 1
mov eax, dword [vtable.VprocessGlobals.0]
push ecx
push 0
push 0
push 0x10178fec
call dword [eax + 0x24]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
add esp, 0x10
call fcn.1000221e
jmp 0x1007f75a
mov edi, 0x100
mov eax, dword [ebx]
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x218]
push ecx
mov eax, dword [eax + 0x30]
lea ecx, [ebp - 0x212]
push ecx
mov ecx, ebx
call eax
test al, al
jne 0x1007f5ee
test dword [esi + 0xc], edi
je 0x1007f78c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x2c]
call fcn.10001b2d
ret
Function at 0x10084f0d
Capabilities:
Get file attributes

Disassembly:
push esi
mov esi, ecx
mov ecx, 0x10178fec
call sym.fpsrvutl.dll_Ordinal_2694
mov ecx, dword [esi + 0x200]
push ecx
cmp eax, 2
jne 0x10084f2e
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
pop esi
ret
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
pop esi
ret

Function at 0x10084f36
Capabilities:
Set file attributes

Disassembly:
push ecx
push esi
mov esi, ecx
mov ecx, 0x10178fec
push edi
mov edi, edx
call sym.fpsrvutl.dll_Ordinal_2694
mov ecx, dword [esi + 0x200]
push edi
push ecx
cmp eax, 2
jne 0x10084f5c
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
jmp 0x10084f62
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
pop edi
pop esi
pop ecx
ret

Function at 0x10084f66
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov ecx, 0x10178fec
call sym.fpsrvutl.dll_Ordinal_2694
mov ecx, dword [esi + 0x200]
push ecx
cmp eax, 2
jne 0x10084f87
call dword [sym.imp.kernel32.dll_DeleteFileW]
pop esi
ret
call dword [sym.imp.kernel32.dll_DeleteFileA]
pop esi
ret

Function at 0x10085838
Capabilities:
Copy file

Disassembly:
push 0x438
mov eax, 0x100e4404
call fcn.10001af6
mov edi, ecx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x434]
call fcn.10005575
push edi
call fcn.1000b2b4
xor esi, esi
lea ecx, [ebp - 0x444]
push ebx
mov dword [ebp - 4], esi
call sym.fpsrvutl.dll_Ordinal_4804
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 1
call fcn.10005575
lea eax, [ebp - 0x444]
push eax
call fcn.1000b2b4
push edi
mov byte [ebp - 4], 2
call sym.fpsrvutl.dll_Ordinal_4730
test al, al
jne 0x100858d2
lea eax, [ebp - 0x444]
push eax
call sym.fpsrvutl.dll_Ordinal_4730
test al, al
jne 0x100858d2
mov ecx, 0x10178fec
call sym.fpsrvutl.dll_Ordinal_2694
push esi
push dword [ebp - 0x24]
push dword [ebp - 0x234]
cmp eax, 2
jne 0x100858c8
call dword [sym.imp.kernel32.dll_CopyFileW]
jmp 0x100858ce
call dword [sym.imp.kernel32.dll_CopyFileA]
test al, al
jne 0x100858e2
push dword [ebx]
mov ecx, 0x20055
push dword [edi]
call fcn.1008503f
mov esi, eax
lea ecx, [ebp - 0x224]
call fcn.100057a4
lea ecx, [ebp - 0x444]
call sym.fpsrvutl.dll_Ordinal_974
lea ecx, [ebp - 0x434]
call fcn.100057a4
mov eax, esi
call fcn.10001b2d
ret 4

Function at 0x10086590
Capabilities:
Delete directory

Disassembly:
push 0x214
mov eax, 0x100dedc4
call fcn.10001af6
mov edi, ecx
call sym.fpsrvutl.dll_Ordinal_1195
lea ecx, [ebp - 0x220]
call fcn.10005575
push edi
call fcn.1000b2b4
xor esi, esi
mov ecx, 0x10178fec
mov dword [ebp - 4], esi
call sym.fpsrvutl.dll_Ordinal_2694
push dword [ebp - 0x20]
cmp eax, 2
jne 0x100865d6
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
jmp 0x100865dc
call dword [sym.imp.kernel32.dll_RemoveDirectoryA]
test eax, eax
jne 0x100865f7
mov esi, dword [edi]
call dword [sym.imp.kernel32.dll_GetLastError]
push esi
mov edx, eax
mov ecx, 0x20004
call fcn.1005ca7d
mov esi, eax
lea ecx, [ebp - 0x220]
call fcn.100057a4
mov eax, esi
call fcn.10001b2d
ret
Function at 0x10086a7b
Capabilities:
Delete file
Move file

Disassembly:
push 0x444
mov eax, 0x100e46fc
call fcn.10001af6
mov esi, ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x224]
xor ebx, ebx
mov dword [ebp - 0x440], edi
mov dword [ebp - 0x43c], ebx
call fcn.10005575
push edi
call fcn.1000b2b4
lea ecx, [ebp - 0x434]
mov dword [ebp - 4], ebx
call fcn.10005575
push esi
call fcn.1000b2b4
mov byte [ebp - 4], 1
cmp byte [ebp + 0xc], bl
jne 0x10086b2b
push edi
lea ecx, [ebp - 0x450]
call sym.fpsrvutl.dll_Ordinal_4804
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 2
call sym.fpsrvutl.dll_Ordinal_542
test al, al
je 0x10086b1c
lea eax, [ebp - 0x450]
mov ecx, esi
push eax
call sym.fpsrvutl.dll_Ordinal_1248
test al, al
jne 0x10086b1c
push dword [edi]
mov ecx, 0x20019
push dword [esi]
call fcn.1008503f
lea ecx, [ebp - 0x450]
mov ebx, eax
call sym.fpsrvutl.dll_Ordinal_974
jmp 0x10086c58
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 1
call sym.fpsrvutl.dll_Ordinal_974
mov ecx, esi
call sym.fpsrvutl.dll_Ordinal_542
test al, al
jne 0x10086b44
push dword [esi]
xor edx, edx
mov ecx, 0x20015
jmp 0x10086bf5
mov ecx, esi
call sym.fpsrvutl.dll_Ordinal_1195
push esi
call sym.fpsrvutl.dll_Ordinal_4730
test al, al
jne 0x10086b85
push edi
lea ecx, [ebp - 0x450]
call sym.fpsrvutl.dll_Ordinal_4804
lea eax, [ebp - 0x450]
mov byte [ebp - 4], 3
push eax
mov dword [ebp - 0x43c], 1
call sym.fpsrvutl.dll_Ordinal_4730
mov byte [ebp - 0x435], bl
test al, al
je 0x10086b8c
mov byte [ebp - 0x435], 1
mov dword [ebp - 4], 1
test byte [ebp - 0x43c], 1
je 0x10086ba7
lea ecx, [ebp - 0x450]
call sym.fpsrvutl.dll_Ordinal_974
cmp byte [ebp - 0x435], 0
je 0x10086bb7
push dword [esi]
push 0xd
pop edx
jmp 0x10086bf0
mov ecx, 0x10178fec
call sym.fpsrvutl.dll_Ordinal_2694
cmp eax, 2
jne 0x10086bfe
xor eax, eax
cmp byte [ebp + 0xc], al
setne al
add eax, 8
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x234]
call dword [sym.imp.kernel32.dll_MoveFileExW]
test eax, eax
jne 0x10086c50
mov esi, dword [esi]
call dword [sym.imp.kernel32.dll_GetLastError]
push esi
mov edx, eax
mov ecx, 0x20014
call fcn.1005ca7d
mov ebx, eax
jmp 0x10086c58
push dword [ebp - 0x24]
push dword [ebp - 0x234]
call dword [sym.imp.kernel32.dll_MoveFileA]
test eax, eax
jne 0x10086c50
cmp byte [ebp + 0xc], al
je 0x10086be5
mov edi, dword [sym.imp.kernel32.dll_GetLastError]
call edi
sub eax, 0x50
je 0x10086c28
sub eax, 0x67
jne 0x10086c44
push dword [ebp - 0x24]
call dword [sym.imp.kernel32.dll_DeleteFileA]
push dword [ebp - 0x24]
push dword [ebp - 0x234]
call dword [sym.imp.kernel32.dll_MoveFileA]
test eax, eax
jne 0x10086c4a
mov esi, dword [esi]
call edi
jmp 0x10086bed
mov edi, dword [ebp - 0x440]
push edi
mov ecx, esi
call fcn.1000b2b4
lea ecx, [ebp - 0x434]
call fcn.100057a4
lea ecx, [ebp - 0x224]
call fcn.100057a4
mov eax, ebx
call fcn.10001b2d
ret 8
Function at 0x10087b36
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
call sym.fpsrvutl.dll_Ordinal_2694
cmp eax, 2
jne 0x10087ba6
cmp byte [0x1017bdd7], 0
je 0x10087ba6
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 1
push 0xc
call dword [sym.imp.kernel32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x10087bb1
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x10087b9b
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, eax
call fcn.10087a32
push eax
call fcn.1000b2b4
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x10087bb1
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
leave
ret 4

Function at 0x1008947e
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push dword [0x10150ddc]
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp byte [0x1017bdd7], 0
mov ecx, eax
je 0x100894a8
test ecx, ecx
je 0x100894a8
cmp byte [ecx + 5], 0
je 0x100894a8
xor ebx, ebx
jmp 0x100894ab
push 2
pop ebx
test ecx, ecx
je 0x100894b6
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x100894bb
call sym.fpsrvutl.dll_Ordinal_981
mov esi, eax
test esi, esi
je 0x100894f9
push edi
mov edi, dword [esi + 0x1c]
cmp edi, 3
je 0x100894cd
mov dword [esi + 0x1c], ebx
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.1000b2b4
mov ecx, eax
test ecx, ecx
jne 0x100894e9
mov ecx, esi
call sym.fpsrvutl.dll_Ordinal_5512
jmp 0x100894ef
mov eax, dword [ecx]
push 1
call dword [eax]
cmp dword [esi + 0x1c], 3
je 0x100894f8
mov dword [esi + 0x1c], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x100896cf
Capabilities:
Access the windows event log
Get thread local storage value

Disassembly:
push 0x418
mov eax, 0x100e4c77
call fcn.10001af6
mov dword [ebp - 0x420], ecx
mov esi, dword [ebp + 0x14]
xor ebx, ebx
mov eax, dword [ebp + 0x18]
or edi, 0xffffffff
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x424], eax
test esi, esi
je 0x1008972b
push eax
push ebx
push esi
push edi
lea eax, [ebp - 0x410]
push 0x400
push eax
call fcn.100401c9
push dword [eax + 4]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsnprintf_s]
add esp, 0x20
test eax, eax
cmovs eax, edi
test eax, eax
jns 0x1008972e
mov byte [ebp - 0x11], bl
lea ecx, [ebp - 0x410]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10089734
add ecx, 0xfffffffe
mov al, byte [ecx]
cmp al, 0xa
je 0x10089748
cmp al, 0xd
jne 0x10089757
lea eax, [ebp - 0x410]
cmp ecx, eax
jb 0x10089757
mov byte [ecx], bl
dec ecx
jmp 0x1008973e
mov eax, dword [0x1017ca68]
push 2
pop edi
cmp dword [eax + 4], edi
setne bl
jne 0x10089893
cmp byte [ebp - 0x410], 0
je 0x100898ac
jmp 0x10089788
mov al, byte [ecx]
cmp al, 0xa
je 0x10089784
cmp al, 0xd
jne 0x10089787
mov byte [ecx], 0x20
dec ecx
lea eax, [ebp - 0x410]
cmp ecx, eax
jae 0x1008977a
push eax
lea ecx, [ebp - 0x414]
call fcn.1000b2b4
and dword [ebp - 4], 0
lea ecx, [ebp - 0x414]
push 0
call sym.fpsrvutl.dll_Ordinal_2209
mov ecx, dword [ebp + 0x10]
movsx eax, cx
cmp eax, 0xfffffffd
je 0x100897d2
cmp eax, 0xfffffffe
je 0x100897d5
cmp eax, 0xffffffff
je 0x100897cd
test eax, eax
je 0x100897d2
cmp eax, 1
je 0x100897d5
push 4
pop edi
jmp 0x100897d5
xor edi, edi
inc edi
mov eax, dword [ebp - 0x414]
push dword [0x10150ddc]
mov dword [ebp - 0x41c], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ecx, eax
call sym.fpsrvutl.dll_Ordinal_5072
test eax, eax
je 0x1008980f
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x414]
lea ecx, [ecx - 0xc]
call sym.fpsrvutl.dll_Ordinal_5727
jmp 0x10089893
push str.Windows_SharePoint_Services_4.0
xor ebx, ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
jne 0x1008982b
call dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x10089849
push ebx
lea eax, [ebp - 0x41c]
push eax
push ebx
push 1
push ebx
push 0x3e8
push ebx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
test eax, eax
jne 0x1008984b
mov bl, 1
test esi, esi
je 0x10089856
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
and dword [ebp - 4], 0
push dword [0x10150ddc]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ecx, eax
call sym.fpsrvutl.dll_Ordinal_2309
test eax, eax
je 0x1008987b
mov ecx, dword [eax]
push 1
mov edx, dword [ecx]
mov ecx, eax
call edx
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x414]
lea ecx, [ecx - 0xc]
call sym.fpsrvutl.dll_Ordinal_5727
mov esi, dword [ebp - 0x418]
test bl, bl
je 0x100898ac
mov ecx, dword [ebp - 0x420]
push dword [ebp - 0x424]
push esi
mov eax, dword [ecx]
push dword [ebp + 0x10]
call dword [eax + 0x38]
call fcn.10001b2d
ret 0x14
Function at 0x1008e15a
Capabilities:
Delete registry value

Disassembly:
push 0x214
mov eax, 0x100e4fbe
call fcn.10001af6
mov esi, ecx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x220]
test ebx, ebx
mov eax, 0x100ea6e8
cmovne eax, ebx
push eax
call fcn.1000b2b4
xor edi, edi
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], edi
call fcn.10005575
lea eax, [ebp - 0x220]
push eax
call fcn.1000b2b4
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx - 0xc]
call sym.fpsrvutl.dll_Ordinal_5727
mov esi, dword [esi + 0xc]
mov ecx, 0x10178fec
call sym.fpsrvutl.dll_Ordinal_2694
push dword [ebp - 0x1c]
push esi
cmp eax, 2
jne 0x1008e1d0
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x1008e1d6
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, eax
test esi, esi
je 0x1008e217
cmp dword [0x1017ca10], 0
push 0x14
je 0x1008e1ef
pop ecx
call fcn.1000b2b4
jmp 0x1008e1f6
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x1008e217
push ebx
push esi
push edi
push 0x30021
push eax
call sym.fpsrvutl.dll_Ordinal_5274
add esp, 0x14
mov edi, eax
lea ecx, [ebp - 0x21c]
call fcn.100057a4
mov eax, edi
call fcn.10001b2d
ret 4
Function at 0x1008e549
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x238
mov eax, 0x100e509b
call fcn.10001af6
mov edi, ecx
lea ecx, [ebp - 0x21c]
call fcn.10005575
mov ebx, 0x10178fec
mov esi, 0x104
mov ecx, ebx
call sym.fpsrvutl.dll_Ordinal_2694
cmp eax, 2
mov ecx, 0x208
cmove esi, ecx
cmp esi, dword [ebp - 0x18]
jle 0x1008e594
push 1
push esi
lea ecx, [ebp - 0x21c]
call fcn.1000b2b4
xor esi, esi
mov ecx, ebx
mov dword [ebp - 4], esi
call sym.fpsrvutl.dll_Ordinal_2694
cmp eax, 2
mov eax, dword [ebp - 0x18]
jne 0x1008e5aa
shr eax, 1
mov ebx, dword [edi + 0xc]
mov ecx, 0x10178fec
mov dword [ebp - 0x220], eax
call sym.fpsrvutl.dll_Ordinal_2694
cmp eax, 2
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x23c]
push eax
push esi
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x1c]
push ebx
jne 0x1008e60e
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
jmp 0x1008e614
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x1008e623
mov ecx, eax
call fcn.1008d65e
mov esi, eax
jmp 0x1008e63e
mov eax, dword [ebp - 0x224]
inc eax
mov byte [edi + 0x10], 1
mov dword [edi + 0x58], eax
mov eax, dword [ebp - 0x228]
inc eax
mov dword [edi + 0x54], esi
mov dword [edi + 0x5c], eax
lea ecx, [ebp - 0x21c]
call fcn.100057a4
mov eax, esi
call fcn.10001b2d
ret
Function at 0x1008e651
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x430
mov eax, 0x100e50e4
call fcn.10001af6
mov edi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x428]
mov esi, dword [edi + 0x58]
mov dword [ebp - 0x43c], eax
call fcn.10005575
push 0
push esi
call fcn.1000b2b4
and dword [ebp - 4], 0
lea ecx, [ebp - 0x21c]
mov esi, dword [edi + 0x5c]
call fcn.10005575
xor ebx, ebx
inc ebx
cmp esi, dword [ebp - 0x18]
jle 0x1008e6a2
push ebx
push esi
call fcn.1000b2b4
mov ecx, 0x10178fec
mov byte [ebp - 4], bl
call sym.fpsrvutl.dll_Ordinal_2694
cmp eax, 2
mov eax, dword [ebp - 0x224]
jne 0x1008e6bc
shr eax, 1
mov esi, dword [edi + 0x54]
mov ecx, 0x10178fec
mov dword [ebp - 0x434], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x430], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x42c], eax
call sym.fpsrvutl.dll_Ordinal_2694
cmp eax, 2
lea eax, [ebp - 0x430]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x438]
push eax
push 0
lea eax, [ebp - 0x434]
push eax
push dword [ebp - 0x228]
push esi
push dword [ebp - 0x42c]
jne 0x1008e715
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
jmp 0x1008e71b
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x1008e777
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x42c]
call sym.fpsrvutl.dll_Ordinal_2271
mov ecx, dword [ebp - 0x43c]
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 2
lea edx, [ebp - 0x42c]
push dword [ebp - 0x430]
push eax
push dword [ebp - 0x438]
call fcn.1008db58
mov ecx, eax
test ecx, ecx
je 0x1008e764
mov eax, dword [ecx]
push ebx
call dword [eax]
mov ecx, dword [ebp - 0x42c]
inc dword [edi + 0x54]
lea ecx, [ecx - 0xc]
call sym.fpsrvutl.dll_Ordinal_5727
jmp 0x1008e77d
mov byte [edi + 0x10], 0
xor bl, bl
lea ecx, [ebp - 0x21c]
call fcn.100057a4
lea ecx, [ebp - 0x428]
call fcn.100057a4
mov al, bl
call fcn.10001b2d
ret 4