joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a4498
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
call sym.fpsrvutl.dll_Ordinal_2694
cmp eax, 2
jne 0x100a4508
cmp byte [0x10181cda], 0
je 0x100a4508
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 0x100a4513
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 0x100a44fd
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, eax
call fcn.1006d275
push eax
call fcn.10047e8b
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x100a4513
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
leave
ret 4

Function at 0x100a5d6e
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [0x10174460]
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp byte [0x10181cda], 0
mov ecx, eax
je 0x100a5d96
test ecx, ecx
je 0x100a5d96
cmp byte [ecx + 5], 0
je 0x100a5d96
mov al, 1
jmp 0x100a5d98
xor al, al
push esi
push edi
movzx edi, al
xor edi, 1
add edi, edi
test ecx, ecx
je 0x100a5dad
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x100a5db2
call sym.fpsrvutl.dll_Ordinal_981
mov esi, eax
test esi, esi
je 0x100a5df4
push ebx
mov ebx, dword [esi + 0x1c]
cmp ebx, 3
je 0x100a5dc4
mov dword [esi + 0x1c], edi
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.10047e8b
mov edi, eax
test edi, edi
jne 0x100a5de2
mov ecx, esi
call sym.fpsrvutl.dll_Ordinal_5512
test edi, edi
je 0x100a5dea
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
cmp dword [esi + 0x1c], 3
je 0x100a5df3
mov dword [esi + 0x1c], ebx
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x100a5fca
Capabilities:
Access the windows event log
Get thread local storage value

Disassembly:
push 0x418
mov eax, 0x100e972f
call fcn.10001b03
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 0x100a6026
push eax
push ebx
push esi
push edi
lea eax, [ebp - 0x410]
push 0x400
push eax
call fcn.10041d24
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 0x100a6029
mov byte [ebp - 0x11], bl
lea ecx, [ebp - 0x410]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100a602f
add ecx, 0xfffffffe
mov al, byte [ecx]
cmp al, 0xa
je 0x100a6043
cmp al, 0xd
jne 0x100a6052
lea eax, [ebp - 0x410]
cmp ecx, eax
jb 0x100a6052
mov byte [ecx], bl
dec ecx
jmp 0x100a6039
mov eax, dword [0x101827e8]
push 2
pop edi
cmp dword [eax + 4], edi
setne bl
jne 0x100a618e
cmp byte [ebp - 0x410], 0
je 0x100a61a7
jmp 0x100a6083
mov al, byte [ecx]
cmp al, 0xa
je 0x100a607f
cmp al, 0xd
jne 0x100a6082
mov byte [ecx], 0x20
dec ecx
lea eax, [ebp - 0x410]
cmp ecx, eax
jae 0x100a6075
push eax
lea ecx, [ebp - 0x414]
call fcn.10047e8b
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 0x100a60cd
cmp eax, 0xfffffffe
je 0x100a60d0
cmp eax, 0xffffffff
je 0x100a60c8
test eax, eax
je 0x100a60cd
cmp eax, 1
je 0x100a60d0
push 4
pop edi
jmp 0x100a60d0
xor edi, edi
inc edi
mov eax, dword [ebp - 0x414]
push dword [0x10174460]
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 0x100a610a
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x414]
lea ecx, [ecx - 0xc]
call sym.fpsrvutl.dll_Ordinal_5727
jmp 0x100a618e
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 0x100a6126
call dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x100a6144
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 0x100a6146
mov bl, 1
test esi, esi
je 0x100a6151
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
and dword [ebp - 4], 0
push dword [0x10174460]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ecx, eax
call sym.fpsrvutl.dll_Ordinal_2309
test eax, eax
je 0x100a6176
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 0x100a61a7
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.10001b39
ret 0x14
Function at 0x100aeef0
Capabilities:
Compare security identifiers

