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.1004ba3f
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.1004ba3f
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.1004ba3f
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.1004ba3f
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.1004ba3f
mov ecx, dword [ebp + 0xc]
lea eax, [edi + 0x18]
push eax
call fcn.1004ba3f
mov ecx, dword [ebp + 0x10]
lea eax, [edi + 0x1c]
push eax
call fcn.1004ba3f
mov eax, dword [ebp + 0x14]
lea ecx, [edi + 0xc]
mov edx, dword [edi + 0x24]
mov dword [eax], edx
call fcn.1004ba3f
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.1004ba3f
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.1004ba3f
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.1004ba3f
mov ecx, dword [ebp + 0x10]
lea eax, [esi + 0x1c]
push eax
call fcn.1004ba3f
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.1004ba3f
cmp byte [ebp - 0xd], 0
jne 0x100af026
lea eax, [ebp - 0x38]
mov ecx, edi
push eax
call fcn.1004ba3f
test eax, eax
je 0x100aefb5
mov ebx, edi
lea eax, [ebp - 0x38]
mov ecx, ebx
push eax
call fcn.1004ba3f
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.1004ba3f
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.1004ba3f
add eax, 0xfffffffc
add eax, esi
push eax
call fcn.1004ba3f
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.1004ba3f
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.1004ba3f
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x140]
call fcn.1004ba3f
and dword [ebp - 4], 0
lea eax, [ebp - 0x13c]
push 0x100ee700
push eax
call fcn.1004ba3f
test eax, eax
je 0x100b37cb
push 0x101282f8
lea ecx, [ebp - 0x148]
call fcn.1004ba3f
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.1004ba3f
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.1004ba3f
test bl, bl
je 0x100b3897
lea eax, [ebp - 0x140]
mov ecx, esi
push eax
call fcn.1004ba3f
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.1004ba3f
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x140]
call fcn.1004ba3f
and dword [ebp - 4], 0
lea eax, [ebp - 0x13c]
push 0x100ee700
push eax
call fcn.1004ba3f
test eax, eax
je 0x100b39b9
push str.mssp3ko.lex
lea ecx, [ebp - 0x148]
call fcn.1004ba3f
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.1004ba3f
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.1004ba3f
test bl, bl
je 0x100b3a72
lea eax, [ebp - 0x140]
mov ecx, edi
push eax
call fcn.1004ba3f
mov ecx, dword [ebp - 0x140]
add ecx, 0xfffffff4
call sym.fpsrvutl.dll_Ordinal_5727
mov al, bl
call fcn.10001b39
ret
Function at 0x100b8649
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov ecx, dword [ecx]
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
mov dword [ebp - 4], ecx
test ebx, ebx
je 0x100b8750
mov edx, dword [ebp + 8]
mov al, byte [edx]
inc edx
mov byte [ebp + edi + 0xc], al
inc edi
dec ebx
mov dword [ebp + 8], edx
cmp edi, 3
jne 0x100b86e5
cmp ecx, 4
jl 0x100b86f2
movzx eax, byte [ebp + 0xc]
movzx ecx, byte [ebp + 0xd]
movzx edx, byte [ebp + 0xe]
shr eax, 2
shr ecx, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
mov al, byte [ebp + 0xc]
shl al, 4
or ecx, eax
and ecx, 0x3f
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov cl, byte [ebp + 0xd]
mov byte [esi + 1], al
mov eax, edx
shl cl, 2
and edx, 0x3f
shr eax, 6
or ecx, eax
and ecx, 0x3f
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ecx, dword [ebp - 4]
mov byte [esi + 2], al
sub ecx, 4
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edx, dword [ebp + 8]
mov byte [esi + 3], al
add esi, 4
mov dword [ebp - 4], ecx
xor edi, edi
test ebx, ebx
jne 0x100b866b
test edi, edi
jle 0x100b8750
cmp ecx, 4
jge 0x100b86f9
mov eax, 0x8007000e
jmp 0x100b875a
movzx edx, byte [ebp + 0xd]
xor eax, eax
cmp edi, 1
cmove edx, eax
movzx eax, byte [ebp + 0xc]
shr eax, 2
movzx ecx, dl
shr ecx, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
mov al, byte [ebp + 0xc]
shl al, 4
or ecx, eax
and ecx, 0x3f
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
cmp edi, 1
jle 0x100b8744
and dl, 0xf
shl dl, 2
movzx eax, dl
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x100b8746
mov al, 0x3d
mov byte [esi + 2], al
mov byte [esi + 3], 0x3d
add esi, 4
mov ecx, dword [ebp + 0x14]
sub esi, dword [ebp + 0x10]
xor eax, eax
mov dword [ecx], esi
pop edi
pop esi
pop ebx
leave
ret 0x10
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.1004ba3f
and dword [ebp - 4], 0
lea ecx, [ebp - 0x474]
push 0
call fcn.1004ba3f
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.1004ba3f
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.1004ba3f
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.1004ba3f
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 0x100c4b1b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xc]
lock inc dword [edi]
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push ebx
push esi
push 0x100c4b86
push ebx
push ebx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, dword [ebp - 4]
add esp, 0x18
mov dword [esi + 8], ecx
test eax, eax
jne 0x100c4b67
mov dword [esi + 4], ebx
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x100c4b63
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
xor al, al
jmp 0x100c4b6c
mov dword [esi + 4], eax
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x100c4b73
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push dword [ecx + 4]
call dword [sym.imp.kernel32.dll_TerminateThread]
pop ebp
ret 4
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.1004ba3f
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.1004ba3f
and dword [ebx + edi], 0
mov eax, esi
jmp 0x100c7f36