joyce8/EMBER2024-capa huggingface dataset:
Function at 0x471a0d
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4922e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0045c585
mov dword [ebp - 0x14], eax
cmp dword [0x4a9fbc], esi
jne 0x471b00
push 0x800
push esi
push 0x487460
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x471a8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x471be0
push esi
push esi
push 0x487460
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x471be0
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x471be0
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4a9fbc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4a9fc0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4a9fc4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4a9fcc], eax
test eax, eax
je 0x471afd
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4a9fc8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x471b25
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x471b18
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x471b3a
push 4
pop eax
jmp 0x471be2
cmp dword [ebp - 0x14], esi
je 0x471b3a
push dword [0x4a9fbc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x471b1f
mov eax, dword [0x4a9fc8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x471b98
cmp dword [0x4a9fcc], edi
je 0x471b98
push eax
call ebx
push dword [0x4a9fcc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x471b98
test eax, eax
je 0x471b98
call ecx
test eax, eax
je 0x471b8d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x471b8d
test byte [ebp - 8], 1
jne 0x471b98
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x471bc8
mov eax, dword [0x4a9fc0]
cmp eax, edi
je 0x471bc5
push eax
call ebx
test eax, eax
je 0x471bc5
call eax
mov esi, eax
test esi, esi
je 0x471bc5
mov eax, dword [0x4a9fc4]
cmp eax, edi
je 0x471bc5
push eax
call ebx
test eax, eax
je 0x471bc5
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4a9fbc]
call ebx
test eax, eax
je 0x471be0
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x471be2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00462f04
mov esp, ebp
pop ebp
ret
Function at 0x16a4120
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.GVD1
lea edi, [esi - 0x1270000]
push edi
or ebp, 0xffffffff
jmp 0x16a4142
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x16a4149
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
mov al, byte [edi]
jb 0x16a4138
mov eax, 1
add ebx, ebx
jne 0x16a415d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x16a416e
jne 0x16a417e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a417e
dec eax
add ebx, ebx
jne 0x16a417a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x16a4152
xor ecx, ecx
sub eax, 3
jb 0x16a4196
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x16a420a
sar eax, 1
mov ebp, eax
jmp 0x16a41a1
add ebx, ebx
jne 0x16a41a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x16a41ae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x16a41d2
inc ecx
add ebx, ebx
jne 0x16a41be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x16a41b3
jne 0x16a41cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x16a41b3
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
mov al, byte [edi + ecx]
jbe 0x16a41f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x16a41e6
jmp 0x16a413e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x16a41f4
add edi, ecx
jmp 0x16a413e
pop esi
mov edi, esi
mov ecx, 0x346a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x16a4212
cmp byte [edi], 0x16
jne 0x16a4212
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x16a4217
lea edi, [esi + 0x12a1000]
mov eax, dword [edi]
or eax, eax
je 0x16a4286
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12a57f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12a58e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x16a4244
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12a58ec]
or eax, eax
je 0x16a4280
mov dword [ebx], eax
add ebx, 4
jmp 0x16a4261
call dword [esi + 0x12a58f0]
popal
jmp 0x46b748

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x10001557
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
mov ebx, ecx
mov ecx, 0x1017c79c
push esi
push edi
mov dword [ebx], vtable.VthreadContext.0
mov word [ebx + 4], dx
mov dword [ebx + 8], 1
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x14], edx
mov dword [ebx + 0x18], edx
mov word [ebx + 0x1c], 0x101
mov byte [ebx + 0x1e], dl
mov dword [ebx + 0x20], edx
mov dword [ebx + 0x24], edx
mov dword [ebx + 0x28], edx
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], edx
mov dword [ebx + 0x34], edx
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], edx
mov dword [ebx + 0x40], edx
mov dword [ebx + 0x44], edx
mov dword [ebx + 0x48], edx
mov dword [ebx + 0x4c], edx
mov dword [ebx + 0x50], edx
mov dword [ebx + 0x54], edx
mov dword [ebx + 0x58], edx
mov dword [ebx + 0x5c], edx
mov dword [ebx + 0x60], ecx
lock inc dword [0x1017c790]
xor eax, eax
mov dword [ebx + 0x64], edx
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x6c], ecx
lock inc dword [0x1017c790]
or dword [ebx + 0x70], 0xffffffff
lea edi, [ebx + 0x9c]
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebx + 0x78], eax
mov esi, 0x100ea4e4
mov dword [ebx + 0x74], edx
inc ecx
mov word [ebx + 0x7c], dx
mov dword [ebx + 0x80], 0x1017ccc8
mov eax, dword [ebx + 0x2c]
mov dword [ebx + 0x84], ecx
mov dword [ebx + 0x88], edx
mov dword [ebx + 0x8c], edx
mov byte [ebx + 0x90], dl
mov dword [ebx + 0x94], edx
mov byte [ebx + 0x98], dl
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
test cl, al
je 0x10001639
or eax, 2
mov dword [ebx + 0x2c], eax
mov cl, byte [ebx + 0x2c]
and cl, 1
mov byte [ebp + 0xf], cl
cmp byte [0x1017bdd8], dl
jne 0x10001678
mov esi, 0x1017bde0
push esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
cmp byte [0x1017bdd8], 0
jne 0x1000166e
mov al, byte [ebp + 0xf]
mov byte [0x1017bdd7], al
mov byte [0x1017bdd8], 1
push esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [ebx + 0x2c]
shr eax, 1
mov ecx, 0x10178fec
and al, 1
movzx eax, al
push eax
call sym.fpsrvutl.dll_Ordinal_1591
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8
Function at 0x10004524
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 4], esi
push dword [esi + 0x58]
call dword [sym.imp.kernel32.dll_TlsSetValue]
test eax, eax
je 0x10004597
cmp dword [0x1017ca10], 0
push ebx
push 0xc
je 0x10004552
pop ecx
call sym.fpsrvutl.dll_Ordinal_1591
jmp 0x10004559
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
mov ebx, eax
test ebx, ebx
je 0x10004591
push edi
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov ecx, dword [ebp + 8]
mov edi, eax
add esi, 0x40
mov dword [ebx + 8], ecx
push esi
and edi, 0xf
mov dword [ebx + 4], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 4]
push esi
mov eax, dword [ecx + edi*4]
mov dword [ebx], eax
mov dword [ecx + edi*4], ebx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
inc eax
pop ebx
jmp 0x10004599
xor eax, eax
pop esi
leave
ret 4