Disassembly:
push 0x2c
mov eax, 0x100e9e7a
call fcn.10001371
mov ebx, ecx
push ecx
lea ecx, [ebp - 0x14]
call fcn.10001e94
and dword [ebp - 4], 0
lea eax, [ebp - 0x18]
and dword [ebp - 0x18], 0
add ebx, 0x1c
push eax
mov eax, dword [ebp + 8]
mov ecx, ebx
mov dword [ebp - 0x1c], ebx
push dword [eax]
call fcn.10047e8b
mov edi, dword [ebp - 0x18]
xor ecx, ecx
test eax, eax
cmovne edi, ecx
sete byte [ebp - 0xd]
jne 0x100aef8b
lea ecx, [edi + 0xc]
call fcn.10047e8b
mov ecx, dword [ebp + 0xc]
lea eax, [edi + 0x18]
push eax
call fcn.10047e8b
mov ecx, dword [ebp + 0x10]
lea eax, [edi + 0x1c]
push eax
call fcn.10047e8b
mov eax, dword [ebp + 0x14]
lea ecx, [edi + 0xc]
mov edx, dword [edi + 0x24]
mov dword [eax], edx
call fcn.10047e8b
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
dec eax
push 1
pop ebx
jne 0x100af036
test edi, edi
je 0x100af036
mov eax, dword [edi]
mov ecx, edi
push ebx
call dword [eax]
jmp 0x100af036
and dword [ebp - 0x38], ecx
lea eax, [ebp - 0x38]
and dword [ebp - 0x34], ecx
mov ecx, ebx
movaps xmm0, xmmword [0x101300b0]
or dword [ebp - 0x20], 0xffffffff
push eax
movups xmmword [ebp - 0x30], xmm0
call fcn.10047e8b
test eax, eax
jne 0x100af028
mov edi, dword [ebp - 0x1c]
xor ebx, ebx
inc ebx
mov esi, dword [ebp - 0x30]
test esi, esi
je 0x100aefca
mov eax, dword [ebp - 0x2c]
cmp eax, 6
ja 0x100aefca
mov esi, dword [esi + eax*4 + 0x20]
jmp 0x100aefcc
xor esi, esi
lea ecx, [esi + 0xc]
call fcn.10047e8b
mov eax, dword [ebp + 8]
push dword [esi + 0x20]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x100af009
mov ecx, dword [ebp + 0xc]
lea eax, [esi + 0x18]
push eax
call fcn.10047e8b
mov ecx, dword [ebp + 0x10]
lea eax, [esi + 0x1c]
push eax
call fcn.10047e8b
mov ecx, dword [ebp + 0x14]
mov eax, dword [esi + 0x24]
mov byte [ebp - 0xd], bl
mov dword [ecx], eax
lea ecx, [esi + 0xc]
call fcn.10047e8b
cmp byte [ebp - 0xd], 0
jne 0x100af026
lea eax, [ebp - 0x38]
mov ecx, edi
push eax
call fcn.10047e8b
test eax, eax
je 0x100aefb5
mov ebx, edi
lea eax, [ebp - 0x38]
mov ecx, ebx
push eax
call fcn.10047e8b
mov bl, byte [ebp - 0xd]
lea ecx, [ebp - 0x14]
call fcn.10002232
mov al, bl
call fcn.1000140a
ret 0x10
Function at 0x100b1801
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push edi
mov edi, ecx
mov dword [ebp - 4], esi
cmp dword [ebp + 0xc], esi
jne 0x100b181a
xor eax, eax
jmp 0x100b18c1
lea eax, [ebp - 4]
push eax
push esi
push 0x40000001
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x100b18a7
mov eax, dword [edi + 0x408]
add eax, dword [ebp - 4]
mov ecx, dword [edi + 0x40c]
cmp eax, ecx
jbe 0x100b1851
sub eax, ecx
mov ecx, edi
push eax
call fcn.10047e8b
mov ecx, dword [edi + 0x408]
mov eax, dword [edi]
lea eax, [eax + ecx*2]
lea ecx, [ebp - 4]
push ecx
push eax
push 0x40000001
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x100b1891
mov eax, dword [edi + 0x408]
mov esi, dword [ebp - 4]
add eax, esi
cmp eax, dword [edi + 0x40c]
ja 0x100b18bf
mov dword [edi + 0x408], eax
jmp 0x100b18bf
mov eax, dword [vtable.VprocessGlobals.0]
push str.Unable_to_write_base_64_encoded_value.
push esi
push esi
push 0x1017e06c
call dword [eax + 0x24]
jmp 0x100b18bc
mov ecx, dword [vtable.VprocessGlobals.0]
push str.Unable_to_determine_size_of_base_64_encoded_value.
push esi
push esi
push 0x1017e06c
call dword [ecx + 0x24]
add esp, 0x10
mov eax, esi
pop edi
pop esi
leave
ret 8
Function at 0x100b2182
Capabilities:
Get thread local storage value

