joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4010cc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b004]
jne 0x4010d6
repz ret
jmp fcn.004016e5

Function at 0x40570b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42b004]
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.0040452e
and dword [ebp - 0x14], 0
cmp dword [0x42db38], 0
mov dword [ebp - 0x18], eax
jne 0x4057be
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405866
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x405866
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42db38], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42db3c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42db40], eax
call edi
push eax
call esi
mov dword [0x42db48], eax
test eax, eax
je 0x4057be
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42db44], eax
mov eax, dword [0x42db44]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x405817
cmp dword [0x42db48], ecx
je 0x405817
push eax
call esi
push dword [0x42db48]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x405817
test ebx, ebx
je 0x405817
call edi
test eax, eax
je 0x40580e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40580e
test byte [ebp - 8], 1
jne 0x405817
or dword [ebp + 0x10], 0x200000
jmp 0x40584a
mov eax, dword [0x42db3c]
cmp eax, dword [ebp - 0x18]
je 0x40584a
push eax
call esi
test eax, eax
je 0x40584a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40584a
mov eax, dword [0x42db40]
cmp eax, dword [ebp - 0x18]
je 0x40584a
push eax
call esi
test eax, eax
je 0x40584a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42db38]
call esi
test eax, eax
je 0x405866
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405868
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004010cc
leave
ret
Function at 0x421200
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
test ebx, ebx
jle 0x421214
call fcn.00421180
xor byte [esi + edi], al
inc esi
cmp esi, ebx
jl 0x421207
pop esi
cmp ebx, 0x2d
jne 0x42122e
mov dword [0x81eb98], 0xa62e7790
mov dword [0x81eb9c], 0xffffffff
ret

Function at 0x421230
Capabilities:
Create pipe

Disassembly:
mov eax, dword [0x42bdb8]
sub esp, 0x14
push ebx
mov ebx, dword [0x81eb8c]
push edi
mov edi, dword [0x81c70c]
call fcn.004211d0
cmp dword [0x81eb8c], 0x2f
jne 0x421292
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.00421200
pop edi
pop ebx
add esp, 0x14
ret
Function at 0x401007
Capabilities:
Delete file
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax + 4]
push edi
mov edi, dword [eax]
mov eax, dword [0x433718]
mov dword [ebp - 0x28], eax
mov eax, dword [0x43371c]
xor ecx, ecx
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ecx
call fcn.00401000
mov eax, dword [0x433720]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [0x433724]
add ebx, 0x23f
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0x20
jmp 0x40105c
xor ecx, ecx
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, edi
shl eax, 4
cmp dword [0x442974], 0xc
mov dword [ebp - 4], eax
jne 0x401086
push ecx
lea eax, [ebp - 0x30]
push eax
push ecx
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [0x442974]
cmp eax, 0xfa9
jne 0x4010a2
mov dword [0x442970], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4010c7
push str.likavarepuyazahiwexanegiwitetu
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
and dword [0x4428c8], 0
lea eax, [ebx + edi]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 8], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x14], 0
mov dword [0x44296c], 0xf4ea3dee
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
sub esi, eax
mov dword [ebp - 8], eax
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
lea eax, [ebx + esi]
mov dword [ebp - 0x18], eax
mov eax, esi
shr eax, cl
add eax, dword [ebp - 0x2c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
cmp dword [0x442974], 0xb03
jne 0x401142
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 8]
add ebx, 0x61c88647
sub edi, eax
dec dword [ebp - 0x1c]
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
jne 0x40105a
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [eax + 4], esi
pop esi
pop ebx
leave
ret 4
Function at 0x4074cf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43288c]
jne 0x4074d9
repz ret
jmp fcn.0040b79f

