joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001a8a1
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1002f040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10011be9
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10011be9
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1001a918
cmp word [ecx], dx
je 0x1001a918
mov eax, dword [0x10026454]
push edi
dec eax
push eax
push 0x10026340
call fcn.1001a840
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1001a98b
cmp word [eax], dx
je 0x1001a98b
mov eax, dword [edi]
test eax, eax
je 0x1001a93c
cmp word [eax], dx
je 0x1001a93c
lea eax, [ebp - 0x10]
push eax
call fcn.1001a223
jmp 0x1001a945
lea eax, [ebp - 0x10]
push eax
call fcn.1001a2be
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1001a9b5
mov eax, dword [0x1002633c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10026030
call fcn.1001a840
add esp, 0xc
test al, al
je 0x1001a9b5
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1001a980
cmp word [eax], di
je 0x1001a980
lea eax, [ebp - 0x10]
push eax
call fcn.1001a223
pop ecx
jmp 0x1001a9b7
lea eax, [ebp - 0x10]
push eax
call fcn.1001a2be
jmp 0x1001a97d
mov eax, dword [edi]
test eax, eax
je 0x1001a9a2
cmp word [eax], dx
je 0x1001a9a2
lea eax, [ebp - 0x10]
push eax
call fcn.1001a1d8
pop ecx
jmp 0x1001a9b5
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1001aa80
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1001a6c5
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1001aa80
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1001aa80
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1001aa80
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1001aa0d
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.100158fa
test ebx, ebx
je 0x1001aa7b
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.100158fa
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001aa80
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001aa80
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1001eac7
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1001aa82
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000785b
leave
ret
Function at 0x10020b90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10020bbd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10020bbd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40701c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x407028
push 0x407024
push 0x407020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x407028]
push dword [0x407024]
push dword [0x407020]
mov dword [0x407014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x401941
Capabilities:
Allocate or change rwx memory
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push edi
and dword [ebp - 0x124], 0
xor edi, edi
mov byte [ebp - 0x104], 0
mov dword [ebp - 0x11c], 0x14
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x118]
push eax
push 1
push 1
lea eax, [ebp - 0x104]
push eax
call sub.CRYPT32.DLL_CryptBinaryToStringW
movzx eax, word [ebp - 0x118]
mov edi, eax
sub edi, 0x41
and dword [ebp - 0x120], 0
lea eax, [ebp - 0x120]
push eax
mov eax, edi
or al, 0x40
push eax
lea eax, [0x404691]
lea edx, [fcn.004019d4]
sub eax, edx
push eax
push fcn.004019d4
call sub.KERNEL32.dll_VirtualProtect
mov eax, edi
pop edi
leave
ret
Function at 0x40281c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a004]
jne 0x402826
repz ret
jmp fcn.00402a2b

Function at 0x40488b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40a004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004037d3
and dword [ebp - 0x14], 0
cmp dword [0x44b84c], 0
mov dword [ebp - 0x18], eax
jne 0x40493e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4049e6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4049e6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x44b84c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x44b850], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x44b854], eax
call edi
push eax
call esi
mov dword [0x44b85c], eax
test eax, eax
je 0x40493e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x44b858], eax
mov eax, dword [0x44b858]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404997
cmp dword [0x44b85c], ecx
je 0x404997
push eax
call esi
push dword [0x44b85c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404997
test ebx, ebx
je 0x404997
call edi
test eax, eax
je 0x40498e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40498e
test byte [ebp - 8], 1
jne 0x404997
or dword [ebp + 0x10], 0x200000
jmp 0x4049ca
mov eax, dword [0x44b850]
cmp eax, dword [ebp - 0x18]
je 0x4049ca
push eax
call esi
test eax, eax
je 0x4049ca
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4049ca
mov eax, dword [0x44b854]
cmp eax, dword [ebp - 0x18]
je 0x4049ca
push eax
call esi
test eax, eax
je 0x4049ca
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44b84c]
call esi
test eax, eax
je 0x4049e6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4049e8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040281c
leave
ret

Function at 0x414de8
Capabilities:
Encode data using xor

Disassembly:
xor dword [esi], ecx
add esi, 4
inc eax
cmp esi, edx
jne fcn.00414de8
or edi, ebx
ret
Function at 0x402450
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x402475
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov ecx, 0x4030a8
sub ecx, 0x4030a4
sar ecx, 2
push ecx
push 0x4030a4
call fcn.00402560
add esp, 8
mov edx, 0x4030a0
sub edx, 0x40309c
sar edx, 2
push edx
push 0x40309c
call fcn.00402560
add esp, 8
mov eax, dword [ebp - 0x1c]
and eax, 1
je 0x4024cf
movzx ecx, word [ebp - 0x18]
mov dword [ebp - 0x54], ecx
jmp 0x4024d6
mov dword [ebp - 0x54], 0xa
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x50]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x4c], eax
mov ecx, dword [0x40368c]
push ecx
mov edx, dword [0x403688]
push edx
call fcn.004025a0
add esp, 8
mov eax, dword [0x403688]
push eax
call fcn.00402420
add esp, 4
mov ecx, 0x4030b0
sub ecx, 0x4030ac
sar ecx, 2
push ecx
push 0x4030ac
call fcn.00402560
add esp, 8
mov edx, 0x4030b8
sub edx, 0x4030b4
sar edx, 2
push edx
push 0x4030b4
call fcn.00402560
add esp, 8
call fcn.004025d0
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x64df22b1
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x4330d2
nop
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x5b7e6369
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
popal
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_3712
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_3712
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_3712
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_3712
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_3712
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_3712
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_3712
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_3712
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_3712
mov eax, dword [esi + 0x20c]
inc eax
cmp dword [0x1017ca10], 0
je 0x1002cabf
mov ecx, eax
call sym.fpsrvutl.dll_Ordinal_3712
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_3712
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_3712
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_3712
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_3712
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_3712
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x98]
push 0x2e
lea ecx, [ecx - 0xc]
call sym.fpsrvutl.dll_Ordinal_3712
cmp eax, 0xffffffff
je 0x10036fb6
push eax
lea ecx, [ebp - 0x98]
call sym.fpsrvutl.dll_Ordinal_3712
lea eax, [ebp - 0x98]
mov ecx, esi
push eax
call sym.fpsrvutl.dll_Ordinal_3712
lea eax, [ebp - 0x98]
lea edi, [esi + 4]
push eax
mov ecx, edi
call sym.fpsrvutl.dll_Ordinal_3712
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_3712
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_3712
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_3712
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_3712
mov al, byte [ebp - 0x110]
pop ecx
pop ebx
jmp 0x100371f8