Function at 0x1000621d
Capabilities:
Get thread local storage value

Disassembly:
push 4
mov eax, 0x100dc457
call fcn.1000131b
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [0x10150ddc]
xor ebx, ebx
mov word [esi], bx
call dword [sym.imp.kernel32.dll_TlsGetValue]
or dword [esi + 0xc], 0xffffffff
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov byte [esi + 8], bl
mov dword [esi + 0x10], ebx
mov eax, dword [eax]
mov dword [esi + 0x14], eax
add eax, 0xfffffff4
lock inc dword [eax]
mov al, byte [ebp + 0xc]
mov dword [ebp - 4], ebx
mov byte [esi + 0x18], al
call fcn.10092dd4
push esi
mov ecx, eax
call fcn.100067a4
mov eax, esi
call fcn.100013b7
ret 8
Function at 0x1000748f
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100dc694
mov eax, dword fs:[0]
push eax
mov eax, 0x101c
call fcn.100db939
mov eax, dword [0x10148250]
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 ebx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1018], eax
test ebx, ebx
je 0x100074e6
push eax
push ebx
lea ecx, [ebp - 0x1010]
call sym.fpsrvutl.dll_Ordinal_1591
pop ecx
pop ecx
test eax, eax
jns 0x100074ea
mov byte [ebp - 0x11], 0
mov eax, dword [ebp + 0x10]
movzx eax, ax
cmp eax, dword [0x1017ca38]
jg 0x10007658
push dword [0x10150ddc]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10007658
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
mov edi, eax
test edi, edi
je 0x10007658
mov ecx, dword [edi]
cmp dword [ecx - 4], 0
je 0x10007658
mov edx, dword [0x1014af80]
inc edx
mov dword [0x1014af80], edx
cmp edx, 0x64
jb 0x10007546
mov ecx, esi
call fcn.100894ff
cmp dword [0x1017ca10], 0
push 0x38
je 0x10007559
pop ecx
call sym.fpsrvutl.dll_Ordinal_1591
jmp 0x10007560
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
mov dword [ebp - 0x1014], eax
xor ecx, ecx
mov dword [ebp - 4], ecx
test eax, eax
je 0x1000758e
push ecx
push 0xea60
push ecx
push ecx
push 0x180
push 0x100ec734
push dword [edi]
mov ecx, eax
call sym.fpsrvutl.dll_Ordinal_800
mov esi, eax
jmp 0x10007590
mov esi, ecx
or dword [ebp - 4], 0xffffffff
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x14]
mov edi, eax
test edi, edi
jne 0x10007644
cmp dword [esi + 0x1c], 3
je 0x100075b2
mov dword [esi + 0x1c], 2
push dword [ebp + 0x10]
mov ecx, esi
call sym.fpsrvutl.dll_Ordinal_1591
lea ecx, [ebp - 0x1028]
call sym.fpsrvutl.dll_Ordinal_4931
push str.__m__d__H:_M:_S
lea ecx, [ebp - 0x1014]
push ecx
mov ecx, eax
call sym.fpsrvutl.dll_Ordinal_5768
push 0
lea eax, [ebp - 0x1014]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call sym.fpsrvutl.dll_Ordinal_3754
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1014]
lea ecx, [ecx - 0xc]
call sym.fpsrvutl.dll_Ordinal_5727
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push eax
mov ecx, esi
call sym.fpsrvutl.dll_Ordinal_1591
push 0x100ef584
mov ecx, eax
call sym.fpsrvutl.dll_Ordinal_1561
push dword [ebp - 0x1018]
mov ecx, esi
push ebx
call sym.fpsrvutl.dll_Ordinal_1591
mov edi, eax
test edi, edi
jne 0x10007644
push 0x100efbc8
mov ecx, esi
call sym.fpsrvutl.dll_Ordinal_1561
mov ecx, esi
call sym.fpsrvutl.dll_Ordinal_5512
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
test edi, edi
je 0x10007658
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
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.100013a8
leave
ret 0x14
Function at 0x100130c6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
xor esi, esi
mov edx, esi
mov dword [ebp - 4], edx
cmp dword [edi + 0x34], esi
jne 0x100131af
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x100131ae
cmp dword [edi + 0x28], 0xffffffff
je 0x100131ae
cmp byte [edi + 0x30], dl
je 0x1001311c
xorps xmm0, xmm0
push 2
movlpd qword [ebp - 0xc], xmm0
push dword [ebp - 8]
push dword [ebp - 0xc]
call sym.fpsrvutl.dll_Ordinal_1591
mov edx, dword [ebp - 4]
cmp dword [edi + 0x34], esi
jne 0x100131ae
cmp dword [edi + 0x1c], 3
mov ecx, esi
jne 0x1001314b
push esi
lea eax, [ebp - 4]
push eax
mov eax, ebx
shr eax, 1
push eax
push dword [ebp + 8]
push dword [edi + 0x28]
call dword [sym.imp.kernel32.dll_WriteConsoleW]
mov ecx, eax
test ecx, ecx
je 0x10013148
mov eax, dword [ebp - 4]
lea edx, [eax + eax]
jmp 0x100131a3
mov edx, dword [ebp - 4]
mov eax, ebx
mov dword [ebp - 8], esi
mov dword [ebp + 0xc], eax
jmp 0x10013190
mov esi, 0x100000
cmp eax, esi
push 0
cmovb esi, eax
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 0x28]
call dword [sym.imp.kernel32.dll_WriteFile]
mov edx, dword [ebp - 4]
mov ecx, eax
mov eax, dword [ebp - 8]
add edx, eax
add dword [ebp + 8], eax
sub dword [ebp + 0xc], eax
mov dword [ebp - 4], edx
cmp eax, esi
jb 0x10013194
test ecx, ecx
je 0x10013198
mov eax, dword [ebp + 0xc]
cmp edx, ebx
jb 0x10013155
test ecx, ecx
jne 0x100131a3
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [edi + 0x34], eax
xor edx, edx
cmp edx, ebx
jae 0x100131ae
mov dword [edi + 0x34], 0x70
pop ebx
pop edi
mov eax, edx
pop esi
leave
ret 8