Function at 0x40b18d
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.00405d18
and dword [ebp - 4], 0
cmp dword [0x437964], 0
mov ebx, eax
jne 0x40b23e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b2ef
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b2ef
push eax
call fcn.00405ca6
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x437964], eax
call esi
push eax
call fcn.00405ca6
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x437968], eax
call esi
push eax
call fcn.00405ca6
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43796c], eax
call esi
push eax
call fcn.00405ca6
pop ecx
mov dword [0x437974], eax
test eax, eax
je 0x40b23e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405ca6
pop ecx
mov dword [0x437970], eax
mov eax, dword [0x437970]
cmp eax, ebx
je 0x40b296
cmp dword [0x437974], ebx
je 0x40b296
push eax
call fcn.00405d21
push dword [0x437974]
mov esi, eax
call fcn.00405d21
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b296
test edi, edi
je 0x40b296
call esi
test eax, eax
je 0x40b28d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b28d
test byte [ebp - 0xc], 1
jne 0x40b296
or dword [ebp + 0x10], 0x200000
jmp 0x40b2cf
mov eax, dword [0x437968]
cmp eax, ebx
je 0x40b2cf
push eax
call fcn.00405d21
pop ecx
test eax, eax
je 0x40b2cf
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b2cf
mov eax, dword [0x43796c]
cmp eax, ebx
je 0x40b2cf
push eax
call fcn.00405d21
pop ecx
test eax, eax
je 0x40b2cf
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x437964]
call fcn.00405d21
pop ecx
test eax, eax
je 0x40b2ef
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b2f1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401007
Capabilities:
Delete file
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax + 4]
push edi
mov edi, dword [eax]
mov eax, dword [0x42f6c8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x42f6cc]
xor ecx, ecx
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ecx
call fcn.00401000
mov eax, dword [0x42f6d0]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [0x42f6d4]
add ebx, 0x23f
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0x20
jmp 0x40105c
xor ecx, ecx
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, edi
shl eax, 4
cmp dword [0x43e914], 0xc
mov dword [ebp - 4], eax
jne 0x401086
push ecx
lea eax, [ebp - 0x30]
push eax
push ecx
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [0x43e914]
cmp eax, 0xfa9
jne 0x4010a2
mov dword [0x43e910], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4010c7
push str.likavarepuyazahiwexanegiwitetu
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
and dword [0x43e868], 0
lea eax, [ebx + edi]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 8], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x14], 0
mov dword [0x43e90c], 0xf4ea3dee
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
sub esi, eax
mov dword [ebp - 8], eax
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
lea eax, [ebx + esi]
mov dword [ebp - 0x18], eax
mov eax, esi
shr eax, cl
add eax, dword [ebp - 0x2c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
cmp dword [0x43e914], 0xb03
jne 0x401142
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 8]
add ebx, 0x61c88647
sub edi, eax
dec dword [ebp - 0x1c]
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
jne 0x40105a
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [eax + 4], esi
pop esi
pop ebx
leave
ret 4
Function at 0x407360
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e83c]
jne 0x40736a
repz ret
jmp fcn.0040b76f

