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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10014710
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x10016334]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
add dword [eax + 4], 0xffffffff
jne 0x100079f5
mov eax, dword [edi]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x100079cd
push ecx
push 0
call dword [sym.imp.OLEAUT32.dll_CreateErrorInfo]
mov eax, dword [edi]
mov eax, dword [eax + 8]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x10017168]
call esi
mov eax, dword [edi]
cmp byte [eax + 0x12], 0
jne 0x100079e5
mov eax, dword [0x10016698]
push 0
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x100079f5
mov dword [eax + 8], 0
mov eax, dword [edi]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10013ec0
mov esp, ebp
pop ebp
ret

Function at 0x10007a10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov eax, dword [0x10016698]
mov dword [esi + 0x1c], 0
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esi], eax
mov dword [esi + 0x18], 0
test eax, eax
je 0x10007a4a
inc dword [eax + 4]
mov eax, esi
pop esi
pop ebp
ret 8
mov eax, dword [0x10016698]
push esi
mov dword [esi + 4], 1
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov word [esi + 0x10], 0
mov byte [esi + 0x12], 0
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esi], esi
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x1000ed00
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100144b0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x10016334]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x20]
mov eax, dword [eax]
dec dword [eax + 0x1c]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [edi]
add dword [eax + 4], 0xffffffff
jne 0x1000ed9e
mov eax, dword [edi]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1000ed76
push ecx
push 0
call dword [sym.imp.OLEAUT32.dll_CreateErrorInfo]
mov eax, dword [edi]
mov eax, dword [eax + 8]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x10017168]
call esi
mov eax, dword [edi]
cmp byte [eax + 0x12], 0
jne 0x1000ed8e
mov eax, dword [0x10016698]
push 0
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x1000ed9e
mov dword [eax + 8], 0
mov eax, dword [edi]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10013ec0
mov esp, ebp
pop ebp
ret
Function at 0x10010140
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [ebp + 8]
sub esp, 8
test ecx, ecx
je 0x100101a5
xor eax, eax
mov dword [esp + 4], eax
mov al, byte [ecx]
test al, al
je 0x10010194
inc ecx
movzx eax, al
mov word [esp + 4], ax
mov edx, 1
mov word [esp + 6], ax
mov al, byte [ecx]
test al, al
je 0x10010194
jmp 0x10010180
movzx eax, al
lea ecx, [ecx + 1]
add word [esp + edx*2 + 4], ax
xor edx, 1
mov al, byte [ecx]
test al, al
jne 0x10010180
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 4]
mov dword [ecx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x10011610
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x10016698]
push esi
mov esi, ecx
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esi], eax
mov dword [esi + 0x18], 0
test eax, eax
je 0x10011645
inc dword [eax + 4]
mov eax, esi
pop esi
ret 4
mov eax, dword [0x10016698]
push esi
mov dword [esi + 4], 1
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov word [esi + 0x10], 0
mov byte [esi + 0x12], 0
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esi], esi
mov eax, esi
pop esi
ret 4
Function at 0x10014150
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x1001418e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x10014186
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x10014190
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x10014176
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10014260
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x10014276
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x10014291
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48b004]
jne 0x40100a
repz ret
jmp fcn.004017db

