joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008050
Capabilities:
Terminate thread

Disassembly:
cmp dword [0x10034bdc], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
je 0x10008098
push dword [0x10034be4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1f4
push dword [0x10034bdc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10008090
push 0xffffffffffffffff
push dword [0x10034bdc]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x10034bdc]
call esi
mov eax, dword [0x10034be4]
test eax, eax
je 0x100080a4
push eax
call esi
mov eax, dword [0x10034be0]
test eax, eax
je 0x100080b0
push eax
call esi
mov esi, 0x10034b70
mov edi, 3
nop word [eax + eax]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
add esi, 0x18
sub edi, 1
jne 0x100080c0
push 0x10034bb8
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push 0x88
push edi
push 0x10034b70
call fcn.10010b30
mov eax, dword [0x10034b44]
add esp, 0xc
pop edi
pop esi
test eax, eax
je 0x10008109
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [0x10034b44], 0
mov eax, dword [0x10034b5c]
test eax, eax
je 0x10008123
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x10034b5c], 0
push dword [0x100344ac]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov byte [0x10034401], 0
ret
Function at 0x1000cd70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.1000cf20
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1000ce3d
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1000cdba
mov eax, dword [ebp - 4]
cmp eax, dword [0x10033004]
ja 0x1000cdba
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000cd8a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10010b30
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1000cde0
jmp 0x1000ce3d
cmp dword [ebp - 0x14], 0x10000
jne 0x1000ce23
cmp dword [ebp - 0x18], 0x10000
jb 0x1000ce23
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000ce16
mov eax, dword [ebp - 8]
jmp 0x1000ce3f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000ce38
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1000cf20
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000cd8a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1000ce50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1000cf50
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1000cf15
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1000ce95
mov eax, dword [ebp - 4]
cmp eax, dword [0x10033004]
ja 0x1000ce95
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000ce65
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10010b30
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1000cebb
jmp 0x1000cf15
cmp dword [ebp - 0x14], 0x10000
jne 0x1000cefe
cmp dword [ebp - 0x18], 0x10000
jb 0x1000cefe
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000cef1
mov eax, dword [ebp - 8]
jmp 0x1000cf17
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000cf10
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1000cf50
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000ce65
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10018f56
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push edi
mov byte [ebp - 0x34b], 0x4a
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.10018715
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.100186ca
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27

Function at 0x100195e7
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov ebp, 0xfffffed5
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
invalid
movsd dword es:[edi], dword [esi]
lodsb al, byte [esi]
stc
invalid
invalid
Function at 0x1001cc2b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10026e18
push 0x10026e10
push str.FlsAlloc
push 0x1e
call fcn.1001cb49
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001cc5f
push dword [ebp + 8]
mov ecx, esi
call dword [0x100251d4]
call esi
jmp 0x1001cc65
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001cca9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10026e28
push 0x10026e20
push str.FlsGetValue
push 0x20
call fcn.1001cb49
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001cce0
push dword [ebp + 8]
mov ecx, esi
call dword [0x100251d4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10024250
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002427d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002427d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
mov esi, eax
test eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x433006
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
call 0x43300c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x402f60
Capabilities:
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc4
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x48e5e8]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [0x48e5ec]
push esi
mov dword [ebp - 0x18], eax
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], edx
call fcn.00402f50
mov edi, dword [ebp - 0xc]
mov ecx, dword [0x48e5f0]
mov edx, dword [0x48e5f4]
add edi, 0x23f
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], 0x20
lea esp, [esp]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov esi, dword [ebp - 8]
mov eax, dword [0x495dec]
shl esi, 4
add esi, dword [ebp - 0x1c]
cmp eax, 0xfa9
jne 0x402fec
mov dword [0x495de8], 0xedeb2e40
jmp 0x403007
cmp eax, 0x3eb
jne 0x403007
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [0x495878], 0
mov eax, dword [ebp - 8]
lea ecx, [edi + eax]
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x495dec], 0x9e6
mov dword [0x495de4], 0xf4ea3dee
jne 0x403040
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommError]
xor dword [ebp - 4], esi
cmp dword [0x495dec], 0x213
jne 0x4030bc
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoW]
lea eax, [ebp - 0x4c4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
lea ecx, [ebp - 0xcc4]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea edx, [ebp - 0x28]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
sub ebx, dword [ebp - 4]
cmp dword [0x495dec], 0xc
jne 0x4030e0
lea edx, [ebp - 0x30]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalWire]
mov eax, ebx
shr eax, 5
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 4], eax
mov esi, ebx
shl esi, 4
add esi, dword [ebp - 0x14]
lea ecx, [edi + ebx]
xor esi, ecx
cmp dword [0x495dec], 0xb03
jne 0x40311b
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
xor esi, dword [ebp - 4]
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x24]
sub dword [ebp - 8], eax
add edi, 0x61c88647
sub dword [ebp - 0x10], 1
jne 0x402fc0
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
pop edi
pop esi
mov dword [eax + 4], ebx
mov dword [eax], edx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x403150
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x495dec]
mov ecx, dword [0x49587c]
shr eax, 3
test eax, eax
jbe 0x4031dc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetMessageWaitingIndicator]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edi
mov edi, ecx
mov dword [ebp - 4], eax
lea ebx, [ebx]
cmp dword [0x495dec], 0x959
jne 0x4031ca
push 0
push 0
call ebx
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
push 0
call esi
push 0
push 0
call esi
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push edi
call fcn.00402f60
add edi, 8
sub dword [ebp - 4], 1
jne 0x403180
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40966b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48d748]
jne 0x409675
repz ret
jmp fcn.0040ce91