Disassembly:
push 0xc
mov eax, 0x100e9f6a
call fcn.10001371
mov edi, dword [ebp + 0x14]
xor ebx, ebx
mov dword [ebp - 0x18], ebx
push dword [0x10174460]
movzx esi, di
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100b2288
cmp dword [ebp + 8], 0x80001
je 0x100b2288
test di, di
jne 0x100b21c3
movzx edi, word [eax + 0x68]
mov eax, 0x409
cmp di, ax
je 0x100b2288
test si, si
je 0x100b21e5
push edi
lea eax, [ebp - 0x14]
push eax
call fcn.100a5cb6
xor ecx, ecx
inc ecx
jmp 0x100b21f0
lea ecx, [ebp + 0x14]
call fcn.1006e28b
push 2
pop ecx
mov esi, dword [eax]
mov dword [ebp - 0x18], esi
lea eax, [esi - 0xc]
lock inc dword [eax]
mov dword [ebp - 4], 1
test cl, 2
je 0x100b221b
and ecx, 0xfffffffd
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x14]
lea ecx, [ecx - 0xc]
call sym.fpsrvutl.dll_Ordinal_5727
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 2
test cl, 1
je 0x100b222f
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0xc]
call sym.fpsrvutl.dll_Ordinal_5727
cmp dword [esi - 4], ebx
je 0x100b2280
test di, di
jne 0x100b2251
push 0x5c
lea ecx, [esi - 0xc]
call fcn.10047e8b
add eax, 0xfffffffc
add eax, esi
push eax
call fcn.10047e8b
movzx edi, ax
mov eax, 0x409
cmp di, ax
je 0x100b2280
push dword [ebp + 0x10]
lea edx, [ebp - 0x18]
mov ecx, edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100b2337
mov edi, eax
test edi, edi
je 0x100b2280
lea ecx, [esi - 0xc]
call sym.fpsrvutl.dll_Ordinal_5727
mov eax, edi
jmp 0x100b22b8
lea ecx, [esi - 0xc]
call sym.fpsrvutl.dll_Ordinal_5727
mov ecx, dword [ebp + 8]
call fcn.100b2667
test eax, eax
js 0x100b22b6
push 0xffffffffffffffff
push dword [eax*8 + 0x10177524]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
add esp, 0x10
push dword [ebp + 0xc]
call fcn.10047e8b
mov ebx, eax
mov eax, ebx
call fcn.1000140a
ret 0x10
Function at 0x100b36b5
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14c
mov eax, 0x100ea115
call fcn.10001b03
mov edi, ecx
lea esi, [edi + 0x68]
mov eax, dword [esi]
cmp dword [eax - 4], 0
je 0x100b36dd
cmp dword [edi], 0
je 0x100b36dd
mov al, 1
jmp 0x100b38a7
push 0x124
lea eax, [ebp - 0x13c]
xor bl, bl
push 0
push eax
mov dword [ebp - 0x144], ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x13c]
mov edx, str.msstko32.dll
mov ecx, str.042F907C_714C_41C0_ABDC_004DD2497A1C
push eax
call fcn.10047e8b
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x140]
call fcn.10047e8b
and dword [ebp - 4], 0
lea eax, [ebp - 0x13c]
push 0x100ee700
push eax
call fcn.10047e8b
test eax, eax
je 0x100b37cb
push 0x101282f8
lea ecx, [ebp - 0x148]
call fcn.10047e8b
xor eax, eax
lea ecx, [ebp - 0x140]
inc eax
mov byte [ebp - 4], al
mov esi, dword [ebp - 0x148]
mov eax, dword [ebp - 0x140]
push dword [esi - 4]
push esi
push 0
push dword [eax - 4]
call fcn.10047e8b
lea ecx, [esi - 0xc]
mov byte [ebp - 4], bl
call sym.fpsrvutl.dll_Ordinal_5727
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x158]
call sym.fpsrvutl.dll_Ordinal_4804
mov ecx, eax
mov byte [ebp - 4], 2
call sym.fpsrvutl.dll_Ordinal_542
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 0
mov bl, al
call sym.fpsrvutl.dll_Ordinal_974
mov eax, dword [ebp - 0x144]
lea esi, [edi + 0x68]
movzx eax, al
test bl, bl
mov ebx, eax
mov dword [ebp - 0x144], eax
push 1
pop eax
cmovne ebx, eax
test bl, bl
jne 0x100b3876
lea eax, [ebp - 0x144]
mov dword [ebp - 0x148], 0x124
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftShared_ToolsProofing_Tools_stemmer1042Normal
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100b3823
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x13c]
push eax
push ebx
push ebx
push str.Engine
push dword [ebp - 0x144]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
lea eax, [ebp - 0x13c]
sete bh
push eax
lea ecx, [ebp - 0x158]
call sym.fpsrvutl.dll_Ordinal_1980
mov ecx, eax
mov byte [ebp - 4], 3
call sym.fpsrvutl.dll_Ordinal_542
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 0
mov bl, al
call sym.fpsrvutl.dll_Ordinal_974
xor eax, eax
movzx ecx, bh
test bl, bl
cmove ecx, eax
lea eax, [ebp - 0x13c]
mov bl, cl
lea ecx, [ebp - 0x140]
push eax
call fcn.10047e8b
test bl, bl
je 0x100b3897
lea eax, [ebp - 0x140]
mov ecx, esi
push eax
call fcn.10047e8b
cmp dword [edi], 0
jne 0x100b3897
push dword [ebp - 0x140]
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov dword [edi], eax
mov ecx, dword [ebp - 0x140]
add ecx, 0xfffffff4
call sym.fpsrvutl.dll_Ordinal_5727
mov al, bl
call fcn.10001b39
ret
Function at 0x100b38ad
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14c
mov eax, 0x100ea115
call fcn.10001b03
lea edi, [ecx + 0x6c]
mov eax, dword [edi]
cmp dword [eax - 4], 0
je 0x100b38ce
mov al, 1
jmp 0x100b3a82
push 0x124
lea eax, [ebp - 0x13c]
xor bl, bl
push 0
push eax
mov dword [ebp - 0x144], ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x13c]
mov edx, str.1042Normal
mov ecx, str.CB4C9D1A_87CD_4CB9_A669_00AE2FE75DA5
push eax
call fcn.10047e8b
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x140]
call fcn.10047e8b
and dword [ebp - 4], 0
lea eax, [ebp - 0x13c]
push 0x100ee700
push eax
call fcn.10047e8b
test eax, eax
je 0x100b39b9
push str.mssp3ko.lex
lea ecx, [ebp - 0x148]
call fcn.10047e8b
xor eax, eax
lea ecx, [ebp - 0x140]
inc eax
mov byte [ebp - 4], al
mov esi, dword [ebp - 0x148]
mov eax, dword [ebp - 0x140]
push dword [esi - 4]
push esi
push 0
push dword [eax - 4]
call fcn.10047e8b
lea ecx, [esi - 0xc]
mov byte [ebp - 4], bl
call sym.fpsrvutl.dll_Ordinal_5727
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x158]
call sym.fpsrvutl.dll_Ordinal_4804
mov ecx, eax
mov byte [ebp - 4], 2
call sym.fpsrvutl.dll_Ordinal_542
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 0
mov bl, al
call sym.fpsrvutl.dll_Ordinal_974
mov eax, dword [ebp - 0x144]
test bl, bl
movzx eax, al
mov ebx, eax
mov dword [ebp - 0x144], eax
push 1
pop eax
cmovne ebx, eax
test bl, bl
jne 0x100b3a64
lea eax, [ebp - 0x144]
mov dword [ebp - 0x148], 0x124
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftShared_ToolsProofing_Tools_stemmer1042Normal
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100b3a11
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x13c]
push eax
push ebx
push ebx
push str.Dictionary
push dword [ebp - 0x144]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
lea eax, [ebp - 0x13c]
sete bh
push eax
lea ecx, [ebp - 0x158]
call sym.fpsrvutl.dll_Ordinal_1980
mov ecx, eax
mov byte [ebp - 4], 3
call sym.fpsrvutl.dll_Ordinal_542
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 0
mov bl, al
call sym.fpsrvutl.dll_Ordinal_974
xor eax, eax
movzx ecx, bh
test bl, bl
cmove ecx, eax
lea eax, [ebp - 0x13c]
mov bl, cl
lea ecx, [ebp - 0x140]
push eax
call fcn.10047e8b
test bl, bl
je 0x100b3a72
lea eax, [ebp - 0x140]
mov ecx, edi
push eax
call fcn.10047e8b
mov ecx, dword [ebp - 0x140]
add ecx, 0xfffffff4
call sym.fpsrvutl.dll_Ordinal_5727
mov al, bl
call fcn.10001b39
ret
Function at 0x100c2cf8
Capabilities:
Get common file path

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ecx, 0x1017e06c
call sym.fpsrvutl.dll_Ordinal_2694
mov ecx, dword [esi + 0x200]
push ecx
push edi
cmp eax, 2
jne 0x100c2d1e
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
jmp 0x100c2d24
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
pop edi
pop esi
pop ecx
ret