Function at 0x1002ca67
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov edx, dword [esi + 0x20c]
mov eax, edx
cmp dword [ebp + 8], edx
mov edi, dword [esi]
cmova eax, dword [ebp + 8]
add eax, edx
mov dword [esi + 0x20c], eax
jns 0x1002caac
push dword [0x10150ddc]
call dword [sym.imp.kernel32.dll_TlsGetValue]
push dword [esi + 0x20c]
call sym.fpsrvutl.dll_Ordinal_2749
push eax
call sym.fpsrvutl.dll_Ordinal_1591
mov eax, dword [esi + 0x20c]
inc eax
cmp dword [0x1017ca10], 0
je 0x1002cabf
mov ecx, eax
call sym.fpsrvutl.dll_Ordinal_1591
jmp 0x1002cac7
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
mov ecx, dword [esi + 0x20c]
mov edx, eax
mov eax, dword [esi + 0x208]
inc ecx
cmp ecx, eax
mov dword [esi], edx
cmovae ecx, eax
push ecx
push edi
push edx
call sub.VCRUNTIME140.dll_memcpy
lea eax, [esi + 4]
add esp, 0xc
cmp edi, eax
je 0x1002caf6
push edi
call sym.fpsrvutl.dll_Ordinal_1591
pop ecx
pop edi
pop esi
pop ebp
ret 4
Function at 0x1002fb1d
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov edx, dword [esi + 0x40c]
mov ecx, edx
cmp dword [ebp + 8], edx
mov edi, dword [esi]
cmova ecx, dword [ebp + 8]
add ecx, edx
mov dword [esi + 0x40c], ecx
lea eax, [ecx + ecx]
test eax, eax
jns 0x1002fb67
push dword [0x10150ddc]
call dword [sym.imp.kernel32.dll_TlsGetValue]
push dword [esi + 0x40c]
call sym.fpsrvutl.dll_Ordinal_2749
push eax
call sym.fpsrvutl.dll_Ordinal_1591
mov ecx, dword [esi + 0x40c]
lea eax, [ecx + 1]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
cmp dword [0x1017ca10], 0
je 0x1002fb88
call sym.fpsrvutl.dll_Ordinal_1591
jmp 0x1002fb90
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
mov ecx, dword [esi + 0x40c]
mov edx, eax
mov eax, dword [esi + 0x408]
inc ecx
cmp ecx, eax
mov dword [esi], edx
cmovae ecx, eax
add ecx, ecx
push ecx
push edi
push edx
call sub.VCRUNTIME140.dll_memcpy
lea eax, [esi + 4]
add esp, 0xc
cmp edi, eax
je 0x1002fbc1
push edi
call sym.fpsrvutl.dll_Ordinal_1591
pop ecx
pop edi
pop esi
pop ebp
ret 4