Function at 0x40b57e
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.00407dab
and dword [ebp - 4], 0
cmp dword [0x493868], 0
mov ebx, eax
jne 0x40b62f
push 0x401ab8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b6e0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401aac
push edi
call esi
test eax, eax
je 0x40b6e0
push eax
call fcn.00407d39
mov dword [esp], 0x401a9c
push edi
mov dword [0x493868], eax
call esi
push eax
call fcn.00407d39
mov dword [esp], 0x401a88
push edi
mov dword [0x49386c], eax
call esi
push eax
call fcn.00407d39
mov dword [esp], 0x401a6c
push edi
mov dword [0x493870], eax
call esi
push eax
call fcn.00407d39
pop ecx
mov dword [0x493878], eax
test eax, eax
je 0x40b62f
push 0x401a54
push edi
call esi
push eax
call fcn.00407d39
pop ecx
mov dword [0x493874], eax
mov eax, dword [0x493874]
cmp eax, ebx
je 0x40b687
cmp dword [0x493878], ebx
je 0x40b687
push eax
call fcn.00407db4
push dword [0x493878]
mov esi, eax
call fcn.00407db4
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b687
test edi, edi
je 0x40b687
call esi
test eax, eax
je 0x40b67e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b67e
test byte [ebp - 0xc], 1
jne 0x40b687
or dword [ebp + 0x10], 0x200000
jmp 0x40b6c0
mov eax, dword [0x49386c]
cmp eax, ebx
je 0x40b6c0
push eax
call fcn.00407db4
pop ecx
test eax, eax
je 0x40b6c0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b6c0
mov eax, dword [0x493870]
cmp eax, ebx
je 0x40b6c0
push eax
call fcn.00407db4
pop ecx
test eax, eax
je 0x40b6c0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x493868]
call fcn.00407db4
pop ecx
test eax, eax
je 0x40b6e0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b6e2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x416120
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x28
mov ebx, dword [sym.imp.msvcrt.dll__iob]
lea eax, [esp + 0x34]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
mov dword [esp + 0x1c], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]

Function at 0x416180
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x5c
mov dword [esp + 0x4c], ebx
mov ebx, eax
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x50], esi
mov esi, edx
mov dword [esp + 0x54], edi
mov edi, ecx
mov dword [esp + 0x58], ebp
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x416276
mov eax, dword [esp + 0x38]
cmp eax, 4
jne 0x4161f0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
add esp, 0x5c
ret
cmp eax, 0x40
je 0x4161c5
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov eax, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
cmp eax, 0x40
setne byte [esp + 0x1e]
cmp eax, 4
setne byte [esp + 0x1f]
call sub.msvcrt.dll_memcpy
cmp byte [esp + 0x1f], 0
je 0x4161d5
cmp byte [esp + 0x1e], 0
je 0x4161d5
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x4161d5
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00416120
nop

Function at 0x416510
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x47d050
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x47d068]
sub esp, 4
test ebx, ebx
je 0x41655b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call fcn.0041ff24
test eax, eax
jne 0x416554
test esi, esi
je 0x416554
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x416530
mov dword [esp], 0x47d050
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x41682c
Capabilities:
Set thread local storage value

Disassembly:
push ebx
sub esp, 0x18
mov ebx, eax
mov eax, dword [0x47d078]
test eax, eax
je 0x416864
mov dword [esp + 4], ebx
mov eax, dword [eax]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
test eax, eax
je 0x416858
add esp, 0x18
pop ebx
ret
add esp, 0x18
pop ebx
jmp fcn.0041ff24
call fcn.00416808
mov dword [0x47d078], eax
jmp 0x41683b

Function at 0x416894
Capabilities:
Allocate thread local storage

