joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003e6fc
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100694d5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x54
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x1003e81b
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], 0x48c1
mov dword [ebp - 0x34], 0x100089d8
cmp dword [ebp - 0x1c], 0x4aac
jle 0x1003e7c2
and dword [ebp - 0x14], 0
jmp 0x1003e766
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x59e3
jge 0x1003e7c2
and dword [ebp - 0x18], 0
jmp 0x1003e77c
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x3a29
jge 0x1003e7c0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
sar eax, cl
cdq
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], edx
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x64]
call fcn.1000a566
pop ecx
pop ecx
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
call fcn.10020483
push eax
call fcn.10051696
pop ecx
lea ecx, [ebp - 0x64]
call fcn.10020479
jmp 0x1003e775
jmp 0x1003e75f
push 0x1993
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push 0
push dword [ebp - 0x30]
call fcn.1003e932
add esp, 0x18
and dword [ebp - 4], 0
cmp dword [ebp - 0x1c], 0x4642
jge 0x1003e7f3
push dword [ebp - 0x34]
call fcn.10051696
pop ecx
jmp 0x1003e80f
or dword [ebp - 4], 0xffffffff
jmp 0x1003e819
jmp 0x1003e865
lea eax, [ebp + 0xc]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax]
test eax, eax
je 0x1003e83b
push 0
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x1003e865
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
movzx eax, byte [eax]
test eax, eax
je 0x1003e865
push 0x4ef6
push 0
push 0x4885
call fcn.1003cf81
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100448e6
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100696b4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x100449fb
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x20], 0xc2d
mov dword [ebp - 0x30], 0x10008cac
cmp dword [ebp - 0x20], 0xcee
jle 0x10044996
and dword [ebp - 0x18], 0
jmp 0x10044956
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x5513
jge 0x10044996
and dword [ebp - 0x1c], 0
jmp 0x1004496c
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x8c0
jge 0x10044994
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x1c]
cdq
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
mov ecx, 0x106105b8
call fcn.1002073d
jmp 0x10044965
jmp 0x1004494f
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x40], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x20], 0xb45
jge 0x100449b6
mov edx, dword [ebp - 0x30]
mov ecx, 0x106105b8
call fcn.10023d18
jmp 0x100449d2
or dword [ebp - 4], 0xffffffff
jmp 0x100449dc
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x3c]
call fcn.10045321
mov ecx, dword [ebp - 0x40]
mov cx, word [ecx]
mov word [eax], cx
jmp 0x10044a70
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x48], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x44]
movzx eax, byte [eax]
test eax, eax
je 0x10044a64
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
jmp 0x10044a45
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 2
jge 0x10044a62
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0x58]
call fcn.100208d0
mov dword [eax], 1
jmp 0x10044a3a
jmp 0x10044a70
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10064895
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1006d740]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.10055798
mov dword [ebp - 0x14], eax
cmp dword [0x106116dc], esi
jne 0x10064988
push 0x800
push esi
push 0x100075a0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10064915
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10064a68
push esi
push esi
push 0x100075a0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10064a68
push 0x100075b8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10064a68
push eax
call ebx
push 0x100075c4
push edi
mov dword [0x106116dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100075d4
push edi
mov dword [0x106116e0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100075e8
push edi
mov dword [0x106116e4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x106116ec], eax
test eax, eax
je 0x10064985
push 0x10007604
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x106116e8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x100649ad
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100649a0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x100649c2
push 4
pop eax
jmp 0x10064a6a
cmp dword [ebp - 0x14], esi
je 0x100649c2
push dword [0x106116dc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x100649a7
mov eax, dword [0x106116e8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x10064a20
cmp dword [0x106116ec], edi
je 0x10064a20
push eax
call ebx
push dword [0x106116ec]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10064a20
test eax, eax
je 0x10064a20
call ecx
test eax, eax
je 0x10064a15
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10064a15
test byte [ebp - 8], 1
jne 0x10064a20
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x10064a50
mov eax, dword [0x106116e0]
cmp eax, edi
je 0x10064a4d
push eax
call ebx
test eax, eax
je 0x10064a4d
call eax
mov esi, eax
test esi, esi
je 0x10064a4d
mov eax, dword [0x106116e4]
cmp eax, edi
je 0x10064a4d
push eax
call ebx
test eax, eax
je 0x10064a4d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x106116dc]
call ebx
test eax, eax
je 0x10064a68
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x10064a6a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10052afe
mov esp, ebp
pop ebp
ret
Function at 0x409e4734
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push esi
push dword [section..data]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call esi
test eax, eax
je 0x409e474d
xor eax, eax
jmp 0x409e4781
call fcn.409e457f
test eax, eax
je 0x409e475d
mov eax, 0x8007000e
jmp 0x409e4781
push edi
call fcn.409e59f9
push dword [section..data]
mov edi, eax
call esi
mov dword [eax + 0x40], edi
mov eax, edi
neg eax
sbb eax, eax
and eax, 0x7ff8fff2
add eax, 0x8007000e
pop edi
pop esi
ret 0xc

Function at 0x409e47b0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x409f2284]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [section..data]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call esi
test eax, eax
jne 0x409e47e8
mov eax, dword [ebp + 0xc]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
jmp 0x409e4866
push ebx
push dword [section..data]
call esi
mov ebx, dword [eax + 0x40]
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x409e481c
dec eax
je 0x409e480e
dec eax
jne 0x409e4860
push dword [ebp + 8]
mov ecx, ebx
call fcn.409e5365
jmp 0x409e4818
push dword [ebp + 8]
mov ecx, ebx
call fcn.409e4e92
mov esi, eax
jmp 0x409e4863
push edi
push 1
push 0x10
push dword [ebp + 0x10]
call sub.wow32.dll_WOWGetVDMPointer
mov esi, eax
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
push eax
push dword [ebp + 8]
mov ecx, ebx
movsd dword es:[edi], dword [esi]
call fcn.409e5de7
push eax
call sym.OLETHK32.dll_TransformHRESULT_3216
push 1
push 0x10
push dword [ebp + 0x10]
mov esi, eax
call sub.wow32.dll_WOWGetVDMPointer
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
pop edi
jmp 0x409e4863
mov esi, dword [ebp - 0x18]
mov eax, esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.409ef71b
leave
ret 0xc

Function at 0x409e49cb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push esi
push dword [section..data]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call esi
mov eax, dword [eax + 0x40]
test eax, eax
je 0x409e49ec
push 1
mov ecx, eax
call fcn.409e478a
push dword [section..data]
call esi
mov ecx, eax
add ecx, 0x20
call fcn.409ef227
call fcn.409e4668
pop esi
ret 0xc
Function at 0x409e5de7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
and dword [eax], 0
and dword [ebp - 4], 0
push ebx
push esi
push edi
push dword [section..data]
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test dword [eax + 0x44], 0x1000000
je 0x409e5e2d
mov esi, dword [ebp + 0xc]
push 4
pop ecx
mov edi, 0x409e40fc
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x409e5e2d
mov dword [ebp - 8], 0x409e410c
jmp 0x409e5e33
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
push dword [ebp - 8]
call fcn.409e6bd9
mov dword [ebp - 0x10], eax
shr eax, 0x10
mov dword [ebp - 0x14], eax
test ax, ax
je 0x409e5e61
push dword [ebp - 8]
mov ecx, ebx
call fcn.409e4d1b
test eax, eax
jne 0x409e5e61
mov eax, 0x8007000e
jmp 0x409e5f32
mov edi, dword [ebp + 8]
push 1
push 0x24
push edi
call sub.wow32.dll_WOWGetVDMPointer
mov ecx, dword [eax + 0x1c]
mov esi, dword [eax + 0x10]
mov eax, dword [eax + 0x20]
test cl, 2
je 0x409e5e7e
mov eax, dword [eax]
test cl, 0x10
je 0x409e5e9d
cmp dword [ebp - 0x10], 0
jne 0x409e5e9d
push edi
mov ecx, ebx
call fcn.409e4e92
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
xor edi, edi
jmp 0x409e5f1f
mov ecx, dword [eax]
lea edx, [ebp - 0xc]
push edx
push dword [ebp - 8]
push eax
call dword [ecx]
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x409e5f1f
cmp dword [ebp - 0xc], edi
je 0x409e5f18
cmp esi, edi
je 0x409e5ec3
test byte [esi + 4], 2
je 0x409e5ec3
xor esi, esi
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x10]
mov ecx, ebx
push esi
push dword [ebp - 0xc]
mov dword [ebx + 8], 2
push edi
call fcn.409e5bab
cmp eax, edi
je 0x409e5f03
test byte [ebp + 8], 3
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
je 0x409e5f0a
cmp word [ebp - 0x14], di
je 0x409e5f0a
push eax
mov ecx, ebx
call fcn.409e5365
mov dword [ebp - 4], 0x80004002
jmp 0x409e5f0a
mov dword [ebp - 4], 0x8007000e
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebx + 8], edi
jmp 0x409e5f1f
mov dword [ebp - 4], 0x80004002
cmp word [ebp - 0x14], di
je 0x409e5f2f
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.409e4d4c
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x409e65dd
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 0x10]
cmp esi, 0x10
ja 0x409e6613
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push esi
push 1
push dword [ebp + 8]
call sub.wow32.dll_WOWCallback16Ex
test eax, eax
jne 0x409e668d
mov dword [ebp - 4], 0x8000ffff
jmp 0x409e668d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
lea eax, [esi + 0xc]
push eax
push dword [section..data]
mov dword [ebp + 0x10], eax
call ebx
mov ecx, eax
call fcn.409ef108
mov edi, eax
test edi, edi
jne 0x409e6640
mov dword [ebp - 4], 0x8007000e
jmp 0x409e668b
push 1
push dword [ebp + 0x10]
push edi
call sub.wow32.dll_WOWGetVDMPointer
mov ecx, dword [ebp + 8]
push esi
push dword [ebp + 0xc]
mov dword [eax + esi], ecx
push eax
mov dword [eax + esi + 4], edi
mov dword [eax + esi + 8], esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [edi + esi]
push eax
push dword [0x409f23f4]
call sub.wow32.dll_WOWCallback16
push dword [ebp + 0x10]
mov dword [ebp - 4], eax
push edi
push dword [section..data]
call ebx
mov ecx, eax
call fcn.409ef19c
pop edi
pop ebx
mov eax, dword [ebp - 4]
pop esi
leave
ret 0xc
Function at 0x409e66b6
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x409f2284]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, 0x9c
call fcn.409ef750
mov esi, esp
test esi, esi
jne 0x409e66e3
mov eax, 0x8007000e
jmp 0x409e6814
mov eax, dword [ebp + 0x10]
and dword [esi + 0x78], 0
and dword [esi + 0x7c], 0
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], eax
lea eax, [esi + 0x1c]
lea edi, [esi + 0x5c]
mov dword [edi], eax
mov dword [esi + 0x60], eax
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esi + 0x98], eax
test eax, eax
jne 0x409e671f
mov eax, 0x80004005
jmp 0x409e6814
mov eax, dword [eax + 0x40]
mov dword [esi + 0x84], eax
mov eax, dword [ebp + 8]
shl eax, 4
mov ecx, dword [eax + 0x409e3430]
sub ecx, 0xc
mov dword [esi + 4], ecx
mov eax, dword [eax + 0x409e3434]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x6c]
mov dword [esi + 0x64], 1
mov ecx, dword [eax]
add eax, 4
mov dword [esi + 0x6c], eax
push 4
mov eax, ecx
pop ebx
mov dword [esi + 0x94], ecx
test byte [eax + 0x1c], bl
jne 0x409e6715
mov dword [esi + 0x80], eax
mov eax, dword [eax + 0x20]
push ebx
push eax
push edi
mov dword [esi + 0x10], eax
call fcn.409e6eaa
mov dword [esi + 0x18], eax
test eax, eax
jne 0x409e6788
mov eax, dword [esi + 0x78]
jmp 0x409e6814
mov ecx, dword [esi + 8]
mov eax, dword [eax]
shl ecx, 2
push ecx
push eax
push edi
mov dword [esi + 0x14], eax
call fcn.409e6eaa
mov dword [esi + 0xc], eax
test eax, eax
je 0x409e6780
cmp dword [esi + 0x64], 0
mov ecx, dword [esi + 0x10]
jge 0x409e67b6
add dword [esi + 0x60], 0xfffffffc
mov eax, dword [esi + 0x60]
mov dword [eax], ecx
jmp 0x409e67be
mov eax, dword [esi + 0x60]
mov dword [eax], ecx
add dword [esi + 0x60], ebx
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi + 4]
mov eax, dword [eax + ecx*4]
mov dword [esi], eax
mov dword [esi + 0x70], eax
mov eax, dword [esi + 0xc]
mov eax, dword [eax + ecx*4]
mov dword [esi + 0x74], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x88], eax
mov eax, dword [esi + 0x94]
mov dword [esi + 0x90], eax
mov eax, dword [esi + 0x84]
mov dword [esi + 0x8c], ecx
mov dword [eax + 8], ebx
mov eax, dword [esi + 0x70]
movzx eax, byte [eax]
and eax, 0x3f
push edi
call dword [eax*4 + 0x409e1528]
mov ecx, dword [esi + 0x84]
and dword [ecx + 8], 0
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.409ef71b
leave
ret 0xc
Function at 0x409eadec
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
test byte [ebp + 0xc], 0xc0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
je 0x409eaf0f
mov eax, dword [esi + 0x10]
mov edi, dword [eax]
add eax, 4
xor ebx, ebx
mov dword [esi + 0x10], eax
test edi, edi
je 0x409eae88
mov al, byte [ebp + 0xc]
and al, 0x40
mov byte [ebp + 0xb], al
je 0x409eae33
push dword [ebp + 0x18]
push edi
call fcn.409e6532
test eax, eax
je 0x409eae33
mov eax, 0x80070057
jmp 0x409eaf59
test byte [ebp + 0xc], 0x80
je 0x409eae46
push dword [ebp + 0x18]
push edi
call fcn.409e656b
test eax, eax
jne 0x409eae29
push dword [ebp + 0x10]
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.409ef108
mov ebx, eax
test ebx, ebx
jne 0x409eae6c
mov eax, 0x8007000e
jmp 0x409eaf59
cmp byte [ebp + 0xb], 0
je 0x409eae88
push 1
push dword [ebp + 0x10]
push ebx
call sub.wow32.dll_WOWGetVDMPointer
push dword [ebp + 0x10]
push dword [ebp + 0x18]
push eax
push edi
call dword [ebp + 0x1c]
cmp dword [esi + 8], 0
jge 0x409eae99
add dword [esi + 4], 0xfffffffc
mov eax, dword [esi + 4]
mov dword [eax], ebx
jmp 0x409eaea2
mov eax, dword [esi + 4]
mov dword [eax], ebx
add dword [esi + 4], 4
inc dword [esi + 0x14]
mov eax, dword [esi + 0x14]
movzx eax, byte [eax]
and eax, 0x3f
push esi
call dword [eax*4 + 0x409e1528]
test byte [ebp + 0xc], 0x80
mov esi, eax
je 0x409eaef2
test edi, edi
je 0x409eaef2
test esi, esi
jl 0x409eaede
push 1
push dword [ebp + 0x10]
push ebx
call sub.wow32.dll_WOWGetVDMPointer
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push edi
push eax
call dword [ebp + 0x14]
jmp 0x409eaef2
test byte [ebp + 0xc], 0x40
jne 0x409eaef2
push dword [ebp + 0x18]
push 0
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
test ebx, ebx
je 0x409eaf57
push dword [ebp + 0x10]
push ebx
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.409ef19c
jmp 0x409eaf57
mov ebx, dword [ebp + 0x10]
xor eax, eax
cmp dword [esi + 8], eax
jge 0x409eaf1b
mov eax, ebx
mov ecx, dword [esi + 4]
mov edi, dword [ebp + 0x18]
push ebx
push edi
sub ecx, eax
push ecx
push dword [esi + 0x10]
call dword [ebp + 0x1c]
cmp dword [esi + 8], 0
mov eax, dword [esi + 4]
jge 0x409eaf39
sub eax, ebx
jmp 0x409eaf3b
add eax, ebx
add dword [esi + 0x10], edi
inc dword [esi + 0x14]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x14]
movzx eax, byte [eax]
and eax, 0x3f
push esi
call dword [eax*4 + 0x409e1528]
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
Function at 0x409eb1bb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
push edi
mov edi, dword [eax]
xor ebx, ebx
add eax, 4
mov dword [ebp - 4], ebx
mov dword [esi + 0x10], eax
mov dword [ebp + 8], edi
cmp edi, ebx
je 0x409eb2c0
push 0x1000
push edi
call fcn.409e65a4
test eax, eax
je 0x409eb1fb
mov eax, 0x80070057
jmp 0x409eb322
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x409eb24f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, ebx
jbe 0x409eb24f
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push edi
call ebx
mov dword [ebp + 0xc], eax
test eax, eax
jbe 0x409eb24f
add eax, eax
push eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [ebp - 4], eax
test eax, eax
jne 0x409eb239
mov eax, 0x8007000e
jmp 0x409eb322
push dword [ebp + 0xc]
push eax
push edi
call ebx
test eax, eax
je 0x409eb281
cmp eax, dword [ebp + 0xc]
ja 0x409eb281
mov eax, dword [ebp - 4]
mov dword [ebp + 8], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
inc edi
lea eax, [edi + edi]
push eax
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.409ef108
mov ebx, eax
test ebx, ebx
jne 0x409eb28d
mov dword [ebp + 8], 0x8007000e
jmp 0x409eb2f4
mov dword [ebp + 8], 0x8000ffff
jmp 0x409eb310
lea eax, [edi + edi]
push eax
push edi
push ebx
push dword [ebp + 8]
call fcn.409e6d19
mov dword [ebp + 8], eax
test eax, eax
jl 0x409eb2f4
cmp dword [ebp + 0x10], 0
jbe 0x409eb2c3
cmp dword [ebp + 0x10], edi
jae 0x409eb2c3
push 1
push 0
push ebx
call sub.wow32.dll_WOWGetVDMPointer
mov ecx, dword [ebp + 0x10]
mov byte [eax + ecx], 0
jmp 0x409eb2c3
mov edi, dword [ebp + 0x10]
cmp dword [esi + 8], 0
jge 0x409eb2d4
add dword [esi + 4], 0xfffffffc
mov eax, dword [esi + 4]
mov dword [eax], ebx
jmp 0x409eb2dd
mov eax, dword [esi + 4]
mov dword [eax], ebx
add dword [esi + 4], 4
inc dword [esi + 0x14]
mov eax, dword [esi + 0x14]
movzx eax, byte [eax]
and eax, 0x3f
push esi
call dword [eax*4 + 0x409e1528]
mov dword [ebp + 8], eax
test ebx, ebx
je 0x409eb310
lea eax, [edi + edi]
push eax
push ebx
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.409ef19c
cmp dword [ebp - 4], 0
je 0x409eb31f
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x409eb39e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
mov ebx, dword [eax]
add eax, 4
push edi
mov dword [esi + 0x10], eax
test ebx, ebx
jne 0x409eb3cc
xor edi, edi
cmp dword [esi + 8], 0
jge 0x409eb43d
add dword [esi + 4], 0xfffffffc
mov eax, dword [esi + 4]
mov dword [eax], edi
jmp 0x409eb446
push 4
push ebx
call fcn.409e656b
test eax, eax
je 0x409eb3e2
mov eax, 0x80070057
jmp 0x409eb4cc
push 4
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.409ef108
mov edi, eax
test edi, edi
jne 0x409eb407
mov eax, 0x8007000e
jmp 0x409eb4cc
push 1
push 4
push edi
call sub.wow32.dll_WOWGetVDMPointer
and dword [eax], 0
push 0x200
call fcn.409e6c12
mov dword [ebp + 8], eax
test eax, eax
jne 0x409eb3bb
push 4
push edi
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.409ef19c
jmp 0x409eb3fd
mov eax, dword [esi + 4]
mov dword [eax], edi
add dword [esi + 4], 4
inc dword [esi + 0x14]
mov eax, dword [esi + 0x14]
movzx eax, byte [eax]
and eax, 0x3f
push esi
call dword [eax*4 + 0x409e1528]
mov dword [ebp - 4], eax
test ebx, ebx
je 0x409eb4af
test eax, eax
jl 0x409eb49d
push 1
push 4
push edi
call sub.wow32.dll_WOWGetVDMPointer
test eax, eax
jne 0x409eb47c
mov dword [ebp - 4], 0x80070057
jmp 0x409eb49d
lea ecx, [ebp + 8]
push ecx
push 0x100
push dword [ebp + 8]
push dword [eax]
push esi
call fcn.409eb348
test eax, eax
jge 0x409eb497
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x409eb4aa
push dword [ebp + 8]
call fcn.409e6c50
and dword [ebx], 0
jmp 0x409eb4af
mov eax, dword [ebp + 8]
mov dword [ebx], eax
test edi, edi
je 0x409eb4c9
push 4
push edi
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.409ef19c
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4