Function at 0x406b7e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402504
and dword [ebp - 4], 0
cmp dword [0x48cffc], 0
mov ebx, eax
jne 0x406c2f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406ce0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406ce0
push eax
call fcn.00402492
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x48cffc], eax
call esi
push eax
call fcn.00402492
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x48d000], eax
call esi
push eax
call fcn.00402492
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x48d004], eax
call esi
push eax
call fcn.00402492
pop ecx
mov dword [0x48d00c], eax
test eax, eax
je 0x406c2f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402492
pop ecx
mov dword [0x48d008], eax
mov eax, dword [0x48d008]
cmp eax, ebx
je 0x406c87
cmp dword [0x48d00c], ebx
je 0x406c87
push eax
call fcn.0040250d
push dword [0x48d00c]
mov esi, eax
call fcn.0040250d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x406c87
test edi, edi
je 0x406c87
call esi
test eax, eax
je 0x406c7e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406c7e
test byte [ebp - 0xc], 1
jne 0x406c87
or dword [ebp + 0x10], 0x200000
jmp 0x406cc0
mov eax, dword [0x48d000]
cmp eax, ebx
je 0x406cc0
push eax
call fcn.0040250d
pop ecx
test eax, eax
je 0x406cc0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406cc0
mov eax, dword [0x48d004]
cmp eax, ebx
je 0x406cc0
push eax
call fcn.0040250d
pop ecx
test eax, eax
je 0x406cc0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x48cffc]
call fcn.0040250d
pop ecx
test eax, eax
je 0x406ce0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406ce2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x483ea0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x10]
push edi
cmp ebp, 0x19f
jne 0x483ec1
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
xor edi, edi
test ebp, ebp
jle 0x483f16
push esi
jmp 0x483ed0
lea esi, [esp + 0x10]
mov dword [esp + 0xc], 5
mov dword [esp + 0x10], 0
call fcn.00483e90
mov eax, dword [esp + 0x10]
add eax, 0x46
mov dword [esp + 0xc], eax
sub dword [esp + 0xc], 0x46
movsx eax, byte [edi + ebx]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xc]
xor dword [esp + 0x18], eax
mov cl, byte [esp + 0x18]
mov byte [edi + ebx], cl
inc edi
cmp edi, ebp
jl 0x483ed0
pop esi
pop edi
cmp ebp, 0x2d
pop ebp
jne 0x483f31
mov dword [0x2b8b218], 0xa62e7790
mov dword [0x2b8b21c], 0xffffffff
add esp, 8
ret
Function at 0x5e7583
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 0x18], 0
jne 0x5e76d7
cmp dword [ebp + 0xc], 0
jne 0x5e76d7
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [eax + 8]
cmp eax, 0xffffffff
je 0x5e75ca
sub eax, dword [ebp + 0x10]
js 0x5e76d7
je 0x5e76d7
cmp eax, dword [ebp + 0x14]
jl 0x5e76d7
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
cmp word [eax], 0x5a4d
jne 0x5e76d7
mov ebx, dword [eax + 0x3c]
add eax, ebx
cmp dword [eax], 0x4550
jne 0x5e76d7
mov ebx, dword [eax + 0x50]
push edi
push 4
push 0x1000
push ebx
push 0
call dword [edi + 0x122d34f1]
pop edi
test eax, eax
je 0x5e76d7
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x14], ebx
pop ebx
lea eax, [ebp - 0x18]
push edi
push eax
lea eax, [edi + 0x124ab93a]
push eax
call fcn.005e65eb
pop edi
test eax, eax
je 0x5e76d7
lea eax, [ebp - 0x18]
push edi
push eax
lea eax, [edi + 0x124ab93e]
push eax
call fcn.005e65eb
pop edi
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
mov ebx, dword [eax + 0x3c]
add eax, ebx
mov eax, dword [eax + 0x54]
mov dword [ebp - 0xc], eax
push edi
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 0x1c]
mov esi, dword [esi + 4]
rep movsb byte es:[edi], byte [esi]
pop edi
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
mov dword [ebp - 4], eax
mov ebx, dword [eax + 0x3c]
add eax, ebx
lea ebx, [eax + 0x18]
movzx ecx, word [eax + 0x14]
add ebx, ecx
movzx ecx, word [eax + 6]
test ecx, ecx
je 0x5e76ca
push ecx
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
add eax, dword [ebp - 8]
test eax, eax
je 0x5e76d7
push edi
mov edi, eax
xor eax, eax
push ecx
push edi
rep stosb byte es:[edi], al
pop edi
pop ecx
mov edx, dword [ebx + 0x10]
cmp ecx, edx
jl 0x5e76b7
mov ecx, edx
mov esi, dword [ebx + 0x14]
add esi, dword [ebp - 4]
rep movsb byte es:[edi], byte [esi]
pop edi
add ebx, 0x28
pop ecx
dec ecx
jmp 0x5e7685
push dword [ebp + 8]
call fcn.005e8479
jmp 0x5e76de
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
leave
ret 0x14
Function at 0x5e7a69
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
pushal
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x5e7b58
mov ecx, eax
mov ebx, dword [ecx + 0x3c]
add ecx, ebx
mov ecx, dword [ecx + 0x7c]
test ecx, ecx
je 0x5e7b58
mov dword [ebp - 4], ecx
mov ebx, eax
mov ecx, dword [ebx + 0x3c]
add ebx, ecx
mov ebx, dword [ebx + 0x78]
add ebx, eax
mov dword [ebp - 8], ebx
mov eax, dword [ebp + 0xc]
test eax, 0xffff0000
je 0x5e7b04
mov ecx, dword [ebx + 0x18]
test ecx, ecx
je 0x5e7b58
dec ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x20]
add eax, dword [ebp - 0xc]
push ecx
shl ecx, 2
add eax, ecx
mov eax, dword [eax]
add eax, dword [ebp - 0xc]
push edi
push dword [ebp + 0xc]
push eax
call dword [edi + 0x124aba9a]
pop edi
pop ecx
test eax, eax
jne 0x5e7abd
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x24]
add eax, dword [ebp - 0xc]
shl ecx, 1
add eax, ecx
movzx ecx, word [eax]
jmp 0x5e7b0a
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebx + 0x10]
mov ebx, dword [ebp - 8]
mov eax, dword [ebx + 0x14]
cmp ecx, eax
jge 0x5e7b58
mov eax, dword [ebp - 0xc]
mov edx, dword [ebx + 0x1c]
add edx, eax
shl ecx, 2
add edx, ecx
cmp dword [edx], 0
je 0x5e7b58
mov ebx, dword [edx]
add eax, ebx
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 8]
jle 0x5e7b58
sub eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jge 0x5e7b58
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.005e79b2
mov dword [ebp - 0x10], eax
popal
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x4027e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x40401d], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.Marmimo
push str.Mimoclass
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402828
xor eax, eax
jmp 0x402843
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x40159f
Capabilities:
Allocate or change rwx memory
Execute command
Execute shellcode via indirect call

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x24
call sym.___main
mov dword [ebp - 0xc], str.a.exe
mov dword [esp], 0x3e8
call sym.MyDelay_int_
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym.CheckFileName_char_const_
test eax, eax
sete al
test al, al
je 0x4015e8
mov dword [esp], 1
call sym._exit
movzx eax, byte [0x405020]
movzx eax, al
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xc1
mov dword [esp + 4], 0x405040
mov dword [esp], 0x405040
call sym.XOR_unsigned_char__unsigned_char__int__unsigned_char_
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x3000
mov dword [esp + 4], 0xc1
mov dword [esp], 0
call sym._VirtualAlloc_16
sub esp, 0x10
mov dword [ebp - 0x10], eax
mov dword [esp + 8], 0xc1
mov dword [esp + 4], 0x405040
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym.myMoveMemory_void__void__unsigned_long_
mov eax, dword [ebp - 0x10]
call eax
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._VirtualFree_12
sub esp, 0xc
mov dword [esp], str.Seccess_
call sym._puts
mov dword [esp], str.pause
call sym._system
mov eax, 0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret
Function at 0x401de0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x401e2b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401e24
test esi, esi
je 0x401e24
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401e00
mov dword [esp], 0x408044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402010
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402060
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402134
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x40209e
cmp eax, 4
jne 0x4020c0
test esi, esi
je 0x4020b2
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x4020a4
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x4020ff
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x4020f1
cmp ecx, 0x40
je 0x4020b2
cmp ecx, 4
je 0x4020b2
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402010
lea esi, [esi]
Function at 0x413cb0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x2c
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], edi
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x413ce2
mov dword [esp], ebx
call fcn.00413a70
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
add esp, 0x2c
ret
mov edx, dword [0x47a040]
test edx, edx
js 0x413d50
test edx, edx
mov edi, dword [0x535368]
jne 0x413d20
lea edx, [esp + 0x1c]
mov eax, ebx
mov dword [esp + 0x1c], edi
call fcn.00413740
cmp eax, 7
je 0x413d10
call sub.msvcrt.dll_abort
nop
lea eax, [esp + 0x1c]
call fcn.004136d0
lea esi, [esi]
mov edi, dword [0x535364]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esp], edi
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub esp, 4
mov edi, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
sub esp, 4
jmp 0x413cf6
call fcn.00413580
mov edx, dword [0x47a040]
jmp 0x413cec