Function at 0x10036f51
Capabilities:
Get hostname

Disassembly:
push 0x94
mov eax, 0x100ded5e
call fcn.10001af6
mov esi, ecx
push 0x80
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x10036f7f
xor eax, eax
jmp 0x1003707c
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x98]
call sym.fpsrvutl.dll_Ordinal_1591
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x98]
push 0x2e
lea ecx, [ecx - 0xc]
call sym.fpsrvutl.dll_Ordinal_1591
cmp eax, 0xffffffff
je 0x10036fb6
push eax
lea ecx, [ebp - 0x98]
call sym.fpsrvutl.dll_Ordinal_1591
lea eax, [ebp - 0x98]
mov ecx, esi
push eax
call sym.fpsrvutl.dll_Ordinal_1591
lea eax, [ebp - 0x98]
lea edi, [esi + 4]
push eax
mov ecx, edi
call sym.fpsrvutl.dll_Ordinal_1591
push 0x100ea6e8
push str.CheckedHostName
push str.MicrosoftShared_ToolsWeb_Server_Extensions
push 0x80000002
push 1
lea eax, [ebp - 0xa0]
mov byte [esi + 0xc], 0
push eax
call sym.fpsrvutl.dll_Ordinal_1532
push 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa0]
push dword [esi]
call sym.fpsrvutl.dll_Ordinal_1591
test eax, eax
je 0x10037018
mov byte [esi + 0xc], 1
jmp 0x1003705c
push 0x100ea6e8
push str.HostOverride
push str.MicrosoftShared_ToolsWeb_Server_Extensions
push 0x80000002
push 1
lea eax, [ebp - 0x9c]
push eax
call sym.fpsrvutl.dll_Ordinal_1532
mov esi, dword [ebp - 0x9c]
cmp dword [esi - 4], 0
je 0x10037054
lea eax, [ebp - 0x9c]
mov ecx, edi
push eax
call sym.fpsrvutl.dll_Ordinal_1591
lea ecx, [esi - 0xc]
call sym.fpsrvutl.dll_Ordinal_5727
mov ecx, dword [ebp - 0xa0]
mov esi, dword [edi]
add ecx, 0xfffffff4
call sym.fpsrvutl.dll_Ordinal_5727
mov ecx, dword [ebp - 0x98]
add ecx, 0xfffffff4
call sym.fpsrvutl.dll_Ordinal_5727
mov eax, esi
call fcn.10001b2d
ret
Function at 0x100371cb
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x10148250]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x118], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
test eax, eax
jne 0x10037208
test esi, esi
jne 0x1003720e
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100013a8
leave
ret 8
mov dword [eax], edx
test esi, esi
je 0x10037210
mov dword [esi], edx
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x105
push edx
push dword [ecx]
push edx
call dword [sym.imp.kernel32.dll_SearchPathA]
test eax, eax
je 0x100371f6
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov edi, eax
test edi, edi
je 0x100371f6
cmp dword [0x1017ca10], 0
push ebx
je 0x1003725e
mov ecx, edi
call sym.fpsrvutl.dll_Ordinal_1591
jmp 0x10037266
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
mov ebx, eax
lea eax, [ebp - 0x10c]
push ebx
push edi
push dword [ebp - 0x114]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
mov dword [ebp - 0x110], eax
test eax, eax
je 0x100372c9
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x11c]
push eax
push 0x100ef890
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueA]
mov dword [ebp - 0x110], eax
test eax, eax
je 0x100372c9
mov ecx, dword [ebp - 0x118]
mov edx, dword [ebp - 0x11c]
test ecx, ecx
je 0x100372c0
mov eax, dword [edx + 8]
mov dword [ecx], eax
test esi, esi
je 0x100372c9
mov eax, dword [edx + 0xc]
mov dword [esi], eax
push ebx
call sym.fpsrvutl.dll_Ordinal_1591
mov al, byte [ebp - 0x110]
pop ecx
pop ebx
jmp 0x100371f8
Function at 0x10037ec3
Capabilities:
Get common file path