Disassembly:
push esi
push ebx
sub esp, 0x14
mov ebx, dword [0x47d074]
test ebx, ebx
je 0x416904
mov esi, dword [0x47d078]
test esi, esi
je 0x4168f4
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x4168dc
mov dword [esi], eax
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00420000
test eax, eax
sete al
movzx eax, al
mov dword [ebx], eax
add esp, 0x14
pop ebx
pop esi
ret
call fcn.0041ff24
test eax, eax
sete al
movzx eax, al
mov dword [ebx], eax
add esp, 0x14
pop ebx
pop esi
ret
call fcn.00416808
mov esi, eax
mov dword [0x47d078], eax
jmp 0x4168ad
call fcn.00416870
mov ebx, eax
mov dword [0x47d074], eax
jmp 0x4168a3

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

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov ebx, dword [esp + 0x20]
mov eax, dword [0x47d074]
test eax, eax
je 0x416b4c
mov edi, dword [eax]
test edi, edi
js 0x416b40
mov eax, dword [0x47d074]
test eax, eax
je 0x416b5c
mov esi, dword [eax]
test esi, esi
je 0x416b10
mov eax, dword [0x47d078]
test eax, eax
je 0x416b8c
mov edi, dword [eax]
call fcn.0041ff24
mov esi, eax
mov dword [esp], edi
call sub.KERNEL32.dll_TlsGetValue
push edx
mov edi, eax
mov dword [esp], esi
call sub.KERNEL32.dll_SetLastError
push ecx
mov dword [ebx], edi
mov eax, dword [0x47d078]
test eax, eax
je 0x416b34
mov dword [esp + 4], ebx
mov eax, dword [eax]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
test eax, eax
je 0x416b28
add esp, 0x10
pop ebx
pop esi
pop edi
ret
mov eax, dword [0x47d07c]
test eax, eax
je 0x416b6c
mov edx, dword [eax]
mov dword [ebx], edx
mov dword [eax], ebx
add esp, 0x10
pop ebx
pop esi
pop edi
ret
add esp, 0x10
pop ebx
pop esi
pop edi
jmp fcn.0041ff24
call fcn.00416808
mov dword [0x47d078], eax
jmp 0x416af1
call fcn.00416938
jmp 0x416aa9
call fcn.00416870
mov dword [0x47d074], eax
jmp 0x416a9f
call fcn.00416870
mov dword [0x47d074], eax
jmp 0x416ab6
call fcn.004167e4
mov dword [0x47d07c], eax
mov edx, dword [eax]
mov dword [ebx], edx
test eax, eax
jne 0x416b1d
call fcn.004167e4
mov dword [0x47d07c], eax
mov dword [eax], ebx
jmp 0x416b1f
call fcn.00416808
mov dword [0x47d078], eax
jmp 0x416ac9
Function at 0x416b9c
Capabilities:
Set thread local storage value

Disassembly:
push ebx
sub esp, 8
mov eax, dword [esp + 0x10]
mov ebx, dword [eax]
mov eax, dword [0x47d074]
test eax, eax
je 0x416be8
mov eax, dword [eax]
test eax, eax
js 0x416be0
mov eax, dword [0x47d074]
test eax, eax
je 0x416bf4
mov eax, dword [eax]
test eax, eax
je 0x416bd0
mov eax, ebx
add esp, 8
pop ebx
jmp fcn.0041682c
mov eax, dword [0x47d07c]
test eax, eax
je 0x416c00
mov dword [eax], ebx
add esp, 8
pop ebx
ret
call fcn.00416938
jmp 0x416bb5
call fcn.00416870
mov dword [0x47d074], eax
jmp 0x416baf
call fcn.00416870
mov dword [0x47d074], eax
jmp 0x416bbe
call fcn.004167e4
mov dword [0x47d07c], eax
jmp 0x416bd9

Function at 0x416d8c
Capabilities:
Get thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov edi, dword [esp + 0x40]
mov eax, dword [0x47d074]
test eax, eax
je 0x416ebd
mov esi, dword [eax]
test esi, esi
js 0x416ea4
mov eax, dword [0x47d074]
test eax, eax
je 0x416eae
mov ebx, dword [eax]
test ebx, ebx
je 0x416e50
mov eax, dword [0x47d078]
test eax, eax
je 0x416e88
mov esi, dword [eax]
call fcn.0041ff24
mov ebx, eax
mov dword [esp], esi
call sub.KERNEL32.dll_TlsGetValue
push edx
mov esi, eax
mov dword [esp], ebx
call sub.KERNEL32.dll_SetLastError
push ecx
mov dword [esp + 0x2c], esi
test esi, esi
je 0x416e41
mov ecx, esi
lea ebx, [esp + 0x2c]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x416e33
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov edx, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], 1
mov dword [esp], 1
call eax
cmp eax, 6
je 0x416e60
cmp eax, 8
jne 0x416e98
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov dword [esp + 0x2c], ecx
test ecx, ecx
jne 0x416dfc
mov eax, 5
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [0x47d07c]
test eax, eax
je 0x416ecc
mov esi, dword [eax]
jmp 0x416dee
mov dword [edi + 0xc], 0
mov eax, dword [esp + 0x2c]
mov dword [edi + 0x10], eax
mov dword [esp + 0x2c], esi
mov edx, ebx
mov eax, edi
call fcn.00416750
cmp eax, 7
jne 0x416e46
mov eax, ebx
call fcn.004169f4
nop
call fcn.00416808
mov dword [0x47d078], eax
jmp 0x416dd1
mov eax, 3
add esp, 0x30
pop ebx
pop esi
pop edi
ret
call fcn.00416938
jmp 0x416dad
call fcn.00416870
mov dword [0x47d074], eax
jmp 0x416dba
call fcn.00416870
mov dword [0x47d074], eax
jmp 0x416da3
call fcn.004167e4
mov dword [0x47d07c], eax
mov esi, dword [eax]
jmp 0x416dee