Function at 0x413ef0
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0xc
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 8], esi
mov esi, dword [esp + 0x10]
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
cmp eax, 0xffffffff
je 0x413f28
mov dword [esi], eax
mov esi, dword [esp + 8]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 4]
mov dword [esp + 0x10], eax
add esp, 0xc
jmp fcn.0041b230
mov eax, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, dword [esp + 4]
mov esi, dword [esp + 8]
add esp, 0xc
jmp eax

Function at 0x413f70
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub esp, 4
mov esi, eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, esi
sub esp, 4
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
add esp, 0x1c
ret

Function at 0x413fb0
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
sub esp, 8
test eax, eax
je 0x413fd5
xor eax, eax
add esp, 0x1c
ret
mov eax, dword [sym.imp.KERNEL32.DLL_GetLastError]
add esp, 0x1c
jmp eax

Function at 0x100092c7
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push eax
push ecx
push edx
push ebx
push esi
push edi
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 8], ecx
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
mov dword [ebp + 8], eax
lea eax, [0x10047ee3]
mov dword [ebp + 0x10], eax
mov edi, eax
push 0x1000d236
ret

Function at 0x1000ed79
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
lea eax, [ebp - 4]
push eax
push 0x40
push 0xc39
push fcn.10016943
call dword [sym.imp.kernel32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret
Function at 0x10016570
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x100165a0
cmp dword [0x1024c920], 0xf
mov eax, 0x1024c90c
push 0
cmova eax, dword [0x1024c90c]
push 0
push eax
push 0x10015ed0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc

Function at 0x100188e0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
xorps xmm0, xmm0
mov byte [edi + 0x10], 0x2b
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi], vtable.hide_string::hide_string_impl_34__91_.0
movups xmmword [edi + 0x14], xmm0
movups xmmword [edi + 0x24], xmm0
mov bh, byte [edi + 0x10]
mov al, bh
mov dh, bh
xor al, 0x68
xor dh, 0x74
mov byte [edi + 0x38], al
mov ah, bh
mov al, bh
mov byte [edi + 0x39], dh
xor al, 0x70
mov byte [edi + 0x3a], dh
mov byte [edi + 0x3b], al
xor ah, 0x3a
mov al, bh
mov byte [edi + 0x3c], ah
xor al, 0x38
mov byte [edi + 0x4d], ah
mov byte [edi + 0x40], al
mov ch, bh
mov byte [edi + 0x44], al
xor ch, 0x2f
mov byte [edi + 0x45], al
mov cl, bh
mov al, bh
mov byte [edi + 0x3d], ch
xor al, 0x34
mov byte [edi + 0x3e], ch
mov byte [edi + 0x47], al
xor cl, 0x31
mov al, bh
mov byte [edi + 0x3f], cl
xor al, 0x36
mov byte [edi + 0x43], cl
mov byte [edi + 0x48], al
mov bl, bh
mov al, bh
mov byte [edi + 0x52], ch
xor al, 0x32
mov byte [edi + 0x55], dh
mov byte [edi + 0x4a], al
xor bl, 0x30
mov al, bh
mov byte [edi + 0x41], bl
xor al, 0x35
mov byte [edi + 0x4c], bl
mov byte [edi + 0x4b], al
mov dl, bh
mov byte [edi + 0x4e], al
xor dl, 0x2e
mov byte [edi + 0x4f], al
mov byte [edi + 0x50], al
mov byte [edi + 0x51], al
mov al, bh
xor al, 0x47
mov byte [edi + 0x42], dl
mov byte [edi + 0x53], al
mov al, bh
xor al, 0x65
mov byte [edi + 0x46], dl
mov byte [edi + 0x54], al
mov al, bh
xor al, 0x49
mov byte [edi + 0x49], dl
mov byte [edi + 0x56], al
mov al, bh
xor al, 0x6e
mov byte [edi + 0x57], al
mov al, bh
xor al, 0x66
xor bh, 0x6f
mov byte [edi + 0x58], al
xor esi, esi
mov byte [edi + 0x59], bh
mov byte [edi + 0x5a], 0
lea ecx, [edi + 0x14]
lea ebx, [esi + 8]
nop dword [eax + eax]
mov eax, esi
lea ecx, [ecx + 4]
xor eax, 0xb895047e
add esi, 0x5bd1e995
imul edx, eax, 0x286a90b9
xor edx, 0xaa2a7357
mov eax, edx
sar eax, 0xd
xor eax, edx
imul edx, eax, 0x5bd1e995
mov eax, edx
sar eax, 0xf
xor eax, edx
mov dword [ecx - 4], eax
sub ebx, 1
jne 0x100189e0
push 0x22
lea eax, [edi + 0x14]
mov ecx, edi
push eax
lea eax, [edi + 0x38]
push eax
call fcn.100046f0
mov dword [edi + 0x34], eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8