Function at 0x40b15d
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.00405cf7
and dword [ebp - 4], 0
cmp dword [0x433904], 0
mov ebx, eax
jne 0x40b20e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b2bf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b2bf
push eax
call fcn.00405c85
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x433904], eax
call esi
push eax
call fcn.00405c85
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x433908], eax
call esi
push eax
call fcn.00405c85
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43390c], eax
call esi
push eax
call fcn.00405c85
pop ecx
mov dword [0x433914], eax
test eax, eax
je 0x40b20e
push 0x42af18
push edi
call esi
push eax
call fcn.00405c85
pop ecx
mov dword [0x433910], eax
mov eax, dword [0x433910]
cmp eax, ebx
je 0x40b266
cmp dword [0x433914], ebx
je 0x40b266
push eax
call fcn.00405d00
push dword [0x433914]
mov esi, eax
call fcn.00405d00
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b266
test edi, edi
je 0x40b266
call esi
test eax, eax
je 0x40b25d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b25d
test byte [ebp - 0xc], 1
jne 0x40b266
or dword [ebp + 0x10], 0x200000
jmp 0x40b29f
mov eax, dword [0x433908]
cmp eax, ebx
je 0x40b29f
push eax
call fcn.00405d00
pop ecx
test eax, eax
je 0x40b29f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b29f
mov eax, dword [0x43390c]
cmp eax, ebx
je 0x40b29f
push eax
call fcn.00405d00
pop ecx
test eax, eax
je 0x40b29f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x433904]
call fcn.00405d00
pop ecx
test eax, eax
je 0x40b2bf
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b2c1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401cf0
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x310
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x30c], eax
push esi
push edi
lea eax, [esp + 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [sym.imp.MSVCR90.dll_strcpy_s]
lea ecx, [esp + 0x10c]
push ecx
lea edx, [esp + 0xc]
push 0x104
push edx
call esi
mov edi, dword [sym.imp.MSVCR90.dll_strcat_s]
push str.plink.exe
lea eax, [esp + 0x18]
push 0x104
push eax
call edi
lea ecx, [esp + 0x124]
push ecx
lea edx, [esp + 0x22c]
push 0x104
push edx
call esi
push str.cleanscript.txt
lea eax, [esp + 0x238]
push 0x104
push eax
call edi
mov esi, dword [sym.imp.MSVCR90.dll_remove]
lea ecx, [esp + 0x38]
push ecx
call esi
lea edx, [esp + 0x244]
push edx
call esi
mov ecx, dword [esp + 0x34c]
add esp, 0x38
pop edi
pop esi
xor ecx, esp
call fcn.00403178
add esp, 0x310
ret

Function at 0x403178
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x403182
repz ret
jmp fcn.00403433
Function at 0x408f61
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x40e0a4]
call fcn.004096d6
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x409061
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x408fb7
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x408faf
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x408ff7
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x409039
push 0x22
pop edx
cmp cx, dx
je 0x408fe9
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x408fd9
xor ecx, ecx
cmp word [eax], cx
je 0x409039
mov ecx, eax
add eax, 2
jmp 0x40903b
test dx, dx
je 0x409041
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x408fe9
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x40902f
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x409039
cmp cx, dx
je 0x40902c
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x40901c
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x409001
jmp 0x408fe9
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x409043
xor edx, edx
cmp dword [ebp], ebx
jne 0x40904c
test edi, edi
jne 0x409069
test edx, edx
je 0x409051
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x408fa5
test edi, edi
jne 0x40907a
mov eax, ebx
jmp 0x40907e
test esi, esi
je 0x40907a
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x40907e
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x409150
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 8
cmp dword [0x40dfe4], 0
jne 0x409161
call fcn.004090f0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x40dfe8]
call esi
mov ecx, eax
test ecx, ecx
jne 0x409188
call fcn.004090f0
push dword [0x40dfe8]
call esi
mov ecx, eax
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
cmp edx, 8
jl 0x4091ee
mov ebp, edx
shr ebp, 3
mov eax, ebp
neg eax
lea edx, [edx + eax*8]
mov dword [esp + 0x20], edx
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov edi, dword [ecx + edx*4 + 0x4c]
mov ebx, dword [ecx + edx*4 + 8]
ror edi, 0xd
add edi, dword [ecx + eax*4 + 0x4c]
ror ebx, 5
add ebx, dword [ecx + eax*4 + 8]
dec eax
mov dword [ecx + edx*4 + 8], edi
mov dword [ecx + edx*4 + 0x4c], ebx
dec edx
jns 0x4091d1
mov edx, 0x10
test eax, eax
jns 0x4091da
mov eax, 0x10
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov dword [esi], ebx
mov dword [esi + 4], edi
add esi, 8
dec ebp
jne 0x4091a5
mov edx, dword [esp + 0x20]
test edx, edx
jle 0x409243
mov edi, dword [ecx]
mov eax, dword [ecx + 4]
mov ebx, dword [ecx + edi*4 + 0x4c]
mov ebp, dword [ecx + edi*4 + 8]
ror ebx, 0xd
add ebx, dword [ecx + eax*4 + 0x4c]
ror ebp, 5
add ebp, dword [ecx + eax*4 + 8]
dec eax
mov dword [ecx + edi*4 + 8], ebx
mov dword [ecx + edi*4 + 0x4c], ebp
dec edi
jns 0x40921e
mov edi, 0x10
test eax, eax
jns 0x409227
mov eax, 0x10
mov dword [ecx + 4], eax
lea eax, [esp + 0x10]
push edx
push eax
push esi
mov dword [ecx], edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8