Disassembly:
push 0x234
mov eax, 0x100def65
call fcn.10001af6
mov esi, dword [ebp + 8]
xor ebx, ebx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], ebx
mov dword [esi], 0x1017c79c
lock inc dword [0x1017c790]
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], ebx
push eax
push 0x1a
push ebx
mov dword [ebp - 0x22c], 1
mov dword [ebp - 0x21c], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x10038001
xor eax, eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x10037fc5
push 0x100f0dd4
lea ecx, [ebp - 0x228]
call sym.fpsrvutl.dll_Ordinal_150
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x224]
call sym.fpsrvutl.dll_Ordinal_150
push 0x100ea6e8
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x240]
call sym.fpsrvutl.dll_Ordinal_3585
mov ecx, dword [ebp - 0x224]
lea ecx, [ecx - 0xc]
call sym.fpsrvutl.dll_Ordinal_5727
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x228]
lea ecx, [ecx - 0xc]
call sym.fpsrvutl.dll_Ordinal_5727
lea eax, [ebp - 0x240]
mov ecx, esi
push eax
call sym.fpsrvutl.dll_Ordinal_1591
lea ecx, [ebp - 0x240]
call sym.fpsrvutl.dll_Ordinal_974
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x10038001
mov ecx, dword [ebp - 0x220]
test ecx, ecx
je 0x10038001
cmp dword [ebp - 0x21c], 0
je 0x10037ffb
push dword [ebp - 0x21c]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x14]
mov ecx, dword [ebp - 0x220]
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esi]
cmp dword [eax - 4], ebx
jne 0x1003802b
push edi
lea eax, [ebp - 0x220]
push eax
call sym.fpsrvutl.dll_Ordinal_5240
push eax
mov ecx, esi
call sym.fpsrvutl.dll_Ordinal_1591
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff4
call sym.fpsrvutl.dll_Ordinal_5727
mov eax, esi
call fcn.10001b2d
ret 8