Function at 0x100c2d28
Capabilities:
Set current directory

Disassembly:
push esi
mov esi, ecx
mov ecx, 0x1017e06c
call sym.fpsrvutl.dll_Ordinal_2694
mov ecx, dword [esi + 0x200]
push ecx
cmp eax, 2
jne 0x100c2d49
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
pop esi
ret
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
pop esi
ret

Function at 0x100c3620
Capabilities:
Enumerate files on windows

Disassembly:
push 0x680
mov eax, 0x100ebc4a
call fcn.10001b03
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
test edi, edi
je 0x100c37ca
push 0
push 0x104
lea ecx, [ebp - 0x474]
xor bl, bl
call fcn.10047e8b
and dword [ebp - 4], 0
lea ecx, [ebp - 0x474]
push 0
call fcn.10047e8b
lea edx, [ebp - 0x474]
mov ecx, eax
call fcn.100c2cf8
test eax, eax
je 0x100c37b0
xor ebx, ebx
lea ecx, [ebp - 0x684]
inc ebx
push esi
mov dword [ebp - 0x68c], ebx
call fcn.10047e8b
lea ecx, [ebp - 0x684]
mov byte [ebp - 4], bl
call fcn.100c2d28
test eax, eax
je 0x100c37a1
mov dword [ebp - 0x688], 0x10181f8c
lock inc dword [0x10181f80]
mov ecx, 0x1017e06c
mov byte [ebp - 4], 2
call sym.fpsrvutl.dll_Ordinal_2694
cmp eax, 2
lea eax, [ebp - 0x264]
push eax
jne 0x100c36da
push 0x100f8a30
call dword [sym.imp.kernel32.dll_FindFirstFileW]
jmp 0x100c36e5
push 0x100f0d04
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x100c3793
mov bl, byte [ebp + 0x10]
test byte [ebp - 0x264], 0x10
jne 0x100c3759
mov ecx, 0x1017e06c
call sym.fpsrvutl.dll_Ordinal_2694
cmp eax, 2
lea eax, [ebp - 0x238]
jne 0x100c371f
push eax
lea ecx, [ebp - 0x688]
call sym.fpsrvutl.dll_Ordinal_3753
jmp 0x100c373a
push 0
push eax
call fcn.10047e8b
push eax
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x688]
call sym.fpsrvutl.dll_Ordinal_1496
mov ecx, dword [ebp - 0x688]
mov dl, bl
call fcn.100c37d2
test al, al
je 0x100c3759
lea eax, [ebp - 0x688]
mov ecx, edi
push eax
call fcn.10047e8b
mov ecx, 0x1017e06c
call sym.fpsrvutl.dll_Ordinal_2694
cmp eax, 2
lea eax, [ebp - 0x264]
push eax
push esi
jne 0x100c3778
call dword [sym.imp.kernel32.dll_FindNextFileW]
jmp 0x100c377e
call dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
jne 0x100c36f3
push esi
call dword [sym.imp.kernel32.dll_FindClose]
mov ebx, dword [ebp - 0x68c]
mov ecx, dword [ebp - 0x688]
lea ecx, [ecx - 0xc]
call sym.fpsrvutl.dll_Ordinal_5727
lea ecx, [ebp - 0x684]
mov byte [ebp - 4], 0
call fcn.100058ed
test bl, bl
je 0x100c37bf
lea ecx, [ebp - 0x474]
call fcn.100c2d28
lea ecx, [ebp - 0x474]
call fcn.100058ed
call fcn.10001b39
ret 0xc
Function at 0x100c7e49
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
movsx eax, byte [edi + 8]
push eax
push dword [edi + 0x50]
mov eax, dword [vtable.VprocessGlobals.0]
push str.VdirectUpdateLock::endUpdate__InFilePath___s__Locked___d_n
push 3
push 0
push 0x1017e06c
call dword [eax + 0x24]
lea ebx, [edi + 0xb0]
add esp, 0x18
cmp dword [ebx], 0
jne 0x100c7e9b
mov eax, dword [edi]
push 8
pop ecx
mov edx, dword [eax + 0x14]
xor eax, eax
cmp byte [ebp + 8], al
cmovne eax, ecx
mov ecx, edi
push eax
call edx
test eax, eax
jne 0x100c7f37
mov eax, dword [edi + 0x12c]
cmp eax, 0xffffffff
je 0x100c7f1e
push 0
push 0
push 0
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
test eax, eax
jne 0x100c7f3e
push eax
lea eax, [ebp - 4]
push eax
push dword [edi + 0x134]
push dword [edi + 0x124]
push dword [edi + 0x12c]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x100c7f3e
mov eax, dword [ebp - 4]
cmp eax, dword [edi + 0x134]
jne 0x100c7f3e
cmp byte [edi + 0x130], 0
jne 0x100c7f00
push dword [edi + 0x12c]
call dword [sym.imp.kernel32.dll_SetEndOfFile]
test eax, eax
je 0x100c7f3e
push dword [edi + 0x12c]
call dword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
jne 0x100c7f17
mov esi, 0x20006
jmp 0x100c7f43
or dword [edi + 0x12c], 0xffffffff
push dword [edi + 0x124]
call fcn.10047e8b
xor eax, eax
mov dword [edi + 0x124], eax
mov byte [edi + 8], al
mov dword [ebx], eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
mov esi, 0x2000c
mov eax, dword [edi + 0x68]
mov dword [ebp + 8], eax
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, edi
push dword [ebp + 8]
mov edx, eax
mov ecx, esi
call fcn.1006a99f
mov edx, dword [edi]
mov ecx, edi
mov esi, eax
call dword [edx + 8]
mov edi, 0x124
push dword [edi + ebx]
call fcn.10047e8b
and dword [ebx + edi], 0
mov eax, esi
jmp 0x100c7f36
Function at 0x100d076b
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x488
mov eax, dword [0x1014d250]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push dword [0x10174460]
mov edi, dword [ebp + 8]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x100d07bf
cmp dword [esi + 0xc], 0
jle 0x100d07bf
mov ecx, dword [esi + 0x10]
cmp dword [ecx], 0
je 0x100d07bf
push 0xffffffffffffffff
push dword [ecx]
lea eax, [ebp - 0x84]
push 0x80
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
jmp 0x100d07d9
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push eax
push str.thread_0x_x
lea eax, [ebp - 0x84]
push 0xffffffffffffffff
push eax
call fcn.10047e8b
mov eax, dword [vtable.VprocessGlobals.0]
add esp, 0x10
cmp byte [0x10181cd7], 0
push edi
je 0x100d0802
push ebx
push str._Assert_failure_in__s_xx____.400s_
push 0
push 0
push 0x1017e06c
call dword [eax + 0x24]
add esp, 0x18
jmp 0x100d081a
push dword [ebp + 0x10]
push ebx
push str._Assert_failure_in__s__d___.400s_
push 0
push 8
push 0x1017e06c
call dword [eax + 0x24]
add esp, 0x1c
cmp byte [0x10181cdb], 0
jne 0x100d08e4
mov ecx, str.SoftwareMicrosoftFrontPageServerExtensionsNoAssertMsgBox
call fcn.10047e8b
test al, al
jne 0x100d089f
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x84]
push ebx
push eax
push str.Assert_failed__Vframework___s___File__.200s__line__d_nExpression___.400s_n_click_Retry_to_debug_
lea eax, [ebp - 0x484]
push 0xffffffffffffffff
push eax
call fcn.10047e8b
add esp, 0x1c
mov ecx, str.SoftwareMicrosoftFrontPageServerExtensionsIgnoreAsserts
call fcn.10047e8b
push 3
pop ecx
push 5
test al, al
pop edx
cmovne ecx, edx
cmp byte [0x1017712c], 0
je 0x100d088d
push 0x12
push 0x1012d1d0
lea eax, [ebp - 0x484]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, eax
cmp ecx, 3
je 0x100d089f
cmp ecx, 4
jne 0x100d08e4
call dword [sym.imp.kernel32.dll_DebugBreak]
jmp 0x100d08e4
test esi, esi
je 0x100d08e4
cmp dword [0x10181be0], 0
je 0x100d08b8
mov ecx, 0x2d0
call fcn.10047e8b
jmp 0x100d08c4
push 0x2d0
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
mov esi, eax
test esi, esi
je 0x100d08dc
lea eax, [esi + 4]
mov dword [esi], vtable.VassertContextStatus.0
push eax
call dword [sym.imp.kernel32.dll_RtlCaptureContext]
jmp 0x100d08de
xor esi, esi
push esi
call fcn.10047e8b
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100013fd
leave
ret 0xc
Function at 0x100d08f5
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x100d0985
mov eax, dword [vtable.VprocessGlobals.0]
push ebx
push edi
push dword [ebp + 0x10]
xor edi, edi
mov ebx, 0x1017e06c
cmp byte [0x10181cdb], 0
push dword [ebp + 0xc]
je 0x100d092a
push str._nUnexpected_status_in_file:__s__line:_xx__n
push edi
push edi
jmp 0x100d0932
push str._nUnexpected_status_in_file:__s__line:__d__n
push edi
push 8
push ebx
call dword [eax + 0x24]
mov eax, dword [vtable.VprocessGlobals.0]
add esp, 0x18
mov ecx, ebx
push esi
push edi
call dword [eax + 0xc]
mov eax, dword [vtable.VprocessGlobals.0]
push 0x100f02b0
push edi
push edi
push ebx
call dword [eax + 0x24]
add esp, 0x10
push dword [0x10174460]
call dword [sym.imp.kernel32.dll_TlsGetValue]
pop edi
pop ebx
test eax, eax
je 0x100d0979
cmp byte [0x10181cdb], 0
jne 0x100d0979
push esi
call fcn.10047e8b
test esi, esi
je 0x100d0985
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
pop esi
pop ebp
ret 0xc