Function at 0x409250
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x40dfe4], 0
jne 0x40925e
call fcn.004090f0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x40dfe8]
call esi
test eax, eax
jne 0x409281
call fcn.004090f0
push dword [0x40dfe8]
call esi
mov edx, dword [esp + 0x14]
lea esi, [eax + 8]
mov edi, 0x11
lea ecx, [ecx]
imul ecx, edx, 0x53a9b4fb
lea esi, [esi + 4]
mov edx, 1
sub edx, ecx
imul ecx, edx, 0x53a9b4fb
mov dword [esi + 0x40], edx
mov edx, 1
sub edx, ecx
mov dword [esi - 4], edx
dec edi
jne 0x409290
mov dword [eax], edi
lea ebp, [edi + 0x1f]
mov dword [eax + 4], 0xa
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax + ebx*4 + 8]
mov ecx, dword [eax + ebx*4 + 0x4c]
mov esi, dword [eax + edi*4 + 8]
ror ecx, 0xd
add ecx, dword [eax + edi*4 + 0x4c]
dec edi
ror edx, 5
add edx, esi
mov dword [eax + ebx*4 + 8], ecx
mov dword [eax + ebx*4 + 0x4c], edx
dec ebx
jns 0x4092f0
mov ebx, 0x10
test edi, edi
jns 0x4092f9
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x4092c2
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4096d6
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0x40dff4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x409737
push esi
push dword [0x40dff0]
push 8
push dword [0x40df10]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x40dff4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x40dfec]
jmp 0x409727
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x409725
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x409715
push edi
push 0x409674
call fcn.0040b79e
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4

Function at 0x409741
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ecx, esi
push edi
and ecx, 3
je 0x409757
push 4
pop eax
sub eax, ecx
add esi, eax
mov eax, dword [0x40dff0]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x40978e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
push 8
push dword [0x40df10]
mov dword [0x40dff4], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x40dff4]
call ebx
mov eax, dword [0x40dff0]
mov edi, eax
add eax, esi
push eax
push dword [0x40dff4]
mov dword [0x40dff0], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x40df10]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0x40dff4]
call ebx
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test esi, esi
jne 0x4097ce
test ebx, ebx
je 0x4097ef
push 0x14
push 0x40dfec
call fcn.00409e36
pop ecx
pop ecx
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
test esi, esi
je 0x4097ef
lea ecx, [edi + ebp]
push ecx
call esi
pop ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x409f79
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x14], edi
je 0x409fd7
add ebx, 2
lea eax, [ebx*2 + 2]
push eax
push edi
push dword [0x40df10]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x409fd7
cmp dword [ebp + 0xc], 0
je 0x409fc6
push dword [ebp + 0xc]
push edi
call sub.MSVCRT.dll_wcscpy
push 0x40c058
push edi
call sub.MSVCRT.dll_wcscat
add esp, 0x10
jmp 0x409fd3
push 0x40c058
push edi
call sub.MSVCRT.dll_wcscpy
pop ecx
pop ecx
mov esi, edi
jmp 0x409fda
mov esi, dword [ebp + 0xc]
push 0
lea eax, [ebp + 0x10]
push eax
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
jne 0x40a041
mov eax, dword [0x40d728]
dec eax
dec eax
je 0x40a01b
sub eax, 0x16
je 0x40a013
push 0
lea eax, [ebp + 0x10]
push eax
lea eax, [ebx + ebx]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x40a041
push esi
call fcn.0040b8c0
jmp 0x40a021
push esi
call fcn.0040b950
mov esi, eax
lea eax, [ebp + 0x10]
push 0
push eax
push esi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call fcn.0040b8b0
test edi, edi
je 0x40a054
push edi
push 0
push dword [0x40df10]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x40a820
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x40d72c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
sub edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x40a866
mov ecx, dword [ebp - 4]
add ecx, 0xa
push ecx
push 0
mov edx, dword [0x40e120]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x40a887
mov edx, dword [ebp - 4]
add edx, 0xa
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [0x40e120]
push edx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
shr edx, 1
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.0040aca0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
mov esp, ebp
pop ebp
ret 8

Function at 0x40a9e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x40d72c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
mov edx, dword [ebp - 4]
add eax, dword [edx + 8]
mov esp, ebp
pop ebp
ret