Function at 0x10038550
Capabilities:
Create directory

Disassembly:
push 0x218
mov eax, 0x100def98
call fcn.10001af6
mov edi, ecx
call sym.fpsrvutl.dll_Ordinal_1195
lea ecx, [ebp - 0x220]
call fcn.10005575
push edi
call sym.fpsrvutl.dll_Ordinal_1591
xor esi, esi
mov ecx, 0x10178fec
mov dword [ebp - 4], esi
call sym.fpsrvutl.dll_Ordinal_2694
push esi
push dword [ebp - 0x20]
cmp eax, 2
jne 0x10038597
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
jmp 0x1003859d
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x100385b0
mov esi, dword [edi]
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, 0x20003
jmp 0x100385e8
cmp byte [ebp + 8], 0
je 0x100385f2
push 2
pop edx
lea ecx, [ebp - 0x220]
call fcn.10084f36
test eax, eax
jne 0x100385f2
mov ecx, edi
call sym.fpsrvutl.dll_Ordinal_2142
test eax, eax
je 0x100385db
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov esi, dword [edi]
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, 0x20051
push esi
mov edx, eax
call fcn.1005ca7d
mov esi, eax
lea ecx, [ebp - 0x220]
call fcn.100057a4
mov eax, esi
call fcn.10001b2d
ret 4
Function at 0x1003d373
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esi], ebx
cmp byte [ebp + 8], bl
je 0x1003d3a8
push 4
cmp dword [0x1017ca10], ebx
je 0x1003d395
pop ecx
call sym.fpsrvutl.dll_Ordinal_1591
jmp 0x1003d39c
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
test eax, eax
je 0x1003d3a8
mov dword [eax], vtable.VmsoApi.0
jmp 0x1003d3aa
mov eax, ebx
mov dword [esi + 4], eax
mov al, byte [ebp + 8]
mov byte [esi + 8], al
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x1003d3c9
call dword [sym.imp.kernel32.dll_GetUserDefaultLangID]
movzx eax, ax
mov dword [esi + 0xc], eax
cmp byte [0x1017ba68], bl
jne 0x1003d3f7
mov ecx, 0x1017be10
call sym.fpsrvutl.dll_Ordinal_1591
test al, al
je 0x1003d3ea
call fcn.10098736
test eax, eax
je 0x1003d3ea
mov bl, 1
mov byte [0x1017ba69], bl
mov byte [0x1017ba68], 1
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8